Re: Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-22 Thread Inge Solvoll
This should do the trick :) You can probably do the same thing more intuitively by advising the RequestSecurityManager. I just didn't bother to change my working implementation. public static void contributeAlias(Configuration configuration, @InjectService("Request") Request request, @InjectServi

Staying in secure or non-secure mode rather than autoswitching based on @secure

2009-05-22 Thread kartweel
Hi, I basically want to switch off tapestry's auto switching between secure and non-secure and keep it in the same "mode" as the current request instead of generating full URLs and changing it to http. I need internal access via http or https and external access firewalled to allow https only. I

any ideas why the APPCATALOG resource being injected would not be getting resolved?..

2009-05-22 Thread Tom Zurkan
i am upgrading from 5.0.18 to 5.1.05. any ideas would be appreciated. thanks, tom 2009-05-22 18:51:34,709 [btpool0-1] ERROR org.apache.tapestry5.ioc.Registry - No service implements the interface org.apache.tapestry5.ioc.Resource. 2009-05-22 18:51:34,709 [btpool0-1] ERROR org.apache.tapestr

Re: [T5] Error obtaining ApplicationState object

2009-05-22 Thread Thiago H. de Paula Figueiredo
Em Fri, 22 May 2009 18:23:42 -0300, Neo Anderson escreveu: Is there any chance that I can use SessionState outside the scope of page? As I already stated, you cannot use @SessionState outside pages, components and mixins, but you can use ApplicationStateManager to get and set values fr

Re: [T5] Error obtaining ApplicationState object

2009-05-22 Thread Neo Anderson
Is there any chance that I can use SessionState outside the scope of page? That is because I want to logically group the same function in a class e.g. security; so the function authenticate() may not be just used by the Login page. For instance, right now: client -> Login.tml -> Login.java pa

Re: [T5] Error obtaining ApplicationState object

2009-05-22 Thread Thiago H. de Paula Figueiredo
Em Fri, 22 May 2009 13:14:24 -0300, Neo Anderson escreveu: Hi Hi! public class LoginService{ @ApplicationState private IAccount account; You can't use @ApplicationState (deprecated because of misleading name, now use @SessionState instead, works exactly the same) in s

Re: [T5.1] TLD file

2009-05-22 Thread Igor Drobiazko
You can find the XSD's inside the tapestry-core.jar in the package org.apache.tapestry5.internal.services On Fri, May 22, 2009 at 2:02 PM, Marcus Veloso wrote: > Hi, > Where can we find the file ".tld" of tapestry 5.1? > > Thanks, > > Marcus Veloso > -- Best regards, Igor Drobiazko

[T5] Error obtaining ApplicationState object

2009-05-22 Thread Neo Anderson
Hi I encounter a problem. My problem is when I use @ApplicationState (e.g. @ApplicationState private IAccount account;) to obtain a mock object, which contains user/ account information, the system will complains NullPointerException. My purpose is to create LoginForm; so when user enters id

Re: again on webservices

2009-05-22 Thread Andrea Chiumenti
I did, I can put a working example online if you want! but someone should write something on the wiki, unfortunately I have too many projects to bring on and i really don't have time, what I can do is to put a working example online. cheers kiuma On Wed, May 20, 2009 at 10:47 AM, Alfie Kirkpatric

PageTester use the foo contextPath

2009-05-22 Thread jverite
I try to use the PageTester, my first test is very simple on a login page, but when I try to submit a form I get this error message java.lang.RuntimeException: Path 'login.loginform' does not start with context path '/foo'. at org.apache.tapestry5.test.PageTester.stripContextFromPath(Page

Browser feature to better support web frameworks

2009-05-22 Thread Sebastian Hennebrueder
Hello, an idea came across my brain and I would like to invite you to give some feedback on this. Basically it is a browser feature which is missing. In most applications we cannot use the session because multiple tabs in the browser would influence each other. I illustrated the idea here.

[T5.1] TLD file

2009-05-22 Thread Marcus Veloso
Hi, Where can we find the file ".tld" of tapestry 5.1? Thanks, Marcus Veloso

Re: T5: Customizing validation messages

2009-05-22 Thread Inge Solvoll
I've done some digging on this, and found that FieldValidatorSource has got what I need. I think I have found the logic related to computing message keys for each validator. I also see that the service methods provides access to Field, which enables me to include the field label in my message. As

Re: Authentification in Tapestry

2009-05-22 Thread Sergey Didenko
Thanks for tips, Thiago! > This has been discussed in this list before. Check the archives > (http://www.nabble.com/Tapestry---User-f340.html) for some ideas. > Usually they are centered around a RequestFilter or a > ComponentClassTransformer. > ---

Re: Authentification in Tapestry

2009-05-22 Thread Massimo Lusetti
On Thu, May 21, 2009 at 6:01 PM, Thiago H. de Paula Figueiredo wrote: >> I am creating a web application using Tapestry for the GSoC. >> I was wondering what is best way to fit security requirements of a mere >> application (login/password/roles). > > This has been discussed in this list before.

Re: Has anyone used TreeGrid?

2009-05-22 Thread Joachim Van der Auwera
You could have a look at equanda-tapestry5 which has a similar component. http://equanda.org/equanda-tapestry5/index.html Kind regards, Joachim Newham, Cameron wrote: TreeGrid: http://code.google.com/p/tapestry5-treegrid/ Are there any examples of usage? **

Re: Re: [T5.1]Tweaking Tapestry.ElementEffect

2009-05-22 Thread nille hammer
Hi Igor, thanks for the quick response. I've read that thread, but did not realize I had the answer right before my eyes. Finally I've made it. Just one thing I stepped upon. Defining new functions the way suggested in that thread causes the original ones to be erased. This leads to "func not d