[jboss-cvs] jboss-seam/src/ui/org/jboss/seam/ui ...
Gavin King
gavin.king at jboss.com
Thu Mar 15 22:49:28 EDT 2007
User: gavin
Date: 07/03/15 22:49:28
Modified: src/ui/org/jboss/seam/ui ModelValidator.java
UISelectDate.java
Log:
better feedback
Revision Changes Path
1.8 +1 -1 jboss-seam/src/ui/org/jboss/seam/ui/ModelValidator.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ModelValidator.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/ModelValidator.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- ModelValidator.java 7 Mar 2007 23:53:58 -0000 1.7
+++ ModelValidator.java 16 Mar 2007 02:49:28 -0000 1.8
@@ -29,7 +29,7 @@
}
catch (Exception e)
{
- throw new ValidatorException( new FacesMessage(FacesMessage.SEVERITY_ERROR, "model validation failed", null) );
+ throw new ValidatorException( new FacesMessage(FacesMessage.SEVERITY_ERROR, "model validation failed:" + e.getMessage(), null) );
}
if ( ivs.length>0 )
{
1.4 +4 -0 jboss-seam/src/ui/org/jboss/seam/ui/UISelectDate.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: UISelectDate.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/ui/org/jboss/seam/ui/UISelectDate.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- UISelectDate.java 13 Mar 2007 13:13:19 -0000 1.3
+++ UISelectDate.java 16 Mar 2007 02:49:28 -0000 1.4
@@ -105,6 +105,10 @@
public void encodeBegin(FacesContext context) throws IOException
{
UIComponent forComponent = findComponent(getFor());
+ if (forComponent==null)
+ {
+ throw new IllegalStateException("could not find component with id: " + getFor());
+ }
writeScript(context);
ResponseWriter response = context.getResponseWriter();
response.startElement("span", this);
More information about the jboss-cvs-commits
mailing list