empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1379893 - /empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/components/InputTag.java
Date Sat, 01 Sep 2012 23:10:55 GMT
Author: doebele
Date: Sat Sep  1 23:10:55 2012
New Revision: 1379893

URL: http://svn.apache.org/viewvc?rev=1379893&view=rev
Log:
EMPIREDB-168
JSF2 suppress wrong warning message. 

Modified:
    empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/components/InputTag.java

Modified: empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/components/InputTag.java
URL: http://svn.apache.org/viewvc/empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/components/InputTag.java?rev=1379893&r1=1379892&r2=1379893&view=diff
==============================================================================
--- empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/components/InputTag.java
(original)
+++ empire-db/trunk/empire-db-jsf2/src/main/java/org/apache/empire/jsf2/components/InputTag.java
Sat Sep  1 23:10:55 2012
@@ -79,16 +79,16 @@ public class InputTag extends UIInput im
         // Check visibility
         if (helper.isVisible()==false)
             return false; // not visible
+        // Read only State
+        Boolean ros = (Boolean)getStateHelper().get(readOnlyState);
+        if (ros!=null && ros.booleanValue())
+            return false;
         // Must have children
         if (getChildCount()==0)
         {   log.warn("InputTag has no children! Unable to init Input state.");
             log.warn("Problem might be related to Mojarra 2.1.7 to 2.1.11 (and possibly later)
- please use Mojarra 2.1.6!");
             return false;
         }
-        // Read only State
-        Boolean ros = (Boolean)getStateHelper().get(readOnlyState);
-        if (ros!=null && ros.booleanValue())
-            return false;
         // Init Control and inputInfo;
         control = helper.getInputControl();
         inpInfo = helper.getInputInfo(context);



Mime
View raw message