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
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
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
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
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
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
@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
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
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 -
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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<
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
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
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
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
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.
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
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
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
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.
>
-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
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
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
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
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
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
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 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.
-
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
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
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/
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
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
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
49 matches
Mail list logo