[cvs] eforum commit by ppilgrim: latest updates (unfinished)
JCorporate Ltd
jcorp at jcorp2.servlets.net
Tue Nov 30 18:02:11 PST 2004
Log Message:
-----------
latest updates (unfinished)
Modified Files:
--------------
eforum/src/WEB-INF/src/com/jcorporate/eforum/controller:
Personalise.java
eforum/src/expresso/components/eforum/jsp:
editOptions.jsp
Revision Data
-------------
Index: Personalise.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/eforum/src/WEB-INF/src/com/jcorporate/eforum/controller/Personalise.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lsrc/WEB-INF/src/com/jcorporate/eforum/controller/Personalise.java -Lsrc/WEB-INF/src/com/jcorporate/eforum/controller/Personalise.java -u -r1.1 -r1.2
--- src/WEB-INF/src/com/jcorporate/eforum/controller/Personalise.java
+++ src/WEB-INF/src/com/jcorporate/eforum/controller/Personalise.java
@@ -6,6 +6,7 @@
import org.apache.log4j.Logger;
import com.jcorporate.eforum.dbobj.ForumOptions;
+import com.jcorporate.eforum.dbobj.ForumSignature;
import com.jcorporate.expresso.core.controller.ControllerException;
import com.jcorporate.expresso.core.controller.ControllerRequest;
import com.jcorporate.expresso.core.controller.ControllerResponse;
@@ -75,6 +76,9 @@
public final static String CONST_WORD_WRAP_LENGTH = "wordWrapLength";
/** JSP attribute name for this controller's input */
+ public final static String CONST_SIGNATURE = "signature";
+
+ /** JSP attribute name for this controller's input */
// public final static String CONST_ = "";
/**
@@ -114,6 +118,12 @@
fo.checkDefaultValueIntegrity();
}
+ // Retrieve the current forum signature
+ ForumSignature sign = new ForumSignature();
+ sign.setDataContext( request.getDataContext() );
+ sign.setField( ForumSignature.FLD_UID, request.getUid() );
+ sign.find();
+
//
// Create user credential controller elements
//
@@ -217,10 +227,18 @@
oneInput.setDefaultValue( fo.getField( ForumOptions.FLD_WORD_WRAP_LENGTH ));
optionsBlock.add(oneInput);
- Transition t = new Transition("processEditOptionsForm", this);
- t.setLabel( "Submit" );
+ oneInput = new Input("signature");
+ oneInput.setType( Input.ATTRIBUTE_TEXTAREA );
+ oneInput.setMaxLength(80);
+ oneInput.setDisplayLength( 8 );
+ oneInput.setLabel("signature");
+ oneInput.setDefaultValue( sign.getField( ForumSignature.FLD_SIGNATURE_TEXT ));
+ optionsBlock.add(oneInput);
+
+ Transition submit = new Transition("processEditOptionsForm", this);
+ submit.setLabel( "Submit" );
// t.addParam("GroupId", request.getParameter("GroupId"));
- response.addTransition(t);
+ response.addTransition(submit);
}
/**
Index: editOptions.jsp
===================================================================
RCS file: /home/javacorp/.cvs/expresso/eforum/src/expresso/components/eforum/jsp/editOptions.jsp,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lsrc/expresso/components/eforum/jsp/editOptions.jsp -Lsrc/expresso/components/eforum/jsp/editOptions.jsp -u -r1.1 -r1.2
--- src/expresso/components/eforum/jsp/editOptions.jsp
+++ src/expresso/components/eforum/jsp/editOptions.jsp
@@ -123,6 +123,11 @@
<td><expresso:InputTag name="msgHeight" /></td>
</tr>
<tr>
+ <td><bean:message key="editOptions.signature" /></td>
+ <!-- <td><expresso:InputTag name="signature" cols="80" rows="8" /></td> -->
+ <td><html:textarea name="optionsBlock" property="signature" cols="80" rows="8" /></td>
+ </tr>
+ <tr>
<td><bean:message key="editOptions.useSignature" /></td>
<td><expresso:InputTag name="useSignature" /></td>
</tr>
More information about the cvs
mailing list