When I use Rcfaces components in my project, I find that the valueChangeListener tag (also specifying it as attribute) on h:selectBooleanCheckbox is broken. See the attached war file for an example - replace the index.jsp with rcfaces_index.jsp to view the difference. When using index.jsp, the check box invokes the listener method as expected, but when using rcfaces_index.jsp (which incorporates some RcFaces components), it breaks the JSF listener.
Sample war file - see main description
Logged In: YES
user_id=2069347
Originator: YES
I've omitted the JAR files from the attached file - am using rcfaces-core-jsf1_2-I2528.jar build of RCF with NetBeans 6.0.
Logged In: YES
user_id=306652
Originator: NO
Hello Lance,
Have you an exception, a JavaScript error ?
If not, could you put a <h:messages /> on the top of your page (after <body>) and test it ?
Regards,
Olivier.
Logged In: YES
user_id=306652
Originator: NO
Hello Lance,
Have you an exception, a JavaScript error ?
If not, could you put a <h:messages /> on the top of your page (after <body>) and test it ?
Regards,
Olivier.
Logged In: YES
user_id=2069347
Originator: YES
Hi Olivier
Actually I already have <h:messages/> attached but perhaps not in the right place? See JSP below... Nothing is output though. Also no errors in the server.log.
>>>>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib uri="http://rcfaces.org/core" prefix="v"%>
<%@taglib uri="http://rcfaces.org/html" prefix="vh"%>
<%--
This file is an entry point for JavaServer Faces application.
--%>
<html>
<f:view>
<head>
<link href="styles.css" rel="stylesheet" type="text/css"/>
<title>Test Env</title>
<!-- Needed for RCF JavaScript initialisation -->
<vh:init/>
</head>
<body>
<h:form>
<h:panelGrid styleClass="header-settings">
<h:panelGroup>
<h:outputText value="Just a test" styleClass="header-settings"/>
</h:panelGroup>
</h:panelGrid>
<h:outputText value="JSF outputText testing..."/>
<v:textEntry value="RCF textEntry test...."/>
<v:dateEntry id="pln_date" autoCompletion="true" autoTab="true"
value="01/08/08" literalLocale="en"
literalTimeZone="GMT" dateFormat="dd/MM/yy"
marginLeft="2" marginRight="5"
marginTop="2" marginBottom="2"/>
<v:dateChooser id="pln_date_chooser" for="pln_date"
literalLocale="en" literalTimeZone="CAT"/>
<h:outputText value="#{bean.label}: "/>
<h:selectBooleanCheckbox value="#{bean.checked}" onclick="submit()"
valueChangeListener="#{bean.processValueChange}"/>
<h:panelGrid styleClass="footer-settings">
<h:panelGroup>
<h:commandButton id="submit" value="Submit Changes"
styleClass="button-settings"/>
<h:commandButton id="logoff" value="Logoff"
styleClass="button-settings"/>
</h:panelGroup>
</h:panelGrid>
<h:messages/>
</h:form>
</body>
</f:view>
</html>