aspose file tools
The moose likes JSF and the fly likes Something missing with dynamic faces (Ajax) simple example Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Something missing with dynamic faces (Ajax) simple example" Watch "Something missing with dynamic faces (Ajax) simple example" New topic
Author

Something missing with dynamic faces (Ajax) simple example

Enrique Villamizar
Ranch Hand

Joined: Jul 30, 2005
Posts: 93
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

Joined: Jul 30, 2005
Posts: 93
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

Joined: Jul 30, 2005
Posts: 93
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...
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Something missing with dynamic faces (Ajax) simple example
 
Similar Threads
My Tomcat does not build my URL
message /.jsp not found in JSF2.0+RichFaces3.3.3+Tomcat6.0.29
Error while accessing hibernate session through JSF
EJB injection nullpointer and jsf grammar not found
Erro HTTP Status 500- What is this?