File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX include rendering Problem

 
Soeren Liebich
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I've got some Problme with the commandLink and the rendering of includes. When I try to call the site I paste below I get this Exception below.
My goal is to navigate with Ajax and changing the include site in the content area.
What am I doing wrong?



My file structure is looking this:

index.xhtml
/nav
- nav.xhtml
/content
- content.xhtml
/newContent
- newContent.xhtml

"index.xhtml" looks this:


IndexBean.java:


"nav/nav.xhtml"


"content/content.xhtml"


"newContent/newContent.xhtml"
 
Tim Holloway
Saloon Keeper
Pie
Posts: 17646
39
Android Eclipse IDE Linux
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "render" attribute must refer to an XML element whose "id=" attribute has a value of "content". You didn't define any. A "name=" attribute isn't good enough. Although as far as I can recall, no "f" namespace tag represents a renderable object, so just putting an 'id="content"' on your "f:param element isn't going to help either.
 
Soeren Liebich
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the file "index.xhtml" I have an div-tag with an id "content". The "content" in f:param is a key value in the request.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic