|Encountered problems while trying to implement f:facet tag content assist [message #475087]
||Sun, 16 September 2007 17:05
| Vadim Dmitriev
Registered: July 2009
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
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.
Powered by FUDForum
. Page generated in 0.05505 seconds