You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by "Yeeswara Nadapana (HCL Financial Services)" <Ye...@hcl.in> on 2007/12/19 07:05:02 UTC

Using in Tapestry 5

Hi,

 

I am new to Tapestry5 and this is my first mail to the group. 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="xyz" t:model="xyz" t:value="xyz"/>

 

What goes behind the scene? Please explain me what each parameter does?
I couldn't find any tutorial which goes deep into this framework. Also,
please suggest me with some useful links.

 

Thanks

Yeeswara N

************************************************************************
***

This mail is transmitted to you on behalf of HCL Technologies.

Diese Post wird Ihnen im Namen der HCL Technologies ubermittelt

************************************************************************
****

 



DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------

Re: Using in Tapestry 5

Posted by Geoff Callender <ge...@gmail.com>.
Does this example help? http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/select/select/$N/$N/$N/$N

On 19/12/2007, at 5:05 PM, Yeeswara Nadapana (HCL Financial Services)  
wrote:

>
> Hi,
>
>
>
> I am new to Tapestry5 and this is my first mail to the group. 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="xyz" t:model="xyz" t:value="xyz"/>
>
>
>
> What goes behind the scene? Please explain me what each parameter  
> does?
> I couldn't find any tutorial which goes deep into this framework.  
> Also,
> please suggest me with some useful links.
>
>
>
> Thanks
>
> Yeeswara N
>
> ************************************************************************
> ***
>
> This mail is transmitted to you on behalf of HCL Technologies.
>
> Diese Post wird Ihnen im Namen der HCL Technologies ubermittelt
>
> ************************************************************************
> ****
>
>
>
>
>
> DISCLAIMER:
> -----------------------------------------------------------------------------------------------------------------------
> The contents of this e-mail and any attachment(s) are confidential  
> and intended for the named recipient(s) only.
> It shall not attach any liability on the originator or HCL or its  
> affiliates. Any views or opinions presented in
> this email are solely those of the author and may not necessarily  
> reflect the opinions of HCL or its affiliates.
> Any form of reproduction, dissemination, copying, disclosure,  
> modification, distribution and / or publication of
> this message without the prior written consent of the author of this  
> e-mail is strictly prohibited. If you have
> received this email in error please delete it and notify the sender  
> immediately. Before opening any mail and
> attachments please check them for viruses and defect.
> -----------------------------------------------------------------------------------------------------------------------


Re: Using in Tapestry 5

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, Feb 10, 2009 at 8:47 AM, Vivek Singh <vi...@yahoo.com> wrote:

> t:model=" This can be a hash table with any type
> of primititive data type or their Wrapper as key- value pair "
> blankOption="never" />

This is not correct. The model parameter of the Select component must
receive a SelectModel object.

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Using in Tapestry 5

Posted by Vivek Singh <vi...@yahoo.com>.
Hi Yeeswara,

<t:select t:id="ANY_UNIQUE_FORM_VALUE_AS_ID" t:value="This value stores the
selected oprtion by the user and should have getter-setter same as that of
the key used in the model" t:model=" This can be a hash table with any type
of primititive data type or their Wrapper as key- value pair "
blankOption="never" />
Hope it works for you.

Cheers 
Vivek

Davor Hrg wrote:
> 
> look for keyword SELECT on
> http://wiki.apache.org/tapestry/Tapestry5HowTos
> 
> 
> On Dec 19, 2007 8:55 AM, Francois Armand <fa...@linagora.com> wrote:
>> 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: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Using-%3Ct%3Aselect%3E-in-Tapestry-5-tp14411791p21931228.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Using in Tapestry 5

Posted by Davor Hrg <hr...@gmail.com>.
look for keyword SELECT on
http://wiki.apache.org/tapestry/Tapestry5HowTos


On Dec 19, 2007 8:55 AM, Francois Armand <fa...@linagora.com> wrote:
> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Using in Tapestry 5

Posted by Francois Armand <fa...@linagora.com>.
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org