cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Mauch <ma...@imkenberg.de>
Subject [CFORMS] Set required attribute to widget from flow
Date Sat, 18 Mar 2006 11:58:35 GMT
Hi
I have a form that have some widget that's are hided by default (additional
delivery address). If the user choose the to enter the additional delivery
address, then the widgets are shown and become mandatory. For that reason it
try to change the required attribute from flow script, but I get the error:

java.lang.IllegalStateException: Attempt to modify an immutable
WidgetDefinition

I called:
form.lookupWidget("deliveryaddress_street").getFieldDefinition().setRequired
(true);

Is there a way to overcome this problem ?

Thx Thorsten


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message