[cvs]
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller
ControllerResponse.java
JCorporate Ltd
jcorp at jcorp2.servlets.net
Sun Sep 12 13:48:01 PDT 2004
Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller
In directory jcorp2.servlets.net:/tmp/cvs-serv31784/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller
Modified Files:
ControllerResponse.java
Log Message:
use string constants
Index: ControllerResponse.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/controller/ControllerResponse.java,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** ControllerResponse.java 12 Sep 2004 20:42:14 -0000 1.48
--- ControllerResponse.java 12 Sep 2004 20:47:59 -0000 1.49
***************
*** 68,71 ****
--- 68,72 ----
import com.jcorporate.expresso.core.dataobjects.jdbc.JDBCObjectMetaData;
import com.jcorporate.expresso.core.db.DBException;
+ import com.jcorporate.expresso.core.dbobj.DBField;
import com.jcorporate.expresso.core.dbobj.DBObject;
import com.jcorporate.expresso.core.i18n.Messages;
***************
*** 758,762 ****
* @param args the formatting arguments
* @return translated string or stringCode if not found
! * @throws ControllerException upon error
*/
public String getString(String stringCode, Object[] args)
--- 759,763 ----
* @param args the formatting arguments
* @return translated string or stringCode if not found
! * @throws ControllerException upon error
*/
public String getString(String stringCode, Object[] args)
***************
*** 1401,1405 ****
if ((displayLength == 0) || (maxLength == 0)) {
! if (fieldType.equalsIgnoreCase("datetime")) {
displayLength = maxLength = 19;
}
--- 1402,1406 ----
if ((displayLength == 0) || (maxLength == 0)) {
! if (fieldType.equalsIgnoreCase(DBField.DATETIME_TYPE)) {
displayLength = maxLength = 19;
}
***************
*** 1418,1422 ****
boolean expandToTextArea = false;
! if (fieldType.equalsIgnoreCase("varchar")) {
if (displayLength > 150) {
expandToTextArea = true;
--- 1419,1423 ----
boolean expandToTextArea = false;
! if (fieldType.equalsIgnoreCase(DBField.VARCHAR_TYPE)) {
if (displayLength > 150) {
expandToTextArea = true;
***************
*** 1430,1434 ****
if (fieldType.equalsIgnoreCase("text") || expandToTextArea) {
oneInput.setType("TEXTAREA");
! } else if (fieldType.equalsIgnoreCase("varchar")) {
oneInput.setType("TEXTFIELD");
} else if (fieldType.equalsIgnoreCase("date")) {
--- 1431,1435 ----
if (fieldType.equalsIgnoreCase("text") || expandToTextArea) {
oneInput.setType("TEXTAREA");
! } else if (fieldType.equalsIgnoreCase(DBField.VARCHAR_TYPE)) {
oneInput.setType("TEXTFIELD");
} else if (fieldType.equalsIgnoreCase("date")) {
***************
*** 1440,1444 ****
oneInput.setDisplayLength(10);
oneInput.setMaxLength(10);
! } else if (fieldType.equalsIgnoreCase("datetime")) {
oneInput.setType("TEXTFIELD");
oneInput.setDisplayLength(21);
--- 1441,1445 ----
oneInput.setDisplayLength(10);
oneInput.setMaxLength(10);
! } else if (fieldType.equalsIgnoreCase(DBField.DATETIME_TYPE)) {
oneInput.setType("TEXTFIELD");
oneInput.setDisplayLength(21);
***************
*** 1582,1587 ****
/**
* add an error code, and associated args for translating that error code
* @param errorMessage key to error msg found in message bundle
! * @param args an array of replacement value to use in ${} replacement templates
* @see com.jcorporate.expresso.core.i18n.MessageBundle#getString(java.lang.String, java.lang.Object[])
*/
--- 1583,1589 ----
/**
* add an error code, and associated args for translating that error code
+ *
* @param errorMessage key to error msg found in message bundle
! * @param args an array of replacement value to use in ${} replacement templates
* @see com.jcorporate.expresso.core.i18n.MessageBundle#getString(java.lang.String, java.lang.Object[])
*/
***************
*** 1600,1608 ****
* DOCUMENT ME!
*
! * @deprecated 7/04 v5.5 expresso uses only one property name, the default; use addError(String errmsg) instead
!
! * @param propName DOCUMENT ME!
* @param errorMessage DOCUMENT ME!
* @throws ControllerException DOCUMENT ME!
*/
public void addError(String propName, String errorMessage)
--- 1602,1609 ----
* DOCUMENT ME!
*
! * @param propName DOCUMENT ME!
* @param errorMessage DOCUMENT ME!
* @throws ControllerException DOCUMENT ME!
+ * @deprecated 7/04 v5.5 expresso uses only one property name, the default; use addError(String errmsg) instead
*/
public void addError(String propName, String errorMessage)
More information about the cvs
mailing list