Exemplo n.º 1
0
 protected void verifyTag(TagModel tag, FacesId id, ClassName handler) {
   if (Strings.isEmpty(tag.getName())) {
     String defaultTagName = namingConventions.inferTagName(id);
     tag.setName(defaultTagName);
   }
   if (null == tag.getType()) {
     tag.setType(TagType.Facelets);
   }
   if (tag.isGenerate()) {
     if (null == tag.getBaseClass()) {
       // TODO - choose default handler class by tag type.
       tag.setBaseClass(handler);
     }
     if (null == tag.getTargetClass()) {
       namingConventions.inferTagHandlerClass(
           id, tag.getType().toString()); // TODO - get markup somethere.
     }
   }
   // TODO - copy component description to tag, if it has no description.
 }