Re: tynamo tapestry-security help

2010-11-11 Thread Kalle Korhonen
On Thu, Nov 11, 2010 at 2:25 PM, Paul Stanton wrote: > Interesting. You can see the need for the behaviour but not the need to > expose/implement it cleanly via the API. No, that's the wrong conclusion. Subscribe to the shiro dev list, we recently had extensive discussion on this but in the meant

Re: tynamo tapestry-security help

2010-11-11 Thread Paul Stanton
Hi Kalle, Interesting. You can see the need for the behaviour but not the need to expose/implement it cleanly via the API. For mine, I don't see why 'HashedCredentialsMatcher.hashProvidedCredentials' and 'getCredentials' are protected, this makes it impossible to expose the hashing functio

Accessing Spring context?

2010-11-11 Thread stephanos
When I use Tapestry with tapestry-spring the context is automatically created in 'the background' at startup. But I need to access Spring's AbstractApplicationContext - how would I do that? Cheers :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Accessing-Spring-context

Re: Localization changes in t5.2.2

2010-11-11 Thread Igor Drobiazko
Fixed: https://issues.apache.org/jira/browse/TAP5-1345 On Tue, Nov 9, 2010 at 10:36 PM, Moritz Gmelin wrote: > Hi, > > I have just done the upgrade of out application to T5.2.2. We have so far > had a system to redirect a user to a localized start page depending on his > locale settings. So far

Re: session is NULL

2010-11-11 Thread Anas Mughal
I initially had a constructor that accepted a session. That worked fine. Then, I took out the constructor and simply injected the session. That is working fine as well. Now, I am injecting my delegate as service into my page. The DAO is injected to my delegate. Then, the session is injected in

Re: tynamo tapestry-security help

2010-11-11 Thread Kalle Korhonen
Hmm.. if you use username as the salt, you already have stored the salt. For my own custom and application-specifc CredentialsMatcher implementations, I'm not too purist about these things: sometimes I've done it by just adding a static encode operation as part of the CredentialsMatcher, e.g.:

Re: i give up

2010-11-11 Thread Everton Agner
Whoops, i meant: > Yep... that's why some people think jsf is nice ___ Everton Agner Ramos 2010/11/11 Everton Agner > > The Dark Side of the Force, as me and my friends call it. :P > > I like C# specifically... but I don't trade java for it. Specially because > most of the

Re: i give up

2010-11-11 Thread Everton Agner
> The Dark Side of the Force, as me and my friends call it. :P I like C# specifically... but I don't trade java for it. Specially because most of the things i like about C# will exist in java soon. I like knowing all the sides of the force :P > That's true. I think Tapestry doesn't need tooling,

Re: @Persist vs onActivate/OnPassivate

2010-11-11 Thread Richard Hill
Great, thanks. FFR, this is how I have implemented: .java: @Inject private PageRenderLinkSource plrs; public Link getLink() { Link link = plrs.createPageRenderLink(MyPage.class); link.addParameter("q", "test"); return link; } .tml: my page link Seems to work :) -Original Mess

Re: i give up

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 13:14:29 -0200, Everton Agner wrote: Yeah, and that's the huge step i mentioned after that! After Tap, I saw some things about JSF but i find it too boring and overcomplicated in some basics to work with... That's my impression with JSF too . . . And recently i'm wo

Re: i give up

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 13:14:29 -0200, Everton Agner wrote: Yeah, and that's the huge step i mentioned after that! After Tap, I saw some things about JSF but i find it too boring and overcomplicated in some basics to work with... And recently i'm working on a .net architecture with asp.net

Re: i give up

2010-11-11 Thread Everton Agner
> Struts is request-oriented, Tapestry, JSF and Wicket is component and event-oriented, so you had to > learn not just another framework, but a completely different approach to Web applications. Yeah, and that's the huge step i mentioned after that! After Tap, I saw some things about JSF but i fin

Re: pageAttached and onActivate

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 13:11:11 -0200, Tim Koop wrote: I'm trying to populate the values for a form based on the context parameter passed in. I'm getting the context with onActivate(String id), but where do I set the form values? Usually I do it in pageAttached, but pageAttached gets called

pageAttached and onActivate

2010-11-11 Thread Tim Koop
I'm trying to populate the values for a form based on the context parameter passed in. I'm getting the context with onActivate(String id), but where do I set the form values? Usually I do it in pageAttached, but pageAttached gets called before onActivate. Do I initialize my form variables in

Re: a simple question

2010-11-11 Thread hese
wow! A wealth of information. Thank you all! -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3260417.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: @Persist vs onActivate/OnPassivate

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 12:55:51 -0200, Richard Hill wrote: One thing that would be great is a way to create an internal link with request parameters. Your example shows how to do via a POST, I'd like to implement a GET link instead. Something like mypage but instead of activation context, reques

Re: i give up

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 10:38:04 -0200, Everton Agner wrote: Tapestry can be a little hard to understand and to use it effectively in the beginning. Before meeting Tap, the only framework I really used was Struts 1.x, so i guess i took a huge step, and i just loved it. Struts is request-orie

Re: @Persist vs onActivate/OnPassivate

2010-11-11 Thread Richard Hill
One thing that would be great is a way to create an internal link with request parameters. Your example shows how to do via a POST, I'd like to implement a GET link instead. Something like mypage but instead of activation context, request parameters. Any idea how to do this? -Original M

Re: how to make tapestry ignore some html tags while parsing tml file

2010-11-11 Thread Everton Agner
Does works? ___ Everton Agner Ramos 2010/11/10 hese <1024h...@gmail.com> > > Thanks for all your replies! > > Fernando, I like your solution. I was thinking on similar lines...but not > as a component, but a function that would return the "<#=" tags which i > could 'outpu

Re: Redirecting to page on load

2010-11-11 Thread Everton Agner
A tip... I don't know if the code for your checking is heavyweight, but sometimes it's recommended to check in the onActivate() if the request is a XRH or not... because component events triggers it too. You can do so by @Inject'ing Request (org.apache.tapestry5.services) and calling isXHR() method

Re: session is NULL

2010-11-11 Thread Everton Agner
> @Inject is for pages. Make your DAO a Tapestry service and inject the > session to it via its constructor. > > Kalle I guess not... Since the DAO is a service, you can either @Inject fields, pass thru construtuctor call or build them. ___ Everton Agner Ramos 2010/11/10 Ana

Re: i give up

2010-11-11 Thread Everton Agner
Tapestry can be a little hard to understand and to use it effectively in the beginning. Before meeting Tap, the only framework I really used was Struts 1.x, so i guess i took a huge step, and i just loved it. But i needed to read the whole "Tapestry 5: Building Web Applications" book to understand

Re: a simple question

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 09:58:42 -0200, Christian Riedel wrote: public String getReportTitle() :-) Yep, programming my e-mail client (Opera's M@) hasn't Java type checking . . . :D -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, a

Re: i give up

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 08:05:27 -0200, françois facon wrote: If you are not afraid by the weather of Lille (North of France) :( , perhaps I can make you a proposal. :) because I'm looking for a salary software engineers to work on Tapestry full time. I think I wasn't clear: I was talking a

Re: a simple question

2010-11-11 Thread Christian Riedel
> public String getReportTitle() :-) Am 11.11.2010 um 12:52 schrieb Thiago H. de Paula Figueiredo: > On Thu, 11 Nov 2010 08:15:33 -0200, Richard Hill > wrote: > >> In T5, 5.1 you can do something like this. In .tml: >> >> ${reportTitle} >> ... >> >>No report to display >> >> >> I

Re: a simple question

2010-11-11 Thread Richard Hill
Excellent tips Thiago, cheers. -Original Message- From: Thiago H. de Paula Figueiredo Reply-to: "Tapestry users" To: Tapestry users Subject: Re: a simple question Date: Thu, 11 Nov 2010 09:52:01 -0200 On Thu, 11 Nov 2010 08:15:33 -0200, Richard Hill wrote: > In T5, 5.1 you can

Re: a simple question

2010-11-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Nov 2010 08:15:33 -0200, Richard Hill wrote: In T5, 5.1 you can do something like this. In .tml: ${reportTitle} ... No report to display I believe the "else" syntax may have changed in T5.2. There are now two syntaxes for passing values to parameters that are bl

Re: Tap 5.2.2 With JQuery Problems

2010-11-11 Thread françois facon
Hi Chuck, Tapestry5-jQuery Project Fully replace Prototype and Scriptaculous with jQuery. So Actually there is no Prototype at all for this project. About http://docs.jquery.com/Using_jQuery_with_Other_Libraries for your information this project use jQuery plugin approach. which allows you to us

Re: @Persist vs onActivate/OnPassivate

2010-11-11 Thread françois facon
Hi Geoff, Thank you again for Jumpstart. It help so much. my 2 rupies. for the page PassingDataBetweenPages1, I was about to suggest to replace the form use to access page2 (Activation Context) by a pagelink. But I realise that, PassingDataBetweenPages1 is just the perfect exemple when naviga

Re: a simple question

2010-11-11 Thread Richard Hill
In T5, 5.1 you can do something like this. In .tml: ${reportTitle} ... No report to display and in .java: public boolean isShowTitle() { return reportId > 0; } I believe the "else" syntax may have changed in T5.2. R. -Original Message- From: hese <1024h..

Re: tynamo tapestry-security help

2010-11-11 Thread Paul Stanton
Kalle, I think you misunderstood my question. I don't have a problem with using the username as the salt, the salt has to be stored parallel to the user entity somewhere anyway. I would like to know how to get access to the CredentialsMatcher and have it generate the hashed password for me N

Re: i give up

2010-11-11 Thread françois facon
2010/11/6 Thiago H. de Paula Figueiredo > On Sat, 06 Nov 2010 16:44:22 -0200, Muhammad Mohsen > wrote: > > > If anyone wants to pay me to work on Tapestry full time, please tell me. :) > ;) > If you are not afraid by the weather of Lille (North of France) :( , perhaps I can make you a proposa

Re: Question about mixins

2010-11-11 Thread ael
Use Zone & Blocks -- View this message in context: http://tapestry.1045711.n5.nabble.com/Question-about-mixins-tp3255155p3259969.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: u

Re: Question about mixins

2010-11-11 Thread Mats Andersson
I assume that you are maintaining the condorTapestryLib/PeriodicUpdate mixin. You could add a html element to the body of the zone as long as you want the zone to be updated. Pass the id of that element as a parameter to the mixin and let the mixin check if the element exists before calling the