tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Charles <nchar...@linagora.com>
Subject Re: [T5] Palette NPE
Date Mon, 01 Dec 2008 16:35:02 GMT
I just had this issue; it was because the object overrided the "equals" 
method, but not "hashCode", hence the selected object couldn't be found 
in the selected set.

Nick


zack1403 wrote:
> Bump for help on this?  Is the because genericSelectModel.getOptionGroups
> returns null?  
>
> This occurs intermitently and I havent been able to find a workaround.
>
> Zack
>
>
> zack1403 wrote:
>   
>> Hey All,
>>
>> I'm getting a NullPointerException when the palette component in 5.0.16:
>>
>> Caused by: java.lang.NullPointerException
>> 	at
>> org.apache.tapestry5.internal.util.SelectModelRenderer.option(SelectModelRenderer.java:49)
>> 	at
>> org.apache.tapestry5.corelib.components.Palette$SelectedRenderer.render(Palette.java:147)
>> 	at
>> org.apache.tapestry5.internal.structure.ComponentPageElementImpl$RenderPhaseEventHandler$1.render(ComponentPageElementImpl.java:164)
>> 	at
>> org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72)
>>
>> I'm populating the palette using the code below:
>>
>> selectEncoder = new
>> GenericValueEncoder<StringBean>(this.spreadsheetHeaders);
>> selectModel = new GenericSelectModel<StringBean>(this.spreadsheetHeaders,
>> StringBean.class, "value", "value", propertyAccess);
>>
>> Am I using this correctly?
>>
>> Thanks,
>> Zack
>>
>>     
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Mime
View raw message