This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SupportsInformalParameters | |
public class FormFieldSet { | |
@Parameter(required = true, defaultPrefix = BindingConstants.LITERAL) | |
private String title; | |
@Inject | |
private ComponentResources resources; | |
@Environmental |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SupportsInformalParameters | |
public abstract class AbstractField implements Field { | |
@SetupRender | |
final void setup() { | |
String id = clientId; | |
if (formSupport == null) | |
throw new RuntimeException(String.format("Component %s must be enclosed by a Form component.", | |
resources.getCompleteId())); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<t:actionlink t:id="updateLeft" zone="prop:leftZoneId" | |
rel="tooltip" title="zone=${prop:leftZoneId}" class="btn"> | |
${message:label.update} | |
</t:actionlink> | |
<br/><br/> | |
<t:zone t:id="leftZone"> | |
<div class="hero-unit"> | |
<p>${message:message.help-text}</p> | |
<p>${leftContent}</p> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void contributeMetaWorker(MappedConfiguration<Class, MetaDataExtractor> configuration) { | |
// register meta extractor for @RequireSession annotation | |
configuration.addInstance(RequireSession.class, RequireSessionExtractor.class); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.ui.mixins; | |
import org.apache.tapestry5.annotations.AfterRender; | |
import org.apache.tapestry5.annotations.BindParameter; | |
import org.apache.tapestry5.annotations.Import; | |
import org.apache.tapestry5.annotations.InjectContainer; | |
import org.apache.tapestry5.corelib.components.Form; | |
import org.apache.tapestry5.ioc.annotations.Inject; | |
import org.apache.tapestry5.json.JSONObject; | |
import org.apache.tapestry5.services.javascript.JavaScriptSupport; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ heroku login | |
$ heroku create <app-name> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.ui.mixins; | |
import org.apache.tapestry5.annotations.AfterRender; | |
import org.apache.tapestry5.annotations.InjectContainer; | |
import org.apache.tapestry5.corelib.components.Form; | |
import org.apache.tapestry5.ioc.annotations.Inject; | |
import org.apache.tapestry5.services.javascript.JavaScriptSupport; | |
/** | |
* This class represents fixin for form component that adds client-side logic to page that prevents double form |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Google extends ApiBinding { | |
String API_URL_BASE = "https://www.googleapis.com/oauth2/v2/"; | |
UserOperations userOperations(); | |
} | |
public interface UserOperations { | |
GoogleProfile getUserProfile(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.components; | |
import org.apache.tapestry5.BindingConstants; | |
import org.apache.tapestry5.ComponentResources; | |
import org.apache.tapestry5.EventConstants; | |
import org.apache.tapestry5.Link; | |
import org.apache.tapestry5.annotations.Cached; | |
import org.apache.tapestry5.annotations.OnEvent; | |
import org.apache.tapestry5.annotations.Parameter; | |
import org.apache.tapestry5.annotations.RequestParameter; |
NewerOlder