Re: tapestry-acegi

2007-05-03 Thread William Keller
I forgot to mention that you will need to map your User and GrantedAuthority as per usual on Acegi. The stuff I gave you doesn't go in depth on setting up your models (your User needs to implement UserDetails). Once you set up yoru GrantedAuthority for your users your tapestry pages can now use th

Re: tapestry-acegi

2007-05-03 Thread William Keller
I've got this working. Code supplied. Please customise for your purpose :) hivemodule.xml

tapestry-acegi

2007-05-03 Thread Asim Khaja
Is there a good tutorial on using the tapestry-acegi ( http://www.carmanconsulting.com/tapestry-acegi/) library? Thanks, Asim

Re: [T4] Component initialization and PageBeginRender

2007-05-03 Thread Jesse Kuhnert
I think that wiki page is out of date. MindBridge went in and made the ordering deterministic a fairly long time ago. On 5/3/07, Jorge Montero <[EMAIL PROTECTED]> wrote: I'm trying toconvert part of a tapestry page into a component for reuse. The part of the page I want to reuse renders two Pro

Re: Some Basic Form Handling

2007-05-03 Thread William Keller
From my understanding, T5 is much different in that there is an '@OnEvent' annotation e.g. class Page { @Component private Form form; @InjectPage NextPage nextPage; @OnEvent(value="submit") public Object submit() { return nextPage; } } and on your corresponding page:

[T4] Component initialization and PageBeginRender

2007-05-03 Thread Jorge Montero
I'm trying toconvert part of a tapestry page into a component for reuse. The part of the page I want to reuse renders two PropertySelectors with different data depending of the value of a property, and updates another property by processing the original property and the current values on the Pr

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Ben Dotte
I think its finally working! Thanks!! -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 3:18 PM To: Tapestry users Subject: Re: 4.1.2 snapshot changes 4-20 to 4-30 OkIt's deploying now. On 5/3/07, Ben Dotte <[EMAIL PROTECTED]> wrote: > >

Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Jesse Kuhnert
OkIt's deploying now. On 5/3/07, Ben Dotte <[EMAIL PROTECTED]> wrote: -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Ben Dotte
Ok, I hate to bring this up yet again but things still aren't working the way they need to. Tapestry used to search the context for the templates first, then it searched the classpath. Now it searches the classpath first. Our templates technically get output to both places, but the ones we need Tap

Re: @Delegator is not showing validation errors

2007-05-03 Thread Ulrich Stärk
Thanks for your help Jesse, I know now why you should always obey to these: http://www.debuggingrules.com/debuggingrules.jpg - especially rule #3 :) I specified the ValidationDelegate in the Form component using a 'delegator' attribute where it should read 'delegate'. 2 characters, big impact.

Re: [T5] How to call Asserts in component template

2007-05-03 Thread Robert Zeigler
Make link an "any" component. Then change href to be: href="prop:cssFile" Tapestry will "do the right thing" for you. Or, more completely: Robert On May 3, 2007, at 5/32:03 PM , Fidel Chavarria wrote: I want to use the asset component instead of what i should do? My component

Re: @Delegator is not showing validation errors

2007-05-03 Thread Ulrich Stärk
According to the API doc ValidationDelegate.getFirstError() does exactly that - returning an IRender instance used to render the first error - http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/valid/ValidationDelegate.html#getFirstError() I think the problem lies somewhere else n

[T5] How to call Asserts in component template

2007-05-03 Thread Fidel Chavarria
I want to use the asset component instead of what i should do? My component class ** package net.caimito.savila.tapestry.components; import org.apache.tapestry.Asset; import org.apache.tapestry.annotations.Inject; /** * @author mailto:[EMAIL PROTECTED] Fidel Chavarria * */ p

Re: [T5] Tree component and recursive component ?

2007-05-03 Thread Howard Lewis Ship
I was just thinking about some of this on the way in. If you @Inject the ServiceResources into your Tree component, you can ask it to generate action links for you. Handy! On 5/3/07, Francois Armand <[EMAIL PROTECTED]> wrote: Le jeudi 03 mai 2007 à 10:27 +0200, Francois Armand a écrit : > He

Re: Tap 4.1.2 EventListener

2007-05-03 Thread Jesse Kuhnert
You should expect it to behave exactly the same way as it would if you had just submitted the form normally without any ajax stuff. In your case you are probably looking for the value to be in a temporary property you use when iterating over your values in a For loop - when really the value will

Re: Tap 4.1.2 EventListener

2007-05-03 Thread Tony Nelson
I grabbed the latest snapshot and now the callback is getting called for all of my inputs. Thank you very much. I still get NULL as the value, but I think that's my fault. I'm going to have to do some serious thinking about how this page works. For my understanding, when the "onchange" even

Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Jesse Kuhnert
ShewwFinally :) Yeah I don't think the classpath search is going to be the most typical type either so it doesn't make sense to take the perf hit on resolving them for that. I'm not nearly done with these changes though ..Need to re-factor things so that only one service/object has knowle

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Ben Dotte
Cool, it seems to be finding the component templates again like it used to. The only difference is it used to search on the context first, then the classpath.. but I'm not going to split hairs, works plenty good for me. Thanks Jesse! -Original Message- From: Jesse Kuhnert [mailto:[EMAIL P

Re: @Delegator is not showing validation errors

2007-05-03 Thread Jesse Kuhnert
This is a lazy answer, but I don't think the default ValidationDelegate provided by tapestry actually renders the error message - it just marks things as being in error. (perhaps the default should be the other way around ? ) You can see an example of how to extend the validationdelegate to do wh

Re: Tap 4.1.2 EventListener

2007-05-03 Thread Jesse Kuhnert
Yes the feeling was correct. The snapshot version should be fixed and deployed already. Sorry for the inconvenience, you caught me in the middle of some larger changes and I guess this use case was a victim. On 5/3/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Hmm...I have a bad feeling this i

Re: Tap 4.1.2 EventListener

2007-05-03 Thread Jesse Kuhnert
Hmm...I have a bad feeling this is my fault - obviously it should work fine as-is. I'll take a look... On 5/3/07, Tony Nelson <[EMAIL PROTECTED]> wrote: A little additional info.. when I change the value on any of the inputs beyond the first one, it is causing the form to be submitted, it just

Re: [T5] Tree component and recursive component ?

2007-05-03 Thread Francois Armand
Le jeudi 03 mai 2007 à 10:27 +0200, Francois Armand a écrit : > Hello everybody, > So, my question is : is there a way of implementing recursive > component ? If not, is there an existing component implementing a > non-recursive tree walk ? And if not, have you some advices about doing > such a co

Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Jesse Kuhnert
Ok that's making more sense now. I've made some changes and can no longer find any combination that breaks it. What a pita .It should now find them in -) classpath relative to component class -) relative to context root -) relative to context + WEB-INF root -) relative to context + WEB-INF +

Re: Tapestry 3 DirectLink and stateful (Thanks a lot!)

2007-05-03 Thread Mike Davis
Hi, Thanks for that - it solved my problem neatly ... I'd also like to say thanks to the list - great to see a big community that helps out so quickly and politely! Thnks Mike On Thu, 03 May 2007 15:46:18 +0100 Richard Kirby <[EMAIL PROTECTED]> wrote: > Hi Mike, > > I think you will find that

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Ben Dotte
Yes, so an example would be WEB-INF/app/About.html. I'm a little fuzzy on the historical reason for this but it has certainly been a valid choice since Tapestry 3 at least. I noticed AbstractSpecificationResolver.java has two different methods, getWebInfLocation() and getWebInfAppLocation(), the la

Re: Tap 4.1.2 EventListener

2007-05-03 Thread Tony Nelson
A little additional info.. when I change the value on any of the inputs beyond the first one, it is causing the form to be submitted, it just doesn't call my EventListener method. Also, I am using the latest (today's) Tapestry build. Thanks again Tony Tony Nelson wrote: Is it possible to use

Tap 4.1.2 EventListener

2007-05-03 Thread Tony Nelson
Is it possible to use an EventListener in a component that is displayed multiple times on a page? Specifically, I would like a component that has 2 inputs, and when the 1st one is updated an onchange event causes the 2nd component to update it's value. From my testing, it appears that only th

@Delegator is not showing validation errors

2007-05-03 Thread Ulrich Stärk
Hi list, I've constructed a small test case using Tapestry 4.1.1. I'm trying to validate a text input field using the 'required' validator. The FieldLabel for this TextField is indicating an error, but the Delegator doesn't display it. This is my template: delegate="ognl:beans.delegate.first

Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Jesse Kuhnert
Where/how does the "app" part come in? Is there literally a directory called "app" where you have stuff, and if so is your .application file there as well? On 5/3/07, Ben Dotte <[EMAIL PROTECTED]> wrote: The issue where component templates cannot be found in WEB-INF/app for specless apps. Yes,

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Ben Dotte
The issue where component templates cannot be found in WEB-INF/app for specless apps. Yes, Marcus mentioned the same problem on TAPESTRY-1396 yesterday. And yes, it is still a problem with the snapshot that just went out (tapestry-framework-4.1.2-20070503.160951-67.jar). To recreate, just put a co

Re: Tapestry 3 DirectLink and stateful

2007-05-03 Thread Robert Zeigler
On May 2, 2007, at 5/24:45 PM , Mike Davis wrote: Hi all, I've been asked to do some work on a Tapestry 3 application (unfortunately I can't upgrade it!) and I'm struggling with a DirectLink/session issue. I would like to allow our users to access certain pages without session, yet still be abl

Re: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Jesse Kuhnert
Which issue is still a problem? Is it anything discussed in https://issues.apache.org/jira/browse/TAPESTRY-1396 ? Perhaps your failure is slightly different ? I may need more specific information (to re-create) . ...Either way an update just went out a few seconds ago. Maybe that fixed it. On 5/

RE: 4.1.2 snapshot changes 4-20 to 4-30

2007-05-03 Thread Ben Dotte
It appears this is still a problem, even with the newest snapshot (tapestry-framework-4.1.2-20070503.050340-66.jar) -Original Message- From: Ben Dotte [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 2:50 PM To: Tapestry users Subject: RE: 4.1.2 snapshot changes 4-20 to 4-30 Ok, l

Re: T5: injecting service into page

2007-05-03 Thread Howard Lewis Ship
The module must be test.services.AppModule. You have it as test.AppModule, and Tapestry simply doesn't see it there. Because of these, no service binding, and therefore, no service to inject. On 5/3/07, Peter V <[EMAIL PROTECTED]> wrote: --- Peter V <[EMAIL PROTECTED]> wrote: > I have serio

Re: [T5]: rendering component with nested component with @Component annotation

2007-05-03 Thread Howard Lewis Ship
Sub-components have no meaning unless there's a template. It is the elements in the template that drive the creation of sub-components. This should be more explicit in the documentation, and perhaps there should be a check for components in classes without a template. On 5/3/07, Kristian Marinko

Re: simple ajax text update help please

2007-05-03 Thread Jesse Kuhnert
I probably need to add a ResponseBuilder.insertComponents() call pretty soon, but the basic reason why it's not updating is because the "counter" and "B" elements probably don't exist on your rendered page already. For it to update them it needs an element that it can find with something simple li

simple ajax text update help please

2007-05-03 Thread Paul Stanton
Hi All, I'm trying to do something very basic with ajax. I simply want a value to increment when an onchange event is triggered for another component. The listener is being called via ajax etc. but I cannot get my component to update. I understand I'm missing the logic which identifies and up

Re: Tapestry 3 DirectLink and stateful

2007-05-03 Thread Richard Kirby
Hi Mike, I think you will find that the cookie used for session tracking is actually generated by the servlet engine (Tomcat/Jetty/Weblogic/whatever) and nothing to do with Tapestry. However, since cookies are nothing but HTTP header lines, you could always use a Filter to hack the cookie he

[T5]: rendering component with nested component with @Component annotation

2007-05-03 Thread Kristian Marinkovic
hi, does anyone know how to render a Tapestry 5 component that itself contains a component with the @Component annotation? What i did so far is to define a template for the first component that contains the second component as a embedded component (code below). I'm trying to write a Styleshee

Re: Tapestry 3 DirectLink and stateful

2007-05-03 Thread Mike Davis
Hi, As it turns out, the problem is actually that I've used Apache's mod_rewrite to transparently eliminate the context part of the path ('/xyz/app.htm' => '/app.htm') and obviously Tapestry uses the context as part of the cookie's path ... Is there a way to setup Tapestry so that it will set up

Re: T5: injecting service into page

2007-05-03 Thread Peter V
--- Peter V <[EMAIL PROTECTED]> wrote: > I have serious problems with simple service > injection > into page. > > ... Test page class is in test.pages.Test of course, not in test.Test. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best sp

T5: injecting service into page

2007-05-03 Thread Peter V
I have serious problems with simple service injection into page. I have one service interface (test.FooManager) and one service implementation (test.DefaultFooManager). Module (test.AppModule): public class AppModule { public static void bind(ServiceBinder binder) {

Re: [vote] remove renderTags default of true for @If/@Else? (tapestry 4.1.2 )

2007-05-03 Thread Andrea Chiumenti
ooops, the solution by Tony is what I meant! On 5/2/07, Joe Chen <[EMAIL PROTECTED]> wrote: +1 both false. Upgrading from 4.0.x to 4.1.2 with the current default of true means that I have to reverse all the page logic in order for my pages to work as they did in 4.0.x. This is just a bad deci

Re: HttpSession And Hivemodule state-object

2007-05-03 Thread Hugo Palma
The difference is the amount of coding that you have to do. If you don't use ASOs you'll have to implement the code that puts your object in session, the string constant that has the name of the session attribute, in every page/component that you want to access the value you'll have access the ses

[T5] Tree component and recursive component ?

2007-05-03 Thread Francois Armand
Hello everybody, I'm a beginner with Tapestry (and T5), and test it as a possible framework for a futur application. I have tested T5 for 3 days and for now, I'm really impressed by it. But I came to my first real problem (all others are related with the lack of documentation, which is quite nor

Tacos 4.1.0-SNAPSHOT, maven, eclipse

2007-05-03 Thread Borut Bolčina
I guess it is Maven related, but checking out svn checkout https://svn.sourceforge.net/svnroot/tacos/tacos-4.1/trunk/ tacos-project and running mvn eclipse:eclipse doesn't generate a valid eclipse project (project files are generated). I can't import it as an existing eclipse project. Can anyo