tapestry-service-cache with tapestry 5.3.*

2012-09-10 Thread jqzone
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

Re: confused using tapestry page to return json data

2012-08-29 Thread jqzone
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

confused with Page ContextType and onActivate with StreamResponse

2012-08-28 Thread jqzone
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

Re: Lightweight TapestryTools update site

2012-07-26 Thread jqzone
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

How to add add a random number in requset path to avoid IE cache?

2011-09-08 Thread jqzone

Howard ,can you send me a copy of tapx based on tapestry 5.2.* ,Iwant to use tree components in my production Environment.

2011-08-26 Thread jqzone
I can not find it on https://github.com/hlship/tapx, and can not update to 5.3.*

tynamo tapestry-security 0.4.0 role based url peimission questions

2011-08-26 Thread jqzone
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

Re: How can I add media="screen" to tapestry build in css,such as default.css,tapestry-console.css...I'm using tapestry 5.2.6

2011-08-20 Thread jqzone
Inject @Path("context:layout/mycss.css") > private Asset mycss; > > void afterRender() { >javaScriptSupport.importStylesheet(new StylesheetLink(mycss, new >StylesheetOptions("screen", null)) ); > } > > >

How can I add media="screen" to tapestry build in css,such as default.css,tapestry-console.css...I'm using tapestry 5.2.6

2011-08-20 Thread jqzone
thanks!

Re: Architecture advice for app and API

2011-06-13 Thread jqzone
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

Re: Hi,Howard ,need some help with Tapx component Dynamic

2011-05-24 Thread jqzone
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

Re: [Tapestry Central] Rethinking JavaScript in Tapestry 5.3

2011-03-17 Thread jqzone
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

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-16 Thread jqzone
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.

Re: asset expansion question

2011-03-15 Thread jqzone
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

asset expansion question

2011-03-15 Thread jqzone
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

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
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? >> > >&

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread 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? > > > https://github.com/hlship/tapx/blob/master/tapx-core/src/main/java/com/howardlewisship/tapx/core

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
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

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
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

Re: Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
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

Is there anyway to change the behavior of ComponentTemplateSource,because I don't want to cache page templates or cache page templates with my own logic

2011-03-09 Thread jqzone
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

Re: T5: onActivate called before onSuccessFrom

2011-02-24 Thread jqzone
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;

Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-24 Thread jqzone
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

Re: Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-23 Thread jqzone
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 ? > > > > > >

Hello,Can anyone tell how to use servlet session Listener with tapestry IoC services ?

2011-02-22 Thread jqzone

Re: Hello,How can I add a dynamic value in URL,just like encode current locale

2010-12-08 Thread jqzone
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