1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.travel.web.form;
17
18 import javax.servlet.http.HttpServletRequest;
19
20 import org.apache.struts.action.ActionMapping;
21 import org.kuali.rice.kew.api.WorkflowDocument;
22 import org.kuali.rice.kns.web.struts.form.KualiTransactionalDocumentFormBase;
23 import org.kuali.rice.kns.web.ui.HeaderField;
24
25 import edu.sampleu.travel.bo.TravelAccount;
26 import edu.sampleu.travel.document.TravelDocument2;
27
28 public class TravelDocumentForm2 extends KualiTransactionalDocumentFormBase {
29
30 @Override
31 public void populateHeaderFields(WorkflowDocument workflowDocument) {
32 getDocInfo().clear();
33 getDocInfo().addAll(getStandardHeaderFields(workflowDocument));
34 getDocInfo().add(new HeaderField("DataDictionary.AttributeReferenceDummy.attributes.initiatorNetworkId", "Yahoo!"));
35 getDocInfo().add(new HeaderField("DataDictionary.AttributeReferenceDummy.attributes.initiatorNetworkId", "Yahoo!"));
36 getDocInfo().add(new HeaderField("DataDictionary.AttributeReferenceDummy.attributes.initiatorNetworkId", "Yahoo!"));
37 }
38
39 private TravelAccount travelAccount = new TravelAccount();
40
41 public TravelDocumentForm2() {
42 super();
43 this.setDocument(new TravelDocument2());
44 }
45
46
47
48
49
50
51
52 public void reset(ActionMapping mapping, HttpServletRequest request) {
53 this.setMethodToCall(null);
54 this.setRefreshCaller(null);
55 this.setAnchor(null);
56 this.setCurrentTabIndex(0);
57 }
58
59 public TravelAccount getTravelAccount() {
60 return travelAccount;
61 }
62
63 public void setTravelAccount(TravelAccount travelAccount) {
64 this.travelAccount = travelAccount;
65 }
66
67 }