Examples of InputTag


Examples of org.apache.empire.jsf2.components.InputTag

        if (StringUtils.isNotEmpty(forInput) && !forInput.equals("*"))
        {   // Set Label input Id
            UIComponent input = FacesUtils.getFacesApplication().findComponent(context, forInput, tag);
            if (input!=null && (input instanceof InputTag))
            {   // Check Read-Only
                InputTag inputTag = ((InputTag)input);
                column = inputTag.getInputColumn();
                readOnly = inputTag.isInputReadOnly();
                required = inputTag.isInputRequired();
            }
            else
            {   // Not found (<e:input id="ABC"...> must match <e:label for="ABC"...>
                log.warn("Input component {} not found for label {}.", forInput, getColumn().getName());
            }
View Full Code Here

Examples of org.apache.empire.jsf2.components.InputTag

   
    public void updateLabelComponent(FacesContext context, HtmlOutputLabel label, String forInput)
    {
        boolean hasMark = (label.getChildCount()>0);
        // Find Input Control (only if forInput Attribute has been set!)
        InputTag inputTag = null;
        if (StringUtils.isNotEmpty(forInput) && !forInput.equals("*"))
        {   // Set Label input Id
            UIComponent input = FacesUtils.getFacesApplication().findComponent(context, forInput, tag);
            if (input!=null && (input instanceof InputTag))
            {   // Check Read-Only
                inputTag = ((InputTag)input);
            }
        }
        // Is the Mark required?
        boolean required = (inputTag!=null ? inputTag.isInputRequired() : isValueRequired());
        if (required==hasMark)
            return;
        // Add or remove the mark
        if (required)
            addRequiredMark(label);
View Full Code Here

Examples of org.apache.empire.jsf2.components.InputTag

        if (StringUtils.isNotEmpty(forInput) && !forInput.equals("*"))
        {   // Set Label input Id
            UIComponent input = FacesUtils.getFacesApplication().findComponent(context, forInput, tag);
            if (input!=null && (input instanceof InputTag))
            {   // Check Read-Only
                InputTag inputTag = ((InputTag)input);
                column = inputTag.getInputColumn();
                readOnly = inputTag.isInputReadOnly();
                required = inputTag.isInputRequired();
            }
            else
            {   // Not found (<e:input id="ABC"...> must match <e:label for="ABC"...>
                log.warn("Input component {} not found for label {}.", forInput, getColumn().getName());
            }
View Full Code Here

Examples of org.apache.empire.jsf2.components.InputTag

   
    public void updateLabelComponent(FacesContext context, HtmlOutputLabel label, String forInput)
    {
        boolean hasMark = (label.getChildCount()>0);
        // Find Input Control (only if forInput Attribute has been set!)
        InputTag inputTag = null;
        if (StringUtils.isNotEmpty(forInput) && !forInput.equals("*"))
        {   // Set Label input Id
            UIComponent input = FacesUtils.getFacesApplication().findComponent(context, forInput, tag);
            if (input!=null && (input instanceof InputTag))
            {   // Check Read-Only
                inputTag = ((InputTag)input);
            }
        }
        // Is the Mark required?
        boolean required = (inputTag!=null ? inputTag.isInputRequired() : isValueRequired());
        if (required==hasMark)
            return;
        // Add or remove the mark
        if (required)
            addRequiredMark(label);
View Full Code Here

Examples of org.apache.empire.jsf2.components.InputTag

        if (StringUtils.isNotEmpty(forInput) && !forInput.equals("*"))
        {   // Set Label input Id
            UIComponent input = FacesUtils.getFacesApplication().findComponent(context, forInput, tag);
            if (input!=null && (input instanceof InputTag))
            {   // Check Read-Only
                InputTag inputTag = ((InputTag)input);
                column = inputTag.getInputColumn();
                readOnly = inputTag.isInputReadOnly();
                required = inputTag.isInputRequired();
            }
        }
        if (column==null)
        {   // Get from LinkTag
            column = getColumn();
View Full Code Here

Examples of org.htmlparser.tags.InputTag

   //*-- string extractor does not input form values -- handle separately
   parser.setInputHTML(htmlcontents); StringBuffer inputVal = new StringBuffer();
   NodeList nodelist3 = parser.parse(new TagNameFilter ("INPUT"));
   for (int i = 0; i < nodelist3.size(); i++)
   { InputTag itag = (InputTag) nodelist3.elementAt(i);
   if ((itag != null) && (itag.getAttribute("value") != null) )
   { inputVal.append(" "); inputVal.append( itag.getAttribute("value") ); }
   }

   //*-- finally set the contents of the document
   doc.setContents( new StringBuffer(cleanHTML( st.extractStrings(false)) + " " + inputVal) );
   doc.setFileName(ifile);
View Full Code Here

Examples of org.htmlparser.tags.InputTag

                    AppletTag applet= (AppletTag)node;
                    binUrlStr= applet.getAppletClass();
                }
                else if (node instanceof InputTag)
                {
                    InputTag input= (InputTag)node;
                    // we check the input tag type for image
                    String strType= input.getAttribute("type");
                    if (strType != null && strType.equalsIgnoreCase("image"))
                    {
                        // then we need to download the binary
                        binUrlStr= input.getAttribute("src");
                    }
        } else if (node instanceof LinkTag){
          LinkTag link = (LinkTag)node;
          if (link.getChild(0) instanceof ImageTag){
            ImageTag img = (ImageTag)link.getChild(0);
View Full Code Here

Examples of org.htmlparser.tags.InputTag

    public void testToHTML() throws ParserException
    {
        parseAndAssertNodeCount(1);
        assertTrue("Node 1 should be INPUT Tag", node[0] instanceof InputTag);
        InputTag InputTag;
        InputTag = (InputTag) node[0];
        assertEquals(
            "HTML String",
            "<INPUT NAME=\"Google\" TYPE=\"text\">",
            InputTag.toHtml());
    }
View Full Code Here

Examples of org.htmlparser.tags.InputTag

    public void testToString() throws ParserException
    {
        parseAndAssertNodeCount(1);
        assertTrue("Node 1 should be INPUT Tag", node[0] instanceof InputTag);
        InputTag InputTag;
        InputTag = (InputTag) node[0];
        assertEquals(
            "HTML Raw String",
            "INPUT TAG\n--------\nNAME : Google\nTYPE : text\n",
            InputTag.toString());
    }
View Full Code Here

Examples of org.htmlparser.tags.InputTag

        createParser(testHTML);
        parser.addScanner(new InputTagScanner("-i"));

        parseAndAssertNodeCount(1);
        assertTrue("Node 1 should be INPUT Tag", node[0] instanceof InputTag);
        InputTag InputTag;
        InputTag = (InputTag) node[0];
        assertStringEquals(
            "HTML String",
            "<INPUT CHECKED=\"\" NAME=\"cbCheck\" TYPE=\"checkbox\">",
            InputTag.toHtml());
    }
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.