-
1. Re: Can't find classes UploadEvent and UploadItem in jar for 4.1.0.Final version
sergeib Oct 7, 2012 8:20 AM (in response to sergeib)It looks like I should specify following:
<dependency org="org.richfaces.ui" name="richfaces-ui" rev="3.3.3.Final" conf="default" />
<dependency org="org.richfaces.framework" name="richfaces-impl" rev="3.3.3.Final" conf="default" />
<dependency org="org.richfaces.framework" name="richfaces-api" rev="3.3.3.Final" conf="default" />
In particular, it was needed richfaces-api lib.
-
2. Re: Can't find classes UploadEvent and UploadItem in jar for 4.1.0.Final version
sergeib Oct 7, 2012 8:55 AM (in response to sergeib)One more issue arised,got exception, when launching Tomcat:
Caused by: java.lang.NoClassDefFoundError: org/richfaces/log/RichfacesLogger
It looks like conflict:
there is no UploadEvent class in 4.1.1,but there is in 3.3.3 version from one side.And from other side 3.3.3. missed RichfacesLogger
.
Has anybody faced such probnlem?
-
3. Re: Can't find classes UploadEvent and UploadItem in jar for 4.1.0.Final version
ivan_ra Oct 8, 2012 2:30 AM (in response to sergeib)There is some changes in RF 4.x interface.
You have to use org.richfaces.event.FileUploadEvent instead UploadEvent, and org.richfaces.model.UploadedFile instead UploadItem, like this:
public void upload(FileUploadEvent event) throws IOException{
UploadedFile file = event.getUploadedFile();
...
}
Link for RF 4.x examples is http://showcase.richfaces.org/