Creator Team: bug?

Hi,
Ocassionally, I get this error:
Exception Details: java.lang.IndexOutOfBoundsException
  Index: 0, Size: 0
Possible Source of Error:
   Class Name: java.util.ArrayList
   File Name: ArrayList.java
   Method Name: RangeCheck
   Line Number: 546
Source not available. Information regarding the location of the exception can be identified using the exception stack trace below.
Stack Trace:
java.util.ArrayList.RangeCheck(ArrayList.java:546)
java.util.ArrayList.remove(ArrayList.java:389)
javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:271)
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:221)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
java.security.AccessController.doPrivileged(AccessController.java:-2)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
com.sun.rave.web.ui.util.UploadFilter.doFilter(UploadFilter.java:194)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
java.security.AccessController.doPrivileged(AccessController.java:-2)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)
It should be noted that when I refresh the browser, that the application works well. I am running the app on Sun's App. Server.
Please advise

Hi Roman,
Thanks for replying. For a moment there, I thought I was being blacklisted ;-}
In the application, I have a dddlist and a table. The values in the table are dependent on the ddlist value selected. In other words, if a user chooses ABC in the ddlist, the values in the table would be "A" ,"B" ,"C". However, if the user chooses DEF in the dropdown, then the values in the table would be "D","E","F"
It goes one step further...the selected value in the ddlist is coming from a previous page (passed thru the URL). However, the user can change the value, and the table is populated automatically. There is also a text box and a button if the user wants to search the existing options in the table.
Now for the code:
The pre-renderer method:
//pid: value from url
//SearchParam: value from textbox. It is set to % if user does not enter anything
if (pid != null && (SearchParam != null) ) {
//Sgroup_tblRowSet3: rowset that table is bound to
   getSessionBean1().getSgroup_tblRowSet3().setObject(1, pid);
                getSessionBean1().getSgroup_tblRowSet3().setObject(2,SearchParam);
              getSessionBean1().getSgroup_tblRowSet3().setObject(3,SearchParam);
              getSessionBean1().getSgroup_tblRowSet3().execute();
              ddPG.setSelected(new Integer(pid));
        getSgroup_tblDataProvider().refresh();Any suggestions?
Thanks

Similar Messages

  • SUN TEAM: Bugs in update and delete a record with long query

    Creator Team,
    In my opinio there is a bug issue with update and delete a record with a complex sql query. I�m using oracleXE and ojdbc14.ar with tomcat
    In just two page I�m receving the following msg (I have 12 pages doing the same thing with less complex queries)
    * Number of conflicts while synchronizing: 1 SyncResolver.DELETE_ROW_CONFLICT row 2 won't delete as values in database have changed: 2006-11-29
    * Cannot commit changes: Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 values changed in database
    when i tried to delete or commit the updated changes in the register...
    The interesting is that this code function with jdbc of jsc...
    My query is bellow:
    SELECT ALL PATRIMONIO.TB_BEM.INCODIGOBEM,
    PATRIMONIO.TB_BEM.VATOMBAMENTO,
    PATRIMONIO.TB_BEM.VAMATERIAL,
    PATRIMONIO.TB_BEM.INCODIGOSETOR,
    PATRIMONIO.TB_SETOR.VANOME AS NOMESETOR,
    PATRIMONIO.TB_BEM.INCODIGOFORNECEDOR,
    PATRIMONIO.TB_FORNECEDOR.VANOME AS NOMEFORNECEDOR,
    PATRIMONIO.TB_BEM.DACHEGADA ,
    PATRIMONIO.TB_BEM.DASAIDAPREVISTA,
    PATRIMONIO.TB_BEM.DASAIDAEFETIVA,
    PATRIMONIO.TB_BEM.VAMARCA,
    PATRIMONIO.TB_BEM.VAMODELO,
    PATRIMONIO.TB_BEM.VADESBAIXABEM,
    PATRIMONIO.TB_BEM.INCODIGOTIPOAQUISICAO,
    PATRIMONIO.TB_TIPOAQUISICAO.VANOME AS NOMETIPOAQUISICAO
    FROM PATRIMONIO.TB_BEM , PATRIMONIO.TB_TIPOAQUISICAO, PATRIMONIO.TB_SETOR, PATRIMONIO.TB_FORNECEDOR
    WHERE PATRIMONIO.TB_BEM.INCODIGOTIPOAQUISICAO = PATRIMONIO.TB_TIPOAQUISICAO.INCODIGOTIPOAQUISICAO
    AND PATRIMONIO.TB_BEM.INCODIGOSETOR = PATRIMONIO.TB_SETOR.INCODIGOSETOR
    AND PATRIMONIO.TB_BEM.INCODIGOFORNECEDOR = PATRIMONIO.TB_FORNECEDOR.INCODIGOFORNECEDOR
    AND PATRIMONIO.TB_BEM.INCODIGOBEM LIKE ?
    AND PATRIMONIO.TB_BEM.VATOMBAMENTO LIKE ?
    AND PATRIMONIO.TB_BEM.VAMATERIAL LIKE ?
    AND PATRIMONIO.TB_SETOR.VANOME LIKE ?
    AND PATRIMONIO.TB_FORNECEDOR.VANOME LIKE ?
    ORDER BY PATRIMONIO.TB_BEM.VATOMBAMENTO ASC
    Why this problem is happing? Did you had some solution for that? Is the problem because the query is too long?!
    please help me!
    Gustavo Callou

    Hello people,
    I�m doing this to try to solution that bug:
    This code is working fine... but I do not understand why I�m receiving the nullpointer exception!??!!?
    // create a new rowset
    CachedRowSetXImpl pkRowSet = new CachedRowSetXImpl();
    try {
    RowKey rk = tableRowGroup1.getRowKey();
    if (rk != null) {
    // set the rowset to use the Patrimonio database
    pkRowSet.setDataSourceName("java:comp/env/jdbc/Patrimonio");
    String query = "DELETE FROM TB_BEM WHERE INCODIGOBEM = "+tb_bemDataProvider.getValue("INCODIGOBEM", rk).toString();
    pkRowSet.setCommand(query);
    pkRowSet.setTableName("TB_BEM");
    // execute the rowset -- which will contain a single row and single column
    pkRowSet.execute();
    pkRowSet.next();
    info("Apagado");
    } catch (Exception ex) {
    log("ErrorDescription", ex);
    error(getApplicationBean1().trateException(ex.getMessage()));
    } finally {
    pkRowSet.close();
    Please someone help me!!!
    Gustavo Callou

  • Question to Creator team on performance

    Performance issue due to lifecycle.
    There are 2 issues resulted from life cycle of jCreator:
    1/ Let�s say I have a page displaying data in a data table from a database� table but the sql statement have some parameters and .
    On the same page I would like to change criteria to redisplay the same page.
    I have a button to validate my criteria change.
    When I press the button the first thing done is page contructor called then button_action method called.
    The issue is the sql statement is build in the page constructor so I missed the opportunity to change the parameters in my sql statement.
    To resolve this issue I have to add in button _action method to rebuild my sql statement with new parameters and re-execute and call renderResponse(). So a performance hit here especially my sql statement in complex.
    2/ The same scenario but my button is for displaying a second page.
    The issue here is even I don�t need page 1 anymore but the page 1 constructor is still build and it may take a lot of time to do (complex task in constructor) and then page 2 is build. This takes enormous time and for nothing.
    Unless there�s other alternatives I think it would be better that the button_action is called before page constructor because:
    a/ In the case 1 I want to change the parameters then I will reassign value to parameters of sql statement and then constructor executed so I don�t need to do extra work to re-execute sql statement and call renderResponse() method.
    b/ In case 2 I want to display page 2 so if button_action executes first then I can skip to call page 1 constructor and this gives a boost to performance. the same when I go back to page 1 from page 2: page 2 constructor called for nothing....
    These 2 issues cause me a headache because I am working a big database on iSeries (AS/400) machine. To display a page takes time and if I want to display the last page (never finished).
    Are there any alternatives ???

    You asked for it, you got it...the Java Studio Creator team has provided significant design-time performance with this latest hot fix. Connect to the Update Center http://developers.sun.com/prodtech/javatools/jscreator/downloads/updates/index.html and get it today!
    Note: This hot fix requires Sun Java Studio Creator 2 Update 1. If you need to upgrade from Java Studio Creator 2, see the Downloads page http://developers.sun.com/prodtech/javatools/jscreator/downloads/index.jsp.
    Comments? A new forum thread has been started to consolidate discussion about the hotfix and issues related to IDE performance. Come on over to Get Improved Performance with Hot Fix 2 at http://swforum.sun.com/jive/thread.jspa?threadID=105441 and let us know what you think.

  • To Creator Team (Rowsets at SessionBean)

    1) Why the rowsets are created at sessionbean?
    2) What are the benefits?
    3) If the rowsets stay at sessionbean, the server's memory will not be overloaded?
    4) How about the conexions with database? Will they be always open?

    Hi,
    1) , 2) We create rowsets in sessionbean to avoid unnecessary database
    interactions. If we put in page bean, every time a page is
    loaded/rendered, it might need to fetch data from database.
    3) Placing rowsets to SessionBean and datprividers to page bean gives a balance between memory usage and performance. If you sometime need to minimize server's memory usage, place rowsets in page beans
    Thanks, Misha
    (Creator team)

  • For the apex-team : bug in apex ???

    Hi apex-team,
    if i make a master-detail report i can choose between a result of two pages (master and detailmaster with mru for the detail) , or a result with three pages (master, detailmaster with a report of detailtabel and a form for the detail-table.
    apex creates in both cases but in the second situation (three pages) on the third page it's impossible to add a detail. (in the result with two pages everything works fine).
    both apex verson 2.2 and version 3.
    just to inform you.
    regards!
    Leo

    Leo:
    That is a good point. The home page is using a derived column, and the HTML Expression for the column formatting. That must escape the HTML.
    I think the fix for a future release would be to not use that derived column, and just use a standard report with a custom template. It is also possible that for announcements and tasks it is more appropriate to use a standard Textarea instead of Textarea with HTML Editor.
    Thanks for your feedback,
    Jason

  • To Creator Team and All Creator Experts..??

    Hi
    Myself Prashant (SCJP)
    Currently I am using studio creator as my development tool
    It's Impressive but I got an Problem while retriving data in html format in my database and showing it as it is formatted using html tags used and stored in database along with data
    if anybody of u can solve my problem and send me the proper instruction or information ..plz do tht
    Thank You..

    I think this is not Creator problem and you should ask your question in programming forum.
    BTW if you store html data within database you should care about special characters like quotes etc. Anyway more information about your problem required. Provide more details in programming forum.

  • Creator Team : Request For Additional feature

    Unless i'm missing out something here....
    (Regarding to EA2)
    So far, I couldnt find any method for retrieving selected Option from a list box.
    Currently, in the properties for Listbox
    i can ONLY bind 'selected' to a String[ ]
    binding 'selected' to 'Option [ ]' fails to work
    Scenario:
    I have 2 listboxes, ListBoxA and ListBoxB
    ListBoxA is filled with something Option objects
    ListBoxB is empty
    Now i want to pass some Option objects over to ListBoxB
    Because 'selected' can only be bind to String[ ],
    i've to manully check the String [ ] of Option's value
    with those that are in ListBoxA, to get the respective Option's Label,
    in order to display them in ListBoxB
    I hope i'm not too confusing
    If anyone know an easier method in achieving the same goal,
    please reply
    thanks

    Hi,
    Please post messages related to Creator 2 EA at the feedbacks programs portal. The URL is:
    https://feedbackprograms.sun.com/login.html
    Thanks,
    RK.

  • How many people are there in the Creator team?

    Can it be made available that how many people are working for deveolping this IDE? How many softwate engineers and developers? How many managers?
    thanks.

    No, we can't give you that level of detail. Resource staffing at Sun, like most companies, is strictly company confidential information.

  • Updates for Creator 1

    Hi Creator Team:
    Are we going to see a new set of updates for Creator 1? Its been 6 months and lots of bugs reported since Update 7

    I find this response quite distrubing for a number of reasons.
    1] Many of us are committed to Creator 1 for a product lifecycle. Bugs in the JSF framwork (such as unclosed rowsets etc.) place our projects at significant risk.
    2] There is no "smooth transistion" to Creator 2 as existing pages cannot be upgraded and therefore, exising Creator 1 bugs remain in the framework.
    3] Creator 2 is not available and no release date has been set.
    4] There are significant architecture changes in Creator 2's framework which are not compatible with Creator 1.
    I don't know about the rest of the community but I find Sun's abandonment of Creator 1 extremely annoying, shortsighted and insulting to those of us who have supported Sun. I am now considering moving our application off the platform and onto more dependable technology managed by a company with more sensitivity to those who, in retrospect, mistakenly, choose to rely on Sun.
    Thank you Creator Team!!!!

  • Bug information

    good day all
    some time ago i posted a problem that i was having with listboxes and i got a reply that stated my problem was a bug with bug number 6408472.
    is there any way that i can get more information on this bug?
    i have searched the sun developer network for "bug 6408472", but i have never had any results.
    also should i expect that this bug would be fixed in a timely manner, i would like to know if i should just ignore the bug for now and wait on the fix, or should i try something else that avoids the bug which i would not really like to do?
    take care
    kroikie

    The fix for this issue will be included in the next patch.
    Lark
    Creator Team.

  • Regarding Code Generation By Creator

    Hi Creator Team,
    This is not a bug, but in increasing the readability I have a suggestion in generating the code
    Currently creator is doing something like below
    private HtmlForm form1=new HtmlForm ();
    I agree there is nothing wrong with the code
    but if we have method something like initComponents it would be better and increases the readability
    my idea is something like below
    private HtmlForm form1=null;
    public HtmlForm getForm1()
    return this.form1;
    public void setForm1(HtmlForm form1)
    this.form1=form1;
    private void initComponents() throws FacesException
    form1=new HtmlForm ();
    public MyConstructor()
    try{
    initComponents();
    catch(Exception ex)
    }Why I like this model is, it increases the readability and if there is a chance of getting exceptions, you can catch them in constructor and can do further jobs.
    This is not possible with the current creator application
    Hope you understand my concern
    Best Regards
    Sudhakar Chavali

    Hi Sudhakar,
    We thank you for your valuable feedback. An RFE has been filed on your behalf for the same.
    Cheers
    Giri :-)

  • Perform transaction in creator [SetAutocommit(false) and commit()]

    Hi,
    I've finished one application with the Sun Java Studio Creator 2 but I've 2 technicals problems. One problem is about manage transactions.
    In a validate button, I've to perform update with 2 tables for example (orders and orders_details).
    My code:
    ordersDataProvider.getCachedRowSet().acceptChanges();
    orders_detailsDataProvider.getCachedRowSet().acceptChanges();
    It works but when I've an error in the 'orders_detailsDataProvider.getCachedRowSet().acceptChanges();', the orders's changes into the database are not rollback.
    I try the following:
    try{
    Context ctx=new InitialContext();
    DataSource ds=(DataSource)ctx.lookup("java:comp/env/jdbc/moduleachat");
    //Get a connection
    conn=ds.getConnection();
    /* Begin the transaction */
    conn.setAutoCommit(false);
    //update orders
    ordersDataProvider.getCachedRowSet().acceptChanges();
    //update order details
    orders_detailsDataProvider.getCachedRowSet().acceptChanges();
    /* Commit transaction */
    conn.commit();
    return "confirmPage";
    }catch(Exception ex){
    log(ex.getMessage(), ex);
    //Rollback transaction
    try{
    conn.rollback();
    }catch(SQLException esql){
    log(esql.getMessage(), esql);
    return null;
    it doesn't work. When errors occurs in the orders_details's update, the orders's update is not still rollback. it seems like the connection I get is not in the same context of orders and orders details rowset context.
    Can anyboby gives me a solution. It very important for a professional application

    I don't understand why nobody has solutions about my problems.
    To creator team:
    Tell us if it's a bug or not. I've try with 'acceptchanges(Connection conn)' but it doesn't work.
    Yesterday i've searched for many hours solutions on internet and I've found that others guys have the same problem and in the CachedRowSet implementation there is a property called 'COMMIT_ON_ACCEPT_CHANGE'. This property is final and set to true. i don't see where we can set it to false. So every time we call acceptchanges(connection), even if connection is in setAutoCommit ( false ), the acceptchanges commit all changes directly. Is it a bug or not? I hope no because manage transactions must be one feature of Java Studio Creator's CachedRowSet.
    Thanks

  • Bug in bundled Application Server prohibits Acegi security integration

    I am using JSC 2, Update 1 and have run into a problem trying to integrate Acegi security into my Web app. After some hours of frustration I have found that the problem apparently stems from a bug in the bundled Sun Application Server (version 8.2). If I deploy my application to Tomcat 5.5, the problem disappears.
    The exception that occurs on the bundled Sun Application Server is:
    java.lang.ClassCastException: org.acegisecurity.providers.UsernamePasswordAuthenticationToken
    For information about the appserver bug that causes this exception look at:
    http://forums.java.net/jive/thread.jspa?threadID=13150&messageID=83666
    The last three entries in the above thread discuss the problem and also link to other places where the problem is discussed. See in particular these links:
    https://glassfish.dev.java.net/issues/show_bug.cgi?id=221
    and
    http://www.jroller.com/page/agrebnev?entry=acegi_does_not_work_at
    The Glassfish bug database indicates that the bug was fixed in the b38 version of Glassfish. However, the fix apparently hasn't made it into the bundled Sun Appserver 8.2.
    I hope this information will spare someone else the frustration of hunting down the source of this problem. Since Acegi is becoming a very popular option for adding security to Java webapps, I probably won't be the only person to run into this little gotcha.
    Also, I'd appreciate any info the Creator team can provide about when the bundled appserver might be fixed.
    Thanks,
    Charlie

    Could someone on the Creator team please comment on this issue? Is there any plan to upgrade the bundled Sun Application Server to version 9.0? (I'm assuming this bug is fixed in 9.0 -- although I haven't been able to verify that. Actually, I'm not very clear on the relationship between the various Glassfish versions and the various Sun Application Server versions.) Or is there a plan to support Glassfish and/or Tomcat as development servers (rather than just deployment servers).
    It seems like my only other possible alternative is to use Netbeans 5.5 with the Visual Web pack. But since the Visual Web pack is a pre-beta release I'm leery about using it for developing a production Web app.
    Thanks in advance for your help.
    Charlie

  • Critical Lifecylce Bug or Feature?

    Hi Creator Team (and Forum;-)
    I found a very strange behaviour in the lifecycle handling and would like to know if it is a bug or a feature and in case of a feature how do deal with it.
    Let's say I have two pages:
    Both pages are using dataproviders in the page bean and both dataproviders are using the same cachedrowset in the sessionbean.
    In the Prerender phase of each page the underlying rowset will be changed with a "setcommand" to ensure that only the necessary data will be shown on the page.
    Page1 has a button that navigate to Page2 and so far everything works fine.
    In case the Page1 button will be pressed the lifecycle will be as expected:
    Page1. Init
    Page1. PreProcess (in this case navigate to Page 2)
    Page2. Init
    Page2. Prerender
    Page1. Destroy
    Page2. Destroy
    Now imaging that there is a little bug on Page 2. As example an imagecomponent where the image URL could not be founded. In this case you don't get an error message (except a little note in the appserver log file) and the program just continue.
    But unfortunately this little bug like a Image URL on Page 2 that could not be found for an Imagecomponent change the lifecycle in the following way:
    Page1. Init
    Page1. PreProcess (in this case navigate to Page 2)
    Page2. Init
    Page2. Prerender
    Here come the litte warning about the missing URL in the appserver log file
    Page1. Destroy
    Page2. Destroy
    Page1. Init
    Page1. PreRender
    Page1. Destroy
    The browser is still showing Page2, so from a user perspective everything is fine but due to the fact that Page1 has been initialized again the joint cachedrowset of the Sessionbean has changed (as a select SQL statement will be executed during page prerender of Page1 and Page2 ) and any changes of the datarecord in Page2 will be saved on the wrong record.
    Is that lifecycle behaviour a feature or a bug and how it can be resolved. I am sure I can write a validator for the Image Component but I believe it can not be a solution to validate every potential trouble on a page to avoid this behaviour.
    Thank you in advance and best regards
    GreenEye

    Well it looks like your exact problem is listed on that incompatibility list:
    JDBC - As of 5.0, comparing a java.sql.Timestamp to a java.util.Date by invoking compareTo on the Timestamp results in a ClassCastException. For example, the following code successfully compares a Timestamp and Date in 1.4.2, but fails with an exception in 5.0:
    aTimeStamp.compareTo(aDate) //NO LONGER WORKS
    This change affects even pre-compiled code, resulting in a binary compatibility problem where compiled code that used to run under earlier releases fails in 5.0. We expect to fix this problem in a future release.
    For more information, see bug 5103041.
    Michael Bishop

  • Another JSP Fragment bug (or JSF flaw?)

    My application has a search box and go button in a JSPF fragment. But data content is rendered in a JSP. To demonstrate the problem I am going to slightly modify the Person/Trip tutorial sample:
    1. Create a new project
    2. Add Trip rowset to page1
    3. Set criteria perseonid = ?
    4. Add data table and bind it to trip rowset
    5. Add Integer PersonID property to the session bean
    6. Add PersonID initialization code:
    personID = new Integer(1);
    5. Add Page1 initialization:
    try {
    dataTable1Model.setObject(1, getSessionBean1().getPersonID());
    dataTable1Model.execute();
    } catch (Exception e) {
    throw new FacesException(e);
    5. Add a new JSP Fragment above the table and name it Test.jspf
    6. Place an edit field (Search) and a button to submit the search
    7. Add process value change event to the edit box:
    getSessionBean1().setPersonID(new Integer((String)vce.getNewValue()));
    8. Add action handler to the button but keep it empty for now since we do not have inter-page navigation here really
    Now start project and enter 2 into search field click on the button and see the table did not update. Enter 3 and see that the table now shows the records for the person id 2.
    So why do tutorial samples work and this JSPF does not? The problem is that JSPF fragment does not have any knowledge about the table data model on the Page1.jsp so it cannot synchronize it in the value change event!!! However, tutorial samples do update data model because value change event is in the same Java class. In this case JSPF is a completely different class.
    Now please tell me what am I supposed to do? Don't suggest me to access Page1.tableDataModel from the Test.jspf since my JSPF can be included in different pages.
    My current workaround again is using this call in the button action event:
    try { getExternalContext().redirect("Page1.jsp"); } catch (Exception e) {};
    Now, you have to pay me something for all that hard QA work I have to do for your entire QA department. ;-)
    Here is the codes: (just in case)
    Page1.java:
    * Page1.java
    * Created on December 19, 2004, 10:59 AM
    * Copyright ybaykshtis
    package test9;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.sql.rowset.*;
    import com.sun.jsfcl.data.*;
    import javax.faces.component.*;
    public class Page1 extends AbstractPageBean {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
    private int __placeholder;
    private HtmlForm form1 = new HtmlForm();
    public HtmlForm getForm1() {
    return form1;
    public void setForm1(HtmlForm hf) {
    this.form1 = hf;
    private JdbcRowSetXImpl tripRowSet = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getTripRowSet() {
    return tripRowSet;
    public void setTripRowSet(JdbcRowSetXImpl jrsxi) {
    this.tripRowSet = jrsxi;
    private HtmlDataTable dataTable1 = new HtmlDataTable();
    public HtmlDataTable getDataTable1() {
    return dataTable1;
    public void setDataTable1(HtmlDataTable hdt) {
    this.dataTable1 = hdt;
    private UIColumn column1 = new UIColumn();
    public UIColumn getColumn1() {
    return column1;
    public void setColumn1(UIColumn uic) {
    this.column1 = uic;
    private HtmlOutputText outputText1 = new HtmlOutputText();
    public HtmlOutputText getOutputText1() {
    return outputText1;
    public void setOutputText1(HtmlOutputText hot) {
    this.outputText1 = hot;
    private HtmlOutputText outputText2 = new HtmlOutputText();
    public HtmlOutputText getOutputText2() {
    return outputText2;
    public void setOutputText2(HtmlOutputText hot) {
    this.outputText2 = hot;
    private UIColumn column2 = new UIColumn();
    public UIColumn getColumn2() {
    return column2;
    public void setColumn2(UIColumn uic) {
    this.column2 = uic;
    private HtmlOutputText outputText3 = new HtmlOutputText();
    public HtmlOutputText getOutputText3() {
    return outputText3;
    public void setOutputText3(HtmlOutputText hot) {
    this.outputText3 = hot;
    private HtmlOutputText outputText4 = new HtmlOutputText();
    public HtmlOutputText getOutputText4() {
    return outputText4;
    public void setOutputText4(HtmlOutputText hot) {
    this.outputText4 = hot;
    private UIColumn column3 = new UIColumn();
    public UIColumn getColumn3() {
    return column3;
    public void setColumn3(UIColumn uic) {
    this.column3 = uic;
    private HtmlOutputText outputText5 = new HtmlOutputText();
    public HtmlOutputText getOutputText5() {
    return outputText5;
    public void setOutputText5(HtmlOutputText hot) {
    this.outputText5 = hot;
    private HtmlOutputText outputText6 = new HtmlOutputText();
    public HtmlOutputText getOutputText6() {
    return outputText6;
    public void setOutputText6(HtmlOutputText hot) {
    this.outputText6 = hot;
    private UIColumn column4 = new UIColumn();
    public UIColumn getColumn4() {
    return column4;
    public void setColumn4(UIColumn uic) {
    this.column4 = uic;
    private HtmlOutputText outputText7 = new HtmlOutputText();
    public HtmlOutputText getOutputText7() {
    return outputText7;
    public void setOutputText7(HtmlOutputText hot) {
    this.outputText7 = hot;
    private HtmlOutputText outputText8 = new HtmlOutputText();
    public HtmlOutputText getOutputText8() {
    return outputText8;
    public void setOutputText8(HtmlOutputText hot) {
    this.outputText8 = hot;
    private UIColumn column5 = new UIColumn();
    public UIColumn getColumn5() {
    return column5;
    public void setColumn5(UIColumn uic) {
    this.column5 = uic;
    private HtmlOutputText outputText9 = new HtmlOutputText();
    public HtmlOutputText getOutputText9() {
    return outputText9;
    public void setOutputText9(HtmlOutputText hot) {
    this.outputText9 = hot;
    private HtmlOutputText outputText10 = new HtmlOutputText();
    public HtmlOutputText getOutputText10() {
    return outputText10;
    public void setOutputText10(HtmlOutputText hot) {
    this.outputText10 = hot;
    private UIColumn column6 = new UIColumn();
    public UIColumn getColumn6() {
    return column6;
    public void setColumn6(UIColumn uic) {
    this.column6 = uic;
    private HtmlOutputText outputText11 = new HtmlOutputText();
    public HtmlOutputText getOutputText11() {
    return outputText11;
    public void setOutputText11(HtmlOutputText hot) {
    this.outputText11 = hot;
    private HtmlOutputText outputText12 = new HtmlOutputText();
    public HtmlOutputText getOutputText12() {
    return outputText12;
    public void setOutputText12(HtmlOutputText hot) {
    this.outputText12 = hot;
    private RowSetDataModel dataTable1Model = new RowSetDataModel();
    public RowSetDataModel getDataTable1Model() {
    return dataTable1Model;
    public void setDataTable1Model(RowSetDataModel rsdm) {
    this.dataTable1Model = rsdm;
    // </editor-fold>
    public Page1() {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
    try {
    tripRowSet.setDataSourceName("java:comp/env/jdbc/Travel");
    tripRowSet.setCommand("SELECT ALL TRAVEL.TRIP.TRIPID, TRAVEL.TRIP.PERSONID, TRAVEL.TRIP.DEPDATE, TRAVEL.TRIP.DEPCITY, TRAVEL.TRIP.DESTCITY, TRAVEL.TRIP.TRIPTYPEID FROM TRAVEL.TRIP WHERE TRAVEL.TRIP.PERSONID=?");
    dataTable1Model.setDataCacheKey("com.sun.datacache.Page1.tripRowSet");
    dataTable1Model.setRowSet(tripRowSet);
    dataTable1Model.setSchemaName("TRAVEL");
    dataTable1Model.setTableName("TRIP");
    } catch (Exception e) {
    log("Page1 Initialization Failure", e);
    throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
    // </editor-fold>
    // Additional user provided initialization code
    try {
    dataTable1Model.setObject(1, getSessionBean1().getPersonID());
    dataTable1Model.execute();
    } catch (Exception e) {
    throw new FacesException(e);
    protected test9.ApplicationBean1 getApplicationBean1() {
    return (test9.ApplicationBean1)getBean("ApplicationBean1");
    protected test9.SessionBean1 getSessionBean1() {
    return (test9.SessionBean1)getBean("SessionBean1");
    * Bean cleanup.
    protected void afterRenderResponse() {
    tripRowSet.close();
    Page1.jsp
    <?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">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view><![CDATA[
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    ]]><html
    lang="en-US" xml:lang="en-US">
    <head>
    <meta content="no-cache" http-equiv="Cache-Control"/>
    <meta content="no-cache" http-equiv="Pragma"/>
    <title>Page1 Title</title>
    <link href="resources/stylesheet.css" rel="stylesheet" type="text/css"/>
    </head>
    <body style="-rave-layout: grid">
    <h:form binding="#{Page1.form1}" id="form1">
    <h:dataTable binding="#{Page1.dataTable1}" headerClass="list-header" id="dataTable1" rowClasses="list-row-even,list-row-odd"
    style="left: 24px; top: 168px; position: absolute" value="#{Page1.dataTable1Model}" var="currentRow">
    <h:column binding="#{Page1.column1}" id="column1">
    <h:outputText binding="#{Page1.outputText1}" id="outputText1" value="#{currentRow['TRIPID']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText2}" id="outputText2" value="TRIPID"/>
    </f:facet>
    </h:column>
    <h:column binding="#{Page1.column2}" id="column2">
    <h:outputText binding="#{Page1.outputText3}" id="outputText3" value="#{currentRow['PERSONID']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText4}" id="outputText4" value="PERSONID"/>
    </f:facet>
    </h:column>
    <h:column binding="#{Page1.column3}" id="column3">
    <h:outputText binding="#{Page1.outputText5}" id="outputText5" value="#{currentRow['DEPDATE']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText6}" id="outputText6" value="DEPDATE"/>
    </f:facet>
    </h:column>
    <h:column binding="#{Page1.column4}" id="column4">
    <h:outputText binding="#{Page1.outputText7}" id="outputText7" value="#{currentRow['DEPCITY']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText8}" id="outputText8" value="DEPCITY"/>
    </f:facet>
    </h:column>
    <h:column binding="#{Page1.column5}" id="column5">
    <h:outputText binding="#{Page1.outputText9}" id="outputText9" value="#{currentRow['DESTCITY']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText10}" id="outputText10" value="DESTCITY"/>
    </f:facet>
    </h:column>
    <h:column binding="#{Page1.column6}" id="column6">
    <h:outputText binding="#{Page1.outputText11}" id="outputText11" value="#{currentRow['TRIPTYPEID']}"/>
    <f:facet name="header">
    <h:outputText binding="#{Page1.outputText12}" id="outputText12" value="TRIPTYPEID"/>
    </f:facet>
    </h:column>
    </h:dataTable>
    <div style="left: 48px; top: 72px; position: absolute">
    <jsp:directive.include file="Test.jspf"/>
    </div>
    </h:form>
    </body>
    </html>
    </f:view>
    </jsp:root>
    Test.java
    * Test.java
    * Created on December 19, 2004, 11:01 AM
    * Copyright ybaykshtis
    package test9;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import javax.faces.component.html.*;
    import com.sun.jsfcl.data.*;
    import javax.faces.component.*;
    import com.sun.sql.rowset.*;
    import javax.faces.convert.*;
    import javax.faces.event.*;
    public class Test extends AbstractPageBean {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
    private int __placeholder;
    private JdbcRowSetXImpl personRowSet = new JdbcRowSetXImpl();
    public JdbcRowSetXImpl getPersonRowSet() {
    return personRowSet;
    public void setPersonRowSet(JdbcRowSetXImpl jrsxi) {
    this.personRowSet = jrsxi;
    private HtmlInputText textField1 = new HtmlInputText();
    public HtmlInputText getTextField1() {
    return textField1;
    public void setTextField1(HtmlInputText hit) {
    this.textField1 = hit;
    private HtmlCommandButton button1 = new HtmlCommandButton();
    public HtmlCommandButton getButton1() {
    return button1;
    public void setButton1(HtmlCommandButton hcb) {
    this.button1 = hcb;
    // </editor-fold>
    public Test() {
    // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
    try {
    personRowSet.setDataSourceName("java:comp/env/jdbc/Travel");
    personRowSet.setCommand("SELECT * FROM TRAVEL.PERSON");
    } catch (Exception e) {
    log("Test Initialization Failure", e);
    throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
    // </editor-fold>
    // Additional user provided initialization code
    protected test9.ApplicationBean1 getApplicationBean1() {
    return (test9.ApplicationBean1)getBean("ApplicationBean1");
    protected test9.SessionBean1 getSessionBean1() {
    return (test9.SessionBean1)getBean("SessionBean1");
    * Bean cleanup.
    protected void afterRenderResponse() {
    personRowSet.close();
    public String button1_action() {
    // User event code here...
    //try { getExternalContext().redirect("Page1.jsp"); } catch (Exception e) {};
    return null;
    public void textField1_processValueChange(ValueChangeEvent vce) {
    // User event code here...
    getSessionBean1().setPersonID(new Integer((String)vce.getNewValue()));
    Test.jspf
    <?xml version="1.0" encoding="UTF-8"?>
    <div style="-rave-layout: grid" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html">
    <p>Included Content Here</p>
    <h:inputText binding="#{Test.textField1}" id="textField1" style="left: 48px; top: 48px; position: absolute" valueChangeListener="#{Test.textField1_processValueChange}"/>
    <h:commandButton action="#{Test.button1_action}" binding="#{Test.button1}" id="button1" style="left: 240px; top: 48px; position: absolute" value="Submit"/>
    </div>

    Hi ,
    Thanks for your valuable observations and feedback. I could observe that the workaround seems to be working fine. Thanks for providing the workaround.
    The problem you are facing without the workaround is a known issue and our engineers are currently working on it.
    Regards.
    Creator Team.

Maybe you are looking for

  • How can I clean my hard drive?

    Hello everyone, My macbook is now four years old and the last wipe is a while ago. My hard drive is quite ful and I don't really know what I can delete and what not. There's also 26 GB in Movies which don't appear nowhere. I really would like to get

  • ITunes Software Update Does Not Work

    In iTunes v 10.5.3.3 I click on Help, Check For Updates.  iTunes responds with "A new version of iTunes (10.6) is available.  Would you like to download it now?".  I click on "Download iTunes". The "Apple Software Update" Dialog Box appears but iTune

  • Extended desktop option with win xp

    When using bootcamp and winxp (have to because of the software) I am unable to get the 2nd monitor to run (works fine when i boot under mac os) I'm using a macbook pro with the ati 1600x card. does anyone have any ideas about how to enable the extend

  • Background job RDDIMPDP is not scheduled. Please run report RDDNEWPP.

    Dear Guru's,                  I am having a problem during transportation. i am not able to transport to quality system.And the tp system logs shows following error messages:- WARNING: System GNQ. Warning.        20071105123442 : ERROR:       Backgro

  • How can I see how many prints I have printed?

    Hello all, My office currently uses an HP Officejet Pro 8600 Plus. We are reevaluating our printing needs, and I would like to be able to see how many prints we currently print/have printed on the printer if at all possible in order to see what our n