You may use h:outputLink with its value set to the URL.

Rgds,
Kiran

-----Original Message-----
From: Legolas Woodland [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 28, 2006 1:56 AM
To: MyFaces Discussion
Subject: problem with using comandLink and navigation to 3rd party web
site

Hi
Thank you for reading this post.
I was in a need for an automatic form submission when user reach payment
page , but as i could not handle it in that way i tried to use a
commandLink to
submit the form and redirect the user to 3rdparty web site , here is
what i have done and the exception that i get
this is jsp file snippet
[code]
   <af:form>

<center>
    <af:commandLink text="commandLink 1" action="payment" >
    <f:param  value="#{Session.MID}" name="MID" id="MID" />
    <f:param value="#{ButtonsActionListener.reservationNumber}"
name="ResNum" id="ResNum"/>
    <f:param value="#{Session.redirectURL}" name="RedirectURL"
id="RedirectURL"/>
    <f:param value="#{ButtonsActionListener.total_price}" name="Amount"
id="Amount"/>
       </af:commandLink>
   </center>
  
   </af:form>
[/code]

also i defined  a navigation case like
[code]
<navigation-case>
      <from-outcome>payment</from-outcome>
    
<to-view-id>https://www.3rdpartywebsite.com/CardServices/controller</to-
view-id>
      <redirect/>
    </navigation-case>

[/code]

so it should work in a way that i need but it just retun an
exceptionlike this :

[code]
java.lang.IllegalArgumentException: Illegal view ID
'https://www.3rdparty.com/CardServices/controller'.  The ID must begin
with '/'
    at
com.sun.faces.application.ViewHandlerImpl.getActionURL(ViewHandlerImpl.j
ava:443)
    at
oracle.adfinternal.view.faces.application.ViewHandlerImpl.getActionURL(V
iewHandlerImpl.java:100)
    at
com.sun.faces.application.NavigationHandlerImpl.handleNavigation(Navigat
ionHandlerImpl.java:114)
    at
oracle.adfinternal.view.faces.application.NavigationHandlerImpl.handleNa
vigation(NavigationHandlerImpl.java:29)
    at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListene
rImpl.java:89)
    at
oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211
)
    at
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    at
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplication
Phase.java:75)
    at
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    at
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(
AdfFacesFilterImpl.java:367)
    at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(Ad
fFacesFilterImpl.java:336)
    at
oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFace
sFilterImpl.java:196)
    at
oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java
:87)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at
oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java
:332)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.j
ava:627)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDis
patcher.java:376)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.jav
a:870)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:
451)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java
:218)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
    at
oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocke
tReadHandler.java:260)
    at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourceP
ooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
[/code]


do you know what should i do ?

thanks



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.

www.wipro.com

Reply via email to