File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "problems with <f:subview>" Watch "problems with <f:subview>" New topic

problems with <f:subview>

Javi Lopez

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.
Sridhar Ponnusam

Joined: Dec 16, 2009
Posts: 3
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="" prefix="h" %>
<%@ taglib uri="" prefix="f" %>

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

try this...
Javi Lopez

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

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>
It's not a secret anymore!