< af:setPropertyListener > does not work

Dear all,

Need your help to understand a problem. I use JDeveloper 12 c. I have a < af:inputNumberSpinbox > and I need to store the value of user input in a Backing Bean.

I use < af:setPropertyListener > to store the value of user input directly in the Backing Bean. But it does not work.

<af:inputNumberSpinbox value="#{bindings.loginAttemptsAllowed.inputValue}" label="#{bindings.loginAttemptsAllowed.hints.label}" id="ins1" autoSubmit="true">
    <af:setPropertyListener from="#{bindings.loginAttemptsAllowed.inputValue}" to="#{pageFlowScope.serverProperties.loginAttemptsAllowed}" type="valueChange"/>
</af:inputNumberSpinbox>

Whereas if I create a ValueExpression and you call GetValue, it works perfectly. What could be the problem in the code above?

FacesContext fc = FacesContext.getCurrentInstance();
ELContext elContext = fc.getELContext();
ExpressionFactory eFactory = fc.getApplication().getExpressionFactory();
ValueExpression ve = eFactory.createValueExpression(elContext, "#{bindings.loginAttemptsAllowed.inputValue}", Integer.class);
loginAttemptsAllowed = (Integer) ve.getValue(elContext);

Thanks in advance.

Your event type is 'valueChange. ValueChangeEvent is delivered at the end of the phase VALIDATION and before the stage of UPDATE_MODEL, so your is called before the new value is stored in the model, so that you get the old value.

Dimitar

Tags: Java

Similar Questions

  • SetPropertyListener does not work in the link to the order table

    Hello

    My SetPropertyListener seems to work, even though my code looks simple and straight to the point. It works perfectly out of the table.

    Here is my code, action "changeSchedule" simply reminds the same page in the taskflow sense

    <af:table value="#{bindings.FormSchedsView1.collectionModel}"
                        var="row" rows="#{bindings.FormSchedsView1.rangeSize}"
                        emptyText="#{bindings.FormSchedsView1.viewable ? 'No data to display.' : 'Access Denied.'}"
                        fetchSize="#{bindings.FormSchedsView1.rangeSize}"
                        rowBandingInterval="0" id="pt_t2">
        <af:column sortProperty="#{bindings.FormSchedsView1.hints.SchedName.name}"
                             sortable="false"
                             headerText="#{bindings.FormSchedsView1.hints.SchedName.label}"
                             id="pt_c2">
            <af:commandLink id="pt_ot2" text="#{row.SchedName}" action="changeSchedule">
                <af:setPropertyListener from="#{row.SchedName}"
                                                                to="#{requestScope.MySchedName}"
                                                                type="action"/>
            </af:commandLink>
        </af:column>
    </af:table>
    
    [...]
    
    <af:panelGroupLayout layout="horizontal" id="asdas123121">
            <af:spacer height="50" id="asdasda123123"/>
            <af:commandLink text="test123"
                                            action="changeSchedule" id="asdaqwe1231">
                <af:setPropertyListener type="action" from="#{'FIXED'}"
                                                            to="#{requestScope.MySchedName}"/>
            </af:commandLink>
    </af:panelGroupLayout>
    
    [...]
    
    <af:outputText value="MySchedName = #{requestScope.MySchedName}"
                                 id="outputText1" styleClass="titleLevel1"/>
    

    Notes:

    -J' tried with SetPropertyListener and SetActionListener... None work

    I have it!

    It was because I did not have any attribute "Key" on the original Version.

    That's what I hate about ADF! I spent almost a day full troubleshooting the error, find that error is so far away where it happens

  • Why Setpropertylistener does not work on selectbooleanradio?

    Dear all,

    Use case:
    I am looking for a declarative approach on how to make a selectbooleanradio that uses a PPR
    setpropertylistener.

    Please see my code below:
    I have two radio button which the user can choose to old or new.
    When you click on the radio button, I wanted to a text input is displayed only when the transaction is new.
    <af:selectBooleanRadio text="Old Transaction" label=""
         id="sbr1" group="transaction"
         autoSubmit="true" selected="true">
      <af:setPropertyListener from="#{'old'}"
         to="#{pageFlowScope.transaction}"
         type="valueChange"/>
    </af:selectBooleanRadio>
    
    <af:selectBooleanRadio text="New Transaction" label=""
       id="sbr1" group="transaction"
       autoSubmit="true">
      <af:setPropertyListener from="#{'new'}"
       to="#{pageFlowScope.transaction}"
       type="valueChange"/>
    </af:selectBooleanRadio>
    
    <af:panelGroupLayout id="pgl3" partialTriggers="sbr1 sbr2" rendered="#{pageFlowScope.transaction eq 'new'}">
      <af:outputText value="Transaction Option" id="ot4"/>
    </af:panelGroupLayout>
    I put autosubmit true and set the trigger appropriate, but it does'nt work and nothing happens.

    I don't want this code in java and I wanted just a declarative approach.

    Any tips?

    JDEV 11G PS3

    Hello

    Here's where you fool you

       
            
        
    

    The layout of the Panel group cannot PPR'ed if rendering is set to false. You must move the definition of partialTriggers to a parent container (for example, af:form, or add one)

    Frank

  • Safari does not work after installing macOS Sierra

    Safari and apple store does not work after installing macOS Sierra

    Alas, my crystal ball is in the shop for cleaning, so you will need to provide more details on what "doesn't work" and above all error messages. First of all, let's start the App Store. Provide as much information as possible for those of us who do not sit on your shoulder.

  • My iPad Apple 3rd generation wifi + his cell phone does not work

    MY 3rd generation Apple iPad, wifi + cell

    model number MD408LL/a

    Serial number DM * VGL

    THE SOUND DOES NOT WORK

    < personal information under the direction of the host >

    All sounds, or simply notification and sounds apps (for example do music and videos app still have sound)? If notifications and apps you have notifications on mute: on the iPad side switch - Apple Support ? If the sounds in all applications which have tried for example soft-reset/reboot of the iPad, insert/remove the headphones?

  • After recent, iPhone, 6, update, Windows, Explorer, does not work, see, iPhone

    I installed the latest update required for my iphone ios 6 a few days ago, and now when I try to download pictures from my iphone to my PC (via USB connection), the PC does not see the iphone.   iTunes sees it yet, but windows Explorer does not work.  It seems that some setting has been broken through the update of ios.  A way to solve this problem?

    Restart the computer and the iPhone. Unlock the iPhone before connecting it to the computer. Any change?

    TT2

  • Open the link behind Mail does not work

    Sierra using my link opened behind Mail does not work. The link opens on the top of the window.

    This option works for me in Sierra... is working for you with your previous version of the OS?

  • iPhone 5 home button does not work after ios 10

    My 5 Iphone Home button does not work after update final IOS version of 10.

    The home button works on the first push to wake the phone but it will not open the phone the second button.

    I activated the assist button, which does not work either. But what I discover is if I open device for assistance then touch and lock screen click on the button home will work once to open the phone. If I open any app I can't close it unless I go through the same routine.

    You attempted to restart your phone?

    You can do so by holding the sleep/wake button and the Home button simultaneously until the Apple logo appears

  • Do not disturb (on request) does not work

    I have an iPhone 7 more with iOS 10.0.2. I had set up as NEW when I got it. I use the function do not disturb I SLEEP every night to block the incoming notifications apps and emails (including work with the application Outlook email). I leave the phone won't cut not so I can make sure my alarm wakes me up the morning. But it does not work. I still wake up emails and notifications of the app. It worked on my old iPhone with iOS 6, 8, 9 or even 10.

    I see a lot of old messages and questions about DND not work, but they were more specific to older phones and ' iOS.

    Anyone else having this problem?

    Any ideas for help?

    Thank you.

    I'm sure that I understood this.

    I had "only when locked" checked and not 'always' in settings do not disturb.

    I leave my iPhone unlocked all night using the bedside table Central app as my alarm clock.

    There we go.

  • Contact ID does not work after update iOS10.0.2

    http://www.Macworld.co.UK/how-to/iosapps/iOS-10-troubleshooting-tips-3646690/

    Troubleshooting iOS 10 tips: Touch ID does not work

    Some users have reported that a previously happy Touch ID installation stopped working when they made the update to iOS 10. It is a pain, but rescuable - you will probably need erase your fingerprints and re-enter.

    First, however, try something simpler: go to settings > Touch ID & password, enter your password, then press the buttons next to pay Apple and iTunes and App Store so that they become white. Turn off your iPhone and turn it off again, then go back to settings and turn the two knobs back to green (you will need to enter your password Apple ID).

    Who fixed the problem?  I haven my Aff!

    If not, go through the fingerprint stored in settings > Touch ID & password - press each of them in turn - then erase fingerprints. Then go back and press Add A digital footprint and put back them in. It's a bit complicated, but it should fix the problem.

    I did all that, but the problem could not be solved.

    Try the following steps:

    1. go in the settings, press button ID & password, enter your password. Then turn off iTunes and App Store. Restart your iPhone or iPad. Return to Touch ID and password in the settings and re - turn on iTunes and App Store. Press Add a fingerprint to add another print.

    2 remove and re-add fingerprints: settings > Touch ID & password > enter your device code > scroll to find fingerprints fingerprints. Press the fingerprint, that you want to remove, and then press DELETE.

    3. restart your iPhone by pressing and hold the Sleep/Wake and home.

  • Projector does not work after upgrade from Sierra

    My projector does not work after upgrade to Sierra. Or search in Outlook (I use outlook for Mac due to having MS 365 for labour) or the search function in the finder. I use this all the time and need this feature back. I tried to reindex spotlight and nothing. Anyone has any ideas.

    Try to rebuild Spotlight rebuild the Spotlight to your Mac - Apple Support index

  • Scan with preview - several Pages of a PDF THAT does not work in Mac OS Sierra

    Hello everyone,

    I had upgraded my Macbook Pro (early 2011) to Mac OS Sierra. A famous feature of older versions of Mac OS is to use Preview to scan documents to PDF format, joined the pages scanned all of a single document.

    After upgrading to Sierra this feature does not work correctly. The pages are not more combined into a single PDF. Anyone who has observed the same problem?

    Best regards from the Germany

    Jörg

    Yes, it's been posted here several times.

  • My Apple TV remote 3rd generation A1294 doesn't aluminum A1394 does not work properly, the battery is and I have tried all the resets including factory reset.

    My Apple TV remote 3rd generation A1294 aluminium does not work properly, battery is good, and I tried all the resets including factory reset. the battery compartment is clean.

    You don't say what you mean by not working not properly, however...

    Your Apple TV can become affiliated with another remote control. Hold the remote control close to and pointed on the Apple TV, press and hold the menu and rewind buttons together for 6 seconds or until you see an icon of the chain broken on screen.

  • IOS 10.0.2 cameras does not work (only in black)

    Camera and camera back does not work (all black), I reset my iphone from the PC and the phone, but does not please you see in the picture. Help.

    Hello

    It may help to follow the steps detailed here, including forcing the camera nearby application:

  • photo sharing does not work as it should in the Sierra of the BONE

    I took 11 pictures yesterday, and I want to share only 3 of them. I highlight the 3 photos, click on sharing of arrow, and pictures of 11 highlighted.

    Are your 11 photos recently imported into an album, and id you select in an albumen?

    There has been some reports, selection of photos to change the batch does not work well, when photos were selected anywhere, but in the tab 'Photos' smuggled to the full album can be selected, even if not all photos are highlighted.

    Try, if you can select the photos in a moment to share your photos select only.

Maybe you are looking for

  • When I go to a Web page on Mozilla, nothing appears on any site

    No matter what page to go on Mozilla, nothing appears and I mean anything! I have tried different pages, saved pages, pages marked with a bookmark and nothing, it gives me just a white screen. Not only that I don't have a menu button. Can someone hel

  • "This Skype account is already merged.

    When I try to connect to Skype it asks me to merge my Skype account, then tells me that it is already merged and won't let me log on

  • ProBook 4740 s: drivers not found

    I am trying to find the drivers for my Probook s 4740: PCI\VEN_8086 & DEV_1E31 & SUBSYS_1846103C & REV_04PCI\VEN_8086 & DEV_1E31 & SUBSYS_1846103CPCI\VEN_8086 & DEV_1E31 & CC_0C0330PCI\VEN_8086 & DEV_1E31 & CC_0C03 PCI\VEN_197B & DEV_2393 & SUBSYS_17

  • Blue screen of death * STOP: 0x0000007E Please help

    A problem has been detected and windows has shut down to prevent damage to your computer.  If this is the first time you've seen this Stop error screen, restart your computer. If this screen appears again, follow these steps: make sure that you have

  • cannot restart dirve CD or hard drive

    I'm working on a friend's computer, a shitty Compaq Presario CQ60, running Vista. Now the computer cannot start from the CD drive or HD. Each time, computer throws this error window "need to restart the installation. I have access to advanced and tri