[richfaces-issues] [JBoss JIRA] (RF-13648) Graph Validator + Tomcat 8.0.8: interpret empty strings as null is ignored
Juraj Húska (JIRA)
issues at jboss.org
Tue Jun 3 08:32:16 EDT 2014
[ https://issues.jboss.org/browse/RF-13648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12972815#comment-12972815 ]
Juraj Húska commented on RF-13648:
----------------------------------
You can workaround the problem in your example project for example by altering the setter method for the {{swift}} bean property, like:
{code}
public void setSwiftCode(String swiftCode) {
if(swiftCode == null || swiftCode.isEmpty()) {
this.swiftCode = null;
} else {
this.swiftCode = swiftCode;
}
}
{code}
> Graph Validator + Tomcat 8.0.8: interpret empty strings as null is ignored
> --------------------------------------------------------------------------
>
> Key: RF-13648
> URL: https://issues.jboss.org/browse/RF-13648
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Affects Versions: 4.3.7
> Environment: Tomcat 8.0.8, OpenJDK 7, OpenSuse 13.1 x64
> Reporter: Tony Cramer
> Assignee: Juraj Húska
> Attachments: rf-demo.zip
>
>
> {{javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL}} is ignored during Graph validating.
> Some debugging info:
> Object being validated ({{value}} argument) in method {{org.richfaces.validator.BeanValidatorServiceImpl.validateObject}} contains empty strings ("").
> Expected behavior: There should be nulls in properties, because interpreting empty strings as null is enabled.
> This causes validation to not pass.
> Something has changed in _jasper-el_ in Tomcat 8.0.8 which I updated recently from 8.0.5. If I replace _jasper-el.jar_ from Tomcat 8.0.5, everything works.
> Tomcat bug or RF bug?
> Edit:
> It's definitely JSF/RF's issue. Tomcat EL has changed to meet EL spec.
> https://issues.apache.org/bugzilla/show_bug.cgi?id=56522
> Edit:
> Simple project for reproducing the issue attached (rf-demo.zip).
> - Build WAR with Maven (3.2.1 tested)
> - Get a clean Tomcat 8.0.8, unpack
> - Place WAR into webapps
> - Run tomcat
> - Open http://localhost:8080/rf-demo-1.0-SNAPSHOT
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)
More information about the richfaces-issues
mailing list