Examples of TagAttributes


Examples of javax.faces.view.facelets.TagAttributes

        protected Tag convertTag(Tag tag, Namespace namespace, String localName) {
            Location location = tag.getLocation();
            String ns = namespace.uri;
            String qName = namespace.name() + ":" + localName;

            TagAttributes attributes = convertAttributes(tag.getAttributes());

            Tag converted = new Tag(location, ns, localName, qName, attributes);

            for (TagAttribute tagAttribute : attributes.getAll()) {
                // set the correct tag
                tagAttribute.setTag(converted);
            }

            return converted;
View Full Code Here

Examples of javax.faces.view.facelets.TagAttributes

            }
            if ("input".equals(n)) {
                TagAttribute attr = tag.getAttributes().get("type");
                if (attr != null) {
                    String t = attr.getValue();
                    TagAttributes na = removeType(tag.getAttributes());
                    if ("text".equals(t)) {
                        return new Tag(tag.getLocation(),
                                HtmlLibrary.Namespace, "inputText", tag
                                        .getQName(), na);
                    }
View Full Code Here

Examples of org.cruxframework.crux.core.rebind.screen.widget.declarative.TagAttributes

         
          added.add(attr.value());
        }
      }
    }
    TagAttributes attrs = processorClass.getAnnotation(TagAttributes.class);
    if (attrs != null)
    {
      for (TagAttribute attr : attrs.value())
      {
        if (!added.contains(attr.value()) && !attr.xsdIgnore())
        {
          out.print("<xs:attribute name=\""+attr.value()+"\" type=\""+getSchemaType(attr.type(), library)+"\" ");
          if (attr.required())
View Full Code Here

Examples of org.cruxframework.crux.core.rebind.screen.widget.declarative.TagAttributes

   */
  private void scanAttributes(Class<?> factoryClass, List<AttributeCreator> attributes, Set<String> added) throws CruxGeneratorException
  {
    try
        {
      TagAttributes attrs = factoryClass.getAnnotation(TagAttributes.class);
      if (attrs != null)
      {
        for (TagAttribute attr : attrs.value())
        {
          String attrName = attr.value();
          if (!added.contains(attrName))
          {
            added.add(attrName);
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.