File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes AJAX include rendering Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "AJAX include rendering Problem" Watch "AJAX include rendering Problem" New topic
Author

AJAX include rendering Problem

Soeren Liebich
Greenhorn

Joined: Apr 21, 2012
Posts: 6
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

Joined: Jun 25, 2001
Posts: 16305
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Soeren Liebich
Greenhorn

Joined: Apr 21, 2012
Posts: 6
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
 
subject: AJAX include rendering Problem