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 2008/01/10 13:28:01 UTC

How to make drop down box from ArrayList

Hi,

 

 Please suggest me a simple way to show my ArrayList of string objects 

 as a drop down combo box.

 

Thanks

Yees.



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: How to make drop down box from ArrayList

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Thu, 10 Jan 2008 11:18:10 -0200, Yeeswara Nadapana (HCL Financial  
Services) <Ye...@hcl.in> wrote:

> Hi Ulrich,
>
> I am using Tapestry 5. I have made a drop down box using the ArrayList.  
> I want to fire an onChange event on my Page class and get some data  
> relevant to the selected option and display on another TextArea. Please  
> check my code snippet and let me know a way to that.

You could use the Select component  
(http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#orgapachetapestrycorelibcomponentsselect)  
and letting it generate the option tags for you.

-- 
Thiago H. de Paula Figueiredo
Desenvolvedor, Instrutor e Consultor de Tecnologia
Eteg Tecnologia da Informação Ltda.
http://www.eteg.com.br

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


RE: How to make drop down box from ArrayList

Posted by "Yeeswara Nadapana (HCL Financial Services)" <Ye...@hcl.in>.
Hi Ulrich,

I am using Tapestry 5. I have made a drop down box using the ArrayList. I want to fire an onChange event on my Page class and get some data relevant to the selected option and display on another TextArea. Please check my code snippet and let me know a way to that.

<select t:id="importConditions" onChange="javascript:filterOnChange();">
	<t:loop source="filterList" value="currentFilter">
		<option value="${currentFilter}">
			${currentFilter}
		</option>
	</t:loop>
</select>

Thanks,
Yees


-----Original Message-----
From: Ulrich Stärk [mailto:uli@spielviel.de] 
Sent: Thursday, January 10, 2008 6:39 PM
To: Tapestry users
Subject: Re: How to make drop down box from ArrayList

It would be better to inform us about the Tapestry version you are using 
instead of sending us a disclaimer that is longer than the rest of your 
mail.

Uli

Yeeswara Nadapana (HCL Financial Services) schrieb:
> Hi,
> 
>  
> 
>  Please suggest me a simple way to show my ArrayList of string objects 
> 
>  as a drop down combo box.
> 
>  
> 
> Thanks
> 
> Yees.
> 
> 
> 
> 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.
> -----------------------------------------------------------------------------------------------------------------------


---------------------------------------------------------------------
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: How to make drop down box from ArrayList

Posted by Ulrich Stärk <ul...@spielviel.de>.
It would be better to inform us about the Tapestry version you are using 
instead of sending us a disclaimer that is longer than the rest of your 
mail.

Uli

Yeeswara Nadapana (HCL Financial Services) schrieb:
> Hi,
> 
>  
> 
>  Please suggest me a simple way to show my ArrayList of string objects 
> 
>  as a drop down combo box.
> 
>  
> 
> Thanks
> 
> Yees.
> 
> 
> 
> 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.
> -----------------------------------------------------------------------------------------------------------------------


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