Af:setActionListener can not work fine in the af:iterator in ADF Faces RC

Hi all,
af:setActionListener can not work fine in the af:iterator/af:commandbutton. My code is as below:
<af:iterator value="#{backing_Bean.testList}"   var="var" >
       <h:panelGrid columns="1">
      <af:commandButton icon="images/system/class.png"
                                          text="#{var.name}" >
         <af:setActionListener from="#{var.name}" to="#{backing_Bean.testText}"/>              
      </af:commandButton>
      </h:panelGrid>
</af:iterator>The name [var.name] can be shown on the command buttoncorrectly, but when I click the button, the name can not be transferred to the testText in backing bean. why?
Thanks
Hart

Hi,
works for me. Not sure how you want to access to the value, but if the bean is in request scope then the values are only available during this period.
Frank

Similar Messages

  • Af:setActionListener can not work fine in the af:iterator/af:commandbutton

    Hi all,
    af:setActionListener can not work fine in the af:iterator/af:commandbutton. My code is as below:
    <af:iterator value="#{backing_Bean.testList}"   var="var" >
           <h:panelGrid columns="1">
          <af:commandButton icon="images/system/class.png"
                                              text="#{var.name}" >
             <af:setActionListener from="#{var.name}" to="#{backing_Bean.testText}"/>              
          </af:commandButton>
          </h:panelGrid>
    </af:iterator>The name [var.name] can be shown on the command buttoncorrectly, but when I click the button, the name can not be transferred to the testText in backing bean. why?
    Thanks
    Hart

    Hi Frank,
    I use Jdeveloper 11g preview 2 and ADF rich client to run the code above I have posted.
    And I found the reason: I add a render attribute in af:iterator, It is not beacuse of the af:iterator component.
    When I set the "render" attribute to "true" manually, then the value can be passed to backend bean.
    But I set the "render" attribute to "false" at the start and change to "true" by clicking a button in the same page, the value can not be passed to the backing bean. What's the reason?
    Thanks
    Hart
    Message was edited by:
    harth

  • Af:richTextEditor can not work fine in the popup dialog.

    Hi all:
    I want to use af:richTextEditor in a pop up dialog, but it can not be used correctly. The code is like below:
    <af:popup id="***">
    <af:dialog >
    <af:richTextEditor contentStyle="width:100%" value="this is a test" inlineStyle="width:100%" binding="#{backing_myBackingBean.richTextEditor1}"
    id="richTextEditor1"/>
    </af:dialog>
    <af:popup>
    The value "this is a test" can not be shown in the editor and I can not write/edit in this rich text editor.
    Anyone has some experience on using these components? Please help me.
    Thanks
    Hart

    Hi Frank,
    Below is my test code, the text editor does not work fine actually. Can you help me to find where I was wrong using this code OR is is a bug to use richtexteditor in popup dialog?
    <?xml version='1.0' encoding='GBK'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=GBK"/>
    <f:view>
    <af:document>
    <af:form>
    <af:outputText value="This is test page"/>
    <af:commandButton text="PopupRichTextEditor">
    <af:showPopupBehavior popupId="test">
    </af:showPopupBehavior>
    </af:commandButton>
    <af:popup id="test">
    <af:dialog modal="true">
    <af:richTextEditor value="this is for test">
    </af:richTextEditor>
    </af:dialog>
    </af:popup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Thanks in advance.
    Hart
    Message was edited by:
    harth
    Message was edited by:
    harth

  • FindByAltKey() is not working properly with the nullable elemens in the Key

    HI
    I am facing a problem while using findByAltKey(). I have an alternate key in my Entity Object with few nullable/non nullable columns.
    When I call finidByAltKey() with the key as a combination of non nullable columns It is working fine , that means the row iterator has some elements if that key exists in the Database.
    When I call findByAltKey() with the key as combination of nullable columns It is not working, that means the row iterator does not have any elements
    Key key = new Key(new Object[]
    { dataBean.getCapability(),dataBean.getFeasibilityFlag(),dataBean.getLineOfBusiness(),dataBean.getPriority(),dataBean.getDesGeoBegValue(),dataBean.getDesGeoEndValue(),dataBean.getDesGeoType(),dataBean.getOriGeoBegValue(),dataBean.getOriGeoEndValue(),dataBean.getOriGeoType() });
    RowIterator rows = vo.findByAltKey("NetworkFeasibilityAltKey",key,2,false);
    System.out.println(rows.hasNext());
    if(!rows.hasNext()){
    // Do this
    }else {
    // Do something else
    rows.hasNext() always givine me false value eventhough that key exists
    When I commit the row I am getting below exception
    oracle.jbo.TooManyObjectsException: JBO-28204: Too many objects match the alternate key oracle.jbo.Key[DEDS N DEDC 1 NJ null ST DEPERE null CT ] for entity sni.nm.model.entities.NetworkFeasibilityEO, key NetworkFeasibilityAltKey.
    I suspect null values are creating some problem...

    '''McAfee Site Advisor:''' https://support.mozilla.com/questions/837419
    Look for an updated version in about the 3rd week of July; hopefully they'll fix their many other errors besides, I don't think I've been able to use it since about Firefox 3.6.0 or maybe 3.6.6
    Be aware that if you currently choose to use McAfee Site Advisor it has some serious problems for Firefox users, check
    *http://kb.mozillazine.org/Problematic_extensions for some things to watch out for.
    *https://support.mozilla.com/questions/837877
    *https://community.mcafee.com/message/195191

  • TS3899 I get the following message when I try to send email from my IPAD, "a copy has been placed in your outbox, " it tells me I have exceeded my storage limit. How can I rectify this. The account works fine on the IMAC just not on the IPAD?

    When I try to send an email from my iCloud account on my IPAD I get the message that a copy has been saved to outbox as my storage limit has been reached. It works fine on the main computer but not on the ipad. How can I mend this?

    I have just encountered exactly the same issue for the last 24 hrs - mail goes to outbox from iPad yet send OK from icloud account on my powerbook. Tried resetting the push email settings on the iPad but no chnage.

  • Back in Dec I updated Itunes, with the new version, my IPHONE now I can no longer sync to Itunes. I have an IPOD that works fine but the IPHONE does not. What can I do?

    Back in Dec I updated to the new version of Itunes. Since then, I can no longer sync my IPHONE. I have an IPOD that works fine, but the phone is not found on Itunes. I am abled to download pictures to my computer, but I can not sync my music. What can I do?

    Click here and install the software.
    (71121)

  • Can you charge a macbook by any other means than the power cord? For example the usb drive? My cord works fine but the outlet on the laptop is not.

    Can you charge a macbook by any other means than the power cord? For example the usb drive? My cord works fine but the outlet on the laptop is not.

    The only way to charge a MBP is with a MagSafe power supply (wall or airline) try http://support.apple.com/kb/TS1713

  • Can't load any websites. I do not get any "error messages", the "enter" button has no effect in the address bar. Works fine in the FF search box and in IE.

    Entering a URL in the address bar and hitting enter does nothing. Neither the "enter" button or "address bar arrow", for going to the website, function. Website does not load and no error messages appear. "Enter" button works fine in the FF search box and in IE, so it's not my keyboard.
    Tried most of the recommended fixes under the "Error loading websites" article with the exception of "DNS refetching", as typing "about:config" in the location bar does no good as the "enter button" won't function. I've removed and re-added FF back into the windows firewall, removed ZoneAlarm from my system, edited proxy settings, deleted and reinstalled FF several times. NOTHING WORKS!!! I'm a die hard FF fan and this is KILLING me. Please HELP!!!

    You have a lot of information in packed in the "More system details..." (in the right-hand column), where it looks like you found a solution. If not take a look at "Problematic Extensions" the AVG Free installation of their "'''AVG Free Search'''" can cause such problems. Directions to fix that are specific and involve reinstalling AVG Free without the Link Scanner component.
    * http://kb.mozillazine.org/Problematic_extensions

  • Iphoto 9.2.1 leopard scrapbook theme not working correctly. THe opening slide has 2 pictures; the bottom one can barely be seen and probably shouldn't be there. It works fine in LION "only 1 image" on opening slide.

    Hi.
    iphoto 9.2.1 on iMac Leopard "scrapbook theme" not working correctly.
    The opening slide has 2 pictures; the bottom one can barely be seen and probably shouldn't be there.
    It works fine in LION "only 1 image" on opening slide.
    All updated. Any suggestions
    Thanks in Advance

    Hi.
    iphoto 9.2.1 on iMac Leopard "scrapbook theme" not working correctly.
    The opening slide has 2 pictures; the bottom one can barely be seen and probably shouldn't be there.
    It works fine in LION "only 1 image" on opening slide.
    All updated. Any suggestions
    Thanks in Advance

  • Hi i got a mac mini but when i connect it to my smartax mt882 modem via ethernet it says device not connected can anyone solve this issue it work fine with the usb connection but the ethernet is giving me problems plz help

    hi i got a mac mini but when i connect it to my smartax mt882 modem via ethernet it says device not connected can anyone solve this issue it work fine with the usb connection but the ethernet is giving me problems plz help

    Hello, give this a try...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5, 10.6, 10.7 & 10.8…
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    10.5.x/10.6.x/10.7.x/10.8.x instructions...
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    For 10.5/10.6/10.7/10.8, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
    208.67.222.222
    208.67.220.220
    (There may be better or faster DNS numbers in your area, but these should be a good test).
    Click OK.

  • Hi, I have iphone 4s and since yesterday my personal hotspot will not work. It's always worked fine in the past and I have a plan with three uk which includes tethering. I've tried everything I can think of including resetting network settings, resetting

    Hi, I have iphone 4s and since yesterday my personal hotspot will not work. It's always worked fine in the past and I have a plan with three uk which includes tethering. I've tried everything I can think of including resetting network settings, resetting the phone as a new phone but nothing works. When connected to the pc it shows on the iphone screen '1 connection' but the pc says 'no internet connection' I've spoken to three who say it must be a phone fault. Any help appreciated. :-)

    If you have restored as new that pretty well covers software issues
    Looks like a trip to an Apple Store and a likely Out of Warranty exchange unit  £159 over the counter
    May e consider an upgrade with the money ?

  • HT1267 I have a factory unlocked Iphone 4S, it worked fine but it was lossing the signal and going into search, I decided to restore, but now can not activate it, a message can not be activated because the server is temporary unavailable try again later??

    I have a factory unlocked Iphone 4S, it worked fine but it was often lossing  signal and going into search, I decided to restore, but now can not activate it, a message can not be activated because the server is temporary unavailable try again later, I have tried this for 3 days, any suggestions?

    yes did you buy it of somebody or a well known company such as apple or carphone warehouse?
    and i mean the phone would have been activated in the first place with the sim card you get given when you first get the phone.
    trying to activate the phone with another sim card that you did not get when you brought the phone may result in you not being able to activate it
    no worries

  • I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same displa

    I have a problem with my iPhone 5 stopped working the sleep / power and simultaneously refused to obey the HOME button. I can not use either one or the other. I can not enable or disable the device, display lights up when you plug the charger. same display works fine as it is surprising. or maybe someone knows what is the reason for this? is there any way to solve this problem?

    More than likely its a hardware issue, I have never encountered such a problem and best bet is to just go get it replaced. If you have insurance on your device apple will replace it as long as there was no water damage, if you dont have insurance they will charge $200 more or less. Hope you get it fixed

  • Hello.  I recently pieced together a late 2008 MacBook Pro 15".  Everything works fine except the battery constantly goes between "not charging" and "calculating" or, rarely "charging". It does charge after a long while and will report that it is charged.

    Hello.  I recently pieced together a late 2008 MacBook Pro 15".  Everything works fine except the battery constantly goes between "not charging" and "calculating" or, rarely "charging". It does charge after a long while and will report that it is charged.
    I have reset the NVRAM and the SMC a couple of time but that didn't work so I ran an Apple Hardware Test and while testing the logic board it gives the following error:
    4SNS/1/40000000 LB1T
    I've done some research and found this is a temperature sensor related to the battery, but cannot find where the sensor is located in the computer.  Would you know how I can find the sensor to test it?  Could my battery problem be related to something else?  Would a fresh install of Lion help?
    Thank you!
    Mike
    Two pieces of information that may or may not b helpful, the hard drive is from my early 2008 MBP and the only test disc I have access to is from an iMac.

    Why do you have LION installed on that older machine?
    So you say you built a macbook from a bucket of parts eh?   Kudos
    heres a pic of the battery temp sensor

  • So i got my iphone 6 and works fine with the bluetooth on my lexus until i plug in the charger.  When i do so the music you can't hear the music.  When i have it unplugged the music plays fine through the speakers.

    So i got my iphone 6 and the music works fine with the bluetooth on my lexus until i plug it in to the USB charger.  Then you can't hear the music.  When i have it unplugged the music plays fine through the speakers.
    When i get in the car, if the audio is set on bluetooth the music will start playing automatically without me doing anything even if i don't have the music (itunes) running. 

    Hi . I Reset My iPhone & I Do Not Know The iCloud To Get pass Activation Screen.I Need To Find Out My IMEI Number From Here.My Phone Doesn't Take A Sim So It's Not On The Slot. It's Not Located On The Back Of My Phone. & When I Press This "i" on the Home Screen A Different Number Pops Up But Not The IMEI . Can You Please Give Me Answers To Find My IMEI Number !!??

Maybe you are looking for

  • Where is the install package stored from the app store for Lion?

    This is an all new way of deploying OS updates from Apple. From what I can see, this presents some issues: 1. Where is the install package that I bought from the app store, and how can I save that offline? 2. If there's a problem with my device in th

  • Interface not found in Recevier Determination

    Hi, I am trying find out why I cannot see the interface i created in the IR in ID.  The sceanio is IDOC via HTTP to XI to R/3. 2 Comm channels are setup, 1) HTTP sender for business service and 2) an IDoc recvier for the R3 system. The repository pro

  • Can't deactivate Acrobat XI Pro

    I have Acrobat XI Pro installed on a Windows 7 and a Windows 8 computer.  I want to deactivate one of the installations and move it to another computer.  On both installations under Help there is no "Deactivate" menu entry. This is not part of a volu

  • IDVD and Compressor vs DVD SP

    f I prepare a MPEG2 file with Compressor and add that video file to an i-DVD project, will the image quality be better than if I simpy use i-DVDs own internal encoding? Will i-DVD recognize that the video file has ALREADY been encoded and NOT encode

  • Downloading Windows 7 Online

    Hello I was trying to set up my mac to be able to run windows 7 using bootcamp by downloading windows 7 off of a website my college uses to provide students with free access to microsoft products. The problem I am having is my mac won't open the wind