Examples of UIDecorate


Examples of org.jboss.seam.ui.component.UIDecorate

   }

   @Override
   protected void doEncodeEnd(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException
   {
      UIDecorate decorate = (UIDecorate) component;

      boolean hasMessage = decorate.hasMessage();
      UIComponent aroundDecoration = decorate.getDecoration("aroundField");
      UIComponent aroundInvalidDecoration = decorate.getDecoration("aroundInvalidField");
      if (aroundDecoration != null && !hasMessage)
      {
         aroundDecoration.setParent(decorate);
         aroundDecoration.encodeEnd(context);
      }
      if (aroundInvalidDecoration != null && hasMessage)
      {
         aroundInvalidDecoration.setParent(decorate);
         aroundInvalidDecoration.encodeEnd(context);
      }
      if (decorate.isEnclose())
      {
          context.getResponseWriter().endElement(decorate.getElement());
      }

      restoreOriginalValues(storeOriginals, Contexts.getEventContext());
   }
View Full Code Here

Examples of org.jboss.seam.ui.component.UIDecorate

   }

   @Override
   protected void doEncodeChildren(ResponseWriter writer, FacesContext context, UIComponent component) throws IOException
   {
      UIDecorate decorate = (UIDecorate) component;

      boolean hasMessage = decorate.hasMessage();

      UIComponent beforeDecoration = decorate.getDecoration("beforeField");
      UIComponent beforeInvalidDecoration = decorate.getDecoration("beforeInvalidField");
      if (beforeDecoration != null && !hasMessage)
      {
         beforeDecoration.setParent(decorate);
         renderChild(context, beforeDecoration);
      }
      if (beforeInvalidDecoration != null && hasMessage)
      {
         beforeInvalidDecoration.setParent(decorate);
         renderChild(context, beforeInvalidDecoration);
      }

      renderChildren(context, decorate);

      UIComponent afterDecoration = decorate.getDecoration("afterField");
      UIComponent afterInvalidDecoration = decorate.getDecoration("afterInvalidField");
      if (afterDecoration != null && !hasMessage)
      {
         afterDecoration.setParent(decorate);
         renderChild(context, afterDecoration);
      }
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.