what is pagecontext and webbean in oaf
Page Context: - We use Page context in the controller
Methods. We have two Methods in Oaf controller that is Process Request and
Process Form request. OA Framework passes the Page Context as a Parameter in
the Process and Process form request Methods. Page context helps to write the
Controller code in the OAF. With the help of Page context, We do controlling of
the OAF Pages Components for Example :- If we need to Set Value to the OAF page
Item ‘Name’ and then if will Page Context like below.
oapagecontext.putParameter(“Name”);
If we need to get the value of the OAF Page Item field which
is entered by the user in the OAF page then we will use Page Context like
below.
oapagecontext.getParameter(“Name”);
For redirecting to the current page or another page. For
example to redirecting to current page itself use
oapagecontext.forwardImmediatelyToCurrentPage. Or you may use
oapagecontext.sendRedirect(snewpage)
We also use PageContext to get the Control of the
Application module attached to this Page like below
oapagecontext.getRootApplicationModule()
If we are doing debugging of some issue so we can put some
messages in the OAF controller code and can see in the page run time with the
help of Page Context like Below.
oapagecontext.writeDiagnostics
In OAF Page, each components of the page stores in the
Hierarchical Structure and Webbean is a kind of Parameters given by OA
framework which help to get the control of the OAF page components. With the
Help of Webbean we can easily set the properties and behaviors of the OA
framework Page components.
1 comments:
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 Financials Online Training
Post a Comment