You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Simon Kitching (JIRA)" <de...@myfaces.apache.org> on 2005/11/13 22:27:23 UTC
[jira] Commented: (MYFACES-816) Tiles
[ http://issues.apache.org/jira/browse/MYFACES-816?page=comments#action_12357543 ]
Simon Kitching commented on MYFACES-816:
----------------------------------------
Well, this definitely works for me, so it's probably not a bug in myfaces. As this is a bug-tracking system, not a user help forum, please subscribe to the myfaces user list and ask the question there.
> Tiles
> -----
>
> Key: MYFACES-816
> URL: http://issues.apache.org/jira/browse/MYFACES-816
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: 1.1.1
> Environment: WIN XP Tomcat 5.5.7
> Reporter: Lauri Lüüs
> Priority: Blocker
>
> Hi!
> Well I have tryed million different way but with Tiles commandButton does'nt work. It kind of "eating" events.
> When I remove Tiles from faces-config.xml all navigation, submitting works perfectly.
> But when I include Tiles there are no action events :( Specially with buttons.
> Form is typical jsf form: (userList.jsp)
> <f:view>
> <h:form id="frmUserList">
> <h:panelGrid columns="2">
> <h:outputText id="lblName" value="First name"/>
> <h:inputText id="fldName" value="#{userList.firstName}"/>
> <h:outputText id="lblLast" value="Last name"/>
> <h:inputText id="fldLast" value="#{userList.lastName}"/>
> </h:panelGrid>
> <h:commandButton id="cmdFind" value="Find" styleClass="button10" action="#{userList.onSearchUser}"/>
> </h:form>
> </view>
> (tiles.xml)
> <tiles-definitions>
> <!-- define main template, witch is used for default showing-->
> <definition name="layout" path="/template/main_template.jsp">
> <put name="menu" value="/template/menu.jsp"/><!-- panel for showing meny -->
> </definition>
> <definition name="/user/userList.tiles" extends="layout">
> <put name="body" value="/user/userList.jsp"/>
> </definition>
> ...
> </tiles-definitions>
> And my faces config is:
> ....
> <view-handler>org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl</view-handler>
> ....
> <navigation-rule>
> <description>
> Navigation rules for navigation component.
> </description>
> <from-view-id>*</from-view-id>
> <navigation-case>
> <from-outcome>go_userList</from-outcome>
> <to-view-id>/user/userList.jsp</to-view-id>
> </navigation-case>
> <navigation-case>
> <from-outcome>go_userEdit</from-outcome>
> <to-view-id>/user/usrEdit.jsp</to-view-id>
> </navigation-case>
> </navigation-rule>
>
> Please help me I'm kind a desperate.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira