Re: Loop, RadioGroup and Coercion

2010-01-13 Thread antb59
Hi again, In fact, I have a correct behavior for the display of the forms when I used formState="NONE" in the loop inside form. But the problem is on the parameter "action" of the form that contains the loop on suggestions. Here is the HTML code generated when I fix the surveyId value on the fi

Re: Loop, RadioGroup and Coercion

2010-01-12 Thread antb59
After reading the documentation for LoopFormState, I found that ITERATION is the value I want in my case. "When the Form is submitted, the Loop will re-acquire its source and iterate over it" But when I used this value in my loop component, an new error is throwed : # java.util.AbstractList$Itr

Re: Loop, RadioGroup and Coercion

2010-01-12 Thread Thiago H. de Paula Figueiredo
On Tue, 12 Jan 2010 11:18:03 -0200, antb59 wrote: When you say "never use expansions in component parameters", you mean this syntax is better ? Yes, because everytime you use an expansion to value is transformed in a String. About the LoopFormState, I'm going to check this feature, I di

Re: Loop, RadioGroup and Coercion

2010-01-12 Thread antb59
Thanks for your fast answer ! When you say "never use expansions in component parameters", you mean this syntax is better ? About the LoopFormState, I'm going to check this feature, I didn't know it... Do I have to change the LoopFormState of the loop of forms or the loop of radio buttons

Re: Loop, RadioGroup and Coercion

2010-01-12 Thread Thiago H. de Paula Figueiredo
On Tue, 12 Jan 2010 10:33:11 -0200, antb59 wrote: Hello again, Hi again! :) It probably isn't the source of your problem, but never use expansions in component parameters. In this case, when a form is submited, the related surveySuggestionsForm didn't seem to receive the correct

Re: Loop, RadioGroup and Coercion

2010-01-12 Thread antb59
Hello again, I have a new problem related to this loop of radio buttons : I want to make a list of forms, with each form containing a list of radio buttons. I can easily do that in a "static" way, with an index.tml file containing the following lines : ... ... And the SurveySuggestionsForm.

Re: Loop, RadioGroup and Coercion

2009-12-28 Thread antb59
Thanks for you fast answer Christophe ! Here is the new code for my radioGroup : ${suggestionLoopValue.label} It works! Many thanks. cordenier christophe wrote: > > Oups, it's the radiogroup that need it :) > > 2009/12/28 cordenier christophe > >> Hi >> >>

Re: Loop, RadioGroup and Coercion

2009-12-28 Thread cordenier christophe
Oups, it's the radiogroup that need it :) 2009/12/28 cordenier christophe > Hi > > I think you have to specify the encoder on the form element too. > > 2009/12/28 antb59 > > >> Hello, >> >> I'm trying to make a tapestry component that looks like a poll. >> This component will contain a question

Re: Loop, RadioGroup and Coercion

2009-12-28 Thread cordenier christophe
Hi I think you have to specify the encoder on the form element too. 2009/12/28 antb59 > > Hello, > > I'm trying to make a tapestry component that looks like a poll. > This component will contain a question, a list of suggestions, and a button > to vote. > I didn't want to use Ajax at first, and

Loop, RadioGroup and Coercion

2009-12-28 Thread antb59
Hello, I'm trying to make a tapestry component that looks like a poll. This component will contain a question, a list of suggestions, and a button to vote. I didn't want to use Ajax at first, and the click on the vote button will reload the whole page for example. The question and the list of su