i have a strange problem with a simple <h:inputText> which is not updating after the commandButton is pressed.
Below i have posted my simple testcode which i used trying to pinpoint the problem. Behind this XHTML is a simple ManagedBean with just the property name. Getters and setters are implemented.
The realy funny thing is that it is working perfect if the inputText is set to disabled="true" - but as you can imagine that is no solution for my problem ,-)
There is no difference in using the standard JSF 2.0 inputText or the primefaces-inputText
I tried PF 2.1.1 and 3 and i'm using Mojarra 2.0.2 on Glassfish. Can please someone help me to get this simple thing working?
Many thanx in advance...
Chris
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head>
<title>test</title>
<link type="text/css" rel="stylesheet" href="css/main.css" />
</h:head>
<h:body>
<f:view contentType="text/html">
<h:form>
<p:inputText value="#{testBean.name}"/>
<p:commandButton value="test" update="ausgabe"/>
<h:inputText id="ausgabe" value="#{testBean.name}" disabled="false"/>
</h:form>
</f:view>
</h:body>
</html>