Re: T5: select updating in form?

2008-10-08 Thread photos
Anyone? Quoting [EMAIL PROTECTED]: I have a select dropdown that will determine what is displayed in a second dropdown. Both of these are in a form. Am I correct in thinking that this cannot be done using Zones (I seem to recall a recent posting that said it was not possible if it's inside

Re: T5: select updating in form?

2008-10-08 Thread Ulrich Stärk
Do a form submit upon selecting something in the first dropdown, then render the second dropdown according to the selection made. And vote for https://issues.apache.org/jira/browse/TAP5-138. Uli Am Mi, 8.10.2008, 09:39, schrieb [EMAIL PROTECTED]: Anyone? Quoting [EMAIL PROTECTED]: I have

Re: T5: select updating in form?

2008-10-08 Thread photos
Further to this, I can see it can be done using two forms, but that isn't very nice. As this is such a common requirement (and one that I used without problems in an application using Tapestry 3) I am somewhat surprised that there are no examples offered as to how to do this in Tapestry

Re: T5: select updating in form?

2008-10-08 Thread Ulrich Stärk
Come on, you could really invest some mental effort instead of asking us to do your work... It's not working out of the box, that much is clear. But you don't have to use two forms either... t:form t:select model=values value=value t:id=select onchange=this.form.submit() / t:if test=value

Re: T5: select updating in form?

2008-10-08 Thread photos
Quoting Ulrich Stärk [EMAIL PROTECTED]: Come on, you could really invest some mental effort instead of asking us to do your work... It's not working out of the box, that much is clear. But you don't have to use two forms either... Thanks for the example Uli. Contrary to what you may think, I

Re: T5: select updating in form?

2008-10-08 Thread Alex Kotchnev
I've never tried to do this on my own yet, but I'm just wondering : is it hard to step outside of T5 as a framework and do the same w/ just plain AJAX (e.g. an XHR request through prototype, JSON coming back and populating the second select with the right values) ? Or would this somehow mess up

Re: T5: select updating in form?

2008-10-08 Thread Thiago H. de Paula Figueiredo
Em Wed, 08 Oct 2008 16:09:22 -0300, Alex Kotchnev [EMAIL PROTECTED] escreveu: I've never tried to do this on my own yet, but I'm just wondering : is it hard to step outside of T5 as a framework and do the same w/ just plain AJAX (e.g. an XHR request through prototype, JSON coming back and

T5: select updating in form?

2008-10-07 Thread photos
I have a select dropdown that will determine what is displayed in a second dropdown. Both of these are in a form. Am I correct in thinking that this cannot be done using Zones (I seem to recall a recent posting that said it was not possible if it's inside a form). In that case, how