Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- JBoss AS & Seam upgrade - Validation message showing

- JBoss AS & Seam upgrade - Validation message showing

2007-07-13       - By jamesjoh

 Back
Recently upgraded from JBoss 4.0.5 to JBoss 4.2.0.  We also upgraded to Seam 1
.2.1 from Seam 1.1.0 at the same time.  Everything works fine except for some
hibernate annotation validations appearing to be called multiple times.

In my entity bean I have a simple "rateFloor" property w/ standard getter &
setter.  On it I have a validation annotation of:

@(protected)(value=60, message="Rate Floor must be greater than or equal to 60")

The first time I submit the form w/ a value < 60, I get my validation error
message twice.  Each subsequent resubmit w/ a value < 60 appends another copy
of the error message to FacesMessages list.  So after 2 submits I get the error
message 3 times, after 3 I get it 4 times and so on.  

If I fix the floor value but leave another validation to fail (like a required
=true input left blank) all my of "Rate Floor must be greater..." error messages
disappear as excpected.  However, if I think re-change the floor back to 59 and
resubmit, they all appear again.  I.E. I have 4 copies of the message, I fix
the floor and submit, then break the floor and resubmit and 5 copies of the
message show up this time.  It's like something is saving state about error
message that shouldn't be saving state.

Does anyone have any idea why this would be?  Looking through the documentation
and examples I can't find anything that indicates that validation behavior has
changed.  I'm unsure if this is due to some side effect of now using JSF 1.2 w/
the upgrade to JBoss 4.2.0 or if this is a Seam issue.  I also tried w/ the
Seam 2.0 Beta but the problem still remained.

I've been trying to trace this behavior through the debugger as well but haven
't had any luck in nailing down the specific cause, any hints as to where some
handy breakpoints might go are welcome as well.

Thank you.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4064119
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.