Table Actions

Hi all,
        I have a table on my webdynpro screen with three columns and two rows of data.
Out of the one column is a drop down. This drop down is binded to a simple type string variable in the context. And this simple type contains two values.
For eg
1)Text1
2) Text2
Now my requirement is that when i push a button, i need to have these two values in two respective context variables so that i can use it later in a different screen.
Actually this field in drop down is a user field to which when dynamically set the variables will be available for setting a UWL task dynamically.
What should be my code to achieve the above?
Thnks

Hi Yigesh,
Very easy code, check this out..
As you have a attribute named let say : Owner which has the dropdown (I have taken the reference from your earlier post) and the node name as ActivityTable.
You you just need to do this:
int size = wdContext.nodeActivityTable().size();
       String valueOwner = null;
       for (int i = 0; i < size; i++) {
          IActivityTableElement activityEle = wdContext.nodeActivityTable().getActivityTableElementAt(i);
          valueOwner = activityEle.getOwner();
          wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("value of row" +i + "=" +valueOwner);
I hope this helps!!
Thanks and Regards
Praevsh

Similar Messages

  • How to add table actions to an Advanced Table programmatically

    We have code in my CO which builds an advanced table dynamically and associates it with a VO. The table comes out looking good - the correct columns and data are displayed.
    I now want to add Table Actions for that particular dynamically created table.
    The code below builds the buttons correctly and they are built/rendered just fine.
    After adding this code to build the FlowLayout bean, add the buttons and associate the it to the TableActions of the advanced table bean, none of the buttons on the page work anymore. Each time I click any button (even if it's a page level button like 'Save' or 'Cancel'), I get the following error:
    +## Detail 0 ##+
    java.lang.NullPointerException
    +     at java.util.Hashtable.get(Hashtable.java:336)+
    I have added debug statements in by CO, but it is never even getting into the ProcessFormRequest
    Below is the code we are using. Can anyone suggest a way to have this flow layout created dynamically like this and not break all button functionality on the page?
    //Create the advanced table
    OAAdvancedTableBean tableBeanP1 = (OAAdvancedTableBean)createWebBean(pageContext, ADVANCED_TABLE_BEAN, null,"Proc1Tab");
    tableBeanP1.setViewUsageName("P100DetailsVO1");
    tableBeanP1.setNumberOfRowsDisplayed(10);
    //Create a new flow layout to be used as the table actions
    OAFlowLayoutBean tableActionBean = (OAFlowLayoutBean)createWebBean(pageContext, FLOW_LAYOUT_BEAN, null, "P1ButtonRegion");
    //Create the "Add Control Group" button for this table:
    OAButtonBean addButtonBean = (OAButtonBean)createWebBean(pageContext, BUTTON_BEAN, null, "P1AddCtrlGroup");
    FireAction FireActionAddGroup = new FireAction();
    FireActionAddGroup.setEvent("AddCtrlGroup");
    Parameter param = new Parameter();
    param.setKey("ProcedureIndex");
    param.setValue("1");
    Parameter[] params = {param};
    FireActionAddGroup.setParameters(params);
    addButtonBean.setPrimaryClientAction(FireActionAddGroup);
    addButtonBean.setText("Add Control Group");
    tableActionBean.addIndexedChild(addButtonBean);
    //Add the table actions bean to the table:
    tableBeanP1.setTableActions(tableActionBean);

    Hello Ashley,
    you are already close to the solution. In BADI QISR1 you simply fill the
    table SPECIAL_DATA e.g.like
      fieldindex = 1
      fieldname = 'FIELD1'
      fieldvalue = 'Value1'
      fieldindex = <n>
      fieldname = 'FIELD1'
      fieldvalue = 'VALUE<n>'
    Then on the Adobe form layout (Adobe Designer), you have to use the table control XFO from the standard library. Here you have to bind then the corresponding column to FIELD1.
    Best regards,
    Simon

  • PDF Table action block is repeating first row in each page.

    Hi All,
    There is a strange problem in PDF Table action block. I am paasing one xml variable in the pdf table action block. But when it creates the final pdf  - I can see the very first row of the xml is getting repeated as first row of each page along with the header.
    Is there any solution - not to reapeat the first row of the xml in each page ?
    Thanks in advance for your response.
    Soumen

    Hi Michael,
    Installation of PDF Action is done based on this link-
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1109054
    MII Version - 12.0.7 Build(20)
    version 1.4.5. of
    the third-party iText.jar and iTextAsian.jar, from
    http://www.lowagie.com/iText/download.html
    Thanks,
    Soumen

  • Creating LOV  in Table Action.

    Hi,
    Can we create a LOV in table action ,if yes then is LOV Action button is the only way of achieving that.As lot of issue are there if i use LOV action instead of LOV as no criteria item is present in LOV action button.
    Thanks

    HI,
    What i was trying to ask is ,am trying to create a LOV in table's table action section.Its working fine till am trying to search any thing in the LOV,Now when i select a item the I.E page show a error logo below and the control doesn't come's back to the main page.
    So i want to know wheather creating LOV in table action section is feasible or not as in devloper guide things are mentioned on creating message components and message choice in table action.
    Thanks

  • Wrong add_child info at table actions in Querybuilder at Apex 4.x

    I found it in Apex4.0 (but not reported) and found same behaviour in Apex4.0.1
    If you use qurybuilder for joined tables (create sql) you choose a table then click on "table actions"box and you will get add_parent, add_child.
    This works fine for DEMO_ORDER_ITEMS: you see Add_Parent and you can choose
    join ORDER_ID to DEMO_ORDERS_OrderID and
    join PRODUCT_ID to DEMO_PRODUCT_INFO.PRODUCT_ID
    But for DEMO_PRODUCT_INFO you get only an EMPTY add_child ??
    =>thats wrong
    For DEMO_ORDERS you will find
    in BOTH (?) add_parent and add_child
    join CUSTOMER_ID to DEMO_CUSTOMERS.CUSTOMER_ID and
    join USER_ID to DEMO_USERS.user_id
    => thats wrong for the child
    For DEMO_CUSTOMERS,DEMO_USERS you will get an EMPTY add_child
    => thats wrong
    The joining works fine at apex.3.x but not for apex4.x

    Thanks for letting us know. I have filed bug# 10055032 for that issue.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • "Table Action: Override OPI truncate command"

    Hi All,
    I am working on BI Apps 7.9.6.3, informatica 9.0 , DAC and OBIEE 11g.
    I am doing SCM full load, i have face some issue like
    executing sql (Truncate OPI:ORA_R12)
              Call apps.OPI_OBIA_BOMPEXPL_WRAPPER_PKG.do_sql('TRUNCATE TABLE OPI.OPI_OBIA_W_BOM_HEADER_DS')
              "Truncate OPI" failed on "ORA_R12"
              sql: Call apps.OPI_OBIA_BOMPEXPL_WRAPPER_PKG.do_sql('TRUNCATE TABLE OPI.OPI_OBIA_W_BOM_HEADER_DS')
              Error: MESSAGE:::ORA-06576: not a valid function or procedure name
    :OPI_OBIA_W_BOM_HEADER_DS:"Table Action: Override OPI truncate command"
    how to solve this issue...
    Please give me your suggestions.
    Regards
    Prashant

    Hi,
    we also had faced the same issue,
    for this, first we need to run table scripts for creating BOM tables in ur source. U have look into the BI Apps configuration guide for more details.
    If ur schema in which u r creating the table is not apps. In DAC, goto tools->seed data->Actions->table actions and select the task 'OPI Truncate table" and click on the value corresponding to that action and change the schema name and trigger the load.
    Thanks

  • Problem with PDF table Action Block

    Dear All,
    I am generatin PDF document using xMII PDF Action block.
    I am required to display output of my query in PDF Table.
    When my query returns multiple rows data is properly displayed in PDF table.But when my query returns just single row I am unable to see anything in my PDF document.
    After working on this for sometime I understood that we are required to give caption for the PDF table to see data populated in it for single row result.
    Is this the case?Without giving caption to PDF table will data not get displayed in PDF document for single row output?
    Can anyone please help me out with this?
    Thanks,
    Arti

    With Blank caption I am able to see the data, but I get a blank row above my table.This is what I do not want.I want to remove that blank row.
    Can you please suggest how can we do this
    Thanks,
    Arti

  • Calling Oracle Application Form From Table Action (Single Select)

    Can I call a Oracle Application Form From a Table (Table Select, Select Button).
    I also See Destination Function Could That Be Used to Launch Oracle Application Form Using One of the Columns Data (Service Request ID to Launch Service Requests Form)
    Let me know
    Thanks

    Can I call a Oracle Application Form From a Table (Table Select, Select Button).
    Yes can call on select Button
    Thanks

  • Basic Table Actions (iOS 3.1)

    How do I get a table view cell to deselect after tapping it? for instance, I have a table cell that, when tapped, displays an alert view...how do I get the cell to deselect after displaying the alert or after dismissing the alert (whatever conforms to the HIG better)?
    In addition, I've implemented an Edit/Done button on a nav bar as such:
    self.navigationItem.leftBarButtonItem = self.editButtonItem;
    What's the method (delegate protocol) I should implement to have the Delete button that it invokes actually do something?

    musicwind95 wrote:
    How do I get a table view cell to deselect after tapping it?
    See [deselectRowAtIndexPath:animated:|http://developer.apple.com/iphone/library/doc umentation/UIKit/Reference/UITableViewClass/Reference/Reference.html#//appleref/occ/instm/UITableView/deselectRowAtIndexPath:animated:] in the UITableView doc.
    I have a table cell that, when tapped, displays an alert view...how do I get the cell to deselect after displaying the alert or after dismissing the alert (whatever conforms to the HIG better)?
    I would deselect the cell after the alert is dismissed in case the user needs to be reminded of which selection caused the alert. So I might deselect the currently selected row in [alertView:didDismissWithButtonIndex:|http://developer.apple.com/iphone/library /documentation/UIKit/Reference/UIAlertViewDelegateProtocol/UIAlertViewDelegate/UIAlertViewDelegate.html#//appleref/doc/uid/TP40007548-CH3-SW1]:
    // in the implementation of the table view controller which is also the alert view delegate
    - (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {
    // UITableView *tableView = (UITableView*)self.view; // if super isn't UITableViewController
    NSIndexPath *indexPath = [tableView indexPathForSelectedRow];
    if (indexPath != nil)
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    In addition, I've implemented an Edit/Done button on a nav bar as such:
    self.navigationItem.leftBarButtonItem = self.editButtonItem;
    What's the method (delegate protocol) I should implement to have the Delete button that it invokes actually do something?
    See [tableView:commitEditingStyle:forRowAtIndexPath:|http://developer.apple.com/iph one/library/documentation/UIKit/Reference/UITableViewDataSourceProtocol/Reference/Reference.html#//appleref/doc/uid/TP40006941-CH3-SW11] in the +UITableViewDataSource Protocol Reference+.
    However before coding that method, I'd recommend [Inserting and Deleting Rows and Sections|http://developer.apple.com/iphone/library/documentation/UserExperience /Conceptual/TableViewiPhone/ManageInsertDeleteRow/ManageInsertDeleteRow.html#//appleref/doc/uid/TP40007451-CH10-SW1] in the +Table View Programming Guide for iPhone OS+.
    - Ray

  • What is the best way to implement default values stored in a DB table?

    [JHeadstart 10.1.3 build 78]
    [JDeveloper 10.1.3 SU4]
    We are struggling on how to best implement default values that are stored in a DB table. What we have is a database table with (CODE_TYPE, TABLE_NAME, COLUMN_NAME, DEFAULT_VALUE) as columns. This way the application administrator can administer default values himself/herself. Now we need to find the best way to set these table supplied default values in new rows. Globally we are aware of two ways:
    - override create() method on VO
    - probably create a View Object on top of the database table with default values (we are capable of transposing the table and return exactly one row with a column for each default value) and use JHeadstarts item property 'Default Value'.
    We prefer the latter, since this is more declarative, however we struggle with the EL expression needed to indicate the default value.
    If we have a VO named "DefaultValues" with a SELECT on a view on top of our database table (transposed) returning exactly one row, let us say:
    SELECT orglanguage, orgtype, orgstatus [...]
    FROM v_default_values
    --> returning exactly one row
    and we want an EL expression on an item that needs the value from orglanguage. What will the EL expression be? Something like:
    #{data.DefaultValuesPageDef.currentrow.orglanguage.inputValue}? We tried several things but they do not work. A static default value works, but every EL expression so far does not. We know that using "data" can be dangerous, but thought JHeadstart takes care of preparing the other Page Definitions, so it might be possible when you use JHeadstart.
    Or is overriding the create() method the preferred way? Or do we have to look at a Managed Bean for our default values that we refer to from EL (let us say MyAppDefaultValuesBean) and in that case: how do you associate a Managed Bean with a VO?
    Any help would be appreciated. Apart from these default values, things are going rather well in this first J2EE/JHS project for us!
    Toine

    Steven,
    Thanks for the reply. Unfortunately whatever we try, we cannot get it to work. We started looking at the second option (since we do need default values also in table lay-out new rows). We created a DefaultValues ViewObject, added it to the Application Module, added an EL expressiona to the Default Display Value property (replacing your ending ")" with a "}" offcourse ;-)), ran the JAG so that a page definition was generated for DefaultValues and we managed to get it prepared when loading for example the Organisation's jspx page. However no default value appears in a new row (not in Form, not in Table layout).
    I then created a quick application on top of the HR schema, added a DefaultValues ViewObject using one calculated attribute (set Salary fixed to 1000), added the EL expression to the Salary Default Display Value property in the Employees Group, made sure the DefaultValuesPageDef is prepared by adding it to the parameter section and I see it getting prepared. I also see a managed Bean is created in the Employees-bean.xml.
    In the Embedded OC4J log we see:
    16:01:01 DEBUG (JhsPageLifecycle) -executing onCreate
    16:01:01 DEBUG (JhsPageLifecycle) -CreateEmployeesDefaultValues bean found, applying default values to new row
    2006-08-02 16:01:01.825 WARNING [ADFc] Warning: No Method onCreateEmployees and no actionBinding CreateEmployees found.
    Is it this warning we should be worried about? Since no default value is created.
    The managed bean (Employees-beans.xml) looks like:
    <?xml version="1.0" encoding="windows-1252"?>
    <!DOCTYPE faces-config PUBLIC
    "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
    "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config xmlns="http://java.sun.com/JSF/Configuration">
    <managed-bean>
    <managed-bean-name>CreateEmployeesDefaultValues</managed-bean-name>
    <managed-bean-class>oracle.jheadstart.controller.jsf.bean.DefaultValuesBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>iteratorBinding</property-name>
    <value>#{bindings.EmployeesIterator}</value>
    </managed-property>
    <managed-property>
    <property-name>defaultValues</property-name>
    <map-entries>
    <map-entry>
    <key>Salary</key>
    <value>#{data.DefaultValuesPageDef.DefaultValuesIterator.currentRow.Salary}</value>
    </map-entry>
    </map-entries>
    </managed-property>
    <managed-property>
    <property-name>actionResult</property-name>
    <value>CreateEmployees</value>
    </managed-property>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>searchEmployees</managed-bean-name>
    <managed-bean-class>oracle.jheadstart.controller.jsf.bean.JhsSearchBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{data.EmployeesPageDef}</value>
    </managed-property>
    <managed-property>
    <property-name>searchBinding</property-name>
    <value>#{data.EmployeesPageDef.advancedSearchEmployees}</value>
    </managed-property>
    <managed-property>
    <property-name>searchAttribute</property-name>
    <value>EmployeeId</value>
    </managed-property>
    <managed-property>
    <property-name>dataCollection</property-name>
    <value>EmployeesView1</value>
    </managed-property>
    <managed-property>
    <property-name>autoquery</property-name>
    <value>true</value>
    </managed-property>
    </managed-bean>
    <managed-bean>
    <managed-bean-name>EmployeesCollectionModel</managed-bean-name>
    <managed-bean-class>oracle.jheadstart.controller.jsf.bean.JhsCollectionModel</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>jhsPageLifecycle</property-name>
    <value>#{jhsPageLifecycle}</value>
    </managed-property>
    <managed-property>
    <property-name>bindings</property-name>
    <value>#{bindings}</value>
    </managed-property>
    <managed-property>
    <property-name>rangeBinding</property-name>
    <value>#{bindings.EmployeesTable}</value>
    </managed-property>
    <managed-property>
    <property-name>defaultValues</property-name>
    <value>#{CreateEmployeesDefaultValues.defaultValues}</value>
    </managed-property>
    </managed-bean>
    </faces-config>
    This is the DefaultValues.xml:
    <?xml version='1.0' encoding='windows-1252' ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <ViewObject
    Name="DefaultValues"
    BindingStyle="OracleName"
    CustomQuery="true"
    ComponentClass="hr.model.DefaultValuesImpl"
    UseGlueCode="false" >
    <DesignTime>
    <Attr Name="_version" Value="10.1.3.36.73" />
    <Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess" />
    </DesignTime>
    <ViewAttribute
    Name="Salary"
    IsUpdateable="false"
    IsPersistent="false"
    Precision="255"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    AliasName="SALARY"
    Expression="1000"
    SQLType="VARCHAR" >
    </ViewAttribute>
    </ViewObject>
    The PageDef for Defaultvalues is like:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
    version="10.1.3.36.73" id="DefaultValuesPageDef"
    Package="hr.view.pagedefs" EnableTokenValidation="false">
    <parameters/>
    <executables>
    <iterator id="DefaultValuesIterator"
    Binds="AppModuleDataControl.DefaultValues1"
    DataControl="AppModuleDataControl" RangeSize="10"/>
    </executables>
    <bindings>
    <attributeValues id="DefaultValuesSalary"
    IterBinding="DefaultValuesIterator">
    <AttrNames>
    <Item Value="Salary"/>
    </AttrNames>
    </attributeValues>
    <table id="DefaultValuesTable" IterBinding="DefaultValuesIterator">
    <AttrNames>
    <Item Value="Salary"/>
    </AttrNames>
    </table>
    <action id="FirstDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="12"/>
    <action id="PreviousDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="11"/>
    <action id="NextDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="10"/>
    <action id="LastDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="13"/>
    <methodAction RequiresUpdateModel="true" Action="999"
    id="advancedSearchDefaultValues"
    IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl"
    InstanceName="AppModuleDataControl.dataProvider"
    MethodName="advancedSearch"
    ReturnName="AppModuleDataControl.methodResults.AppModuleDataControl_dataProvider_advancedSearch_result"
    IsViewObjectMethod="false">
    <NamedData NDName="viewObjectUsage"
    NDValue="#{searchDefaultValues.dataCollection}"
    NDType="java.lang.String"/>
    <NamedData NDName="arguments" NDValue="#{searchDefaultValues.arguments}"
    NDType="java.util.ArrayList"/>
    <NamedData NDName="allConditionsMet"
    NDValue="#{searchDefaultValues.allConditionsMet}"
    NDType="java.lang.Boolean"/>
    </methodAction>
    <action id="setCurrentRowWithKeyDefaultValues"
    IterBinding="DefaultValuesIterator"
    InstanceName="AppModuleDataControl.DefaultValues1"
    DataControl="AppModuleDataControl" RequiresUpdateModel="false"
    Action="96">
    <NamedData NDName="rowKeyStr" NDValue="#{row.rowKeyStr}"
    NDType="java.lang.String"/>
    </action>
    <action id="CreateDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="true"
    Action="40"/>
    <action id="DeleteDefaultValues" IterBinding="DefaultValuesIterator"
    DataControl="AppModuleDataControl" RequiresUpdateModel="false"
    Action="30"/>
    <action id="Commit" RequiresUpdateModel="true" Action="100"
    DataControl="AppModuleDataControl"/>
    <action id="Rollback" RequiresUpdateModel="false" Action="101"
    DataControl="AppModuleDataControl"/>
    </bindings>
    </pageDefinition>
    We do not understand what is wrong and why the default values do not get created in the new rows (and it is taking us far too much time). Any chance the EL expression is still wrong? It is a shame that any syntax errors in EL expressions are not visible in some logfile. It looks like when EL expressions are wrong, they are ignored instead of raising an error...
    Toine

  • How can a hyperlink in a table load an image in a new page?

    Hello,
    I�m using Java Studion Creator 2 Update 1 an I have following problem:
    In my jsp-page (main.jsp) I have a table component with an image hyperlink (showOriginal) in the first column and a hyperlink to another page in the second. On this page is also a hyperlink, which refreshes the table.
    The hyperlink "showOriginal"should open an new browser window and display an image depending on the selected table row. I set the property "target" for the hyperlink to "new Window" and specified an event_method (showOriginal_action() ), which gets the image for the selected table row and returns a new jsp-page (originalView.jsp).
    OriginalView.jsp has only one image component. The url for this image is set by the event_method of the image-hyperlink of main.jsp. Everything works fine but if I press the refresh link on the main.jsp to refresh the table (after opening the new window with the image), the image is also loaded in the main.jsp and every other link causes the same problem. Even when I close the window with the image, the same happens. It seems to my like I`m still on the main.jsp and not on the originalView.jsp (after I included a </redirect> tag in navigation.xml, I can see in the browser address line that the OriginalView.jsp is loaded) and the main.jsp "thinks" that the current content of itself is the image?
    I changed the return value of showOriginal_action() to null (because of the target property I always get the originalView-page) and then I included an onClick-method for the imagehyperlink to open a new window with the image via javascript but this didn`t work because the onclick is performed first and at this time I don`t have the image url yet (because first I must know, which row was selected in the table).
    Am I doing something wrong or is this not the correct way to do this? I just want to click the link in the table and a new window/page should be opened, which displays the image, independent from anything else. and all the links in the main-page must still work properly.
    I appreciate any help & suggestions.
    thanks
    Message was edited by:
    dan_k

    hi,
    here the code of main.jsp (with your suggestions):
    <?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:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{main.page1}" id="page1">
    <ui:html binding="#{main.html1}" id="html1">
    <ui:head binding="#{main.head1}" id="head1" title="SEWM">
    <ui:link binding="#{main.link1}" id="link1" url="/resources/stylesheet.css"/>
    <ui:script binding="#{main.script1}" id="script1" url="/resources/global.js"/>
    </ui:head>
    <ui:body binding="#{main.body1}" id="body1" style="background-color: rgb(255, 255, 255); -rave-layout: grid">
    <ui:form binding="#{main.formMain}" id="formMain" target="_self">
    <div id="main">
    <h:panelGrid binding="#{main.header}" id="header" styleClass="abc_header_bar">
    <ui:image binding="#{main.image1}" id="image1" styleClass="abc_header_logo" url="/resources/abc_logo.gif"/>
    <ui:image binding="#{main.imageLine1}" id="imageLine1" styleClass="abc_header_logoLine" url="/resources/amb_leiste.gif"/>
    <ui:staticText binding="#{main.staticText2}" id="staticText2" styleClass="abc_page_title" text="IWM Control"/>
    </h:panelGrid>
    <h:panelGrid binding="#{main.menu}" columns="1" id="menu" styleClass="abc_menu_wrapper">
    <ui:image align="middle" binding="#{main.imageLeon1}" height="81" id="imageLeon1" url="/resources/leon.gif"/>
    <h:panelGrid binding="#{main.gridPanel1}" id="gridPanel1" styleClass="abc_menu_box">
    <ui:hyperlink action="#{main.changePssw_action}" binding="#{main.hyperlinkChangePassword}" id="hyperlinkChangePassword"
    style="color:#990000" text="#{main.propertyResourceProvider1.value['changePassword']}"/>
    <ui:hyperlink action="#{main.refresh_action}" binding="#{main.hyperlinkRefresh}" id="hyperlinkRefresh"
    onClick="function test() {&#xa; this.formMain.target='_self';&#xa;}" style="color:#990000" text="#{main.propertyResourceProvider1.value['refresh']}"/>
    <ui:hyperlink binding="#{main.customerHelp1}" id="customerHelp1" immediate="true" style="color:#990000" styleClass=""
    target="_blank" text="Hilfe" url="/main.html"/>
    <ui:label binding="#{main.label2}" id="label2" styleClass="abc_lbplaceholder" text="_______________________"/>
    <ui:staticText binding="#{main.staticText108}" id="staticText108" styleClass="abc_tinfo" text="TEST Info" toolTip="#{SessionBean1.testSystemInfo}"/>
    </h:panelGrid>
    </h:panelGrid>
    <h:panelGrid binding="#{main.gridPanelUserInfo1}" columns="3" id="gridPanelUserInfo1" styleClass="abc_userinfo">
    <ui:staticText binding="#{main.staticText1}" id="staticText1" text="Sie sind angemeldet als "/>
    <ui:staticText binding="#{main.registeredUser1}" id="registeredUser1" text="#{SessionBean1.webFacade.user.uname}"/>
    <ui:hyperlink action="#{main.logout_action}" binding="#{main.logout1}" id="logout1" style="color: #ffffff" text="#{main.propertyResourceProvider1.value['logout']}"/>
    </h:panelGrid>
    <h:panelGrid binding="#{main.gridPanel86}" id="gridPanel86" styleClass="abc_page_content">
    <ui:label binding="#{main.label3}" id="label3" text="#{main.propertyResourceProvider1.value['sysmessages']}"/>
    <ui:messageGroup binding="#{main.outlineTableMessageGroup}" id="outlineTableMessageGroup" styleClass="abc_messagebox"/>
    <ui:tabSet binding="#{main.tabSet1}" id="tabSet1" lite="true" mini="true" selected="tab2">
    <ui:tab action="#{main.tab2_action}" binding="#{main.tab2}" id="tab2" text="#{main.propertyResourceProvider1.value['openProcesses']}">
    <ui:panelLayout binding="#{main.layoutPanel2}" id="layoutPanel2">
    <ui:table binding="#{main.table3}" id="table3" paginateButton="true" paginationControls="true"
    styleClass="abc_main_fulltable" title="Offene Vorg�nge" width="600">
    <script><![CDATA[
    /* ----- Functions for Table Preferences Panel ----- */
    * Toggle the table preferences panel open or closed
    function togglePreferencesPanel1() {
    var table = document.getElementById("form1:tabSet1:tab2:table3");
    table.toggleTblePreferencesPanel();
    /* ----- Functions for Filter Panel ----- */
    * Return true if the filter menu has actually changed,
    * so the corresponding event should be allowed to continue.
    function filterMenuChanged1() {
    var table = document.getElementById("form1:tabSet1:tab2:table3");
    return table.filterMenuChanged();
    * Toggle the custom filter panel (if any) open or closed.
    function toggleFilterPanel1() {
    var table = document.getElementById("form1:tabSet1:tab2:table3");
    return table.toggleTableFilterPanel();
    /* ----- Functions for Table Actions ----- */
    * Initialize all rows of the table when the state
    * of selected rows changes.
    function initAllRows1() {
    var table = document.getElementById("form1:tabSet1:tab2:table3");
    table.initAllRows();
    * Set the selected state for the given row groups
    * displayed in the table. This functionality requires
    * the 'selectId' of the tableColumn to be set.
    * @param rowGroupId HTML element id of the tableRowGroup component
    * @param selected Flag indicating whether components should be selected
    function selectGroupRows1(rowGroupId, selected) {
    var table = document.getElementById("form1:tabSet1:tab2:table3");
    table.selectGroupRows(rowGroupId, selected);
    * Disable all table actions if no rows have been selected.
    function disableActions1() {
    // Determine whether any rows are currently selected
    var table = document.getElementById("form1:tabSet1:tab2:table3");
    var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
    // Set disabled state for top actions
    document.getElementById("form1:tabSet1:tab2:table3:tableActionsTop:deleteTop").setDisabled(disabled);
    // Set disabled state for bottom actions
    document.getElementById("form1:tabSet1:tab2:table3:tableActionsBottom:deleteBottom").setDisabled(disabled);
    }]]></script>
    <ui:tableRowGroup binding="#{main.tableRowGroup4}" emptyDataMsg="Keine Vorg�nge gefunden." id="tableRowGroup4"
    rows="20" sourceData="#{SessionBean1.openProcesses}" sourceVar="currentRowTable">
    <ui:tableColumn binding="#{main.tableColumn23}" embeddedActions="true" id="tableColumn23" noWrap="true">
    <ui:panelGroup binding="#{main.groupPanel13}" id="groupPanel13">
    <ui:imageHyperlink action="#{main.showOriginal_action}"
    alt="#{main.propertyResourceProvider1.value['ttShowOriginals']}"
    binding="#{main.imageHyperlink64}" id="imageHyperlink64"
    imageURL="/resources/original_small.gif" immediate="true" target="_blank" toolTip="#{main.propertyResourceProvider1.value['ttShowOriginals']}"/>
    </ui:panelGroup>
    </ui:tableColumn>
    <ui:tableColumn binding="#{main.tableColumn15}" headerText="Kreditor" id="tableColumn15" sort="vendorName">
    <ui:hyperlink action="#{main.edit_action}" binding="#{main.hyperlink1}" id="hyperlink1" text="#{currentRowTable.value['vendorName']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{main.tableColumn17}" headerText="Rechnungsnummer" id="tableColumn17" sort="refDocNo">
    <ui:staticText binding="#{main.staticText101}" id="staticText101" styleClass="abc_table_celltext" text="#{currentRowTable.value['refDocNo']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{main.tableColumn18}" headerText="Rechnungsdatum" id="tableColumn18" sort="docDate">
    <ui:staticText binding="#{main.staticText102}" converter="#{main.dateTimeConverter1}" id="staticText102"
    styleClass="abc_table_celltext" text="#{currentRowTable.value['docDate']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{main.tableColumn19}" headerText="F�lligkeit" id="tableColumn19" noWrap="true" sort="dueDate">
    <ui:staticText binding="#{main.staticText103}" converter="#{main.dateTimeConverter1}" id="staticText103"
    styleClass="abc_table_celltext" text="#{currentRowTable.value['dueDate']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{main.tableColumn21}" headerText="Zuordnung" id="tableColumn21" sort="stapleName">
    <ui:staticText binding="#{main.staticText105}" id="staticText105" styleClass="abc_table_celltext" text="#{currentRowTable.value['stapleName']}"/>
    </ui:tableColumn>
    </ui:tableRowGroup>
    <f:facet name="actionsBottom"/>
    </ui:table>
    </ui:panelLayout>
    </ui:tab>
    </ui:tabSet>
    </h:panelGrid>
    </div>
    <div id="wait" style="visibility: hidden;">
    <h:panelGrid binding="#{main.gridPanel8}" id="gridPanel8" styleClass="abc_wait_div">
    <ui:label binding="#{main.label1}" id="label1" styleClass="abc_labelwait_align" text="#{main.propertyResourceProvider1.value['loaddata']}"/>
    <ui:image binding="#{main.image15}" id="image15" url="/resources/loading.gif"/>
    </h:panelGrid>
    </div>
    </ui:form>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    originalView.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" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{originalView.page1}" id="page1">
    <ui:html binding="#{originalView.html1}" id="html1">
    <ui:head binding="#{originalView.head1}" id="head1">
    <ui:link binding="#{originalView.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{originalView.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{originalView.form1}" id="form1">
    <ui:image binding="#{originalView.image1}" height="#{SessionBean1.archiveObjectsFileDataProvider.value['height']}" id="image1"
    style="left: 120px; top: 48px; position: absolute" url="#{SessionBean1.archiveObjectsFileDataProvider.value['url']}" width="#{SessionBean1.archiveObjectsFileDataProvider.value['width']}"/>
    </ui:form>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    and java-methods:
    public String showOriginal_action() {
    getSelectedRowFromMainTable();
         setSelectedImage(); // the image url ist then available via session bean
    return "originalView"; // displays the image using the url in the session bean
    public String refresh_action() {
    try {
    getSessionBean1().getOpenProcessTable();
    //hier I tried
    //getHyperlinkRefresh().setTarget("_self");
    //or getFormMain().setTarget("_self");
    catch(Exception ex) {
    error(ex.getMessage());
    return null;
    }

  • Problem with some actions of a page in the ie

    the page is built on Studio Creator 2.1 in Fedora 4, when i run in ff work's fine. But, in the ie, some actions doesn't work well: what happens is that all the actions are redirected to another page's application!
    i think that it could be javascript incopatibility, for example i have a table component in the page, and when i click on the button(header table) for order rowgroup, i'm redirected to another page.
    ie version - 6.0
    windows 2000 server
    i don't know what to do.

    JSP Code
    <?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:ui="http://www.sun.com/web/ui">
        <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
        <f:view>
            <ui:page binding="#{tarefa.page1}" id="page1">
                <ui:html binding="#{tarefa.html1}" id="html1">
                    <ui:head binding="#{tarefa.head1}" id="head1">
                        <ui:link binding="#{tarefa.link1}" id="link1" url="/resources/stylesheet.css"/>
                    </ui:head>
                    <ui:body binding="#{tarefa.body1}" id="body1" style="-rave-layout: grid">
                        <ui:form binding="#{tarefa.form1}" id="form1" target="_self">
                            <div style="height: 126px; left: 72px; top: 24px; position: absolute; width: 702px">
                                <jsp:directive.include file="cabecalho.jspf"/>
                            </div>
                            <div style="left: 72px; top: 558px; position: absolute">
                                <jsp:directive.include file="rodape.jspf"/>
                            </div>
                            <div style="height: 306px; left: 72px; top: 144px; position: absolute; width: 144px">
                                <jsp:directive.include file="menu1.jspf"/>
                            </div>
                            <ui:label binding="#{tarefa.label1}" id="label1" style="left: 220px; top: 150px; position: absolute" text="Cadastro/Manutencao de Tarefas"/>
                            <ui:staticText binding="#{tarefa.staticText1}" id="staticText1" style="left: 240px; top: 170px; position: absolute" text="Data:"/>
                            <ui:staticText binding="#{tarefa.staticText2}" id="staticText2" style="left: 240px; top: 210px; position: absolute" text="S�rie:"/>
                            <ui:staticText binding="#{tarefa.staticText3}" id="staticText3" style="left: 240px; top: 230px; position: absolute" text="Disciplina:"/>
                            <ui:staticText binding="#{tarefa.staticText4}" id="staticText4" style="left: 240px; top: 250px; position: absolute" text="Descricao:"/>
                            <ui:calendar binding="#{tarefa.dtTarefa}" dateFormatPattern="yyyy-MM-dd" id="dtTarefa" style="height: 18px; left: 300px; top: 170px; position: absolute; width: 108px"/>
                            <ui:dropDown binding="#{tarefa.cmbSerie}" converter="#{tarefa.integerConverter1}" id="cmbSerie"
                                items="#{tarefa.serieDataProvider.options['serie.id,serie.serie']}" style="height: 18px; left: 300px; top: 210px; position: absolute; width: 198px"/>
                            <ui:dropDown binding="#{tarefa.cmbDisciplina}" converter="#{tarefa.integerConverter2}" id="cmbDisciplina"
                                items="#{tarefa.disciplinaDataProvider.options['disciplina.id,disciplina.disciplina']}" style="height: 18px; left: 300px; top: 230px; position: absolute; width: 198px"/>
                            <ui:textArea binding="#{tarefa.txtDesc}" id="txtDesc" style="height: 36px; left: 300px; top: 250px; position: absolute; width: 200px"/>
                            <ui:button action="#{tarefa.btnNovo_action}" binding="#{tarefa.btnNovo}" id="btnNovo"
                                style="left: 239px; top: 290px; position: absolute" text="Novo"/>
                            <ui:button action="#{tarefa.btnEditar_action}" binding="#{tarefa.btnEditar}" id="btnEditar"
                                style="left: 299px; top: 290px; position: absolute" text="Editar"/>
                            <ui:button action="#{tarefa.btnAtualizar_action}" binding="#{tarefa.btnAtualizar}" id="btnAtualizar"
                                style="left: 359px; top: 290px; position: absolute" text="Atualizar"/>
                            <ui:button action="#{tarefa.btnCancelar_action}" binding="#{tarefa.btnCancelar}" id="btnCancelar"
                                style="left: 439px; top: 290px; position: absolute" text="Cancelar"/>
                            <ui:messageGroup binding="#{tarefa.messageGroup1}" id="messageGroup1" style="height: 88px; left: 522px; top: 180px; position: absolute; width: 250px"/>
                            <ui:hiddenField binding="#{tarefa.op}" id="op"/>
                            <ui:hiddenField binding="#{tarefa.id}" id="id"/>
                            <ui:table augmentTitle="false" binding="#{tarefa.table1}" id="table1" lite="true" paginationControls="true"
                                style="height: 126px; left: 234px; top: 324px; position: absolute" width="540">
                                <script language="javascript1.2" type="text/javascript"><![CDATA[
    /* ----- Functions for Table Preferences Panel ----- */
    * Toggle the table preferences panel open or closed
    function togglePreferencesPanel() {
      var table = document.getElementById("form1:table1");
      table.toggleTblePreferencesPanel();
    /* ----- Functions for Filter Panel ----- */
    * Return true if the filter menu has actually changed,
    * so the corresponding event should be allowed to continue.
    function filterMenuChanged() {
      var table = document.getElementById("form1:table1");
      return table.filterMenuChanged();
    * Toggle the custom filter panel (if any) open or closed.
    function toggleFilterPanel() {
      var table = document.getElementById("form1:table1");
      return table.toggleTableFilterPanel();
    /* ----- Functions for Table Actions ----- */
    * Initialize all rows of the table when the state
    * of selected rows changes.
    function initAllRows() {
      var table = document.getElementById("form1:table1");
      table.initAllRows();
    * Set the selected state for the given row groups
    * displayed in the table.  This functionality requires
    * the 'selectId' of the tableColumn to be set.
    * @param rowGroupId HTML element id of the tableRowGroup component
    * @param selected Flag indicating whether components should be selected
    function selectGroupRows(rowGroupId, selected) {
      var table = document.getElementById("form1:table1");
      table.selectGroupRows(rowGroupId, selected);
    * Disable all table actions if no rows have been selected.
    function disableActions() {
      // Determine whether any rows are currently selected
      var table = document.getElementById("form1:table1");
      var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
      // Set disabled state for top actions
      document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
      // Set disabled state for bottom actions
      document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
    }]]></script>
                                <ui:tableRowGroup binding="#{tarefa.tableRowGroup1}" id="tableRowGroup1" rows="3" sourceData="#{tarefa.tarefaDataProvider1}" sourceVar="currentRow">
                                    <ui:tableColumn binding="#{tarefa.tableColumn1}" id="tableColumn1" width="53">
                                        <ui:button action="#{tarefa.button1_action}" binding="#{tarefa.button1}" id="button1" text="#{currentRow.value['tarefa.id']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn2}" headerText="Data" id="tableColumn2" sort="tarefa.data" width="177">
                                        <ui:staticText binding="#{tarefa.staticText6}" id="staticText6" text="#{currentRow.value['tarefa.data']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn5}" headerText="Descricao" id="tableColumn5" sort="tarefa.descricao" width="189">
                                        <ui:staticText binding="#{tarefa.staticText9}" id="staticText9" text="#{currentRow.value['tarefa.descricao']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn6}" headerText="Serie" id="tableColumn6" sort="serie.serie">
                                        <ui:staticText binding="#{tarefa.staticText10}" id="staticText10" text="#{currentRow.value['serie.serie']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn7}" headerText="Disciplina" id="tableColumn7" sort="disciplina.disciplina">
                                        <ui:staticText binding="#{tarefa.staticText11}" id="staticText11" text="#{currentRow.value['disciplina.disciplina']}"/>
                                    </ui:tableColumn>
                                    <ui:tableColumn binding="#{tarefa.tableColumn8}" id="tableColumn8">
                                        <ui:button action="#{tarefa.button2_action}" binding="#{tarefa.button2}" id="button2" text="Delete"/>
                                    </ui:tableColumn>
                                </ui:tableRowGroup>
                            </ui:table>
                        </ui:form>
                    </ui:body>
                </ui:html>
            </ui:page>
        </f:view>
    </jsp:root>java code
    package cmsgeracao;
    import com.sun.data.provider.RowKey;
    import com.sun.rave.web.ui.appbase.AbstractPageBean;
    import com.sun.rave.web.ui.component.Body;
    import com.sun.rave.web.ui.component.Form;
    import com.sun.rave.web.ui.component.Head;
    import com.sun.rave.web.ui.component.Html;
    import com.sun.rave.web.ui.component.Link;
    import com.sun.rave.web.ui.component.Page;
    import javax.faces.FacesException;
    import com.sun.rave.web.ui.component.Label;
    import com.sun.rave.web.ui.component.StaticText;
    import com.sun.rave.web.ui.component.Calendar;
    import com.sun.rave.web.ui.component.DropDown;
    import com.sun.rave.web.ui.component.TextArea;
    import com.sun.rave.web.ui.component.Button;
    import com.sun.rave.web.ui.component.Table;
    import com.sun.rave.web.ui.component.TableRowGroup;
    import com.sun.rave.web.ui.component.TableColumn;
    import com.sun.data.provider.impl.CachedRowSetDataProvider;
    import javax.faces.convert.IntegerConverter;
    import com.sun.rave.web.ui.component.MessageGroup;
    import com.sun.rave.web.ui.component.HiddenField;
    import java.util.Date;
    import java.util.GregorianCalendar;
    import com.sun.rave.web.ui.model.DefaultTableDataProvider;
    * <p>Page bean that corresponds to a similarly named JSP page.  This
    * class contains component definitions (and initialization code) for
    * all components that you have defined on this page, as well as
    * lifecycle methods and event handlers where you may add behavior
    * to respond to incoming events.</p>
    public class tarefa extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
         * <p>Automatically managed component initialization.  <strong>WARNING:</strong>
         * This method is automatically generated, so any user-specified code inserted
         * here is subject to being replaced.</p>
        private void _init() throws Exception {
            disciplinaDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.disciplinaRowSet}"));
            serieDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.serieRowSet}"));
            tarefaDataProvider.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.tarefaRowSet}"));
            tarefaDataProvider1.setCachedRowSet((javax.sql.rowset.CachedRowSet)getValue("#{SessionBean1.tarefaRowSet}"));
        private Page page1 = new Page();
        public Page getPage1() {
            return page1;
        public void setPage1(Page p) {
            this.page1 = p;
        private Html html1 = new Html();
        public Html getHtml1() {
            return html1;
        public void setHtml1(Html h) {
            this.html1 = h;
        private Head head1 = new Head();
        public Head getHead1() {
            return head1;
        public void setHead1(Head h) {
            this.head1 = h;
        private Link link1 = new Link();
        public Link getLink1() {
            return link1;
        public void setLink1(Link l) {
            this.link1 = l;
        private Body body1 = new Body();
        public Body getBody1() {
            return body1;
        public void setBody1(Body b) {
            this.body1 = b;
        private Form form1 = new Form();
        public Form getForm1() {
            return form1;
        public void setForm1(Form f) {
            this.form1 = f;
        private Label label1 = new Label();
        public Label getLabel1() {
            return label1;
        public void setLabel1(Label l) {
            this.label1 = l;
        private StaticText staticText1 = new StaticText();
        public StaticText getStaticText1() {
            return staticText1;
        public void setStaticText1(StaticText st) {
            this.staticText1 = st;
        private StaticText staticText2 = new StaticText();
        public StaticText getStaticText2() {
            return staticText2;
        public void setStaticText2(StaticText st) {
            this.staticText2 = st;
        private StaticText staticText3 = new StaticText();
        public StaticText getStaticText3() {
            return staticText3;
        public void setStaticText3(StaticText st) {
            this.staticText3 = st;
        private StaticText staticText4 = new StaticText();
        public StaticText getStaticText4() {
            return staticText4;
        public void setStaticText4(StaticText st) {
            this.staticText4 = st;
        private Calendar dtTarefa = new Calendar();
        public Calendar getDtTarefa() {
            return dtTarefa;
        public void setDtTarefa(Calendar c) {
            this.dtTarefa = c;
        private DropDown cmbSerie = new DropDown();
        public DropDown getCmbSerie() {
            return cmbSerie;
        public void setCmbSerie(DropDown dd) {
            this.cmbSerie = dd;
        private DropDown cmbDisciplina = new DropDown();
        public DropDown getCmbDisciplina() {
            return cmbDisciplina;
        public void setCmbDisciplina(DropDown dd) {
            this.cmbDisciplina = dd;
        private TextArea txtDesc = new TextArea();
        public TextArea getTxtDesc() {
            return txtDesc;
        public void setTxtDesc(TextArea ta) {
            this.txtDesc = ta;
        private Button btnNovo = new Button();
        public Button getBtnNovo() {
            return btnNovo;
        public void setBtnNovo(Button b) {
            this.btnNovo = b;
        private Button btnEditar = new Button();
        public Button getBtnEditar() {
            return btnEditar;
        public void setBtnEditar(Button b) {
            this.btnEditar = b;
        private Button btnAtualizar = new Button();
        public Button getBtnAtualizar() {
            return btnAtualizar;
        public void setBtnAtualizar(Button b) {
            this.btnAtualizar = b;
        private Button btnCancelar = new Button();
        public Button getBtnCancelar() {
            return btnCancelar;
        public void setBtnCancelar(Button b) {
            this.btnCancelar = b;
        private CachedRowSetDataProvider disciplinaDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getDisciplinaDataProvider() {
            return disciplinaDataProvider;
        public void setDisciplinaDataProvider(CachedRowSetDataProvider crsdp) {
            this.disciplinaDataProvider = crsdp;
        private IntegerConverter cmbDisciplinaConverter = new IntegerConverter();
        public IntegerConverter getCmbDisciplinaConverter() {
            return cmbDisciplinaConverter;
        public void setCmbDisciplinaConverter(IntegerConverter ic) {
            this.cmbDisciplinaConverter = ic;
        private CachedRowSetDataProvider serieDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getSerieDataProvider() {
            return serieDataProvider;
        public void setSerieDataProvider(CachedRowSetDataProvider crsdp) {
            this.serieDataProvider = crsdp;
        private IntegerConverter cmbSerieConverter = new IntegerConverter();
        public IntegerConverter getCmbSerieConverter() {
            return cmbSerieConverter;
        public void setCmbSerieConverter(IntegerConverter ic) {
            this.cmbSerieConverter = ic;
        private IntegerConverter integerConverter2 = new IntegerConverter();
        public IntegerConverter getIntegerConverter2() {
            return integerConverter2;
        public void setIntegerConverter2(IntegerConverter ic) {
            this.integerConverter2 = ic;
        private CachedRowSetDataProvider tarefaDataProvider = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getTarefaDataProvider() {
            return tarefaDataProvider;
        public void setTarefaDataProvider(CachedRowSetDataProvider crsdp) {
            this.tarefaDataProvider = crsdp;
        private MessageGroup messageGroup1 = new MessageGroup();
        public MessageGroup getMessageGroup1() {
            return messageGroup1;
        public void setMessageGroup1(MessageGroup mg) {
            this.messageGroup1 = mg;
        private IntegerConverter integerConverter1 = new IntegerConverter();
        public IntegerConverter getIntegerConverter1() {
            return integerConverter1;
        public void setIntegerConverter1(IntegerConverter ic) {
            this.integerConverter1 = ic;
        private HiddenField op = new HiddenField();
        public HiddenField getOp() {
            return op;
        public void setOp(HiddenField hf) {
            this.op = hf;
        private HiddenField id = new HiddenField();
        public HiddenField getId() {
            return id;
        public void setId(HiddenField hf) {
            this.id = hf;
        private Table table1 = new Table();
        public Table getTable1() {
            return table1;
        public void setTable1(Table t) {
            this.table1 = t;
        private TableRowGroup tableRowGroup1 = new TableRowGroup();
        public TableRowGroup getTableRowGroup1() {
            return tableRowGroup1;
        public void setTableRowGroup1(TableRowGroup trg) {
            this.tableRowGroup1 = trg;
        private CachedRowSetDataProvider tarefaDataProvider1 = new CachedRowSetDataProvider();
        public CachedRowSetDataProvider getTarefaDataProvider1() {
            return tarefaDataProvider1;
        public void setTarefaDataProvider1(CachedRowSetDataProvider crsdp) {
            this.tarefaDataProvider1 = crsdp;
        private TableColumn tableColumn1 = new TableColumn();
        public TableColumn getTableColumn1() {
            return tableColumn1;
        public void setTableColumn1(TableColumn tc) {
            this.tableColumn1 = tc;
        private TableColumn tableColumn2 = new TableColumn();
        public TableColumn getTableColumn2() {
            return tableColumn2;
        public void setTableColumn2(TableColumn tc) {
            this.tableColumn2 = tc;
        private StaticText staticText6 = new StaticText();
        public StaticText getStaticText6() {
            return staticText6;
        public void setStaticText6(StaticText st) {
            this.staticText6 = st;
        private TableColumn tableColumn5 = new TableColumn();
        public TableColumn getTableColumn5() {
            return tableColumn5;
        public void setTableColumn5(TableColumn tc) {
            this.tableColumn5 = tc;
        private StaticText staticText9 = new StaticText();
        public StaticText getStaticText9() {
            return staticText9;
        public void setStaticText9(StaticText st) {
            this.staticText9 = st;
        private TableColumn tableColumn6 = new TableColumn();
        public TableColumn getTableColumn6() {
            return tableColumn6;
        public void setTableColumn6(TableColumn tc) {
            this.tableColumn6 = tc;
        private StaticText staticText10 = new StaticText();
        public StaticText getStaticText10() {
            return staticText10;
        public void setStaticText10(StaticText st) {
            this.staticText10 = st;
        private TableColumn tableColumn7 = new TableColumn();
        public TableColumn getTableColumn7() {
            return tableColumn7;
        public void setTableColumn7(TableColumn tc) {
            this.tableColumn7 = tc;
        private StaticText staticText11 = new StaticText();
        public StaticText getStaticText11() {
            return staticText11;
        public void setStaticText11(StaticText st) {
            this.staticText11 = st;
        private Button button1 = new Button();
        public Button getButton1() {
            return button1;
        public void setButton1(Button b) {
            this.button1 = b;
        private TableColumn tableColumn8 = new TableColumn();
        public TableColumn getTableColumn8() {
            return tableColumn8;
        public void setTableColumn8(TableColumn tc) {
            this.tableColumn8 = tc;
        private Button button2 = new Button();
        public Button getButton2() {
            return button2;
        public void setButton2(Button b) {
            this.button2 = b;
        // </editor-fold>
         * <p>Construct a new Page bean instance.</p>
        public tarefa() {
         * <p>Return a reference to the scoped data bean.</p>
        protected SessionBean1 getSessionBean1() {
            return (SessionBean1)getBean("SessionBean1");
         * <p>Return a reference to the scoped data bean.</p>
        protected ApplicationBean1 getApplicationBean1() {
            return (ApplicationBean1)getBean("ApplicationBean1");
         * <p>Return a reference to the scoped data bean.</p>
        protected RequestBean1 getRequestBean1() {
            return (RequestBean1)getBean("RequestBean1");
         * <p>Callback method that is called whenever a page is navigated to,
         * either directly via a URL, or indirectly via page navigation.
         * Customize this method to acquire resources that will be needed
         * for event handlers and lifecycle methods, whether or not this
         * page is performing post back processing.</p>
         * <p>Note that, if the current request is a postback, the property
         * values of the components do <strong>not</strong> represent any
         * values submitted with this request.  Instead, they represent the
         * property values that were saved for this view when it was rendered.</p>
        public void init() {
            // Perform initializations inherited from our superclass
            super.init();
            // Perform application initialization that must complete
            // *before* managed components are initialized
            // TODO - add your own initialiation code here
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            // Initialize automatically managed components
            // *Note* - this logic should NOT be modified
            try {
                _init();
            } catch (Exception e) {
                log("tarefa Initialization Failure", e);
                throw e instanceof FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Perform application initialization that must complete
            // *after* managed components are initialized
            // TODO - add your own initialization code here
            initialForm();
         * <p>Callback method that is called after the component tree has been
         * restored, but before any event processing takes place.  This method
         * will <strong>only</strong> be called on a postback request that
         * is processing a form submit.  Customize this method to allocate
         * resources that will be required in your event handlers.</p>
        public void preprocess() {
         * <p>Callback method that is called just before rendering takes place.
         * This method will <strong>only</strong> be called for the page that
         * will actually be rendered (and not, for example, on a page that
         * handled a postback and then navigated to a different page).  Customize
         * this method to allocate resources that will be required for rendering
         * this page.</p>
        public void prerender() {
         * <p>Callback method that is called after rendering is completed for
         * this request, if <code>init()</code> was called (regardless of whether
         * or not this was the page that was actually rendered).  Customize this
         * method to release resources acquired in the <code>init()</code>,
         * <code>preprocess()</code>, or <code>prerender()</code> methods (or
         * acquired during execution of an event handler).</p>
        public void destroy() {
            tarefaDataProvider1.close();
            tarefaDataProvider.close();
            serieDataProvider.close();
            disciplinaDataProvider.close();
         public void lockForm(){
            dtTarefa.setDisabled(true);
            cmbSerie.setDisabled(true);
            cmbDisciplina.setDisabled(true);
            txtDesc.setDisabled(true);       
        public void unlockForm(){
            dtTarefa.setDisabled(false);
            cmbSerie.setDisabled(false);
            cmbDisciplina.setDisabled(false);
            txtDesc.setDisabled(false);    
        public void initialForm(){
            lockForm();
            java.util.Calendar cal = new GregorianCalendar(2006,1,1);
            Date dt = new Date();
            dt.setTime(cal.getTimeInMillis());
            dtTarefa.setMinDate(dt);
            btnNovo.setDisabled(false);
            btnEditar.setDisabled(true);
            btnAtualizar.setDisabled(true);
            btnCancelar.setDisabled(true);     
        public void novoTarefa(){
            unlockForm();
            btnAtualizar.setDisabled(false);
            btnNovo.setDisabled(true);
            btnEditar.setDisabled(true);
            btnCancelar.setDisabled(false);               
        public String button1_action() {
            try{
                RowKey rk = tableRowGroup1.getRowKey();
                if(rk!=null){
                    tarefaDataProvider.removeRow(rk);
                    tarefaDataProvider.commitChanges();
                    tarefaDataProvider.refresh();
            }catch(Exception e){
                log("Erro ao deletar", e);
                error(e.getMessage());
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao deletar");
            return null;
        public String btnNovo_action() {
            op.setText("1");  
            novaTarefa();
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao clicar em NOVO");
            return null;
         public void novaTarefa(){
            unlockForm();
            btnAtualizar.setDisabled(false);
            btnNovo.setDisabled(true);
            btnEditar.setDisabled(true);
            btnCancelar.setDisabled(false);       
        public String btnEditar_action() {
            unlockForm();
            op.setText("2");
            btnEditar.setDisabled(true);
            btnAtualizar.setDisabled(false);
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao clicar em NOVO");
            return null;
        public String button2_action() {
            try{
                RowKey rk = tableRowGroup1.getRowKey();
                if(rk!=null){
                    tarefaDataProvider.setCursorRow(rk);
                    id.setText(tarefaDataProvider.getValue("tarefa.id"));
                    dtTarefa.setValue(tarefaDataProvider.getValue("tarefa.data"));
                    cmbSerie.setSelected(tarefaDataProvider.getValue("tarefa.idserie"));
                    cmbDisciplina.setSelected(tarefaDataProvider.getValue("tarefa.iddisciplina"));
                    txtDesc.setText(tarefaDataProvider.getValue("tarefa.descricao"));
                    lockForm();
                    btnEditar.setDisabled(false);
                    btnNovo.setDisabled(true);
                    btnAtualizar.setDisabled(true);
            }catch(Exception e){
                log("Erro ao deletar", e);
                error(e.getMessage());
            try{
            this.getExternalContext().redirect("tarefa.jsp");
            }catch(Exception e){
                log("Erro ao setar FORM");
            return null;
        public void novoRegistro(){
            Integer id=new Integer(0);
            try {
                RowKey rk = tarefaDataProvider.appendRow();
                tarefaDataProvider.setCursorRow(rk);
                tarefaDataProvider.setValue("tarefa.data",dtTarefa.getSelectedDate());
                tarefaDataProvider.setValue("tarefa.idserie",cmbSerie.getSelected());
                tarefaDataProvider.setValue("tarefa.iddisciplina",cmbDisciplina.getSelected());
                tarefaDataProvider.setValue("tarefa.descricao",txtDesc.getText());
                tarefaDataProvider.commitChanges();
                tarefaDataProvider.refresh();
            } catch (Exception ex) {
                log("Error Description", ex);
                error(ex.getMessage());
        public void atualizaRegistro(){
            try{
                RowKey rk = tarefaDataProvider.findFirst("tarefa.id",id.getText());
                tarefaDataProvider.setCursorRow(rk);
                tarefaDataProvider.setValue("tarefa.data",dtTarefa.getSelectedDate());
                tarefaDataProvider.setValue("tarefa.idserie",cmbSerie.getSelected());
                tarefaDataProvider.setValue("tarefa.iddisciplina",cmbDisciplina.getSelected());
                tarefaDataProvider.setValue("tarefa.descricao",txtDesc.getText());
                tarefaDataProvider.commitChanges();
                tarefaDataProvider.refresh();
            }catch(Exception ex){
                log("Error ao atualizar Noticia",ex);
                error(ex.getMessage());
        public String btnAtualizar_action() {
            if(op.get                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

  • Multiselection issue in advanced table on OAF page

    Hi,
    I have a advanced table on OA Page. To this advanced table, I had added the multi selection table action.
    To the multiselect, i have attached a View Instance and a view attribute.
    There is text input field in the advanced table. If user makes changes to it, an event "updateDate" fires.
    In CO:
    if(event.equals("updateDate")){
    System.out.println("A");
    String rowReference =
    pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE);
    Serializable[] param = {rowReference} ;
    am.invokeMethod("DetailsCheckBox", param);
    In AM:
    public void DetailsCheckBox(String rowReference) {
    System.out.println("B");
    oracle.jbo.Row row = findRowByRef(rowReference);
    DetailsVOImpl ivo =
    (DetailsVOImpl) findViewObject("DetailsVO1");
    String chkbox = (String)row.getAttribute("Multiselect");
    System.out.println("multiselect original: "+chkbox);
    if ((chkbox == null)||(chkbox.equals("N"))){
    ivo.setCurrentRow(row);
    row.setAttribute("Multiselect","Y");
    String chkbox1 = (String)row.getAttribute("Multiselect");
    System.out.println("multiselect : "+chkbox1);
    // ivo.reset();
    The issue is that if there are 5 rows getting displayed in the advanced table and i make changes to any of first 4 rows, the checkbox gets checked on page but if i make changes to last row the checkbox is not checked on page, even though the statement String chkbox1 = (String)row.getAttribute("Multiselect"); returns 'Y' in AM.
    Please help. Its urgent.

    Hi Gyan,
    Multiselect attribute is checked for Always Updateable.
    and have done sop for other attributes also, dey are coming for 5th row only.
    also if my VO query returns 27 rows, and advanced table displays 10 rows at a time then pnly 10th row gives this issue. It works fine even for 20th row.
    Observed one more thing, if i first update any other row and then the last row, it works fine.

  • Problem while update and insert data in table

    Hi All,
    I have problem while save line data....
    I have an advance table.I take remove and duplicate line in message choice of advance table action layout.
    Also there is one temp table to save Po number data which is populated in advance table according to PO Number search.And In Temp table record number is column which use
    to insert and update data in temp table which mention in procedure
    Problem is that : When i Searched PO Number and duplicate line and save that record it insert a new line always and it insert record according to duplicate line no .It not update previous line,insert new line always according to duplicate line no.
    Please tell me what is solution?
    Thanks,
    Neil

    Hi,
    I am not cleared with your requirement.
    If possible send me the screenshots for the same.
    --Sushant
    [email protected]

  • Thinlet table in Pocket PC

    Trying to determine what cell is clicked in a thinlet table. I'm aware that a cell is not selectable in the table. I tried using the setMethod to pass a thinlet cell java file that permits access to the XML file.
    Here's a sample:
    cell = thinlet.create("cell");
    thinlet.setString(cell, "name", String.valueOf(1) + String.valueOf(i));   
    thinlet.setString(cell, "text", "some data");
    thinlet.add(row, cell);               
    thinlet.setMethod(table, "action", "getSelectedCell(cell)", row,thinlet);            Actually, I would like to get the column if the cell can't be determine from a mouse click. Is this possible if the mouse click event is overriden?
    I'm able to use place the method call in the action attribute of the
    XML file, i.e. action="getSelectedCell(item)", which of course returns
    the row. However, if is possible to determine what cell is clicked in a table?
    any help is appreciated
    Edited by: wrappingduke on Apr 18, 2008 6:04 PM

    In an attempt to determine what cell was clicked, the processEvent of the thinlet object has been overriden to capture mouse events. From the mouse event, I've tried using the xy coordinates to determine what cell is clicked. Here's an example.
    protected void processEvent(AWTEvent e)
    if( e instanceof MouseEvent)
    MouseListener listener;
    MouseEvent me = new MouseEvent(this, e.x, e.y....);
    listener.mouseClicked(me);
    super.processEvent(e);
    // override mouse event
    public void mouseEvent(MouseEvent evt)
    Point pnt = evt.getPoint();
    Object row = thinlet.getSelectedItem();
    Object cells[] = thinlet.getItems(row);
    }In the mouseClicked event, I've tried using the x-coordinate to determine the column the cell is in. However, in thinlet it appears that the width of a column can't be retrieved since there's no corresponding height property and the height and width have to both be specified in order to use either????
    If I able to get the width a column, this should help determine the column a cell is in.
    any help is appreciated.
    Edited by: wrappingduke on Apr 30, 2008 7:59 AM

Maybe you are looking for