Created by af:table program does not properly

I have this JSF page:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html>
<f:view xmlns:f="http://java.sun.com/jsf/core" 
        xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <af:document title="myFirstPage.jsf" id="d1">
    <af:form id="f1">
          <af:table binding="#{createAdfComponents.table}"/>
     </af:form>
    </af:document>
</f:view>

Here's the bean "createAdfComponents":

@ManagedBean(name = "createAdfComponents")
@SessionScoped
public class CreateAdfComponents {
    public String[] columns = new String[]{"customerID", "firstName", "lastName", "address", "dob"};
   

    private RichTable richTable = null;
    public RichTable getTable() {
        return richTable==null ? richTable=createTable() : richTable;
    }

    private RichTable createTable() {
        RichTable table = new RichTable();
        List<Customer> data = getCustomerList();        
        table.setValue(data);
        table.setVar("c");
        table.setRowBandingInterval(0);
        table.setId("t1");
        int i =1;
        for (String column : columns) {
            RichColumn richColumn = new RichColumn();
            richColumn.setSortable(false);
            richColumn.setHeaderText(column);
            richColumn.setId("c"+ i);
       
            RichOutputText columnValue = new RichOutputText();
            columnValue.setValueExpression("value", createValueExpression("#{c."+column+"}", getClassType(column)));
            columnValue.setId("ot" + i);
            richColumn.getChildren().add(columnValue);
           
            table.getChildren().add(richColumn);
            i++;
        }
        return table;        
    }
    private ValueExpression createValueExpression(String valueExpression, Class<?> valueType) {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        return facesContext.getApplication().getExpressionFactory().createValueExpression(
                        facesContext.getELContext(), valueExpression, valueType);
    }

}

And, for completeness, here's the Customer.java class:

public class Customer {
    private long customerID;
    public String firstName;
    public String lastName;
    public String address;
    public Date dob;
    public long getCustomerID() {
        return customerID;
    }
    public void setCustomerID(long customerID) {
        this.customerID = customerID;
    }
    public String getFirstName() {
        return firstName;
    }
    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }
    public String getLastName() {
        return lastName;
    }
    public void setLastName(String lastName) {
        this.lastName = lastName;
    }
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    public Date getDob() {
        return dob;
    }
    public void setDob(Date dob) {
        this.dob = dob;
    }
}

Now, when I run the above on IntegratedWebLogicServer JSF page in JDeveloper 12.2.1...  The columns in the table, but instead to display all the data, the page keeps refreshing repeatedly.

And in doing so... I see the following exception in JDeveloper console output:

javax.el.PropertyNotWritableException: //D:/JDeveloper/system12.2.1.0.42.151011.0031/o.j2ee/drs/Application1/ViewControllerWebApp.war/index3.jsf @8,59 binding="#{createAdfComponents.table}": The class 'CreateAdfComponents' does not have a writable property 'table'.
  at com.sun.faces.facelets.el.TagValueExpression.setValue(TagValueExpression.java:136)
  at javax.faces.component.UIComponent.processEvent(UIComponent.java:2419)
  at org.apache.myfaces.trinidad.component.UIXCollection.processEvent(UIXCollection.java:918)

This exception keeps showing up over and over again... Presumable for every time the page refreshes, it does so constantly with little or no break.

Now, when he has none of the elements of input text and only items of output text, so why would he try a set operation?  Not must not only be fulfilling get operations?

PS I'm new JSF, and ADF.

Many thanks to all.

The error message tells you that your bean class holding the table needs a Set accessor method for the table. The Set accessor is called by the framework when the page was created.

Add a setTable (RichTable t) viod your beans and it should display the table.

As you initialize it the table the first time that call you the Get accessor, you need not store the table through the Set accessor.

Timo

Tags: Java

Similar Questions

  • Program does not properly after virtualization

    I'm doing a version of this program- http://www.pssoftlab.com/pshl_info.phtml

    He is program launcher and it is freeware.

    After that the construction process is done, everything looks ok but the problem is he can't run some programs as Commander free laptop and Photoscape portable.

    How can I find what is causing this problem?

    I have it. I have reproduced exactly the problem with free Commander.

    The cause of the problem is the child process during execution of Freecommander can not be started in the virtual bubble since it lies outside the ThinApp.

    Here is the solution I tried and worked for me. Add below lines in package.ini PS Hot Launch ThinApp under "General settings of purpose."

    ChildProcessEnvironmentDefault = virtual

    ChildProcessEnvironmentExceptions = FreeCommander.exe

    Now rebuild the ThinApp running the build.bat file. Remove any tray sand existing under the %appdata%\thinstall before testing the new EXE.

    Please post your results.

  • The desktop icons not working not not & programs does not properly

    I got pop ups from Windows Vista, which indicates that 33 files were infected and I could download Vista Security (or something like that).  I have McAfee I chose to leave warnings.  McAfee has run several full virus scans and found none of the 33 listed viruses.  However, none of my icons on my desktop works and I get error messages when I try to open Excel, Quickbooks and I keep having to select a program to open these files.  What should I do?

    If I click on any desktop icon, I am invited to a screen that asks me to "choose the program you want to open this file".  I've recently updated for Internet Explorer 9, but this has been done because by clicking the Internet Explorer icon on my desk gave me the above message.  Basically, what I do to have my computer function normally (i.e. be able to use the icons on the desktop).  Can I have a virus?  McAfee, seems to indicate that I don't have.  All of this started happening when I received a message from Windows Vista stating that I had a virus on my computer.  Initially, I refused to buy the virus scan software because I have already and I thought it was a thing of sale.  Thanks for any info you can give me.  It's very frustrating, especially if I lose my data from office.

    Hello

    Vista did not notify you what let it be

    which is Malware

    read this all what is called 'Vista-security etc' programs and follow the steps

    Vista anti-virus 2011, Vista Total Security 2011, Win 7 Home Security and include some of the names by a rogue new name change randomly to settle on the victim's computer.  When this particular rogue is installed, it will install as a variety of names in different programs, with each having their own graphical user interface according to the version of Windows running on the computer. Whatever the name, however, they are all the same exact program with just a different name and skin on this subject. This rogue goes by many names in different programs, of which I have listed below depending on the version of Windows that is installed on:

    Windows XP rogue names
    Names of Windows Vista Rogue
    Windows 7 fake names
    XP Antivirus Vista anti-virus Win 7 antivirus
    XP Antivirus 2011 Vista anti-virus 2011 Win 7 anti-virus 2011
    XP Anti-Spyware Vista Anti-Spyware Win 7 AntiSpyware
    XP Antispyware 2011 Vista Antispyware 2011 Win 7 antispyware 2011
    XP Home Security Vista Home Security Win 7 Home Security
    XP Security 2011 Home Vista Security 2011 Home Win 7 Security 2011 Home
    XP Total Security Vista Total Security Win 7 Security Total
    XP Security 2011 Total Vista Total Security 2011 Win 7 Security 2011 Total
    XP security Vista security Win 7 Security
    XP security 2011 Vista Security 2011 Win 7 Security 2011
    XP Internet Security Vista Internet Security Win 7 Internet Security
    XP Internet Security 2011 Vista Internet Security 2011 Win 7 Internet Security 2011

    Follow the EXACT below removal instructions

    http://www.bleepingcomputer.com/virus-removal/remove-win-7-Internet-Security-2011

  • Program does not properly

    This program was previously working until what I checked today and it has an error. I checked the channel name and the group name and they seem to be correct. Is someone can you please help me understand this.


  • Installed program does not properly

    I installed a program on my Windows 7 Professional computers but it displays as "stop program functions" and the window cannot detect the problem and recommended solutions. I received this program from a friend who has a computer with windows 7 premium and the mentioned program works perfectly, this is perhaps the reason for my problem?

    It would help if you said what program you have a problem with.  In the meantime you have tried to launch the program in 'compatibility mode ' by right clicking on the shortcut, choose 'Properties' and then run in "compatibility" mode

  • I can't create an installer, after install the Vision Builder demo and then uninstall it. I can't create a Labview Installer more, he asks me an installer of generator of Vision, even if Labview my program does not have nothing to do with it...

    I can't create an installer on LabView, after install the Vision Builder demo and then uninstall it. I can't create a Labview Installer more, he asks me an installer of generator of Vision, even if Labview my program does not have nothing to do with it...

    Hi, Shada, this can happen if you include additional installers to your installer for example DAQmx. When you do this the installation program must include other files like MAX (Measuremente and Automation Explorer). Probably when you installed Vision Builder he updated MAX, so when your Installer try to understand MAX, his request the source where it was installed in your computer in this case Vision Builder.

    Here you can cache information so it is not asked once again, or you can download a version more recent fo DAQmx, then it will update MAX and change the dependecy.

    You can find more details about it in this KB:

    3S88PJMY knowledge base: why do I get an error message 'Missing Distribution' when you try to build an install...

    And to keep a copy, here's more information:

    How to stop missing delivery Notification whenever I build an installer?

    Best regards

  • programs not responding, freezing, office does not properly taking into account the temporary office.

    When I start my computer, I get the Welcome screen and then my office takes over thereafter, is not loaded correctly, and I get temporary.  I have to restart. Virtually every day, windows mail opens then freezes, I get a program does not almost any time.    I do analysis antivirus regularly, clean and defragment.    can someone please tell me what to do with it.

    Read the info below:http://support.microsoft.com/kb/947242

    A temporary profile is loaded after you connect to a Windows Vista-based system

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    Difficulty of a corrupted user profile

    After creating the profile, you can copy the files from the existing profile. You must have at least three user accounts on the computer to perform these operations, including the new account that you created.

    See you soon.

    Mick Murphy - Microsoft partner

  • The first cc was going well until the last update you want to open and then throws a sign indicating that the application could not start properly (0 x 0000142) and the program does not open

    The first cc was going well until the last update you want to open and then throws a sign indicating that the application could not start properly (0 x 0000142) and the program does not open


    Hi Marcelo,

    You may need to check this: Re: Premiere Pro 2015 won't open after the recent update

    Kind regards

    Navdeep Pandey

  • When I try to read Blu - Ray, it says "Windows Media Player cannot play the DVD. The disk has been created in a way that does not support the player. »

    Original title: Blu - Ray

    My computer can read blu - ray, but when I try to play one, it says "Windows Media Player cannot play the DVD. The disk has been created in a way that does not support the player. "How should I do?

    Hello
     
    The Blu - ray disc format is not supported in Windows Media Player. To play a Blu - ray Disc, you must use a non-Microsoft program that supports playback of Blu ray and a device that can play Blu ray discs.
     
    See the article mentioned below:
     
     
    Read a CD or a DVD in Windows Media Player: http://windows.microsoft.com/en-us/windows7/Play-a-CD-or-DVD-in-Windows-Media-Player
     
    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
  • Safari Web Clip does not properly

    Hello everyone

    I have a problem with safari Web Clip and that is does not properly for almost all pages, as example, I participate in a contest of therapy dbrand/unbox, and I really don't want to open the web page, whenever a new winner is announced, so I created a web clip, but it does not work well When I click the web clip icon he asked the location of the clip and when click on done, the web clip is from a different region and I can't fix.

    Is this some sort of bug or can I fix it myself?

    Web Clip still didn't work if the cut element remains in the exact same on exactly the same site. This is apparently not the case here.

    Dashboard widgets in general, are an old technology that has not been updated in many years.

  • Setup.exe does not properly

    I'm trying to upgrade to Windows 7, and at one point in the configuration of several programs are listed to be uninstalled, when it gets to the Realtek USB 2.0 card reader a pop window that says setup.exe does not properly.  Cannot uninstall in Control Panel either. Also tried disabling antivirus and firewall as a suggested site. Is there a way around this kind of Setup Windows 7 allows you to work around this problem

    Repeat: You need upgrades to Windows 7 not Windows updates.
    http://social.answers.Microsoft.com/forums/en-us/w7install/threads

    Please post on the forum for Windows 7 update/install. TaurArian [MVP] 2005-2010 - Update Services

  • Add/Remove Programs does not work with some programs in XP

    Why add and remove program does NOT work on some programs. These are programs on a computer that was created using a process of the image. Like ghost?

    If you have a third party app that will not uninstall, I think I might check the support page for this application and see what they have to say about it.

    Some AV products have obtained quite complicated that add/remove programs is not the recommended way to remove them, so some companies have developed their own removal procedures and some have special programs to manage their affairs.

    Norton/Symantec has a special page for you:

    http://us.Norton.com/support/kb/web_view.jsp?wv_type=public_web&docURL=20080416133836EN

    I see that just goes through Add/Remove programs too, but there is an option "what happens if it does not work" too (or post in the forums).

  • When I start most of the programs that is lock and on the taskbar it says program does not. How can I stop this from happening?

    When I start most of the programs that is lock and on the taskbar it says program does not.  How can I stop this from happening?

    Original title: Windows Explorer

    It is a good number with a boot drive (C:\ drive) that is cruelly of free space.

    A healthy walk NEEDS 20% free space at least to work properly and prevent your suspension system.

    Several causes are possible, but check your free space. Upgrade your hard drive if necessary.

    More RAM might help too.

    Check these before you attempt to update or install anything more.

  • When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.

    When you try to import a .mp4 file in windows movie maker, the program does not list the file when I search for it in his file.  Help, please.

    As I suggested previously, conversion to a format like
    . WMV before you import it into Movie maker may be the solution.

    The free Converter from Microsoft can be a place to start:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Download Microsoft Expression Encoder 4 with Service Pack 1 (SP1) (freeware)
    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=24601
    (runs under WinXP SP3 / Vista / 7)

    When you install the program...
    Start Microsoft Expression Encoder 4
    (Start / programs / Microsoft Expression /)
    Microsoft Expression Encoder 4)

    On the "Load a new project" screen...
    Left click... "Transcoding project '...

    When the program opens, click on... File / import...

    (If at any time you get lost while browsing
    the program of... to... Window / active Reset
    Type or workspace... CTRL + SHIFT + R)

    Look for the file/s that you want to convert.
    (If files do not appear... open the fall
    window and choose... All files)

    Click (highlight) left the files and the left on the Open button.

    You can see the files in the "Multimedia content" pane

    In the right column... left click on the tab "Output"...

    Open the drop directory window and choose an output folder.
    (This is where you will find your converted file)

    On the left, click on the button "encode".

    Wait... video encoding CPU intensive and can
    be a slow process. It is always best if you do not have
    multi-task while files are encoded.

    Now... try import you again. File WMV in Movie Maker.

    More converters:

    There are to many converters available on the net...
    the following links are some examples. You can
    need to experiment to find the best result.

    Proceed at your own risk *.

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    (1) format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster)
    (the file you want to download is: > FFSetup270.zip<>
    (FWIW... installation..., you can uncheck
    'all' boxes on the last screen... even in this case, it may
    install the Ask toolbar on your system)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag FFSetup270.exe out of the folder
    and drop it on your desktop. To install left click.

    (2) Freemake Free Video Converter (freeware)
    http://www.Freemake.com/free_video_converter/
    (Windows XP / Vista / 7)

    (3) Koyotesoft Free Video Converter
    http://www.koyotesoft.com/indexEn.html
    (2000/XP/2003/Vista/Seven)

    (4) Sothink Free Video Converter
    http://www.Sothinkmedia.com/video-converter/
    (Windows XP / Vista / 7)

    (5) hamster Free Video Converter
    http://www.PCWorld.com/downloads/file/FID, order 155794, 4 pages, 1/download.html
    (Windows XP, Vista, 7)
    (If you choose Custom Installation
    You can uncheck additional modules you
    do not want to install)

    (6) quick Media Converter
    http://www.Cocoonsoftware.com/
    (Win XP, Vista, Win 7 Home Premium)

    (7) SUPER © Simplified Universal Player Encoder & Renderer
    http://www.videohelp.com/tools/Super
    (the download mirror site is faster) (Windows XP / Vista / 7)

    (8) Xilisoft Video Converter
    http://www.Xilisoft.com/video-converter.html
    (not freeware but receives good reviews)
    (Windows XP (SP2 or later) / Vista / 7)

    Good luck...

  • COQ2014: COQ2014 AMD/ATI does not properly

    2 messages warn me for "AMD/ATI does not properly" and "search solution AMD Display adapt-ATI Radeon Graphics Cards.  Search for updates, solutions with nothing appear.  I don't know what that precisely uninstall nor where the new material.

    Thank you!

    Dear customer,

    Welcome to the HP consumer's Support Forum!

    Please try and uninstall the graphics driver AMD/ATI to address current from the control panel > programs and features.

    After you have uninstalled the current graphics driver, please try and install the following driver and check:

    Suite software Catalyst:

    http://support.AMD.com/en-us/download/desktop?OS=Windows+7+-+32

    Hope this helps, for other queries in response to the post and feel free to join us again.

    * Click on the star of CONGRATULATIONS on the left to say thank you *.

    Make it easier for others to find solutions by checking a response "Accept as Solution" if it solves your problem.

    Thank you
    GR1
    Although I am an employee of HP, I speak for myself and not for HP

Maybe you are looking for

  • Want to share your experience...

    with us, a filmcompany in the Netherlands? We have worked with the 5 d since 2010, loved the image, loved simplicity but wanted to upgrade to the best quality. We bought the unit of production of blackmagic in March, and we loved the sharpness of the

  • My audio missing

    Dear all, I just had the screen replaced on my X 61 Tablet (7767B8G) (Vista)-it happened (through navigation today). The screen works perfectly, but the sound has disappeared. When I go into Control Panel, it says that there is no audio device instal

  • Hp envy 17 can play DVDs?

    I have a hp envy 17 and I was looking through manuals and stuff and I'm a little confused about something: a 17 hp can play DVDs or it can read blu - ray? I have not tried before because I don't want to mess up my computer.

  • Can I sell my application in Malaysia?

    Hello Can I sell my application in Malaysia? What currency is used?

  • Release of blackBerry storm Smartphones!

    Maybe I'm on the freight end but no one knows for sure when the storm is aired here in the States? Has it been released in other parts of the world yet? Just curious, we anticipate make one for each of us as Christmas gifts!