6 Replies Latest reply on Jul 6, 2007 2:46 AM by Florian Duehring

    A4j is Undefined error in Websphere Portal 6.0

    vaithee subramanian Newbie

      I am using the following jars in the lib directory
      ajax4jsf-1.1.1.jar
      common-annotations.jar
      commons-beanutils.jar
      commons-collections.jar
      commons-digester.jar
      commons-lang-2.1.jar
      commons-logging.jar
      jsf-portletbridge.jar
      oscache-2.3.2.jar
      tomahawk-1.1.6.jar
      jsf-portletbridge.jar is the IBM implementation of Faces for Portlets.

      In the jsp (snippet below) I have used the following to simulate the simple-repeater sample. When I try to run it on portal, I get a java script error "A4j is undefined.

      I got the same error when I ran the a4j-simpleRepeator war file on websphere 6.1. I then used tomahawk1.1.6 (Sun RI Implementation of Faces) and that resolved the error.

      Can you guide me if I am doing something wrong here. Also, id AJAX4jsf tested on websphere 5.1/6.1 portals?


      <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>

      <%@taglib uri="http://java.sun.com/portlet" prefix="portlet"%>

      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <h:form id="form1" styleClass="form">



      EnteredUserName:
       
      <h:inputText id="textEnteredUserName1"
      value="#{userInfoBean.userName}" styleClass="inputText">
      <a4j:support event="onkeyup" reRender="textEnteredUserName2" />
      </h:inputText>


      Password:
       
      <h:inputText id="textPassword1"
      value="#{userInfoBean.password}" styleClass="inputText">
      </h:inputText>


      EnteredUserName:
       
      <h:outputText id="textEnteredUserName2"
      value="#{userInfoBean.enteredUserName}" styleClass="outputText">
      </h:outputText>