Solved it.
Actually it was solved with the first suggestion to make a encoder.
Unfortunately I didn't set the encoder to be used by the loop in the
Popup.tml. Stupid hu!?
Anyway now I don't need to use the Coercion so all is cool.
Tnx all
--
View this message in context:
http://tapestry.1045
Yea you are right I did what you suggested and the setters are called.
First thing that happens is that it calls the coercion that I have created.
Coercion coercion3 = new Coercion() {
public PopupItem coerce(String input) {
retu
This sounds like you're objects are getting restored but you are not
putting them back in the list.
Create getter/setter methods for your "value" object and set a
breakpoint in the setter. You should see that setter get called for
each item in that list. The PopupItem should also have it's "value
I tried that but it didn't work. In the class Popup I have added a encoder
public ValueEncoder getEncoder() {
return new ValueEncoder() {
public String toClient(PopupItem value) {
Long key = value.getKey();
return key.toString();
}
Hi
You have to provide an encoder parameter for the loop as the loop is
inside a form and PopupItem does not have a default encoder.
On Mon, Sep 5, 2011 at 4:14 PM, bhorvat wrote:
> Anyone?
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Form-elements-inside-a-com
Anyone?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Form-elements-inside-a-component-tp4749774p4770017.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: