/** * Append a new division (div element) to the document's body. This is a * short cut method for divisions with out special rendering instructions. * The division created is not interactive meaning that it may not contain * any form elements, to create an interactive division use * addInteractiveDivision(). * * @param name * a local identifier used to differentiate the element from its * siblings * @return A new division. */ public Division addDivision(String name) throws WingException { return this.addDivision(name, null); }
@Override public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division div = body.addInteractiveDivision("submissions", contextPath+"/submissions", Division.METHOD_POST,"primary"); div.setHead(T_head); this.addWorkflowTasks(div); // this.addUnfinishedSubmissions(div); this.addSubmissionsInWorkflow(div); // this.addPreviousSubmissions(div); }
/** * Generate a new wing document element. * * @param context * (Required) The context this element is contained in. */ public WingDocument(WingContext context) throws WingException { super(context); // These are all required so we just create them now. this.meta = new Meta(context); this.body = new Body(context); this.options = new Options(context); }
/** * Translate into SAX * * @param contentHandler * (Required) The registered contentHandler where SAX events * should be routed too. * @param lexicalHandler * (Required) The registered lexicalHandler where lexical events * (such as CDATA, DTD, etc) should be routed too. * @param namespaces * (Required) SAX Helper class to keep track of namespaces able * to determine the correct prefix for a given namespace URI. */ public void toSAX(ContentHandler contentHandler, LexicalHandler lexicalHandler, NamespaceSupport namespaces) throws SAXException { if (!merged) { startElement(contentHandler, namespaces, E_BODY, null); } for (Division division : divisions) { division.toSAX(contentHandler, lexicalHandler, namespaces); } if (!merged) { endElement(contentHandler, namespaces, E_BODY); } }
Division reason = body.addDivision("login-reason"); Division login = body.addInteractiveDivision("login", contextPath + "/ldap-login", Division.METHOD_POST, "primary"); login.setHead(T_head1);
if (this.body != null && this.body.mergeEqual(namespace, localName, qName, attributes))
/** * dispose */ public void dispose() { if (this.meta != null) { meta.dispose(); } if (this.body != null) { body.dispose(); } if (this.options != null) { options.dispose(); } this.meta = null; this.body = null; this.options = null; super.dispose(); } //
body.toSAX(contentHandler, lexicalHandler, namespaces);
Division reason = body.addDivision("login-reason"); Division login = body.addInteractiveDivision("login", contextPath + "/password-login", Division.METHOD_POST, "primary"); login.setHead(T_head1);
@Override public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException, ProcessingException { Division division = body.addDivision("staticpage"); division.setHead("StaticPageBodyHead"); division.addPara("StaticPageBodyPara"); } }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division div = body.addInteractiveDivision("submissions", contextPath+"/submissions", Division.METHOD_POST,"primary"); div.setHead(T_head); this.addWorkflowTasks(div); // this.addUnfinishedSubmissions(div); this.addSubmissionsInWorkflow(div); // this.addPreviousSubmissions(div); }
Division div = body.addInteractiveDivision("test", "", "post", "primary"); div.setHead("Inline form test"); div.addPara("There are two options you can use to control how this page is generated. First is the help parameter, if this is present then help text will be provided for all fields. Next is the error parameter, if it is provided then all fields will be generated in error conditions."); Division suited = body.addDivision("suited"); suited.setHead("Fields suited towards being used inline"); Division unsuited = body.addDivision("unsuited"); unsuited.setHead("Fields typicaly unsuited towards being used inline");
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division feedback = body.addDivision("feedback-sent","primary"); feedback.setHead(T_head); feedback.addPara(T_para1); } }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division div = body.addInteractiveDivision("submit-removed",contextPath+"/submit", Division.METHOD_POST,"primary submission"); div.setHead(T_head); div.addPara(T_info1); div.addPara().addXref(contextPath+"/submissions",T_go_submissions); }
public void addBody(Body body) throws WingException { Division cannot = body.addDivision("register-cannot","primary"); cannot.setHead(T_head); EPersonUtils.registrationProgressList(cannot, 0); cannot.addPara(T_para1); }
public void addBody(Body body) throws SAXException, WingException, SQLException, IOException, AuthorizeException { Context context = ContextUtil.obtainContext(ObjectModelHelper.getRequest(objectModel)); if(!AuthorizeManager.isAdmin(context)){ throw new AuthorizeException(); } Division div = body.addInteractiveDivision("xmlworkflowoverview", contextPath + "/admin/xmlworkflowoverview", Division.METHOD_POST, "primary"); this.buildSearchResultsDivision(div); }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Request request = ObjectModelHelper.getRequest(objectModel); Division div = body.addDivision("failed_auth"); div.setHead(T_h1); div.addPara((Message)request.getSession().getAttribute(SESSION_ATTRIBUTE_NAME)); deRegisterErrorCode(request); }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division search = body.addInteractiveDivision("front-page-search",contextPath+"/discover",Division.METHOD_GET,"primary"); search.setHead(T_head); search.addPara(T_para1); Para fields = search.addPara(); fields.addText("query"); fields.addButton("submit").setValue(T_go); } }
public void addBody(Body body) throws WingException { Division updated = body.addDivision("profile-updated", "primary"); updated.setHead(T_head); updated.addPara(T_para1); updated.addPara().addXref(contextPath + "/", T_go_home); }
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division search = body.addInteractiveDivision("front-page-search",contextPath+"/search",Division.METHOD_GET,"primary"); search.setHead(T_head); search.addPara(T_para1); Para fields = search.addPara(); fields.addText("query"); fields.addButton("submit").setValue(T_go); } }