Page navigation problem using template method pattern

Hi all,
I've built a rather simple app implementing the template method design pattern. I've built a shared session bean which holds a hashmap of beans associated with pages I've visited. All of my JSPBeans extend from a common abstract class which calls three simple methods to process output for the page the first time displayed, everytime after the first time the page is displayed and yada yada.....so, let's say I'm three pages in, I've submitted a form and am looking at a page which displays data verifying my submit. Now, I click a link which should take me back two pages, say, to a home page. When I click the link, the home page is displayed momentarily...but then the app processes thu everything I just did up to the point where I started. It just flashes thru a few pages, resubmits the data and I end up right where I started. Automated data processing in a web app...and I wasn't even trying :-) Seriously tho, what in the world is this thing doing and how do I get it to stop! Has anyone ever seen this before?
regards,
Mat

Hi John,
I'm a little new so excuse my ignorance :-) Yep, I have session bean class which is nothing more than a hashmap of keyed beans ( I have one bean associated with each jsp). All beans are session persistent. What I don't understand is why when I attempt to navigate 'back' into the application ( a page where I have already been) the darn thing repeats. All my beans extend from a common class which includes three abstract methods...firstpassprocess(), process(), and footerprocess.() The idea is that I set a boolean var to "FIRSTPASS" the parent sees that and directs the application to the firstpassprocess() method in the concrete class. Why doesn't it do that again? U say it's because of the session bean? I tried to include some true/false values in the process() method of the concrete class which fixes the application flow. But, and there is always a but, now the submit includes all of the data from the prior submit. How do I do the auto update of the bean properties? Jeez...I hope I don't sound to silly! Thanks for the help....
Mat

Similar Messages

  • Problems using GET method in JSP

    Hi,
    I had some problems using GET method in JSP.
    I'm using Apache web server 1.3 and Tomcat 3.3.1 in windows 2000.
    And I'm using language English and Korean.
    When I send messages using POST method, all is good
    But when I send message using GET method, English is good, but Korean is not good.
    I tried to encode using
    URLEncode.encode(str, "UTF-8")
    and decoding it using
    URLDecode.decode(request.getParameter(tag), "UTF-8")
    but it didn't work.
    How can I receive request including Korean using GET method in JSP?
    If anyone have solutions, please let me know.
    thanks.

    Hi,
    I had some problems using GET method in JSP.
    I'm using Apache web server 1.3 and Tomcat 3.3.1 in
    windows 2000.
    And I'm using language English and Korean.
    When I send messages using POST method, all is good
    But when I send message using GET method, English is
    good, but Korean is not good.
    I tried to encode using
    URLEncode.encode(str, "UTF-8")
    and decoding it using
    URLDecode.decode(request.getParameter(tag), "UTF-8")
    but it didn't work.
    How can I receive request including Korean using GET
    method in JSP?
    If anyone have solutions, please let me know.
    thanks.This problem appears, when one use UTF-16 encoding in JSP - am I right?
    If so there are two solutions:
    1) Temporary: Use "UTF-8" - or any other 8 bit encoding scheme and
    encode Korean symbols with "&1234;" kind of escapes - though it
    may not work
    2) Absolute: get my piece of code, which I have managed to write
    just a month ago resolving absolutely similar problem with UTF-16
    in code using Chinese/Russian/English encodings
    But I wouldn't say that it's costs 10 DDs :) - it's much more
    expensive... So try 1st variant if it wouldn't help - let me know.
    I'll figure :)
    Paul

  • Page navigation problems

    Hi all,
    I am new to JSF, and I am trying to implement a simple page navigation which displays some values that the user entered. The values are stored in a managed bean. It's a simple login form. I am using NetBeans as my IDE. My page navigation is set up as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
    <navigation-rule>
    <from-view-id>/index.jsp</from-view-id>
    <navigation-case>
    <from-outcome>login</from-outcome>
    <to-view-id>/login.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config>
    And my JSF page is setup as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <webuijsf:page binding="#{index.page1}" id="page1">
    <webuijsf:html binding="#{index.html1}" id="html1">
    <webuijsf:head binding="#{index.head1}" id="head1">
    <webuijsf:link binding="#{index.link1}" id="link1" url="/resources/stylesheet.css"/>
    </webuijsf:head>
    <webuijsf:body binding="#{index.body1}" id="body1" style="-rave-layout: grid">
    <webuijsf:form binding="#{index.form1}" id="form1">
    <webuijsf:staticText binding="#{index.staticText1}" id="staticText1" style="position: absolute; left: 144px; top: 72px" text="Enter user name:"/>
    <webuijsf:staticText binding="#{index.staticText2}" id="staticText2" text="Enter password:" />
    <h:inputText binding="#{user.name}" id="txtUsername" />
    <h:inputText binding="#{user.password}" id="txtPass" />
    <h:commandButton action="login" binding="#{index.btnLogin}" id="btnLogin" value="Log in"/>
    <h:inputText binding="#{index.txtUsername}" id="txtUsername"/>
    <h:inputText binding="#{index.txtPass}" id="txtPass"/>
    </webuijsf:form>
    </webuijsf:body>
    </webuijsf:html>
    </webuijsf:page>
    </f:view>
    </jsp:root>
    The web application compiles and deploys with no problem. However, when I click the btnSubmit button, it does not redirect me to the page specified in the faces-config.xml file. Can anyone tell me what I'm doing wrong? Thanks for any help you can provide.

    I'm not sure what you are trying to do here.
    Are you trying to map the commandButton's action="login" to your rule <from-outcome>login</from-outcome>?
    I think you want the commandButton to map to a method in your backing bean. E.g. action="#{bean.goToLogin}" .
    The method goToLogin() should then return the string, "login" . This will be caught by your navigation rule <from-outcome>.
    <from-outcome> maps to a specific string returned from a method called in that page.
    But in this case if you just want redirection, it should be easier just an outputLink pointing to login.jsp.
    Hope this helps!

  • Problem using repaint() method from another class

    I am trying to make tower of hanoi...but unable to transfer rings from a tower to another...i had made three classes....layout21 where all componentents of frame assembled and provided suitable actionlistener.....second is mainPanel which is used to draw the rods n rings in paintComponent.....and third is tower in which code for hanoi is available...i had made an object of mainPanel at layoout21 n tower but i m not able to call repaint from tower..gives an error : cannot find the symbol....method repaint in tower.
    code fragments od three classes are:
    LAYOUT21
    class layout21 extends JFrame implements ActionListener
    { private Vector rod1 = new Vector();
    private Vector rod2 = new Vector();
    private Vector rod3 = new Vector();
    private String elem; //comment
    public String r22;
    public boolean in=false;
    public int count=0; //no of times the transfer to other rods performed
    private int r3,rings; // current no of rings
    private JComboBox nor,col;
    private JLabel no;
    private JLabel moved;
    private JLabel no1;
    private JButton start;
    private JButton ref;
    private AboutDialog dialog;
    private JMenuItem aboutItem;
    private JMenuItem exitItem;
    private tower t;
    final mainPanel2 p =new mainPanel2();
    public layout21()
    { t = new tower();
         Toolkit kit =Toolkit.getDefaultToolkit();
    Image img = kit.getImage("java.gif");
    setIconImage(img);
    setTitle("Tower Of Hanoi");
    setSize(615,615);
    setResizable(false);
    setBackground(Color.CYAN);
         JMenuBar mbar = new JMenuBar();
    setJMenuBar(mbar);
    JMenu fileMenu = new JMenu("File");
    mbar.add(fileMenu);
    aboutItem = new JMenuItem("About");
    aboutItem.addActionListener(this);
    fileMenu.add(aboutItem);
    exitItem = new JMenuItem("Exit");
    exitItem.addActionListener(this);
    fileMenu.add(exitItem);
    Container contentPane =getContentPane();
    JPanel bspanel = new JPanel();
    JPanel bnpanel = new JPanel();
    setBackground(Color.CYAN);
         //JComboBox
    nor = new JComboBox();
    nor.setEditable(false);
    nor.addItem("3");
    nor.addItem("4");
    nor.addItem("5");
    nor.addItem("6");
    nor.addItem("7");
    nor.addItem("8");
    nor.addItem("9");
    bspanel.add(nor);
    col = new JComboBox();
    col.setEditable(false);
    col.addItem("BLACK");
    col.addItem("GREEN");
    col.addItem("CYAN");
    bspanel.add(col);
    JLabel tl = new JLabel("Time");
    tl.setFont(new Font("Serif",Font.BOLD,12));
    bspanel.add(tl);
    JTextField tlag = new JTextField("0",4);
    bspanel.add(tlag);
    start =new JButton("Start");
    bspanel.add(start);
    ref =new JButton("Refresh");
    bspanel.add(ref);
    JButton end =new JButton("End");
    bspanel.add(end);
    start.addActionListener(this);
    nor.addActionListener(this);
    col.addActionListener(this);
    ref.addActionListener(this);
    end.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    dispose(); // Closes the dialog
    contentPane.add(bspanel,BorderLayout.SOUTH);
    JLabel count = new JLabel("No of Transfer reguired:");
    count.setFont(new Font("Serif",Font.BOLD,16));
    bnpanel.add(count);
    no = new JLabel("7");
    no.setFont(new Font("Serif",Font.BOLD,16));
    bnpanel.add(no);
    JLabel moved = new JLabel("Moved:");
    moved.setFont(new Font("Serif",Font.BOLD,16));
    bnpanel.add(moved);
    no1 = new JLabel("0");
    no1.setFont(new Font("Serif",Font.BOLD,16));
    bnpanel.add(no1);
    contentPane.add(bnpanel,BorderLayout.NORTH);
    contentPane.add(p,BorderLayout.CENTER);
         String r = (String)nor.getSelectedItem();
    rings = Integer.valueOf(r).intValue();
    p.draw(rings,1) ;
    public void actionPerformed(ActionEvent evt)
    {  Object source = evt.getSource();
    if(source == start)
    r3 = Integer.valueOf((String)nor.getSelectedItem()).intValue();
    p.transfer(false);
    t.initialise(rod1,rod2,rod3,0);
    t.towerOfHanoi(r3);
         //repaint();
         if(source == ref)
    { rod1.removeAllElements() ;
    rod2.removeAllElements() ;
    rod3.removeAllElements() ;
    count=0;
              r3 = Integer.valueOf((String)nor.getSelectedItem()).intValue();
              p.draw(r3,1);
    p.transfer(true);
    no1.setText(""+0);
    p.trans_vec(rod1,rod2,rod3);
    t.initialise(rod1,rod2,rod3,0);
              System.out.println("");
              repaint();
    if(source == nor)
    { JComboBox j = (JComboBox)source;
    String item = (String)j.getSelectedItem();
    int ring1 = Integer.valueOf(item).intValue();
    int a=1;
    for(int i=1;i<=ring1;i++)
    { a = a*2;
    a=a-1;
    no.setText(""+a);
    p.draw(ring1,1);
    repaint();
    if(source == aboutItem)
    {  if (dialog == null) // first time
    dialog = new AboutDialog(this);
    dialog.setVisible(true);
    if(source == exitItem)
    {  System.exit(0);
         if (source==col)
         { JComboBox j = (JComboBox)source;
    String item = (String)j.getSelectedItem();
              repaint();
    TOWER
    class tower extends Thread
    { private Vector rod1 = new Vector();
    private Vector rod2 = new Vector();
    private Vector rod3 = new Vector();
    private int count ;
    private String elem;
    final mainPanel2 z =new mainPanel2();
    public void initialise(Vector r1,Vector r2,Vector r3,int c)
    { rod1 = r1;
    rod2 = r2;
         rod3 = r3;
         count =c;
    public void towerOfHanoi(int rings)
    for(int i=0;i<rings;i++)
    rod1.add(" "+(i+1));
    System.out.println("rod1:"+rod1.toString());
    hanoi(rings,1,2);
    public void hanoi(int m,int i, int j)
    if(m>0)
    { hanoi(m-1,i,6-i-j);
    if(i==1 && j==2 && rod1.isEmpty()==false)
    { count++;
    //no1.setText(""+count);
    elem = (String)rod1.remove(0);
    rod2.add(0,elem);
         //z.trans_vec(rod1,rod2,rod3);
    repaint(); //NOT ABLE TO USE METHOD HERE...WHY??
    //z.hanoi_paint();
    try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 2:"+rod2.toString());
    if(i==1 && j==3 && rod1.isEmpty()==false)
    { count++;
         //no1.setText(""+count);
         elem = (String)rod1.remove(0);
    rod3.add(0,elem);
    //z.trans_vec(rod1,rod2,rod3);
    repaint();//
    // z.hanoi_paint();
                   try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 3:"+rod3.toString());
    if(i==2 && j==1 && rod2.isEmpty()==false)
    { count++;
         //no1.setText(""+count);
         elem = (String)rod2.remove(0);
    rod1.add(0,elem);
    //z.trans_vec(rod1,rod2,rod3);
    repaint();
    //z.hanoi_paint();
    try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 1:"+rod1.toString());
    if(i==2 && j==3 && rod2.isEmpty()==false)
    { count++;     
         //no1.setText(""+count);
         elem = (String)rod2.remove(0);
    rod3.add(0,elem);
    //z.trans_vec(rod1,rod2,rod3);
    repaint();
    //z.hanoi_paint();
    try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 3:"+rod3.toString());
    if(i==3 && j==1 && rod3.isEmpty()==false)
    { count++;
         //no1.setText(""+count);
    elem = (String)rod3.remove(0);
    rod1.add(0,elem);
    //z.trans_vec(rod1,rod2,rod3);
    repaint();
    //z.hanoi_paint();
         try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 1:"+rod1.toString());
    if(i==3 && j==2 && rod3.isEmpty()==false)
    { count++;
         //no1.setText(""+count);
    elem = (String)rod3.remove(0);
    rod2.add(0,elem);
    //z.trans_vec(rod1,rod2,rod3);
    repaint();
    //z.hanoi_paint();
    try
              this.sleep(2000);      
              catch (Exception e) { e.printStackTrace() ;  }
    System.out.println(count+". ROD 2:"+rod2.toString());
    hanoi(m-1,6-i-j,j);
    MAINPANEL
    class mainPanel2 extends JPanel //throws IOException
    public Vector line = new Vector();
    public Vector rod11= new Vector();
    public Vector rod22= new Vector();
    public Vector rod33= new Vector();
    public int no_ring;
    public int rod_no;
    String pixel;
    StringTokenizer st,st1;
    int x,y;
    public boolean initial =true;
    public void paintComponent(Graphics g)
    { System.out.println("repaint test");
    bresenham(100,60,100,360);
         bresenham(101,60,101,360);
    bresenham(102,60,102,360);
    bresenham(103,60,103,360);
    bresenham(104,60,104,360);     
    g.setColor(Color.BLUE);
    while(line.size()>0)
    { pixel = (String)line.remove(0);
    st = new StringTokenizer(pixel);
    x = Integer.valueOf(st.nextToken()).intValue();
    y = Integer.valueOf(st.nextToken()).intValue();
    g.drawLine(x,y,x,y);
    bresenham(300,60,300,360);
    bresenham(301,60,301,360);
    bresenham(302,60,302,360);
    bresenham(303,60,303,360);
    bresenham(304,60,304,360);     
    while(line.size()>0)
    { pixel = (String)line.remove(0);
    st = new StringTokenizer(pixel);
    x = Integer.valueOf(st.nextToken()).intValue();
    y = Integer.valueOf(st.nextToken()).intValue();
    g.drawLine(x,y,x,y);
    bresenham(500,60,500,360);
    bresenham(501,60,501,360);
    bresenham(502,60,502,360);
    bresenham(503,60,503,360);
    bresenham(504,60,504,360);     
    while(line.size()>0)
    { pixel = (String)line.remove(0);
    st = new StringTokenizer(pixel);
    x = Integer.valueOf(st.nextToken()).intValue();
    y = Integer.valueOf(st.nextToken()).intValue();
    g.drawLine(x,y,x,y);
    bresenham(0,361,615,361);//used to get a pixel according to algo.. . func not provided
    bresenham(0,362,615,362);
    bresenham(0,363,615,363);
    bresenham(0,364,615,364);
    bresenham(0,365,615,365);     
    while(line.size()>0)
    { pixel = (String)line.remove(0);
    st = new StringTokenizer(pixel);
    x = Integer.valueOf(st.nextToken()).intValue();
    y = Integer.valueOf(st.nextToken()).intValue();
    g.drawLine(x,y,x,y);
    if(initial==true)
    g.setColor(Color.RED);
    for(int i = no_ring;i>0;i--)
    { g.drawLine(100-(i*8),360-(no_ring - i)*10,100+(i*8)+5,360-(no_ring - i)*10);
    g.drawLine(100-(i*8),359-(no_ring - i)*10,100+(i*8)+5,359-(no_ring - i)*10);
    g.drawLine(100-(i*8),358-(no_ring - i)*10,100+(i*8)+5,358-(no_ring - i)*10);
    g.drawLine(100-(i*8),357-(no_ring - i)*10,100+(i*8)+5,357-(no_ring - i)*10);
    g.drawLine(100-(i*8),356-(no_ring - i)*10,100+(i*8)+5,356-(no_ring - i)*10);
    // draw for each rod
    //System.out.println("rod11:"+rod11);
    //System.out.println("rod22:"+rod22);
    //System.out.println("rod33:"+rod33);
         int r1 = rod11.size();
         int r2 = rod22.size();
         int r3 = rod33.size();
    String rd1,rd2,rd3;
    int r11,r12,r21,r22,r31,r32;
    if(initial == false)
         { g.setColor(Color.RED);
         while(rod11.size()>0)
    { r12 = rod11.size()-1;
              rd1 = (String)rod11.remove(r12);
    r11 = Integer.valueOf(rd1).intValue();
    g.drawLine(100-((r11+1)*8),360-(r1 - (r11+1))*10,100+((r11+1)*8)+5,360-(r1 - (r11+1))*10);
    g.drawLine(100-((r11+1)*8),359-(r1 - (r11+1))*10,100+((r11+1)*8)+5,359-(r1 - (r11+1))*10);
              g.drawLine(100-((r11+1)*8),358-(r1 - (r11+1))*10,100+((r11+1)*8)+5,358-(r1 - (r11+1))*10);
              g.drawLine(100-((r11+1)*8),357-(r1 - (r11+1))*10,100+((r11+1)*8)+5,357-(r1 - (r11+1))*10);
              g.drawLine(100-((r11+1)*8),356-(r1 - (r11+1))*10,100+((r11+1)*8)+5,356-(r1 - (r11+1))*10);
         while(rod22.size()>0)
    { g.setColor(Color.RED);
              r22 = rod22.size()-1;
         System.out.println("TEST *************************:"+r22);
              try
         // e.printStackTrace();      
              InputStreamReader isr = new InputStreamReader(System.in);
         BufferedReader br = new BufferedReader(isr)      ;
         br.readLine() ;
         }catch(Exception f) {}
              rd2 = ((String)rod22.remove(r22)).trim();
    r21 = Integer.valueOf(rd2).intValue();
    g.drawLine(300-((r22+1)*8),360-(r2 - (r22+1))*10,300+((r22+1)*8)+5,360-(r2 - (r22+1))*10);
    g.drawLine(300-((r22+1)*8),359-(r2 - (r22+1))*10,300+((r22+1)*8)+5,359-(r2 - (r22+1))*10);
              g.drawLine(300-((r22+1)*8),358-(r2 - (r22+1))*10,300+((r22+1)*8)+5,358-(r2 - (r22+1))*10);
              g.drawLine(300-((r22+1)*8),357-(r2 - (r22+1))*10,300+((r22+1)*8)+5,357-(r2 - (r22+1))*10);
              g.drawLine(300-((r22+1)*8),356-(r2 - (r22+1))*10,300+((r22+1)*8)+5,356-(r2 - (r22+1))*10);
         while(rod33.size()>0)
    { g.setColor(Color.RED);
              r32 = rod33.size()-1;
              rd3 = (String)rod33.remove(r32);
    r31 = Integer.valueOf(rd3).intValue();
    g.drawLine(500-((r32+1)*8),360-(r3 - (r32+1))*10,500+((r32+1)*8)+5,360-(r3 - (r32+1))*10);
    g.drawLine(500-((r32+1)*8),359-(r3 - (r32+1))*10,500+((r32+1)*8)+5,359-(r3 - (r32+1))*10);
              g.drawLine(500-((r32+1)*8),358-(r3 - (r32+1))*10,500+((r32+1)*8)+5,358-(r3 - (r32+1))*10);
              g.drawLine(500-((r32+1)*8),357-(r3 - (r32+1))*10,500+((r32+1)*8)+5,357-(r3 - (r32+1))*10);
              g.drawLine(500-((r32+1)*8),356-(r3 - (r32+1))*10,500+((r32+1)*8)+5,356-(r3 - (r32+1))*10);
    why i m not able to use repaint() method in tower class? from where i can use repaint() method

    i can't read your code - not formatted with code tags
    I have no chance of getting it to compile (AboutDialog class?? p.draw() ??)
    here's a basic routine - add a couple of things to this to demonstrate what is not
    being redrawn
    (compare the readability of below code (using tags) to yours)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    class Testing extends JFrame
      public Testing()
        setSize(400,300);
        setLocation(400,300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        final DrawPanel dp = new DrawPanel();
        JButton btn = new JButton("Change Text Location/Repaint");
        getContentPane().add(dp,BorderLayout.CENTER);
        getContentPane().add(btn,BorderLayout.SOUTH);
        btn.addActionListener(new ActionListener(){
          public void actionPerformed(ActionEvent ae){
            dp.x = (int)(Math.random()*300);
            dp.y = (int)(Math.random()*150)+50;
            repaint();}});
      public static void main(String[] args){new Testing().setVisible(true);}
    class DrawPanel extends JPanel
      int x = 50, y = 50;
      public void paintComponent(Graphics g)
        super.paintComponent(g);
        g.drawString("Hello World",x,y);
    }

  • Problems using IMPORT method

    Hello,
    We have just upgraded from 4.6c to ECC6.
    In several programs we used Import method with the following syntax in 4.6c:
    import (tname) to &1 from database zzhilan(zz) id zkey1(16) .
    However in ECC6 , since it didn't compile we changed it to :
      import tname to &1 from database zzhilan(zz) id zkey1(16) .
    However now it doesnt read the data from the database.
    How should the Import method be used in ECC6 ?
    Please your advise.
    Mazal

    Hi Mazal,
    While importing source variable and destination variable should same.
    try below
    IMPORT it_itab = it_itab from database zzhilan(zz) id zkey1(16).
    hope it works.
    Thanks!!

  • IDE bug? Page navigation problem.

    Is there any way to see all of the buttons on a page in the Page Navigation screen?
    When you left click on the page in the Page Navigation screen, it expands, but not enough to see all of the buttons.
    I have a page with a lot of buttons on it, and I can only see the first 10 of them and cannot find a way to scroll down.
    Thanks.

    A bug report has laready been filed for this issue.

  • Page navigation problem in adf application.

    Hi All,
    I developed one application in ADF that is working fine in integrated WLS. But While deployed in standalone WLS the page is not navigating.
    in my application i created two pages like in First page search with table.second page details of particular row from table for that oi used
    Execute with perms with key value method from Data-control in table for row i changed to command link when i click on link the page should be navigated to details page
    in integrated WLS but its not working in standalone WLS. please give some solution.
    Regards,
    Shankar

    Shankar,
    Did you try searching for the problem first?
    Check the URL that you are using to run your application in the standalone WLS (and compare it with the URL that you use with the integrated WLS).
    I'd guess your standalone URL has ".jspx" or ".jsf" at the end of it, which means you're running a page directly and not a taskflow view activity. Try removing the ".jspx" or ".jsf" from your URL and see what happens.
    For more explanation, you can search the forum or read the Fusion Developers Guide for ADF - this question is asked about once or twice a week.
    John

  • Page navigation problem

    Guys,
    I have two pages, each one with table with a hyperlink column. I use the same code in the hyperlink_action method for both (... return "nav-string"...).
    For one table this works, for the other not...
    I can't see a difference - navigation rules are:
    <navigation-rule>
    <from-view-id>/mplist.jsp</from-view-id>
    <navigation-case>
    <from-outcome>toMPDetails</from-outcome>
    <to-view-id>mpdetails</to-view-id>
    </navigation-case>
    <navigation-rule>
    <navigation-rule>
    <from-view-id>/pdsamlist.jsp</from-view-id>
    <navigation-case>
    <from-outcome>toPdsamDetails</from-outcome>
    <to-view-id>pdsamdetails</to-view-id>
    </navigation-case>
    <navigation-rule>Ideas? I'm stuck and/or blind...
    regards
    jbh

    a) Add h:messages on all your pages. Are there any validation or conversion errors?
    b) Are you using an action method on your submit buttons? If so, are the action methods being executed?
    CowKing

  • Problems using addchild method to dynamically load buttons

    Hello,
    I have researched the internet for about a week now losing sleep trying to figure this out.  Can someone help me?  I have an fla file with Quiz question.  For example:
    on frame 50 I have images and radio buttons, a submit button with an instance name of submit_btn with the question The first capital of the United States
    was New York City as a static text.  The action for this frame is:
    stop();
    import fl.controls.RadioButtonGroup;
    var radioGroup1:RadioButtonGroup = new RadioButtonGroup("TriviaQuestion 1");
    rb3.textField.autoSize = TextFieldAutoSize.LEFT;
    rb1.label="True";
    rb2.label="False";
    rb3.label="NY is not in the US";
    rb4.label="NY is a City";
    rb1.group=radioGroup1;
    rb2.group=radioGroup1;
    rb3.group=radioGroup1;
    rb4.group=radioGroup1;
    submit_btn.addEventListener(MouseEvent.CLICK, submitClick);
    function submitClick(event:MouseEvent):void {
    if(radioGroup1.selection == null) {
    return;
    if(radioGroup1.selection.label == "True") {
    status_txt.text=radioGroup1.selection.label+ " is correct! Well done.  The first capital of the United States was New York City in 1789.";
    }else {status_txt.text=radioGroup1.selection.label+ " is incorrect! Try Again.";
    next_btn.addEventListener(MouseEvent.CLICK, nextOnClick);
    function nextOnClick(event:MouseEvent):void
    gotoAndPlay(55);
    Now my movie works fine this way.  What I want to do is practice adding the navigations (prevButton, nextButton and finishButton) with the addchild button in an AS file (linking it in the document properties).  I have done this if I add the questions as well but a little confused on how to make the navigation work if the questions are already on a time line.  So far this is what my ClassButton.as file looks like  (can't figure out how to import the questions);  If I get the prevhandler correct, the rest will be easy.
    package
    import flash.display.MovieClip;
    //import flash.display.Sprite;  <<fla file went crazy when I used Sprite verses MovieClip
    import fl.controls.Button;
    import flash.events.MouseEvent;
    import flash.text.TextField;
    import flash.text.TextFieldAutoSize;
    import fl.controls.RadioButtonGroup;
    public class ClassButton extends MovieClip {
    //handling questions: --this is the big problem..don't know how to import RadioButtonGroups
    private var quizQuestions:RadioButtonGroup;
    //private var currentQuestion:QuizQuestions;
    //private var radioGroup:RadioButtonGroup;
    private var currentIndex:int = 0;
    //buttons:
    private var prevButton:Button;
    private var nextButton:Button;
    private var finishButton:Button;
    //scoring and messages:
    private var score:int = 0;
    private var status:TextField;
    public function ClassButton() {
    createButtons();
    //createQuestions();
    /* little confused on what function to create to add questions
    private function createQuestions() {
    radioGroup = new RadioButtonGroup;
    //create previous, next and finish button
    private function createButtons() {
    var yPosition:Number = 505;
    prevButton = new Button();
    prevButton.label = "Previous";
    prevButton.x = 50.35;
    prevButton.y = yPosition;
    prevButton.addEventListener(MouseEvent.CLICK, prevHandler);
    addChild(prevButton);
    nextButton = new Button();
    nextButton.label = "Next";
    nextButton.x = prevButton.x + prevButton.width + 40;
    nextButton.y = yPosition;
    //nextButton.addEventListener(MouseEvent.CLICK, nextHandler);
    addChild(nextButton);
    finishButton = new Button();
    finishButton.label = "Finish";
    finishButton.x = nextButton.x + nextButton.width + 40;
    finishButton.y = yPosition;
    //finishButton.addEventListener(MouseEvent.CLICK, finishHandler);
    addChild(finishButton);
    private function showMessage(theMessage:String) {
    status.text = theMessage;
    status.x = finishButton.x + finishButton.width + 40;
    status.y = 505;
    /* blocked this out because it's incorrect.  the problem is the property (currentQuestion and quizQuestion)
    private function prevHandler(event:MouseEvent) {
    showMessage("");
    if(currentIndex > 0) {
    currentQuestion.visible = false;
    currentIndex--;
    currentQuestion = quizQuestions[currentIndex];
    currentQuestion.visible = true;
    else {
    showMessage("There are no previous quesions. This is the first question.");
    How do I make these buttons - next, prev and finish -  work for the questions using the addchild method in a separate AS file linked to the FLA file?  Is there a way to import the RadioButtons?  Is this possible.

    Check out this Nugget.
    It contains code that should help you get started.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • DataScroller, table page navigation problem

    In my case I have created page with table and datascroller. I navigate from this page to another page and then back. But here is a problem. If I begin, for example, from 3rd page of data scroller and return back, the datascroller alwas positions on first page! I wold like to return on the same page (as indicated on data scroller). What is the solution?
    Regards Simy

    I am experimenting with method setFirst(int) on HtmlDataTable component. Somewhere I have noticed that page on HtmlDataScroller is defined by setFirst(int). So in the moment when I navigate to page where HtmlDataTable is, I set method parameter to appropriate value. This is done in afterPhase method of phase listener, but it obviosly does not work, because only RENDER_RESPONSE is triggered when I return to page. Questions:
    1.) Is using setFirst(int) right way?
    2.) In which phase of lifecycle should be used?
    3.) How to trigger other lifecycle phases, not only RENDER_RESPONSE?
    Regards Simy

  • ESS page Navigation problem EP7.0 for ERP2004

    Hi
    How are you?
    We made ESS configuration in our new NW04s SP10 portal.
    We use ECC 5.0 as back end. As we can’t install the XSS component for ERP2004 in NW04s, we add java stack in ECC 5.0 machine and installed the XSS and JCO and all there. And imported the BP for ESS 60.2 in portal EP7.0.
    Now everything is working fine that one problem.
    The problem is related to link in portal. When I click the ESS overview menu, I get the the overview with ESS menu inside the page.
    But if I click again in ESS overview menu, it changes to the overview with ESS menu inside the page. If I click again it change to first style. What I mean is, it change the every alternative time. I made all the PCD setting in IMG. And when I get the second view, and if I click in any link, the top level navigation will not work after that.
    Do you have any idea why it is so and how to fix it?
    I appreciate your support.
    Thanks
    Raibin

    It might seem like not a big problem at first, but this can be a major problem. If you are implementing filters and routing their in web.xml, you will not get the intended effect. For example, I use a filter to make sure that the user has logged in before accessing a page in the /app directory. The filter is not applied AT ALL the first time the user tries to go into the /app directory. Any way to make JSF shows the correct URL?

  • Problem using webservice method consumer proxy with rawdata from abap

    Hello Gurus,
    I am struggling with an error using a proxy consumer service from ABAP. The proxy was generated using the WSDL from the web service provider. For a specific method we need to send a rawstring as seen bellow:
    The file to be sent on this call is a ZIP file XAdES-BES signed and on BASE64. I’ve implemented the proper code to get the original file from local PC, and convert it to BASE64 before moving the content to the webservice structure and call the service proxy. At SOAMANAGER I also configured the webservice and the proper port with the WSDL:
    The communication is working properly but my problem is with the binary content. When calling the webservice the response is that the structure of the file is wrong. I found it very strange since I used a tiny SOAPUI project with the same WSDL and it worked with no problem.
    After debugging I could see that the content moved to the rawdata string before calling the proxy does not match the content that I can see from the call payload on web services util (srt_util)!
    So the sample code for my method:
    * get the file from the specified folder
    call function 'GUI_UPLOAD'
    exporting
    filename                = ld_zipfilename
    filetype                = 'BIN'
    importing
    filelength              = zip_size
    tables
    data_tab                = t_zip_data[]
    exceptions
    file_open_error         = 1
    file_read_error         = 2
    no_batch                = 3
    gui_refuse_filetransfer = 4
    invalid_type            = 5
    no_authority            = 6
    unknown_error           = 7
    bad_data_format         = 8
    header_not_allowed      = 9
    separator_not_allowed   = 10
    header_too_long         = 11
    unknown_dp_error        = 12
    access_denied           = 13
    dp_out_of_memory        = 14
    disk_full               = 15
    dp_timeout              = 16
    others                  = 17.
    * convert to string
    clear buffer_zip.
    call function 'SCMS_BINARY_TO_STRING'
    exporting
    input_length = zip_size
    importing
    text_buffer  = buffer_string
    tables
    binary_tab   = t_zip_data[]
    exceptions
    failed       = 1
    others       = 2.
    * encode base 64
    perform encode_base64 using buffer_string
    buffer_zip. 
    form encode_base64 using in_string type string
    out_string type xstring.
    data: l_sbuff     type string.
    * convert the file to BASE64
    call method cl_http_utility=>encode_base64
    exporting
    unencoded = in_string
    receiving
    encoded   = l_sbuff.
    call function 'SCMS_STRING_TO_XSTRING'
    exporting
    text   = l_sbuff
    importing
    buffer = out_string
    exceptions
    failed = 1
    others = 2.
    endform.                    "encode_base64
    calling the webservice:
    l_input-xxxx-dokument = buffer_zip.
    try.
    call method l_proxy_test->webservice
    exporting
    input  = l_input
    importing
    output = l_output.
    catch cx_ai_soap_fault into lr_exc_soap_fault.
        endtry.
    From my understanding rawstring should be the same as ABAP xstring. If I debug the program and check the content of the  l_input-dokument before calling the proxy I get binary content: “Izw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9InV0Zi04Ij8…” that is in fact correct
    If I check the payload after call I can see that the binary content sent on the XML is not the same, in fact it is totally different: ”SXp3L2VHMXNJSFpsY25OcGIyNDlJakV1TUNJZ1pXNWpiMlJw…” !!
    I’ve tried a lot of different conversions, changed configuration on the communication, port, etc and nothing seems to work. I really can’t figure out why the binary content on the call is not the same as I move to the webservice structure.
    If I use the project from SOAP UI and send the proper binary content, that is “Izw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9InV0Zi04Ij8…” it works perfectly and the response is successfully.
    Anyone has a clue what could be causing this?
    Appreciate any kind of input.
    Regards,
    João Silva Pinto.

    Anyone? Any clue would be appreciated.

  • Tab pages - Navigation Problem

    Hi,
    What key I should use, if I want to navigate to other blocks in the same tab page.
    Thanks
    KC
    null

    I had this same problem. I created a TAR on Metalink about it and Oracle's response to me was to see Note#1016812.4 "KEY-NXTBLK AND KEY-PRVBLK DO NOT FIRE ON TAB PAGE".
    Basically, those triggers perform differently for tab pages.
    Solution Description:
    =====================
    The KEY-NXTBLK and KEY-PRVBLK triggers are re-defined to mean "Next Tab Page" and "Previous Tab Page" when on a tab page.
    However, you can put calls GO_ITEM or GO_BLOCK into a WHEN-TAB-PAGE-CHANGED
    trigger instead of the KEY-NXTBLK and KEY-PRVBLK triggers. This way, when
    Forms thinks you want to change tab pages, you can change blocks.
    Solution Explanation:
    =====================
    The KEY-NXTBLK and KEY-PRVBLK triggers were redefined to be consistent
    with the Microsoft standard for tab sheets.
    null

  • Tab Page Navigation Problem???

    Hi All:
    I am facing problem with tab page. when I save some record at the last tab then it moves towards its previous tab page. May be navigation becomes wrong.Record is saved. What would be the solution? Can anyody tell me. Thanks
    Ali

    Just two wonders...:
    1) Are the blocks ordered in the Object Navigator ... as they appear in the tabs of your tab canvas...????
    2) Is there in the 'save trigger' or in other place (which take place in the save process) a "go_item(<itemname_of_the_previous_tab>)" or "go_block(<block_resides_in_the_previous_tab>)"...????
    Greetings....
    Sim

  • Creating page Navigation without using Dynamic Navigation

    Hi,
    I have a requirement that i need to create few pages where each page will have navigation tabs at the left side and corresponding iviews at the right. Navigation will not  be dynamic but static in nature that means target for the navigation link will not be decided dynamically but will be static. Each tab on the navigation will be linked to a page which will be opened in the same content area. Since there is no dynamic navigation so that's why there is no application present to be used for creating dynamic navigation iview. Please suggest what else can be option to create this sort of page.
    Best Regards,
    Vikash

    Hi,
    If you want your tab on the left instead of the top you need to change the defaultframeworkpage. If some users need to have the navigation on top and some on the left you need to make a custom layout for these users so that only these users have your modified frameworkpage.
    Of course you can not mix tabs on the left and tabs on top. If you want something like that then you`ll need to make a custom html page with tabs on the left pointing to standard portal locations.
    Hope this helps.

Maybe you are looking for