You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Zied Hamdi (JIRA)" <de...@myfaces.apache.org> on 2008/01/09 11:54:34 UTC

[jira] Created: (TOBAGO-586) tc:panel, tc:box, and maybe tc:sheet change attribute or facet

tc:panel, tc:box, and maybe tc:sheet change attribute or facet
--------------------------------------------------------------

                 Key: TOBAGO-586
                 URL: https://issues.apache.org/jira/browse/TOBAGO-586
             Project: MyFaces Tobago
          Issue Type: New Feature
          Components: Core
    Affects Versions: 1.0.13
         Environment: any, maybe even in a common branch with other myFaces implementations
            Reporter: Zied Hamdi


I need to keep track of any change inside a panel, this is a frequent case in UI developement: e.g: to enable a save button or open a popup 'do you want to save changes' (when any occured). 
 
A few years ago I made an analogous mecanism in swing: I extended Panel.add() (and remove()) and made it add a listener to the added component to check if changes has occured). The extended panel must it self implement the onChange event features and interfaces to respond to nested panels events (and forward them to its parent). The opposite sens was also possible with a visitor that did an action on any element in the container.

Containers in Tobago like panel, box or (editable) sheet could have a 'change' facet  (maybe also a disable attribute to enable/disable (with the visitor pattern) all elements in the container, but this must maybe done in another feature request). 

Other common containers like f:subview, and f:form can also implement this feature.

Regards,
Zied

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