Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

f:view span across files?  RSS feed

 
andree surya
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I have 4 JSP files: header.jsp, content.jsp, sidebar.jsp, footer.jsp
In content.jsp, all 3 other files are included:

The problem is, I want to put a JSF form on each sidebar.jsp and content.jsp.
I want to achieve this by putting <f:view> tag on each file, but apparently it doesn't work.
Only one form appear (in sidebar.jsp), so I assume that in one page there should be only one <f:view>.

So I took the extreme approach: I put <f:view> opening tag in the top most of header.jsp and </f:view> closing tag in bottom most of footer.jsp.
But it doesn't work either. Jetty compalins that <f:view> tag doesn't have a closing tag in header.jsp.

Can anyone help me here? Basically I just want to have 2 JSF forms in one page, but in separate files.
 
andree surya
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, it's okay. I just found out about <f:subview> tag.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!