Palette NPE

I try to use Palette, but always get a NPE when set the its selected
property.
I have already tried to override equals, hashCode, toString, but still have
this exception.

Anyone have any clue what I might be doing wrong? Thanks!

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:158)
        at
org.apache.tapestry5.internal.structure.RenderPhaseEventHandler$1.render(RenderPhaseEventHandler.java:89)
        at
org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72)
        ... 128 more
        
-----tml file:
<t:Palette model="types" encoder="types" selected="selectedTypes" />

-----java file:
@Property
@Persist
private GenericSelectModel<Type> types; //GenericSelectModel

@Property
@Persist
private List<Type> selectedTypes;




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/NullPointerException-when-using-Palette-tp4430840p4430840.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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

Reply via email to