FileUploadListner is not working with PrimeFaces 4.0

I tried using fileUploadListener with <p:fileUpload> ( PrimeFaces 4.0 ), but had no luck with get it working. The solution I found is to use

<rich:fileUpload  fileUploadListener > .

. For this you need to include

xmlns:rich=”http://richfaces.org/rich&#8221;
xmlns:a4j=”http://richfaces.org/a4j&#8221;

and update the dependencies as

<groupId>org.richfaces</groupId>
<artifactId>richfaces-bom</artifactId>
<version>${org.richfaces.bom.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-components-ui</artifactId>
<version>${org.richfaces.bom.version}</version>
</dependency>
<dependency>
<groupId>org.richfaces.core</groupId>
<artifactId>richfaces-core-impl</artifactId>
<version>${org.richfaces.bom.version}</version>
</dependency>

 

A good example of how to use it , found

http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=fileUpload

Advertisements

About buminda

buminda.com
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s