Skip to main content

JMaki versus Ajax4JSF

1 reply [Last post]
koen
Offline
Joined: 2003-07-27
Points: 0

I've used Ajax4JSF and now i'm trying JSF with JMAki.
Is there something like the Ajax4jSF 'rerender' option available in JMaki?
If not, can I mix both frameworks?

thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kenpaulsen
Offline
Joined: 2005-03-30
Points: 0

Hi Koen,

I don't have experience w/ Ajax4JSF, but from their WWW site what they have looks simple.

I don't see any reason why you can't mix the 2 frameworks. jMaki does not require any special processing from JSF (Ajax4JSF appears to have some requirements, but they do not appear to interfere with jMaki).

jMaki does have a JSF JSP tag, JSF UIComponent, and JSF Renderer (and a plain JSP tag). From the jMakie web site (https://ajax.dev.java.net/usingFaces.html), if you're using JSF w/ JSPs, you can do the following:

<%@ taglib prefix="a" uri="http://java.sun.com/jmaki-jsf" %>
...

See the "Gallery" section to see the list of supported Ajax components... this also has a "Source" link for each widget.

If you're not using JSP w/ JSF, you might need the following information:

Renderer:
com.sun.jmaki.AjaxWrapperRenderer;

UIComponent:
com.sun.jmaki.AjaxWrapper;

JSP Tag (probably don't care about this):
com.sun.jmaki.AjaxWrapperTag;

Renderer Type / Component Type:
"AjaxWrapper"

I hope this helps!

P.S. If you're doing JSF development, you might want to look at https://jsftemplating.dev.java.net . Disclaimer: I created this project.

Ken