Examples of UploadWidget


Examples of org.openmrs.module.htmlformentry.widget.UploadWidget

          }
          valueWidget.setInitialValue(initialValue);
        }

      } else if (concept.isComplex()) {
        valueWidget = new UploadWidget();
        String lookFor = existingObs == null ? null : existingObs.getValueComplex();
        Obs initialValue = null;
        if (lookFor != null) {
          initialValue = existingObs;
        }
View Full Code Here

Examples of org.openmrs.module.htmlformentry.widget.UploadWidget

        Assert.assertEquals("<select id=\"w1\" name=\"w1\"><option value=\"XL\">Extra Large</option><option value=\"L\" selected=\"true\">Large</option></select>", dw.generateHtml(context));
    }

    @Test
    public void UploadWidgetShouldProduceHtml(){
        UploadWidget uw = new UploadWidget();
        context.registerWidget(uw);
        Assert.assertEquals("<input type=\"file\" class=\"uploadWidget\" id=\"w1\" name=\"w1\"/>",uw.generateHtml(context));
    }
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.