3.2.1 with 2 ui:include, one working, the other doesn't
powerhouse_b Jun 15, 2008 10:36 AMHello!
I am using RichFaces 3.2.1 and Facelets. I have 2 jspf's, each having a a4j:form. They are include on a page, just after <ui:define>, using <ui:include>.
The problem is the first one does not allow submitting, saying "this._form has no properties", and the other work ok. If I inverse the order of the <ui:include>, the jspf that didn't work not works and the first one doesn't work anymore, with the same error message.
A jspf looks like this:
<f:subview id="addtagsubview"
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:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<rich:modalPanel id="addtagModal" height="120" width="400" minWidth="350" minHeight="100" resizeable="false">
<f:facet name="header">
<h:outputText value="#{messages.wslistmenu_addTag}" />
</f:facet>
<f:facet name="controls">
<h:graphicImage value="/images/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('addtagModal')" />
</f:facet>
<a4j:form>
<a4j:region>
<table width="100%">
<tr>
<td>
<h:outputText value="#{messages.Tags}" />
</td>
<td>
<h:outputText value="#{messages.addtag_notags}" rendered="#{AddTagsBean.currentTags.rowCount == 0}" />
<a4j:repeat id="currenttags" value="#{AddTagsBean.currentTags}" var="tag">
<h:outputLink value="searchResults.jsf">
<h:outputText value=" #{tag.name} " />
<f:param name="type" value="bytags" />
<f:param name="params" value="#{tag.name}" />
</h:outputLink>
</a4j:repeat>
</td>
</tr>
<tr>
<td>
<h:outputText value="#{messages.addtag_newtags}" />
</td>
<td>
<h:inputText value="#{AddTagsBean.newTags}" >
<rich:toolTip followMouse="true" value="#{messages.addtag_hint}" />
</h:inputText>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<a4j:commandButton value="#{messages.Add}" action="#{AddTagsBean.persistNewTags}"
styleClass="dr-pbl-bnt" reRender="bodyform:tagpeater"
oncomplete="javascript:Richfaces.hideModalPanel('addtagModal')"/>
</td>
</tr>
</table>
</a4j:region>
</a4j:form>
</rich:modalPanel>
</f:subview>Thanks!