[jboss-user] [JBoss Seam] - Re: s:fileUpload throws MissingResourceException

tazman do-not-reply at jboss.com
Fri Mar 16 04:16:00 EDT 2007


Hey guys!

Seam 1.2 works perfectly here with JSF-RI 1.2, Facelets, Ajax4JSF 1.0.7, and JBoss AS 4.0.5. My only problem currently is the MissingResourceException and ExceptionInInitializerError I'm getting.

My form has only one input field, which is an s:fileUpload 

<h:form id="register_form" enctype="multipart/form-data">
  |     <s:fileUpload id="photo" data="#{photo.data}" fileName="#{photo.name}" accept="image/gif,image/jpeg,image/png"/>
  |     <h:commandButton value="save" action="#{photoManager.save}" />
  | </h:form>

The faces-config.xml has this

<application>	
  | 	<message-bundle>messages</message-bundle>
  | 	<el-resolver>org.jboss.seam.jsf.SeamELResolver</el-resolver>
  | 
  | 	<locale-config>
  | 		<default-locale>en</default-locale>
  | 		<supported-locale>en</supported-locale>
  | 		<supported-locale>en_US</supported-locale>
  | 	</locale-config>
  | </application>

My messages.properties file works for all other cases in my application. Again, the problem is only with s:fileUpload.

tazman


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028695#4028695

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028695



More information about the jboss-user mailing list