Package org.dspace.app.xmlui.wing.element

Examples of org.dspace.app.xmlui.wing.element.Text.addError()


        {
            longError.setHelp("This is helpful text.");
        }
        if (error)
        {
            longError.addError("This field is very much is serious trouble, it's so horrible wrong that i now have to give you a very long stern message that may break across multiple lines! To fix this problem you should examine what you are attempting to do and consider other factors like what might have lead you to this path vs another path. Are you sure you even want this field or might another one work just as well?");
        }
        longError.setValue("Current raw value");
       
        // Text Area Field
        TextArea textArea = list.addItem().addTextArea("textarea");
View Full Code Here


        {
            name.setHelp("The username you wish to chooose");
        }
        if (error)
        {
            name.addError("Sorry, that username is already used by another user.");
        }
       
        Composite ssn = identity.addItem().addComposite("ssn");
        ssn.setLabel("SSN");
        if (help)
View Full Code Here

        {
            id.setValue(identifier);
        }
    if (errors.contains("identifier"))
        {
            id.addError(T_identifier_error);
        }
   
    form.addItem().addButton("submit_find").setValue(T_find);
   
    findItem.addHidden("administrative-continue").setValue(knot.getId());
View Full Code Here

       {
           email.setValue(this.email);
       }
       if (errors.contains("email"))
       {
           email.addError(T_error_not_found);
       }
      
       Item submit = form.addItem();
       submit.addButton("submit").setValue(T_submit);
      
View Full Code Here

        email.setRequired();
        email.setLabel(T_email_address);
        if (previousEmail != null)
        {
            email.setValue(previousEmail);
            email.addError(T_error_bad_login);
        }
       

        Item item = list.addItem();
        Password password = item.addPassword("login_password");
View Full Code Here

       email.setLabel(T_email_address);
       email.setHelp(T_email_address_help);
       email.setValue(this.email);
       if (errors.contains("email"))
       {
           email.addError(T_error_bad_email);
       }
      
       Item submit = form.addItem();
       submit.addButton("submit").setValue(T_submit_register);
      
View Full Code Here

        if(request.getParameter("openAccess")!=null){
      if(StringUtils.isEmpty(parameters.getParameter("name", ""))){
        name.addError(T_name_error);
      }
      if(StringUtils.isEmpty(parameters.getParameter("email", ""))){
        mail.addError(T_email_error);
      }
    }
       // mail.setValue(parameters.getParameter("mail",""));
        form.addItem().addHidden("isSent").setValue("true");
        form.addItem().addButton("openAccess").setValue(T_changeToOpen);
View Full Code Here

      Text short_description = metadataList.addItem().addText("short_description");
      short_description.setValue(thisCollection.getMetadata("short_description"));
      short_description.setSize(40);
      if (short_description_error != null)
        {
            short_description.addError(short_description_error);
        }
     
      // introductory text
      metadataList.addLabel(T_label_introductory_text);
      TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text");
View Full Code Here

        {
            queryField.setValue(query);
        }
        if (errors.contains("identifier"))
        {
            queryField.addError(T_bad_name);
        }
        queryField.setHelp(T_search_help);
        actionItem.addButton("submit_edit").setValue(T_submit_find);
        actionsList.addLabel(T_actions_advanced);
        actionsList.addItemXref(baseURL+"&submit_wildcard", T_actions_advanced_link);
View Full Code Here

      Text short_description = metadataList.addItem().addText("short_description");
      short_description.setValue(thisCommunity.getMetadata("short_description"));
      short_description.setSize(40);
      if (short_description_error != null)
        {
            short_description.addError(short_description_error);
        }
     
      // introductory text
      metadataList.addLabel(T_label_introductory_text);
      TextArea introductory_text = metadataList.addItem().addTextArea("introductory_text");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.