Changeset 5024
- Timestamp:
- 07/03/08 12:15:59 (6 months ago)
- Files:
-
- 1 modified
-
trunk/src/com/itmill/toolkit/ui/Form.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/itmill/toolkit/ui/Form.java
r5021 r5024 182 182 * validation fails also on empty errors. 183 183 */ 184 @SuppressWarnings("unchecked")185 @Override186 184 public ErrorMessage getErrorMessage() { 187 185 for (final Iterator i = propertyIds.iterator(); i.hasNext();) { 188 186 try { 189 AbstractComponent field = (AbstractComponent)fields.get(i.next()); 187 AbstractComponent field = (AbstractComponent) fields.get(i 188 .next()); 190 189 ErrorMessage e = field.getErrorMessage(); 191 190 if (e != null) { 192 191 // Skip empty errors 193 if ( e.toString().isEmpty())192 if ("".equals(e.toString())) { 194 193 continue; 194 } 195 195 return e; 196 196 } 197 } catch (ClassCastException ignored) {} 197 } catch (ClassCastException ignored) { 198 } 198 199 } 199 200 return null;
