How I can change visible property of an af:table with an af:selectOneRadio?

How I can change visible property of an af:table with an af:selectOneRadio? Anyone can help me with a tutorial, example or link?
Thanks in advance.

After you add the required libraries to your classpath
you can do your use case as explained in this sample
page source
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="untitled2.jsf" id="d1">
        <af:messages id="m1"/>
        <af:form id="f1">
            <af:selectOneRadio label="radio" id="sor1" autoSubmit="true"
                               valueChangeListener="#{ControlVisibilty.onRadioSelected}">
                <af:selectItem label="0" value="0" id="si1"/>
                <af:selectItem label="1" value="1" id="si2"/>
            </af:selectOneRadio>
            <af:table value="#{bindings.DepartmentsView1.collectionModel}" var="row"
                      rows="#{bindings.DepartmentsView1.rangeSize}"
                      emptyText="#{bindings.DepartmentsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                      fetchSize="#{bindings.DepartmentsView1.rangeSize}" rowBandingInterval="0"
                      selectedRowKeys="#{bindings.DepartmentsView1.collectionModel.selectedRow}"
                      selectionListener="#{bindings.DepartmentsView1.collectionModel.makeCurrent}" rowSelection="single"
                      id="t1" partialTriggers="::sor1" visible="#{ControlVisibilty.table}">
                <af:column sortProperty="#{bindings.DepartmentsView1.hints.DepartmentId.name}" sortable="false"
                           headerText="#{bindings.DepartmentsView1.hints.DepartmentId.label}" id="c1">
                    <af:inputText value="#{row.bindings.DepartmentId.inputValue}"
                                  label="#{bindings.DepartmentsView1.hints.DepartmentId.label}"
                                  required="#{bindings.DepartmentsView1.hints.DepartmentId.mandatory}"
                                  columns="#{bindings.DepartmentsView1.hints.DepartmentId.displayWidth}"
                                  maximumLength="#{bindings.DepartmentsView1.hints.DepartmentId.precision}"
                                  shortDesc="#{bindings.DepartmentsView1.hints.DepartmentId.tooltip}" id="it1">
                        <f:validator binding="#{row.bindings.DepartmentId.validator}"/>
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.DepartmentsView1.hints.DepartmentId.format}"/>
                    </af:inputText>
                </af:column>
                <af:column sortProperty="#{bindings.DepartmentsView1.hints.DepartmentName.name}" sortable="false"
                           headerText="#{bindings.DepartmentsView1.hints.DepartmentName.label}" id="c2">
                    <af:inputText value="#{row.bindings.DepartmentName.inputValue}"
                                  label="#{bindings.DepartmentsView1.hints.DepartmentName.label}"
                                  required="#{bindings.DepartmentsView1.hints.DepartmentName.mandatory}"
                                  columns="#{bindings.DepartmentsView1.hints.DepartmentName.displayWidth}"
                                  maximumLength="#{bindings.DepartmentsView1.hints.DepartmentName.precision}"
                                  shortDesc="#{bindings.DepartmentsView1.hints.DepartmentName.tooltip}" id="it2">
                        <f:validator binding="#{row.bindings.DepartmentName.validator}"/>
                    </af:inputText>
                </af:column>
                <af:column sortProperty="#{bindings.DepartmentsView1.hints.ManagerId.name}" sortable="false"
                           headerText="#{bindings.DepartmentsView1.hints.ManagerId.label}" id="c3">
                    <af:inputText value="#{row.bindings.ManagerId.inputValue}"
                                  label="#{bindings.DepartmentsView1.hints.ManagerId.label}"
                                  required="#{bindings.DepartmentsView1.hints.ManagerId.mandatory}"
                                  columns="#{bindings.DepartmentsView1.hints.ManagerId.displayWidth}"
                                  maximumLength="#{bindings.DepartmentsView1.hints.ManagerId.precision}"
                                  shortDesc="#{bindings.DepartmentsView1.hints.ManagerId.tooltip}" id="it3">
                        <f:validator binding="#{row.bindings.ManagerId.validator}"/>
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.DepartmentsView1.hints.ManagerId.format}"/>
                    </af:inputText>
                </af:column>
                <af:column sortProperty="#{bindings.DepartmentsView1.hints.LocationId.name}" sortable="false"
                           headerText="#{bindings.DepartmentsView1.hints.LocationId.label}" id="c4">
                    <af:inputText value="#{row.bindings.LocationId.inputValue}"
                                  label="#{bindings.DepartmentsView1.hints.LocationId.label}"
                                  required="#{bindings.DepartmentsView1.hints.LocationId.mandatory}"
                                  columns="#{bindings.DepartmentsView1.hints.LocationId.displayWidth}"
                                  maximumLength="#{bindings.DepartmentsView1.hints.LocationId.precision}"
                                  shortDesc="#{bindings.DepartmentsView1.hints.LocationId.tooltip}" id="it4">
                        <f:validator binding="#{row.bindings.LocationId.validator}"/>
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.DepartmentsView1.hints.LocationId.format}"/>
                    </af:inputText>
                </af:column>
            </af:table>
        </af:form>
    </af:document>
</f:view>The managed bean code is
import javax.faces.event.ValueChangeEvent;
public class ControlVisibilty {
    private boolean table;
    public ControlVisibilty() {
        setTable(false);
    public void onRadioSelected(ValueChangeEvent valueChangeEvent) {
        // Add event code here...
        if(valueChangeEvent.getNewValue().toString().equals("1"))
            setTable(true);
        else
            setTable(false);
    public void setTable(boolean table) {
        this.table = table;
    public boolean isTable() {
        return table;
}

Similar Messages

  • How I can change the theme using with css

    How I can change the flex theme and images  using with css ?

    Bonjour ixixix2006
    Perhaps you will find your bonheur here:
    http://nonlinear.openspark.com/tips/scripts/localisation/index.htm
    Cheers,
    James

  • I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it

    I downloaded an upgrade to my adobe reader today, and ever since my search engine has switched to yahoo and wont change back to google. I have a macbook pro, help please? Does anyone know how I can change this back? I have tried through my settings but it doesnt work

    Hi Timia,
    If you are using Safari as a web browser :-
    Open Safari, go to Safari menu > Preferences > General, and put Google as the homepage. Then, choose Google as your default search engine.
    If you are using Google Chrome as the web browser :-
      Open Google Chrome.
      In the top right corner of the page, click the Chrome menu Chrome menu > Settings.
      In the "Search" section, select Google from the drop-down menu.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

  • Can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable

    can someone plz confirm me that how i can change or update the security questions related to my apple id? as i have been never put them since i create my apple id but now due to some security reasons its asking me again and again the answers. i am unable to go through the process. thanks.

    Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities

  • How I can change this query, so I can display the name and scores in one r

    How I can change this query, so I can add the ID from the table SPRIDEN
    as of now is giving me what I want:
    1,543     A05     24     A01     24     BAC     24     BAE     24     A02     20     BAM     20in one line but I would like to add the id and name that are stored in the table SPRIDEN
    SELECT sortest_pidm,
           max(decode(rn,1,sortest_tesc_code)) tesc_code1,
           max(decode(rn,1,score)) score1,
           max(decode(rn,2,sortest_tesc_code)) tesc_code2,
           max(decode(rn,2,score)) score2,
           max(decode(rn,3,sortest_tesc_code)) tesc_code3,
           max(decode(rn,3,score))  score3,
           max(decode(rn,4,sortest_tesc_code)) tesc_code4,
           max(decode(rn,4,score))  score4,
           max(decode(rn,5,sortest_tesc_code)) tesc_code5,
           max(decode(rn,5,score))  score5,
           max(decode(rn,6,sortest_tesc_code)) tesc_code6,
           max(decode(rn,6,score))  score6        
      FROM (select sortest_pidm,
                   sortest_tesc_code,
                   score,
                  row_number() over (partition by sortest_pidm order by score desc) rn
              FROM (select sortest_pidm,
                           sortest_tesc_code,
                           max(sortest_test_score) score
                      from sortest,SPRIDEN
                      where
                      SPRIDEN_pidm =SORTEST_PIDM
                    AND   sortest_tesc_code in ('A01','BAE','A02','BAM','A05','BAC')
                     and  sortest_pidm is not null 
                    GROUP BY sortest_pidm, sortest_tesc_code))
                    GROUP BY sortest_pidm;
                   

    Hi,
    That depends on whether spriden_pidm is unique, and on what you want for results.
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevamnt columns only) for all tables, and the results you want from that data.
    If you can illustrate your problem using commonly available tables (such as those in the scott or hr schemas) then you don't have to post any sample data; just post the results you want.
    Either way, explain how you get those results from that data.
    Always say which version of Oracle you're using.
    It looks like you're doing something similiar to the following.
    Using the emp and dept tables in the scott schema, produce one row of output per department showing the highest salary in each job, for a given set of jobs:
    DEPTNO DNAME          LOC           JOB_1   SAL_1 JOB_2   SAL_2 JOB_3   SAL_3
        20 RESEARCH       DALLAS        ANALYST  3000 MANAGER  2975 CLERK    1100
        10 ACCOUNTING     NEW YORK      MANAGER  2450 CLERK    1300
        30 SALES          CHICAGO       MANAGER  2850 CLERK     950On each row, the jobs are listed in order by the highest salary.
    This seems to be analagous to what you're doing. The roles played by sortest_pidm, sortest_tesc_code and sortest_test_score in your sortest table are played by deptno, job and sal in the emp table. The roles played by spriden_pidm, id and name in your spriden table are played by deptno, dname and loc in the dept table.
    It sounds like you already have something like the query below, that produces the correct output, except that it does not include the dname and loc columns from the dept table.
    SELECT    deptno
    ,       MAX (DECODE (rn, 1, job))     AS job_1
    ,       MAX (DECODE (rn, 1, max_sal))     AS sal_1
    ,       MAX (DECODE (rn, 2, job))     AS job_2
    ,       MAX (DECODE (rn, 2, max_sal))     AS sal_2
    ,       MAX (DECODE (rn, 3, job))     AS job_3
    ,       MAX (DECODE (rn, 3, max_sal))     AS sal_3
    FROM       (
               SELECT    deptno
               ,          job
               ,          max_sal
               ,          ROW_NUMBER () OVER ( PARTITION BY  deptno
                                              ORDER BY          max_sal     DESC
                                )         AS rn
               FROM     (
                             SELECT    e.deptno
                       ,           e.job
                       ,           MAX (e.sal)     AS max_sal
                       FROM      scott.emp        e
                       ,           scott.dept   d
                       WHERE     e.deptno        = d.deptno
                       AND           e.job        IN ('ANALYST', 'CLERK', 'MANAGER')
                       GROUP BY  e.deptno
                       ,           e.job
    GROUP BY  deptno
    ;Since dept.deptno is unique, there will only be one dname and one loc for each deptno, so we can change the query by replacing "deptno" with "deptno, dname, loc" throughout the query (except in the join condition, of course):
    SELECT    deptno, dname, loc                    -- Changed
    ,       MAX (DECODE (rn, 1, job))     AS job_1
    ,       MAX (DECODE (rn, 1, max_sal))     AS sal_1
    ,       MAX (DECODE (rn, 2, job))     AS job_2
    ,       MAX (DECODE (rn, 2, max_sal))     AS sal_2
    ,       MAX (DECODE (rn, 3, job))     AS job_3
    ,       MAX (DECODE (rn, 3, max_sal))     AS sal_3
    FROM       (
               SELECT    deptno, dname, loc          -- Changed
               ,          job
               ,          max_sal
               ,          ROW_NUMBER () OVER ( PARTITION BY  deptno      -- , dname, loc     -- Changed
                                              ORDER BY          max_sal      DESC
                                )         AS rn
               FROM     (
                             SELECT    e.deptno, d.dname, d.loc                    -- Changed
                       ,           e.job
                       ,           MAX (e.sal)     AS max_sal
                       FROM      scott.emp        e
                       ,           scott.dept   d
                       WHERE     e.deptno        = d.deptno
                       AND           e.job        IN ('ANALYST', 'CLERK', 'MANAGER')
                       GROUP BY  e.deptno, d.dname, d.loc                    -- Changed
                       ,           e.job
    GROUP BY  deptno, dname, loc                    -- Changed
    ;Actually, you can keep using just deptno in the analytic PARTITION BY clause. It might be a little more efficient to just use deptno, like I did above, but it won't change the results if you use all 3, if there is only 1 danme and 1 loc per deptno.
    By the way, you don't need so many sub-queries. You're using the inner sub-query to compute the MAX, and the outer sub-query to compute rn. Analytic functions are computed after aggregate fucntions, so you can do both in the same sub-query like this:
    SELECT    deptno, dname, loc
    ,       MAX (DECODE (rn, 1, job))     AS job_1
    ,       MAX (DECODE (rn, 1, max_sal))     AS sal_1
    ,       MAX (DECODE (rn, 2, job))     AS job_2
    ,       MAX (DECODE (rn, 2, max_sal))     AS sal_2
    ,       MAX (DECODE (rn, 3, job))     AS job_3
    ,       MAX (DECODE (rn, 3, max_sal))     AS sal_3
    FROM       (
                   SELECT    e.deptno, d.dname, d.loc
              ,       e.job
              ,       MAX (e.sal)     AS max_sal
              ,       ROW_NUMBER () OVER ( PARTITION BY  e.deptno
                                           ORDER BY       MAX (sal)     DESC
                                          )       AS rn
              FROM      scott.emp    e
              ,       scott.dept   d
              WHERE     e.deptno        = d.deptno
              AND       e.job                IN ('ANALYST', 'CLERK', 'MANAGER')
                  GROUP BY  e.deptno, d.dname, d.loc
              ,       e.job
    GROUP BY  deptno, dname, loc
    ;This will work in Oracle 8.1 and up. In Oracle 11, however, it's better to use the SELECT ... PIVOT feature.

  • How I can change my staff from one IPad To a New one

    Please I need To know how I can change my staff To a New IPad , I have 3 generation i pad and I just bought an IPad air

    Back them up to iCloud or a computer running the lastest version of iTunes. Give them unique names, and restore the proper back-up to each new device.

  • How I can change ma pay method in iTunes if I don't want to use my credit card?

    How I can change my pay method y iTunes if I don't want to use my credit card?

    The iTunes Store sometimes requires it even if the card wouldn't be charged; if it actually gets charged and you're not trying to gift the songs, ask the iTunes Store staff for assistance.
    (113277)

  • How i can change system ECC to ERP in Solman

    Dear SAP Colleague,
    I have configured the service desk in Solman. We have ECC 6 system in the landscape.
    but i have add these system as SAP ECC system in Solman, and now when i am trying to upgrade these system for EHP4 its showing me the erro that system has to be defined as ERP system
    Please do let me know how can change these systems from ECC to ERP (node) in Solman. As I can checked in the system i am ble to delete and add these system again because these are used in some projects as well as in logical component.
    Is there any ways to change the system from ECC to ERP ?? and what will be the impact when i change it.
    Regards,
    Bhavesh

    Hi,
    If you are upgrading your ECC system to EHP4. Then  in order to download packages from MOPZ you have to register your system as ERP 6.0 in SMSY transaction in solution manager.
    Check this link https://websmp204.sap-ag.de/~sapidb/011000358700000293582009E.PDF and go to page 20. There you will find step how you can change it and It will not have any impact.
    Thanks
    Sunny

  • I recently switched over from Apple to Sony and I would like to know how I can change my settings so that all my iCloud emails are forwarded to my Gmail account?

    I recently switched over from Apple to Sony and I would like to know how I can change my settings so that all my iCloud emails are forwarded to my Gmail account?

    Log in on iCloud.com and go to Mail. In Mail, at the bottom left you should see a gear icon. Click on it, go to Settings (or Preferences, I'm doing this from memory), and in there you'll find an option to forward your iCloud email to another service.

  • How We Can Change Page Size During Report Run Time

    Hello !
    How We Can Change Page Size During Report Run Time .
    How can we stop to change the column name when we amend a sql in report data model.
    Thanks !
    null

    hello sohail
    1. question - i'm afraid this cannot be done ... bit in report 6 and newer you have posibility to divide your report in 3 parts (former header, body, trailor) and each part can have diferent page siz, orientation , ...
    2. question - best is give each column in your statements in one report diferent alias. when you have to chnge something, alias will remain same ...
    try this: select 1 as fist_column, 1 as second_column from dual
    hope this helsp

  • How i can change the arabic date and time mode to english date and time mode

    how i can change the arabic date and time mode to english number mode

    Settings app > General > International > Region format.

  • How I can change the ID user

    How I can change the ID user & Pass

    on your iphone settings - app store - apple id - logout
    on the web look at the link
    http://support.apple.com/kb/he37

  • How i can change to standard user, an admin user

    Hi,
    How I can change to standard user an admin user, if the check box can not be unchecked.
    I have opened the lock to allow for future changes.
    I have more than one admin user.
    As root user, I can't do it.
    Thanks.

    Hi,
    I have, but looks the same, unable to change.
    I finally decided to create a new standard user and delete this.
    Thanks for the support.

  • How I can change my plan for another skype more mi...

    how I can change plans and one that has more minutes?

    Change Account https://forums.adobe.com/thread/1465499 may help

  • I want to change my security questions (that I don't remember) but the recovery mail is misspelled wrong by the server (I can't get the email) how I can change done recovery mail without security questions?

    So, yesterday I wanted to buy 2 albums but it was the first buy in this device (I reset mi iPad 2 months ago) so it asked me for my security questions to confirm my identity but since is been a long time since I "used" me security questions I don't remember it so, eventually, I asked for the email to change either my password or my security questions but the email has 2 misspelled letters by a server error instead of being hotmail.com is writted a*******@hormail.clm sop I can't get any email, I already tried changing the mail email and the secondary email but still is the same mail a*******@hormail.clm so how I can change this without my security questions?

    Security questions:
    https://discussions.apple.com/docs/DOC-4551
    http://support.apple.com/kb/HT5312
    This is also useful:
    http://www.macworld.co.uk/ipad-iphone/news/?newsid=3463233&olo=email

Maybe you are looking for