I am trying to build a component tree in JSF 1.2 (Mojarra), where the tree consists of several types of transition nodes and leaf. Each node leaf should be displayed in a unique way and should be sent back with potential changes. The goal is to allow the user to update processing logic, where each leaf node represents an operation, such as "value is equal" or "value is not equal."
For instance:
Root | +- InternalNode1 (type I_A) | | | +- LeafNode1 (type L_A) | | | +- LeafNode2 (type L_B) | +- InternalNode2 (type I_B) | +- LeafNode3 (type L_B) | +- LeafNode4 (type L_A)
Each node leaf type must be rendered differently, depending on the needs of this node type. In addition, the tree will be modified, and nodes can be added or removed using Javascript and updates sent back to the server, etc. For example, in the above tree, LeafNode4 can be deleted or its type has changed to L_B.
Is this possible with JSF components? Am I mistaken when trying to use polymorphic user interface components?
source share