Cool!
So our tests initResolver() should like this: ?
public static SchemaBindingResolver initResolver()
{
MultiClassSchemaResolver resolver = new MultiClassSchemaResolver();
resolver.addClassBindingForLocation("jboss-ds_5_0.xsd", ManagedConnectionFactoryDeploymentGroup.class, ConnectionFactoryDeploymentGroup.class);
return resolver;
}
I will go those testcases done after JBXB 2.0.1 Beta 2 release.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214048#4214048
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214048
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#4214036
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214036
The simplest example it's editing just a text, you can see HtmlTextTemplate class.
In this class exist such lines
VpeElementData textElementData = new VpeElementData();
//here we create mapping for editing between source and visual elements.
NodeData nodeData = new NodeData(sourceNode, visualNewTextNode);
textElementData.addNodeData(nodeData);
Another example AbstractOutputJsfTemplate, line 105.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214035#4214035
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214035
For the html elements, you can edit the values of elements in the visual pane. I've been trying to achieve the same for some of my elements (mainly on, a label).
Changing the children attribute on the template, the modify, textformatting etc, but to no avail. I've been searching in the source as well, but could not find specific things I should do. Any hints? I do not need full examples, just a pointer to something in the source of other editors
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213974#4213974
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4213974