On Wed, 01 Feb 2012 08:24:56 -0200, Markus Grell <tapes...@military.de> wrote:

Greetings!

Hi!

I have a form that display a select list. This list is filled with data
from a database query. Now I would like following behaviour but have no
clue on how to implement that:

I would like to add the option "Other" to the select list. A soon as this
option is choosen (without submitting the form), a textfield should appear so that the user can add a value that is not available in the select list.

Any hints here how to achieve this?

Just add the textfield hidden at first (style = "display: none") then add a JavaScript listener to your select that shows or hides the textfield. No Tapestry itself invoved, just ordinary HTML, CSS and JavaScript. :)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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

Reply via email to