permaculture playing cards
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

AJAX include rendering Problem

Soeren Liebich

Joined: Apr 21, 2012
Posts: 6

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:

- nav.xhtml
- content.xhtml
- newContent.xhtml

"index.xhtml" looks this:



Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17280

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.

An IDE is no substitute for an Intelligent Developer.
Soeren Liebich

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:
subject: AJAX include rendering Problem
It's not a secret anymore!