Re: tapestry select model

2011-09-21 Thread Jonathan Barker
I'll preface this by saying that I've been following a "recipe" that's "just worked" for years, so I haven't had to make one work from scratch in ages. However Your ValueEncoder will throw NPE's. Have a look at the HibernateEntityValueEncoder in the tapestry-hibernate module - it uses a null

Re: tapestry select model

2011-09-20 Thread csckid
Now I have add an encoder : public class WholeSaleMemberEncoder implements ValueEncoder, ValueEncoderFactory { @Inject private WholeSaleMemberDao wholeSaleMemberDao; @Inject private DatabaseDao databaseDao; public String toClient(WholeSaleM

Re: tapestry select model

2011-09-20 Thread Jonathan Barker
>From the javadoc for SelectModelFactory... ( http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/SelectModelFactory.html ) "The returned model creates for every object in the list a selectable option and relies on existing ValueEncoder

Re: tapestry select model

2011-09-20 Thread csckid
Select component is populated. But I wasn't able to fetch the id variable of the selected object. *CreateWMemberTruck.tml * : *CreateWMemberTruck.java * public class CreateWMemberTruck { @Inject private WholeSaleMemberDao wholeSaleMemberDao;

Re: tapestry select model

2011-09-20 Thread Josh Canfield
This is pretty light on details. You may need to provide some code that demonstrates the problem. On Tue, Sep 20, 2011 at 12:17 PM, csckid wrote: > I am developing a page that will load value of combobox from a database > table. The table is loaded fine. But when I clicked on submit, I can't > a