aspose file tools*
The moose likes JSF and the fly likes problems with <f:subview> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "problems with <f:subview>" Watch "problems with <f:subview>" New topic
Author

problems with <f:subview>

Javi Lopez
Greenhorn

Joined: Jun 16, 2005
Posts: 6
Hi everybody,

I have a problem with the tag <f:subview>, I have tried to use it in diferent ways:



with flush="true" and withow it, the pie.jsp code:






h : outputText sorruended by <f:view> or by <h:form> and doesn't work, any idea?

Thanks in advance.
Javi.
Sridhar Ponnusam
Greenhorn

Joined: Dec 16, 2009
Posts: 3
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...
Javi Lopez
Greenhorn

Joined: Jun 16, 2005
Posts: 6
Hi, I have try it but it doesn't work for me, I had no error but I can see the code included in pie.jsp, when I click on "show sorce code" on the page rendered I just can see:


Thanks any way.
Javi Lopez
Greenhorn

Joined: Jun 16, 2005
Posts: 6
I have forgotten this, the solution is:



And pie.jsp:

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problems with <f:subview>