Re: [T5] Reminder: Tapestry 5 is Alpha

2007-06-01 Thread alvaro tovar
hi, ok, i will try to understand more tapestry, maybe i can help. On 6/1/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Just wanted to inject a simple reminder: Tapestry 5 is still an alpha-level product. It's still evolving. There are gaps in the functionality and in the documentation. I

Re: Dynamic Property Selection

2007-06-01 Thread Asim Khaja
BTW, i'm using Tapestry 4.0 On 6/1/07, Asim Khaja <[EMAIL PROTECTED]> wrote: Hello, I'm trying to write a generic dynamic property selection component (specifically based on what country the user selects i want to with javascript populate the states selection box). Is there already something

Dynamic Property Selection

2007-06-01 Thread Asim Khaja
Hello, I'm trying to write a generic dynamic property selection component (specifically based on what country the user selects i want to with javascript populate the states selection box). Is there already something out there that does this? My approach has been to basically work off of the Pro

Re: Shipwreck when downloading T5.0.5

2007-06-01 Thread Daniel Jue
Oh yeah, I had to manually install Itext into my repository using a maven command. I am using it to write PDFs and it is not a required Tapestry thing. I have used maven 2.0.5 and 2.0.6 with great success. 2.0.6 was the first version I had ever used. One other thing, I have stopped using the m

org.apache.tapestry:tapestry-core:jar:5.0.4-SNAPSHOT

2007-06-01 Thread Tobias Marx
I have tried to install 2 different Tapestry 5 examples using maven. Always when I do the final mvn jetty:run I get: Missing: 1) org.apache.tapestry:tapestry-core:jar:5.0.4-SNAPSHOT Why is it missing and where do I get it from ? Toby ---

Re: org.apache.tapestry:tapestry-core:jar:5.0.4-SNAPSHOT

2007-06-01 Thread Juan Maya
you have to add the following maven repository: true tapestry-snapshots http://people.apache.org/~hlship/tapestry-snapshot-repository/ On 6/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I have tried to install 2 different Ta

Re: Shipwreck when downloading T5.0.5

2007-06-01 Thread adasal
Daniel, That's great. This works on my own machine. Haven't tested at work. I actually edited your pom to conform with the package name org.example.myapp. Although I thought I might need maven 2.0.6 this actually failed with a stack trace complaining about the settings class I think. I reverted to

org.apache.tapestry:tapestry-core:jar:5.0.4-SNAPSHOT

2007-06-01 Thread tmarx78
I have tried to install 2 different Tapestry 5 examples using maven. Always when I do the final mvn jetty:run I get: Missing: 1) org.apache.tapestry:tapestry-core:jar:5.0.4-SNAPSHOT Why is it missing and where do I get it from ? Toby ---

Re: T5 - Service injection and ioc

2007-06-01 Thread Blackwings
Try simply @Inject private UserAuthenticator _authenticator; Also use the bind method instead of the buildUserAuthenticator. I did it and explained it in this thread if you read it completely ;) It's not more documented because it's an alpha project, as explained Howard Lewis Ship in his last m

Updating a property with InlineEditBox 4.1.1

2007-06-01 Thread Chris Chiappone
I used to use the InlineEditBox from tacos in 4.0 and have recently upgraded to 4.1 The tacos component had a listener binding where I could update changes to a persist property in my database. How is this accomplished with the new InlineEditBox component in tap 4.1? I am also using java 1.4 so

Re: T5 - Service injection and ioc

2007-06-01 Thread vidrilon
Joshua Jackson-3 wrote: > > On 6/1/07, vidrilon <[EMAIL PROTECTED]> wrote: >> >> Did i understood well?? Could you make it work? >> >> I'm also having the same problem, i have created another module, >> UserAuthenticatorModule for validating >> a login form, but have the same message: >> >> No

[T5] Reminder: Tapestry 5 is Alpha

2007-06-01 Thread Howard Lewis Ship
Just wanted to inject a simple reminder: Tapestry 5 is still an alpha-level product. It's still evolving. There are gaps in the functionality and in the documentation. I'm very heartened by so many people wanting to preview Tapestry 5 but just remember it is a preview and an early one. It's com

Tapestry 3.0.3: JavaScript components not working

2007-06-01 Thread Christopher Corde
Hey, I just tried to reload my old Tapestry 3.0.3 application onto Tomcat5.5. Everything is working except for some javascript components like Palette and DatePicker. I get the following error: org.apache.tapestry.ApplicationRuntimeException Unable to parse script classpath:/org/apache/tapestr

Re: [T3/T4] How to redirect in pagebegin render event

2007-06-01 Thread Robert Breidecker
Perfect. I guess I should have figured that out on my own. Thanks! --- Jacob Bergoo <[EMAIL PROTECTED]> wrote: > > Hi Robert, > > try using: > throw new PageRedirectException(YourPageName); > > cheers, > Jacob > > > > Robert Breidecker-2 wrote: > > > > In the pagebeginerender event of a

Re: [T3/T4] How to redirect in pagebegin render event

2007-06-01 Thread Jacob Bergoo
Hi Robert, try using: throw new PageRedirectException(YourPageName); cheers, Jacob Robert Breidecker-2 wrote: > > In the pagebeginerender event of a page I would like > to redirect to another Tapestry page. I am trying to > do this by getting a page and activating it, however, > this doesn'

[T3/T4] How to redirect in pagebegin render event

2007-06-01 Thread Robert Breidecker
In the pagebeginerender event of a page I would like to redirect to another Tapestry page. I am trying to do this by getting a page and activating it, however, this doesn't work and I end up on the original page that was being rendered in the first place. Has anyone tried to do this? Thanks, Rob

Re: Question about getCompoents

2007-06-01 Thread Andrea Chiumenti
My intention is a bit different from user specific needs. What I want is to create a single page application and changing the shape of it putting jars into the war (more or less as a portal)! Anyway I'm wrong it's not impossible (at least in Tap4). Despite the fact that the code is very dirty what

Re: T4.1.1 - How to inject (dynamic) page into component?

2007-06-01 Thread Jan Vissers
Hi there ... Finally gotten around to try and make this work. For me it is important that in cycle.getPage(pageName) the "pageName" is actually a parameter to the component. I've been trying this (below) but that doesn't work. I do not quite understand why, and would like somebodies view on thi

Re: Shipwreck when downloading T5.0.5

2007-06-01 Thread Daniel Jue
Hi Adam, You shouldn't have to manually touch your repository for the tapestry required libraries. Your sentence about "after creating a directory and pom under tapestry-core --> 5.0.5-SNAPSHOT" leads me to believe you did. What you will have to do is modify the POM in your project's directory,

Re: T5 - Service injection and ioc

2007-06-01 Thread Howard Lewis Ship
On 6/1/07, Blackwings <[EMAIL PROTECTED]> wrote: Thanks! I read the doc 2 or 3 times completely, but sometimes my english make the thing difficult to understand well, especially when first example start with MyModule... I focused on this and didn't pay attention enought to the SubModule part.

Re: T5 - Service injection and ioc

2007-06-01 Thread Blackwings
Thanks! I read the doc 2 or 3 times completely, but sometimes my english make the thing difficult to understand well, especially when first example start with MyModule... I focused on this and didn't pay attention enought to the SubModule part. I hope this thread will help other like me ;) 20

Re: Integration Tapestry 4.0 + Spring 2.0 + Hibernate 3.0 + JBoss 4.2

2007-06-01 Thread Jacob Bergoo
Ci Cesar, I am using the JTA Transaction Manager. For me that was easier to use JBoss JTA then to try to turn it of and instead use the one Hibernate is providing. I am not an expert on the Transaction Manager, but I assume that they are pritty much the same. In my applicationContaxt-persisten

Re: T5: @OnEvent value

2007-06-01 Thread Howard Lewis Ship
You can do this, if you want, by constructing the Link instance via ComponentResources.createActionLink(); But the intent of having different event types was to support different types of requests (such as Ajax) or different types of operations within a request (such as validation and other lifec

Re: T5 - Service injection and ioc

2007-06-01 Thread Howard Lewis Ship
Actually, Howard doesn't have to confirm this as the code confirms this, and the comments, capturing Howard's thoughts, confirm this. On 6/1/07, Blackwings <[EMAIL PROTECTED]> wrote: /cry... Does Howard confirm this? 2007/6/1, Joshua Jackson <[EMAIL PROTECTED]>: > > I think you can only have o

Re: T5 - Service injection and ioc

2007-06-01 Thread Howard Lewis Ship
Please read the documentation. It explicitly states whats going on, how Tapestry decides on the name of the class it will load. There's no particular advantage to having multiple modules; espcially with ServiceBinder (new in 5.0.4) your module classes tend to be very small. There's a @SubModule

Re: T5: How to generate page links from Java code?

2007-06-01 Thread Howard Lewis Ship
You have to inject your ComponentResources. There are methods for generating page render links and component action links as part of the ComponentResources interface. On 6/1/07, Martin Dietze <[EMAIL PROTECTED]> wrote: Hi, I'm trying to create a component for a navigation element which contai

Re: [T5] Equivilent if IPage.getPageName?

2007-06-01 Thread Howard Lewis Ship
it is missing, and there's an open bug to fix it. On 6/1/07, Dan Adams <[EMAIL PROTECTED]> wrote: What is it? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: T5: Displaying field error message at specific point in the template - possible?

2007-06-01 Thread Howard Lewis Ship
Ultimately, the control over exception reporting is in the hands of the ValidationDecorator. It is responsible for decorating Label components and the form control element components, so it can choose do whatever you want. There's a lot of nice built in support, that coordinates the ValidationDe

Re: Question about getCompoents

2007-06-01 Thread Howard Lewis Ship
Nope; being able to modify the component hierarchy is forbidden in any and all versions of Tapestry. You very rarely need to and when you do, there are other techniques besides creating components dynamically. Tapestrys pooling approach to scalability and state persistence (and a number of other

[T5] Equivilent if IPage.getPageName?

2007-06-01 Thread Dan Adams
What is it? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5 - Service injection and ioc

2007-06-01 Thread Blackwings
I didn't think about SubModule... so I just added the line before AppModule class declaration this : @SubModule({UserModule.*class*}) *public* *class* *AppModule* { And that's it, my UserModule is loaded and the build is normally called. Thanks a lot! 2007/6/1, Kristian Marinkovic <[EMAIL PROT

Re: Unit testing Tapestry 4.1 components with TestNG and Easymock

2007-06-01 Thread Jesse Kuhnert
Hmm .I can't pinpoint the exact problem but if it were up to me I would start out by changing things to look more like: public void setUp() { ... webRequest = createMock(WebRequest.class); expect(webRequest.getSession(true)).andReturn(webSession); ... } public void testGetSaving

Re: dojo dialog to populate portion of form and submit

2007-06-01 Thread Steve Shucker
The dojo dialog control moves the rendered dialog around in the DOM so it's just inside the closing tag. They do this so it's in a known place and they can make some assumptions about (lack of) nesting when it renders. However, this effectively moves it outside any forms. Use firebug to ins

Re: Unit testing Tapestry 4.1 components with TestNG and Easymock

2007-06-01 Thread Ray McBride
Hi, Thanks for you quick reply. Sorry, my fault, I must have deleted these while removing my sysouts for this post. I have tried using these but unfortunately receive the same exception. I have also done several searches on google, which seems to suggest the exception is caused by the omiss

Re: Integration Tapestry 4.0 + Spring 2.0 + Hibernate 3.0 + JBoss 4.2

2007-06-01 Thread César Augusto Mateus
Hi Jacob, it´s wonderful, my infrastructure is almost identical. I wanted to use the versions of the most recent products I have done this: I tried with declaring a TransactionManager of type JTA, but it removed problems with JBoss, due to a ClassCastException, then proving I tried with the Trans

Re: Question about getCompoents

2007-06-01 Thread Andrea Chiumenti
So if I understand there is no way to dynamically inject components into a page. Is this possible in Tap 5 ? On 6/1/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: It's done that way to prevent people from trying to modify the component structure. There's no telling what will happen if you try to

Re: Unit testing Tapestry 4.1 components with TestNG and Easymock

2007-06-01 Thread Jesse Kuhnert
You still need to call the replay() / verify() easymock methods, which can be examined further here: http://easymock.org/EasyMock2_2_Documentation.html I think getSession(boolean) also returns a value - so you'd have to define what that return value is with a statement like: expect(webRequest.g

Re: Question about getCompoents

2007-06-01 Thread Jesse Kuhnert
It's done that way to prevent people from trying to modify the component structure. There's no telling what will happen if you try to modify it somehow. Almost assuredly it will break something. On 6/1/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote: Can anybody tell me why getComponents is a

Unit testing Tapestry 4.1 components with TestNG and Easymock

2007-06-01 Thread Ray McBride
Hi All, We have recently upgrading one of our apps to Tapestry 4.1 and I have been asked to write some unit tests for the existing components. I am new to Tapestry, TestNG and Easymock, so please bear with me. I am trying to get the test to run through an if statement, but I keep getting the

Re: Integration Tapestry 4.0 + Spring 2.0 + Hibernate 3.0 + JBoss 4.2

2007-06-01 Thread Jacob Bergoo
Hi Cesar, I am working with Tapestry 4.0.2, Spring 2.0.5 Hibernate 3.2 and JBoss 4.0.4 GA, Acegi 1.0.3 I am happy to answer any questions you have on how we did our configuration... Jacob César Augusto Mateus wrote: > > Hi all, I´m beginning with Tapestry 4.0 > Now i´m developing a project in

Question about getCompoents

2007-06-01 Thread Andrea Chiumenti
Can anybody tell me why getComponents is an immutable Map and what shold happen is this map is overridden with a mutable one ? Thx, kiuma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: T5: Displaying field error message at specific point in the template - possible?

2007-06-01 Thread Martin Grotzke
On Fri, 2007-06-01 at 12:02 +0200, Katarzyna Marszalek wrote: > From looking at the component reference for Tapestry 5, I'm a bit > puzzled by the presence on the Errors component (which displays all > errors in a form as a list - rather exotic case, if you ask me,) but no > means of fine-contr

T5: How to generate page links from Java code?

2007-06-01 Thread Martin Dietze
Hi, I'm trying to create a component for a navigation element which contains page links for all of my pages but renders the currently loaded page differently (i.e. not a href, different font etc.). It seems to me like the best way to do this is have my component's java code write the lines conta

Re: Integration Tapestry 4.0 + Spring 2.0 + Hibernate 3.0 + JBoss 4.2

2007-06-01 Thread alvaro tovar
hi, i don't know but look http://wiki.apache.org/tapestry/Tapestry4Spring http://howardlewisship.com/tapestry-javaforge/tapestry-spring/ alvaro On 5/31/07, César Augusto Mateus < [EMAIL PROTECTED]> wrote: Hi all, I´m beginning with Tapestry 4.0 Now i´m developing a project in my work, and i

Re: Shipwreck when downloading T5.0.5

2007-06-01 Thread adasal
Hi and thanks. I am not quite there yet. I guess maybe simplest would be to delete anything todo with 5.0.5-SNAPSHOTin my local maven repo. At the moment what I have found after creating a directory and pom under tapestry-core --> 5.0.5-SNAPSHOT I get the following (truncated to end) when I run mv

Re: dirty form checking ...

2007-06-01 Thread andyhot
Jesse recently fixed https://issues.apache.org/jira/browse/TAPESTRY-1245 Did you get a chance to try the dirty form checker again? [EMAIL PROTECTED] wrote: Ok, now I got it right, almost ;). Somehow tapestry tapestry.form.onFormSubmit is not called, when you use tapestry.form.submit to subm

RE: T5: File input component

2007-06-01 Thread Ben Sommerville
Hmm... I just test this again & was able to build with no problems. I am using maven 2.0.5 and I updated both pom.xml and parent-pom.xml to change 5.0.4-SNAPSHOT to 5.0.5-SNAPSHOT. What version of maven are you using? Are you able to build the Tapestry core project? regards, Ben > -Origina

T5: Displaying field error message at specific point in the template - possible?

2007-06-01 Thread Katarzyna Marszalek
From looking at the component reference for Tapestry 5, I'm a bit puzzled by the presence on the Errors component (which displays all errors in a form as a list - rather exotic case, if you ask me,) but no means of fine-controlling where the error message for a particular field should be disp

Re: T5 - Service injection and ioc

2007-06-01 Thread Kristian Marinkovic
if you look at the code in TapestryAppInitializer you'll see that only ONE module is loaded automatically. Tapestry "guesses" the module class by using the filter name as a prefix and "Module" as a postfix public TapestryAppInitializer(SymbolProvider appProvider, String appName, String aliasMod

T5: form refresh functionality

2007-06-01 Thread Ulrich Stärk
Hi guys, in T4 there was this nice feature to call form.event.refresh() which triggered the listener method specified with the @Form component's refresh attribute. I want to have the following behaviour: When I change a checkbox's value, all the values the user supplied with the form shall be stor

Re: T5 - Service injection and ioc

2007-06-01 Thread Kristian Marinkovic
i assume you have used the tapestry archetype :) with the SubModule annotation you can have other module classes loaded with the AppModule without putting them into the manifest. as an alternative you can put your module into your manifest as well (comma separated) org.apach

Re: T5 - Service injection and ioc

2007-06-01 Thread Blackwings
/cry... Does Howard confirm this? 2007/6/1, Joshua Jackson <[EMAIL PROTECTED]>: I think you can only have one Module loaded by Filter (CMIIW). Last time I tried I only can load AppModule, and the other Module entries are ignored. On 6/1/07, Blackwings <[EMAIL PROTECTED]> wrote: > So, I created

Re: T5 - Service injection and ioc

2007-06-01 Thread Joshua Jackson
I think you can only have one Module loaded by Filter (CMIIW). Last time I tried I only can load AppModule, and the other Module entries are ignored. On 6/1/07, Blackwings <[EMAIL PROTECTED]> wrote: So, I created my own Module in the same package than AppModule, following the naming convention :

Re: T5: File input component

2007-06-01 Thread Davor Hrg
I've seen in previous conversations that build process can fail for certain versions of maven, I use maven 2.0.4 I don't know a solution to your problem but I belive that others that are familiar with it would like to know the version you use. you can try using 2.0.4, not saying it will solve an

Re: T5 - Service injection and ioc

2007-06-01 Thread Blackwings
So, I created my own Module in the same package than AppModule, following the naming convention : public final class UserModule { public UserService buildUserService() { return new UserServiceImpl(); } } And I still have the error, the same others have, "No service implements the interface

Re: T5 - Service injection and ioc

2007-06-01 Thread Joshua Jackson
Of course you can create your own Module, but AppModule it the ones automatically loaded because it is configured in your web.xml On 6/1/07, Blackwings <[EMAIL PROTECTED]> wrote: Still the same question... Are we force to use only the AppModule? Can we create our own module? This is the question

Re: T5: File input component

2007-06-01 Thread Joshua Jackson
I had a problem building it: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.maven.plugins ArtifactId: maven-

RE: T5: when is @Persist necessary and when not...

2007-06-01 Thread Ben Sommerville
If you initialise the objects in either of those methods then you shouldn't need default values anymore. i.e no assignment in constructor or field init Otherwise if you are @Persisting those variables in the page (not the compound object) then you values should be retained. If you are doing a

RE: T5: File input component

2007-06-01 Thread Ben Sommerville
That download should still work... the only thing that you should need to change is the tapestry versions in the pom files (replace all 5.0.4 references with 5.0.5) If you run into problems drop me an email & I will try to help. cheers Ben > -Original Message- > From: Jason Lea [mailto

Re: T5: when is @Persist necessary and when not...

2007-06-01 Thread Martin Dietze
On Thu, May 31, 2007, Ben Sommerville wrote: > For a form I'd say the best place to create those compound objects > is in the onPrepare method. This will be invoked before any processing/ > rendering occurs. (see the Form component subsection of > http://tapestry.apache.org/tapestry5/tapestry-c

Re: T5: File input component

2007-06-01 Thread Jason Lea
In this thread a file upload component is mentioned: http://www.nabble.com/T5-Upload-component--tf3373673.html#a9849252 and the download from here: https://issues.apache.org/jira/browse/TAPESTRY-1354 Joshua Jackson wrote: Dear all, Does anybody know where is the component or what is the name