AjaxBehavior exception using p:ajax inside p:selectOneMenu

UI Components for JSF
Post Reply
Dsleeper
Posts: 119
Joined: 29 Jul 2010, 13:33
Location: Bergen, Norway
Contact:

13 May 2011, 09:53

This exception is cast when i try to include p:ajax inside a p:selectOneMenu

Code: Select all

javax.faces.FacesException: Expression Error: Named Object: org.primefaces.component.AjaxBehavior not found.
Example code:

Code: Select all

<p:selectOneMenu id="selectEaAgreement" value="#{FilesUploadedList.selectedEaAgreement}">
<f:selectItems value="#{FilesUploadedList.eaAgreementsSelection}" />
<p:ajax listener="#{FilesUploadedList.searchFiles}" update="fileSearchForm fileList" />
</p:selectOneMenu>
I believe there is a problem with p:ajax also in the primefaces showcase. I do not think this example is working as it should:
http://www.primefaces.org/showcase-labs ... Select.jsf

Using firefox 4. When I choose a city the suburbs selectlist is not updated.

I am running:
Apache Tomcat/6.0.29
Mojarra 2.1.1-b04
Primefaces 3.0.M1

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

13 May 2011, 10:16

Your error is different, labs has 3.0.M2-SNAPSHOT which is not reliable at the moment.

Noone reported the same error as you have so it seems like a deployment issue on your end, JSF can't find the annotation. Try downgrading to mojarra 2.0.4 to see if it makes a diff.

Dsleeper
Posts: 119
Joined: 29 Jul 2010, 13:33
Location: Bergen, Norway
Contact:

13 May 2011, 10:37

I tried downgrading to Mojarra 2.0.4-b09, but unfortunately the same exception is thrown.

I have not found a problem with any of the other components. It seems a bit weird if this is a deployment issue on my end. Any suggestions are higly appreciated!

Thx

Dsleeper
Posts: 119
Joined: 29 Jul 2010, 13:33
Location: Bergen, Norway
Contact:

16 May 2011, 09:24

In a different project where I am also migrating to the latest version of both Mojarra and Primefaces this is not a problem. The "problem" project is using maven and the project that is working fine is not.

When I compare the jar files from the downloaded Mojarra
http://java.net/projects/javaserverface ... binary.zip
and the Maven release labelled 2.1.1-b04 I can see differences in both filesize and filecreation date.

So I'm guessing you are correct regarding the fact that this is a deployment issue.

Will update this thread if I figure this out ;)

Dsleeper
Posts: 119
Joined: 29 Jul 2010, 13:33
Location: Bergen, Norway
Contact:

16 May 2011, 09:50

I've now tried both the maven and the "download" version of the Mojarra libraries on my "problem" project:
Downloaded version:
Initializing Mojarra 2.1.1 (FCS 20110408) for context '/bd'
Maven
Initializing Mojarra 2.1.1 (SNAPSHOT 20110404) for context '/bd'

Unfortunately none of them work with p:ajax.

Any suggestions on how to fix this would be highly appreciated! Thx

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 36 guests