Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Asking jsf semantics validator for ISymbol created from jsf tag attribute
Asking jsf semantics validator for ISymbol created from jsf tag attribute [message #475608] Fri, 14 March 2008 12:42 Go to next message
Vadim Dmitriev is currently offline Vadim Dmitriev
Messages: 74
Registered: July 2009
Member
Hi.

Is there a way to request wtp.jsf framework from some ContextSymbolFactory
for a result of symbol resolution process for a specific JSP tag attribute?
Just thought that there are cases when ISymbol for/from some attribute
created by ContextSymbolFactory can be reused by other factories/attribute
types.
For example, tr:table. Its 'var' attribute symbol can be re-used for
'current' property of 'varStatus' and 'sortProperty' of every nested
tr:column (and maybe somewhere else). Validation/symbol creation for every
of these attributes requires almost identical information to be calculated
multiple times. It will speed up validation a little if there is a
possibility just to ask jsp semantics validator for a symbol (if any) of
some jsp tag attribute.
And if there is none, is there a way to create listener for some 'JSP
semantics validation started' event?

Thanks!
Re: Asking jsf semantics validator for ISymbol created from jsf tag attribute [message #475616 is a reply to message #475608] Thu, 20 March 2008 17:52 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
It's an interesting idea. We don't currently have a way to do this
directly. If you know the name and scope of the symbol being created on
the page, you could look for it in the symbol map for that page by
requesting the DTFacesContext, then going to the DTExternalContext.

I suppose a logical extension of this idea might be to have a cache of
IJavaTypeDescriptor's. We'd have to do it per-classpath (project), but it
might speed up a log of the property resolutions.



--Cam
Re: Asking jsf semantics validator for ISymbol created from jsf tag attribute [message #617515 is a reply to message #475608] Thu, 20 March 2008 17:52 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
It's an interesting idea. We don't currently have a way to do this
directly. If you know the name and scope of the symbol being created on
the page, you could look for it in the symbol map for that page by
requesting the DTFacesContext, then going to the DTExternalContext.

I suppose a logical extension of this idea might be to have a cache of
IJavaTypeDescriptor's. We'd have to do it per-classpath (project), but it
might speed up a log of the property resolutions.



--Cam
Previous Topic:Trinidad installation
Next Topic:problems with web project on wtp
Goto Forum:
  


Current Time: Sun Oct 26 05:24:07 GMT 2014

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

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