简体   繁体   中英

How can I display another form in a z3c.form button handler?

I have a form with a single text field.

On submit I would like to display another form.

I can use RESPONSE.redirect() and pass it in the query string but I would rather not.

I don't want to use a SESSION variable.

I would like to display a second form which can read this value from the request variable.

I have looked at collective.z3cform.wizard but it is not obvious how to do this.

Trying to call the view() from the button handler does not seem to have any effect.

I fall in the same lack of functionality.

For what I know, z3c.form does not support this kind of traversing.

You may remember that this functionality worked well with CMFFormController. Actually to do this, cmfformcontroller used session machinery.

So, you don't want to use session but that's the way. At least I do so, and I'm happy.

In this way there's no need of a wrapping tool like z3c.form.wizard.

hth, alessandro.

Collecting.Singing具有一个基于非会话的向导,该向导使用隐藏字段存储中间步骤的结果。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM