Spring Framework CustomBooleanEditor - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework CustomBooleanEditor class.

This code example shows how to use the following methods:setAsText
    @Override 
    public void setAsText(String text) throws IllegalArgumentException {
        if (StringUtils.isBlank(text)) {
            setValue(Boolean.FALSE);
        } else { 
            super.setAsText(text);
        } 
    } 
 
} 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
		binder.registerCustomEditor(java.util.Date.class, new CustomDateEditor(Context.getDateFormat(), true)); 
		binder.registerCustomEditor(java.util.Date.class, "valueDatetime", new CustomDateEditor(Context.getDateTimeFormat(), 
		        true)); 
		binder.registerCustomEditor(java.util.Date.class, "valueTime", new CustomDateEditor(Context.getTimeFormat(), true)); 
		binder.registerCustomEditor(Location.class, new LocationEditor()); 
		binder.registerCustomEditor(java.lang.Boolean.class, new CustomBooleanEditor(true)); //allow for an empty boolean value 
		binder.registerCustomEditor(Person.class, new PersonEditor()); 
		binder.registerCustomEditor(Order.class, new OrderEditor()); 
		binder.registerCustomEditor(Concept.class, new ConceptEditor()); 
		binder.registerCustomEditor(Location.class, new LocationEditor()); 
		binder.registerCustomEditor(Encounter.class, new EncounterEditor()); 
		binder.registerCustomEditor(Drug.class, new DrugEditor()); 
	} 
	 
	/** 
	 * @see org.springframework.web.servlet.mvc.BaseCommandController#onBind(javax.servlet.http.HttpServletRequest, 
	 *      java.lang.Object) 
	 */ 
	@Override 
	protected void onBind(HttpServletRequest request, Object command) throws Exception { 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java