Re: T5.1: Palette causing a NPE upon form submit

2009-06-16 Thread immutability

Found the cause of this issue - after a painful search... :) It was my
mistake.

For anyone running into the same issue with NullPointerException and Palette
component, if you want to use the Palette component with objects (e.g. list
of domain objects returned from a database) remember to implement equals and
hashCode properly.

The issue also was not related to the server-side validators in any way. It
simply occurs when the page containing the Palette component needs to render
itself after processing a server-side event. So if such an event (e.g.
onSuccess) returns another page instance (effectively resulting in a
redirect after processing the event) no problems will occur. But if it
returns null, and at the same time some items are on the selected side
within the Palette, the NullPointerException will be thrown.

Rado
-- 
View this message in context: 
http://www.nabble.com/T5.1%3A-Palette-causing-a-NPE-upon-form-submit-tp23996561p24061989.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



T5.1: Palette causing a NPE upon form submit

2009-06-12 Thread immutability
)
at
$PageRenderRequestHandler_121d408dea7.handle($PageRenderRequestHandler_121d408dea7.java)
at
$PageRenderRequestHandler_121d408de90.handle($PageRenderRequestHandler_121d408de90.java)
at
org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
at
$ComponentRequestHandler_121d408de94.handlePageRender($ComponentRequestHandler_121d408de94.java)
at
org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
at $Dispatcher_121d408de96.dispatch($Dispatcher_121d408de96.java)
at $Dispatcher_121d408de8a.dispatch($Dispatcher_121d408de8a.java)
at
org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:245)
...
...
...
-- 
View this message in context: 
http://www.nabble.com/T5.1%3A-Palette-causing-a-NPE-upon-form-submit-tp23996561p23996561.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