18 September, 2017

ADF : Send Parameter to actionListener method inside Bean

actionListener method method can be invoked by Adf Button , Link and Image.
actionListeners methods have only one parameter of type javax.faces.event.ActionEvent.

if requirement is to send some parameter to that bean method who’s signature is something like
public void myActionListener(ActionEvent actionEvent)

The solution to achieve this requirement is putting an attribute tag from the JSF.Core inside the commandButton (or whatever actionable component you are using). So the code in the jsp page looks like this:



Now i can get the value in the bean method by using below code

public void myActionListener(ActionEvent actionEvent) {
  // Add event code here...
  String paramValue = (String)actionEvent.getComponent().getAttributes().get("paramName");
  System.out.println("paramValue = " + paramValue);
}


13 comments:

  1. Excellent blog I visit this blog it's really awesome. The important thing is that in this blog content written clearly and understandable. The content of information is very informative. Thanks for the excellent and great idea. keep blogging
    Oracle Fusion Financials Online Training
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training

    ReplyDelete
  2. Great Post. The information provided is of great use as I got to learn new things. Keep Blogging.Oracle SCM Training Institutes in Bangalore


    ReplyDelete
  3. That appears to be excellent however i am still not too sure that I like it. At any rate will look far more into it and decide personally!
    excel institute in gurgaon

    ReplyDelete

  4. Hello, I'm too lazy to sign up an account just for comment your article. it's really good and helping dude. thanks!
    Oracle Training Institute in Delhi

    ReplyDelete
  5. Thanks for sharing this
    "Courseafter12th Give you Proper Information of Pradhan Mantri Kaushal Vikas Yojana (PMKVY). Know about pmkvy Scholarship Amount 2020 Details of Training."

    "UP Assistant Teacher Recruitment 2019 2020 primary teacher posts Online application date UP 69000 Assistant Teacher District wise Vacancies."
    PMKVY scholarship

    UP Teacher Bharti

    ReplyDelete
  6. Ultra Thermo Keto UK is a postscript by Ben Letterman that utilizes trinity normally discovered salts to help one trim coefficient. These salts screw will be appeared by the pursuit to be utile at conveying their objectives. Since they establish normally, they don’t include any destructive cut impacts on the soundness of clients either.

    http://ketoreviews.co.uk/ultra-thermo-keto-uk/
    • https://twitter.com/ketoreviewsuk
    • https://ketoreviewsuk.tumblr.com/
    • https://paper.li/e-1583133358#/
    • https://www.instagram.com/ketoreviewsuk/
    • https://www.pinterest.co.uk/ketoreviewsuk/
    • https://www.reddit.com/user/ketoreviewsuk
    • https://www.facebook.com/KetoReviewscouk-103038554435584/
    • https://mix.com/ketoreviewsuk

    ReplyDelete
  7. Thanks a lot for sharing a great blog I was just browsing through the internet looking for some information and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more keep going on it helped me a lot I have gained a lot of knowledge by reading your blog.

    oracle adf training
    oracle adf online training
    oracle adf 11g training
    Oracle adf 12c training
    oracle adf training online

    ReplyDelete
  8. This is my first time go to see at here and i am genuinely pleassant to read all at single place.

    ReplyDelete

  9. Thanks for sharing this great information I am impressed by the information that you have on this blog. Same as your blog i found another one Oracle Fusion Supply Chain Management Cloud . Actually, I was looking for the same information on internet for
    Oracle Fusion HCM Interview Questions and Answers and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject.

    ReplyDelete

  10. Thanks for the nice blog here.I was searching this one for a long time.This blog is very helpful for my studies..I got another one site also,which is same as yours Oracle ADF.Check this one also Oracle Fusion HCM Sure it will be helpful for you too..Once more iam thanking you for your creative blog.

    ReplyDelete
  11. Nice reading, This is an informative information, thanks for sharing this blog.
    Oracle Apps Technical Training in Bangalore

    ReplyDelete
  12. Simply wish to say your article is as astonishing. The clarity in your post is simply great, and I could assume you are an expert on this subject. Same as your blog i found another one Oracle Fusion SCM .Actually I was looking for the same information on internet for Oracle Fusion SCM and came across your blog. I am impressed by the information that you have on this blog. Thanks a million and please keep up the gratifying work.

    ReplyDelete

ADF : Scope Variables

Oracle ADF uses many variables and each variable has a scope. There are five scopes in ADF (Application, Request, Session, View and PageFl...