Skip to main content

AjaxWrapperPhaseListener?

2 replies [Last post]
sloanb
Offline
Joined: 2003-09-14
Points: 0

Yep its me again the one that wants to know it all. I have been reading up on passing arguments to managed beans and was wondering if the AjaxWrapperPhaseListener was still in place that catches all request by (.ajax). I have been attempting to get that to work using facelets as well and I have not been successful. I am only getting a 404 message from the server.

Example doAJax call:

// Perform the ajax request
jmaki.doAjax({
method : "POST",
url : jmaki.webRoot + "/faces/UserBean-userService.ajax",
content : { cmd : "setValue", value : args.value},
callback : function(req) {
jmaki.log("Back from request");
}
});

My Bean is named UserBean and I'm calling method userService.

Regards,
Sloan

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

Hi Sloan,

Do you have your faces servlet mappeds to /faces/* ?


Faces Servlet
/faces/*

I suspect you don't have the mapping. If you do and still have problems can you log the real url being accessed and make sure the webroot + service name is correct?

There is an able of using managed beans in the Dojo test application.

You can download the app at:

https://ajax.dev.java.net/files/documents/3115/55599/jmaki-dojo-jsf.zip

Or view the source in the widgets.dev.java.net project at:

https://widgets.dev.java.net/source/browse/widgets/trunk/code/tests/widg...

Let me know if you still have issues and will try to get you up and running.

-Greg

sloanb
Offline
Joined: 2003-09-14
Points: 0

Sorry for the delay I had my second child (Son) and I've been out of the office for a bit. I will get back on it and let you know. Been busy around here I see while I was gone :-)