Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Encountered problems while trying to implement f:facet tag content assist
Encountered problems while trying to implement f:facet tag content assist [message #475087] Sun, 16 September 2007 17:05 Go to next message
Vadim Dmitriev is currently offline Vadim DmitrievFriend
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!
Re: Encountered problems while trying to implement f:facet tag content assist [message #475089 is a reply to message #475087] Fri, 21 September 2007 21:05 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
The content assist framework for SSE is unfortunately not well suited at
the moment for adopter extension. If you look at
JSFELContentAssistProcessor and JSFContentAssistProcessor classes, you can
see what we have done in this area. We did get some improvements around
quick fix in WTP2.0, however be warned forewarned that much of the API is
either internal or internal.provisional.


--Cam
Re: Encountered problems while trying to implement f:facet tag content assist [message #614430 is a reply to message #475087] Fri, 21 September 2007 21:05 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
The content assist framework for SSE is unfortunately not well suited at
the moment for adopter extension. If you look at
JSFELContentAssistProcessor and JSFContentAssistProcessor classes, you can
see what we have done in this area. We did get some improvements around
quick fix in WTP2.0, however be warned forewarned that much of the API is
either internal or internal.provisional.


--Cam
Previous Topic:Encountered problems while trying to implement f:facet tag content assist
Next Topic:UIComponents and its bean
Goto Forum:
  


Current Time: Wed Apr 24 18:58:38 GMT 2024

Powered by FUDForum. Page generated in 0.02582 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top