我试图在JavaFixV3上构建JavaEE6应用程序,使用JSF 2、Weld、JPA2和Maven。
现在我很难得到一个简单的
<a4j:support>
跑步。这是我的小例子的片段。在输入文本中键入内容时,输出文本应自动更新。但是什么都没有发生(不是在火狐中,不是在IE8中)。
<ui:composition
xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
(...)>
<h:inputText value="#{personHome.message}">
<a4j:support event="onkeyup" reRender="repeater"/>
</h:inputText>
<h:outputText id="repeater" value="#{personHome.message}"/>
除此之外,我的示例不起作用,我的问题还在于,我不真正理解我是否需要JSF实现(myfaces、richfaces、primefaces等)或不使用A4J元素。它是“内置”玻璃鱼吗?
到目前为止,我认为JSF只需要以下依赖项:
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>6.0</version>
<scope>provided</scope>
</dependency>
所以…为了让AjAX4JSF在GalasFISH上运行一个简单的JavaEE应用程序,我需要做什么?