Just return values from your action as a String array.

eg:

<ui:select label="'Projects'" name="'projectIds'"
      list="/browseableProjects" listKey="'long('id')'" 
listValue="'string('name')'">
                     <ui:param name="'size'" value="'4'" />
                     <ui:param name="'headerrow'" value="'Any'" />
                     <ui:param name="'headervalue'" value="''" />
                     <ui:param name="'style'">width: 90%;</ui:param>
                 </ui:select>

in your action:

public String[] getProjectIds()
{
     return new String[] {"10410"};
}

The array matches the listKey property in the ui:select dropdown.

Cheers,
Scott

Vipul Manglik wrote:
> Hi,
>     I am using ui:select tag to display a list of items. (Its actually a
> list of dates). I want to be able to display a particular value as the
> initailly selected value. (Which will be todays date). How can I specify
> the initilly selected value using the ui:select tag?
> 
>     If ui:select tag does not have the required functionlaity, is there
> some other way to achieve the same result?
> 
> Thanks
> Vipul Manglik
> 
> 
> _______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> _______________________________________________
> Webwork-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webwork-user
> 


-- 
Scott Farquhar :: [EMAIL PROTECTED]

Atlassian :: http://www.atlassian.com
      Supporting YOUR J2EE World


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to