On Tue, 2004-04-27 at 18:11, [EMAIL PROTECTED] wrote:
> Dear Bruno,
>
> Thanks for the info
>
> In fact I'm looking for a solution to display a hidden field when
> some conditions are met.
ah, I see.
>
> By example, in my flowscript , I check some value then I discover an
> error.
> At this moment I will change the widget "message" and return the form
> to the user with his data.
> But the messagebox must appear only if the validation is ok.
I see two solutions (for now):
* can't the styling for the "message" widget work so that it doesn't
display anything when there's no message?
* or else, set "somewhere" a flag to indicate the message widget should
be shown, and then use jx:if/jx:choose in the template to check the
value of the flag. As for that "somewhere", this could be:
- an attribute on the form (see Form.setAttribute)
- something passed as viewData to the pipeline
- or again easiest, just check the value of the widget itself,
only display if it has a value
BTW, what is the type of your "message" widget?
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED] [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]