Invalid EL expression warning? Possible bug? [message #639904] |
Thu, 18 November 2010 11:14 |
Jason 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06266 seconds