AF:table rowSelection = "multipleNoSelectAll."

Hello


In selecting multiple af:table on my page, I would like to have the ' select None ' / ' select all ' options.  I saw in af:table, we can define rowSelection = "multipleNoSelectAll."  But after that I put it, I see no option "Select None" / "select all."  I saw this forum:


[richeTableau multiple rowSelection | javascript:;]


who proposed to add to this that the first column.


<af:column headerText="" width="5" rowHeader="true">
     </af:column>


I added it, but still not to see how we can select all rows, even by clicking on the top left corner of the table.


Please notify.


Thank you

-Mina

Nina, which Jdev version do you use?

Have you tried ctrl-a?

If you set rowSelection = "multipleNoSelectAll", it means that there is no option to select all lines. Set the property to multiple.

Timo

Tags: Java

Similar Questions

  • richeTableau multiple rowSelection

    What is the difference between "multiple" = rowSelection and rowSelection = "multipleNoSelectAll."

    See multipleNoSelectAll I took option multiple gives me a way to selectall / select None as facet selection tableselectmany in 10.1.3

    is there a way to activate all select from the rich table of 11g

    Thank you

    To select all the lines manually click a line, and then press ctrl + A.
    To select all the lines with a mouse click, follow these steps:
    introduce an af:column as the first column of the af: table

         
         
    

    run the page and just click on upper left corner of the table, it would be to select all lines. It's a little switch btn, when you click again top deselects all rows.

  • Multiple rowselection in 12 c

    Hello.

    11 g short this code:

    RKS RowKeySet = table.getSelectedRowKeys ();

    Returns all the keys of multiple selected lines in a table.

    In 12 c, copy the following code returns just the first key.

    System.out.println (RKS. Size()); 1

    How to operate necessary?

    Table rowSelection is set to several.

    Thank you.

    12.1.3 ADF

    You can paste your Table definition code here.

    Remove the attribute selectedRowKeys to the table definition.

    Check out the link for more details below:

    https://blogs.Oracle.com/aramamoo/entry/getting_all_selected_rows_in_adf_table_with_multiple_rows_selection_enabled

    See you soon

    AJ

  • Several feature selection to row in the table

    Hello

    I have a group with the style of layout table and I want to set the the "multiple" generated table rowSelection property but it seems there is no way to do unless you are using the group as LOV, which is not desirable for me to JHs. The following code shows how to set this property in tableGroup.vm:

    #if (! ($JHS.current.group.useAsLov & & $JHS.current.group.multiSelect))
    selectionListener = "#{#BINDINGS_TABLE (). collectionModel.makeCurrent}.
    rowSelection = 'single '.
    #if (! $JHS.current.group.useAsLov)
    selectedRowKeys = ' #{#TABLE_BEAN () .selectedRow} ".
    #end
    #else
    rowSelection = "multiple".
    selectedRowKeys = ' #{#LOV_PAGE_BEAN () .selectedRowKeySet} ".
    selectionListener = "#{#LOV_PAGE_BEAN () .selectionListener}".
    #end

    Is there a reason for not allowing to have several feature selection of line in the table when it is not in mode LOV?

    Thank you
    Will do

    Will do,

    No, but if you want to have multiple selection, there is typically a custom action that you want to apply to selected lines, which cannot be defined in the Jheadstart Application definition editor.
    However, it is perfectly well use a custom template tableGroup.vm and allow multiple selection.

    Steven Davelaar,
    JHeadstart team.

  • Line selection/highlight / copy of af: table with rowselection in IE

    I have a table with a row selection listener to drill as much information on this line. In order for that to work, I need to set the rowselection attribute. However, when that is defined, in IE8, users are not able to select or highlight any text in the array to copy and paste this information. It works fine in Firefox.
    Has anyone encountered this problem or found a resolution for it?
    Thank you
    A

    Hello

    I have also faced similar problem and overcame by using with readonly true instead of outputText

    Mohan

  • Table advanced in OAF features

    Hello

    I have a page with an advanced array. This table contains a button.

    I display 5 records per page.

    If we don't select any line (check box) and click on the button, I throw an error like "Please select at least one line.

    Message is displayed without problems.

    But if I'm in the next page (6-10 records) and click on the button, error message on the first page (documents 1-5) instead of the current (6-10 records) page.

    Please let me know how to view the error/confirmation message on the same page.

    Thank you

    Palacin

    Try this:

    else if (pageContext.getParameter(EVENT_PARAM).equalsIgnoreCase("uncnf")){
      //HashMap h= new HashMap();
      ArrayList arry= new ArrayList();
      String stat=null;
      ResourceListVOImpl advanceVO =  (ResourceListVOImpl)am.findViewObject("ResourceListVO1");
      RowSetIterator rowSetIterator = advanceVO.createRowSetIterator("ResourceListIterator");
        rowSetIterator.reset();
        boolean rowSelected = false;
        while (rowSetIterator.hasNext())
      {
      Row row = rowSetIterator.next();
      if ("Y".equals(row.getAttribute("selectAtt")))
      {
         rowSelected = true;
      String employeenum=(String)row.getAttribute("EmployeeNumber");
      String employeename=(String)row.getAttribute("EmployeeName");
      String role=(String)row.getAttribute("AssignmentName");
      Date startdate=(Date)row.getAttribute("StartDate");
      String assStrDt = am.getOADBTransaction().getOANLSServices().dateToString(startdate);
      Date enddate=(Date)row.getAttribute("EndDate");
      String assEndDt = am.getOADBTransaction().getOANLSServices().dateToString(enddate);
      Number projid=(Number)row.getAttribute("ProjectId");
      Number assid=(Number)row.getAttribute("assignmentid");
      String projnum=(String)row.getAttribute("ProjectNumber");
      String projname=(String)row.getAttribute("ProjectName");
      String asnId=String.valueOf(assid);
      Serializable[] serparam ={uid,respid,applid,orgid,asnId};
      stat=  (String)am.invokeMethod("CancelBenchAllocation",serparam);
      arry.add(new OAException("Release unconfirm for employee "+employeenum+" is "+stat,OAException.CONFIRMATION));
      }
      }
      if(!rowSelected)
      {
      throw new OAException("Please select atleast one row to process.",OAException.ERROR);
      }
        OAException.raiseBundledOAException(arry);
    }
    

    See you soon

    AJ

  • Apply a color style to a selectOneChoice in a table

    Hello

    I created a table in which there are several types of objects like the outputText and selectOneChoice.

    <af:table value="#{bindings.AegEnteteView1.collectionModel}" var="row"
                                  rows="#{bindings.AegEnteteView1.rangeSize}"
                                  emptyText="#{bindings.AegEnteteView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                                  rowBandingInterval="0"
                                  selectedRowKeys="#{bindings.AegEnteteView1.collectionModel.selectedRow}"
                                  selectionListener="#{bindings.AegEnteteView1.collectionModel.makeCurrent}"
                                  rowSelection="single" fetchSize="#{bindings.AegEnteteView1.rangeSize}" id="t1"
                                  binding="#{backingBeanScope.backing_export1_gestion_aeg.t1}" scrollPolicy="page"
                                  partialTriggers=":::b1">
                            <af:column headerText="#{sigifappcentralBundle.SOCI_U00E9T_U00E9}" id="c17" width="180">
                                <af:selectOneChoice value="#{row.bindings.Idsocieteae.inputValue}"
                                                    label="#{row.bindings.Idsocieteae.label}"
                                                    required="#{bindings.AegEnteteView1.hints.Idsocieteae.mandatory}"
                                                    shortDesc="#{bindings.AegEnteteView1.hints.Idsocieteae.tooltip}"
                                                    readOnly="true" id="soc3">
                                    <f:selectItems value="#{row.bindings.Idsocieteae.items}" id="si3"/>
                                    <f:validator binding="#{row.bindings.Idsocieteae.validator}"/>
                                </af:selectOneChoice>
                            </af:column>
                            <af:column headerText="#{sigifappcentralBundle.REF__USINE}" id="c5" width="100">
                                <af:outputText value="#{row.Refusineae}"
                                               shortDesc="#{bindings.AegEnteteView1.hints.Refusineae.tooltip}" id="ot5"/>
                            </af:column>...
    

    Later, I applied styles to the table so that when I walk through the cursor, the line changes color and written too.

    af|table::data-row:highlighted af|column::data-cell, af|column::data-cell:hover {
      background-color:#82C138;
      color: red;
    }
    

    My problem is that only the outputText columns act as if I expected (color change to move the mouse); on the selectOneChoice, written columns keep their color even

    Thank you

    The superimposition of selectOneChoise cell. You need the selectOneChoice too to get the effect desired skin.

    Timo

  • The list of values in the table of the ADF is not other cela rather single attribute yourself.

    Dear all,

    I have a list of the values on the view object and and created a table by dragging the drop to the page.

    Problem is that LOV is advising no other attributes I mentioned as other attributes in the list of values. only the LOV element becomes selected ID.

    The following table properties

    -------------------------------------

    < af:table value = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel}.

    var = "row".

    lines = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.rangeSize}.

    emptyText = "#{bindings." XxIncidentRptInjuredPersonsEOView1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." XxIncidentRptInjuredPersonsEOView1.rangeSize}.

    rowBandingInterval = '0 '.

    filterModel = "#{bindings." XxIncidentRptInjuredPersonsEOView1Query.queryDescriptor}.

    queryListener = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1Query.processQuery}.

    filterVisible = "true" varStatus = "vs."

    selectedRowKeys = ' #{bindings. " XxIncidentRptInjuredPersonsEOView1.collectionModel.selectedRow}.

    selectionListener = "#{bindings." XxIncidentRptInjuredPersonsEOView1.collectionModel.makeCurrent}.

    rowSelection = "single" id = "t1".

    "partialTriggers =": cb2.

    Binding = "#{CreateReportManageBean.injurdemptable} '"

    Width = "100%" >

    - ComboboxListOfValues - Tags

    < af:inputComboboxListOfValues id = "empIdId".

    popupTitle = "search and select: #{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.label}.

    value = "#{row." Bindings.EmpID.inputValue}.

    Model = "#{row." Bindings.EmpID.listOfValuesModel}.

    required = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.mandatory}.

    columns = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.displayWidth}.

    shortDesc = "#{bindings." XxIncidentRptInjuredPersonsEOView1.hints.EmpId.tooltip}.

    autoSubmit = "true" >

    < f: validator binding="#{row.bindings.EmpId.validator}"/ >

    < / af:inputComboboxListOfValues >

    ---------------------------------------------------------------

    Take the af: inputComboboxListOfValues Id (for example, "empIdId") and put it in the partialTriggers of other attributes.

    or

    You can go to pageDef. --> select iterator table--> properties--> Advanced--> ChangeEventPolicy set for ppr

  • Selected color change of line to the table in the ADF

    Hi all

    I'm new to ADF. I use Jdeveloper 11.1.2.4 version.

    My requirement is when I chose several lines, color of the line should be changed to red.

    I dragged and dropped ViewObject of the Department in the form of a table on a page and RowSelection to the multiple. I need color of selected lines/lines to be past to red. How can achieve us?

    I wrote the method selectionListner on the table, in which I get the details of the selected line. How can we apply color to selected lines.

    Thanks in advance.

    Best regards

    Claude Reynier.

    How about you create a variable temporary level VO with a default null value.

    Now on the selection listener retrieves the current line and change the value of this variable 'Y '.

    In the inlineStyle write an EL, if the value of this variable is 'Y' changes the color.

    Thank you

  • How to refresh the table after changing model

    12.1.3 JDEV

    My Table of the ADF is limited to a list of dataRows in my SampleDataModel class.

    My button is limited to a method of createDataRow of SampleDataModel class.

    Then click the button, a new item is added to the list of dataRows.

    There is a partial trigger button on the table.

    I expect after the button clicked, the table is updated with the newly added row.

    But what I see is: new dataRow is added to the list of dataRows and the flashes of the table, but it does not show the line.

    Anything I missed? Thank you.

    < af:toolbar id = 't3' >

    < af:button actionListener = "#{bindings.createDataRow.execute}" = "createDataRow" text "

    Disabled = "#{!}" Bindings.createDataRow.Enabled}"id ="b7"partialSubmit ="true"/ >

    < / af:toolbar >

    < af:table value = "#{bindings.dataRows.collectionModel}" var = 'row' "

    Rows = "#{Bindings.DataRows.rangeSize} '"

    emptyText = "#{bindings.dataRows.viewable?" "{'No data to display.': 'Access Denied.'}".

    rowBandingInterval = '0 '.

    selectedRowKeys = "#{bindings.dataRows.collectionModel.selectedRow} '"

    selectionListener = "#{bindings.dataRows.collectionModel.makeCurrent} '"

    rowSelection = 'unique' fetchSize = "#{bindings.dataRows.rangeSize}" id = "t1" "

    "partialTriggers =": b7 "editingMode ="clickToEdit">

    How you have implemented the createDataRow method to add the line?

    A table using an iterator in the pagedef, you have updated this iterator?

    Timo

  • How to reset the value of selectOneChoice when it is af:table

    12.1.3 Jdev

    I need to reset the selectOneChoice of the first empty value when you click a Refresh"" button.  The selectOneChoice is located in one of the columns of af: table.  I tried to reset by getting the selectOneChoice component and set the value to «»   Please see the snipplet of code for more details. However if the selectOneChoice is not within the af: table, then using the same way to reset works!

    in jspx

    "< af:commandToolbarButton id ="ctb15"icon="/images/refresh_qualifier.png "shortDesc ="Refresh"action =" #{viewScope.backing_requestOverview.onRefresh} "partialSubmit ="false"> < / af:commandToolbarButton >"

    < af:table value = "#{bindings." ItasTaskAssigneesListVO1.collectionModel}.

    var = "row".

    lines = ' #{bindings. " ItasTaskAssigneesListVO1.rangeSize}.

    emptyText = "#{bindings." ItasTaskAssigneesListVO1.viewable? "{'No data to display.': 'Access Denied.'}".

    fetchSize = "#{bindings." ItasTaskAssigneesListVO1.rangeSize}.

    rowBandingInterval = '1' id = 't4 '.

    styleClass = "AFStretchWidth."

    columnStretching = "column: c1.

    rowSelection = 'single '.

    selectionListener = "#{bindings." ItasTaskAssigneesListVO1.collectionModel.makeCurrent}.

    selectedRowKeys = ' #{bindings. " ItasTaskAssigneesListVO1.collectionModel.selectedRow} ">"

    < af:column id = "c6" headerText = "Action".

    rendering = "#{bindings." EventLevelTypeCode.inputValue! ' = ' 10 G ' & amp; & amp;! viewScope.backing_requestOverview.isReadOnly} ">"

    < af:selectOneChoice id = "soc2".

    autoSubmit = 'true '.

    valueChangeListener = "#{viewScope.backing_requestOverview.onChangeMyPendingAction} '"

    Disabled = "#{!}" line. TaskActionEnabled} ">"

    < f: selectItems value = "#{backing_requestOverview.actionsMap [row." StatusUid]} ".

    ID = "si3" / >

    < / af:selectOneChoice >

    < / af:column >

    < / af:table >

    < af:selectOneChoice id = "soc222" >

    < af:selectItem label = "Complete"

    value = "COMPLETE"

    ID = "si4" / >

    < af:selectItem label = "Assign".

    value = "ASSIGN".

    ID = "si555" / >

    < / af:selectOneChoice >

    Java bean:

    public String onRefresh() {}

    RichSelectOneChoice actionDropdown = (RichSelectOneChoice) JSFUtils.findComponentInRoot ("soc2");

    actionDropdown.setValue("");

    RichSelectOneChoice actionDropdown2 = (RichSelectOneChoice) JSFUtils.findComponentInRoot ("soc222");

    actionDropdown.setValue("");

    If (actionDropdown! = null) {}

    AdfFacesContext.getCurrentInstance () .addPartialTarget (actionDropdown);

    }

    If (actionDropdown2! = null) {}

    AdfFacesContext.getCurrentInstance () .addPartialTarget (actionDropdown2);

    }

    }

    Please notify.

    Thank you

    -Mina

    The root of the problem remains the same. As long as you don't set a value for each of SPC property that you use, you cannot reset them without running into trouble.

    An soc within a table must be stored too, you must provide the form of attribute value each of them. If you only use a soc, to distinguish the action to take, it belongs in the table.

    Timo

  • No coordination happening between the form of table and adf Adf

    I created an entity object.

    In the page, I separated the two page in horizontally with separator and top once again part I applied the vertical separator.

    Upper area, left side, I created adf search fast and right side have added the collection of panel above it, I added adf table.

    The bottom region, I created the dashboard Panel and I created two box. 1 box, I created the shape of the adf.

    Now the part of the question.

    What I've inserted into the quick query part are completed in the table of the adf, but when I move the cursor on each line on adf table form respective adf not getting not changed and it only shows the 1st record of adf table.


    Please guide me where I made mistake.


    Thanks in advance


    Kind regards

    Iqbal

    Now, I changed af:table set rowSelection = "single" and previously empty

    but I don't know what 'something' must map as I am new to ADF for this part selectionListener = ' something '

    Drag / move your new VO as a table and the 'select lines' option so it is automatically generated.

    Dario

  • How to select and default hightlight the first line in a programmatic Table(ADF Table created based on a SortableModel) ADF.

    Hi all


    We use JDeveloper Studio Edition Version 12.1.3.0.0 and deployed on GlassFish Server Open Source Edition 3.1.2.2 (build 5) and connect to the SQLServer database.


    We created a table ADF programming related to a SortableModel created programmatically to a bean.


    We need to select and highlight the first row in the table just after making it to retrieve data based on the first line.


    We tried the based on the following thread: How to call the bean support just after JSFF / page fragment loads? and a few other posts online, but it does not work very well.


    W has created a hidden text in the bottom of the JSF model as follows:


    < af:table varStatus = "rowStat" Summary = "table" value = "#{pageFlowScope.crudBean.dynamicTable.collectionModel} '"

    Rows = "#{pageFlowScope.crudBean.dynamicTable.collectionModel.RowCount} '"

    contentDelivery = 'immediate' var = 'row' rendered = 'true '.

    Binding = "#{backingBeanScope.crudBackingBean.tasksTable} '"

    selectionListener = "#{backingBeanScope.crudBackingBean.customListener} '"

    "rowSelection ="single"id ="t1"partialTriggers =": pt_gr2 "columnStretching =" column: clmn0 ">

    < af:forEach items = "#{pageFlowScope.crudBean.dynamicTable.columnNames}" var = 'name' varStatus 'vs' = > "

    < af:column sortable = "true" sortProperty rowHeader = "#{name}" = "no style" headerText = "#{pageFlowScope.crudBean.dynamicTable.columnLabel [name]}" "

    inlineStyle = "width: 100px;"  ID = "clmn$ {vs.index}" >

    < af:activeOutputText value = "#{row [name]}" id = "aot1" / >

    < / af:column >

    < / af:forEach >

    < / af:table >

    ....


    < af:outputText id = "hiddenOutputTextId" visible = "false" value = "#{backingBeanScope.crudBackingBean.afterPageLoad} '"

    Binding="#{backingBeanScope.crudBackingBean.hiddenOutputText}"/ >

    And we have added the code to the bean to support below:

    public String getAfterPageLoad() {}

    If (!.) {AdfFacesContext.getCurrentInstance () .isPostback ()}

    selectFirstRowInTasksTable();

    }

    Return afterPageLoad;

    }

    public void selectFirstRowInTasksTable() {}

    try {}

    RKS RowKeySet = new RowKeySetImpl();

    RowKeySet rksEmpty = new RowKeySetImpl();

    Model CollectionModel = tasksTable.getValue ((CollectionModel));

    ROWCOUNT int = model.getRowCount ();

    If (rowcount > 0) {}

    model.setRowIndex (0);

    Key of the object = model.getRowKey ();

    RKS. Add (Key);

    tasksTable.setSelectedRowKeys (rks);

    SelectionEvent selectEvent =

    new SelectionEvent (tasksTable.getSelectedRowKeys (), rks, tasksTable);

    selectEvent.queue ();

    customListener (selectEvent); / / to retrieve data

    AdfFacesContext.getCurrentInstance () .addPartialTarget (tasksTable);

    }

    } catch (Exception e) {}

    }

    }

    I think that () selectEvent.queue; should work even without calling the customerListener, but it is not working in all cases.

    What is the problem in my code?



    Have you tried to bind property of 'selectedRowKeys' to selection configuration / bean there?

    Something like:

    public RowKeySet getSelectedRKS() {
        if (rks == null) {
            // make first record as selected
            // create RowKeySet and assign it to rks variable(where rks is variable defined in bean with some scope higher than request scope)
        }
        return rks;
    }
    

    Dario

  • FilterVisible does not work for an af:table component.

    In jdev 12.1.3

    I have a component af:table surrounded by a panelCollection in a jsf page, and I have set the attribute FilterVisible of the element af:table as 'true '. The page associated with source codes are as follows:

    < af:table id = "md1" lines = ' #{bindings. " TodoListVO11.rangeSize}.
    fetchSize = "#{bindings." TodoListVO11.rangeSize}.
    emptyText = "#{bindings." TodoListVO11.viewable? "{'No data to display.': 'Access Denied.'}".
    var = "row" value = "#{bindings." TodoListVO11.collectionModel}.
    rowBandingInterval = '0 '.
    selectedRowKeys = ' #{bindings. " TodoListVO11.collectionModel.selectedRow}.
    selectionListener = "#{bindings." TodoListVO11.collectionModel.makeCurrent}.
    "rowSelection ="single"partialTriggers =": b2: b2 "displayRow ="selected ".
    filterVisible = "true" >
    < af:column headerText = "#{bindings." TodoListVO11.hints.Id.label}.
    sortProperty = "#{bindings." TodoListVO11.hints.Id.name}"sortable ="false ".
    ID = "c46" width = "30" >
    < af:outputText value = "#{rank." ID} ".
    shortDesc = "#{bindings." TodoListVO11.hints.Id.tooltip}"id ="ot46 ".
    inlineStyle = "make-weight: #{rank." Tree lt 4? {'medium': 'normal'}; ">"


    < af:convertNumber groupingUsed = "false".
    model = ' #{bindings. " TodoListVO11.hints.Id.format}"/ >
    < / af:outputText >
    < / af:column >

    < af:column... >

    < / af:column >
    < / af:table >

    But, when the page runs, the buttun toggles filter for the table does not appear in the upper area of the panelColletion.

    Is there something that I missed?

    How to fix?

    Thank you.

    The not Blas: how to add screening lines to an af:table which has not been originally configured for this

    When you add an ADF table read-only on a JSF page you can add "the lines matching" to the table. Here's how to put it on a table that was not setup with the 'filtering of lines"and now you want to enable it now.

    1. right click on the JSF page that contains the 'af:table' and select 'go to definition Page.

    2. in the window structure, right-click on 'executable' and select 'insert inside executables-> Search box.

    3. Enter an ID like this--> SrListQuery

    4. change the XML binding file so it adds these 3 attributes, as shown.

    <searchRegionBinds="SrlistView1Iterator"Criteria=""Customizer="oracle.jbo.uicli.binding.JUSearchBindingCustomizer"id="SrListQuery"/>
    

    5. return to the JSF page and go into the source editor and add these 3 attributes in bold to your "af:table". You should use "SrListQuery" which is the Id of the executable search box.

    <af:tablevalue="#{bindings.SrlistView1.collectionModel}"var="row" rows="#{bindings.SrlistView1.rangeSize}"emptyText="#{bindings.SrlistView1.viewable ? 'No rows yet.' : 'Access Denied.'}"fetchSize="#{bindings.SrlistView1.rangeSize}"  filterModel="#{bindings.SrListQuery.queryDescriptor}"  queryListener="#{bindings.SrListQuery.processQuery}" selectedRowKeys="#{bindings.SrlistView1.collectionModel.selectedRow}"selectionListener="#{bindings.SrlistView1.collectionModel.makeCurrent}"rowSelection="single" id="table"filterVisible="true">
    

    Finally we must determine which columns we want to allow filtering occurs for which we do as follows

    6. Select the "af:column" tag in the structure window.

    7. click on the symbol to expand the 'behavior' options in the property inspector.

    8. set "Filterable" to "true".

    9. Repeat steps 6 through 8 for each column that you want to be blockable.

    Now, when you switch to design view of your JSF page you should see your table that has one row on top of the table which allows line of filtering for columns that you have enabled this for.

  • AF:table hide a line

    Hi all

    I use jdev 11.1.1.7.0

    I have a list of DTO in my grain (NOT VO based). Its a web service based one.

    I showed this list in the page as a table (< af:table value = "#{pageFlowScope.testBean.phoneInfoList}" ")

    In the table, I have a column with a 'Donot Show' button. I'll put a variable showRow DTO as false in the case of the action of the button of the current line.

    I added a condition rendered inputText table column and the rendering State works very well. The data is not displayed, but how ever, a blank line appears.

    How can we hide the line itself?

    < af:table value = "#{pageFlowScope.testBean.phoneInfoList} '"

    var = 'row' emptyText = "#{ssBundle.NO_DATA_TO_DISPLAY_LBL} '"

    autoHeightRows = '0 '.

    width = "70%".

    columnStretching = 'multiple' rowBandingInterval = '0 '.

    rowSelection = "single" contentDelivery = "immediate".

    ID = "wssmpt1".

    Binding = "#{pageFlowScope.testBean.phoneTableBinding} '"

    varStatus = "rowStatus" >

    < af:column sortable = "false".

    headerText = "#" "" id = "wssmpc3" width = "2".

    rowHeader = "true" >

    "< af:inputText value =" #{row.sequence} "rendered =" #{! row.isRowDeleted}.

    «simple = "true" label = "#»

    ID = "wssmpit1" / >

    < / af:column >

    < af:column headerText = "#{ssBundle.ACCOUNT_PHONETYPE_LBL} '"

    width = "30%" align = 'center' id = 'amupptclm '.

    clientComponent = "true" >

    "< af:selectOneChoice value =" #{row.phoneType} " rendered =" #{! row.isRowDeleted} '

    inlineStyle = "padding: 5px;" white-space: nowrap; »

    Editable = 'always' valuePassThru = 'true '.

    label = "" # "" required = "true" id = "wssmpsoc1".

    autoSubmit = 'true '.

    valueChangeListener = "#{pageFlowScope.testBean.selectPhoneType} '"

    requiredMessageDetail = "#{ssBundle.ACCOUNT_PHONETYPE_REQUIRED_LBL}" >

    < name f: attribute = "sequences" value = "#{row.sequence}" / >

    < f: selectItems value = "#{pageFlowScope.testBean.phoneTypes} '"

    ID = "wssmpsi1" / >

    < / af:selectOneChoice >

    < / af:column >

    < af:column headerText = "#{ssBundle.ACCOUNT_PHONENO_LBL} '"

    width = "30%" align = "DΘmarrer" id = "wssmpc5" >

    < af:panelLabelAndMessage id = "wssmpplm1" for = "wssmpit7" >

    "< af:inputText value =" #{row.phoneNumber} "required ="true"rendered =" #{! row.isRowDeleted}.

    requiredMessageDetail = "#{ssBundle.ACCOUNT_PHONENUM_REQUIRED_LBL} '"

    columns = '14' id = 'wssmpit7' simple = "true" autoSubmit = 'true '.

    Binding = "#{pageFlowScope.testBean.setDefaultFormat} '"

    valueChangeListener = "#{pageFlowScope.testBean.phoneNumberChanged}" >

    < af:clientListener method = "resetInputText" type = "click on" / >

    < / af:inputText >

    < f: facet = 'end' name >

    "< af:outputLabel value =" #{row.phoneNumberFormat} "rendered =" #{! row.isRowDeleted}.

    partialTriggers = "wssmpsoc1" id = "ol1" / >

    < / f: facet >

    < / af:panelLabelAndMessage >

    < / af:column >

    < af:column headerText = "#{ssBundle.REMOVE_LBL}" align = "center" "

    width = "10%" id = "ammpac1" >

    < partialSubmit = "true" rendered = af:commandImageLink "#{! row.isRowDeleted} '"

    shortDesc = "#{ssBundle.ACCOUNT_PHONE_REMOVE_LBL} '"

    Icon="/ADF/images/delete_ena.png".

    actionListener = "#{pageFlowScope.testBean.removePhone} '"

    ID = "ammprpbtn" immediate = "true" >

    < name f: attribute = "sequences" value = "#{row.sequence}" / >

    < / af:commandImageLink >

    < / af:column >

    < / af:table >

    table.png

    I deleted the 2nd row. But the line is always visible

    You can download the example of https://github.com/tompeez/BlogPoJoTableDeleteRow/archive/develop.zip

    He didn't need a project model or the DB connection. Just launch the index page and click on a button in the table delete.

    Timo

Maybe you are looking for