Package org.apache.tapestry5.dom

Examples of org.apache.tapestry5.dom.Element.attribute()


        if (insideForm)
        {
            JSONObject parameters = new JSONObject(RequestConstants.FORM_CLIENTID_PARAMETER, formSupport.getClientId(),
                    RequestConstants.FORM_COMPONENTID_PARAMETER, formSupport.getFormComponentId());

            e.attribute("data-zone-parameters",
                    parameters.toString(compactJSON));
        }

        if (insideForm)
        {
View Full Code Here


        if (insideForm)
        {
            JSONObject parameters = new JSONObject(RequestConstants.FORM_CLIENTID_PARAMETER, formSupport.getClientId(),
                    RequestConstants.FORM_COMPONENTID_PARAMETER, formSupport.getFormComponentId());

            e.attribute("data-zone-parameters",
                    parameters.toString(compactJSON));
        }

        if (insideForm)
        {
View Full Code Here

                    "name", getControlName(),
                    "value", clientValue);

            if (getSelected().contains(model.getValue()))
            {
                checkbox.attribute("checked", "checked");
            }

            writer.write(model.getLabel());
            writer.end();
View Full Code Here

        resources.renderInformalParameters(writer);

        if (!visible)
        {
            element.attribute("style", "display: none;");
        }

        componentActions = new ComponentActionSink(logger, clientDataEncoder);

        // Here's the magic of environmentals ... we can create a wrapper around
View Full Code Here

        assertSame(w.end(), root);

        w.write("after child");

        root.attribute("gnip", "gnop");

        assertEquals(w.toString(),
                "<root gnip=\"gnop\" foo=\"bar\">before child<nested>inner text</nested>after child</root>");
    }
View Full Code Here

        // Write the data-page-initialized attribute in for all pages; it will be "true" when the page has no
        // initializations (which is somewhat rare in Tapestry). When the page has initializations, it will be set to
        // "true" once those initializations all run.
        if (body != null)
        {
            body.attribute("data-page-initialized", Boolean.toString(!hasScriptsOrInitializations));
        }

        if (!hasScriptsOrInitializations)
        {
            return;
View Full Code Here

                Element td = writer.element("td", "class", "t-location-content");

                if (line == current)
                {
                    td.attribute("class", "t-location-current");
                }

                if (start == current)
                {
                    td.attribute("class", "t-location-content-first");
View Full Code Here

                    td.attribute("class", "t-location-current");
                }

                if (start == current)
                {
                    td.attribute("class", "t-location-content-first");
                }

                writer.write(input);
                writer.end();
View Full Code Here

        if (this.dojoType != null)
        {
            Element parentNode = writer.getElement();
            List<Node> children = parentNode.getChildren();
            Element node = (Element) children.get(children.size() - 1);
            node.attribute(dojoRenderSupport.getDojoTypeAttr(), dojoType);
        }
    }
}
View Full Code Here

        if (zone != null)
        {
            String id = renderSupport.allocateClientId(resources);

            element.attribute("id", id);

            clientBehaviorSupport.linkZone(id, zone, link);
        }
    }
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.