Re: T5: Problem with login form with Acegi

2008-03-28 Thread Jacob Bergoo
Hi again, I had an error in my code when I compared the Set with a String value... I changed that so the Set takes a String as input instead. Now it goes into the first if statement and try to call page Secure and I get the same error as I posted in my previous posting... in the end the error st

T5: Problem with login form with Acegi

2008-03-28 Thread Jacob Bergoo
Hi All, In my project I use the Tapestry5-Acegi project and made that work following the example and with some help from the forum, thanks... Now I'm trying to make a more realistic version of a login where I can control the validation on the login form and also based on user roles redirect the

Re: Form with a Zone -> ComponentEventException

2008-03-28 Thread petros
Sorry about the second post but this problem is killing me :) I tried this example that works fine online and I am getting the same exception as my previous post http://lombok.demon.co.uk/tapestry5Demo/test/core/zonedemoone In the example a Block is returned from an onAction or onSuccess methods

Re: T4.1.5: Fill the autocompleter field from a popup window

2008-03-28 Thread Stef
Hi! Thank you the advice but it is not solved my problem and make an another problem: user can type invalid value into the field. Any advice? :) Best regards, Stef > -Original Message- > From: [EMAIL PROTECTED] > Sent: Fri, 28 Mar 2008 21:58:22 +0200 > To: users@tapestry.apache.org > S

Re: T5 Nested Link components and their urls

2008-03-28 Thread Howard Lewis Ship
I really have to ask ... why would you care? And the issue here is enclosure vs. containment. Containment is the concrete structure of the components, it really is the component hierarchy. Enclosure is largely a factor in how the templates are laid out ("report" encloses "header"), but can be mu

T5 Nested Link components and their urls

2008-03-28 Thread Janko Muzykant
hi, i have a following problem with urls generated by nested links components - lets say, we have a reportUsers page and something like this inside: header is my component that creates ActionLink with parameter given in 'column' attribute. Generated url looks like this: http://myhost:p

RE: Tapestry 5 - Acegi ,, using LDAP authentication provider

2008-03-28 Thread Jonathan Barker
@Inject private AuthenticationManager _authenticationManager; Isn't Tapestry great? :-) > -Original Message- > From: Jacob Bergoo [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2008 4:13 PM > To: users@tapestry.apache.org > Subject: RE: Tapestry 5 - Acegi ,, using L

RE: [T5] FormFragment doesn't work on IE6

2008-03-28 Thread Zheng, Xiahong
I had a look at the tapestry.js. The following function is used to connect the checkbox with the fragment. // Links a FormFragment to a checkbox, such that changing the checkbox will hide // or show the FormFragment. Care should be taken to render the page with the // checkbox and the

RE: Tapestry 5 - Acegi ,, using LDAP authentication provider

2008-03-28 Thread Jacob Bergoo
Hi Jonathan, A quick question, how do you get the authenticationManager object into that page that you are using??? thanks, Jacob -- View this message in context: http://www.nabble.com/Tapestry-5---Acegi-%2C%2C-using-LDAP-authentication-provider-tp16330496p16361117.html Sent from the Tapestry -

Re: T4.1.5: Fill the autocompleter field from a popup window

2008-03-28 Thread Andreas Andreou
Probably you need to change the forceValidOption parameter of http://tapestry.apache.org/tapestry4.1/components/dojo/autocompleter.html On Sat, Mar 22, 2008 at 9:27 AM, Stef <[EMAIL PROTECTED]> wrote: > Dear All! > > I upgraded my webapp from T4.0.2 to T4.1.5 and I have a problem with the > au

Re: Floating Pane and AjaxEventSubmit

2008-03-28 Thread Andreas Andreou
There's the EventListener annotation that replaces AjaxEventSubmit but no similar component. As for the floating pane, I'd use tacos 4.1.2-SNAPSHOT and its dojo:Widget component, see http://tacos.sourceforge.net/tacos4.1/tacos-core/quick-start/downloading.html http://tacos.sourceforge.net/tacos4.1

Re: [T4.1] Setting the value of a DatePicker clientside

2008-03-28 Thread Andreas Andreou
Hi, first you need to get the js reference to the calendar control... The js variable to use is named like calendar_XXX where XXX is the id of your DatePicker control. After you know that, you can do: calendar_XXX.setSelectedDate('15 Mar 2008') On Thu, Mar 20, 2008 at 1:21 PM, Andy Pahne <[EMAIL

RE: Tapestry 5 - Acegi ,, using LDAP authentication provider

2008-03-28 Thread Jonathan Barker
You do not need to write a UserDetails implementation for LDAP. Acegi already did it. In fact, the only time I've hit where I needed to implement a UserDetails object and UserDetailsService was creating my own custom DAO-based authentication. Now, if you're needing to save information to LDAP.

Re: T5 (5.0.11) - ready for production deployment

2008-03-28 Thread Koka Kiknadze
On Fri, Mar 28, 2008 at 5:48 PM, Jonathan Barker < [EMAIL PROTECTED]> wrote: > Rob, > > I can't resist... > > Please, do resist. Imo thats the only way to handle it... http://article.gmane.org/gmane.comp.java.tapestry.user/59910

Re: T5: Custom asset locator?

2008-03-28 Thread Robert Zeigler
Question: is the crux of the matter "pretty" urls, or is the cruz of the matter security? If the crux is pretty urls, then we should think about this some more... trying to map a single url onto multiple resources, and cache all of those resources seems pretty tricky. If, on the other hand, y

RE: Tapestry 5 - Acegi ,, using LDAP authentication provider

2008-03-28 Thread Mahen Perera
I understand your code. I need acegi take full control of the login and security of my web application. Say for example, if the user tries to directly go to a URL other than the login URL, then the user should be redirected to the login URL if there is no valid user session. About the LdapUserDe

Re: T5: Cannot get org.acegisecurity.CredentialsExpiredException to work

2008-03-28 Thread Robin Helgelin
On Fri, Mar 28, 2008 at 2:13 PM, Olle Hallin <[EMAIL PROTECTED]> wrote: > Hi again, Hi! > I've made a new version of the SecurityModule.java that follows the usual > build + contribute pattern in tapestry-ioc. Thanks for taking time to go to the bottom with this. I'll update and release a new ve

Re: T5: Custom asset locator?

2008-03-28 Thread Andreas Pardeike
Robert , Just coded that and it (sort of) works. The problem is, as Chris has mentioned, that T5 complains about the assets being not present. And when I dodge this by simply creating my own prefix, lets say '/host_assets/' and fall back to not using assets at all, then my servlet container will

RE: ACEGI Problem with anonymous

2008-03-28 Thread Jonathan Barker
Thomas, In the SecurityModule in tapestry5-acegi, in the contributeProviderManager() method, there is the line: configuration.add("anonymousAuthenticationProvider", anonymousAuthenticationProvider); So, by default, according to the Acegi docs: # AnonymousProcessingFilter, so that if no

Re: T5: Custom asset locator?

2008-03-28 Thread Robert Zeigler
Shooting from the hip here, but... One way of going about this would be to contribute a RequestFilter, rather than a Dispatcher. RequestFilters get to pass on whatever request they want. So you could wrap the request with a customized request that modifies the result of getPath() based on whi

ACEGI Problem with anonymous

2008-03-28 Thread T. Papke
Hello, I use Tapestry 5 (5.0.11) with acegi (tapestry-acegi 1.0.3). Following code snipplet should explain my problem: @Secured("ROLE_USER") public class OrderConfirm { public void pageLoaded(){ log.debug("creating order"); log.debug("Authenticated isAuthenticated: "+S

Re: T5 (5.0.11) - ready for production deployment

2008-03-28 Thread Robert Zeigler
I'd have to agree. I've been working on a T3 app a bit this week. It's one I haven't touched in awhile. It was pleasantly nice to work on... but I found myself itching to upgrade the app to T5, because T5 is more fun. :) Robert On Mar 27, 2008, at 3/277:35 PM , Howard Lewis Ship wrote: "F

RE: Tapestry 5 - Acegi ,, using LDAP authentication provider - other half

2008-03-28 Thread Mahen Perera
Thanks Jonathan. Both your e-mails are very helpful. I will try to get something working based on this, and come back to you if I encounter any issues. -Original Message- From: Jonathan Barker [mailto:[EMAIL PROTECTED] Sent: 28 March 2008 14:48 To: 'Tapestry users' Subject: RE: Tapestry 5

RE: T5: Custom asset locator?

2008-03-28 Thread Cordenier Christophe
Maybe you can wrap the Request Tapestry object in a RequestFilter and then just modify the getPath() in the case of an asset URL. Thereafter, You can use RequestGlobals service to put your wrapped object into the pipeline. By doing this, you won't have to develop or hack the AssetDispatcher. Bu

Re: T5: Custom asset locator?

2008-03-28 Thread Andreas Pardeike
Yes, I think that would work. Only problem there is that I still want to have all benefits of caching that the build-in services deliver. And I can't see how to just *modify* the asset path inside the dispatcher and pass it on to Tapestry... /Andreas On 28 mar 2008, at 15.36, Cordenier Christoph

RE: Tapestry 5 - Acegi ,, using LDAP authentication provider - other half

2008-03-28 Thread Jonathan Barker
I realized I may not have answered your second question. The configuration built up using configuration.add("ldapAuthenticationProvider",ldapAuthenticationProvider); is used in the SecurityModule of tapestry5-acegi for: public static AuthenticationManager buildProviderManager(final List<

RE: T5: Custom asset locator?

2008-03-28 Thread Cordenier Christophe
And what about a custom AssetDispatcher ? -Message d'origine- De : Andreas Pardeike [mailto:[EMAIL PROTECTED] Envoyé : vendredi 28 mars 2008 15:22 À : Tapestry users Objet : Re: T5: Custom asset locator? Thanks Christope, but it's not quite what I want. To illustrate my problem, take a lo

RE: Tapestry 5 - Acegi ,, using LDAP authentication provider

2008-03-28 Thread Jonathan Barker
All of the classes are from Acegi. The LdapAuthenticationProvider returns a LdapUserDetails object. There are a number of ways to get Acegi to authenticate you. Here's part of what I do from a Login form where I automatically add authenticated users to a Users table (it needs a bit of cleaning

Re: T5: Custom asset locator?

2008-03-28 Thread Andreas Pardeike
Thanks Christope, but it's not quite what I want. To illustrate my problem, take a look at the request headers I want to process: GET /assets/i/test.gif HTTP/1.1 Host: www.SITE_A.com and GET /assets/i/test.gif HTTP/1.1 Host: www.SITE_B.com If I just create my own binding, the request urls woul

RE: T5: Custom asset locator?

2008-03-28 Thread Cordenier Christophe
Hello I'm not sure this can help, this is just an idea, but maybe it would be easier to create a new type of binding Factory upon the AssetBinding factory to add dynamic datas. Best regards, Christophe. -Message d'origine- De : Andreas Pardeike [mailto:[EMAIL PROTECTED] Envoyé : vendred

T5: Custom asset locator?

2008-03-28 Thread Andreas Pardeike
Hi everyone, First: many many thanks to the list for all the valuable info I get from it (either as passive reading or answers to my questions!) My problem: I want to expand the virtual /assets mapping because in the app I am writing, I use the current host name to run different sites/layouts.

RE: Tapestry 5 - Acegi ,, using LDAP authentication provider

2008-03-28 Thread Mahen Perera
Thanks Jonathan for that. Unclear on some stuff tho. Since we are using a LDAP based authentication provider do we need to have a UserDetailsServiceImpl? http://www.localhost.nu/java/tapestry5-acegi/ : If I am to use this, then it assumes having a UserDetailsServiceImpl. Also, when we do conf

RE: T5: How do I get session information?

2008-03-28 Thread Jonathan Barker
That's likely stored in the WebContext that can be directly injected using tapestry-spring. > -Original Message- > From: Joshua Jackson [mailto:[EMAIL PROTECTED] > Sent: Friday, March 28, 2008 6:06 AM > To: Tapestry users > Subject: Re: T5: How do I get session information? > > On 3/28

RE: T5 (5.0.11) - ready for production deployment

2008-03-28 Thread Jonathan Barker
Rob, I can't resist... Your "over-engineerd" comment was under-engineered. Howard would have surely added in the required number of e's in the word. Then it would be properly-engineered :-) As for volatile... you do know that T5 was just voted BETA last week, right? ALPHA software is generally

Re: T5: Cannot get org.acegisecurity.CredentialsExpiredException to work

2008-03-28 Thread Olle Hallin
Hi again, I've made a new version of the SecurityModule.java that follows the usual build + contribute pattern in tapestry-ioc. Sorry for the changed formatting, I hit Ctrl-Shift-F by accident in Eclipse. Regards, Olle 2008/3/28, Olle Hallin <[EMAIL PROTECTED]>: > > Hi, I found the solution. >

Re: T5:Problem with Beaneditor and autobuilding

2008-03-28 Thread Andreas Pursian
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks Howard, your hint did the trick. cheers Andreas Howard Lewis Ship wrote: | I think what's happened is that there's a subtle change in the order | of operations inside BeanEditForm and BeanEditor. | | They now build the BeanModel from the bou

Re: T5: Cannot get org.acegisecurity.CredentialsExpiredException to work

2008-03-28 Thread Olle Hallin
Hi, I found the solution. It was an empty AuthenticationProcessingFilter.exceptionMappings that caused all AuthenticationExceptions to be treated equally. I added a default public static Properties buildAuthenticationExceptionMappings() to SecurityModule.java, which maps certain AuthenticationExc

Re: T5: How do I get session information?

2008-03-28 Thread Joshua Jackson
On 3/28/08, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: > i assume you want to access the persistent property of a > component somewhere else!?... Actually I want to get the login session info from Spring security 2.0 I though the best way is to get it manually from the Sessin object. > some

Re: T5: How do I get session information?

2008-03-28 Thread Kristian Marinkovic
i assume you want to access the persistent property of a component somewhere else!?... some tips you might find useful.. regarding state (there are always advantages and disadvantages to these approaches): - component parameters are bidirectional; if you assign a new value to a parameter from wi

RE: How to change t-error

2008-03-28 Thread osamuo
Is the following available? configuration.add( TapestryConstants.ERROR_CLASS, "my-t-error" ); Thanks. Cordenier Christophe wrote: > > I think you just have to add this CSS class in your own CSS file. > To add your own CSS you can use the PageRenderSupport service or use the > @IncludeSty

Re: T5 (5.0.11) - ready for production deployment

2008-03-28 Thread Rob Smeets
Howard, I have 2 favorite adjectives about Tapestry 5: Over-engineerd and Volatile!! Best wishes, Rob On Fri, Mar 28, 2008 at 1:35 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > "Fun" is one of my favorite adjectives for Tapestry. > > On Thu, Mar 27, 2008 at 5:20 PM, Josh Canfield <[EMAIL

RE: How to change t-error

2008-03-28 Thread Cordenier Christophe
I think you just have to add this CSS class in your own CSS file. To add your own CSS you can use the PageRenderSupport service or use the @IncludeStylesheet annotation in your component class. Hope this helps Christophe -Message d'origine- De : osamuo [mailto:[EMAIL PROTECTED] Envoyé :

How to change t-error

2008-03-28 Thread osamuo
How can I change the 't-error' defined in 'default.css' to other CSS classes? Thank you -- View this message in context: http://www.nabble.com/How-to-change-t-error-tp16348102p16348102.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: T5: How do I get session information?

2008-03-28 Thread Joshua Jackson
On 3/28/08, Cordenier Christophe <[EMAIL PROTECTED]> wrote: > Hello > > You can inject the Request Tapestry service and then get the Session object > from this service. > This is the Tapestry Session object that wraps the J2EE one and gives you > access to the content of the session. > > I Hope t

RE: T5: How do I get session information?

2008-03-28 Thread Cordenier Christophe
Hello You can inject the Request Tapestry service and then get the Session object from this service. This is the Tapestry Session object that wraps the J2EE one and gives you access to the content of the session. I Hope this helps Christophe -Message d'origine- De : Joshua Jackson [ma

T5: How do I get session information?

2008-03-28 Thread Joshua Jackson
Dear all, How do I retrieved information that is stored in a session from my Page component? I could not find this in the docs. Thanks in advance -- Let's show the world what we've got. Blog: http://joshuajava.wordpress.com/

Re: [T5] Form errors persisted in session?

2008-03-28 Thread Kristian Marinkovic
hi, this came up several times on this list... and i think there was also a JIRA entry the answers are: 1) add a @Meta annotation to change the strategy of @Persist without attribute (Howard) 2) clear the errors manually (as pointed out by Angelo) 3) pass in a own ValidationTracker instance to

RE: T5: nested loops don't work (can't figure this one out)

2008-03-28 Thread Britske
Arghh. Thanks a lot! I missed that. I figured it couldn't be a Tapestry thing. I traced back why I thought that the resulting sublist had an element (while in fact it didn't): apparently a sublist is nothing but a wrapper around the source-list (which I didn't know_, which is why burried in the

Re: [T5] Form errors persisted in session?

2008-03-28 Thread Renat Zubairov
Hi Thanks for the info, but generally IMHO it's a bug when error validation status is stored in the session. How do you think? Renat On 27/03/2008, Angelo Chen <[EMAIL PROTECTED]> wrote: > > how about: > > @Component >private Form regForm; > void cleanupRender() { > regForm.clearErr