You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Dan Adams (JIRA)" <ji...@apache.org> on 2008/10/24 23:17:44 UTC
[jira] Created: (TAP5-311) NPE in BeanDisplay if used in a form
with a default model
NPE in BeanDisplay if used in a form with a default model
---------------------------------------------------------
Key: TAP5-311
URL: https://issues.apache.org/jira/browse/TAP5-311
Project: Tapestry 5
Issue Type: Bug
Components: tapestry-core
Affects Versions: 5.0.15
Reporter: Dan Adams
Create something like this:
<t:form>
<t:beandisplay object="foo" include="bar" />
</t:form>
and submit the form. You get a NPE in beandisplay. The workaround is to create the model yourself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAP5-311) NPE in BeanDisplay if used in a form
with a default model
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643244#action_12643244 ]
Howard M. Lewis Ship commented on TAP5-311:
-------------------------------------------
How about a stack trace?
> NPE in BeanDisplay if used in a form with a default model
> ---------------------------------------------------------
>
> Key: TAP5-311
> URL: https://issues.apache.org/jira/browse/TAP5-311
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Dan Adams
>
> Create something like this:
> <t:form>
> <t:beandisplay object="foo" include="bar" />
> </t:form>
> and submit the form. You get a NPE in beandisplay. The workaround is to create the model yourself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAP5-311) NPE in BeanDisplay if used in a form
with a default model
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645896#action_12645896 ]
Howard M. Lewis Ship commented on TAP5-311:
-------------------------------------------
I suspect the problem here is that BeanDisplay has an internal Loop that's driven off of the model property of BeanDisplay, and that is null with no form-aware logic to set it up, the way that BeanEditor does.
The solution is to provide the model parameter.
> NPE in BeanDisplay if used in a form with a default model
> ---------------------------------------------------------
>
> Key: TAP5-311
> URL: https://issues.apache.org/jira/browse/TAP5-311
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Dan Adams
>
> Create something like this:
> <t:form>
> <t:beandisplay object="foo" include="bar" />
> </t:form>
> and submit the form. You get a NPE in beandisplay. The workaround is to create the model yourself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAP5-311) NPE in BeanDisplay if used in a form
with a default model
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAP5-311:
--------------------------------------
Priority: Minor (was: Major)
There's easy workarounds for this, and it seems like an edge case to me.
> NPE in BeanDisplay if used in a form with a default model
> ---------------------------------------------------------
>
> Key: TAP5-311
> URL: https://issues.apache.org/jira/browse/TAP5-311
> Project: Tapestry 5
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.15
> Reporter: Dan Adams
> Priority: Minor
>
> Create something like this:
> <t:form>
> <t:beandisplay object="foo" include="bar" />
> </t:form>
> and submit the form. You get a NPE in beandisplay. The workaround is to create the model yourself.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org