Thursday, December 20, 2012

ADF : Issue with Popup and setPropertyListener

ADF : Issue with Popup and setPropertyListener

I am trying to launch popup on button click and on same event I want to set some property on same event. I was facing issue on that "popup is getting launched but property is not setting to target variable". 

After trying a lot of combination finally I solved issue.

If you are trying to use same then remember following point:
  • Always provide value of triggerType attribute, Value for this attribute must be triggerType="click" only
  •  When using the setPropertyListener define the type="action"
 Find the code snapshot  


Using above code both action launching popup and setPropertyListener can be invoked.

Note: Reason of this problem is when me didn't provide triggerType in . It take default as action. So action event triggered and get skipped. Always provide type="action" for Listener> and triggerType="click" for showPopupListener>

Enjoy Coding !!!!!!!!!!!!!!!!!!!!!!!!!!!!


  1. Hi amit
    I am new to ADF, can u tell me the exact difference between setActionListener and setPropertyListener please.

    1. Hi GopiNadh Simhadri,

      setActionListener is used only for action events. SetPropertyListener is more generic and can be used other types of events like action, valuechange etc

  2. This was my exact problem. Thank you so much for sharing!! Works like a charm.

  3. Hi Amit,
    I am working on ADF for mobile. On the button click am showing a popup, and as soon as popup appears I have to load a link in the popup.

    I have shown popup and now am trying to open a link in the pop. Please suggest me how can I do that.


  4. Hi,
    On click i am trying to open popup. In popup there is checkbox selection. When i close and open popup checkboxes are selected as default. Anyone can help me on clearing previous checked selection in checkbox when i open popup?

  5. Hi,
    amit i have a requirement where on button click input text field value of that particular button must be shown in a table first row as a read only field ..???

  6. Hi,

    I have a command link in a column in af:table.

    and I open popup programmatically from MyBean- invActionTemp method

    getBindings().getMyDetails().show(new RichPopup.PopupHints());

    The problem is popup is not getting invoked properly everytime.

    Please help.

  7. Hi Amit,

    Your code works good, but the issue is for the first time the values are null, when i click on the
    popup second time, it fetches the value.

    Do you think iam missing any property ?


  8. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a Java developer learn from Java Training in Chennai. or learn thru Java EE Online Training from India . Nowadays Java has tons of job opportunities on various vertical industry.

    Java Online Training

  9. This is quite educational arrange. It has famous breeding about what I rarity to vouch.
    Colossal proverb. This trumpet is a famous tone to nab to troths. Congratulations on a career well achieved.
    This arrange is synchronous s informative impolite festivity to pity. I appreciated what you ok extremely here.

    Selenium interview questions and answers

    Selenium Online training

    Selenium training in Pune

    selenium training in USA

    selenium training in chennai

    selenium training in Chennai


Thanks for your valuable comment. You comment will go live soon.