Hi all,
It is not a big problem for my development but I would like to confirm if it is an issue or bug of Spring Framework or whether it is the normal behavior. By the way, if it isn't the most proper place for this post, whoever please make me know and I will move it.
I have a bean with this the next property and respective getters and setters:
Note that the generated getter and setter starts with "c" instead of "C", as I understand it should be.Code:@Column(name = "C_TO_Q_INDICATOR") private String cToQIndicator = null; public String getcToQIndicator() { return cToQIndicator; } public void setcToQIndicator(String cToQIndicator) { this.cToQIndicator = cToQIndicator; }
When I use have a list of that bean and I print it in a JSP page using <c:forEach>, surprisingly it works perfect. However, if I use that bean as model in a JSP rendered by Spring Webflow, I get the next error:
It seems that JSTL classes are using a different mechanism for building the proper getter method dynamically. The question would be, which one is correct?Code:org.springframework.expression.spel.SpelEvaluationException: EL1008E:(pos 0): Field or property 'cToQIndicator' cannot be found on object of type 'ie.i2e2.greenmode.dal.entity.ProjectTestingDetails' at org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:208) at org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:72) at org.springframework.expression.spel.standard.SpelExpression.getValueType(SpelExpression.java:117) at org.springframework.binding.expression.spel.SpringELExpression.getValueType(SpringELExpression.java:100) at org.springframework.webflow.mvc.view.BindingModel.getFormattedValue(BindingModel.java:228) at org.springframework.webflow.mvc.view.BindingModel.getFieldValue(BindingModel.java:142) at org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:120) at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getBindStatus(AbstractDataBoundFormElementTag.java:178) at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getPropertyPath(AbstractDataBoundFormElementTag.java:198) at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getName(AbstractDataBoundFormElementTag.java:164) at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.writeDefaultAttributes(AbstractDataBoundFormElementTag.java:127) at org.springframework.web.servlet.tags.form.AbstractHtmlElementTag.writeDefaultAttributes(AbstractHtmlElementTag.java:421) at org.springframework.web.servlet.tags.form.InputTag.writeTagContent(InputTag.java:142) at org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:102) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79) [...]
I hope anybody is able to explain what is happening, just for curiosity and for reporting a bug whether it really is a bug.
Thanks in advance.
Regards.


Reply With Quote
