[ 
https://issues.apache.org/jira/browse/TRINIDAD-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630592#action_12630592
 ] 

Andrew Robinson commented on TRINIDAD-1226:
-------------------------------------------

How is this a bug?

You are clearing the children component on every single get call. A component 
should only be created once per component tree, not every time that the binding 
expression is evaluated.

I would suggest that you try to alter your code to make sure the component is 
only created once (use an attribute on the parent component). 

The way the code is now, all local values of the children will be lost every 
time the binding expression is evaluated, which would break any submission of 
data.

> CoreShowDetails doesn't function when created programatically
> -------------------------------------------------------------
>
>                 Key: TRINIDAD-1226
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1226
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 1.0.7-core
>         Environment: Tomcat 5.5.23 and 6.0.14
>            Reporter: Shane Petroff
>            Priority: Blocker
>         Attachments: showDetailBug.txt
>
>
> Unfortunately upgrading to 1.0.8 and 9 results in additional problems...
> See the attached file, it is not a complete application, but includes a 
> navigation snippet, bean def. jsp and backing bean code, so it should be very 
> easy to integrate into an existing or new project.
> The issue is that the show details component does not function. It is 
> rendered, but is non-functional.

-- 
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