voyent
icemobile (h:commandlink/h:commandbutton) can not navigate  XML
Forum Index -> ICEmobile General
Author Message
ltwoini

Joined: 27/Oct/2014 06:28:51
Messages: 4
Offline


They can execute the action method, just refresh the self current page, can not
forward or redirect the other page.
I am sure it can find the navigation case
Who can help me? I will be very appreciated.


ENV:
ICEsoft Technologies, Inc.
ICEmobile JSF Library 1.3.1
Build number: 376
Revision: 42681
ICEsoft Technologies Inc.
ICEfaces 3.3.0
Build number: 11
Build date: 130416
Revision: 34423

Code:
	
 <ui:define name="body">
 		<h:form>
 			<!-- <mobi:fieldsetGroup styleClass="intro">
 				<mobi:fieldsetRow group="true">
 					<mobi:inputText value="#{employeeAction.employeeName}">
 					</mobi:inputText>
 					<mobi:commandButton value="??" action="#{employeeAction.filter()}"></mobi:commandButton>
 				</mobi:fieldsetRow>
 			</mobi:fieldsetGroup> -->
 			<h:panelGroup>
 				<h:commandLink action="#{employeeAction.nextPage}" value="test1">
 				</h:commandLink>
 				<h:commandButton action="#{employeeAction.nextPage}" value="test2"></h:commandButton>
 					<h:link outcome="helloworld"> link_helloworld</h:link>
 			</h:panelGroup>
 ...
 
 faces-config:
 
 	<application>
 		<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
 	</application>
 	<navigation-rule>
 		<from-view-id>*</from-view-id>
 		<navigation-case>
 			<from-outcome>outcome_employees</from-outcome>
 			<to-view-id>/mobile/employees.xhtml</to-view-id>
 		</navigation-case>
 		
 		<navigation-case>
 			<from-outcome>helloworld</from-outcome>
 			<to-view-id>/helloworld.xhtml</to-view-id>
 			<redirect></redirect>
 		</navigation-case>
 	</navigation-rule>
 
philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Check to see if it's not a validation or some other error that's short circuiting the lifecycle and preventing navigation. Try adding immediate="true" to the commandButton.

Code:
 <h:commandLink action="#{employeeAction.nextPage}" 
     immediate="true" value="test1">
  </h:commandLink>
 

.
ltwoini

Joined: 27/Oct/2014 06:28:51
Messages: 4
Offline


philip.breau wrote:
Check to see if it's not a validation or some other error that's short circuiting the lifecycle and preventing navigation. Try adding immediate="true" to the commandButton.

Code:
 <h:commandLink action="#{employeeAction.nextPage}" 
     immediate="true" value="test1">
  </h:commandLink>
 
 


I tryied, it does not work. It does not show any error information also.
 
Forum Index -> ICEmobile General
Go to:   
Powered by JForum 2.1.7ice © JForum Team