No Button in a specific JSP page fires event..

hi
I desperately need help in following thing.
I wanted to sort a datatable by command links in headers but those were not firing events so i used teh buttons instead. They kept on working fine but now something weird has happened. Neither the buttons in the header nor anywhere else on page work .. (I copy - pasted the sorting logic into a button outside datatable) but this button is also not working. If i use the debugger then debugger doesnot go into any of the actionListener methods. My CreatorLog file shows the following trace.
INFORMATIONAL *********** Exception occurred ************ at Fri Jul 15 06:42:44 java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
[catch] at com.sun.rave.insync.beans.BeansUnit.instantiateBean(BeansUnit.java:1101)
at com.sun.rave.insync.live.LiveUnit.ressurectDesignBean(LiveUnit.java:316)
at com.sun.rave.insync.live.LiveUnit.resurrect(LiveUnit.java:379)
at com.sun.rave.insync.live.LiveUnit.sync(LiveUnit.java:276)
at com.sun.rave.insync.models.FacesModel.sync(FacesModel.java:761)
at com.sun.rave.designer.DesignerTopComp.sync(DesignerTopComp.java:657)
at com.sun.rave.designer.DesignerTopComp.componentShowing(DesignerTopComp.java:761)
at org.openide.windows.WindowManager.componentShowing(WindowManager.java:333)
at com.sun.rave.windowmgr.WindowManagerImpl.componentShowing(WindowManagerImpl.java:375)
at com.sun.rave.windowmgr.LayoutManagerListenerImpl.layoutWindowShown(LayoutManagerListenerImpl.java:69)
at com.sun.winsys.layout.impl.RLayoutManager.fireWindowShown(RLayoutManager.java:289)
at com.sun.winsys.layout.impl.RLayoutWindow.fireShown(RLayoutWindow.java:482)
at com.sun.winsys.layout.impl.RTabbedDocumentPane.fireChangedNoActivate(RTabbedDocumentPane.java:400)
at com.sun.winsys.layout.impl.RTabbedDocumentPane.stateChanged(RTabbedDocumentPane.java:388)
at javax.swing.JTabbedPane.fireStateChanged(JTabbedPane.java:287)
at javax.swing.JTabbedPane$ModelListener.stateChanged(JTabbedPane.java:219)
at javax.swing.DefaultSingleSelectionModel.fireStateChanged(DefaultSingleSelectionModel.java:116)
at javax.swing.DefaultSingleSelectionModel.setSelectedIndex(DefaultSingleSelectionModel.java:50)
at javax.swing.JTabbedPane.setSelectedIndexImpl(JTabbedPane.java:468)
at javax.swing.JTabbedPane.setSelectedIndex(JTabbedPane.java:461)
at com.sun.winsys.swing.BasicClosableTabbedPaneUI$MouseHandler.mousePressed(BasicClosableTabbedPaneUI.java:3456)
at java.awt.Component.processMouseEvent(Component.java:5097)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Jul 15, 2005 6:42:46 AM com.sun.faces.renderkit.html_basic.HtmlBasicRenderer getForComponent
WARNING: Unable to find component with ID 'componentLabel3' in view.
If i open the server log from server navigation it doesnot show any other message on button clicks...
plz help..

hi
thanks for reply.. But what if i want to do my own sorting. I am making enterprise application using JSF (Sun Creator). Using my own layered architecture.
The prolem is why Creator(/JSF??) behaved so unpredictably. One moment all the buttons in header of datatable were working fine and other moment an exception trace was found in Creator Log(Help->CreatorLog)??
What went wrong..
Any possible reasons??

Similar Messages

  • Locale-specific JSP page

    Hi,
    I want to provide internationalization in my web tier by providing locale-specific JSP pages rather than using resource bundles for the content inside the JSP page.
    In other words, I'd like to have a folder structure such that I have a default .jsp file in the root folder and locale-specific .jsp files under the locale folders as following:
      /jsp
          /index.jsp
          /en_US/
                 index.jsp
          /en_GB/
                 index.jspAnd depending on the default locale of the server (not user's). I'd like the appropriate index.jsp to be picked up at runtime.
    If the above is not possible, I even wouldn't mind using a locale suffix for the JSP files:
      /jsp
          /index.jsp
          /index_en_US.jsp
          /index_en_GB.jspIs there any way to do this?
    Thanks, Rishabh

    Well yeah, I did want the server to pick up the "best fit" JSP page automatically, going from specific to general. So if /en_US/index.jsp is missing, it should default to /index.jspSomewhat like how ResourceBundle handles property files.
    This approach is suggested in the Designing Enterprise Applications with the J2EE Platform book in the J2EE Internalization and Localization (http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/i18n/i18n4.html) section 10.3.3.5 - Locale-Specific JSP Pages. Of course here they use the users's locale from the request to do this. But using the default locale of the server should pretty much be the same thing.
    If the above doesn't really work, can anyone suggest how I can hook into the request handler or write a custom servlet filter as suggested by Ram to do this at a framework level so that it works for all my pages?
    Thanks, Rishabh

  • Cancel- and main-button dynamically generated using JSP-pages

    Maybe a HOWTO for the Jdev-team.
    HOWTO get rid of the delete and main-button in your jsp-pages?
    Very simple!
    Go to the container_bottom.jsp page in your webapp/jsp-folder and delete the code for the cancel-button => now the user can render his own buttons by using a header.html, contents.jsp and footer.html for the jsp-pages.

    We tried the same thing you are trying to do and got
    very far, but it quickly became very complicated. We
    realized it was just simpler to use the screenflow as
    intended.
    By this I mean, if your parent form has 4 buttons
    (A,B, C and SUBMIT), you should design different
    paths in your screen flow for each button. so when a
    user clicks button A, the parent form submits back to
    Fuego engine, engine looks at screenflow and send
    them down the button A path to the Form A. When they
    hit submit on Form A, screenflow goes back to parent
    form.Hi, bcespinola:
    Our team finally decide use jsp with YUI (Yahoo User Interface Library) to achieve this design. Wish this could help you. All popup window would be replaced by Dialog of YUI. Thanks for your help.
    Vince

  • How to open a Filechooser on a button click from jsp page

    can anyone tell me how to open a Filechooser on a button click from a jsp page.
    Thanks

    <input type="file" name="myfile">

  • How to get the URL parameter value when navigating from JSP Page to portal

    Hi All,
    I have web Dynpro application with one button, while clicking that button It will navigate to JSP page as external window. In the JSP page I have a input field and Button.
    In the JSP page input field I will enter some values and press submit button, it will navigate to Portal page by passing some URL parameter with values.
    Once user entering to portal by default WD page displayed, the same WD page I try to get the URL Parameter which I have passed from JSP page, but I am not able to get the URL parameter value.
    If same application running in without portal, I can able to get the URL parameter values. I am getting the URL parameter by interface view default inbound plug parameter.
    How do we resolve this problem?
    Regards,
    Boopathi M

    Hi
    Please try  these link might helpful for you
    1.[How to call WebDynPro application from JSP |/thread/452762 [original link is broken];
    2.[How to get the previous page url from abstract portal component? |/thread/1289256 [original link is broken];
    3.[how to launch and pass a parameter |/thread/5537 [original link is broken];
    Best Regards
    Satish Kumar

  • Disable Refresh and back  facilty in a jsp page

    hi,
    I have a jsp page which makes entries in a db. to stop is doing it again (by refreshing the page) refresh facility is to be diabled. I do not want to use cookies or session . Can any one tell me how to disable refresh and back button in a html/jsp page
    Atishay

    i am bit new with jsp and i do not know how to use synchronization token
    howeever i think if we have a hidden input with value=0 and later make it one when entry is made in the db by the jsp page. But the problem is that i do not know how to check the value. Because each time we refresh the page the value of the variable will be initialized so a check can not be made.
    Also following will help
    <META HTTP-EQUIV="Expires" CONTENT="Fri, 1 Jun 2001 00:01:00 GMT">
    but how to take the time of the host machine which will run the jsp page.
    Thanks
    Atishay

  • View jasper report in jsp page

    i have developed a java code that could connect to the databse n compile xml code into jasper report. report is generated when it is executed in dos prompt. however i wan the report to appear after a button "print" in a jsp page is pressed. how do i do dat? how do i ask my jsp page to execute my curret java code to generate a report?

    same

  • Button action listener in jsp

    Hi,
    I want to know, how we can do the button action listener in jsp pages. i have 3 buttons in same jsp page. each button action have separate taks in the same page. how to do this. please suggest me.
    Regards
    Chinna

    Or, I think you have to use JSF (Java Server Faces) to use action Listeners.
    visit this link:
    http://72.5.124.55/javaee/5/docs/tutorial/doc/JSFDevelop5.html

  • How to Open another jsp page from jsp page

    Hi,
    I am new to JSP. I need help to handle issue given below:
    I have created one JSP Page for Login which contains Username and Password with a Submit Button. Once user inputs UserName and Password and Press Submit Button, It calls another JSP Page "Validate_login"
    Validate_Login JSP does a JDBC call to Databse and validate User Name and Password. Now i want to open a "Employee.jsp" page if Username and Password matches with the one in database.
    Pls advice what function or tag should i use to open this page in If (condition) true section.. I tried Window.open but it return back with error.

    I tried with the function suggested by Doly. But nothing is happening. It doesn't redirect to any page. only a blank page comes.
    here is complete code . pls correct me if i am wrong somewhere.
    this is code of Validate_Login.jsp page which is invoked when user press login button on login.jsp.
    my purpose is to validate username and password from database and redirect to employee.jsp if it is ok else back to login.jsp
    here is source of Validate_login.jsp
    =============================================================
    <%@ page language="java" import="java.sql.*" pageEncoding="ISO-8859-1"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Validate Login</title>
    </head>
    <body>
    <%
    String username = request.getParameter("username");
    String password = request.getParameter("password");
    String viewPATH = "c:/MyData.mdb";
    String dsnPATH = "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb); " +
    "DBQ="+viewPATH+"; " +
    "UserCommitSync=Yes; " +
    "Threads=3; " +
    "SafeTransactions=0; " +
    "PageTimeout=5; " +
    "MaxScanRows=8; " +
    "MaxBufferSize=2048; " +
    "DriverId=281; " +
    "DefaultDir=C:/ProgramFiles/CommonFiles/ODBC/DataSources";
    Connection conn = null;
    Statement stmt = null;
    ResultSet rs = null;
    try
         Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         conn = DriverManager.getConnection(dsnPATH, "", "");
         stmt = conn.createStatement();
    rs= stmt.executeQuery("SELECT * FROM Employee where emp_id='"+username+"'");
    while(rs.next())
    String pass = rs.getString("password");
    if (pass.equals(password))
    { response.sendRedirect("Employee.jsp");}
    else
    { response.sendRedirect("login.jsp");}
    catch(Exception e)
    e.printStackTrace();
    finally
         if(stmt!=null) stmt.close();
         if(conn!=null) conn.close();
    %>
    </body>
    </html>

  • Button action with onclick in a jsp page using Jscript

    hi,
    I am facing a problem in setting an action with a button in a jsp page the error is object does'nt support this function,kindly send me reply as soon as possible.
    Santhosh

    hi,
    I am facing a problem in setting an action with a button in a jsp page the error is object does'nt support this function,kindly send me reply as soon as possible.
    Santhosh

  • Print Button on JSP page prints title,time etc

    Hi I have aprint Button on my jsp page which prints whatever I want selectively using the <style tags>
    <style type="text/css" media=print>
    .noprint { display: none}
    .noscreen { color: black }
    </style>
    <style type="text/css" media=screen>
    .noscreen { display: none}
    .noprint { color: blue }
    </style>
    <SCRIPT Language="Javascript">
    function printit(){
    window.print();
    </SCRIPT>
    My print Button calls the JavaScript and prints everything that does not have a class=noprint in it... When I print however it also prints on the page
    -The Title on the Left Top corner
    - Page 1 of 1 on RIGHT TOP
    - 2/13/03 on Left bottom
    - 4:06 thats the time on the RIGHT BOTTOM
    Is there anyway I can prevent it from printing this?

    These probably come from the browser. Check if your browser is configured to print these on every page that is printed. If so, you can turn these of from the browser's Page Setup dialog.

  • Help with buttons on a JSP Page

    Hi All,
    I have a HTML page , that has certain text fields.... on entering values into the text fields, it is directed to a servlet.
    The servlet(puts the values into the database) then directs to a jsp with the values entered in the form.
    I would like to know whether on the jsp page i can have 2 buttons like "edit" and "OK".
    (how do I code it???)
    The "edit" button edits the information on the initial HTML page and
    The "OK" button just confirms the inputted information.
    I hope I have asked a clear question.It would be great if someone directs me in the right direction.
    Thanking everyone in advance
    AS

    I hope I've understood your question correctly. Let
    me see if I got it right. So the first page is the
    form, where the user inputs the information, the
    second page will display this information that they
    inputted from the previous page and then have two
    buttons, one that says edit and the other that says
    ok. Upon hitting edit they're sent back to the form
    with the values already filled out, if they hit OK,
    the data is inserted into the database. If this is
    correct, this is how I would do it.
    You will have 3 files
    parameters.jsp
    <%
    String firstname =
    = request.getParameter("firstname");
         String lastname = request.getParameter("lastname");
    %>form.jsp
    <%@ include file="parameters.jsp">
    <html>
         <body>
              <form action="confirmation.jsp" method="post">
    <input type="text" name="firstname" value="<%=
    <%= firstname %>">
    <input type="text" name="lastname" value="<%=
    <%= lastname %>">
                   <input type="submit">
              </form>
         </body>
    </html>confirmation.jsp
    <%@ include file="parameters.jsp">
    <html>
         <body>
    <!-- the action of this form will be the page that
    at inserts the data into the database -->
              <form action="insertintodb.jsp" method="post">
    <input type="text" name="firstname" value="<%=
    <%= firstname %>">
    <input type="text" name="lastname" value="<%=
    <%= lastname %>">
                   <input type="submit" value="OK">
              </form>
              <form action="form.jsp" method="post">
    <input type="hidden" name="firstname" value="<%=
    <%= firstname %>">
    <input type="hidden" name="lastname" value="<%=
    <%= lastname %>">
                   <input type="submit" value="Edit">
              </form>
         </body>
    </html>
    Hi,
    Thanks a lot for the information.I will try to do as you have suggested.Will post when i go into problems...
    Many thanks
    AS

  • In a jsp page one name button that corresponding 5 TextField how to insert

    hi,
    In a jsp page one name button that corresponding 5 TextField how to insert values inthe database that 5 textfield values

    Hi use
    String s=request.getParameter("Text Filed Name");
    do this for all the Text Field..... Then use preparedSatatment for inserting that data inside the database.

  • I have a button in JSP page inside an UIWebView by pressing the button i want to run another existing iPhone native application in background only.Do anyone have a solution for this.

    I have a button in JSP page inside an UIWebView by pressing the button i want to run another
    existing iPhone native application in background only.Do anyone have a solution for this.

    Sounds like a virus.... I hope it's not...
    Launching Other Apps within an iPhone

  • Insert from button in jsp page

    hi, im new o jso and needto make an insert frim a jsp page with a button,
    what should i do?
    i made a javascript function but i really dont know if am i right and then i tried to call this function from the html tag
    beside this i execute de query from java and it was success!!, but i dont know what is wrong when i try from the jsp page with de button, please help!
    thx!
    here it's my code:
    <script type="text/javascript">
    import java.sql.*;
    function Agregar()
    return
    StringBuffer sb = new StringBuffer();
    try{
    Class.forName("org.postgresql.Driver");
    Connection conn = DriverManager.getConnection("jdbc:postgresql://localhost:5432/Prueba","postgres","hola");
    Statement stmt = conn.createStatement();
    stmt.executeUpdate("INSERT INTO tbl_responsable (cedula,nombre,direccion) VALUES (14021752,'carlos','caracas')");
    }catch(Exception e){
    System.out.println("EXPLOTO");
    </script>
    ahora en el html que debo hacer??, o si tengo q hacer otra cosa???
    html del boton:
    <input type="submit" value="Agregar" action="Agregar()">
    what should i do, what its wrong??
    thx again!

    try this
    <input type="submit" onclick=" return Agregar();">
    or
    <input type="submit" onclick=" Agregar();">

Maybe you are looking for

  • Query for 1:N mapping

    Hi Experts, I have a scenario where first I create a single file form IDoc and then this single file has to copied to 10 different folders on the same server. There is no change in data, I just have to copy the source file. I have issues with the sec

  • Price List Issue

    Hi Experts, I am preparing Price List for Item Master Data. I go through procedure as below : 1. Filled Base Price for Item 'A' in Price List. 2. In Spl price for BP selected BP Code '123' and updated price, Set Price List on both header and row leve

  • Fitting text properly in frame

    Hello all, I am having trouble getting text to fit correctly into a text box fit into a specific width column and I was wondering if there are options for overriding the automatic flow of text from line to line without resorting to changing spacing b

  • How to use online banking safely ?

    How can we use iPad for online banking safely.  On a PC we get the HTTPS and site checks.  How can we ensure the same security with an IPad?

  • How to change tif files to jpg files

    how to change tif files to jpg files