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 class LazyTreeModel<T> implements TreeModel<T> { | |
private final ValueEncoder<T> encoder; | |
private final LazyTreeModelSource<T> source; | |
public LazyTreeModel<T>(ValueEncoder<T> encoder, LazyTreeModelSource<T> source) { | |
this.encoder = encoder; | |
this.source = source; | |
} | |
@Override |
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
@Scope(ScopeConstants.PERTHREAD) | |
public static FullTextSession buildFullTextSession(PropertyShadowBuilder propertyShadowBuilder) { | |
return Search.getFullTextSession(sessionManager.getSession()); | |
} |
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 mypackage.components; | |
import javax.inject.Inject; | |
import org.apache.tapestry5.BindingConstants; | |
import org.apache.tapestry5.ComponentResources; | |
import org.apache.tapestry5.annotations.Parameter; | |
import org.apache.tapestry5.annotations.SetupRender; | |
import org.apache.tapestry5.services.Request; | |
import mypackage.TabModel; |
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 org.lazan.t5components.components; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import org.apache.tapestry5.Block; | |
import org.apache.tapestry5.annotations.InjectComponent; | |
import org.apache.tapestry5.annotations.OnEvent; | |
import org.apache.tapestry5.annotations.Parameter; |
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
@Events({Event.SCENARIO_THEN, Event.SCENARIO_AFTER}) | |
public class AssertCommand { | |
@Parameter(requiredGroup="value") | |
private String sql; | |
@Parameter(name="attribute", requiredGroup="value") | |
private String attributeName; | |
@Parameter(name="expected", required=true) | |
private String expectedString; |
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:parallel> | |
<t:someComponent /> | |
</t:parallel> |
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
[INFO] +- org.apache.tapestry:tapestry-core:jar:5.4-beta-22:compile | |
[INFO] | +- org.antlr:antlr-runtime:jar:3.5.2:compile | |
[INFO] | +- commons-codec:commons-codec:jar:1.5:compile | |
[INFO] | +- org.apache.tapestry:tapestry-json:jar:5.4-beta-22:compile | |
[INFO] | \- org.apache.tapestry:tapestry-ioc:jar:5.4-beta-22:compile | |
[INFO] | +- org.apache.tapestry:tapestry5-annotations:jar:5.4-beta-22:compile | |
[INFO] | +- org.apache.tapestry:plastic:jar:5.4-beta-22:compile | |
[INFO] | +- javax.inject:javax.inject:jar:1:compile | |
[INFO] | \- org.apache.tapestry:tapestry-func:jar:5.4-beta-22:compile | |
[INFO] +- com.google.code:sitemapgen4j:jar:1.0.1:compile |
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 class FileBean { | |
private UploadedFile file; | |
public void setUploadedFile(UploadedFile file) { | |
this.file = file; | |
} | |
public UploadedFile getUploadedFile() { | |
return file; | |
} |
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 class MyPage { | |
@Inject | |
private DynamicTemplateParser parser; | |
public DynamicTemplate getMyDynamicTemplate() { | |
// if you want this to come from a string you might need to | |
// implement a StringResource by extending AbstractResource | |
Resource resource = new ClasspathResource("path/to/some-template.tml"); | |
return parser.parseTemplate(resource); | |
} |
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 BlockContainer { | |
void addBlock(Block block); | |
} |