How about something like:

<t:select t:id="profile" model="'Teacher,Student'"/>

You will get "Teacher" or "Student" back as the value, you can just
translate it to T/S on the server...

Josh

On 10/10/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I have this dropdown box in a html form:
>
> <select name="profile" size="1" id="profile">
>                <option value="T">Teacher</option>
>                <option value="S">Student</option>
>              </select>
>
> Now I likt to use this with T5, any sample code for this? I have checked
> the
> HowTos, all are long codes, any simplier ones? my need is simple: how to
> declare this in a template and how to retrieve the value in the page class
> side, thanks.
> A.C.
>
>
>
> --
> View this message in context:
> http://www.nabble.com/T5%3A-any-simple-code-for-this-select--tf4601327.html#a13137397
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

Reply via email to