File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes Creator 2 and Ajax4JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Creator 2 and Ajax4JSF" Watch "Creator 2 and Ajax4JSF" New topic
Author

Creator 2 and Ajax4JSF

Abul Kayes
Greenhorn

Joined: Oct 31, 2006
Posts: 3
Hi everyone! This is my first post to JavaRanch forum.
I'm new to JSF and Creator. I was trying to put AJAX functionality with Ajax4JSF to a simple JSF page I made with Java Studio Creator 2 (update 1). I did as they instructed in their tutorials. But it didn't work.
Can anyone please tell if there is any issue with Ajax4JSF and Creator 2.
Any references, 'Hello World' code will be much appreciated. Thanks!


Kayes
Sergey Smirnov
Ranch Hand

Joined: May 29, 2003
Posts: 167
Could you post a jsf page code for review?
Abul Kayes
Greenhorn

Joined: Oct 31, 2006
Posts: 3
Hi! Sorry for the delay in replying. I've been keeping too busy at work for some days.
Ok, all I wanna say that the procedure to add AJAX functionality (as instructed in 'Ajax4jsf Developer Guide') to a JSF page works only with the <h:...> tags, not with the <ui:...> tags.

Here's the JSP code that works for me:


But when I put the <ui:...> tags as follows it doesn't work.



Please let me know if its possible to use <ui> tags with Ajax4jsf.
Thank you.
Sergey Smirnov
Ranch Hand

Joined: May 29, 2003
Posts: 167
I have no Creator 2 on my desk. So, I can say for sure. Add
<a4j:log hotkey="M" /> before the <ui:body>. It should show the Ajax log if you press Ctrl-Shift-M after the page is loaded into the browser. Take a look, does the request go to the server and does the response come back.
Abul Kayes
Greenhorn

Joined: Oct 31, 2006
Posts: 3
Hi Sergey.
I put the <a4j:log> tag before the <ui:body> tag. It works fine with the <h> tags. But with the <ui> tags, when I press ctrl+shift+M, it just echoes the text to the static text field. But no logs are viewed. But I think the echoed text is coming from server. So why doesn't it work with onkeyup event? The whole thing is quite blurry to me. Can you suggest on this?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creator 2 and Ajax4JSF