How-to get attributes from one JSF page redirected to another?

How do I send information from one JSF page when the navigation rule redirects it to another?
When JSF navigation does a forward I can use request.setAttribute() in the from-page and then use request.getAttribute() in the to-page, but this doesn't work with <redirect/>.
Regards,
Al Malin

The process scope in ADF Faces solves this. See:
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3/state/content/navId.4/navSetId._/vtTopicFile.adffacesguide%7Cdevguide%7CcommunicatingBetweenPages%7Ehtml/

Similar Messages

  • How do i move from one I tunes store to another country if I have credit remaining

    How do i move from one I tunes store to another country if I have credit remaining

    You can't whilst you have a balance. If you can't spend it then you can try contacting iTunes support and ask them if they can remove the balance so that you can change countries : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How to paste attributes from one photo to a selection of photos?

    When I try to copy attributes (i.e: white balance, etc) from one photo and paste to a group of other photos, the attributes are only pasted to the most selected (first) photo of the group. The result is the same whether I use the menu or keyboard shortcuts for the copy and paste. Does anyone know how to paste the attributes to the entire group in one fell swoop?

    Are you selecting the group of images from the grid view or from the filmstrip at the bottom of the library module?  I have found that many operations are only applied to the first image in a selection if the selection was made from the filmstrip at the bottom of the library module.  If the group of images is selected from the grid view, then the operation applies to all the images selected.
    I hope that helps.
    Walt
    B & B Photography

  • How to get value from one context node to otehr contect conde in diff views

    Hello Guru's
    We have a rek which is of getting the value from one context node to other context node,
    for example there is Total value in BT111H_OPPT/ITEMLIST (One context node) we need to have the same Total value in the in BT111H_OPPT/DETAILS (other context node) automatically
    Inputs are highly appricated.......

    Hello,
    Thanks for your Reply
    But my rek is i want to get value from different views
    eg BT111H_oppt/itemslist(contex node - BTADMINI) field net value to BT111h_opp/Details(Context node - BTopporth)
    for this which method should i use to chive this.
    Thanks..

  • How to transfer games from one games centre account to another?

    I was using my brothers ipod touch to play smurfs village and then got my own. How do I transfer the game from his game centre account to my own? (I have been playing this game for ages and dont want to start all over again). Thanks in advance

    You can't transfer games from one account to another.
    What you can do is to log in from your ipod touch on his gamecenter account and download the app and play like this.
    By admin of #1 webmaster and coding community on web http://www.webmasterszone.net

  • How do I read from one table and write to another identical table?

    I am very new to Oracle. I am trying to do something that should be very simple.
    I am trying to read from one table in SQL and then write to another
    Identically formatted table. I keep getting various errors. Could someone please
    post some vey simple code that will work so that I can play around with it?
    Any help would be greatly appreciated.
    Thanks,
    Ron

    Thanks, but I must be missing something.
    I have two tables, SONGLIST and SETLIST.
    The second line by itself works just fine on either table.
    Here is the code I used following your seggestion, along with it's error message.
    Hope you can help. Thanks again...
    INSERT INTO SETLIST
    SELECT TITLE FROM SONGLIST WHERE ROTATION <> 'X'
    ORA-00947: not enough values

  • SSRS 2012 how to use sum from one dataset in calculations in another dataset

     Hi
    I have 2 datasets and I would like to calculate a sum from dataset1 and then use it in calculations in dataset2. I was thinking of a lookup but I can not use an aggregate in the lookup.
    My data looks like this
    dataset1 (warehouse)
    Site   InventoryID            Qty_On_Hand
     A              1                               5
     B              1                               1
     C              1                               7
    Dataset2 (shipping location)
    Site        InventoryID               QTY_Ord                Date_required
     A                1                                 3                        
       2-1-2015
     A                1                                 4                        
       2-9-2015
     C                1                                 6                        
       2-9-2015
    I have set up parameters to that I can choose which sites to include in the report. It is rare that all sites will be included. Normally I will set the parameters to just look at sites A and B from both datasets
    In the case when my parameters are for Sites A and B I would like to come up with a report like
       Inventory_ID         2-1-2015         2-9-2015              Total Qty_Ord             Total Qty_On_Hand
               1                         3                       4              
                      7                                           6
    I will then compare a running total of each Inventory_ID to the total Qty_On_Hand and highlight the cell where Qty_ord exceeds Qty_on_hand
    I just can seem to figure out how to get the Total Qty_on_hand from dataset1 and use it in Dataset2
    Does anyone have a suggestion or two?
    Thank you !

    You can do it simply in your query:
    DECLARE @dataSet1 TABLE (site CHAR(1), inventoryID INT, qtyOnHand INT)
    INSERT INTO @dataSet1 (site, inventoryID, qtyOnHand)
    VALUES ('A',1,5),('B',1,1),('C',1,7)
    DECLARE @dataSet2 TABLE (site CHAR(1), inventoryID INT, qtyOrdered INT, dateRequired DATE)
    INSERT INTO @dataSet2 (site, inventoryID, qtyOrdered, dateRequired)
    VALUES ('A',1,3,'2015-2-1'),('A',1,4,'2015-2-9'),('C',1,6,'2015-2-9')
    SELECT d2.site, d2.inventoryID, d2.qtyOrdered, d2.dateRequired, SUM(d1.qtyOnHand) as qtyOnHand
    FROM @dataSet2 d2
    LEFT OUTER JOIN @dataSet1 d1
    ON d2.inventoryID = d1.inventoryID
    AND d2.site = d1.site
    GROUP BY d2.site, d2.inventoryID, d2.qtyOrdered, d2.dateRequired

  • I need to transition my 1st Generation Apple TV from an older instance of iTunes to a new instance of iTunes on my brand new Mac... How do I "switch" from one instance of iTunes to another? How do I get the 5 Digit Code Network to come back on my Screen?

    I need to transition my 1st Generation Apple TV from an older instance of iTunes on my iBook to a new instance of iTunes on my new Mac... How do I get the 5 digit Network code to come back? Is there anyway for 1st Generation Apple TV to be synched to two instances of iTunes or do I have to choose one or the other? I appreciate any advice or suggestions. Thanks!

    The 5 digit code is every time different. That does not matter. Just integrate every device into your network.
    You can connect many computers to Apple TV but syncronisation works exactly with one computer. That's why I use "streaming". But you can sync one computer, then another, and so on. The content on your Apple TV is the content from your computer that has synced last. But you can not mix it.
    The new Apple TV has no syncronisation. Everything is streamed,
    Regards,
    Torsten,
    Germany

  • How to get attribute from xml file

    I managed to grab all the info from xml, except the "url" attribute in <image type="poster" url="" size="mid" .../>. Any ideas?
    import java.io.*;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import java.net.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    public class XmlParser {
         ArrayList<Movie> myMovies;
         Document dom;
         public XmlParser(){
              //create a list to hold the movie objects
              myMovies = new ArrayList<Movie>();
         public void runExample(String adr, String tagName) {
              parseXmlFile(adr);
              parseDocument(tagName);
              printData();          
         private void parseXmlFile(String adr){
              //get the factory
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              try {               
                   //Using factory get an instance of document builder
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   //parse using builder to get DOM representation of the XML file
                   URL xmlUrl = new URL(adr);
                   InputStream in = xmlUrl.openStream();
                   dom = db.parse(in);               
              }catch(ParserConfigurationException pce) {
                   pce.printStackTrace();
              }catch(SAXException se) {
                   se.printStackTrace();
              }catch(IOException ioe) {
                   ioe.printStackTrace();
         private void parseDocument(String tagName){
              //get the root elememt
              Element docEle = dom.getDocumentElement();
              //get a nodelist of <movie> elements
              NodeList nl = docEle.getElementsByTagName(tagName);
              if(nl != null && nl.getLength() > 0) {
                   for(int i = 0 ; i < nl.getLength();i++) {
                        //get the movie element
                        Element el = (Element)nl.item(i);
                        //get the Movie object
                        Movie mov = getMovie(el);
                        //add it to list
                        myMovies.add(mov);
          * I take an movie element and read the values in, create
          * an Movie object and return it
          * @param movE
          * @return
         private Movie getMovie(Element movE) {
              String title = getTextValue(movE, "original_name");
              String year = getTextValue(movE, "released");
              String imdbId = getTextValue(movE, "imdb_id");
              double score = getDoubleValue(movE, "score");
              String overview = getTextValue(movE, "overview");
              String poster = movE.getAttribute("url");
              Movie mov = new Movie(title, year, imdbId, score, overview, poster);
              return mov;
         private String getTextValue(Element ele, String tagName) {
              String textVal = null;
              NodeList nl = ele.getElementsByTagName(tagName);
              if(nl != null && nl.getLength() > 0) {
                   Element el = (Element)nl.item(0);
                   textVal = el.getFirstChild().getNodeValue();
              return textVal;
          * Calls getTextValue and returns a int value
          * @param ele
          * @param tagName
          * @return int
         private int getIntValue(Element ele, String tagName) {
              //in production application you would catch the exception
              return Integer.parseInt(getTextValue(ele, tagName));
          * Calls getTextValue and returns a double value
          * @param ele
          * @param tagName
          * @return double
         private double getDoubleValue(Element ele, String tagName) {
              return Double.parseDouble(getTextValue(ele, tagName));
          * Iterate through the list and print the
          * content to console
         private void printData(){
              System.out.println("Total Movies: " + myMovies.size());
              Iterator it = myMovies.iterator();
              while(it.hasNext()) {
                   System.out.println(it.next().toString());
         public static void main(String[] args){
              //create an instance
              XmlParser xp = new XmlParser();
              //call run example
              xp.runExample("http://api.themoviedb.org/2.1/Movie.search/en/xml/apikey/Fight+Club+1999", "movie");
    }Here is the example xml file I used
    <?xml version="1.0" encoding="UTF-8"?>
    <OpenSearchDescription xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
      <opensearch:Query searchTerms="Fight Club 1999"/>
      <opensearch:totalResults>1</opensearch:totalResults>
      <movies>
        <movie>
          <score>8.383284</score>
          <popularity>3</popularity>
          <translated>true</translated>
          <adult>false</adult>
          <language>en</language>
          <original_name>Fight Club</original_name>
          <name>Fight Club</name>
          <alternative_name>El Club de la Lucha</alternative_name>
          <type>movie</type>
          <id>550</id>
          <imdb_id>tt0137523</imdb_id>
          <url>http://www.themoviedb.org/movie/550</url>
          <votes>62</votes>
          <rating>8.4</rating>
          <certification></certification>
          <overview>A lonely, isolated thirty-something young professional seeks an escape from his mundane existence with the help of a devious soap salesman. They find their release from the prison of reality through underground fight clubs, where men can be what the world now denies them. Their boxing matches and harmless pranks soon lead to an out-of-control spiral towards oblivion.</overview>
          <released>1999-09-16</released>
          <images>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-original.jpg" size="original" width="1000" height="1500" id="4bc908ab017a3c57fe002f75"/>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-mid.jpg" size="mid" width="500" height="750" id="4bc908ab017a3c57fe002f75"/>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-cover.jpg" size="cover" width="185" height="278" id="4bc908ab017a3c57fe002f75"/>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-thumb.jpg" size="thumb" width="92" height="138" id="4bc908ab017a3c57fe002f75"/>
            <image type="backdrop" url="http://hwcdn.themoviedb.org/backdrops/f71/4bc908ab017a3c57fe002f71/fight-club-original.jpg" size="original" width="1280" height="720" id="4bc908ab017a3c57fe002f71"/>
            <image type="backdrop" url="http://hwcdn.themoviedb.org/backdrops/f71/4bc908ab017a3c57fe002f71/fight-club-poster.jpg" size="poster" width="780" height="439" id="4bc908ab017a3c57fe002f71"/>
            <image type="backdrop" url="http://hwcdn.themoviedb.org/backdrops/f71/4bc908ab017a3c57fe002f71/fight-club-thumb.jpg" size="thumb" width="300" height="169" id="4bc908ab017a3c57fe002f71"/>
          </images>
          <version>73</version>
          <last_modified_at>2010-09-11 14:33:06</last_modified_at>
        </movie>
      </movies>
    </OpenSearchDescription>

    pvujic wrote:
    Thanks, but how can I "fetch" the url from the image element?You've got to first get to the image element. But based on what you've posted though, with a little more coding, you should be able to succeed. Just give it a try! :)

  • How to get data from a second page?

    Hi guys,
    I have the first page, where I have a button, which will navigate to the second page to let user make some choices.
    After the user makes the choices, user will click a button to get back.
    How can I pass the choices back to the first page?
    Regards,
    Aaron.

    Hi Aaron,
    you can use the EventBus for the same.
    1) publish the event bus on click of the button ( the event f which navigates back to the earlier page)
    2) in the publish of this event bus, pass all the data which you have captured / which has been clicked.
    3) subscribe the eventBus in the App.Controller page ( assuming that you have created an app.view in which you have defined the sap.m.App() , to take care of all the pages to be added into the app).
    4) the handler function of this subscribe, will navigate you to the page required, along with the whole set of data you have passed in the publish of event bus.
    5) use onBeforeShow(oEvent) hook method in the view, which is being finally routed to.
    all the data passed from the previous view will be accessible here via : oEvent.data.dataPassedFromPreviousView
    Note : dataPassedFromPreviousView, assuming is to be the object in which u have set the data in the publish.
    Hope it helps.
    Regards,
    Viren Gupta

  • How to get data from one ui element?

    hi all
    I have a DropDownByIndex and I know how I can get the value selected
    thanks

    HI,
    suppose the dropdownbyindex is bind with the attribute "testName" in the node "Test".
    so the context is like
    Test
      .....testName
    so to get the selected value do like this
    wdContext.nodeTest().getTestElementAt(wdContext.nodeTest().getLeadSelection()).gettestName();
    hope it clear!
    Regards,
    ramesh

  • How to get song from one computer to another

    i have got a ipod touch 8gb and it is refurbished so it is the oldest software. so i am wondering if i can get all 1000 songs from my pc to my laptop because i used my pc to get songs but ii bought ipod touch software 2.5 or 2.2 whatever it is called how do i keep my songs on the ipod and get the new software or take the songs and put them on the laptop then sync them back to the laptop .

    Question1: > josh215625 wrote:
    how do i keep my songs on the ipod and get the new software
    Updating your iPod's software, whether a major update or not, will re-sync the music to it from the computer after the software is finished installing.
    *_Question 2_*: > josh215625 wrote:
    so i am wondering if i can get all 1000 songs from my pc to my laptop
    Unless the music is bought from iTunes, then you won't be able to transfer it without third-party software.
    You won't be able to transfer music that wasn't purchased from the iTunes Store using an iPod Touch because the Ipod Touch (First-Generation anyway, as far as I know) doesn't allow disk use.
    I do not know of any third party software that is completely free and provides this ability through its demo.
    Here is an article from Apple that you can use if you have any other kind of iPod available to use that allows disk use:
    http://support.apple.com/kb/HT1329

  • How to get photos from one iPad two another keeping the original

    My mom bought an iPad 2  I want to transfer photos from my ipad 2 to her photo folder on her new iPad.  Not exactly sure how to do it. Hoping someone can advise me. Thanks

    Sending the photos over WiFi might be the easiest way for you to accomplish this. The Wireless Transfer App should work. You will both have to download the app on your own devices. Read about it here.
    http://www.wirelesstransferapp.com/

  • How to get attribute from select

    Hello
    I have a problem getting the value from my select-field from my form in my servlet.
    I can get the values from the textareas and the textfileds but not from my select. If i mail the same form i get the selected value, but not when i try to get this in my servlet.
    To get the other values i use:
    String subcategory = (String) request.getAttribute("subcategory");
    Is there any other way to get the values from select (or radiobuttons) ?

    don't you think you should use request.getParameter("XXX")?
    And if your can select multiple items , then use request.getParameters("SSS"). Note that this method return arrray of String.

  • How to get attribute from value ?

    Hello experts,
    I've following problem:
      DATA: lv_cell TYPE REF TO data.
      DATA: contact type BU_CONTACT_CHAR.
      lv_cell = r_param->value.   'lv_cell contains 1
    'now i want to give this paramter to another variable in order to start a fm
    move lv_cell to contact.  '=>  retunrs error.
    call fm...
    How can I give this value to this paramter ?
    Thanks
    G

    Problem solved:
    we have to de-refrende the object
    and then move it to a vriable.
      DATA: lv_cell TYPE REF TO bu_contact.
      DATA: contacti type bu_contact.
      move lv_cell->* to contacti.

Maybe you are looking for