01-03-2011 07:19 AM
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core'%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html'%>
<h:form>
<h:outputText value="#{sms.nombre}" />
<h:inputText value="#{formulario.nombre}"></h:inputText>
<h:commandButton value="#{sms.guardar}" action="guardar"/>
</h:form>
<navigation-rule>
<from-view-id>/jsp/extension/index.jsp</from-view-id>
<navigation-case>
<from-outcome>guardar</from-outcome>
<to-view-id>/jsp/extension/guardar.jsp</to-view-id>
</navigation-case>
</navigation-rule>
01-10-2011 05:50 AM
<h:commandButton value="#{sms.guardar}" action="guardar"/>
<h:commandButton value="#{sms.guardar}" action="#{claseJava.guardar}"/>
public String guardar(){
String outcome = "guardar";
// … código …
return outcome;
}
01-10-2011 07:06 AM
01-10-2011 07:10 AM
01-12-2011 07:05 AM
<faces-config>
<!– rule to get back to the login page from anywhere –>
<navigation-rule>
<from-view-id>/jsp/*</from-view-id>
<navigation-case>
<from-outcome>logout</from-outcome>
<to-view-id>/jsp/extension/login.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>relogin</from-outcome>
<to-view-id>/jsp/extension/relogin.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>scan</from-outcome>
<to-view-id>/jsp/extension/index.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/jsp/extension/login.jsp</from-view-id>
<navigation-case>
<from-outcome>success</from-outcome>
<to-view-id>/jsp/browse/browse.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<navigation-rule>
<from-view-id>/jsp/extension/index.jsp</from-view-id>
<navigation-case>
<from-outcome>guardar</from-outcome>
<to-view-id>/jsp/extension/guardar.jsp</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
01-12-2011 09:42 AM
01-12-2011 04:09 PM
01-13-2011 07:12 AM
01-13-2011 07:41 AM
01-14-2011 05:18 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.