• Skip to primary navigation
  • Skip to main content

Tech Honey

The #1 Website for Oracle PL/SQL, OA Framework and HTML

  • Home
  • HTML
    • Tags in HTML
    • HTML Attributes
  • OA Framework
    • Item in OAF
    • Regions in OAF
    • General OAF Topics
  • Oracle
    • statement
    • function
    • clause
    • plsql
    • sql
You are here: Home / OAF Miscellaneous / How to get value from a FormValue bean in Controller?

How to get value from a FormValue bean in Controller?

October 27, 2012 by techhoneyadmin

It’s very easy to get value from a formValue bean, but until you know it, it seems to be difficult.

So let’s try to understand how to get value from a formValue bean. Before going furthere I assume that you have a page XxTrialPG and a controller XxTrailCO and also a formValue in the page XxTrialFormValue and the formValue bean has some value that you want to capture in a variable in your XxTrialCO controller.

Let’s take this in steps for easy understanding and rememberance.

Step 1: To get the value of form value in a controller, please create a handle of the formvalue bean as given below.

OAFormValueBean handleFormValue = (OAFormValueBean)webbean.findChildRecursive(XxTrialFormValue);

Step 2: Create a String type variable and fetch the value using the handle created by calling a method named getValue(pageContext) –

String strFormValue = handleFormValue.getValue(pageContext);

And that’s it, you now just now fetched the value of a formValue bean in a String type variable.

Thanks for reading,

Take Care

Filed Under: OAF Miscellaneous Tagged With: formValue get value, get value from formvalue bean, get value from formvalue in controller

Copyright © 2023 · Parallax Pro on Genesis Framework · WordPress · Log in