[ 
https://issues.apache.org/jira/browse/TAPESTRY-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606920#action_12606920
 ] 

Howard M. Lewis Ship commented on TAPESTRY-2460:
------------------------------------------------

Ok, now with template:

    <t:beaneditform object="parent" add="child">

        <t:parameter name="child">

            <div class="t-beaneditor" style="margin-left: 45px;">
                <h2>Child</h2>
                <t:beaneditor object="parent.child"/>
            </div>
        </t:parameter>

    </t:beaneditform>

The page renders well, but gives error on submit:

java.lang.RuntimeException
Bean editor model for org.apache.tapestry5.integration.app1.data.Person already 
contains a property model for property 'child'.

Stack trace

        * 
org.apache.tapestry5.internal.beaneditor.BeanModelImpl.validateNewPropertyName(BeanModelImpl.java:87)
        * 
org.apache.tapestry5.internal.beaneditor.BeanModelImpl.add(BeanModelImpl.java:128)
        * 
org.apache.tapestry5.internal.beaneditor.BeanModelUtils.add(BeanModelUtils.java:59)
        * 
org.apache.tapestry5.internal.beaneditor.BeanModelUtils.modify(BeanModelUtils.java:39)
        * 
org.apache.tapestry5.corelib.components.BeanEditForm.onPrepareFromForm(BeanEditForm.java:155)


> a BeanEditor contributed through a Block to another BeanEditor creates 
> StackOverflowException when submitted
> ------------------------------------------------------------------------------------------------------------
>
>                 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
>         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]

Reply via email to