How can i make the valueChangeListener works for all item under foreach?

Hi,
My jspx file have the following content:
<af:forEach items="#{pageFlowScope.directiveStep.paraItems}"
                                                   var="item">
                                          <af:panelLabelAndMessage label="#{item.name}"
                                                                   id="plam2"
                                                                   for="soc1">
                                             <af:panelGroupLayout id="pgl2"
                                                                  layout="horizontal">
                                                <af:selectOneChoice id="soc1"
                                                                    value="#{item.howValue}"
                                                                    required="true"
                                                                    valueChangeListener="#{pageFlowScope.directiveStep.howToSetDirectivePropValueChange}"
                                                                    autoSubmit="true">
                                                   <f:selectItem value="Set Value}"
                                                                  id="si1"/>
                                                  <f:selectItem value="Choose a Value"
                                                                  id="si1"/>
                                                </af:selectOneChoice>
                                                <af:switcher facetName="#{item.selectWay}"
                                                             id="switch1">
                                                   <f:facet name="true">
                                                      <af:selectOneChoice id="soc2"
                                                                          required="true"
                                                                          value="#{item.value}">
                                                         <f:selectItems value="#{pageFlowScope.directiveStep.procVarItems}"
                                                                        id="si2"/>
                                                      </af:selectOneChoice>
                                                   </f:facet>
                                                   <f:facet name="false">
                                                      <af:inputText id="it1"
                                                                    required="true"
                                                                    value="#{item.value}"/>
                                                   </f:facet>
                                                </af:switcher>
                                             </af:panelGroupLayout>
                                          </af:panelLabelAndMessage>
                                       </af:forEach>
The ui is like:
label name     |    selectOneChoice : 'Set Value' or 'Choose a Value'   |        inputText (if it is 'Set Value') / selectOneChoice (if it is 'Choose a Value')
The weird thing is when i click the selectOneChoice of the two or later row, the ValueChangeListener will be invoked, it indeed change the value  of 'selectWay' correctly. But the UI will not update. If later i do the same thing to the first row, all other rows in UI will update corrently.
Any suggestions? Very appreciated for any repiles.
Thanks.

Hi,
on problem I spot is that all your components created by the forEach loop have the same ID value. I suggest you change the ID to e.g. id="soc_#{item.index}" for zhe select one choices. In addition, I don't see where you refresh components after the change
Frank

Similar Messages

  • How can I make the thesaurus work for spanish words?

    I have been using pages for about 4 months now, and usually I use it in english. I am currently writing a document in spanish but I can't manage to make the thesaurus, dictionary and wikipedia work for spanish words. I really need this to find synonyms.
    Any idea what do I need to do? I don't want to change the whole pages into spanish, nor I want the spanish spell check (I know how to do that), I only need the thesaurus.

    Dear me, doesn't Español work?

  • How can I have the articles listed for all of the asssortments?

    How can I have the articles listed for all of the asssortments without any condition? Is there any customization for this?

    Can you make some explanation? Is it OK if I choose "02 - Listing without qualification" as listing procedure?

  • How can I make the typeface larger for the Calendar?

    How can I make the typeface larger in Ical calendar?

    Thank you Wayne, that worked perfectly. I now wonder why I never tried that, a ~20 year Mac user!
    Paul

  • How can I make a catalog avaiable for all accounts on a laptop?

    At the moment the PSE11 (windows-version) catalog is saved in my pictures folder. Because my wife also uses the laptop (with Win 8.1) I now want to move the catalog from my private folder to a public folder on the laptop that is accessible for both accounts.
    1 Question: how can I move the catalog?
    2. After moving: are both accounts able to access the catalog with PSE11?
    3. After moving the catalog: do I need to move the folder with the pictures too (i suppose: yes)?
    Any hints much appreciated.

    The inability to merge accounts has been around since they first started using Apple IDs.  An issue almost ten years in the making, that one. 
    What I did was just use my Apple ID for my iTunes purchases and create the @me.com address to go with it.  However, you can sign in with both on your devices to use one for your email and sycning and the other for purchases.
    Apple did include this article for us in that department: http://support.apple.com/kb/HT4895

  • How can I make the links work when the site is published.

    I am a new iWeb user and have built the website www.realmoroccotours.com and am having a few problems that I hope someone can help me with.
    First - in Iweb everything works fine but when it is published the links in the top and bottom menu do not work. If I clic on the link before the page is fully loaded it odes work. My host gave me the following information but I have no idea what it means or how to fix it. I have rebuilt the whole site but still the same thing happens.
    +> One of your javascript files that you have installed in the header of the main+
    +> page is blocking the screen with transparent image preventing links from+
    +> clicking. Please remove conflicting javascript and reload that page again.+
    Secondly, the site loads very slowly - although not all the time. Any suggestions on how to make it faster loading would be appreciated.

    All it means is that the image is blocking the navigation menu/overlapping - all you need to do is move it out of the way and the menu should work. Do a view all in iWeb and you can then see what is overlapping and what you need to move.
    You could also build your own nav menu if you like so that your site will be found more easily - javascript, which the iWeb menu is, is not always found that easily. You don't need to re-build the whole site - just the nav menu.
    If you want to speed up your site, then you could try using Web Crusher or iWeb Maestro to speed it up - you need to do this post publishing though, so publish to a local folder and then run it through either of these to get rid of the bloated code that iWeb creates and then upload your site.

  • How Can I Make TouchEvent.TOUCH_BEGIN work for a Slider?

    Hi,
    I'm building an application that has a slider. The slider works great using TOUCH_BEGIN, TOUCH_MOVE, and TOUCH_END events. The problem occurs when the user is touching anywhere else on the screen then uses another finger to move the slider at the same time. The slider will not function. The first touch is being detected by the parent of the parent of the slider.
    I know it has something to do with a TOUCH_BEGIN event being registered by the first touch. But using evt.touchPointID and setting a touchMoveID value (as suggested in Adobe's docs) doesn't seem to have any affect. Also, setting mouseEnabled to false on the slider.parent.parent clip does not help which I really don't get at all.
    Can anyone help me figure this out? Is there a way to ignore the other TOUCH_BEGIN event or a way to prevent it in the first place?
    Many thanks!

    Once I activate the slider with a begin event, the slider moves no matter where I am on the screen. This is because I put the event listener for the move and end events on the stage. The slider is not a component. I built it. I'm using the code under the Touch Point ID section found here as a model:
    http://help.adobe.com/en_US/as3/dev/WS1ca064e08d7aa93023c59dfc1257b16a3d6-7ffe.html
    Thanks for your persistence. I've been at this for several hours today.

  • How can I make CONTAINS query work for a date range

    In either 9i or 10g (eventual). I have a CONTEXT index that contains multiple columns from multiple tables and using a USER_DATASTORE. E.g., I have names that come from 3 different table locations and dates that come from 4. I can index them fine but how can I perform a single consolidated CONTAINS query against the single CONTEXT index to do the following:
    smith WITHIN lname AND john WITHIN fname AND dob BETWEEN '19870315' and '19970315'
    I know that I can use a mixed query but this is inefficient (esp since I have birth dates in multiple tables). Is there any algorithm for a range operator (>, <, between?) within the CONTAINS operator?
    CTXCAT index is not an option, as I have many text columns I am searching.
    Thanks!

    When you run the cdstore.sql, in addition to creating the ctx_cd package, it also creates the friedman package that contains the algorithm that the ctx_cd package uses. You could use the functions from that friedman package in your procedure for your user_datastore and in the creation of your query string, as demonstrated below.
    SCOTT@orcl_11g> CREATE OR REPLACE PROCEDURE my_proc
      2    (p_rowid IN           ROWID,
      3       p_clob     IN OUT NOCOPY CLOB)
      4  AS
      5  BEGIN
      6    FOR r IN
      7        (SELECT emp.ename, emp.job, emp.hiredate, dept.dname
      8         FROM      emp, dept
      9         WHERE  emp.deptno = dept.deptno
    10         AND      emp.ROWID = p_rowid)
    11    LOOP
    12        DBMS_LOB.WRITEAPPEND (p_clob, 7, '<ename>');
    13        DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r.ename), r.ename);
    14        DBMS_LOB.WRITEAPPEND (p_clob, 8, '</ename>');
    15        DBMS_LOB.WRITEAPPEND (p_clob, 5, '<job>');
    16        DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r.job), r.job);
    17        DBMS_LOB.WRITEAPPEND (p_clob, 6, '</job>');
    18        DBMS_LOB.WRITEAPPEND (p_clob, 7, '<dname>');
    19        DBMS_LOB.WRITEAPPEND (p_clob, LENGTH (r.dname), r.dname);
    20        DBMS_LOB.WRITEAPPEND (p_clob, 8, '</dname>');
    21        DBMS_LOB.WRITEAPPEND (p_clob, 10, '<hiredate>');
    22        -- apply friedman algorithm to date column ------------------
    23        friedman.init
    24          (TO_NUMBER (TO_CHAR (TO_DATE (19000101, 'YYYYMMDD'), 'J')),
    25           TO_NUMBER (TO_CHAR (TO_DATE (21001231, 'YYYYMMDD'), 'J')));
    26        DBMS_LOB.WRITEAPPEND
    27          (p_clob,
    28           LENGTH (friedman.encodedate (r.hiredate)),
    29           friedman.encodedate (r.hiredate));
    30        --------------------------------------------------------------
    31        DBMS_LOB.WRITEAPPEND (p_clob, 11, '</hiredate>');
    32    END LOOP;
    33  END my_proc;
    34  /
    Procedure created.
    SCOTT@orcl_11g> SHOW ERRORS
    No errors.
    SCOTT@orcl_11g> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('my_datastore', 'USER_DATASTORE');
      3    CTX_DDL.SET_ATTRIBUTE      ('my_datastore', 'PROCEDURE', 'my_proc');
      4  END;
      5  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> CREATE INDEX my_index ON emp (ename)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('DATASTORE     my_datastore
      5        SECTION GROUP CTXSYS.AUTO_SECTION_GROUP')
      6  /
    Index created.
    SCOTT@orcl_11g> EXEC DBMS_STATS.GATHER_TABLE_STATS (USER, 'DEPT')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> EXEC DBMS_STATS.GATHER_TABLE_STATS (USER, 'EMP')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> VARIABLE cstring VARCHAR2(4000)
    SCOTT@orcl_11g> BEGIN
      2    :cstring := 'smith WITHIN ename';
      3    :cstring := :cstring || ' AND ' || 'clerk WITHIN job';
      4    :cstring := :cstring || ' AND ' || 'research WITHIN dname';
      5    -- apply friedman algorithm to search criteria ---------------------------
      6    friedman.init
      7        (TO_NUMBER (TO_CHAR (TO_DATE (19000101, 'YYYYMMDD'), 'J')),
      8         TO_NUMBER (TO_CHAR (TO_DATE (21001231, 'YYYYMMDD'), 'J')));
      9    :cstring := :cstring || ' AND ((' ||
    10               friedman.integercontainscriteria
    11                 (TO_NUMBER (TO_CHAR (TO_DATE ('19800315', 'YYYYMMDD'), 'J')),
    12                  TO_NUMBER (TO_CHAR (TO_DATE ('19810315', 'YYYYMMDD'), 'J')),
    13                  'B')
    14               || ') WITHIN hiredate)';
    15    ---------------------------------------------------------------------------
    16  END;
    17  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11g> SET AUTOTRACE ON EXPLAIN
    SCOTT@orcl_11g> SELECT *
      2  FROM   emp
      3  WHERE  CONTAINS (ename, :cstring) > 0
      4  /
         EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
          7369 SMITH      CLERK           7902 17-DEC-80        800                    20
    Execution Plan
    Plan hash value: 1887222286
    | Id  | Operation                   | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT            |          |     1 |    37 |     4   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS BY INDEX ROWID| EMP      |     1 |    37 |     4   (0)| 00:00:01 |
    |*  2 |   DOMAIN INDEX              | MY_INDEX |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       2 - access("CTXSYS"."CONTAINS"("ENAME",:CSTRING)>0)
    SCOTT@orcl_11g>

  • How can I make the wireframe identical for various video clips?

    Hello,
    For the end credits on a small movie, I would like the video clips to be much smaller, and the background to be black. I know how to make the clips smaller on the screen, and this is done by adjusting the wireframe.
    I am trying to have the wireframe remain in its identical size and location across various clips but cannot figure how to do this other than change the wireframe independently for each single video clip, making it an approximate job.
    Is there a way to ensure that the properties of the wireframe (size, position) remain constant for a series of clips? I have tried to find some properties settings for the wireframe which I could replicate for all clips but this search has proved unsuccessful.
    Many thanks in advance for any help.

    Use the Paste Attributes command as detailed in this link:
    http://discussions.apple.com/thread.jspa?threadID=1987781&tstart=15
    Instead of checking the Filters box, check the Basic Motion box.

  • How can i make the bash promt for the root user red ?

    After an Epic battle with Gnome3 and FGLRX i finnaly gave up and installed openbox instead :-)
    I use the xterm terminal and i would like to change the color of the root bash to red but i cannot get this done for some reason.
    I tried several suggestion in /etc/bash.bashrc but none work properly.
    I can change the prompt just fine i just can't get it to recognize the root user and give him a diffirent color.
    All i am looking todo is change the prompt from "dennis@hostname ~]$" to "Dennis" or "Root" and i wish root to be in red.
    Does anyone have this setup down and can ya share the bashrc file with me ? does anyone have suggestion for me ?

    Dennis Beekman wrote:is there no way todo it from /etc/bash.bashrc ? this would apply to all users at once... wich would be much nicer.
    I source this from my /etc/bash.bashrc: http://paste.xinu.at/5KkTu/bash Not exactly what you want, but you get the idea. (I just noticed though that the 'export' statements in all lines are probably incorrect and should be omitted.)
    EDIT: Yes, just tested, sed -i 's|export ||g' prompt.sh, please.
    EDIT2: Also, EXTRAPROMPT is not used in this simplified example, omit that too.
    Last edited by brain0 (2011-08-04 15:44:15)

  • How can I make the default action for Real Player (etc.) to be not to play?

    While browsing with Mozilla, I would prefer not to have videos play unless I start the video. This goes for commercials or any video.
    Is there a preference to set this? If not, can you make one that does that?

    By default plugins.click_to_play should be default set to true. However, please also contact Apple support to make sure that this is expected.
    If there is not an option to override this, it is also possible to set the preference in about:plugins:
    *[https://support.mozilla.org/en-US/kb/why-do-i-have-click-activate-plugins Why do I have to click to activate plugins? ]

  • How can I make the form fields show all inputted text?

    I am trying to create forms to collect customer data.  Currently, when I get them back from the customer, if they have typed in more words than the field box allows for, we have to scroll to read it all.  When we go to print the form, only the text that fits in the box will print.  Help!

    Your choices are:
    Make the field larger.
    Limit the number of characters that can be placed in a field.
    Export o Excel.
    Add a page with one large field with the same name as the problem field.
    Create a dynamic PDF using LiveCycle.

  • How can I make the internet work on the Straight Talk Provider?

    I bought my sons iphone 4 before he want to Afganistan.  At&t said they had to get authorization from Apple to unlock the phone.  It is unlocked and I can send and receive calls on the phone and use wifi internet but I can't get on the internet without wifi.  Is there a solution.  I am using straight talk as my carrier.  I love the I phone but I am not getting the use of it's full potential.  What do I need to do to make it fully operational?

    http://www.prepaidphonenews.com/2012/09/how-to-setup-straight-talk-data-and-mms. html

  • I bought an Apple Airport and the light is flashing a yellow light! I did this because I live in a basement and the modem is in the first floor. I followed the instruction manual and the Airport is not working still. how can I make my Airport work?

    How can I make the Airport work?

    If there is a modem and not a router on the first floor, then the only possible way to get it to work would be an Ethernet cable connection between the modem and the AirPort Express device.
    I think you need to describe your situation in more detail.

  • How can I make my dictionary work?

    How can I make the dictionary work in my ipad2?

    there is no dictionary that comes with the ipad, you download a 3rd party app though.
    Was that your question?

Maybe you are looking for

  • When I try to use the print/save as pdf option, I get a scripting error and Firefox usually freezes.

    On my MacBook Pro running OS 10.5.8 and Firefox 3.6.13, I am trying to save documents as pdfs under the print window, I get a scripting error and Firefox usually freezes/becomes nonresponsive. This happens every time I tried to perform this task.

  • Company code  is not set up for electronic tax return

    hi dear             what is the configuration of e-return salea/purchase . The system cannot execute the taxes on sales/purchases settlement within electronic communication with authorities. when i excute F.12 then message coming  Company code  is no

  • How to include a customer FM in FQEVENTS in the right sequence order?

    Hi everybody, I am trying to include a new function module for event 1788 in tcode FQEVENTS. The default fm is FKK_SAMPLE_1788_B. I still want this one to be in place, I don't want to replace it. What I need is to program a ZFKK_SAMPLE_1788_A to do s

  • How to cancel an engineer appointment?

    How do I cancel an engineer appointment, as the problem I had has now been rectified? I have been calling the Sky number all evening and trying to get somebody on live chat but to no avail.  The engineer is due tomorrow between 8am and 5pm.  I would

  • Upgrade 10.4 to 10.5 virtual users

    Hi, I am planning on migrating 10.4 users to a new 10.5 machine. I plan to follow the Upgrading and Migrating <http://images.apple.com/server/macosx/docs/Upgradingand_Migratingv10.5.pdf> guide to get all their mail moved. One question I have is that