Tuesday, July 23, 2019

Showing Parameters passed in the URL in a page – Oracle ADF

In ADF Application we can read the parameters passed in the URL and display them as an output text using a simple EL (Expression language).
#{param.paramName}

Sample Jspx page:
1
Page in browser:
2If your requirement is to show the URL passed in parameter data in the input text field and if there is no parameter data passed then show it as an input text field, then you can use below given EL which is having the ternary condition.

<af:inputText value=”#{param.dept eq null? bindings.DepartmentId.inputValue: param.dept}” />

Browser output when URL: 
3.PNG
Browser output when URL: 
4.PNG

This post is intended to show how the requirement can be fulfilled with the help of EL.

No comments:

Post a Comment