rich:message clash with facelets?
freemarket Jan 25, 2008 3:13 PMHi,
I receive the following error message in the console of JB dev studio 1.0.0.GA:
Jan 25, 2008 2:42:34 PM org.richfaces.renderkit.RichMessageBaseRenderer findForComponent
WARNING: component not found in the view WARNING:subcomp0
Jan 25, 2008 2:42:34 PM org.richfaces.renderkit.RichMessageBaseRenderer findForComponent
WARNING: component not found in the view WARNING:vernum0
Jan 25, 2008 2:42:34 PM org.richfaces.renderkit.RichMessageBaseRenderer findForComponent
WARNING: component not found in the view WARNING:subcomp1
Jan 25, 2008 2:42:34 PM org.richfaces.renderkit.RichMessageBaseRenderer findForComponent
WARNING: component not found in the view WARNING:vernum1
Jan 25, 2008 2:42:34 PM org.richfaces.renderkit.RichMessageBaseRenderer findForComponent
WARNING: component not found in the view WARNING:subcomp2
Jan 25, 2008 2:42:34 PM org.richfaces.renderkit.RichMessageBaseRenderer findForComponent
WARNING: component not found in the view WARNING:vernum2
when I run my dynamic web application with JSF in the workbench.
This is a form which uses facelets to build individual rows which can be
dynamically increased or decreased in number by ajax.
The top panel follows:
<ui:composition 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:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"> <rich:panel id="subcomppanel" headerClass="head2" bodyClass="inpanelBody"> <f:facet name="header">Subcomponents</f:facet> <table> <tr> <th><h:outputText value="#{msgs.subcomp}"/></th> <th><h:outputText value="#{msgs.vernum}"/></th> <th><h:outputText value="#{msgs.comptype}"/></th> <th><h:outputText value="#{msgs.ispkg}"/></th> <th><h:outputText value="#{msgs.devinstruct}"/></th> </tr> <a4j:repeat id="subcomprows" value="#{reqcomp.keylist}" rowKeyVar="rowKey" ajaxKeys="#{reqcomp.rowsToUpdate}"> <ui:include src="subcomp.xhtml"> <ui:param name="instnum" value="${rowKey}"/> </ui:include> </a4j:repeat> </table> <h:panelGrid columns="3"> <a4j:commandButton reRender="subcomppanel" action="#{reqcomp.incrRownum}" value="More"/> <a4j:commandButton reRender="subcomppanel" action="#{reqcomp.decrRownum}" immediate="true" value="Less"/> <a4j:commandButton value="Clear"/> </h:panelGrid> </rich:panel> </ui:composition>
and the included row:
<ui:composition 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:rich="http://richfaces.org/rich" xmlns:a4j="http://richfaces.org/a4j"> <tr> <td><h:inputText id="subcomp#{instnum}" value="#{subcompnt.name}"/> <rich:message for="subcomp#{instnum}"> <f:facet name="errorMarker"/> </rich:message> </td> <td><h:inputText id="vernum#{instnum}" value="#{subcompnt.version}"/> <rich:message for="vernum#{instnum}"> <f:facet name="errorMarker"/> </rich:message> </td> <td><h:selectOneListbox size="1" id="comptype#{instnum}" value="#{subcompnt.type}"> <f:selectItems value="#{sel.comptype}"/> </h:selectOneListbox></td> <td><h:selectOneListbox size="1" id="ispkg#{instnum}" value="#{subcompnt.ispkg}"> <f:selectItems value="#{sel.yn}"/> </h:selectOneListbox></td> <td><h:selectOneListbox size="1" id="devinstructsel#{instnum}" value="#{subcompnt.specialInstructions}"> <f:selectItems value="#{sel.yn}"/> </h:selectOneListbox></td> </tr> </ui:composition>
The environment is using the following jars:
-rwx------+ 1 hkatz mkpasswd 188671 Jan 11 17:13 commons-beanutils-1.7.0.jar
-rwx------+ 1 hkatz mkpasswd 571259 Jan 11 17:13 commons-collections-3.2.jar
-rwx------+ 1 hkatz mkpasswd 143602 Jan 11 17:13 commons-digester-1.8.jar
-rwx------+ 1 hkatz mkpasswd 38015 Jan 15 18:10 commons-logging-1.0.4.jar
-rwx------+ 1 hkatz mkpasswd 85587 Jan 15 17:58 ibatis-common-2.jar
-rwx------+ 1 hkatz mkpasswd 61191 Jan 15 17:58 ibatis-dao-2.jar
-rwx------+ 1 hkatz mkpasswd 322368 Jan 15 17:58 ibatis-sqlmap-2.jar
-rwx------+ 1 hkatz mkpasswd 93310 Jan 11 17:13 jhighlight-1.0.jar
-rwx------+ 1 hkatz mkpasswd 323012 Aug 31 18:23 jsf-api-1.2_04-p02.jar
-rwx------+ 1 hkatz mkpasswd 298368 Jan 11 17:13 jsf-facelets-1.1.12.jar
-rwx------+ 1 hkatz mkpasswd 1210046 Aug 31 18:23 jsf-impl-1.2_04-p02.jar
-rwx------+ 1 hkatz mkpasswd 20801 Jan 11 17:13 jstl-1.0.jar
-rwx------+ 1 hkatz mkpasswd 105672 Jan 11 17:13 nekohtml-0.9.5.jar
-rwx------+ 1 hkatz mkpasswd 111979 Jan 14 10:25 richfaces-api-3.1.3.GA.jar
-rwx------+ 1 hkatz mkpasswd 1298805 Jan 14 10:25 richfaces-impl-3.1.3.GA.jar
-rwx------+ 1 hkatz mkpasswd 1788222 Jan 14 10:25 richfaces-ui-3.1.3.GA.jar
-rwx------+ 1 hkatz mkpasswd 393259 Jan 23 14:07 standard.jar
-rwx------+ 1 hkatz mkpasswd 895924 Jan 11 17:13 xercesImpl-2.4.0.jar
The input box is rendered as follows in the browser:
<input type="text" id="mainform:insertedPage:subcomprows:0:subcomp" name="mainform:insertedPage:subcomprows:0:subcomp"/>
Any tips?
Thanks,
Henry