[
https://issues.apache.org/jira/browse/TAPESTRY-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619045#action_12619045
]
Martin Papy commented on TAPESTRY-2460:
---------------------------------------
Hi Howard,
I have also the same problem. I use a BeanEditor for editing a 'complex'
property by contributing to BeanBlockSource. The display goes well, but the
update throw the StackOverflowError like Kristian.
BTW I did'nt had the error when putting directly the BeanEditor in the
BeanEditForm. It occured only when I wanted to use the BeanBlockSource
For the contribution I followed exactly the exemple given in "Adding New
Property Editors" the doc :
http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/beaneditform.html.
in AppPropertyEditBlocks.java
@Environmental
private PropertyEditContext _context;
@Component(parameters = { "object=address" }) // We need to cast from Object to
Address to make the BeanEditor work
private BeanEditor _addressEditor;
public Address getAddress() {
return ((Address)getContext().getPropertyValue());
}
in AppPropertyEditBlocks.tml
<t:container xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
<t:block id="address">
<fieldset>
<legend align="top">${message:address-legend}</legend>
<t:beanEditor t:id="addressEditor" />
</fieldset>
</t:block>
</t:container>
> Nested BeanEditors (where the block parameter for a property to one
> BeanEditor contains another BeanEditor) results in a StackOverflowException
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-2460
> URL: https://issues.apache.org/jira/browse/TAPESTRY-2460
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.13
> Reporter: Kristian Marinkovic
> Assignee: Howard M. Lewis Ship
> Fix For: 5.0.14
>
> Attachments: beaneditor.zip
>
>
> the eclipse/maven example project shows how a StackOverflowException is
> thrown if a Form is submitted that contains a BeanEditor that itself contains
> another BeanEditor. However the initial display works perfectly.
> somehow i suspect the PropertyConduits to be responsible because two of them
> produce the infinite loop.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]