• Post Reply Bookmark Topic Watch Topic
  • New Topic

Redirect with Java Rich Faces  RSS feed

 
Americo Pinto
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I am developing an web application under Java Rich Faces framework.

The problem I have is that I don't know how to produce a "redirect" to a new page without pushing any button.

Down is the code I am trying to finish.

The URI I want to navigate is stored on the variable "url.applet_url"

<?xml version='1.0' encoding='UTF-8'?>

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:loadBundle basename="mc.view.messageresource.MessageResources" var="url"/>
<f:view>


<af:document id="d1" title=" " binding="#{backingBeanScope.backing_init.d1}" >

<af:form id="f1" binding="#{backingBeanScope.backing_init.f1}"
inlineStyle="text-align:center;" defaultCommand="pt1:cb1" >
<af:pageTemplate viewId="/template1.jspx" value="#{bindings.pageTemplateBinding}" id="pt1">
<f:facet name="main">

<af:group binding="#{backingBeanScope.backing_init.g1}" >
<af:spacer width="10" height="50"
binding="#{backingBeanScope.backing_init.s1}"
id="s1"/>
<af:image id="img1" source="/img/loadingAnimation.gif" inlineStyle="text-align:left;" shortDesc=""/>
<p>waiting</p>
<af:goButton id="cb2" destination="#{url.applet_url}" visible="true" />
</af:group>
</f:facet>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
<!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_login-->
</jsp:root>


Can Anyone tell me how can I produce a redirect from this page to the URI stored on the url.applet_url variable?

Many thanks in advance

sunman
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!