Re: AjaxFormLoop with nested Ajax select onValueChange event

2014-07-28 Thread Erich Gormann
Hi Luis, in my component there is an icon enabling the user to add a new input row on the fly. Each rendered input row has got an id which is incremented for each new row. Because my filter criteria object is a field in the row object it is instantiated together with it and so I'm able to wri

Re: AjaxFormLoop with nested Ajax select onValueChange event

2014-07-28 Thread Luis Salas
Hi Erich, I'm doing the same you have done, I'm creating a Filter component that will have as many input rows as users needs. Each row use a filterCriteria object in which I will store the users input. I need to do something like you did but I'm having some troubles defining the client ids to

Re: AjaxFormLoop with nested Ajax select onValueChange event

2014-07-27 Thread Erich Gormann
Hi Luis, as an alternative I want to show you my solution given in the below listed encoder class. Each search criterion in my solution is represented by a type called "TapestryClientCriterion". My generic search component renders any number of "finder input lines" each having a list of possible s

Re: AjaxFormLoop with nested Ajax select onValueChange event

2014-07-24 Thread Lance Java
FYI, I just updated the demo to show the power of the mixin http://tapestry-stitch.uklance.cloudbees.net/observedemo NB. I changed the name of the mixin from onEvent to observe. On 24 July 2014 18:52, Lance Java wrote: > Take a look at the onEvent mixin here > > https://github.com/uklance/tape

Re: AjaxFormLoop with nested Ajax select onValueChange event

2014-07-24 Thread Lance Java
Take a look at the onEvent mixin here https://github.com/uklance/tapestry-stitch/blob/master/src/main/java/org/lazan/t5/stitch/mixins/OnEvent.java It allows you to pass multiple field values to the serverside event. That way, each event can be passed all the relevant clientside field values. Keepi

Re: AjaxFormLoop with nested Ajax select onValueChange event

2014-07-24 Thread Erich Gormann
Hi Luis, sometime ago I wrote exact such a component for a complex fully generic working search panel with any number of search criteria and data types. I faced exactly the same problems like you, because without doing a HTTP post on the complete page there is no standrad way to keep the state

AjaxFormLoop with nested Ajax select onValueChange event

2014-07-24 Thread Luis Salas
Hi everyone. I'm developing a refine search component that need to add field's rows dynamically, this rows contains 2 select components and by default a textbox. When I change the value of the first select I have to update the list of the second select and change the textbox to a component t