/** * Set the raw value of the field removing any previous raw values. * * @param integer * Field value as an integer */ public void setValue(int integer) throws WingException { setValue(String.valueOf(integer)); }
/** * Add an input control that is not rendered on the screen and hidden from * the user. * * @param name * (Required) a non-unique local identifier used to differentiate * the element from its siblings within an interactive division. * This is the name of the field use when data is submitted back * to the server. * @param rend * (May be null) a rendering hint used to override the default * display of the element. * @return a new hidden field */ public Hidden addHidden(String name, String rend) throws WingException { Hidden hidden = new Hidden(context, name, rend); contents.add(hidden); return hidden; }
/** * Set the raw value of the field removing any previous raw values. */ public Value setValue() throws WingException { removeValueOfType(Value.TYPE_RAW); Value value = new Value(context, Value.TYPE_RAW); values.add(value); return value; }
/** * Set the raw value of the field removing any previous raw values. * * @param characters * (May be null) Field value as a string */ public void setValue(String characters) throws WingException { Value value = this.setValue(); value.addContent(characters); }
/** * Set the raw value of the field removing any previous raw values. * * @param message * (Required) A key into the i18n catalogue for translation into * the user's preferred language. */ public void setValue(Message message) throws WingException { Value value = this.setValue(); value.addContent(message); } }
if(type.equals("filter") || type.equals("sort")){ if(request.getParameter("query") != null){ division.addHidden("query").setValue(request.getParameter("query")); division.addHidden("scope").setValue(request.getParameter("scope")); division.addHidden("fq").setValue(fq); division.addHidden("rpp").setValue(request.getParameter("rpp")); division.addHidden("sort_by").setValue(request.getParameter("sort_by")); division.addHidden("order").setValue(request.getParameter("order"));
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { Division div = body.addInteractiveDivision("submit-complete",contextPath+"/handle/"+handle+"/submit", Division.METHOD_POST,"primary submission"); div.setHead(T_head); div.addPara(T_info1); div.addPara().addXref(contextPath+"/submissions",T_go_submission); div.addPara().addButton("submit_again").setValue(T_submit_again); div.addHidden("handle").setValue(handle); }
findItem.addHidden("administrative-continue").setValue(knot.getId());
public void addBody(Body body) throws SAXException, WingException, SQLException { // DIVISION: metadata-import Division div = body.addInteractiveDivision("metadata-import",contextPath + "/admin/metadataimport", Division.METHOD_MULTIPART,"primary administrative"); div.setHead(T_head1); Para file = div.addPara(); file.addFile("file"); Para actions = div.addPara(); Button button = actions.addButton("submit_upload"); button.setValue(T_submit_upload); div.addHidden("administrative-continue").setValue(knot.getId()); }
@Override public void addBody(Body body) throws SAXException, WingException, SQLException, IOException, AuthorizeException { Item item = workflowItem.getItem(); Collection collection = workflowItem.getCollection(); Request request = ObjectModelHelper.getRequest(objectModel); String actionURL = contextPath + "/handle/"+collection.getHandle() + "/xmlworkflow"; //Retrieve our pagenumber int page = ReviewAction.MAIN_PAGE; if(request.getAttribute("page") != null){ page = Integer.parseInt(request.getAttribute("page").toString()); } // Generate a from asking the user two questions: multiple // titles & published before. Division div = body.addInteractiveDivision("perform-task", actionURL, Division.METHOD_POST, "primary workflow"); div.setHead(T_HEAD); addWorkflowItemInformation(div, item, request); switch (page){ case ReviewAction.MAIN_PAGE: renderMainPage(div); break; case ReviewAction.REJECT_PAGE: renderRejectPage(div); break; } div.addHidden("submission-continue").setValue(knot.getId()); }
jump.addHidden(param.getKey()).setValue(param.getValue());
@Override public void addBody(Body body) throws SAXException, WingException, SQLException, IOException, AuthorizeException { Item item = workflowItem.getItem(); Collection collection = workflowItem.getCollection(); Request request = ObjectModelHelper.getRequest(objectModel); String actionURL = contextPath + "/handle/"+collection.getHandle() + "/xmlworkflow"; //Retrieve our pagenumber int page = ReviewAction.MAIN_PAGE; if(request.getAttribute("page") != null){ page = Integer.parseInt(request.getAttribute("page").toString()); } // Generate a from asking the user two questions: multiple // titles & published before. Division div = body.addInteractiveDivision("perform-task", actionURL, Division.METHOD_POST, "primary workflow"); div.setHead(T_HEAD); addWorkflowItemInformation(div, item, request); switch (page){ case org.dspace.xmlworkflow.state.actions.processingaction.AcceptEditRejectAction.MAIN_PAGE: renderMainPage(div); break; case ReviewAction.REJECT_PAGE: renderRejectPage(div); break; } div.addHidden("submission-continue").setValue(knot.getId()); }
@Override public void addBody(Body body) throws SAXException, WingException, SQLException, IOException, AuthorizeException { Item item = workflowItem.getItem(); Collection collection = workflowItem.getCollection(); Request request = ObjectModelHelper.getRequest(objectModel); String actionURL = contextPath + "/handle/"+collection.getHandle() + "/xmlworkflow"; //Retrieve our pagenumber int page = org.dspace.xmlworkflow.state.actions.processingaction.ReviewAction.MAIN_PAGE; if(request.getAttribute("page") != null){ page = Integer.parseInt(request.getAttribute("page").toString()); } // Generate a from asking the user two questions: multiple // titles & published before. Division div = body.addInteractiveDivision("perform-task", actionURL, Division.METHOD_POST, "primary workflow"); div.setHead(T_HEAD); addWorkflowItemInformation(div, item, request); switch (page){ case org.dspace.xmlworkflow.state.actions.processingaction.ReviewAction.MAIN_PAGE: renderMainPage(div); break; case org.dspace.xmlworkflow.state.actions.processingaction.ReviewAction.REJECT_PAGE: renderRejectPage(div); break; } div.addHidden("submission-continue").setValue(knot.getId()); }
controls.addHidden(param.getKey()).setValue(param.getValue());
jump.addHidden(param.getKey()).setValue(param.getValue());
buttons.addButton("submit_cancel").setValue(T_submit_cancel); deleted.addHidden("administrative-continue").setValue(knot.getId());
@Override public void addBody(Body body) throws SAXException, WingException, SQLException, IOException, AuthorizeException { Item item = workflowItem.getItem(); Collection collection = workflowItem.getCollection(); Request request = ObjectModelHelper.getRequest(objectModel); String actionURL = contextPath + "/handle/"+collection.getHandle() + "/xmlworkflow"; // Generate a from asking the user two questions: multiple // titles & published before. Division div = body.addInteractiveDivision("perform-task", actionURL, Division.METHOD_POST, "primary workflow"); div.setHead(T_HEAD); addWorkflowItemInformation(div, item, request); renderMainPage(div); div.addHidden("submission-continue").setValue(knot.getId()); }
moved.addHidden("administrative-continue").setValue(knot.getId());