SaveState and resetState only called once for a component in a dataTable?!

I am fairly new to JSF and am trying to write some custom components using MyFaces 1.0.9.
I am trying to write choose, when and otherwise components to mirror the functionality that XSL provides. I also created function and argument tags that allow me to call any method on a binding bean via a method binding. The when tag allows a function tag as a child so that instead of a test to a value binding, I can call a function on a bean to get the test value.
Example:<x:choose>
<x:when>
  <x:function name="#{myBean.myFunction}">
   <x:argument value="testValue" />
   <%-- I will render some components here --%>
  </:x:function>
<x:otherwise><%-- here is the else components to render --%></x:otherwise>
</x:choose>I am evaluating the UIWhen components in the encodeChildren method of my UIChoose component.
Everything is working fine until I started using my tags/components in a data table. Now, I have not tried the normal dataTable, I am using the MyFaces extended one, but I haven't done anything that should make a difference.
What is happening is that my UIWhen tag's saveState and restoreState methods are only being called once, despite the fact that there are 3 rows in my data table. So what happens, is that the isRendered() property of my UIWhen component is not restored per row, but only once. So my controls are either all validated or none are validated based on the rendered state of the last row only, not each individual row as expected.
I may be able to "fake" this into working by saving hidden input tags when rendering my UIWhen components and then restoring the rendered property when the page is posted, but that seems like a hack to me. Isn't the purpose of the saveState and restoreState supposed to handle this?
Is this a bug in the dataTable component/tag or is this a shortcomming of JSF?
Either way, is there a better way then trying to save my rendered state per row as hidden elements?
I looked at the code of the normal dataTable renderer in the MyFaces source, and it does not seem to call restore or save state that I could see.
Thanks for the help,
Andrew

Hello!
You can place in the data model editor formula and placeholder
columns outside of any groups. I think you need for each of your
summary-attibutes a placeholder column and one formula column.
Use the formula column to populate the placeholders via PL/SQL.
Afterwords you can reference the placeholders anywhere you want.
Regards,
Hajo Winkler

Similar Messages

  • Have a serial number for Acrobat 9 Standard but need a download and can only find download for Pro version.

    I did a factory reset on my old laptop and lost my Adobe Acrobat 9 Standard. I have the serial number but need a download and can only find download for Pro version. When I enter my serial number (standard) into the Pro Installation it says the number is invalid. Any idea where I can download Standard version of 9? Thanks.

    Kimg68365882 did you purchase Acrobat 9 Standard from Adobe directly?  If so and you choose to download the software instead of receive a CD then please see Find a download link on Adobe.com.
    If you originally received the software on CD then please use a computer with an optical drive to copy the contents of the CD to a USB drive.

  • 0...unbounded RFC only called once

    Hi All
    I have a 0...unbounced RFC. In the MM I duplicated the subtree, Now if a field is = to 1,4,9,10,12 it need to call the rfc and then for 4 and 9 agian. Now what happens is when I use 1 header and one detail line with the field = to 4 or 9 it calls the RFC twice, but when I have 2 header line and 2 detail line with the field = 1 and 4 or 9 the RFC only get called once?
    Any help will be appreciated
    Regards

    >
    stephan claassen wrote:
    > Hi All
    >
    > I have a 0...unbounced RFC. In the MM I duplicated the subtree, Now if a field is = to 1,4,9,10,12 it need to call the rfc and then for 4 and 9 agian. Now what happens is when I use 1 header and one detail line with the field = to 4 or 9 it calls the RFC twice, but when I have 2 header line and 2 detail line with the field = 1 and 4 or 9 the RFC only get called once?
    >
    > Any help will be appreciated
    >
    > Regards
    ideally your condition for the first subtree sud be
    create if source field is equal to 4 or 9
    for the second subtree it should be
    create if source field is equal to 1 or 10 or 12
    Is this what you are looking for?
    Else can you explain in a better way so we can help.

  • HT5463 my phone log also shows the call that made it through only called once...shouldn't it have shown twice?

    iphone 5 issue with DO NOT DISTURB feature.  Feature is ON, allowing FAVORITES to be able to call, I RECEIVED A TELEMARKETING CALL THAT BYPASSED THE SETTING as my phone log only shows they called once and the phone rang and I answered.  Shouldn't the phone log show they called twice?  Otherwise I have to consider this another failure by Iphone 5.

    Here's an update. I just did the Disk Utility tests, of basically all the elements that appear on the left of the window (3 available selections), including the Macintosh HD one. They all passed the verifying and repairing processes, no warnings or errors whatsoever. Yay. The point is, yesterday I was looking at my photos from the Finder. I wasn't doing anything at all, really, not even moving the cursor, when I suddenly heard the HDD making the working-noise without stopping, just that constant scratchy noise. This went for something like 7 seconds straight, and at the very next moment, it started making a consecutive and tempoed stream of this same sound, but a little bit less intense, with interlapses of about a sec. This continued for about a whole minute. I'd like to know if things are really fine.
    As I previously described, the guys at iShop almost don't want me there anymore, or at least that's what their distanced attitudes get my into thinking. I visited the place some days ago, to look at the new iPod Touch pretty quickly, and I clearly felt that the guards were watching me closely, you know, with a hostile mannerism, the kind of stance that you use, with arms folded, to look kind of intimidating. I really didn't do anything to deserve that paranoic and ridiculous behavior. What happened was, a bit hottened discusion with the manager, when I was telling him I needed a replacement, and he really wasn't giving me an empathetic and understanding attitude.
    If a call to Apple Support is required soon, and my computer needs to be repaired or the HDD replaced, they'll most likely send me there, since it's the most prominent place of recommendation. Sincerely speaking, they do seem like the most prepared personel, and they aren't great per se. If that is so, I really, really hope that the hard drive is the only part or detail that needs some technical considering, and deserves my stress.
    Thanks for your consideration, so far so good.

  • SaveState and restoreState never called after upgrade to JSF2.1.1

    Hi,
    I upgraded my project to JSF2.1.1.
    For all my custom compontent the saveState and restoreState is never called.
    Are there any required changes due to JSF2.1.1 release?
    Thanks in advance,
    Pieter

    Most likely, this will fix your issue:
    1: http://docs.info.apple.com/article.html?artnum=93698
    Also clean up your temp files:
    (Empty your Temp directory and restart)
    2: http://docs.info.apple.com/article.html?artnum=93976
    If you get an error when uninstalling quicktime, go through article 1, then run the Microsoft Cleanup Utility to remove quicktime afterwards:
    3: http://support.microsoft.com/default.aspx?scid=kb;en-us;290301

  • TS1424 I recently purchsed several songs off itunes and they only have sound for 17 seconds.I tried re loading them but says i already purchsed it.How can i fix this?

    Why is the music i purchased only has sound for 17 seconds?I cant rebuy them cause it says i already purchased them.

    I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the entries, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • Redeemed a gift card for iTunes to be able to get apps and it said call iTunes for support

    Cant download free apps keep saying security code invalid and tried Redeemed gift card and says to contact iTunes for support

    Highly unlikely that they told you to post to a user to user technical support forum.
    iTunes Support

  • E6 Camera flash and flashlight only blinks once

    I have the Nokia E6.00, Symbian Belle for 18 months.  Today I tried to take a photo with the flash, but the flash just blinks once and illuminates nothing.  When testing the flashlight, it too, when turned on, just blinks once and goes out. My settings seem to be fine.  Does anyone have a fix for this problem?  Thanks. 
    Solved!
    Go to Solution.

    You would probably have to exclude any possible software corruption first by backing up device via Nokia Suite and reset device by keying in *#7370# followed by 12345 (default Nokia lock code unless altered by user). Failing this you could use option to re-install exisiting device software within Nokia Suite. At this point a visit to Nokia Care facility would beckon unfortunately.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • OWSM and Webservices -Define policies once for multiple web services

    I thought that through using OWSM we had the possibility to use the same Policy Lines for multiple web services.
    Mostly when web services are used/integrated within an application, the same rules need to be defined and I thought this requirement could be met when using OWSM.
    But you need to define the policy requirements on each web service that's passing through a gateway or agent, why isn't it supported to define policy lines one level higher to be able to use the same requirements for multiple web services?

    Nathalie,
    For this purpose OWSM allows you to use Template Policy Pipelines.
    For individual services, you can than replace the pipeline with the Template.
    But I have to agree with you here: the templating functions are rough on the edges, e.g. limited editing capabilities.
    Hope this helps.
    Best regards, Sjoerd

  • My charger broken and the casting has come of and Iv only had it for 5 mouths could I get a new one if intake it to apple for free

    I've had my charger for five months. The outer  cases come off the charger ,it got suck up by the hover bit I was working for for 4 mouths and now it's just pack up I hopping to go to Apple and they will give me a new one because it's stopping my phone from working.what do you think???

    If the charger is genuine Apple and came with the iPhone then it carries the iPhone warranty
    If purchased as an accessory then it also has 12 months warranty .You will have to either take the iPhone if relevant or proof of purchase of the charger
    Apple genius bar will be the arbiters of whether it is a manufacturing fault or user damage

  • HT1711 Do I only pay once for a tune or do I pay every time it is played ?

    Do I pay for tunes just once, or every time they are played ?

    Welcome to the Apple Support Communities
    When you purchase something, you pay it once, so you won't have to pay every time you play it

  • HT5035 I put a $15 itunes gift card on my account today and it only credited me for $10.

    Why did my $15 itunes gc only credit my account for $10?

    It could also be your balance you saw previously was not properly refreshed.

  • My warranty for support runs out in 4 days. Initially, they were very helpful to me as I am a bit challenged when it comes to computers. I've become more familiar with my McBook and haven't called them for support for quite a while. I hate to pay the mone

    My support warranty runs out in four days. I've had it for three years. Initially, that support was very helpful to me as I am a bit challenged when it comes to computers. I hate to spend the money to renew my support by phone for a year when I can get the help I need, which seems minimal now, by chatting to various communities. I had a problem with no sound on my MacBook about a month ago and someone from one of the communities told me how to rtesolve it. I was impressed. Do you think I can get the help from chatting to various communities or should I look into resubscribing? Thank you

    Some of the forum members actually work for Apple, so they know what they are doing
    Did anyone represent themselves as such that you know of? This is a user to user site and generally, there is no or very rare post by someone working for Apple (except for a community host) - anyone who does would/should be displaying the Apple logo under their name; the hosts do not offer technical support, but check the site to make sure it is running well and as intended. All that is spelled out rather nicely in the ToU's.

  • I switched to iphone 5 from my 4s becuase it didnt work now iphone 5 doesnt either and ive only had it for 3 days.

    when i had the iphone 4s my data such as followers and stuff would get deleted in instagram,twitter,snapchat, etc. it would log me out and not recgnixe my password so i had to change password and when i logged back in everything was deleted like if it was a brand new account. i went to the apple store and they didnt fix it. so i got the iphone and i even used a different email but it happened again. i dont know what to do!! nobody in my family that has an iphone has this problem. im getting so frustrated!!

    Sounds like user error, if it's happening just to you and with completely different phones.  How have you attempted to troubleshoot?  Have you read through the User Guide to make sure you're actually setting up your phone properly?  Did you set up your new iPhone from a backup of your 4S?  If you did, you just retored all of the 4S problems onto your new phone.

  • CAR/ART Billing for Off-Net and On-Net Calls

    Is there any possibility of differentiating between On-Net and Off-Net calls once the Rating engine has been configured?
    Within the CAR Dial-Plan the following destination patterns are configured 2XXX, 3XXX and classified as On-Net.
    The problem is that when you run a detailed report, calls between 2XXX and 3XXX display billing amounts, when only Off-Net calls are required for billing.

    Could be a codec issue. Verify what codec you are trying to use when the call fails.
    Is this H323 or MGCP, what is the PSTN connectivity, SIP or PRI or FX0?
    Might be helpful to post the router config.

Maybe you are looking for

  • How do I connect all my apple devices to iCloud? So what I download on one device will go to all my apple devices.

    how do I connect all my apple devices to my iCloud? So whatever I download or purchase can go to all my apple devices.

  • Help with starting sql developer

    Hi everyone I have had oracle express and sql developer on my laptop before untill my hard drive went, now iv installed them again but when I start sql developer I make a new connection then go to create a new user, but when I click create new user,

  • RC4 and JavaTM 2 SDK, Standard Edition , v1.4

    Hello, I am new to Java Cryptography and wanted to find out if the new JavaTM 2 SDK, Standard Edition , v1.4 includes the 128 bit RC4 algorithm or do we need to download the RSA Security, Inc. JCE 1.2.1 compliant provider? Need information fast! Than

  • Collapse reports in reporting launchpad

    Hi, We are using reporting launchpad for MSS just connected to a ERP system. At the moment we have long list of reports in diffrent categories. Does anyone know if it is possbile to group the reports, and then collapse the "category". i.e. we have th

  • Why untitled???

    every time i import some new footage all the clips are named untitled, untitled 1, untitled 2 etc. i tried changing th e reel name but i dont even know what it does. is there a way to name all the clips as i import them??