On Thu, 25 Oct 2012 22:32:42 -0200, nhhockeyplayer nashua <nhhockeypla...@hotmail.com> wrote:

Folks,

Hi!

Do I really NEED to have a form with my <select> components ?

Short answer: yes.
Long answer: yeeeeeeeeeeeeeeeeeeeeeeees. :P The Form component is the one who actually invokes the form field components logic that handles form submissions, so no, you can't have Tapestry's form field components without a surrounding Form. On the other hand, nothing prevents you to create your own Select-like component that doesn't need a Form to work and (optionally) submits a hidden form or triggers some server-side event.

I know its unorthadox...

Almost all of the unorthodox things you've asked so far were the wrong way of doing something and the orthodox way was the recommended one.

but I would like to skip the form if possible to keep this lightweight

What's the weight you think the Form component adds?

and just use  onchange="this.form.submit()" when it gets selected.

You can do that with the Form component. Anyway, don't use onchange, use Prototype's Event.observe() or the corresponding function in jQuery or your JS framework of choice instead. Do the right thing. Leave bad things behind. :)

--
Thiago H. de Paula Figueiredo

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

Reply via email to