Author: abelevich
Date: 2007-06-25 12:25:32 -0400 (Mon, 25 Jun 2007)
New Revision: 1298
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/JiraUserConverter.java
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/PriorityConverter.java
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/StatusConverter.java
Log:
add converters for priority, jira user, status fields
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/JiraUserConverter.java
===================================================================
---
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/JiraUserConverter.java 2007-06-25
16:24:45 UTC (rev 1297)
+++
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/JiraUserConverter.java 2007-06-25
16:25:32 UTC (rev 1298)
@@ -37,7 +37,8 @@
public Object getAsObject(FacesContext context, UIComponent component,
String value) throws ConverterException{
- JiraUser user = findUser(value);
+ JiraUser user = findUser(value);
+// System.out.println("JiraUserConverter.getAsObject()");
if( user == null){
FacesMessage errorMessage = ConverterUtils.createTypeErrorMessage(value,"real
jira username");
throw new ConverterException(errorMessage);
@@ -52,6 +53,7 @@
if(value instanceof JiraUser){
jiraUser = (JiraUser)value;
+// System.out.println("JiraUserConverter.getAsString()");
}else{
FacesMessage errorMessage =
ConverterUtils.createTypeErrorMessage(value.getClass().getName(),
JiraUser.class.getName());
throw new ConverterException(errorMessage);
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/PriorityConverter.java
===================================================================
---
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/PriorityConverter.java 2007-06-25
16:24:45 UTC (rev 1297)
+++
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/PriorityConverter.java 2007-06-25
16:25:32 UTC (rev 1298)
@@ -48,7 +48,7 @@
int pr_id = Integer.parseInt(value);
int id = -1;
-
+// System.out.println("PriorityConverter.getAsObject()");
switch (pr_id) {
case PRIORITY_BLOCKER:
id = 0;
@@ -84,6 +84,7 @@
Object value) throws ConverterException{
Priority priority = null;
+// System.out.println("PriorityConverter.getAsString()");
if(value instanceof Priority){
priority = (Priority)value;
Modified:
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/StatusConverter.java
===================================================================
---
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/StatusConverter.java 2007-06-25
16:24:45 UTC (rev 1297)
+++
trunk/sandbox-samples/scrollable-grid-demo/src/main/java/org/richfaces/demo/converters/StatusConverter.java 2007-06-25
16:25:32 UTC (rev 1298)
@@ -43,7 +43,7 @@
String value) throws ConverterException{
Status convertedValue = null;
-
+// System.out.println("StatusConverter.getAsObject()");
int st_id = Integer.parseInt(value);
int id = -1;
@@ -80,6 +80,7 @@
Object value) throws ConverterException{
Status status = null;
+// System.out.println("StatusConverter.getAsString()");
if(value instanceof Status){
status = (Status)value;
Show replies by date