struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: <s:select .../>
Date Wed, 16 May 2007 15:24:29 GMT
--- stanlick@gmail.com wrote:
> Can someone identify the attributes of this example
> code, preferably in the documentation itself?
> 
> http://struts.apache.org/2.x/docs/select.html
> 
> 
> <s:select label="Pets"

The label.

>        name="petIds"

The action property.

>        list="petDao.pets"

Where the list comes from (the list used to populate
the options).

>        listKey="id"

The value for <option value="xxx">

>        listValue="name"

The text of the option <option...>XXX</option>

>        multiple="true"

Multiple select?

>        size="3"

How tall is it?

>        required="true"

Is it a required form element?

> Is there an expectation that a getPetDao() exists
> somewhere?  

Yes. That's where the list comes from.

> Also, what is listKey/listValue 

See above.

> [...] it eludes me how development comes to a \
> screeching halt when you need to drop one on a 
> screen!

That eludes me too.

d.



      ____________________________________________________________________________________
Park yourself in front of a world of choices in alternative vehicles. Visit the Yahoo! Auto
Green Center.
http://autos.yahoo.com/green_center/ 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message