| Summary: | input tags value attribute invalid when EL value evaluates to an object | ||
|---|---|---|---|
| Product: | [WebTools] Java Server Faces | Reporter: | Gerry Kessler <gerry.kessler> |
| Component: | Core | Assignee: | Cameron Bateman <cameron.bateman> |
| Status: | VERIFIED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | dimitar.giormov, florian_reiser, mars1965, yavor.vasilev.boyadzhiev |
| Version: | 1.5 | Keywords: | bugday, helpwanted |
| Target Milestone: | 3.0 | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
I neglected to mention that a converter has been applied in the above cases that could convert to a String.
Example from Core JSF samples: converter2
<h:inputText id="card" value="#{payment.card}">
<f:converter converterId="com.corejsf.CreditCard"/>
</h:inputText>
where,
public class CreditCard {
private String number;
public CreditCard(String number) { this.number = number; }
public String toString() { return number; }
}
Triaged for WTP 2.0 Encountered the same problem (with the standard date-converter). My System: OS: Win XP prof., Apache 5.0.31, myfaces 1.09. Need to defer this one to 3.0 unless it is critical for anyone. Requires the ability to analyze nested components. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=202697 to track future improvements in this area. *** This bug has been marked as a duplicate of bug 198730 *** verified as dupe |
The value attribute is being incorrectly marked invalid with "EL expression does not evaluate to expected types for this attribute". <h:inputText value="#{bean.val}"/> when val is an object. <h:inputText value="#{bean.date}"/> is another example.