Changeset 3786
- Timestamp:
- Aug 23, 2010, 1:56:54 PM (13 years ago)
- Location:
- trunk/client/servlet/src/org/proteios
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/servlet/src/org/proteios/action/hit/ViewActiveHit.java
r3373 r3786 30 30 import org.proteios.ActionLink; 31 31 import org.proteios.Localizer; 32 import org.proteios.params.*; 32 33 import org.proteios.action.ProteiosAction; 33 34 import org.proteios.action.gel.ViewGelOrNewGel; … … 61 62 * Session id for active hit 62 63 */ 63 public static final VInteger VHITID = new VInteger("active.hit.id", 1, true);64 public static final VInteger VHITID = new ActiveHitID(); 64 65 65 66 -
trunk/client/servlet/src/org/proteios/action/hit/ViewHit.java
r1916 r3786 29 29 30 30 import org.proteios.action.ProteiosAction; 31 import org.proteios.gui.form.FormFactory; 31 import org.proteios.params.DBID; 32 import org.proteios.params.ActiveHitID; 32 33 import se.lu.thep.waf.ActionException; 33 34 import se.lu.thep.waf.constraints.InvalidParameterValue; 34 35 35 36 /** 36 * Sets the ViewActiveHit.VFILEID attribute and forwards request to37 * {@link ViewActiveHit}.38 37 * 39 * @author olle38 * @author gregory 40 39 */ 41 40 public class ViewHit 42 41 extends ProteiosAction<ViewHit> 43 42 { 43 private static final VInteger vid = new DBID(); 44 private static final VInteger vhitid = new ActiveHitId(); 45 44 46 @Override 45 47 public void runMe() 46 48 throws ActionException, InvalidParameterValue 47 49 { 48 verifyParameters(FormFactory.VID);49 Integer hitId = getValidInteger(FormFactory.VID); 50 log.debug(this.getClass().getSimpleName() + "::runMe(): hitId = " + hitId);51 log.debug(this.getClass().getSimpleName() + "::runMe(): ViewActiveHit.VHITID.getName() = \"" + ViewActiveHit.VHITID.getName() + "\"");52 setSessionAttribute( ViewActiveHit.VHITID.getName(), hitId);50 Integer hitId; 51 52 verifyParameters(id); 53 hitId = getValidInteger(id); 54 setSessionAttribute(vhitid.getName(), hitId); 53 55 setForwardTo(ViewActiveHit.class); 54 56 } -
trunk/client/servlet/src/org/proteios/gui/form/FormFactory.java
r3760 r3786 31 31 import org.proteios.Localizer; 32 32 import org.proteios.MascotPropertiesFile; 33 import org.proteios.params.DBID; 33 34 import org.proteios.action.ActionFactory; 34 35 import org.proteios.action.ProteiosAction; … … 203 204 private HashMap<String, String> filterValueColumnHashMap = null; 204 205 // Valid parameters 205 public static final VInteger VID = new VInteger("itemId", 1, true);206 public static final VInteger VID = new DBID(); 206 207 public static final VInteger VPROTOCOLID = new VInteger("protocolId", 0, 207 208 true);
Note: See TracChangeset
for help on using the changeset viewer.