Hi, I got a lot trouble today, getting tiles and myfaces working together. Let me shortly eplain the scenario. I have to a form-file trying to add some values. The fields all got required="true" the message tags are also added. BUT when I try to run the file within Tiles through /sparepart.tiles pressing the submit button I just get a reload, cleanup of fields if filled and no validation behaviour. To provide some further information I just added the main files. What else is woth mentioning, is that the form-validation works quite fine, using the form without tiles. What are the reasons? Does anyone know how to fix it?
########################Tiles################################ <tiles-definitions> <definition name="standard.example" path="/template/standard.jsp"> <put name="header" value="/common/header.jsp"/> <put name="navigationBar" value="/common/navigationBar.jsp"/> <put name="languageBar" value="/common/languageBar.jsp"/> <put name="footer" value="/common/footer.jsp"/> </definition> <definition extends="standard.example" name="/index.tiles"> <put name="body" value="/index.jsp"/> </definition> <definition extends="standard.example" name="/sparepart.tiles"> <put name="body" value="/secure/sparepart.jsp"/> </definition> </tiles-definitions> ################################################################## ########################Sparepart#################################### <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://myfaces.apache.org/extensions" prefix="x"%> <f:view> <f:verbatim> <table cellpadding="4" border="0" id="sparePart" class="parentTable"> <tr> <td style="width: 300px; height: 156px"></f:verbatim> <h:form id="sparepartForm" name="sparepartForm"> <f:verbatim> <table cellpadding="0" border="0" class="childTable"> <tr> <td align="center" colspan="2" class="tableHeader"></f:verbatim> <h:outputText id="tableHeader" value="#{bundle.sparepartTableheader}" /> <f:verbatim></td> </tr> <tr> <td align="right" style="height: 32px; width: 81px;"></f:verbatim> <h:outputLabel value="#{bundle.sparepartNumber}" for="number" /> <f:verbatim></td> <td style="width: 182px; height: 32px"></f:verbatim> <h:inputText id="number" value="#{sparepartSpringBean.sparepart.spnumber}" valueChangeListener="#{sparepartSpringBean.valueChanged}" required="true"> <f:validateLength minimum="1" maximum="2" /> </h:inputText><x:message for="number" showDetail="true" showSummary="false" styleClass="error" /> <f:verbatim></td> </tr> <tr> <td align="right" style="height: 32px; width: 81px;"></f:verbatim> <h:outputLabel value="#{bundle.sparepartName}" for="name" /> <f:verbatim></td> <td style="width: 182px; height: 32px"></f:verbatim> <h:inputText id="name" value="#{sparepartSpringBean.sparepart.spname}" valueChangeListener="#{sparepartSpringBean.valueChanged}" required="true"> </h:inputText> <x:message for="name" showDetail="true" showSummary="false" styleClass="error" /> <f:verbatim></td> </tr> <tr> <td align="right" style="height: 32px; width: 81px;"></f:verbatim> <h:outputLabel value="#{bundle.sparepartInventory}" for="inventory" /> <f:verbatim></td> <td style="width: 182px; height: 32px"></f:verbatim> <h:inputText id="inventory" value="#{sparepartSpringBean.sparepart.spinventory}" required="true"> </h:inputText> <x:message for="inventory" showDetail="true" showSummary="false" styleClass="error" /> <f:verbatim></td> </tr> <tr> <td colspan="2" style="height: 32px"></f:verbatim> <h:commandButton styleClass="button" id="sparepartButton" action="#{sparepartSpringBeanaction.printName}" value="#{bundle.sparepartButton}" actionListener="#{sparepartSpringBeanaction.printName}" /> <f:verbatim></td> </tr> </table> </f:verbatim> </h:form> <f:verbatim></td> </tr> </table> </f:verbatim> </f:view> ########################################################## thanks a lot for your help. Regards Johannes _________________________________________________________________________ Mit der Gruppen-SMS von WEB.DE FreeMail k�nnen Sie eine SMS an alle Freunde gleichzeitig schicken: http://freemail.web.de/features/?mc=021179

