[ 
https://issues.apache.org/jira/browse/TAP5-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12682817#action_12682817
 ] 

Thiago H. de Paula Figueiredo commented on TAP5-573:
----------------------------------------------------

"You should be returning the zone's body (getFormZone().getBody()) to update 
the Zone after submission (in Ajax mode)."

That's something new to me. The documentation just says that the event handler 
must return a component, and Zone is a component. I've doing this for a long 
time (since T5 has Zones, actually) and this exception only ocurrs with 
5.1.0.0+, not with 5.0.18 or past versions. Maybe we should update the docs. 
Anyway, shouldn't Tapestry handle a Zone event handler return? 

> NullPointerException during AJAX form submit
> --------------------------------------------
>
>                 Key: TAP5-573
>                 URL: https://issues.apache.org/jira/browse/TAP5-573
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.1
>            Reporter: Thiago H. de Paula Figueiredo
>            Assignee: Howard M. Lewis Ship
>            Priority: Critical
>
> To reproduce this bug:
> * Checkout the Ars Machina Example Project from SVN: 
> https://ars-machina.svn.sourceforge.net/svnroot/ars-machina/example/branches/1.1
> * Run its Main class (default package)
> * Click in the login link
> * Login as manager (login) manager (password)
> * Click in the project listings link
> * Click in one of the edition links (the second icon)
> * Click the submit button.
> Relevant part of the stack trace:
> java.lang.NullPointerException
>       at 
> org.apache.tapestry5.dom.Element.createNamespaceURIToPrefix(Element.java:676)
>       at org.apache.tapestry5.dom.Element.toMarkup(Element.java:333)
>       at org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:870)
>       at org.apache.tapestry5.dom.Element.toMarkup(Element.java:386)
>       at org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:870)
>       at org.apache.tapestry5.dom.Element.toMarkup(Element.java:386)
>       at org.apache.tapestry5.dom.Element.writeChildMarkup(Element.java:870)
>       at org.apache.tapestry5.dom.Element.getChildMarkup(Element.java:883)
>       at 
> org.apache.tapestry5.internal.services.PageRenderQueueImpl.renderPartial(PageRenderQueueImpl.java:163)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to