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);
}


11 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.
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training
    Oracle Fusion Financials Online Training
    oracle fusion financials classroom training
    Workday HCM Online Training
    Oracle Fusion HCM Classroom Training

    ReplyDelete
  2. 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.
    Oracle Fusion HCM Online Training
    Oracle Fusion SCM Online Training
    Oracle Fusion Financials Online Training
    oracle fusion financials classroom training
    Workday HCM Online Training
    Oracle Fusion HCM Classroom Training

    ReplyDelete
  3. 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
  4. 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
  5. 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

  6. 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
  7. Courseafter12th institute offers Best Web Designing in Delhi. We offer website design education for bringing experts. Call Now & GET SCHOLARSHIP DISCOUNT ON DIPLOMA COURSES at 8860222625.
    Best Web Designing in Delhi
    Best E-accounting Institute in Delhi
    Best Tally Course in Delhi

    Arth is very good in its Student's placement by its 100% placement assist policy. There are many businesses tied up with Arth all groups are true and trending in Best Web Designing Institute in Delhi.
    Best Web Designing Institute in Delhi

    ReplyDelete
  8. Thanks for sharing information
    "Pressure Vessel Design Course is one of the courses offered by Sanjary Academy in Hyderabad. We have offer professional
    Engineering Course like Piping Design Course,QA / QC Course,document Controller course,pressure Vessel Design Course,
    Welding Inspector Course, Quality Management Course, #Safety officer course."
    Piping Design Course
    Piping Design Course in India­
    Piping Design Course in Hyderabad
    Welding Inspector Course
    Quality Management Course
    Quality Management Course in india
    Safety officer course

    ReplyDelete
  9. 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
  10. 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

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...