• 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

Something missing with dynamic faces (Ajax) simple example

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody:

I am trying to understand how to use Dynamic Faces Extension (Ajax) with JSF.

Based on SimpleDynamicFaces Example I want to select a country and view its capital without refreshing the whole page but a ajaxZone. My example doesn't work, I have:

web. xml

faces-config.xml



welcomeJSF.jsp



Manage Bean



Tomcat Apache doesn't show any error ...but on the page I select a different country and nothing happens...the "zone2" doesn't re-render.

What Am I doing wrong...what is missing?

Please help me ... I've spent a lot time with no positive result.

 
Enrique Villamizar
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody:

After much time lost because of my ignorance... trying out and getting nothing, at last it worked.


I think using valueChangeListener doesn't work ( Who knows? - when do I have to use it?). So I changed the manage bean:


The idea behind ajaxZones is easy but implementing it was driving me crazy. Does anyone know about a good book or tutorial which explain in details how to use dynamic faces ext.?

javapassion.com has good examples but they don't expalin them enough. Sometimes it's hard to find good tutorial for newbies.
 
Enrique Villamizar
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Based on the simple example ( which finally runs well) I am trying to apply the same idea in a real example but I got the following error (on IE 8):

Message: 'null' is null or not an object
Line: 1
Character: 14509
Code: 0
URI: http://localhost:9085/vivienda/faces/static/META-INF/0.1-SNAPSHOT-rc7/com_sun_faces_ajax.js

I have no idea what is happening... does anyone could help me? Any ideas about what is going on?

Thanks very much...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic