Re: select problem render queue

2014-07-15 Thread Geoff Callender
Have you seen this example and the ones around it? http://jumpstart.doublenegative.com.au/jumpstart7/examples/select/easyobject HTH, Geoff On 16 Jul 2014, at 1:56 am, squallmat . wrote: > But I was getting the problem at page loading. I haven't been able yet to > do a form submission

Re: select problem render queue

2014-07-15 Thread squallmat .
But I was getting the problem at page loading. I haven't been able yet to do a form submission, so setupRender should have been enough for that, right ? I probably miss something on this. But it's now working :) And thanks for your time for helping me (I'm discovering this framework). 2014-07-15

Re: select problem render queue

2014-07-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Jul 2014 10:48:02 -0300, squallmat . wrote: Ok I resolved the problem, I went from declaring the encoder with : @Property private TypeClientDtoEncoder typeClientDtoEncoder; to : public TypeClientDtoEncoder getTypeClientDtoEncoder() { return new TypeClientDtoEncoder(); } and now

Re: select problem render queue

2014-07-15 Thread squallmat .
Ok I resolved the problem, I went from declaring the encoder with : @Property private TypeClientDtoEncoder typeClientDtoEncoder; to : public TypeClientDtoEncoder getTypeClientDtoEncoder() { return new TypeClientDtoEncoder(); } and now it works :pstrange 2014-07-15 14:58 GMT+02:00 Thiago H

Re: select problem render queue

2014-07-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Jul 2014 07:03:32 -0300, squallmat . wrote: the null pointer exception comes from : at org.apache.tapestry5.internal.util.SelectModelRenderer. option(SelectModelRenderer.java:51) which is, in the code of tapestry this : @SuppressWarnings("unchecked") public void option(Optio

Re: select problem render queue

2014-07-15 Thread Thiago H de Paula Figueiredo
On Tue, 15 Jul 2014 06:28:46 -0300, Geoff Callender wrote: If I read Bob right, I think Bob said his problem was not due to nulls, it was due to the selected value not being one of the values in the OptionModel. This can be caused by the lack of a good implementation of equals() and ha

Re: select problem render queue

2014-07-15 Thread squallmat .
the null pointer exception comes from : at org.apache.tapestry5.internal.util.SelectModelRenderer. option(SelectModelRenderer.java:51) which is, in the code of tapestry this : @SuppressWarnings("unchecked") public void option(OptionModel optionModel) { Object optionValue = option

Re: select problem render queue

2014-07-15 Thread Geoff Callender
If I read Bob right, I think Bob said his problem was not due to nulls, it was due to the selected value not being one of the values in the OptionModel. It might also be worth trying secure="literal:false" on the Select. On 15 Jul 2014, at 5:59 pm, squallmat . wrote: > I tried to see what was

Re: select problem render queue

2014-07-15 Thread squallmat .
I tried to see what was in my selectmodel after the factory loading with this code : // initialize selectmodels selectType = selectModelFactory.create(typeClientList, "nomType"); List optionModelList = selectType.getOptions(); System.out.println("begin"); for (OptionModel optionModel : optionMod

Re: select problem render queue

2014-07-14 Thread Bob Harner
I haven't read through this thread very carefully, but last week I got a nearly identical stack trace. It was from Palette, not Select, but those components have a lot of identical code. In my case the problem was that the SelectModel had all of the expected values *except* the selected value. Tape

Re: select problem render queue

2014-07-11 Thread squallmat .
When I do this : selectType = selectModelFactory.create(typeClientList, "nomType"); selectApplications = selectModelFactory.create(applicatifList, "nom"); each lists (typeClientList and applicatifList) are not empty. And for the second parameter, I put the variable name of a String of an object

Re: select problem render queue

2014-07-10 Thread Thiago H de Paula Figueiredo
On Thu, 10 Jul 2014 09:51:08 -0300, squallmat . wrote: Caused by: java.lang.NullPointerException at org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:51) Check whether you passed a null OptionModel to the SelectionModel. -- Thiago H. de Paula Figueiredo