Dear All,
I am looking to use jsf to add a tree to allow people to insert std
documentation into an object model expressed in an xml format.
basically you have some XML which is:
Class name="MyClass" /Attribute name="MyAttrib" /DataType name="MyDatatype"
In the schema I have created to cope with this, within each datatype you
can have a number of different text elements (e.g. a boolean datatype
would obviously have text for "false" & text for "true". Equally a given
Class/Attrib/DataType might have different documentation dependent upon
where it's being used/the sort of model it's being used.
So .....many text children of datatype each of which carries a "value"
attrib so that I can drill right down to the right piece of
documentation for a datatype with that value in that attrib in that class.
Onto my JSF question
I have created a JSF tree where the treemodel is based on a JDOM Dom (if
anyone wants the code I can post it) which contains everything & my
initial choice (I am opening the tree in a popup/new window based on a
link in another page) can give me the classname, Attrib name, datatype
name etc right down to the value of the datatype.
What I want to be able to do is to unroll the tree to that point & set
the focus to the lowest level I can find a match for (e.g. if there was
no datatype value then just show me all the datatypes for that
class/attrib but with the focus set to the element/node with that
datatype name.
Any ideas/tips/hints?
TIA
Adam