Pages

Friday, May 4, 2012

Using JSTL Functions in ADF Page

This post will illustrate how can we use the JSTL functions in you ADF Jspx/Jsff pages.

A friend came with following problem :

Attribute Value : +1100WWS displayed in a table column with some inlineStyle.
Same attribute value needs to be displayed in following manner
+ -> with a different inlineStyle
-> with another inlineStyle.

Business Service Layer used in his project EJB. If it would have been ADF BC, I would have recommended creating transient attribute and all. Now I don't have any idea on EJB, I started looking for something to do on expression Language on ADF page. Simple google Search - subString operation in Expression Language.

Answer is - Use JSTL.

How to use JSTL -
1. Add JSTL function in your tag library.






2. Include namespace in your jsff.



3. Use JSTL functions in your expression language.






Src: http://www.tutorialspoint.com/jsp/jsp_standard_tag_library.htm


Enjoy...