Asking jsf semantics validator for ISymbol created from jsf tag attribute [message #475608] |
Fri, 14 March 2008 08:42  |
Eclipse User |
|
|
|
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 13:52  |
Eclipse User |
|
|
|
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 13:52  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03240 seconds