To be honest I originally threw the use-when tag into the form field as a hack since I didn't want to implement more comprehensive conditionals at the time.

One big issue with the use-when tag is parse-ability, for certain machine things and also for certain people, and that was the reason in simple-methods and the screen widget for more comprehensive conditionals.

-David


On Jul 23, 2009, at 7:43 PM, Harmeet Bedi wrote:

I would like to ask you what you think about having use-when attribute for various screen elements and defaulted to true.

The current condition check and widgets, fail-widgets mechanism is a bit wordy, does not allow easy switching for any type of element and is not as close in grammer to use-when in widget-form.xsd.. should make grammers closer if possible in various spots.

I was hoping it to have it for all elements. so for instance one could say something like this:

<include-form name="FormRef1" location="SomeLocation.xml" use-when="$ {showRef1}"/> <include-form name="FormRef2" location="SomeLocation.xml" use-when="$ {showRef2}"/>

or container, or widget or etc..

<container use-when="${showSpecialCaseContainer}">
..
</container>


Thoughts ?
Harmeet

Reply via email to