facebook

ADF Faces – how to pass a dynamic URL to my browser ?

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #255390 Reply

    lagonze
    Member

    This message has not been recovered.

    #255431

    Riyad Kalla
    Member

    This message has not been recovered.

    #255555

    lagonze
    Member

    sorry about that, won’t do it again !
    i had no response but i insist, i have made a little progress, please can somebody help :

    thanks to a commandLink and it’s action=”#{thisRowDoc.load}”,
    i have a correct absolute url (http://www.etc) in a backingBean, generated dynamically by querying a database, that i can access through
    “#{processScope.chosenURL}” and (in the bean) by “chosenURL”;

    what i’m doing now inside the method “load” is :
    FacesContext.getCurrentInstance().getExternalContext().redirect(chosenURL);
    it works, the page appears but….
    1. i get an error message in the console : java.lang.IllegalStateException : committed
    at org.mortbay.jetty.servlet.ServletHttpResponse.resetBufffer (ServletHttpResponse.java:212)
    and 2. i find it a bit….violent ! so….

    i would like to access the page corresponding to the absolute URL inside another local jsp page… so i do a classic navigation rule with outcome etc to a “viewdoc.jsf”, the navigation happens correctly, and inside this new page i tried 5 different things :
    <c:import url=”${processScope.chosenURL}”/> : doesn’t work (neither with #)
    <h:outputLink value=”#{processScope.chosenURL}”>
    <f:verbatim>View</f:verbatim>
    </h:outputLink> : doesn’t work
    <af:goLink destination=”#{processScope.chosenURL}” text=”ViewDoc”/> : doesn’t work
    ViewDoc : doesn’t work
    and
    <jsp:forward page=”#{processScope.chosenURL}”/> : doesn’t work
    so……

    i’m a bit at a loss because none of those work, the url value doesn’t seem to be recognized ????!!!!
    how can i pass this processScope.chosenURL value to something who will put it inside my viewdoc.jsf page ?
    thx for any help !
    dom.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: ADF Faces – how to pass a dynamic URL to my browser ?

You must be logged in to post in the forum log in