[
http://jira.jboss.com/jira/browse/RF-2320?page=comments#action_12404381 ]
Tomislav Jakopec commented on RF-2320:
--------------------------------------
Here is simple problem code
bean
import java.util.Date;
import org.jboss.seam.annotations.Name;
@Name("orkaProblem")
public class Problem{
/**
*
*/
private static final long serialVersionUID = 1L;
/**
*
*/
private Date datumVazenja;
public Date getDatumVazenja() {
return datumVazenja;
}
public void setDatumVazenja(Date datumVazenja) {
this.datumVazenja = datumVazenja;
}
private boolean trenutniDatum;
public boolean isTrenutniDatum() {
return trenutniDatum;
}
public void setTrenutniDatum(boolean trenutniDatum) {
this.trenutniDatum = trenutniDatum;
}
}
jsp page
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib
uri="http://jboss.com/products/seam/taglib"
prefix="s"%>
<%@ taglib
uri="http://myfaces.apache.org/tomahawk"
prefix="t"%>
<%@ taglib
uri="http://richfaces.ajax4jsf.org/rich"
prefix="r"%>
<%@ taglib
uri="https://ajax4jsf.dev.java.net/ajax"
prefix="a"%>
<f:view>
<html>
<body>
<h:form>
<t:panelGrid columns="4">
<t:outputText value="#{messages['report.trenutniDatum']}" />
<t:selectBooleanCheckbox value="#{izvjestajZaposlenik.trenutniDatum}"
onkeypress="return disableEnter(event);">
<a:support eventsQueue="red" event="onclick"
action="#{orkaProblem.setTrenutniDatum(!orkaProblem.trenutniDatum)}"
reRender="datumVazenja" />
</t:selectBooleanCheckbox>
<t:outputText
value="#{messages['maticni.zaposlenik.datumVazenja']}" />
<t:inputText id="datumVazenja"
value="#{orkaProblem.datumVazenja}"
onkeypress="return disableEnter(event);" size="10">
<f:convertDateTime
pattern="dd.MM.yyyy" />
</t:inputText>
</t:panelGrid>
</h:form>
</body>
</html>
</f:view>
The function must be used with a prefix when a default namespace is
not specified PROBLEM
-----------------------------------------------------------------------------------------
Key: RF-2320
URL:
http://jira.jboss.com/jira/browse/RF-2320
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Reporter: Tomislav Jakopec
Assigned To: Nick Belaevski
Fix For: 3.2.0
here is my code and it working fine on 3.1.4 GA but 3.2.0 SNAPSHOT not :(
<t:panelGrid columns="4">
<t:outputText value="#{messages['report.trenutniDatum']}"
/>
<t:selectBooleanCheckbox
value="#{izvjestajZaposlenik.trenutniDatum}"
onkeypress="return disableEnter(event);">
<a:support event="onclick"
actionExpression="#{izvjestajZaposlenik.setTrenutniDatum(!izvjestajZaposlenik.trenutniDatum)}"
reRender="datumVazenja" />
</t:selectBooleanCheckbox>
<t:outputText
value="#{messages['maticni.zaposlenik.datumVazenja']}" />
<r:calendar enableManualInput="true"
value="#{izvjestajZaposlenik.datumVazenja}"
id="datumVazenja"
disabled="#{izvjestajZaposlenik.trenutniDatum}"
inputStyle="width: 90px"
oninputkeypress="return disableEnter(event);"
datePattern="#{operKonv.postavkeOperatera.prikazDatuma}" />
</t:panelGrid>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira