Maybe this helps: http://balusc.omnifaces.org/2015/10/the-empty-string-madness.html
Em sáb, 16 de mar de 2019 às 16:29, Erick de Oliveira Leal < [email protected]> escreveu: > I forgot to add bean and xhtml: > > <!DOCTYPE html> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:ui="http://java.sun.com/jsf/facelets" > xmlns:f="http://java.sun.com/jsf/core" > xmlns:p="http://primefaces.org/ui" > xmlns:h="http://java.sun.com/jsf/html"> > <f:metadata> > > <f:viewParam name="test" value="#{testView.testString}" /> > <f:viewAction action="#{testView.inicializar}" /> > > </f:metadata> > <h:head> > <title>PrimeFaces Test</title> > </h:head> > <h:body> > > <h:form id="cadastro"> > </h:form> > > > </h:body> > </html> > > ----------------------------------------------------------------------- > > package org.primefaces.test; > > import java.io.Serializable; > > import javax.faces.bean.ManagedBean; > import javax.faces.bean.ViewScoped; > > @ManagedBean(name = "testView") > @ViewScoped > public class TestView implements Serializable { > private String testString; > > public void inicializar() { > System.out.println("initializing: " + testString); > > } > > public void inserirNaLista() { > System.out.println(testString); > } > > public String getTestString() { > return testString; > } > > public void setTestString(String testString) { > this.testString = testString; > } > > } > > > Em sáb, 16 de mar de 2019 às 18:54, Erick de Oliveira Leal < > [email protected]> escreveu: > > > I was testing here. And INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL > > have different behavior using Jetty and WildFly 16 + MyFaces 2.3.3 > > > > 1st case: > > http://localhost:8080/primefaces-test/test.xhtml > > WildFly: value is null > > Jetty: Value is null > > > > 2nd case: > > http://localhost:8080/primefaces-test/test.xhtml?test= > > WildFly: value is null > > Jetty: Value = value is empty string > > > > Using Mojarra 2.3.9 value is always null in both servers. > > >

