Yeeswara Nadapana (HCL Financial Services) wrote:
Hi,
Hello Yeeswara,
Can anyone
please explain me the procedure to add a <select> box to my form? If I
write as:
<select t:type="select" t:id="selectId" t:model="selectModel" t:value="selectValue"/>
Corelib components are document here :
http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html
For the select component, you can read this :
- value: The value to read or update.
=> it's the choice the user did. Tapestry will update the Java property
of your page accessible by the setter "setSelectValue" with ths choice's
value.
- model: The model used to identify the option groups and options to be
presented to the user. This can be generated automatically for Enum types.
=> it's the available choices for the select. This parameter accept a
comma separated list of value, a collection retrieved from the Java
part, or a full SelectModel implementation.
I suggest you to read the documentation available on the site to
understand how Java classes and template files are links, how components
paramters, etc.
You whould begin by the tutorial here :
http://tapestry.apache.org/tapestry5/tutorial1/
And read all the topic of the user guide here :
http://tapestry.apache.org/tapestry5/tapestry-core/
Hope it helps,
--
Francois Armand
Etudes & Développements J2EE
Groupe Linagora - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
-----------
InterLDAP - http://interldap.org
FederID - http://www.federid.org/
Open Source identities management and federation
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]