Skip to main content


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 18:56 Go to next message
Yury Kats is currently offline Yury KatsFriend
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 20:07 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
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 13:28 Go to previous message
Yury Kats is currently offline Yury KatsFriend
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 20:07 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
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 13:28 Go to previous message
Yury Kats is currently offline Yury KatsFriend
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: Thu Apr 18 04:02:05 GMT 2024

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

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

Back to the top