[ 
http://issues.apache.org/jira/browse/MYFACES-816?page=comments#action_12357600 
] 

Lauri Lüüs commented on MYFACES-816:
------------------------------------


Yes everything now works, after several hours intencive code crawlint, I found 
that in
my menu.jsp I used <f:view> .blablabla </f:view>

and when I used some form vith <h:commandButton> I also added on that form 
<f:view>

so there was this problem that suddenly on one page (thanks to tiles merge) 
there is multiple <f:view> tags.

<f:view> menu </f:view>
<f:view> page </f:view>

No wonder that this was'nt working :)




> 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

Reply via email to