-
1. Re: Seam Faces 3.0.0.Beta2 Messages NOT displayed
shane.bryzak Feb 1, 2011 5:27 AM (in response to craig) -
2. Re: Seam Faces 3.0.0.Beta2 Messages NOT displayed
craig Feb 1, 2011 5:52 AM (in response to craig) -
3. Re: Seam Faces 3.0.0.Beta2 Messages NOT displayed
spinner.joserodolfo.freitas.gawab.com Feb 3, 2011 7:56 AM (in response to craig)craig,
in the meantime you could use the Stephan idea
http://seamframework.org/Community/SeamFaces300SNAPSHOTInjectMessagesMessages -
4. Re: Seam Faces 3.0.0.Beta2 Messages NOT displayed
craig Feb 3, 2011 8:01 AM (in response to craig)Hi,
This results in the message being lost durring the direct.
The problem here is when its packaged as an EAR.
I have just got it to work by exluding the seam faces jars from the WAR and including them in the EAR/lib directory.
I don't like this as I feel im mixing jars from the WAR to the EAR just to get the WAR to work!!
This is the only way until its fixed I guess.
It will also have issues if I deploy another WAR in my EAR that requires a different seam faces version.
Craig
-
5. Re: Seam Faces 3.0.0.Beta2 Messages NOT displayed
ssachtleben.ssachtleben.gmail.com Feb 3, 2011 8:22 AM (in response to craig)I can confirm it works fine with a simple war...
Versions: seam-faces-3.0.0.Beta2 and seam-international-3.0.0.Alpha3
Implementation:
@Named @Stateful @ConversationScoped public class ContactAction { @Inject Messages messages; ... public void send() { messages.error(new DefaultBundleKey("contact.form.error.SendMailFailed")); // TODO: implement email functionality / waiting for seam mail module ... } }
<h:messages class="message" globalOnly="true" infoClass="infomsg" errorClass="errormsg" warnClass="warnmsg" />
Seam 3 seems to be a bit buggy with ear deployment I would recommend to stick on war untill final release!
-
6. Re: Seam Faces 3.0.0.Beta2 Messages NOT displayed
spinner.joserodolfo.freitas.gawab.com Feb 3, 2011 1:01 PM (in response to craig)I have the same problem as Craig but in a war package.
Seam Versions is the same as Sebastian: seam-faces-3.0.0.Beta2 and seam-international-3.0.0.Alpha3,
Jboss as6 final. -
7. Re: Seam Faces 3.0.0.Beta2 Messages NOT displayed
amitev Feb 3, 2011 4:43 PM (in response to craig)+1 for the same problem in war with the same dependency versions.
-
8. Re: Seam Faces 3.0.0.Beta2 Messages NOT displayed
ssachtleben.ssachtleben.gmail.com Feb 3, 2011 5:14 PM (in response to craig)I have added another global message on a different view successfully.
You guys should try to change the jsf configuration in web.xml:
<!-- FACES CONFIGURATION --> <context-param> <param-name>javax.faces.PROJECT_STAGE</param-name> <param-value>Development</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.seam</url-pattern> </servlet-mapping> <context-param> <param-name>javax.faces.STATE_SAVING_METHOD</param-name> <param-value>server</param-value> </context-param> <context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.xhtml</param-value> </context-param> <context-param> <param-name>facelets.DEVELOPMENT</param-name> <param-value>true</param-value> </context-param> <context-param> <description> Set this flag to true if you want the JavaServer Faces Reference Implementation to validate the XML in your faces-config.xml resources against the DTD. Default value is false. </description> <param-name>com.sun.faces.validateXml</param-name> <param-value>true</param-value> </context-param>
Even without h:messages the messages will be display on bottom of the page.