• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

AJAX include rendering Problem

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
Saloon Keeper
Posts: 26290
186
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 brought this back from the farm where they grow the tiny ads:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic