ajax - tomahawk t:inputFileUpload not working -
i have developed jsf application following facets
- dynamic web module 2.5
- java 5
- javaserver faces 1.2
- rich faces 3.3.2
i have page t:inputfileupload component. working fine till added ajax , rich faces components , taglibs page. follows:-
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%> <%@taglib uri="http://richfaces.org/rich" prefix="rich"%> ... <t:inputfileupload...
all want ask that, not possible these taglibs can work together?
thanks in advance.
it should work fine long don't submit form ajax. it's namely not possible upload files ajax using <t:inputfileupload>
. so, need make sure submit form synchronous (non-ajax) request.
you should make sure tomahawk's extensionsfilter
been registered in web.xml
before richfaces' org.ajax4jsf.filter
, otherwise consume multipart/form-data
request before tomahawk's extensionsfilter
chance so.
alternatively, drop tomahawk's <t:inputfileupload>
, use richfaces' own <rich:fileupload>
instead. it's able simulate "ajax look-a-like" file upload using flash.
Comments
Post a Comment