I originally sent this to the wrong alias...
Ken
Ken Paulsen wrote:
> I Enhanced DropDownFactory.java to support directly defining values.
> You may now directly supply the values and labels for the DropDown
> component. Even though this component does not allow this via JSP,
> the DropDownFactory now provides this ability by utilizing the List /
> array support in JSFTemplating. An array or List is passed to the
> factory via the 2 attributes: "values" and "labels". These 2 parallel
> lists of data are combined to create a List of Option objects that is
> required by the DropDown component. If you specify only the "labels"
> property, the values will equal the labels. Here are some examples:
>
> <sun:dropDown id="dd" labels={"A" "B" "C"} values={"a", "b", "c"} />
> <sun:dropDown id="dd2" labels=["A" "B" "C"] values=["a", "b", "c"] />
>
> Feel free to drop this code into a page to try it out!
>
> Let me know if you questions or problems!
>
> Ken
attached mail follows:
Enhanced DropDownFactory.java to support directly defining values. You
may now directly supply the values and labels for the DropDown
component. Even though this component does not allow this via JSP, the
DropDownFactory now provides this ability by utilizing the List / array
support in JSFTemplating. An array or List is passed to the factory via
the 2 attributes: "values" and "labels". These 2 parallel lists of data
are combined to create a List of Option objects that is required by the
DropDown component. If you specify only the "labels" property, the
values will equal the labels. Here are some examples:
<sun:dropDown id="dd" labels={"A" "B" "C"} values={"a", "b", "c"} />
<sun:dropDown id="dd2" labels=["A" "B" "C"] values=["a", "b", "c"] />
Feel free to drop this code into a page to try it out!
Let me know if you questions or problems!
Ken
---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: cvs-help_at_glassfish.dev.java.net