/** * Used inside an {@link org.apache.tapestry5.corelib.components.AjaxFormLoop} component to spur the addition of a new * row. Triggers a server-side {@linkplain org.apache.tapestry5.EventConstants#ADD_ROW addRow} event on the * AjaxFormLoop, which must return the newly added object, which will be rendered in the body of the AjaxFormLoop and * sent to the client web browser. * * @tapestrydoc */ @SupportsInformalParameters public class AddRowLink { @Inject private ComponentResources resources; void beginRender(MarkupWriter writer) { writer.element("a", "href", "#", "data-afl-trigger", "add"); resources.renderInformalParameters(writer); } void afterRender(MarkupWriter writer) { writer.end(); } }
/** * Renders a {@code <span>} tag with the CSS class to select a <a href="http://getbootstrap.com/components/#glyphicons">Bootstrap Glyphicon</a>. * * @tapestrydoc * @since 5.4 */ @SupportsInformalParameters public class Glyphicon { /** * The name of the icon, e.g., "arrow-up", "flag", "fire" etc. */ @Parameter(required = true, allowNull = false, defaultPrefix = BindingConstants.LITERAL) String name; @Inject ComponentResources resources; boolean beginRender(MarkupWriter writer) { writer.element("span", "class", "glyphicon glyphicon-" + name); resources.renderInformalParameters(writer); writer.end(); return false; } }
@SupportsInformalParameters public class OuterAny { // Also, leave a few parameters here and there in the old naming style, with a // leading underscore. @Component(inheritInformalParameters = true) private Any innerAny; }
@SupportsInformalParameters public class RemoveRowLink
/** * Used to render out all informal parameters, at the end of the {@link org.apache.tapestry5.annotations.BeginRender} * phase. * * This mixin can be used with components that render a single tag inside the {@link BeginRender} phase. RenderInformals * will activate during the PostBeginRender phase to write additional attributes, from the informal parameters, into the * active element. * * If you want this behavior, but need to render more than a single tag, then implement render phase methods for the * {@link BeforeRenderTemplate} and {@link AfterRenderTemplate} phases. Use those phases to write the additional * elements and close them. * * This is often used as a base class, for cases where a component doesn't have other mixins. * * @tapestrydoc */ @MixinAfter @SupportsInformalParameters public class RenderInformals { @Inject private ComponentResources resources; void beginRender(MarkupWriter writer) { resources.renderInformalParameters(writer); } }
@SupportsInformalParameters public class Error
@SupportsInformalParameters public class ListInformals { @Inject private ComponentResources resources; void beginRender(MarkupWriter writer) { writer.element("dl", "id", "informals"); for (String name : resources.getInformalParameterNames()) { writer.element("dt"); writer.write(name); writer.end(); writer.element("dd"); writer.write(resources.getInformalParameter(name, String.class)); writer.end(); } writer.end(); // dl } }
@SupportsInformalParameters public class Dynamic
@SupportsInformalParameters public abstract class AbstractConditional
@SupportsInformalParameters public class Delegate
@SupportsInformalParameters public class DialogLink extends AbstractExtendableComponent
@SupportsInformalParameters public class ZoneDroppable {
@SupportsInformalParameters public class DialogAjaxLink extends DialogLink
@SupportsInformalParameters @Import(stylesheet = "kaptcha.css") public class KaptchaField extends AbstractField
@SupportsInformalParameters public class LocalDate
@SupportsInformalParameters public class Output
@SupportsInformalParameters @Import(module = "t5/core/time-interval") public class TimeInterval
@SupportsInformalParameters public class Carousel implements ClientElement {
@SupportsInformalParameters public class DdSlick implements ClientElement {
@SupportsInformalParameters public class GridColumns {