I want to use tapestry-service-cache (
https://github.com/ciaranw/tapestry-service-cache ) ,but it has a bug
with tapestry 5.3.*
In tapestry 5.3.* ,ServiceResources. getImplementationClass(), just return
null;
but in class
com.ciaranwood.tapestry.cache.services.advice.CacheMethodDecoratorImpl ,is
Yes ,I do think pages / components don't need a template,I'm using
tapestry 5.3.4
On Wed, Aug 29, 2012 at 4:49 PM, Lance Java wrote:
> Pages / components don't need a template. If your page always returns a
> StreamResponse from onActivate() then it should not have a template.
>
> I'm not sure
Some code like this
Page class
public class SearchUser{
@ActivationRequestParameter(value="filer")
private String filter;
@Inject
private IStaffService staffService;
private String staffId;
protected void onActivate(String staffId){
this.staffId = staffId;
}
StreamResponse onActivat
I just installed Tapestry Tools on Juno EE version.
Installs fine.
Green icon for .tml files works fine.
Suggestion for variable expansion in tml file *does not* works fine...
On Tue, Jul 24, 2012 at 8:23 AM, Chris Mylonas wrote:
> Hi Gavin,
>
> I just installed Tapestry Tools on Juno EE versio
I can not find it on https://github.com/hlship/tapx, and can not update to
5.3.*
my config
//
public static
void contributeSecurityConfiguration(Configuration
configuration,
SecurityFilterChainFactory factory) {
configuration.add(factory.createChain("/channel/**").add(factory.roles(),
"manager").build());
}
if user does not have the "manager" role,request will redirect to erro
Inject @Path("context:layout/mycss.css")
> private Asset mycss;
>
> void afterRender() {
>javaScriptSupport.importStylesheet(new StylesheetLink(mycss, new
>StylesheetOptions("screen", null)) );
> }
>
>
>
thanks!
I want to do this too,but I don't konw how to do it.
On Tue, Jun 14, 2011 at 8:40 AM, David Woods wrote:
> Hi, I am currently developing a SAAS webapp using Tapestry 5.2.5. My goal
> is to make much of the functionality also available as a RESTful web
> service, using tapestry-resteasy, for add
I'm sorry,that is own fault.
My Resource implementation had some mistakes
On Fri, May 20, 2011 at 2:34 PM, jqzone wrote:
> I'm using Tapx component Dynamic with some dynamic template,I meet a
> problem like this:
>
> My online shop application is designed to be able
That great!
On Thu, Mar 17, 2011 at 8:17 AM, Howard wrote:
> I've always had a love/hate relationship with JavaScript; some of the
> earliest motivations for Tapestry was to "encapsulate that ugly
> JavaScript stuff so I don't have to worry about it again." However, as
> I've come to appreciate
hi,Howard,I'm using tax component Dynamic.It works fine.
Now I would like to add a loop support just like freemaker in Dynamic,so it
will support separating data and view.
the freemaker sample code is :
<#list 0..n_ as n_>
Have you ever done this, I hope you can give me some suggestions.
Here is my code.
TemplateResource.java
public class TemplateResource implements Resource{
private URI uri;
public TemplateResource(String uri) {
try {
this.uri = new URI(uri);
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
}
public TemplateResource(URI uri) throws MalformedUR
Hallo,I have a new question!
I'm writing a asset expansion like this
http://people.apache.org/~uli/images/tapestry.png} />
I implememt a Resource using URI, and add a asset configure,It works well
Now I want to change it like this
I want the server root path http://people.apache.org/~uli/ to
Thank. That's what I want!
在 2011年3月10日 上午4:14,jqzone 写道:
> OK,I will try this. If it supports tapestry tml grammar,it will be fine
>
> 在 2011年3月10日 上午4:03,Howard Lewis Ship 写道:
>
> Yes.
>>
>> 2011/3/9 jqzone :
>> > Do you mean this?
>> >
>&
OK,I will try this. If it supports tapestry tml grammar,it will be fine
在 2011年3月10日 上午4:03,Howard Lewis Ship 写道:
> Yes.
>
> 2011/3/9 jqzone :
> > Do you mean this?
> >
> https://github.com/hlship/tapx/blob/master/tapx-core/src/main/java/com/howardlewisship/tapx/core
Do you mean this?
https://github.com/hlship/tapx/blob/master/tapx-core/src/main/java/com/howardlewisship/tapx/core/components/Dynamic.java
在 2011年3月10日 上午3:33,Howard Lewis Ship 写道:
> 2011/3/9 jqzone :
> > Hi,Howard,that's what I want ! How can I do this?
>
> I'm not su
r 9, 2011 at 1:08 AM, jqzone wrote:
> > I extending template locator just follow the link below,it works well.
> >
> http://blog.tapestry5.de/index.php/2010/08/06/extending-template-lookup-mechanism/
> >
> > My situation is ,when the same page is requested,I should check t
ry.apache.org/tapestry5.2-dev/apidocs/org/apache/tapestry5/internal/services/ComponentTemplateSource.html
>
>
> On Wed, Mar 9, 2011 at 10:08 AM, jqzone wrote:
>
> > I extending template locator just follow the link below,it works well.
> >
> >
> http://blog.tapestr
I extending template locator just follow the link below,it works well.
http://blog.tapestry5.de/index.php/2010/08/06/extending-template-lookup-mechanism/
My situation is ,when the same page is requested,I should check the config
and decide which tml to use,for example ,different sub domains use di
I met this problem before , I change the onActivatereturn type to void .
2011/2/17 Alessandro Badin
>
> Hello guys,
>
> What about I have something like this:
>
>Object onActivate() {
>condition = service.findSomething();
>return (condition == null) ? OtherPage.class : null;
Thank for your replies.
Finally ,I found TapestryFilter has put registry into servlet context,so I
do it like this,
MyHttpSessionListoner.java
@Override
public void sessionDestroyed(HttpSessionEvent se) {
//Get Tapestry IoC Registry
Registry registry = (Registry)
se.getSession().getServletC
essionListener to clear lock if the user session expires.
>
> g,
> kris
>
>
>
>
>
>
> Von:jqzone
> An: Tapesty
> Datum: 23.02.2011 08:10
> Betreff:Hello,Can anyone tell how to use servlet session Listener
> with tapestry IoC services ?
>
>
>
>
>
>
Thanks for all your replies!
Actually,We are developing an application in Multi-Tenant mode,Every tenant
shares the same web domain.In a private network(every tenant login in before
use the app for example),tapestry works well.But now we meet a new
problem,our customers need to publish some pages t
26 matches
Mail list logo