Dynamically created HTMLDataTable does not update its chlidren

I have a very delicate problem that I hope to get help with. I have created a HTML data table dynamically in the Java code. The left-most column contains a checkbox so that I can select and deselect rows in the table. The problem is that the checkbox value is only read from my backing bean but changes to it are not written back.
The strange thing is that if I create exactly the same data table statically (i.e., as tags in the JSP-page) everything works perfectly fine.
Is there some strange property that needs to be set when creating the data table dynamically that the JSF-framework automatically sets when it creates the table from the tags?
Below you see the code for the creation:
HtmlDataTable component = new HtmlDataTable() ; 
CColumnHeader   column;
UIColumn        tableColumn;
tableColumn = new UIColumn();
HtmlOutputText textHeader = new HtmlOutputText() ;
textHeader.setValue("");
tableColumn.setHeader(textHeader);
HtmlSelectBooleanCheckbox tCheckBox = new HtmlSelectBooleanCheckbox() ;
tCheckBox.setValueBinding(  "value", FacesContext.getCurrentInstance().getApplication().createValueBinding("#{data.subItems[0].selected}")) ;                       
tableColumn.getChildren().add( tCheckBox ) ;
component.getChildren().addAll( this.uicolumns ) ;
JSF tag is defined as...
<h:dataTable id="table" value="#{bean.model}" binding="#{bean.component}" var="data" />This do not work!
However, the below code do...
<h:dataTable id="table2" value="#{bean.model}" var="data">
<h:column >
<f:facet name="header">
     <h:outputText value="" />
</f:facet>
<h:selectBooleanCheckbox value="#{data.subItems[0].selected}" />
</h:column>
</h:dataTable>          For what I know these to examples should be equivalent.
Furthermore, I noticed in the debugger that the attributes of my dynamically created table was not the same as the attributes on the one that JSF created for me. For example, each component that JSF created has got a map entry with the key javax.faces.webapp.COMPONENT_IDS for a ListArray containing the ids of its children. However if I try set this attribute in my code the column is not rendered at all. The UIColumn in the JSF-created table did have a javax.faces.webapp.FACET_NAMES=[header] in its attribute map. I don�t know if this has something to do with it, it was just one thing I noticed.
Is this a bug or am I missing something?

Why is that?
What is it that actually goes wrong here? The two example works
exactly the same in every aspect but in the first example, the JSF-
framework only calls the getter method of the selected property and the
latter case it calls both the getter and the setter. Otherwise the two
tables works correctly.
I use the binding attribute to be able to create the HtmlDataTable
before the actual page is loaded and dynamically populate it with
different numbers of columns depending on different system states.
This is the reason why I have to create it dynamically and why I have to
use the binding attribute.
What is the reason for this not working? Am I breaking anything in the
specification?
What do you mean by "...with the hope that JSF will draw.."? It's is
drawn, it is just the setter method that is not beeing invoked correctly.

Similar Messages

  • Firefox 11 does not update its window in a remote control RealVNC session

    When I am remote controlling a Windows XP 64bit PC with RealVNC, Firefox 11 does not update its window contecns. Old Firefox 3.6 works just fine. Is it called a redraw or drawing issue?

    You can try to disable OMTC and leave hardware acceleration in Firefox enabled.
    *<b>about:config</b> page: <b>layers.offmainthreadcomposition.enabled</b> = false
    You can open the <b>about:config</b> page via the location/address bar.
    You can accept the warning and click "I'll be careful" to continue.
    *http://kb.mozillazine.org/about:config
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    See also:
    *https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration

  • The attached VI works when I run it initially creating the XML file, but when run after the XML file is created, it's not updated. What am I doing wrong?

    The attached VI works when I run it initially creating the XML file, but when I change data and run after the XML file is created, it's not updated with new data. What am I doing wrong?
    Thank you.
    Solved!
    Go to Solution.
    Attachments:
    Attractive Force XML.vi ‏23 KB

    That looks like the logic which was written into the VI
    Inner true/ false case:
    (file exists : false) write to XML file, unflatten for display
    (file exists : true) read from XML file, unflatten for display
    At no time when the file exists (true case) is the XML file updated...

  • HT5824 my contact list does not update to its current state. After I sync to Itunes or after I back up to I cloud  Also I did a doccuments and data restore and it still didnt change. How do I fix this?

    My contact list does not update to its current state after I sync it to itunes or back it up to icloud  I did a documents and data reset and the contact list still didnt change.. How do I fix this?

    Welcome to the Apple Community.
    First check that all your settings are correct, that contact syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the contacts you are adding are added to your 'iCloud' group and not an 'On My Mac', 'On My Phone' or other non iCloud group (you can do this by checking in groups), non iCloud contacts will not sync.
    If you are sure that everything is set up correctly and your contacts are in the iCloud group, you might try unchecking contact syncing in the iCloud settings, restarting your device and then re-enabling contact syncing.

  • Book editing - change a photo, book does not update

    We are having a small problem. When editing our book, we double on some photos to edit them. Crop, color adjust, etc. Then we click done, and get sent back to our Book page.
    Now about half the time the book preview does not update the image that we just changed. It seems to update the larger full page images more often than it updates the smaller images in the book layout. If I double click the photo again, I can see the change I previously made are still there, but they are not being reflected in the book preview.
    So 2 questions, how do I force the book to update its photo preview? And if I print this will it use the edited photo, and not the version its showing me in the preview?
    Assume this is just a screen display issue, and that the generated print will use the right assets, right?
    This is in iLife '08 on Leopard on an intel Macbook.

    Squeegy:
    Welcome to the Apple Discussions. Try changing the layout, i.e. from frames with or without text to the other and then back. That may jump start the picture to display properly. It works for me when I do some cropping, like from landscape to portrait and the frame doesn't reset itself.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Lighroom 5.4 Develop View does not update when changing sliders

    Just updated to Lightroom 5.4 (using Adobe CC) on Win8. After going to "develop view" on any photo and changing the exposure or any other slider does not update the main view of the photo. It does however update the thumbnail in the film strip and the second monitor window correctly. I've tried everything I can think of:
    (1) downgrading to LR 5.3 (which used to work)
    (2) forcing 1:1 and standard preview regeneration
    (3) uninstalling the re-installing Lightroom (both 5.3 and 5.4)
    (4) Optimizing catalogue
    (5) Removing the Adobe AppData folder
    (6) Creating a brand new catalogue with zero photos, importing a single photo and trying to change exposure/contrast on that
    None of these result in the develop view of the picture changing when I change the sliders.
    Do you guys have any experience with this?

    The chances of me suspecting monitor color profile causing bugs in LR was very slim. =)
    So were mine, especially when only the view itself doesn't work, but all other stuff works fine. Well, I probably have really not good colour profile, luckly you can change it after the lr is launched - it won't cause the problem untill next restart (at least works for me). And hopefully once my calibrator arrives lr will work ok with its colour profiles..

  • HT1277 Mail on my Mac computer does not update when I update my mail on my phone and iPad.  Can anyone help me with this?  Is there a setting I need to check?

    Mail on my Mac computer does not update when I update my mail on my iPhone and iPad. Can anyone help me with this?  Is there a setting that I need to check?

    All that you had to do was to sign into the old account in order to update those apps. What I mean is that you just needed to sign into that account in the store settings like I described and that should have worked. You didnt need to enter the credit card information again - you justed needed to use the old ID and password.
    Anyway, I think the good news is that if everything else is OK with the new account, just download iBooks with the new ID - it's a free app so its not like you have to pay for it again. I'm not sure what the other App is that you are talking about - but if it is the Apple Store App - that is free as well.
    Try this anyway, when you try to update iBooks, just use the old password if the old ID still pops up.
    Did you try signing into the store settings with your new ID and see what happens with the updates then?

  • Scroll bar does not retain its position after or before pack

    Hi
    My Scroll bar does not retain its position after pack in my application.
    But i need to retain its state.
    My code snippet is :
    System.out.println("VAlue--->" + getHXValue());
    scrollPane.getHorizontalScrollBar().setValue(getHXValue());
    pack();
    My VAlue printed is 100.
    But my positon of scroll bar is at 0 th location.
    Can any one help me.....

    Swing related questions should be posted in the Swing forum.
    My code snippet is :Snippets don't help.
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)",
    see http://homepage1.nifty.com/algafield/sscce.html,
    that demonstrates the incorrect behaviour, because I can't guess exactly what you are doing based on the information provided.
    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • Application Compatibility does not update the database.

    Hi,
     I am using application compatibility manager 6.1, and SQL server 2012 as database. ACT run ok and it create the XML file but it does not update the database at "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS\MSSQL\DATA" location.
    I can see the valid XML file but somehow the MDF file of database is not updated so my ACT windows does not showing anything on it.
    Any Help would be appreciated.
    Thanks
    Rakesh Patel
    rakesh patel

    Hi Rakesh,
    I am not sure if you have resloved your issue.
    But for helping others to know what to do if they meet the same issue as yours, I consider to mark the post as answered.
    If you would like further assistance, please post back and we will be always here to help you.
    Any concern about this mark behavior, you can just unmark it.
    Thanks for your understanding.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Bug:  Histogram Does Not Update when Using Painting Tools

    I was investigating something else, and I saw something not working...  I'm under the distinct impression that the Histogram panel should automatically update after every operation.  Having the Histogram panel displayed full-time on the screen, it should always be up to date.
    However, when I Dodge or Burn or even paint color on an image, the Histogram is not updating. 
    If I select one of the History states I've just created, it updates.
    Consider this simple sequence of operations:
    I'm able to reproduce this failure in Photoshop CS5 as well, BUT NOT IN CS4 (it updates in Photoshop CS4 after every painting operation), so clearly it's not a new bug, though somehow I've managed not to notice it in my years of using Photoshop CS5.
    Is it broken like this for everyone in Photoshop CS5 and 6?
    Could this be some twisted attempt to try to optimize painting performance?  If so, why isn't there an option to allow a user to request it to update on every operation on a fast computer with cores out the wazoo?
    -Noel

    More info:
    Just poking around in Photoshop CS6 to see what, if anything would make the Histogram display update...
    Even though the Refresh icon is disabled (and the "Uncached Refresh" entry in the fly-out menu is grayed-out), double-clicking in the topmost histogram display will force it to update (as described above by Conroy in post #1 above).
    If I change the selection Channel field in the Histogram panel, mostly it does not update, but when I change between some of the settings - for example between RGB and Luminosity - the graphs update.  Amazingly they revert back to the un-updated state if I switch the channel BACK to what it was!
    Making a selection DOES cause it to update.  
    Choosing Select - Color Range (just starting the function) DOES cause it to update.
    Hitting the quick mask mode button DOES cause it to update. Notably Edit in Quick Mask Mode is in the Select menu.  Could an association with Select be a clue?
    This bug is easy to reproduce, is shown to be a problem across multiple versions and multiple OSs, and in at least one case (Photoshop CS4 x64 on Windows 7 x64 here) it can be shown to work properly, so the code is probably not far off being right.  Seems to me this should be the kind of thing a junior engineer could find and fix so someone, say,  at Chris Cox's level could have it done before 5 today... 
    -Noel

  • Multiclip editing does not update Canvas window with active angle

    Hi,
    I am trying to do some multiclip editing but for some reason when cutting between angles the canvas viewer does not update with the video. Once I stop playback the cuts are all created properly and the video changes when playing back again. However, when editing the video does not change to the active angle. The audio changes but the video does not.
    I have the multiclip playback setting in RT enabled and the canvas and viewer windows synced and matching each other when playing back, and video + audio is set in the sync menu.
    I'm now stuck! and would greatly appreciate some help.
    Thanks
    Phil

    Welcome to the family.
    I don't mean to brush you off because I understand your frustration. But what we know about mutliclip is that it really does work, if you follow the rules completely. We also know that most of the "multiclip doesn't work" posts are resolved by encouraging the user to be objective and to simply recheck the setup steps in the manual, one at a time. (Editorially speaking: There are too many of them, there are too many stupid gotchas in the multiclip setup. True. Hope springs eternal that FCP6 may fix many of these things. It should be a one-click solution.)
    You can search for multiclip here and, after filtering out the nonsense from elitists like me, you should be able to detect something in your configuration that might be keeping you from getting the performance you are expecting.
    bogiesan

  • Clicking update opens apps, but does not update them

    When I click "update" in the app store, the app that should update opens, but does not update.
    DEVICE: I am using an ipad mini with iOS 7.0.6 and 5.6 GB of storage available.  I don't have any kind of app manager apps or anything like that.
    THINGS I HAVE TRIED:
    rebooting
    closing all apps and rebooting
    signing out of app store, closing all apps, rebooting, and signing back in to app store
    deleting apps to create more space
    changed app store settings to update automatically

    Here's a link to a thread that solved the problem for me:
    http://discussions.apple.com/thread.jspa?messageID=12552345&#12552345
    The culprit was that the Flash plugin needed updating for FF. That was it.
    Go to Firefox; Preferences; General (tab); Add-ons; Manage Add-ons; Plugins.
    I clicked on Find Updates and immediately updated the Flash plugin.
    Hope this helps others.

  • The tab bar in Safari does not update automatically

    Hello,
    I have a strange problem with Safari full screen mode and the tab bar always displayed, it does "not update" alone. In fact when I, for example, two tabs and I created a third (by clicking a link) it does not appear immediately. I have to either click on the tab bar and pretend to move one, either click the "Naviagtion tabs" for bar tabs emtte update.
    A little heavy, huh?
    All my software are up to date and even reinstalled recently, but the problem is still present.
    OS X Lion Mountain / / Safari 6.0.2
    Regards

    I solved the problem by uninstalling Glims.

  • Captivate 6 - Updating template does not update project

    Hi ,
    I am just learning Captivate 6 and have started by creating a theme and then a template.  If I create a project file using the template and then go back and make a change to a graphic in the template should it automatically update the project file or do I have to apply the template to the project file again some how?  Currently if I make a change to the template it does not update the project file.
    Thanks,
    Richard

    Hi there
    Have you ever inserted a document into a copier and made a copy?
    If so, this is really the way Captivate templates work. They are designed so you have a consistent look and feel to projects you create from them. So returning back to the copier analogy, once a copy has been made, any changes to the original are NOT reflected in the copy created from the original. But future copies WILL have the changes as the copies were made from the altered original.
    Likewise, any changes to the Captivate template are only reflected in the Template as well as Future projects you create using the template. Once created, there is no longer any association with the template.
    Cheers... Rick

  • Bug in PL/SQL - Does not update Table if table name & variable name same in

    Dear All,
    If tabale name & vairable name is same in a Stored Procedure, UPDATE to table does not take place.
    For example run following 2 procedures. First procedure does the insert properly to table but second procedure does not update the table.
    create or replace procedure BugDemo1
    as
    LAST_NAME VARCHAR2(30);
    FIRST_NAME VARCHAR2(30);
    Begin
    LAST_NAME := 'Prasad';
    FIRST_NAME := 'Raghnandan';
    Insert into com_people (id,Roles, LAST_NAME, FIRST_NAME) values (77777,'Patient', LAST_NAME, FIRST_NAME);
    end;
    create or replace procedure BugDemo2
    as
    LAST_NAME VARCHAR2(30);
    FIRST_NAME VARCHAR2(30);
    Begin
    LAST_NAME := 'Pra';
    FIRST_NAME := 'Raghu';
    Update com_people set
    LAST_NAME = LAST_NAME,
    FIRST_NAME = FIRST_NAME
    where id = 77777 ;
    end;
    ------------------------------------------

    Hi,
    It is not a bug. Oracle is updating the records. Here Oracle is treating the variable name as COLUMN_NAME. Since priority is higher for a COLUMN on variable so each column is getting updated by itself resulting no change in data.
    SQL> CREATE TABLE com_people
      2  (
      3  id NUMBER (5),
      4  Roles VARCHAR2(20),
      5  LAST_NAME  VARCHAR2(20),
      6  FIRST_NAME VARCHAR2(20)
      7  )
      8  ;
    Table created
    SQL> Insert into com_people (id,Roles, LAST_NAME, FIRST_NAME) values (77777,'Patient', 'LAST_NAME', 'FIRST_NAME');
    1 row inserted
    SQL> COMMIT;
    Commit complete
    SQL>
    SQL> create or replace procedure BugDemo2
      2  as
      3  LAST_NAME VARCHAR2(20);
      4  FIRST_NAME VARCHAR2(20);
      5  Begin
      6  LAST_NAME := 'Pra';
      7  FIRST_NAME := 'Raghu';
      8 
      9  Update com_people set
    10  LAST_NAME = LAST_NAME,
    11  FIRST_NAME = FIRST_NAME
    12  where id = 77777 ;
    13 
    14  DBMS_OUTPUT.PUT_LINE('UPDATED ROWS ='||SQL%ROWCOUNT);
    15  end;
    16  /
    Procedure created
    SQL> set serveroutput on
    SQL> execute BugDemo2;
    UPDATED ROWS =1
    PL/SQL procedure successfully completed
    SQL> Regards

Maybe you are looking for

  • Copying information from one repeating table to another repeating summary table?

    Hi, I have designed a dynamic form with a Table 1 (Investigator details) to be completed at the start to provide a list of investigators. This is a repeating table, and I have added buttons to add / delete an investigator (i.e. add/remove a row). I a

  • How do I add an email for facetime

    I want to give my daughters a different email for her iPod so she can FaceTime and it doesn't come up on my phone. So I set up an email for her and it won't let validate it.  So my question is do I have to make a iTunes account for it to work and if

  • Where are purchase requisitions stored in SAP?

    Hi all, I want to know how to get the data stored in the purchase requisitions. Is all the data  stored in one table? What is the t-code for seeing/editing purchase requisitions. Thanks, Charles.

  • Vodafone have sent an unlock code for my iPhone to my Itunes account  How do I access it

    I am trying to unlock my Iphone 3GS. Vodafone have sent an unlock code to my iTunes account but I do not know how to find it. Help please

  • Step wait

    Hi,        I am facing a problem for step 'wait' in my workflow, actualy I have to check (system date -- meter reading date) > 10. if the the date not greater than 10 I have to wait until the date will be greater then 10 . can anybody tell me what sh