Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » Invalid EL expression warning? Possible bug?
Invalid EL expression warning? Possible bug? [message #639904] Thu, 18 November 2010 11:14 Go to next message
Jason is currently offline JasonFriend
Messages: 2
Registered: November 2010
Location: Here
Junior Member
I have a getter that returns a Map<String, String> and either I am doing soemthing wrong or Eclipse is raising an errorneous warning message

A very simple bean:
private Map<String, String> myMap = new HashMap<String,String>();

public MyBean()
{
    myMap.put("Bar", "Test");
}

public Map<String, String> getMyMap()
{
    return this.myMap;
}

public String doSoemthing()
{
    //Do something
    return "dummy";
}


Referenced from a simple xhtml file:
<h:form id="testForm">
    <h:panelGrid columns="2">
        <h:outputLabel id="lblBar" for="txtBar" value="Bar:" />
        <h:inputText id="txtBar" value="#{myBean.myMap['bar']}" />
    </h:panelGrid>
    <h:commandButton id="btnDoSomething" value="Click" action="#{myBean.doSomething}" />
</h:form>


Eclipse raises the warning "Attribute expects settable value, but expression is not settable" about the EL expression of the inputText, even though it works correctly and is settable.
Is this a bug? I don't want to raise one needlessly.

[Updated on: Thu, 18 November 2010 11:36]

Report message to a moderator

Re: Invalid EL expression warning? Possible bug? [message #639994 is a reply to message #639904] Thu, 18 November 2010 15:44 Go to previous messageGo to next message
Yury Kats is currently offline Yury KatsFriend
Messages: 104
Registered: July 2009
Senior Member
On 11/18/2010 6:14 AM, Jason wrote:
> Eclipse raises the warning "Attribute expects settable value, but expression is not settable" about the EL expression of the inputText, even though it works correctly and is settable.
> Is this a bug? I don't want to raise one needlessly.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=242907
Re: Invalid EL expression warning? Possible bug? [message #640016 is a reply to message #639994] Thu, 18 November 2010 16:55 Go to previous message
Jason is currently offline JasonFriend
Messages: 2
Registered: November 2010
Location: Here
Junior Member
Thanks, I did do a search before posting. Obviously your Bugzilla Kung Fu is stronger than mine. Smile
Previous Topic:Facelets Project
Next Topic:JSF Support in Galileo
Goto Forum:
  


Current Time: Thu Mar 28 10:02:40 GMT 2024

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

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

Back to the top