Joerg Heinicke schrieb:

Thanks for your answer!

On 24.11.2004 09:55, Markus Heussen wrote:

I'm convinced I did it in a wrong way. But I'm still trying to solve my problem by trial and error principle. Could you help me, please?

I need a form that displays a couple of form fields. One field is a check box (booleanfield). If that box is checked I have to display some additional form fields beneath that check box.


A boolean field should also be submit-on-change-able. This means adding the following code snippet to your template should be part I:

<ft:widget id="aBooleanField">
  <fi:styling submit-on-change="true"/>
</ft:widget>

I've done it like this.


How can I solve it using unions, structs and classes? I'm using the jx-macro sample style for my forms of Cocoon 2.1.6. This example shows what I want to do. But a selections-list is used instead of a booleanfield.


Don't know about this sample, but it should be similar. Referencing the boolean field as case widget should work IIRC. I have done it myself, I could have a look at latest at monday. The rest should be the same like the selection list sample.


Trying it in different ways I get ClassCastExceptions all the time. I'm looking forward for a running code snipped.


Thanks for your help, Joerg!

Joerg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to