Re: users Digest 24 Feb 2010 11:26:55 -0000 Issue 4018

2010-02-24 Thread Wilson Ikeda
How many on the list would think that breaking with apache and trying a radical change (be more like a company, like SpringSource) is something that should be tried? After all being an Apache project does allow Donations or Funding directly to a respective project? like Tapestry? and i do believe t

Re: users Digest 24 Feb 2010 11:26:55 -0000 Issue 4018

2010-02-24 Thread Thiago H. de Paula Figueiredo
On Wed, 24 Feb 2010 20:10:30 -0300, Howard Lewis Ship wrote: Quality issues are hard to gauge. I agree. I was thinking about the same quality measures used in Tapestry itself: test coverage. Also, there's something good about having a suite of libraries that are released on the same sc

Re: [Tapestry Central] Securing Tapestry pages with Annotations, Part 1

2010-02-24 Thread Angelo Chen
Hi, I found this solution to the security elegant: simply putting a @RequiresLogin in the page to be protected and let the ComponentRequestFilter checks the annotation in the page. now if I need something else, say @ReqiresOwner, say I'd allow the owner of inbox to go to a Inbox page, I can pass

Re: Redirect not from onActivate

2010-02-24 Thread Alexander Kiel
> > For a beginner like me, it would be really nice if Tapestry had some > > lightweight annotations for authorization of pages, component visibility > > and events against some lightweight maybe only role based authentication > > service. > > Agreed. I may put something simple together for that

Re: Redirect not from onActivate

2010-02-24 Thread Howard Lewis Ship
On Wed, Feb 24, 2010 at 3:14 PM, Alexander Kiel wrote: >> > Well, because I want to redirect from other places in code, not from >> > onActivate() method. >> >> I think this is a good course. I think you'll find your pages more >> maintainable when you have this kind of organization in place. If y

Re: Redirect not from onActivate

2010-02-24 Thread Alexander Kiel
> > Well, because I want to redirect from other places in code, not from > > onActivate() method. > > I think this is a good course. I think you'll find your pages more > maintainable when you have this kind of organization in place. If you > have to get mid-way through processing or rendering the

Re: users Digest 24 Feb 2010 11:26:55 -0000 Issue 4018

2010-02-24 Thread Howard Lewis Ship
On Wed, Feb 24, 2010 at 2:56 PM, Thiago H. de Paula Figueiredo wrote: > On Wed, 24 Feb 2010 19:47:07 -0300, Howard Lewis Ship > wrote: > >> One of the challenges of running Tapestry as an Apache project is >> that, due to licensing concerns, a lot of the integrations are >> non-starters. >> I kee

Re: users Digest 24 Feb 2010 11:26:55 -0000 Issue 4018

2010-02-24 Thread Thiago H. de Paula Figueiredo
On Wed, 24 Feb 2010 19:47:07 -0300, Howard Lewis Ship wrote: One of the challenges of running Tapestry as an Apache project is that, due to licensing concerns, a lot of the integrations are non-starters. I keep expecting someone to say "Hey, You can't integrate with Hibernate! It's LGPL!".

Re: users Digest 24 Feb 2010 11:26:55 -0000 Issue 4018

2010-02-24 Thread Howard Lewis Ship
One of the challenges of running Tapestry as an Apache project is that, due to licensing concerns, a lot of the integrations are non-starters. I keep expecting someone to say "Hey, You can't integrate with Hibernate! It's LGPL!". Some days I fantasize about just moving the code base up to GitHub

Re: Redirect not from onActivate

2010-02-24 Thread Howard Lewis Ship
On Wed, Feb 24, 2010 at 2:24 PM, Algirdas wrote: > > Well, because I want to redirect from other places in code, not from > onActivate() method. I think this is a good course. I think you'll find your pages more maintainable when you have this kind of organization in place. If you have to get mid

Re: Redirect not from onActivate

2010-02-24 Thread Algirdas
Well, because I want to redirect from other places in code, not from onActivate() method. But I see now it should be possible to redesign a bit to achieve required redirect from onActivate(). -- View this message in context: http://n2.nabble.com/Redirect-not-from-onActivate-tp4627871p4629010.h

Re: [T5]New locale management and CSS path

2010-02-24 Thread Howard Lewis Ship
To be clear, @IncludeStylesheet is just some meta-programming; it ultimately goes through RenderSupport just like the hand-tooled code. On Wed, Feb 24, 2010 at 2:22 PM, Howard Lewis Ship wrote: > How about something simpler, like > > @IncludeStylesheet("context:static/css/form.css") > public clas

Re: [T5]New locale management and CSS path

2010-02-24 Thread Howard Lewis Ship
How about something simpler, like @IncludeStylesheet("context:static/css/form.css") public class MyComponent { ... } Let Tapestry do the heavy lifting. What you are providing there is an asset path. The "context:" part indicates that the file in question is in the web application context ("clas

Re: Redirect not from onActivate

2010-02-24 Thread Alexander Kiel
Hi Algirdas, why do you want to use response.sendRedirect()? You can simply return a page class name. Tapestry always redirects. Regards Alex On Wed, 2010-02-24 at 13:06 -0800, Algirdas wrote: > Thank you all for suggestions. > > > It appears that I have to redesign some of page activation rou

Re: Redirect not from onActivate

2010-02-24 Thread Algirdas
Thank you all for suggestions. It appears that I have to redesign some of page activation routines. As for RedirectException, I'm afraid it will crash with the same NullPointerException, because it uses same response redirect as I use now: response.sendRedirect(pageLink.toRedirectURI()); al

Is Testify supposed to work with Tapestry 5.1.0.5?

2010-02-24 Thread Alexander Kiel
Hi, I get the following error: ERROR - RequestExceptionHandler- Processing of request failed with uncaught exception: (class: org/apache/tapestry5/corelib/base/AbstractLink, method: testifyGetrenderSupport signature: ()Lorg/apache/tapestry5/RenderSupport;) Inconsistent args_size for opc_invok

Re: Redirect not from onActivate

2010-02-24 Thread Vassilis Bekiaris
Hi, I have seen a how-to on tapestry's wiki that describes how to implement a RedirectException which, when thrown from any part of your code, will perform a redirect (similar to the RedirectException that used to exist in Tapestry 4): http://wiki.apache.org/tapestry/Tapestry5RedirectException

Re: Redirect not from onActivate

2010-02-24 Thread Thiago H. de Paula Figueiredo
On Wed, 24 Feb 2010 16:11:18 -0300, Algirdas wrote: Hello, Hi! Is there any way to do a redirect from any method? Not out-of-the-box. For example I have EnsureUserLoggedIn() which should redirect to Login page, but this is called not in onActivate() method. onActivate() (or any metho

Re: Redirect not from onActivate

2010-02-24 Thread Alexander Kiel
Hi Algirdas, you can use the @OnEvent annotation with a value of "activate". For the redirect, you should simply return the class of the page. Regards Alex On Wed, 2010-02-24 at 11:11 -0800, Algirdas wrote: > Hello, > > Is there any way to do a redirect from any method? > > For example I have

Redirect not from onActivate

2010-02-24 Thread Algirdas
Hello, Is there any way to do a redirect from any method? For example I have EnsureUserLoggedIn() which should redirect to Login page, but this is called not in onActivate() method. I used response.sendRedirect(link), but since upgrage to 5.1.0.5 it throws NPE org.apache.tapestry5.internal.s

Re: users Digest 24 Feb 2010 11:26:55 -0000 Issue 4018

2010-02-24 Thread Wilson Ikeda
My point of view: - Donations or funding: why not? It is something that need a deeply analysis? why not just do it and see what happens? - And like SpringSource i think that child projects like Testify, Tapestry-Cayenne should be (if possible) on the Tapestry site and deeply integrated with it (b

Re: [T5]Has AjaxFormLoop-addrow-addrowlink-parameter context value?

2010-02-24 Thread Mats Andersson
As far as I can see there is no simple solution using addRowLink. If you have found a solution to this by now, I am interested in how you solved it. If I can find a solution I will post it here. Dariusz skrev: Is it possible? Maybe there is a workaround for this. moonlee wrote: I use Aj

Re: Intellij reloading page and components templates not working

2010-02-24 Thread Ben Gidley
We solve this a different way by just starting jetty with a main class. See http://wiki.apache.org/tapestry/Tapestry5RunViaMain for an example. This has the advantage of working the same in any IDE. Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Mon, Feb 22, 2010 at 12:39 AM, Raul Raja Marti

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Alfonso Quiroga
My native language is spanish (Argentina), my second, english. So I can't read Igor Drobiazko's book, but I'd love to. No chances on english version? In that case, I could help for a spanish version. Thanks On Wed, Feb 24, 2010 at 10:33 AM, Alexander Kiel wrote: > Hi, > > maybe I can contribute s

Re: [T5]New locale management and CSS path

2010-02-24 Thread Thomas Cucchietti
Hello Thiago! Your proposal was (again) the good solution, so thanks a lot :o) Here follows the code : @SetupRender void setup(){ Asset asset = assetSource.getContextAsset("static/css/form.css", null); renderSupport.addStylesheetLink(asset,null); ... } Which

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Alexander Kiel
Hi, maybe I can contribute something to this discussion, as I started using Tapestry just one week ago. As you said already, the documentation (aside from the one on tapestry.apache.org itself) is somehow wildly scattered around. The wiki is, like most wikis, not well structured. There is plenty

Re: [T5]New locale management and CSS path

2010-02-24 Thread Thiago H. de Paula Figueiredo
On Wed, 24 Feb 2010 10:18:18 -0300, Thomas Cucchietti wrote: Alexander, this was the first thing I tried to do : @SetupRender void setup(){ renderSupport.addStylesheetLink("context:static/css/form.css", null); } @Inject AssertSource and use one of its methods

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Thiago H. de Paula Figueiredo
On Wed, 24 Feb 2010 10:12:57 -0300, Piero Sartini wrote: Yep - now the question is how to nicely integrate them into http://tapestry.apache.org Agreed. :) From a user's perspective, SSO would be great as well (wiki, forum, comments) Single Sign On? As far as I know, Apache's sites (bes

Re: [T5]New locale management and CSS path

2010-02-24 Thread Thomas Cucchietti
Alexander, this was the first thing I tried to do : @SetupRender void setup(){ renderSupport.addStylesheetLink("context:static/css/form.css", null); } But the HTML result is : And my styles aren't used. Thomas. 2010/2/24 Alexander Kiel > Hi Thomas, > > please

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Piero Sartini
> There is one in Nabble (new version at > http://n2.nabble.com/Tapestry-Users-f832.html, old one at > http://old.nabble.com/Tapestry-f302.html), OSDir, MarkMail, etc. Yep - now the question is how to nicely integrate them into http://tapestry.apache.org >From a user's perspective, SSO would be gr

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Thiago H. de Paula Figueiredo
On Wed, 24 Feb 2010 09:56:39 -0300, Piero Sartini wrote: You are propably right - but it does not 'feel' / look that healthy. Maybe the problem again is visibility. We have the mailing lists - point taken. But they are very well hidded behind a subscription. What would be great is a nice look

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Ulrich Stärk
About the Confluence part: I'm playing with a Confluence wiki right now and I'm evaluating how to import existing content. Once that's done we can have the website completely in Confluence and published from there. This will require a new process though because right now the documentation is ti

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Piero Sartini
> I think Tapestry has a very healthy community around it. I guess you're > talking about the size of it. The mailing list has many messages per day, > people contribute packages, etc. You are propably right - but it does not 'feel' / look that healthy. Maybe the problem again is visibility. We ha

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Thiago H. de Paula Figueiredo
On Wed, 24 Feb 2010 08:26:24 -0300, Piero Sartini wrote: We are getting there - with contributions from the community. But we need to make them more visible and communicate that it is totally OK to use them, even if it is not part of the tapestry core. Maybe we even need to think about making

Re: [Tapestry Central] March of Progress

2010-02-24 Thread Piero Sartini
> I've just spent whole January, four hours a week, teaching Tapestry in a > large company with lots of people working in large projects, including one > that will be used nationwide in Brazil. The standard argument doesn't > convince me: JSF is a mess and it is a standard. It suffers from the > ev

Re: [T5]New locale management and CSS path

2010-02-24 Thread Alexander Kiel
Hi Thomas, please try to use: renderSupport.addStylesheetLink("context:static/css/common.css", null); The "context:" prefix should point to your document root of your webapp. Regards Alex On Wed, 2010-02-24 at 11:52 +0100, Thomas Cucchietti wrote: > Hello everybody, > > As it is linked to a p

[T5]New locale management and CSS path

2010-02-24 Thread Thomas Cucchietti
Hello everybody, As it is linked to a pretty recent behavior (since T 5.1 apparently), I've not found information about the following problem : The new locale management system (no more cookie, but locale added in the root URL) has a side effect on my application. I'm used to include my styleshe

Re: Pretty Printing JSON

2010-02-24 Thread Ville Virtanen
Hi, this definitely sounds something T5 should do as it is known to be developer friendly and aid in debugging whenever possible. It sounds good to enable this in non-production mode and disable in production. - Ville Ben Dotte-2 wrote: > > I put up a post on pretty printing the JSON that

Re: Tapesty Testify Tapestry360 missing dependency

2010-02-24 Thread olip
thanks! its online again! -- View this message in context: http://n2.nabble.com/Tapesty-Testify-Tapestry360-missing-dependency-tp4613235p4624435.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubsc

Re: [T5] Missing dependency "tapestry360-project"

2010-02-24 Thread olip
Now the folder is online again! -- View this message in context: http://n2.nabble.com/T5-Missing-dependency-tapestry360-project-tp4604461p4624413.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubs