Author: akushunin
Date: 2007-08-01 11:33:18 -0400 (Wed, 01 Aug 2007)
New Revision: 1982
Modified:
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
Log:
TODO tasks were made
Modified: trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java
===================================================================
---
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-08-01
13:56:53 UTC (rev 1981)
+++
trunk/sandbox/ui/calendar/src/main/java/org/richfaces/component/UICalendar.java 2007-08-01
15:33:18 UTC (rev 1982)
@@ -64,7 +64,7 @@
private static final String COMPONENT_FAMILY = "org.richfaces.Calendar";
private final static Log log = LogFactory.getLog(UICalendar.class);
-
+
public abstract Locale getLocale();
public abstract void setLocale(Locale locale);
@@ -170,13 +170,15 @@
} else {
setCurrentDate(currentDate);
}
+
} catch (Exception e) {
setValid(false);
//XXX nick - kaa - add log.debug(...)
if (log.isDebugEnabled()) {
- log.debug(" updateCurrentDate method throws exception:
"+e.getMessage(),e);
+ log.debug(" updateCurrentDate method throws exception: "+e.toString(),e);
}
- String messageString = e.getMessage();
+ e.printStackTrace();
+ String messageString = e.toString();
FacesMessage message = new FacesMessage(messageString);
message.setSeverity(FacesMessage.SEVERITY_ERROR);
context.addMessage(getClientId(context), message);
@@ -287,28 +289,28 @@
// method
// for more
- //TODO nick - kaa - throw exception and review resulting message :)
- //throw new NullPointerException();
-
+ //XX nick - kaa - throw exception and review resulting message :)
+
Date currentDate = convertCurrentDate(currentDateString);
CurrentDateChangeEvent newDateChangeEvent = new CurrentDateChangeEvent(
this, currentDate);
newDateChangeEvent.queue();
- } catch (Exception e) {
+
+ } catch (Exception e) {
// XXX nick - kaa - add log.debug(...)
// XXX nick - kaa - we should stop processing on exc.
// setValid(false) and then call
// FacesContext.renderResponse(...)
// update model phase shouldn't start
if (log.isDebugEnabled()) {
- log.debug(" currentDate convertion fails with following exception:
"+e.getMessage(),e);
+ log.debug(" currentDate convertion fails with following exception:
"+e.toString(),e);
}
setValid(false);
- String messageString = e.getMessage();
- FacesMessage message = new FacesMessage(messageString);
+ String messageString = e.toString();
+ e.printStackTrace();
+ FacesMessage message = new FacesMessage(messageString);
message.setSeverity(FacesMessage.SEVERITY_ERROR);
- facesContext.addMessage(getClientId(facesContext),
- message);
+ facesContext.addMessage(getClientId(facesContext),message);
facesContext.renderResponse();
}
Show replies by date