Hello all, After having read almost every discussion here on the tree2 component, I am having some final thoughts :-) I am trying since two days now to get the 99,9% common case working: having a tree component and intercepting centrally a clicked ID belonging to the selected node.
First, I have no idea, why it takes quite much code to get this
component working, these f:facet stuff with manual h:commandLink etc. is
nice for customisation, but why not making this optional? I think most
people want to use the tree2 as it is in the examples. Everyone that
wants different style can write another renderer for this component, or
not? And most visual appearance can be achieved by using CSS and
exchanged images...
This would really cause much less coding in the frontend for users of
tree2 - I think it is way too much.
Now, in order to find out an ID of my node selected, I have to query an
f:param the "old" style? Why that? Additionally, in every example you
can read that "t.setNodeSelected" shall be used as action event
listener. Okay, what is "t"? It is never set up as a managed bean, and
only digging example sources and messages here lead up to an idea that
this might be an instance of HtmlTree or so whose instance I cannot
define myself. Okay, how to implement that action event fired, t being
hard wired? Or not? I think that much confusing stuff can be avoided
when documentating the common case in the component overview of the
website and the wiki. No one knows what node and varNodeToggler exactly
can do and how to intercept fired events.
Please, although between the lines that might sound that way, do not
feel offended! I am thankful for that wonderful stuff, especially
because it is an extra on top of JSF standard components.
However, please understand this as my way of constructive criticism that
may be well founded in my misunderstanding of something :-)
However, creating such a tree was very quickly done using tagfiles in
JSP 2.0, so I see less profit i using the tree2 component, that I would
like to use but causes much coding overhead in my POV.
--
greetings, | /"\
| \ / ASCII-Ribbon-Campaign
Timo | X Against HTML Mail
| / \
----------------------------------------------------------------------
PUBLIC KEY:
52F3311A Timo Boewing <[EMAIL PROTECTED]> 2003/10/30
Fingerprint = F743 E0AA A2F0 1B33 F6FA 417B 72BE 740D 52F3 311A
signature.asc
Description: This is a digitally signed message part

