Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Validation for keywords contributed by standard variable resolvers
Validation for keywords contributed by standard variable resolvers [message #474645] Wed, 20 June 2007 14:56 Go to next message
Yury Kats is currently offline Yury Kats
Messages: 104
Registered: July 2009
Senior Member
What is the expected behavior for validation of EL expressions
that use standard keywords such as sessionScope or requestScope?

If I use #{requestScope.test} for a value attribute of an inputText,
it gets marked with "test cannot be resolved as a member of requestScope".

Well, of course it can't. But shouldn't the validator be smart enough
to handle such cases?

Is this working as designed, on somebody's todo list or a bug?
Re: Validation for keywords contributed by standard variable resolvers [message #474646 is a reply to message #474645] Thu, 21 June 2007 16:07 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
This is most likely a bug. I should have probably changed the model
object symbol for scoped variable maps to use IBoundedMapTypeDescriptor so
that it would tolerate open-ended map contents. A possible workaround
would be to override addBuiltins in DefaultDTVariableResolver and install
it as a custom variable resolver.


--Cam
Re: Validation for keywords contributed by standard variable resolvers [message #474647 is a reply to message #474646] Fri, 22 June 2007 09:28 Go to previous message
Yury Kats is currently offline Yury Kats
Messages: 104
Registered: July 2009
Senior Member
On 6/21/2007 4:07 PM, Cameron Bateman wrote:
> This is most likely a bug. I should have probably changed the model
> object symbol for scoped variable maps to use IBoundedMapTypeDescriptor so
> that it would tolerate open-ended map contents. A possible workaround
> would be to override addBuiltins in DefaultDTVariableResolver and install
> it as a custom variable resolver.

Thanks. Filed under https://bugs.eclipse.org/bugs/show_bug.cgi?id=193976
Re: Validation for keywords contributed by standard variable resolvers [message #612064 is a reply to message #474645] Thu, 21 June 2007 16:07 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
Registered: July 2009
Senior Member
This is most likely a bug. I should have probably changed the model
object symbol for scoped variable maps to use IBoundedMapTypeDescriptor so
that it would tolerate open-ended map contents. A possible workaround
would be to override addBuiltins in DefaultDTVariableResolver and install
it as a custom variable resolver.


--Cam
Re: Validation for keywords contributed by standard variable resolvers [message #612065 is a reply to message #474646] Fri, 22 June 2007 09:28 Go to previous message
Yury Kats is currently offline Yury Kats
Messages: 104
Registered: July 2009
Senior Member
On 6/21/2007 4:07 PM, Cameron Bateman wrote:
> This is most likely a bug. I should have probably changed the model
> object symbol for scoped variable maps to use IBoundedMapTypeDescriptor so
> that it would tolerate open-ended map contents. A possible workaround
> would be to override addBuiltins in DefaultDTVariableResolver and install
> it as a custom variable resolver.

Thanks. Filed under https://bugs.eclipse.org/bugs/show_bug.cgi?id=193976
Previous Topic:Validation for keywords contributed by standard variable resolvers
Next Topic:Error getting property from bean
Goto Forum:
  


Current Time: Wed Jul 30 01:17:41 EDT 2014

Powered by FUDForum. Page generated in 0.02194 seconds