You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Michael Engelhart <me...@mac.com> on 2004/11/23 02:01:12 UTC

ValidField with select as invalid response

Hi -

I have a search form that has several fields one of which is the name 
of a city.
I have a need to allow someone to type a city name into that field and 
then when the form is submitted do a database lookup on the city name 
and if there are multiple cities that match the city expression then i 
want to either return the same search form page with a <select> list 
with city names if there are more then 3 matches or a set of radio 
buttons if there are <= 3 matches.

Does the ValidField require the input type to be of type <input />?  Or 
can I override ValidField to allow a rendering of a <select> or radio 
group.   I'm new to Tapestry and not sure where in the component the 
rendering is actually taking place.

Thanks
Mike


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


Re: ValidField with select as invalid response

Posted by Jonathan Newton <mi...@yahoo.com>.
--- Michael Engelhart <me...@mac.com> wrote:
> Does the ValidField require the input type to be of
> type <input />? 

Yup 

> Or can I override ValidField to allow a rendering of
a
> <select> or radio 
> group. 

nope :( 

Luckily there are others who have created "Valid"
versions of the other form components. 

Most are listed on
http://wiki.apache.org/jakarta-tapestry/ExtraComponents

Jon 

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