Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problems with <f:subview>

 
Javi Lopez
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have forgotten this, the solution is:



And pie.jsp:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic