Yes, changing it to Lists {} works. Thanks, Ken.
Ken Paulsen wrote:
>
> Yes, there's a known issue with evaluating ${} expressions in arrays,
> however, I think Lists should work. Try changing the []'s to {}'s and
> let me know if you still have a problem. Can you then file a issue
> via the "Issue Tracker" at https://jsftemplating.dev.java.net?
>
> Thanks!
>
> Ken
>
> Ana Caballero wrote:
>
>> Hi Ken,
>>
>> Thanks for working on this. I tried it and it worked, however when I
>> try using localized keys for values they do not get evaluated. Will
>> there be support for this?
>>
>> <sun:dropDown id="logLevel"
>> labels=["$resource{i18n.log.LogFileDefault}" ]
>> values=["$resource{i18n.log.LogFileDefault}"] />
>>
>> Thanks,
>> Ana
>>
>> Ken Paulsen wrote:
>>
>>>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
>>>>
>>>>
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> Subject:
>>> Enhanced sun:dropDown
>>> From:
>>> Ken Paulsen <Ken.Paulsen_at_sun.com>
>>> Date:
>>> Thu, 10 Aug 2006 20:01:13 -0700
>>> To:
>>> cvs_at_glassfish.dev.java.net
>>>
>>> To:
>>> cvs_at_glassfish.dev.java.net
>>>
>>>
>>> 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
>>>