dev@jsftemplating.java.net

sun:addRemove tag help

From: Karam Singh Badesha <Karam.Badesha_at_Sun.COM>
Date: Wed, 09 May 2007 14:23:57 -0700

Hi,
I have the following:

<sun:addRemove
                id="toolName"
                items="$attribute{toolList}"
                selected="#{pageSession.toolName}"
                availableItemsLabel="Available:"
                selectedItemsLabel="Selected:"
                sorted="#{true}"
                labelOnTop="#{true}"
                rows="$int{6}"
                />

In my handler code, toolName is of type String[]. When I submit on this
page, eventhough I haven't set this component as "required", it keeps
coming back in "red" suggesting it is required. So I am guessing maybe
I am defining it wrong in the above code. Can someone let me know what
do I need to change to get this to work.

What would be the correct code for:
selected="#{pageSession.toolName}"

thanks
Karam