Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSF and the fly likes 1.2 Custom Component - Body Content From Backing Bean    Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "1.2 Custom Component - Body Content From Backing Bean    " Watch "1.2 Custom Component - Body Content From Backing Bean    " New topic
Author

1.2 Custom Component - Body Content From Backing Bean

Srividya Sharma
Greenhorn

Joined: Mar 18, 2009
Posts: 1
Hi

I am developing a custom component using JSF 1.2 . My tag class extends UIComponentELTag and has variables of data type ValueExpression.
The values for these are getting set from the corresponding attributes of the tag. (Using setProperties function)
Example,
I am stuck when I try to get the bodyContent of the tag as a binding value.
This is how far I have proceeded:
This is the code in doAfterBody()

If the body of the tag does not contain binding value, this code works fine. I want to check if the body has binding value and then set the value from the bean.
In JSF 1.1, I checked this using isValueReference(body). How do I achieve this in JSF 1.2?

I could not find any examples of getting the body content as binding value anywhere. Please help me out.

Thanks.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: 1.2 Custom Component - Body Content From Backing Bean
 
Similar Threads
Custom Tag with Body (addition of body content)
Custom Tags
New forum for Sun Certified Web Component Developer
Order of Execution? Tag Handler or ManagedBean
Executing the doAfterBody() of a Custom Tag w/ no body