Can�t manage to select a row in a t:dataTable

I use a tomahawk dataTable to list a collection of objects called �dmex� in dmexTable.jsp
When I select one row to edit details in the next page �dmexDetails.jsp� I systematically get the last entries of my table.
In debug mode I could find out that JSF/MyFaces iterates through the whole list instead of selecting only the entry I clicked on.
Here is my code of dmexTable.jsp where #{dmexTable} is a backingBean of dmexTable.jsp and #{dmexBean} the backingBean of dmexDetails.jsp
<h:form id="formDmexTable">
<t:dataTable id="dmexTable"
          cellspacing="3"
          cellpadding="3"
          styleClass="orders"
          headerClass="ordersHeader"
          rowClasses="evenRow,oddrow"
          var="rowDmex"
          value="#{dmexTable.dmexList}"
          preserveDataModel="true" >
<h:column>
<f:facet name="header">
     <h:outputText value="Id" id="columnDmexId" />
     </f:facet>
     <h:outputText value="#{rowDmex.dmexId}" id="rowDmexId" />
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="#{msgsDmex.application}" id="columnApps" />
</f:facet>
<t:commandLink id="selectDmexApps" action="go_to_dmexDetails" immediate="true">
<h:outputText value="#{rowDmex.application}"
id="rowApplication" />
<t:updateActionListener property="#{dmexBean.dmexId}"
value="#{rowDmex.dmexId}" />
</t:commandLink>
</h:column>
� some others properties in other columns �
</t:dataTable>
</h:form>
Herebelow the code of my RequestScope ManagedBean #{dmexTable} containing a property dmexList and a hibernate Class called �dmexManager� that gives access to the dataBase :
public class DmexTable{
private ArrayList dmexList ;
private bsa.integration.service.DmexManager dmexManager;
public ArrayList getDmexList() {
dmexList = (ArrayList) dmexManager.findPoolList(new Dmex())
return dmexList;
public void setDmexList(ArrayList dmexList) {
     this.dmexList = dmexList;
SOFAR EVRYTHING WORKS FINE ; I can list my dmex in the dataTable dmexTable !
Here below is the code of my JSP view called �dmexDetails.jsp� where #{dmexBean}is still the backingBean of the view :
<h:form id="formDmexIdentification">
<t:saveState value="#{dmexBean.dmexId}" />
<h:panelGrid columns="2">
<h:outputText value="id" styleClass="sorti" />
     <h:outputText value="#{dmexBean.dmex.dmexId}"styleClass="sorti"/>
     <h:outputText value="#{msgsDmex.application}" styleClass="sorti" />
<h:inputText value="#{dmexBean.dmex.application}"
size="6" styleClass="ent" required="true" id="inputApplication" />
<h:message for="inputApplication" styleClass="mess" />
Herebelow the code of my RequestScope ManagedBean #{dmexDetails} containing the �t:saveState� property dmexId and the hibernate Class �dmexManager� that gives access to the dataBase :
public class DmexBean {
private int dmexId ;
public int getDmexId() {
     return dmexId;
// this is the method that JSF/MyFaces iterates through when clicking on one commandLink of the Table !!!
public void setDmexId(int _rowDmexId) {
if (_rowDmexId > 0)
dmex = getSimpleDmex(_rowDmexId);
if (dmex == null) {
return;
private Dmex getSimpleDmex(int _id) {
dmex = (Dmex)dmexManager.findOneId(new Dmex(),_id);
return dmex;
I can�t figure out why clicking on the command Link JSF/MyFaces does not simply send back the selected dmexId !
May someone give a hint ? I have nomore Idea since my implementation seems exactly similar to the MyFace example I used ..

Hello !
Okay, I could see the message you logged a few days before about a similar issue you identified as a Bug ... then after upgrading MyFaces to Core 1.1.3 + Tomahowak 1.1.2 I could make my test case work.
The further issue I am facing now is that in my Detail view dmexDetails.jsp when I try to POST the form I got for each inputText field the following message :
"inputText field id : Error during model data update "
I "googled" on it without success ... I am still investigating !
regards
lsalse

Similar Messages

  • Add selected table row value to PageFlowScope so I can access in taskflow

    Hi all,
    Running into a problem getting a value from a selected ADF table row to a taskflow that is displayed as an inline popup. Here's the scenario. I have a view which displays a table. When I click on an edit btn I display my taskflow as an inline popup. What I would like to do is take the currently selected table row, pull off lets say the row name value and pass it to my taskflow for display. I've tried settting this value inside a mbean when I click the edit btn using:
            AdfFacesContext.getCurrentInstance().getPageFlowScope().put("editTargetNameSource", targetName);
            String tmpClear = (String) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("editTargetNameSource");Which seems to get set but when I attempt to grab this value using EL inside my taskflow jspx page it looks to not be set.
    <af:outputLabel value="Selected Row" id="ol1"/><af:outputText value="#{pageFlowScope.editTargetNameSource}"It seems like pageFlowScope for my popup taskflow != pageFlowScope for the page my table lives in. I've tried setting this as a input page param but I have a feeling I'm missing something. I'd like to be able to set this value inside my bean when a user clicks the edit btn and then display this value in my taskflow popup.
    Any help is appreciated,
    -Wraith

    Thanks for the links Timo. I still must be missing something here. In the vids you linked it looked like he was using regions to pass params from main page to a taskflow; setting a param on child taskflow (causes param to be required when dragging into main page). So I think I understand I add an expected param to my taskflow which somehow will be set by my main page. The part I'm missing is from my main page how can I get the selected table row value and set it in the expected pageflowscope param that my taskflow is expecting?
    I've tried several things:
    1) Using managed bean associated with my main page; setting param inside the bean on main page btn click and then try accessing this mbean param (couldn't access this value as different pageflowscope I believe)
    2) Programmatically setting PageFlowScope as I linked in previous post.
    3) using setPropertyListener I can set a static value setting value in pageflowscope.start and then inside adfc.config for the task set start value to another value expected by the taskflow page. This seemed to work but I can't figure out how to do the programmatic version of this using the currently selected row and its value.
    One who seems to be missing something,
    -Wraith

  • Select single row in ALV grid

    ABAPer's ,
    Does anyone can guide me to select single row only in ALV grid , without OO.

    Hello,
    I did not get u.
    But check the below code it may help u.
    tables: mara.
    TYPE-POOLS: SLIS.
    data:repid like sy-repid.
    data: itb type mara occurs 0 with header line,
    IT_FIELDCAT TYPE STANDARD TABLE OF SLIS_FIELDCAT_ALV WITH HEADER LINE,
    IT_LAYOUT TYPE SLIS_LAYOUT_ALV,
    ITB1 TYPE MAKT OCCURS 0 WITH HEADER LINE.
    selection-screen begin of block b.
    parameters: p_matnr type matnr.
    selection-screen end of block b.
    select * from mara into table itb where matnr = p_matnr.
    SELECT * FROM MAKT INTO TABLE ITB1 WHERE MATNR = P_MATNR.
    repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK              = ' '
      I_BYPASSING_BUFFER             =
      I_BUFFER_ACTIVE                = ' '
       I_CALLBACK_PROGRAM             = repid
      I_CALLBACK_PF_STATUS_SET       = ' '
       I_CALLBACK_USER_COMMAND        = 'HANDLE_USER_COMMAND'
       I_STRUCTURE_NAME               = 'MARA'
       IS_LAYOUT                      = IT_LAYOUT
       IT_FIELDCAT                    = IT_FIELDCAT[]
      IT_EXCLUDING                   =
      IT_SPECIAL_GROUPS              =
      IT_SORT                        =
      IT_FILTER                      =
      IS_SEL_HIDE                    =
      I_DEFAULT                      = 'X'
      I_SAVE                         = ' '
      IS_VARIANT                     =
      IT_EVENTS                      =
      IT_EVENT_EXIT                  =
      IS_PRINT                       =
      IS_REPREP_ID                   =
      I_SCREEN_START_COLUMN          = 0
      I_SCREEN_START_LINE            = 0
      I_SCREEN_END_COLUMN            = 0
      I_SCREEN_END_LINE              = 0
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER        =
      ES_EXIT_CAUSED_BY_USER         =
      TABLES
        t_outtab                       = itb
    EXCEPTIONS
      PROGRAM_ERROR                  = 1
      OTHERS                         = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM HANDLE_USER_COMMAND USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE
    SLIS_SELFIELD.
    CASE R_UCOMM.
    WHEN '&IC1'.
    CLEAR IT_FIELDCAT[].
    IF RS_SELFIELD-FIELDNAME = 'MATNR'.
    READ TABLE ITB1 INDEX RS_SELFIELD-TABINDEX.
    WRITE: / ITB1-MAKTX.
    ENDIF.
    ENDCASE.
    ENDFORM. "HANDLE_USER_COMMAND
    Regards

  • How can I display "detailStamp" facet selectively for rows in a table ?

    Hi,
    My JDEV version is Studio Edition Version 11.1.1.5.0
    I am trying to display "detailStamp" facet selectively .
    If I read api in link below
    http://docs.oracle.com/cd/E26098_01/apirefs.1112/e17488/oracle/adf/view/rich/component/rich/data/RichTable.html
    Use the "detailStamp" facet on the Table to include a collapsable content area for each table row. Please note that the height of the open detail area will be a set height based on the height of the detailStamp component. Adding a component that changes in height (like showDetail or panelBox) will by default produce strange results when the detailStamp component's height changes.
    Detail Stamp can be selectively displayed for rows in the table by EL binding the "rendered" attribute of the "detailStamp" facet to "true" or "false". The EL binding can contain references to the table "var" attribute since during rendering it will be executed in the context of the row. Disclosure icon is displayed only for rows which have rendered="true".
    I can see that i can achieve it by setting rendered property for that facet. BUT this property is not available in Studio Edition Version 11.1.1.5.0

    Hi Frank.
    Thanks for your quick reply .
    But I am using Studio Edition Version 11.1.1.5.0 . In this version the property RENDERED of f:facet name="detailStamp" is NOT allowed.
    Edited by: user13764942 on Feb 7, 2013 5:48 AM
    Put in another way , I want to render the "detailStamp" facet selectively for rows , so for that I need the RENDERED property of "detailStamp" facet. This property is ONLY available in Jdev version 11.2 . I am using Jdev 11.1.1.5.0 so I need some alternative to RENDERED property as this property is NOT available in Jdev 11.1.1.5.0.
    Please suggest some way to achieve this behaviour of displaying "detailStamp" facet selectively ....
    Thanks!
    Edited by: Mangpal Singh on Feb 7, 2013 11:57 PM

  • How can I get the selected rows from two ALV grids at the same time?

    I have a program that uses two ALV grids in one dialog screen. I'm using the OO ALV model (SALV* classes).
    The user can select any number of rows from each grid. Then, when a toolbar pushbutton is pressed, I'd have to retrieve the selected rows from both grids and start some processing with these rows.
    It is no problem to assign event handlers to both grids, and use the CL_SALV_TABLE->GET_SELECTIONS and CL_SALV_SELECTIONS->GET_SELECTED_ROWS methods to find out which rows were marked by the user. Trouble is, this only works when I raise an event in each grid separately, for instance via an own function that I added to the grid's toolbar. So, I can only see the selected rows of the same grid where such an event was raised.
    If I try to do this in the PBO of the dialog screen (that contains the two grids), the result of CL_SALV_SELECTIONS->GET_SELECTED_ROWS will be empty, as the program does not recognize the marked entries in the grids. Also, an event for grid1 does not see the selected rows from grid2 either.
    As it is right now, I can have an own button in both grid's toolbar, select the rows, click on the extra button in each grid (this will tell me what entries were selected per grid). Then, I'd have to click on a third button (the one in the dialog screen's toolbar), and process the selected rows from both grids.
    How can I select the rows, then click on just one button, and process the marked entries from both grids?
    Is it somehow possible to raise an event belonging to each grid programmatically, so that then the corresponding CL_SALV_SELECTIONS->GET_SELECTED_ROWS will work?
    Thanks.

    Hello Tamas ,
    If I try to do this in the PBO of the dialog screen (that contains the two grids), the result of CL_SALV_SELECTIONS->GET_SELECTED_ROWS will be empty, as the program does not recognize the marked entries in the grids. Also, an event for grid1 does not see the selected rows from grid2 either.--->
    is it possible to  have a check box in each grid  & get the selected lines in PAI of the screen ?
    regards
    prabhu

  • How can I select the row after a cfgrid refresh?

    I have a form that is bound to a cfgrid.  The grid is populated from a database.  When you navigate in the grid the data displayed in the form changes to match the selected row.  I can edit the data in the form and update the database.  After updating the data I refresh the cfgrid, which then displays the updated data.
    Unfortunately the cfgrid always highlights the first row, row 0, after a refresh.  I want to highlight the same row that was highlighted when the data was edited and saved.  Can anyone advise as to how I can do that?
    I have tried setting a listener when the grid is initiated that responds whenever the store is refreshed and triggers the function refreshSelection():
    g.getStore().on('load', refreshSelection) ;
    Before the form data is saved, the row number is stored in selectedRow[0].  When the grid is refreshed, refreshSelection is run:
    function refreshSelection() {
    if (0 >= selectedRecords.length)
         return;
    alert('Selected row is Row ' + selectedRecords[0] ) ;
    g.getSelectionModel().selectRow(selectedRecords[0]) ;
    selectedRecords[0] = 0 ;
    The alert shows the correct row number each time, but highlighting the last row viewed works intermittently, and only if the alert line is active.  If I comment out the alert, this fails every time, with row 0 being highlighted.  selectedRecords[0] is reset to 0 after the attempt to select the row so that navigation through the grid, such as choosing "Next Page," will properly highlight the first row of the page rather than the last row number that was edited.
    -Rick

    Massage?
    Why not ask the masseuse who gave you the massage?

  • How can I limit the number of rows returned by a select stat

    How can I limit the number of rows returned by a select
    statement. I have a query where I return the number of stores
    that are located in a given area.. I only want to return the
    first twenty-five stores. In some instances there may be over
    200 stores in a given location.
    I know is SQL 7 that I can set the pagesize to be 25....
    Anything similiar in Oracle 8i?
    null

    Debbie (guest) wrote:
    : Chad Nale (guest) wrote:
    : : How can I limit the number of rows returned by a select
    : : statement. I have a query where I return the number of
    : stores
    : : that are located in a given area.. I only want to return the
    : : first twenty-five stores. In some instances there may be
    : over
    : : 200 stores in a given location.
    : : I know is SQL 7 that I can set the pagesize to be 25....
    : : Anything similiar in Oracle 8i?
    : If you are in Sql*Plus, you could add the statement
    : WHERE rownum <= 25
    : Used together with an appropriate ORDER BY you
    : could get the first 25 stores.
    Watch out. ROWNUM is run before ORDER BY so this would only
    order the 25 selected
    null

  • Can i get a number of rows in the select list??

    Hello~
    I am studying the "oracle call interface". but i don't know much about oci.
    Anyway i want to know that how can i get a number of rows.
    for example, there is a source code of the number of colums in the select list.
    The following is a list of DB(example)
    /*DB table*/
    ID NAME CODE ID
    1 A 1 A
    2 B 2 B
    /*source*/
    err = OCIAttrGet ((dvoid *) stmhp, (ub4)OCI_HTYPE_STMT, (dvoid*)
    &parmcnt, (ub4 *) 0, (ub4)OCI_ATTR_PARAM_COUNT, errhp);
    /*result*/
    The Column is 4. (ID, NAME, CODE, ID)
    So, i think that the row is 3 (ID, 1, 2) in the DB table.
    Simply, Can i get a number of rows in the select list??
    for example,
    err = OCIAttrGet ((dvoid *) stmhp, (ub4)OCI_HTYPE_STMT, (dvoid*)
    &parmcnt, (ub4 *) 0, (ub4)OCI_ATTR_RAW_COUNT, errhp);
    I'm trying to get the number of row count. but i can't find.
    Please, could you let me know that how can i get the number of row count.
    Thank you.

    Thank you for your reply.
    we are tested the source code by reply.
    The following is the test source code.
    /*source code*/
    strcpy (szStatement, "SELECT * from DB_TABLE");
    OCIStmtPrepare(gpOCIReadStmHandle, gpOCIErrHandle, szStatement,
         strlen(szStatement), OCI_NTV_SYNTAX, OCI_DEFAULT);
    OCIStmtExecute(gpOCISvcHandle, gpOCIReadStmHandle, gpOCIErrHandle,
         0, 0, 0, 0, OCI_DEFAULT);
    /* get a number of rows count , Reply : prajithparan*/
    OCIAttrGet((dvoid *)gpOCIReadStmHandle, OCI_HTYPE_STMT, (dvoid *)&nRowCount, NULL, OCI_ATTR_ROW_COUNT, gpOCIErrHandle))
    But There is a problem of the result value.
    The result value is 0. It's mean that the row count is 0. and then we are using the all of fuction is succeed.(return value)
    I don't know what is problem. Please let me know about the problem and solution.
    Thank you.

  • If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

    If I add artwork by dragging a jpg to the artwork area after selecting several rows, in some instances a single icon is created in the flipper;  in others one is created for each song. Why? How can I get one image per album every time?

  • Can I limit the number of rows returned on a Select?

    Can I limit the number of rows returned on a Select statement? I would be using JDBC in a Java program.

    Use Java prepared statements with the equivalent of this SQL*plus script:
    VARIABLE n number
    EXEC :n := 3;
    SELECT rownum FROM all_objects WHERE rownum <= :n;
        ROWNUM
             1
             2
             3
    EXEC :n := 5;
    SELECT rownum FROM all_objects WHERE rownum <= :n;
        ROWNUM
             1
             2
             3
             4
             5

  • How can i use the highlight row to select the row on a report

    The row is highlighted as I move the mouse how can I select this row without having to make a column a text link.
    thanks in advance

    Hi
    Try this out.
    Create or alter a report template. In the 'Before Each Row' section paste:
    <tr onMouseOver="cOn(this);" onMouseOut="cOut(this);">
    In the 'After Each Row' section paste:
    </tr>
    In the report page definition click on the page attributes and navigate to the HTML Header section. Paste the following script into this section:
    </script>
    <script language="JavaScript1.2">
    function cOn(td){
    if(document.getElementById||(document.all && !(document.getElementById))){
    td.style.backgroundColor="#cccccc";
    function cOut(td){
    if(document.getElementById||(document.all && !(document.getElementById))){
    td.style.backgroundColor="#ffffff";
    </script>
    In the report region navigate to the 'Layout and Pagination' section and select the report template you altered above.
    Now the report row will get highlighted when you mouse over. If you want to change colors, edit the color attributes in the javascript.
    Regards
    Kiran Akkiraju

  • Can't get Lightroom Color Management to select custom profiles

    I can't get Lightroom Color Management to select custom profiles.
    - I select "other" in Profile,
    - a pop-up box shows me numerous profiles to choose from
    - I select a profile and the selection is highlighted
    - I press "OK" and the pop-up box disappears
    - but if I go back to the "Profile" selection line, only "Managed by Printer" is available.
    What's wrong here?
    Is the inability to select a profile the reason that prints from Lightroom look way to dark when I print them?
    Vick

    Oh, I'm on Windows, XP with SP2.
    The profiles are in C:\WINDOWS\system32\spool\drivers\color
    I used the .exe that was provided by Epson for installing the drivers.
    Nothing fancy, nothing different.
    For Lightroom, I installed it off CD, and got the 1.3.1 update off their Adobe site.
    Any clues there, to solve the puzzle?
    Vick

  • How can i select some row from multiple row in the same group of data

    I want to select some row from multiple row in the same group of data.
    ColumnA        
    Column B
    1                  OK
    1                   NG
    2                   NG
    2                          NG
    3                          OK
    3                          OK
    I want the row of group of
    ColumnA if  ColumnB contain even 'NG'
    row , select only one row which  Column B = 'NG'
    the result i want = 
    ColumnA         Column B
    1                         NG
    2                   NG
    3                          OK
    Thank you

    That's some awful explanation, but I think this is what you were driving at:
    DECLARE @forumTable TABLE (a INT, b CHAR(2))
    INSERT INTO @forumTable (a, b)
    VALUES
    (1, 'OK'),(1, 'NG'),
    (2, 'NG'),(2, 'NG'),
    (3, 'OK'),(3, 'OK')
    SELECT f.a, MIN(COALESCE(f2.b,f.b)) AS b
    FROM @forumTable f
    LEFT OUTER JOIN @forumTable f2
    ON f.a = f2.a
    AND f.b <> f2.b
    GROUP BY f.a

  • Selection of rows in ALV grid (class CL_GRID_CATSXT)

    Hi all,
    The CATS transaction CATS_APPR_LITE is using the class CL_GRID_CATSXT, method GET_SELECTED_ROWS, to retrieve selected rows in the ALV report.
    The user/manager selects these rows to approve the work hours registered by his subordinates. He can only select and approve those rows that have been fully expanded, meaning he cannot select and approve total lines. (If he tries to do so, nothing happens).
    I have created a layout that shows only total lines per employee. Using this layout the manager should be able to select the total line for a particular employee and press the "Approve" button. In this way, I need to get a hold of the rows contained in the total line, meaning I need the row numbers of the actual rows which have been added up in the total line.
    Does anyone know how to do this...? As mentioned earlier, the CATS_APPR_LITE transaction is using class CL_GRID_CATSXT, method GET_SELECTED_ROWS.
    All helpful answers will be rewarded!
    Best regards,
    MV

    I guess method GET_SELECTED_ROWS returns the total lines when they are selected ?
    if so, you just have to do a LOOP on your internal table having same key fields as selected total line

  • H:datatable..select multiple rows

    Hi all, i'm trying to select multiple rows but couldn't do it.. can you please help me to solve this trouble?
    Here the code..
    kbankMainView.jsp
    function doCount() {
              button = document.getElementById('formProcedurelist:buttonCount');
              button.click();
    <h:commandButton id="buttonCount" style="visibility:hidden" action="#{MainViewBean.getSelectedItems}"></h:commandButton>
    <h:dataTable id="tableProcedurelist" value="#{MainViewBean.procedureList}" rendered="#{!empty MainViewBean.procedureList}" var="procedure" border="1" headerClass="heading" columnClasses="col0,col1,col2,col3,col4,col5">
                                <h:column>
                                     <f:facet name="header">
                                       <f:verbatim>Sel.</f:verbatim>
                                  </f:facet>
                                     <h:selectBooleanCheckbox value="#{MainViewBean.selectedIds[procedure.idProcedura]}" style="cursor:pointer" onclick="javascript:doCount()"/>
                                </h:column>Here my bean..
    MainViewBean
    private List<TKbankProcedure> selectedProcedureList;
    private Map<Integer, Boolean> selectedIds = new HashMap<Integer, Boolean>();
    private ArrayList<TKbankProcedure> procedureList;
    public void getSelectedItems() {
             // Get selected items.
             selectedProcedureList = new ArrayList<TKbankProcedure>();
            for (TKbankProcedure procedure : procedureList) {
                if (selectedIds.get(procedure.getIdProcedura()).booleanValue()) {
                     selectedProcedureList.add(procedure);
                    selectedIds.remove(procedure.getIdProcedura()); // Reset
            System.out.println("number sel. items = " + selectedProcedureList.size());
        }and here my faces-config.xml:
    <managed-property>
                   <property-name>selectedIds</property-name>
                   <property-class>java.util.Map</property-class>
                   <map-entries>
                        <key-class>java.lang.Integer</key-class>
                        <value-class>java.lang.Boolean</value-class>
                   </map-entries>
              </managed-property>
              <managed-property>
                   <property-name>selectedProcedureList</property-name>
                   <property-class>java.util.List</property-class>
                   <list-entries>
                        <value-class>databaseKbank.TKbankProcedure</value-class>
                   </list-entries>
              </managed-property>
              <managed-property>
                   <property-name>procedureList</property-name>
                   <property-class>java.util.ArrayList</property-class>
                   <list-entries>
                        <value-class>databaseKbank.TKbankProcedure</value-class>
                   </list-entries>
              </managed-property>I can't understand why returns me 0 elements selected..i really hope in your help!
    However, thanks BalusC for the help you gave me in the other post!!
    Edited by: emergencyDeveloper on Dec 22, 2008 7:52 AM

    BalusC, i've removed entries and seemed to work..but still doesn't!
    Returns me these Exceptions:
    ERROR [InvokeApplicationPhase] #{MainViewBean.getSelectedItems}: javax.faces.el.EvaluationException: java.lang.NullPointerException
    javax.faces.FacesException: #{MainViewBean.getSelectedItems}: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         ... 26 more
    Caused by: java.lang.NullPointerException
         at m2u_kbank.MainViewBean.getSelectedItems(MainViewBean.java:251)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 27 more
    11:32:37,698 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
    javax.faces.FacesException: #{MainViewBean.getSelectedItems}: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:78)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:130)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
         ... 26 more
    Caused by: java.lang.NullPointerException
         at m2u_kbank.MainViewBean.getSelectedItems(MainViewBean.java:251)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
         ... 27 moreCan't found data in procedureList ArrayList, i think error is there..
    Bean:
    public void getSelectedItems() {
             // Get selected items.
             selectedProcedureList = new ArrayList<TKbankProcedure>();
             Iterator it = procedureList.iterator();
            while (it.hasNext()) {
                 TKbankProcedure procedure = (TKbankProcedure)it.next();
                if (selectedIds.get(procedure.getIdProcedura()).booleanValue()) {
                     selectedProcedureList.add(procedure);
                    selectedIds.remove(procedure.getIdProcedura()); // Reset
        }Hope in your suggest!
    Thanks

Maybe you are looking for

  • My ipod 4 is stuck in recovery mode after trying to update to 8.0.2

    I started to download the new update this morning when it said i did not have enough memory for it, so i deleted a few things and re tried and this time it worked. However once it was done downloading it said i needed to install it, which when i pres

  • HP 7960 printing problem

    Until recently, my HP 7960 was printing just fine.  Then, about half way through the printing process, the pics started turning green.  I've cleaned the cartridges, replaced the cartridges using only new original HP ink cartridges, adjusted the print

  • Mac with a modem?

    We live in a really remote area that doesn't have access to high speed internet and are stuck with dial up for a few more years. Now my mom needs a new computer, are there any Macs that still have modems? In the online store they all seem to have bro

  • How to I get a flash memory card out of cd rom drive?

    I put a flash memory card in the cd drive

  • Operating system not working

    My iphone went black this afternoon when I was listening to a podcast. Now I get either a white or black (occassionaly with apple)screen even with trying to reset it. Itunes will not recognize it.