Encountered problems while trying to implement f:facet tag content assist [message #614428] |
Sun, 16 September 2007 17:05 |
Vadim Dmitriev Messages: 74 Registered: July 2009 |
Member |
|
|
Hi.
I was looking to implement content assist functionality for f:facet. As
I get it, most advanced JSF taglibs heavily use facets to configure
different display aspects of calendars, accordion-panels, popup dialogs,
data-grids and so on. I think it would be useful for developer if he
could just invoke content assist (C/A) within, for example, "h:column"
and select "facet 'header'" or "facet 'footer'". And get as a result
proper f:facet snippet (<f:facet name="header"></f:facet>).
Easy to imagine, than to implement. There are two ways of achieving that
functionality: either to contribute to "tags" C/A or to attribute C/A of
f:facet.
Most natural is to augment JSP C/A and add proper entries to tag
propositions, but I got stuck at very early stage of implementing... I
haven't found a way to alter JSP tag proposals. Seems that it is only
filled from plugin's 'templates' and taglibs tld's. There is no way to
affect this process from external plugins.
The other way is to create special "facet attribute" type and handle
propositions for "name" there, but from my point of view it is not...
well.. *right* way. Though it can be useful on validation stage.
I would be most grateful for any advices. Maybe there were some
enhancement requests for tag proposal contribution mechanism in JSP C/A
that I missed? It is very general feature and I was surprised to find none.
Thanks!
|
|
|
Powered by
FUDForum. Page generated in 0.02826 seconds