I tried it now out on two other PCs with IE6 and Firefox. It doesn't work on IE6 and
Firefox 1.0, neither for my application nor for the seamspace example from 2.0.1.GA. On
Firefox 2 it's ok.
There are no script errors.
This is my xhtml:
| <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
| <ui:composition
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns:s="http://jboss.com/products/seam/taglib"
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
xmlns:f="http://java.sun.com/jsf/core"
|
xmlns:h="http://java.sun.com/jsf/html"
|
xmlns:j4j="http://javascript4jsf.dev.java.net/"
|
xmlns:rich="http://richfaces.ajax4jsf.org/rich"
| template="layout/template.xhtml">
|
| <ui:define name="body">
|
| <s:div rendered="#{s:hasRole('UserRoleAuthorizedUser')}">
|
| <h:messages styleClass="message" globalOnly="true"/>
|
| <h:form id="uploadArtwork"
enctype="multipart/form-data">
|
| <rich:panel>
| <f:facet
name="header">#{messages['UploadImage']}</f:facet>
| <div class="dialog">
| <s:validateAll>
| <h:panelGrid columns="2" rowClasses="prop"
columnClasses="name,value">
|
| <h:outputLabel
for="artwork">#{messages['SelectImage']}</h:outputLabel>
| <s:decorate>
| <s:fileUpload id="artwork"
styleClass="input-field"
| data="#{uploadService.data}"
accept="images/jpg,images/gif,images/png"
| contentType="#{uploadService.contentType}"
| fileName="#{uploadService.fileName}"
fileSize="#{uploadService.size}"
| size="40" maxlength="40"
required="true"/>
| <j4j:idProxy id="_focus"/>
| </s:decorate>
|
| </h:panelGrid>
| </s:validateAll>
| </div>
| </rich:panel>
|
| <div class="actionButtons">
| <h:commandButton id="uploadButton"
value="#{messages['Upload']}"
| action="#{uploadService.upload}"/>
| </div>
|
|
| </h:form>
| </s:div>
| </ui:define>
| </ui:composition>
|
and the components.xml part:
| <component class="org.jboss.seam.web.MultipartFilter">
| <property name="createTempFiles">true</property>
| <property name="maxRequestSize">500000</property>
| <property name="url-pattern">*.seam</property>
| </component>
|
Do other users have experience with file uploading on IE? Are there other alternatives to
<s:fileUpload>?
----
To test it on other machines I first had to jump over two traps. Maybe it's useful to
know for other users:
1. From Tomcat I was used to have access to my server over the network by
http://192.168.0.4/myproject/. For JBoss it is different. For security reasons the
default host is 127.0.0.1.
You have to start JBoss with the -b option from the console "run -b
192.168.0.4". (I had to start it from console because in Eclipse 3.3 a changed server
address had no effect.)
2. Pay attention to the JDK versions. My JBoss had 1.5, my Eclipse 1.6 ...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4129254#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...