Beispiel #1
0
 protected void acaoFormatarCampos() throws Exception {
   formatarCamposExtras();
   List<String> camposFormatados = getCamposFormatados();
   for (String path : camposFormatados) {
     Object o = BeanProperty.instance().getNestedProperty(getBackBean(), path);
     String campoParaFormatar = null;
     if (o != null) {
       campoParaFormatar = String.valueOf(o);
     } else {
       continue;
     }
     if (!campoParaFormatar.isEmpty()) {
       String atributoFormatado =
           WordFormatter.clear(WordFormatter.remover(campoParaFormatar)).toUpperCase();
       BeanProperty.instance().setNestedProperty(getBackBean(), path, atributoFormatado);
     }
   }
 }