use of org.apache.tapestry5.annotations.AfterRender in project flowlogix by flowlogix.
the class LoginFormBase method detectJavaScript.
@AfterRender
public void detectJavaScript() {
Link link = componentResources.createEventLink(ENABLE_JS_EVENT);
String eventURI = link.toAbsoluteURI(requestGlobals.getRequest().isSecure());
jsSupport.addInitializerCall("detectJS", eventURI);
}
use of org.apache.tapestry5.annotations.AfterRender in project tapestry-5 by apache.
the class ZoneRefresh method addJavaScript.
@AfterRender
void addJavaScript() {
Link link = resources.createEventLink("zoneRefresh", context);
javaScriptSupport.require("t5/core/zone-refresh").with(zone.getClientId(), period, link.toString());
}
use of org.apache.tapestry5.annotations.AfterRender in project tapestry-5 by apache.
the class FormGroup method afterRender.
void afterRender(MarkupWriter writer) {
if (fieldWrapper != null) {
// field wrapper
writer.end();
}
// TAP5-2662
final Element inputElement = writer.getDocument().getElementById(field.getClientId());
if (inputElement != null) {
final String clientId = field.getClientId();
final String labelId = javaScriptSupport.allocateClientId(clientId + "-label");
label.attribute("id", labelId);
inputElement.attribute("aria-labelledby", labelId);
}
// div.form-group
writer.end();
}
use of org.apache.tapestry5.annotations.AfterRender in project tapestry-5 by apache.
the class OverridenMixin method afterRender.
void afterRender(MarkupWriter writer) {
final Element element = writer.getDocument().getElementById(clientElement.getClientId());
element.element("span", "id", "overridenMixin").text(" [Overriden mixin]");
}
use of org.apache.tapestry5.annotations.AfterRender in project tapestry-5 by apache.
the class FormFragment method afterRender.
/**
* Closes the <div> tag and pops off the {@link org.apache.tapestry5.services.FormSupport} environmental
* override.
*
* @param writer
*/
void afterRender(MarkupWriter writer) {
Element hidden = hiddenFieldPositioner.getElement();
hidden.attributes("type", "hidden", "name", Form.FORM_DATA, "value", componentActions.getClientData());
// div
writer.end();
environment.pop(FormSupport.class);
resetClientId();
}
Aggregations