Inline message using Jsf

7 views
Skip to first unread message

dharmendra sahoo

unread,
Nov 23, 2009, 1:29:28 AM11/23/09
to bojug
Hi,
     suppose I am submitting a form that time I need to show success or failure as inline message mean at the same page using jsf.I am thinking to use h:messages but I am not getting how to use .....

--
Thanks
-Dharmendra

Shekhar Gupta

unread,
Nov 24, 2009, 11:51:36 AM11/24/09
to bo...@googlegroups.com
Hi Dharmendra,
       I guess you can construct faces messages at Managed Bean level and add them to faces context. Since you want to stay on the same page, return null from the managed bean action class.

<h:messages> would capture all the faces messages but if you want an inline message along with a component and you want message to be specific to that component, then you can use <h:message id="component id">.




--

You received this message because you are subscribed to the Google Groups "Bangalore Open Java Users Group- BOJUG" group.
To post to this group, send email to bo...@googlegroups.com.
To unsubscribe from this group, send email to bojug+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bojug?hl=.



--
Thanks & Regards,
Shekhar Gupta
I blog at http://shekhargupta.wordpress.com/

Reply all
Reply to author
Forward
0 new messages