[cvs]
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib
TransitionParamsTag.java
JCorporate Ltd
jcorp at jcorp2.servlets.net
Thu Jun 17 12:25:26 PDT 2004
Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib
In directory jcorp2.servlets.net:/tmp/cvs-serv10310/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib
Modified Files:
TransitionParamsTag.java
Log Message:
add setOmitControllerParam
Index: TransitionParamsTag.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/ext/taglib/TransitionParamsTag.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** TransitionParamsTag.java 9 Oct 2003 23:55:17 -0000 1.7
--- TransitionParamsTag.java 17 Jun 2004 19:25:23 -0000 1.8
***************
*** 66,69 ****
--- 66,70 ----
import com.jcorporate.expresso.core.controller.Transition;
+ import com.jcorporate.expresso.core.misc.StringUtil;
import javax.servlet.jsp.JspTagException;
***************
*** 75,79 ****
* The ActionTag renders an Expresso Action item in HTML
* as a submit button.
- * @version $Revision$ $Date$
* @author Adam Rossi
*/
--- 76,79 ----
***************
*** 85,88 ****
--- 85,89 ----
private java.lang.String nameToUse = null;
private java.lang.String valueToUse = null;
+ private boolean isOmitControllerParam;
/**
***************
*** 90,94 ****
*/
public TransitionParamsTag() {
- super();
} /* ActionTag() */
--- 91,94 ----
***************
*** 139,146 ****
}
! //Add the hidden form field that contains the encoded button params
! //Also, add a hidden form field with the "cmd=button" pair.
! //This does not hurt to duplicate...
! writer.print(oneTransition.getParamString());
} else {
writer.println("The Transition Button Could Not Be Displayed");
--- 139,151 ----
}
! // it would be nice to optimize so that controller param
! // is used only if trans. needs it. but we don't know
! // what 'file' part of URL is being used; have to leave this
! // up to option
! if ( isOmitControllerParam ) {
! writer.print(oneTransition.getParamString(false));
! } else {
! writer.print(oneTransition.getParamString(true));
! }
} else {
writer.println("The Transition Button Could Not Be Displayed");
***************
*** 164,168 ****
/**
- * Insert the method's description here.
* Creation date: (12/29/2000 %r)
*
--- 169,172 ----
***************
*** 174,178 ****
/**
- * Insert the method's description here.
* Creation date: (12/29/2000 %r)
*
--- 178,181 ----
***************
*** 184,188 ****
/**
! * Insert the method's description here.
* Creation date: (12/29/2000 %r)
*
--- 187,198 ----
/**
! *
! * @param set java.lang.String a string boolean like 'y' or 'true'
! */
! public void setOmitControllerParam(String set) {
! isOmitControllerParam = StringUtil.toBoolean(set);
! }
!
! /**
* Creation date: (12/29/2000 %r)
*
***************
*** 194,197 ****
} /* ActionTag */
-
- /* ActionTag */
\ No newline at end of file
--- 204,205 ----
More information about the cvs
mailing list