Bug : Datatable with disabled checkboxes

Hello,
I was able to implement a datatable with modify, delete links for each row.
The following code works:
<h:data_table id="DataTable" value="#{DataScreen.records}" var="record">
  <h:column>
     <f:facet name="header"><h:output_text value=" " /></f:facet>
     <h:command_link action="#{DataScreen.modifyAction}">
       <h:output_text value="#{DataScreen.modifyLabel" />
     </h:command_link>
     <f:facet name="footer"><h:output_text value=" " /></f:facet>
  </h:column>
  <h:column>
     <f:facet name="header"><h:output_text value=" " /></f:facet>
     <h:command_link action="#{DataScreen.deleteAction}">
       <h:output_text value="#{DataScreen.deleteLabel" />
     </h:command_link>
     <f:facet name="footer"><h:output_text value=" " /></f:facet>
  </h:column>
  <h:column>
     <f:facet name="header"><h:output_text value="Column1_Header" /></f:facet>
     <h:output_text value="#{DataScreen.column1}" />
     <f:facet name="footer"><h:output_text value=" " /></f:facet>
  </h:column>
  <h:column>
     <f:facet name="header"><h:output_text value="Column2_Header" /></f:facet>
     <h:output_text value="#{DataScreen.column2}" />
     <f:facet name="footer"><h:output_text value=" " /></f:facet>
  </h:column>
</h:data_table>But, I added a third column of type boolean, which is displayed as a disabled checkbox.
The table is displayed properly in the browser. But, when I click on the modify, delete links,
the corresponding action method (DataScreen.modifyAction() or DataScreen.deleteAction())
is not called.
<h:data_table id="DataTable" value="#{DataScreen.records}" var="record">
  <h:column>
     <f:facet name="header"><h:output_text value=" " /></f:facet>
     <h:command_link action="#{DataScreen.modifyAction}">
       <h:output_text value="#{DataScreen.modifyLabel" />
     </h:command_link>
     <f:facet name="footer"><h:output_text value=" " /></f:facet>
  </h:column>
  <h:column>
     <f:facet name="header"><h:output_text value=" " /></f:facet>
     <h:command_link action="#{DataScreen.deleteAction}">
       <h:output_text value="#{DataScreen.deleteLabel" />
     </h:command_link>
     <f:facet name="footer"><h:output_text value=" " /></f:facet>
  </h:column>
  <h:column>
     <f:facet name="header"><h:output_text value="Column1_Header" /></f:facet>
     <h:output_text value="#{DataScreen.column1}" />
     <f:facet name="footer"><h:output_text value=" " /></f:facet>
  </h:column>
  <h:column>
     <f:facet name="header"><h:output_text value="Column2_Header" /></f:facet>
     <h:output_text value="#{DataScreen.column2}" />
     <f:facet name="footer"><h:output_text value=" " /></f:facet>
  </h:column>
  <h:column>
     <f:facet name="header"><h:output_text value="Column3_Header" /></f:facet>
     <h:selectboolean_checkbox value="#{DataScreen.column3}" disabled="true" />
     <f:facet name="footer"><h:output_text value=" " /></f:facet>
  </h:column>
</h:data_table>I would be glad to know if there is any workaround.
Thanks,
Ajay

I forgot to mention that there is no error message in the log file. The same page is displayed again
after clicking on the Modify or Delete Link.
If I remove the third column (disabled checkbox), the modify and delete links work fine.

Similar Messages

  • Disable checkbox for some records in a datasource

    Hi,
    I am having a datatable which is binded to a datasource. There is a check box for every record in the list. Check on some records and click the submit button. After that i want the records i have already submitted to be disabled(checkbox disabled) when the page is refreshed. Is there any way to do it. plz help. Thanks in advance

    I would have a table field to store the submitted items, so that when you open the page you can compare with that field and use <html:checkbox disabled="true"....> for the submitted records. I think it will work out. Is this only just for that session?

  • How to get selected values from datatable with paging

    hi all
    here is my problem
    I have a datatable with paging size of 2 and first column as checkbox.
    now i have total record of 5 data,2 row on each page.
    Now i m selecting 1-1 row from each page.
    When i m clicking Command button to display all the selected row from different page ,i m only able to display values selected from last page.
    Through debug i can see that only last page value is set to TRUE OR FALSE and every other value is neither true nor false.
    any help???
    thanks

    <f:facet name="footer">
    <h:panelGroup binding="#{Page1.groupPanel1}" id="groupPanel1"
    style="display: block; text-align: center" styleClass="list-paging-footer">
    <h:commandButton action="#{Page1.dataTable1_firstPageAction}" binding="#{Page1.dataTable1FooterFirstButton}" id="dataTable1FooterFirstButton" image="resources/paging_first.gif" immediate="true"/>
    <h:commandButton action="# Page1.dataTable1_previousPageAction}" binding="#{Page1.dataTable1FooterPreviousButton}"
    id="dataTable1FooterPreviousButton" image="resources/paging_previous.gif" immediate="true"/>
    <h:commandButton action="#{Page1.dataTable1_nextPageAction}" binding="#{Page1.dataTable1FooterNextButton}"
    id="dataTable1FooterNextButton" image="resources/paging_next.gif" immediate="true"/>
    <h:commandButton action="#{Page1.dataTable1_lastPageAction}" binding="#{Page1.dataTable1FooterLastButton}"
    id="dataTable1FooterLastButton" image="resources/paging_last.gif" immediate="true"/>
    </h:panelGroup>
    </f:facet>
    Above is the code which i m using for paging which is command button
    Any problem with it.???
    thanks

  • ALV LIST with few checkboxes fields

    Hi everyone,
    I want to create an ALV with 2 fields that are checkboxes.
    I am succeeding to create an ALV with one checkbox field.
    How do we do in order to create an ALV with 2 checkboxes fields using ALV LIST ?
    I know that we have to specify in the layout of the ALV the name of the field we want it to be checkbox.
    For example :
      gs_layout-box_fieldname   = 'FLAG'.            
    But, how do we specify a second checkbox field ?
    Thanks.
    Regards.

    Slight modification to my earlier post. this is with 2 checkboxes.
    REPORT  ztest_alv_checkbox.
    TYPE-POOLS: slis.
    DATA: it_fcat TYPE  slis_t_fieldcat_alv,
          wa_cat LIKE LINE OF it_fcat.
    DATA: BEGIN OF it_alv OCCURS 0,
           check1(1),
           check2(1),
           carrid LIKE sflight-carrid,
           connid LIKE sflight-connid,
          END OF it_alv.
    DATA:it_events TYPE slis_t_event,
         wa_events LIKE LINE OF it_events.
    SELECT carrid
           connid
      FROM sflight
      INTO CORRESPONDING FIELDS OF TABLE it_alv
      UP TO 20 ROWS.
    wa_cat-fieldname = 'CHECK1'.
    wa_cat-input = 'X'.
    wa_cat-edit = 'X'.
    wa_cat-checkbox = 'X'.
    wa_cat-seltext_l = 'Check'.
    wa_cat-tabname = 'IT_ALV'.
    APPEND wa_cat TO it_fcat.
    CLEAR wa_cat.
    wa_cat-fieldname = 'CHECK2'.
    wa_cat-input = 'X'.
    wa_cat-edit = 'X'.
    wa_cat-checkbox = 'X'.
    wa_cat-seltext_l = 'Check'.
    wa_cat-tabname = 'IT_ALV'.
    APPEND wa_cat TO it_fcat.
    CLEAR wa_cat.
    wa_cat-fieldname = 'CARRID'.
    wa_cat-seltext_l = 'Carrid'.
    wa_cat-tabname = 'IT_ALV'.
    APPEND wa_cat TO it_fcat.
    CLEAR wa_cat.
    wa_cat-fieldname = 'CONNID'.
    wa_cat-seltext_l = 'Connid'.
    wa_cat-tabname = 'IT_ALV'.
    APPEND wa_cat TO it_fcat.
    wa_events-name = slis_ev_end_of_list.
    wa_events-form = 'MODIFY_LIST'.
    APPEND wa_events TO it_events.
    CLEAR wa_events.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        i_callback_program = sy-repid
        it_fieldcat        = it_fcat
        it_events          = it_events
      TABLES
        t_outtab           = it_alv
      EXCEPTIONS
        program_error      = 1
        OTHERS             = 2.
    IF sy-subrc NE 0.
    ENDIF.
    "After The list display i am modifying the report output
    "using the END_OF_LIST event of ALV
    "here conditionally i can make the cell input off
    *&      Form  MODIFY_LIST
    *       text
    FORM modify_list.
      DATA: l_lines TYPE i,
            l_index TYPE i.
      l_lines  = l_lines + 3.
      "because we have 3 lines extra occupied by lables.
      "if we have header,i mean top of page add the no.of lines
      "how many ever top of page have + 3 for labels.
      DESCRIBE TABLE it_alv LINES l_lines.
      l_lines  = l_lines + 3.
      "understnad this part alone.
      DO l_lines TIMES.
        IF sy-index GT 3.
          l_index = sy-index - 3.
          READ TABLE it_alv INDEX l_index.
          "this is my condition..
          IF sy-subrc = 0 .
            IF it_alv-carrid <> 'AA'.  "place your condition here.
              "accordingly you can disable the checkbox
              "use the below logic
              READ LINE sy-index INDEX sy-lsind.
              IF sy-subrc = 0.
                MODIFY LINE sy-index INDEX sy-lsind
                           FIELD FORMAT  it_alv-check1 INPUT OFF
                                         it_alv-check2 INPUT OFF.
              ENDIF.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDDO.
    ENDFORM.                    "MODIFY_LIST

  • Selecting a row of h:datatable with java

    hello
    Is there any way to set selected row in java bean for h:datatable ?
    in other words.
    how can I select a row of h:datatable with java ?
    regards

    If you have an UICommand component in a row, there are two ways:
    Bind h:dataTable to an UIData property in backing bean and use UIData#getRowData().
    Or wrap data list in an DataModel instance and use DataModel#getRowData().
    Alternatively you could also use f:setPropertyActionListener, but that isn't that efficient inside a h:dataTable.
    If you actually want to select rows using radiobuttons or checkboxes, then check the examples in this article: [http://balusc.blogspot.com/2006/06/using-datatables.html].

  • Disable checkbox in output report

    hi gurus
    I have display checkbox with tick in front of row in output at simple report program. My query is that I want to do disable checkbox whose are on tick in output screen.
    Please suggest me how can I do ?
    Best Regards.
    Pravin

    hey pravin    tryout this code and each time u select checkbox press f8 .
    REPORT  hide_unhide_box
    selection-SCREEN : begin of block b2 with frame.
      PARAMETERS: chk1 as CHECKBOX MODIF ID M1,
                  chk2 as CHECKBOX MODIF ID M1  DEFAULT 'X'.
    SELECTION-SCREEN:END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
       if  chk1 eq 'X'.
         loop AT SCREEN.
             if screen-group1 = 'M1'.
                screen-invisible = 1.
            endif.
            MODIFY SCREEN.
         ENDLOOP.
        endif.
    If usefull please reward with points .
    thanks and regards
    Anoop Gupta

  • Sun Convergence for user with disabled calendar service

    I have Communication Suite 7 installed with the "Sun Convergence" web interface.
    I create a test user with a disabled calendar service (service package platinum).
    The user test logged in in Sun Convergence web interface and I'm surprised,
    that the calendar for him is available.
    How can I disable the calendar view in Sun Convergence for user with disabled calendar service?
    Thank you.

    petrahu wrote:
    I'm getting the expected result with a service package for mail and calendar,
    e.g. mercury, and setting the status of calendar service to inactive or disabled.The behaviour you are seeing is both "expected" (i.e. as per the current Convergence design) and "unexpected" (i.e. doesn't make sense from a DA service provisioning perspective). It is a real "can-o-worms".
    The problem stems back to the "local.autoprovision" functionality provided at the Calendar Server end (enabled by default):
    http://docs.sun.com/app/docs/doc/819-4654/acajh?l=En&a=view
    "The first time a user logs in, the user's LDAP entry in updated to add calendar service, and a default calendar is created. The user entry must already exist in the LDAP directory. If it does not, an error is returned."
    So even if the calendar service has not been granted at the Delegated Administrator end, the calendar server will "helpfully" add the required objectclasses/attributes when a client (such as Convergence) attempts to login as that user.
    This means Convergence cannot automatically assume a user is not able to access the Calendar service based on the users current objectclass/attribute settings.
    This leads to an existing bug for Convergence:
    Bug#6871400 - "Mail only user is able to access the calendar service"
    I've also created a new Change Request for Calendar Server:
    RFE#6898717 - "local.autoprovision should be disabled by default"
    Please raise this issue with Sun support (log a support request) if you believe the current behaviour is confusing/needs changing (i.e. fix the bug/RFE above).
    Regards,
    Shane.

  • [svn:fx-trunk] 8277: Use blendMode="normal" to fix problems with disabled appearance when baseColor is set.

    Revision: 8277
    Author:   [email protected]
    Date:     2009-06-25 17:46:00 -0700 (Thu, 25 Jun 2009)
    Log Message:
    Use blendMode="normal" to fix problems with disabled appearance when baseColor is set.
    Bugs: SDK-19745, SDK-19762
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-19745
        http://bugs.adobe.com/jira/browse/SDK-19762
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/PanelSkin.mxml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextAreaSkin.mxml
        flex/sdk/trunk/frameworks/projects/spark/src/spark/skins/spark/TextInputSkin.mxml

    This bug figures out also when creating a custom spark ComboBox, then trying to programatically update the userProposedSelectedIndex property. The proposed selected index is selected, but does not apply the same skin as when mouse is on rollover or item is selected due to up and down keys.
    The issue seems like updating the status of the item renderer to rollover or selected to get the same skin applied.
    Please could you attach DropDow nList.as that you edited ?
    Thank you so much.

  • Apex report performance is very poor with apex_item.checkbox row selector.

    Hi,
    I'm working on a report that includes some functionality to be able to select multiple records for further processing.
    The report is based on a view that contains a couple of hundred thousand records.
    When i make a selection from this view in sqlplus , the performance is acceptable but the apex report based on the same view performes very poorly.
    I've noticed that when i omit the apex_item.checkbox from my report query, performance is on par with sqlplus. (factor 10 or so quicker).
    Explain plan appears to be the same with or without checkbox function in the select.
    My query is:
    select apex_item.checkbox(1,tan_id) Select ,
    brt_id
    , tan_id
    , message_id
    , conversation_id
    , action
    , to_acn_code
    , information
    , brt_created
    , tan_created
    from (SELECT brt.id brt_id, -- view query
    MAX (TAN.id) tan_id,
    brt.message_id,
    brt.conversation_id,
    brt.action,
    TAN.to_acn_code,
    TAN.information,
    brt.created brt_created,
    TAN.created tan_created
    FROM (SELECT brt_id, id, to_acn_code, information, created
    FROM xxcjib_transactions
    WHERE tan_type = 'DELIVER' AND status = 'FINISHED') TAN,
    xxcjib_berichten brt
    WHERE brt.id = TAN.brt_id
    GROUP BY brt.id,
    brt.message_id,
    brt.conversation_id,
    brt.action,
    TAN.to_acn_code,
    TAN.information,
    brt.created,
    TAN.created)
    What could be the reason for the poor performance of the apex report?
    And is there another way to select multiple report records without the apex_item.checkbox function?
    I'm using apex 3.2 on oracle 10g database.
    Thanks,
    Niels Ingen Housz
    Edited by: user11986529 on 19-mrt-2010 4:06

    Thanks for your reply.
    Unfortunately changing the pagination doesnt make much of a difference in this case.
    Without the checkbox the query takes 2 seconds.
    With checkbox it takes well over 30 seconds.
    The second report region on this page based on another view seems to perform reasonably well with or without the checkbox.
    It has about the same number of records but with a different view query.
    There are also a couple of filter items in the where clause of the report queries (same for both reports) based on date and acn_code and both reports have a selectlist item displayed in their regions based on a simple lov. These filter items don't seem to be of influence on the performance.
    I have also recreated the report on a seperate page without any other page items or where clause and the same thing occurs.
    With the checkbox its very very slow (more like 20 times slower).
    Without it , the report performs well.
    And another thing, when i run the page with debug on i don't see the actual report query:
    0.08: show report
    0.08: determine column headings
    0.08: activate sort
    0.08: parse query as: APEX_CMA_ONT
    0.09: print column headings
    0.09: rows loop: 30 row(s)
    and then the region is displayed.
    I am using databaselinks in the views b.t.w
    Edited by: user11986529 on 19-mrt-2010 7:11

  • Problem with clicking CheckBox eswith eCATT recording

    Hi All,
    Iam using SAP GUI 640,ECC500.
    Am trying to set some default setting in Finance Transaction FB00 with clicking some checkboxes.
    So,After i recorded with clicking checkboxes,For testing that recording i unchecked the check boxes manually and executed the script .but i dont see any boxes checked after i execute the script.I checked in the debugging mode,it is showing in the screen that the checkboxes are checked.but at the end of the script when i open the transaction manually the checkboxes are unchecked.
    Is their anything to be cautious when recording Checkboxes.If so please pass your comments.
    Thanks in Advance,
    Sarapu

    HI Rajender,
    Are you using TCD or SAPGUI for the recording.
    In either cases make sure that you are passing value "<b>X</b>" to the checboxes in your recording or passing value "<b>X</b>" to the variable you have assigned to the checkboxes.
    In general you donot need to take any special care for handling Check boxes and they are identified with both TCD and SAPGUI as part of the standard eCATTS.
    Hope this solves your problem. DO get back to me if you still have the same problem.
    -Harsha
    PS: Award points if this answers your questions.

  • Open PDF with disable save as and Print option

    Hello,
    I want a pdf viewer to use it in my website with disabling save as and print ,i mean user only can see my books online.I need something like "books.google.com" viewer. It is possible thru java programming or with the help of any open source. Please provide me some solution i am in deep trouble.
    Thanks for any reply.
    Shambhu Mitra

    You cna do this with the security options in the PDF file itself, which you can set with Adobe Acrobat, assuming you have access to the security options in the first place.

  • How to create dynamic DataTable with dynamic header/column in JSF?

    Hello everyone,
    I am having problem of programmatically create multiple DataTables which have different number of column? In my JSF page, I should implement a navigation table and a data table. The navigation table displays the links of all tables in the database so that the data table will load the data when the user click any link in navigation table. I have gone through [BalusC's post|http://balusc.blogspot.com/2006/06/using-datatables.html#PopulateDynamicDatatable] and I found that the section "populate dynamic datatable" does show me some hints. In his code,
    // Iterate over columns.
            for (int i = 0; i < dynamicList.get(0).size(); i++) {
                // Create <h:column>.
                HtmlColumn column = new HtmlColumn();
                dynamicDataTable.getChildren().add(column);
                // Create <h:outputText value="dynamicHeaders"> for <f:facet name="header"> of column.
    HtmlOutputText header = new HtmlOutputText();
    header.setValue(dynamicHeaders[i]);
    column.setHeader(header);
    // Create <h:outputText value="#{dynamicItem[" + i + "]}"> for the body of column.
    HtmlOutputText output = new HtmlOutputText();
    output.setValueExpression("value",
    createValueExpression("#{dynamicItem[" + i + "]}", String.class));
    column.getChildren().add(output);
    public HtmlPanelGroup getDynamicDataTableGroup() {
    // This will be called once in the first RESTORE VIEW phase.
    if (dynamicDataTableGroup == null) {
    loadDynamicList(); // Preload dynamic list.
    populateDynamicDataTable(); // Populate editable datatable.
    return dynamicDataTableGroup;
    I suppose the Getter method is only called once when the JSF page is loaded for the first time. By calling this Getter, columns are dynamically added to the table. However in my particular case, the dynamic list is not known until the user choose to view a table. That means I can not call loadDynamicList() in the Getter method. Subsequently, I can not execute the for loop in method "populateDynamicDataTable()".
    So, how can I implement a real dynamic datatable with dynamic columns, or in other words, a dynamic table that can load data from different data tables (different number of columns) in the database at run-time?
    Many thanks for any help in advance.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    flyeminent wrote:
    However in my particular case, the dynamic list is not known until the user choose to view a table. Then move the call from the getter to the bean's action method.

  • How do I add and remove text in a text field with a checkbox?

    How do I add and/or remove text in a text field with a checkbox?
    this is my script in the text box......
    event.value="Hello, this is my narrative. \r\n\nFamily: \r\n\n" + this get.Field("FirstName").value + " " + this.getField("LastName").value + was born on"=this.getField("DOB.value + "\r\n\n + this.getField("drpField").value + "\r\n\n" + this getField("Father").value
    The text box looks like this...
    Hello, this is my narrative.
    FAMILY:
    John Smith was born on 08/02/2000
    Boby Lou
    Jack Smith
    I need to add/or remove the father field (Jack Smith) & r/n/n with a check box.
    Does anyone know how to do this?

    There are multiple errors in your code...
    Use this code instead (adjust the name of the check-box):
    var msg = "Hello, this is my narrative. \r\n\nFamily: \r\n\n" + this get.Field("FirstName").value + " " + this.getField("LastName").value + was born on" + this.getField("DOB.value) + "\r\n\n" + this.getField("drpField").value;
    if (this.getField("FatherCheckBox").value!="Off")
         msg += "\r\n\n" + this getField("Father").value;
    event.value = msg;

  • How can I validate a DataTable with inputText and other JSF components?

    I have a DataTable with various input components. I need to be able to validate what the user has entered on all the rows of the DataTable. Does anyone have any examples they can point me to, experiences with this, or knowledge on how to do this?
    Thank you so much.

    Do you have to use backing beans instead of managed beans to validate components inside a DataTable?

  • How to create a datatable with row headers and column headers

    Hi,
    I am trying to create a two dimensional datatable which has both column headers and row headers. using <h:datatable> i could create a datatable with only column headers.
    Thanks in advance

    Are you saying that you want a column with only th's? You could also just apply some CSS on that specific column that its rows look like headers.

Maybe you are looking for

  • How do I get my contact and calendar data brought back from iCloud and reinstated in Outlook on my PC?

    I just accepted Apple's kind invitation to synchronize my Outlook contacts and calendar with their iCloud storage.  I foolishly accepted the invitation only to discover that iCloud didn't synchronize my data but stole it without any warning as to wha

  • Error at Receiver Mail adapter modules

    Hi, We have implemented a receiver mail adapter for producing Excel file as attachment. It is giving the error as follows: Delivery of the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.aii.af.ra.

  • Problem on sax parser

    why this does not work import java.io.*; import org.xml.sax.*; import org.xml.sax.helpers.DefaultHandler; import javax.xml.parsers.SAXParserFactory; import javax.xml.parsers.ParserConfigurationException; import javax.xml.parsers.SAXParser; public cla

  • Define a different administrator user for map_admin_role

    Hi, I have deployed Mapviewer 11.1.1 into Weblogic 10.3.2. I need to create a new user which would have the permissions to run some MV admin requests, without providing the master weblogic admin user. All the documentation I have read so far, indicat

  • Reimport form or remove submit feature from pdf

    I have a form that has nearly 1000 fields that I saved over the original pdf so when I went to edit it I only have the form version that was created with Forms Central. Are you telling me that I can't reimport this form into Forms Central? I have to