webtier@glassfish.java.net

<f:ajax> not working at all ?

From: <webtier_at_javadesktop.org>
Date: Fri, 25 Jun 2010 06:21:23 PDT

Hello everybody,

I am trying (like crazy) to use the <f:ajax> tag but it doesn´t seem to work.

I am using Tomcat 6.0.28 and Mojarra 2.0.2.

Here is an example that I just can´t get to work.
 (if I understood the example right, the outputText should be rerendered when I release a key, right ? ).


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body>
        <h:form id="myForm">

                <h:panelGrid>
                        <h:inputText value="#{ajaxController.text}">
                                <f:ajax event="keyup" render="text" />
                        </h:inputText>
                        <h:outputText id="text" value="#{ajaxController.text}" />
                </h:panelGrid>

        </h:form>
</h:body>
</html>
[Message sent by forum member 'danielbreitner']

http://forums.java.net/jive/thread.jspa?messageID=475816