[
https://jira.jboss.org/jira/browse/EMBJOPR-55?page=com.atlassian.jira.plu...
]
Ian Springer resolved EMBJOPR-55.
---------------------------------
Resolution: Done
Done - r72.
Rebuild content behind navigation nodes using InventoryEventListener
--------------------------------------------------------------------
Key: EMBJOPR-55
URL:
https://jira.jboss.org/jira/browse/EMBJOPR-55
Project: Embedded Jopr
Issue Type: Feature Request
Reporter: Charles Crouch
Assignee: Ian Springer
Fix For: 1.1
Right now we rebuild the content behind a node in the navigation using the following
method on NavigationAction
public void changeExpandListener(org.richfaces.event.NodeExpandedEvent event) {
UIComponent comp = event.getComponent();
UITree tree = (UITree) comp;
JONTreeNode data = (JONTreeNode) (tree.getTreeNode().getData());
data.reInitializeChildrenMap();
}
This isnt great because it requires the user to close/open the node inorder to have its
children refreshed to match whats in the PC. This is problematic when resources are
deployed/undeployed directly to the filesystem, see JBMANCON-419. An alternative would be
to use an implementation of InventoryEventListener to listen to resource added events from
the PC and then behind the scenes rebuild the appropriate Nodes. For this to work a bug
will need to be fixed in the RuntimeDiscoveryExecutor which is causing resourceAdd events
to get fired for every discovery.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira