Re: Select with @InjectSelectionModel problem (value passed in is null)

2008-12-19 Thread Marcelo Lotif
Great idea, it was corrected. Thanks. On Fri, Dec 19, 2008 at 10:17 AM, Joe123 --- wrote: > > Hi, > > Thanks for your answer. I forgot to add the > public void onPrepare() and therefore the list was empty. > > Thanks. > > One addition for the tapestry wiki page. > > I think it is better to repl

RE: Select with @InjectSelectionModel problem (value passed in is null)

2008-12-19 Thread Joe123 ---
Hi, Thanks for your answer. I forgot to add the public void onPrepare() and therefore the list was empty. Thanks. One addition for the tapestry wiki page. I think it is better to replace: String accessActualName = transformation.addField(Modifier.PRIVATE, "org.apache.tapestry5.ioc.services.

Re: Select with @InjectSelectionModel problem (value passed in is null)

2008-12-19 Thread Marcelo Lotif
Joe, There were some errors on the wiki page and I've already corrected it, but was nothing related with this problem. I can't reproduce it here, can you show some more of your code so I can test it here? On Fri, Dec 19, 2008 at 8:32 AM, Joe123 --- wrote: > > I have been debugging and noticed t

RE: Select with @InjectSelectionModel problem (value passed in is null)

2008-12-19 Thread Joe123 ---
I have been debugging and noticed that the failure is in the GenericValueEncoder.toValue method The idFieldAdapter property is null and therefore it can't find a match. And why is the idFieldAdapter null? Because in the constructor(see below), the list parameter was null after submitting the fo

Select with @InjectSelectionModel problem (value passed in is null)

2008-12-19 Thread Joe123 ---
Hello I use the select component with the @InjectSelectionModel annotation as described here: http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects The select is nicely loaded with categories. Next I submit the form and I notice that the setSelectedCategory method is called. But