Hi,

Why don't you try something like this. May not to be the best way but
should work fine. Juts try removing the extra zone that you try to render
from your form and do like below:-

x.tml
<t:form  t:async="true"(if tapestry 5.4 or else wrap around a zone)>

input fields

<t:select  />

<t:submit t:id="filter">
<t:if test="flag">
other input fields based on the select field
<t:submit t:id="save">
</t:if>
</t:form>

x.java

@Property
@Persist
private boolean flag;


void onSelectedFromFilter(){
flag=true;

your logic
}

void onSelectedFromSave(){
proceed with your logic


and if you want to hide the extra part just make the flag as false

}.

This way you are avoiding the extra zone rendering, whereas your current
form is still ajax.


Best Regards
Akshay


On Sun, Dec 14, 2014 at 10:22 AM, Muhammad Gelbana <m.gelb...@gmail.com>
wrote:
>
> The ajax-form-loop does it but it doesn't fit my scenario. I need to
> display portions of the form based on a Select component changed value. And
> even if I try to do it using the Select component change event, I don't
> need to add rows. I just need to update a zone with different form fields.
> I even sometimes need to do it using an Event\Action link. Its nothing no
> one else tried to do !
>
> I appreciate your time. Thank you.
>
> *---------------------*
> *Muhammad Gelbana*
> http://www.linkedin.com/in/mgelbana
>
> On Sat, Dec 13, 2014 at 11:45 AM, Diego Socaceti <socac...@gmail.com>
> wrote:
>
> > Hi,
> >
> > have to tried to use the AjaxFormLoop
> >
> >
> http://tapestry.apache.org/5.4/apidocs/org/apache/tapestry5/corelib/components/AjaxFormLoop.html
> >
> > I just found it in the API docs.
> > Unfortunately there are no 5.4 jumpstart examples, but i think you can
> > adapt the one from 5.3
> >
> > http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1
> >
> >
> http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloopwithholders1
> >
> >
> http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formlooptailored1
> >
> >
> > Kind regards
> >
>


-- 
Cheers!!
Akshay

Reply via email to