For now no direct mechanism force for updating elements, you can manipulate of update
element for which template was created by overriding method isRecreateAtAttrChange(..) of
VpeAbstractTemplate.
Also you can see VpeVisualDomBuilder class, line 967. Here exists such code
// TODO Ssergey Vasilyev make a common code for figuring out
// if it is need to update parent node or not
private Node getNodeForUpdate(Node sourceNode) {
/* Changing of or tags can affect whole the table */
Node sourceTable = getParentTable(sourceNode, 2);
if (sourceTable != null) {
return sourceTable;
}
/* Changing of an tag can affect the parent select */
Node sourceSelect = getParentSelect(sourceNode);
if (sourceSelect != null) {
return sourceSelect;
}
return sourceNode;
}
but common code, hasn't been created yet.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214036#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...