Sridhar Ponnusam

Greenhorn
+ Follow
since Dec 16, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sridhar Ponnusam

ok. Did you try using "globalOnly" attribute of h:messages tag. true/false.



13 years ago
JSF
Hi,
did you try this way?
don't include <f:subview> in your main jsp just include jsp asusual.

<jsp:directive.include file="pie.jsp"/>

and inside the pie.jsp

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<f:subview id="pieJsp">
<h:form id="pieForm">
<h: outputText value="outputText"></h: outputText>
</h:form>
</f:subview>

try this...
13 years ago
JSF
still you can use h:messages tag.
For example, How can I show a confirmation message after successfully persist data in database/ or a business validation message.

Java side code:
FacesContext context = FacesContext.getcurrentInstance();
context.addMessage(null, MessageUtils.getMessage(context, "Deatils saved successfully"); // we are passing component id as null here.

In UI:

<h:messages layout="table"/>

Dont specify "for" attribute here. It will show all the messages.
13 years ago
JSF