Item item = form.addItem("item-name","hidden"); TextArea other = item.addTextArea("other");
private void renderRejectPage(Division div) throws WingException { Request request = ObjectModelHelper.getRequest(objectModel); List form = div.addList("reject-workflow",List.TYPE_FORM); form.addItem(T_info2); TextArea reason = form.addItem().addTextArea("reason"); reason.setLabel(T_reason); reason.setRequired(); reason.setSize(15, 50); if (Action.getErrorFields(request).contains("reason")) reason.addError(T_reason_required); div.addHidden("page").setValue(ReviewAction.REJECT_PAGE); org.dspace.app.xmlui.wing.element.Item actions = form.addItem(); actions.addButton("submit_reject").setValue(T_submit_reject); actions.addButton("submit_cancel").setValue(T_submit_cancel); } }
private void renderRejectPage(Division div) throws WingException { Request request = ObjectModelHelper.getRequest(objectModel); List form = div.addList("reject-workflow",List.TYPE_FORM); form.addItem(T_info2); TextArea reason = form.addItem().addTextArea("reason"); reason.setLabel(T_reason); reason.setRequired(); reason.setSize(15, 50); if (Action.getErrorFields(request).contains("reason")) reason.addError(T_reason_required); div.addHidden("page").setValue(ReviewAction.REJECT_PAGE); org.dspace.app.xmlui.wing.element.Item actions = form.addItem(); actions.addButton("submit_reject").setValue(T_submit_reject); actions.addButton("submit_cancel").setValue(T_submit_cancel); } }
private void renderRejectPage(Division div) throws WingException { Request request = ObjectModelHelper.getRequest(objectModel); List form = div.addList("reject-workflow",List.TYPE_FORM); form.addItem(T_info2); TextArea reason = form.addItem().addTextArea("reason"); reason.setLabel(T_reason); reason.setRequired(); reason.setSize(15, 50); if (Action.getErrorFields(request).contains("reason")) reason.addError(T_reason_required); div.addHidden("page").setValue(org.dspace.xmlworkflow.state.actions.processingaction.ReviewAction.REJECT_PAGE); org.dspace.app.xmlui.wing.element.Item actions = form.addItem(); actions.addButton("submit_reject").setValue(T_submit_reject); actions.addButton("submit_cancel").setValue(T_submit_cancel); } }
TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text"); introductory_text.setSize(6, 40); TextArea copyright_text = metadataList.addItem().addTextArea("copyright_text"); copyright_text.setSize(6, 40); TextArea side_bar_text = metadataList.addItem().addTextArea("side_bar_text"); side_bar_text.setSize(6, 40); TextArea license = metadataList.addItem().addTextArea("license"); license.setSize(6, 40); TextArea provenance_description = metadataList.addItem().addTextArea("provenance_description"); provenance_description.setSize(6, 40);
TextArea fragmentField = form.addItem().addTextArea("fragment"); fragmentField.setLabel("Fragment"); fragmentField.setHelp("Enter free formed text, you may use <p>,<a>,<b>,<i>, or <img> tags.");
TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text"); introductory_text.setSize(6, 40); TextArea copyright_text = metadataList.addItem().addTextArea("copyright_text"); copyright_text.setSize(6, 40); TextArea side_bar_text = metadataList.addItem().addTextArea("side_bar_text"); side_bar_text.setSize(6, 40);
public void addBody(Body body) throws SAXException, WingException, UIException, SQLException, IOException, AuthorizeException { // Build the item viewer division. Division feedback = body.addInteractiveDivision("feedback-form", contextPath+"/feedback",Division.METHOD_POST,"primary"); feedback.setHead(T_head); feedback.addPara(T_para1); List form = feedback.addList("form",List.TYPE_FORM); Text email = form.addItem().addText("email"); email.setLabel(T_email); email.setHelp(T_email_help); email.setValue(parameters.getParameter("email","")); TextArea comments = form.addItem().addTextArea("comments"); comments.setLabel(T_comments); comments.setValue(parameters.getParameter("comments","")); form.addItem().addButton("submit").setValue(T_submit); feedback.addHidden("page").setValue(parameters.getParameter("page","unknown")); } }
TextArea description = form.addItem().addTextArea("description"); description.setLabel(T_description); description.setValue(descriptionValue);
TextArea reason = form.addItem().addTextArea("reason"); reason.setLabel(T_reason); reason.setRequired();
TextArea textArea = form.addItem().addTextArea(fieldName,"submit-textarea");
qualifier.setValue(qualifierValue); TextArea scopeNote =form.addItem().addTextArea("newNote"); scopeNote.setLabel(T_note); scopeNote.setHelp(T_note_help);
TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text"); introductory_text.setValue(thisCollection.getMetadata("introductory_text")); introductory_text.setSize(6, 40); TextArea copyright_text = metadataList.addItem().addTextArea("copyright_text"); copyright_text.setValue(thisCollection.getMetadata("copyright_text")); copyright_text.setSize(6, 40); TextArea side_bar_text = metadataList.addItem().addTextArea("side_bar_text"); side_bar_text.setValue(thisCollection.getMetadata("side_bar_text")); side_bar_text.setSize(6, 40); TextArea license = metadataList.addItem().addTextArea("license"); license.setValue(thisCollection.getMetadata("license")); license.setSize(6, 40); TextArea provenance_description = metadataList.addItem().addTextArea("provenance_description"); provenance_description.setValue(thisCollection.getMetadata("provenance_description")); provenance_description.setSize(6, 40);
TextArea message = form.addItem().addTextArea("message"); message.setLabel(T_alerts_message_label); message.setSize(5, 45);
TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text"); introductory_text.setValue(thisCommunity.getMetadata("introductory_text")); introductory_text.setSize(6, 40); TextArea copyright_text = metadataList.addItem().addTextArea("copyright_text"); copyright_text.setValue(thisCommunity.getMetadata("copyright_text")); copyright_text.setSize(6, 40); TextArea side_bar_text = metadataList.addItem().addTextArea("side_bar_text"); side_bar_text.setValue(thisCommunity.getMetadata("side_bar_text")); side_bar_text.setSize(6, 40);
qualifier.setValue(qualifierValue); TextArea scopeNote =form.addItem().addTextArea("updateNote"); scopeNote.setLabel(T_note); scopeNote.setHelp(T_note_help);
TextArea textArea = list.addItem().addTextArea("textarea"); textArea.setLabel("Text Area"); if (help) TextArea emptyTextArea = list.addItem().addTextArea("emptyTextarea"); emptyTextArea.setLabel("Empty Text Area"); if (help)