• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 27762
196
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.
 
Please do not shoot the fish in this barrel. But you can shoot at this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic