Re: Concatenating strings in OGNL

2006-05-08 Thread Mark
Weird, now it works. I got some crazy error which I can not remember any more just now. I had already taken it out and just tried this one: Then I got your email and took the { and } off again, but I can not reproduce the problem I had earlier... Maybe something didn't reload/propagade proper

RE: Slightly OT: Public Tapestry based site and service is seekin g users, testers, and contributers

2006-05-08 Thread Schulte Marcus
Looks really nice - I hope it'll catch on! > -Original Message- > From: Konstantin Ignatyev [mailto:[EMAIL PROTECTED] > Sent: Monday, May 08, 2006 11:18 PM > To: TapestryUsers > Subject: Slightly OT: Public Tapestry based site and service > is seeking > users, testers, and contributers >

RE: Concatenating strings in OGNL

2006-05-08 Thread Schulte Marcus
That should work just fine - which error do you get? > -Original Message- > From: Mark [mailto:[EMAIL PROTECTED] > Sent: Tuesday, May 09, 2006 8:16 AM > To: Tapestry users > Subject: Concatenating strings in OGNL > > > Hi, > > how can I concatenate strings using OGNL? > > What I would

Concatenating strings in OGNL

2006-05-08 Thread Mark
Hi, how can I concatenate strings using OGNL? What I would like to do is something like this: stylesheet="asset:mainCss"> The resulting title should look like this: "My Application - Admin Section". Is there a way to do this in OGNL or do I need to add a Java function to the page/component?

RE: Tapernate-Example HiveMindAutowireWorker Problem

2006-05-08 Thread James Carman
Well, I could specify *all* of the workers that I want my auto-wire worker to follow by using a comma-separated list. That might do the trick! -Original Message- From: Mark Lehmacher [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 6:04 PM To: Tapestry users Subject: RE: Tapernate-Ex

Re: CRUD Example using tapestry ?

2006-05-08 Thread Sam Gendler
I'll second the recommendation for the book. It was very valuable while learning tapestry. --sam On 5/8/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: Hi Dwi, Try downloading this source code from an excelente book on Tapestry: (the code is for free, the book is not!) http://www.agileskills2.o

Re: Tapestry to generate mails ?

2006-05-08 Thread Stephane Decleire
Of course i am and i think most of us are interested in such a service ! Manage "template" emails in an application is quite a boring and complex task and delegate this to a dedicated service seems to be the right approach ! Stephane Henri Dupre wrote: I don't agree on this... Also I don't

RE: Tapernate-Example HiveMindAutowireWorker Problem

2006-05-08 Thread Mark Lehmacher
The way I see it, it definitely IS the ordering: When you contribute the autowirer with before="tapestry.enhance.abstract-property" and after="tapestry.enhance.dispatch-inject" parameters you don't guarantee that the parameter-worker already performed it's work, because it is not part of those se

Re: CRUD Example using tapestry ?

2006-05-08 Thread Pedro Viegas
Hi Dwi, Try downloading this source code from an excelente book on Tapestry: (the code is for free, the book is not!) http://www.agileskills2.org/EWDT/source.zip See the program PhoneBook. This is the program created in a chapter preciselly on the contrib:table component that builds a CRUD with

Re: Tapestry to generate mails ?

2006-05-08 Thread Paul Cantrell
I am interested in your EmailService, and I'm sure others would be, too. Your point about dynamic content is a good one: it's quite likely that an email would contain ExternalLinks, PageLinks, and perhaps even stateless DirectLinks -- and it would be nice to generate those in the email exac

Re: Tapestry to generate mails ?

2006-05-08 Thread Henri Dupre
I don't agree on this... Also I don't see really differences between "static" email and interactive HTML. In the emails we generate, there is lots of dynamic content although there is no form handling, we use the same components plus many other tapestry features. Velocity is fine, but not when you

How to pass in a message key *and* parameters into a ValidationDelegate

2006-05-08 Thread Martijn Hinten
Hi, The method record(String message, ValidationConstraint constraint) of org.apache.tapestry.valid.ValidationDelegate will lookup any message automatically in the message property file. However there does not seem to be a record-method that allows me to pass in both the message-key and any

Slightly OT: Public Tapestry based site and service is seeking users, testers, and contributers

2006-05-08 Thread Konstantin Ignatyev
Let me invite you to try and use the public Tapestry based application I have been developing for a while and my company SourceLabs supports and hosts http://area51.sourcelabs.com/cjar/app Features: * search for Java artifacts by name or content (class and package name

Re: I'm lose my ASO

2006-05-08 Thread Diogenes Moreira
1. Im using refresh feature of shell component but the application have this properties org.apache.tapestry.default-cookie-max-age -1 i'll shearching for information for this properties thank you for you guide,, On 5/8/06, Mark <[EMAIL PROTECTED]> wrote:

Wrapping Tapestry calls with getting a session and starting a transaction

2006-05-08 Thread Tony Herstell
Sorry.. wrong subject (again) Tapestry4. I want to wrap tapestry getting the request for a page and returning from rendering the page with getting the hibernate session and setting up a transaction and doing some logging... I want to do this before I start to open up Spring in Action an

RE: Spring IoC and Tapestry Forms

2006-05-08 Thread Tony Herstell
Tapestry4. I want to wrap tapestry getting the request for a page and returning from rendering the page with getting the hibernate session and setting up a transaction and doing some logging... I want to do this before I start to open up Spring in Action and integrate Spring into my project (the

Re: Spring IoC and Tapestry Forms

2006-05-08 Thread Stephane Decleire
Thaks a lot Mark Mark wrote: Stephane Decleire wrote: If i understand well your configuration file, you encapsulate the Spring bean messageSource in the class SpringMessageSourceBasedComponentMessagesSource managed by Hivemind. So messageSource is defined as a classic Spring bean in your

RE: InjectSpring initialisation error

2006-05-08 Thread James Carman
Well, it should probably take a parameter to say whether or not to cache (defaults to true). -Original Message- From: Mark [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 1:25 PM To: Tapestry users Subject: Re: InjectSpring initialisation error James Carman wrote: > This has to do w

Re: InjectSpring initialisation error

2006-05-08 Thread Mark
James Carman wrote: This has to do with the way the InjectObjectWorker is implemented. I think it should be changed to lookup the object each time rather than look it up once and inject that particular value into the object. Oh, that's what the InjectObjectWorker does? It caches and reuses

Re: Spring IoC and Tapestry Forms

2006-05-08 Thread Mark
Stephane Decleire wrote: If i understand well your configuration file, you encapsulate the Spring bean messageSource in the class SpringMessageSourceBasedComponentMessagesSource managed by Hivemind. So messageSource is defined as a classic Spring bean in your contextApplication file. Correct

ServletRequestServicerFilter not getting exceptions?

2006-05-08 Thread Jason Dyer
I've written a ServletRequestServicerFilter for implementing an open-session-in-view filter, much like the one in Tapernate (in fact, I used TapernateFilter as my reference.) In the no-exception case, it works fine. However, I was assuming that page exceptions would get thrown back to the filt

Re: Mike's DynamicBlock in Tap4

2006-05-08 Thread Mike Henderson
Hi, I need to post the source code for the T4 version of DynamicBlock. The T4 version (referred to in the linked blog entry) no longer manipulates page structure, instead it generates a page with the component declared inside it, inside a Block. DynamicBlock now behaves much like RenderBlock

Re: InjectSpring initialisation error

2006-05-08 Thread Stephane Decleire
The reason is mainly historical ... But i also prefer to keep the best of both world : Spring is for me the best way to glue the layers of our applications (Tapesty, Hibernate and AOP for transactions, Web Services, ...) as Tapestry is the best presentation layer ;-) James Carman wrote: Use

Re: Issue with property injection

2006-05-08 Thread ZedroS Schwart
Thanks a lot. Such a stupid error **shame** I won't forget, that's certain ! Cheers ZedroS On 5/8/06, Andreas Andreou <[EMAIL PROTECTED]> wrote: change public abstract String getInternalId(); to public abstract Long getInternalId(); ZedroS Schwart wrote: > Hi all > > In a class called Utilisa

RE: InjectSpring initialisation error

2006-05-08 Thread James Carman
Use HiveMind and not Spring. :-) Why are you using Spring to instantiate/configure your beans? Do you have a compelling reason to use a different IoC container? Are you using AOP? -Original Message- From: Stephane Decleire [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 12:34

Re: InjectSpring initialisation error

2006-05-08 Thread Stephane Decleire
No, my Spring bean is a "classic" one. Do you know a way to bypass this problem ? James Carman wrote: This has to do with the way the InjectObjectWorker is implemented. I think it should be changed to lookup the object each time rather than look it up once and inject that particular value into

RE: InjectSpring initialisation error

2006-05-08 Thread James Carman
This has to do with the way the InjectObjectWorker is implemented. I think it should be changed to lookup the object each time rather than look it up once and inject that particular value into the object. -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Monday, Ma

RE: InjectSpring initialisation error

2006-05-08 Thread James Carman
Are you trying to use a non-singleton Spring bean? -Original Message- From: Stephane Decleire [mailto:[EMAIL PROTECTED] Sent: Monday, May 08, 2006 12:18 PM To: users@tapestry.apache.org Subject: InjectSpring initialisation error It seems that when a Spring bean is injected in a Tapestry

InjectSpring initialisation error

2006-05-08 Thread Stephane Decleire
It seems that when a Spring bean is injected in a Tapestry page using @InjectSpring, its initial state is not recovered where the page is detached. Is it a known bug ? Is there a way to force the reinitialisation of the bean ? Thanks in advance. -- Stéphane Decleire 05 56 57 99 20 06 63 78 6

Release 1.1.2...

2006-05-08 Thread James Carman
All, We would like to do a 1.1.2 release sometime in the near future. If you have any particular issues in Jira that you would like to see addressed, please vote for them so that we may better prioritize based on user need. Since this is going to be a maintenance release, we're going to concentra

Shared (but limited) properties

2006-05-08 Thread Mike Snare
I'm writing three pages that all pertain to the management of users, so naturally all three have similar property string needs. There will be some differences, of course, but a lot of the strings are the same. Is there a way (other than an application level properties file) to share the definiti

Re: Spring IoC and Tapestry Forms

2006-05-08 Thread Stephane Decleire
If i understand well your configuration file, you encapsulate the Spring bean messageSource in the class SpringMessageSourceBasedComponentMessagesSource managed by Hivemind. So messageSource is defined as a classic Spring bean in your contextApplication file. Is that correct ? And how do you in

Re: Spring IoC and Tapestry Forms

2006-05-08 Thread Mark
Are you using the tapestry-spring jar? I think that works for me, using this syntax: class="com.mark_arnold.util.web.tapestry.SpringMessageSourceBasedComponentMessagesSource"> value="spring:messageSource"/> Hope this helps you... M

Re: Mike's DynamicBlock in Tap4

2006-05-08 Thread Howard Lewis Ship
Danger Will Robinson! I'm very nervous about any component that tries to change page structure. In the Tapestry 5 documentation I'm finally stating strongly one of the basic tenets of Tapestry: Static structure, dynamic behavior. DynamicBlock violates that rule I believe. On 5/8/06, sp y <[EM

Re: I'm lose my ASO

2006-05-08 Thread Mark
- Do you allow cookies? Are you sure it stays within the same session? - Is this the first page within your application? - Does it work if you add a link in that page to itself and click that link a few times, rather than using the reload (I know it's not what you want but may give pointers to w

RE: Tapernate-Example HiveMindAutowireWorker Problem

2006-05-08 Thread James Carman
I thought the ordering was getting screwed up too. But, I added LoggingInterceptor to the ParameterPropertyWorker and my auto-wire worker and the parameter one seems to be running first. If the parameter worker runs first, this problem should not occur, since the property would have already been

Re: Issue with property injection

2006-05-08 Thread Andreas Andreou
change public abstract String getInternalId(); to public abstract Long getInternalId(); ZedroS Schwart wrote: Hi all In a class called UtilisateursPage.java , I've put : public abstract class UtilisateurPage extends BasePage implements PageBeginRenderListener { @Persist("client") p

Issue with property injection

2006-05-08 Thread ZedroS Schwart
Hi all In a class called UtilisateursPage.java , I've put : public abstract class UtilisateurPage extends BasePage implements PageBeginRenderListener { @Persist("client") public abstract String getInternalId(); public abstract void setInternalId(Long id); ...} I call this page so

Re: Spring IoC and Tapestry Forms

2006-05-08 Thread Stephane Decleire
I've tried to import my Spring bean User in Hivemind using SpringLookupFactory without success. Has anybody use this integration ? And could show me a sample of hivemind configuration ? Thanks in advance. Stephane Decleire wrote: Hi, I need a User component in a Tapestry form like this :

Re: Localized Message In Validator

2006-05-08 Thread Martin Strand
Add % in front of the message, something like this: validators="validators:required[%message.key]" seng kim khong wrote: Hi All, Regards to the aboe subject, would like to ask that how can we use different localized message in validator? Thax a lot :P -- Regards, Khong Seng Kin ---

Re: Table componente - Localized description ...

2006-05-08 Thread Martin Strand
Just omit the "message:" part, like this: name:page.name:name The Table will automatically look for the message key in your page's message catalog. Angelo Luis wrote: I want to make the description of my Table component localized... How do i do that??? i try to make that way, but dont work

Table componente - Localized description ...

2006-05-08 Thread Angelo Luis
I want to make the description of my Table component localized... How do i do that??? i try to make that way, but dont work -> name:message:page.name:name

I'm lose my ASO

2006-05-08 Thread Diogenes Moreira
Dear: a have a page with the refresh property set in 10 seconds, in a couple refesh times, in lose my ASOs Any one can give my a clue??? Thank you, in advance -- Diogenes A Moreira Project Manager PLEASE NOTE This message, along with any attachments, may be confidential or legally privilege

Spring IoC and Tapestry Forms

2006-05-08 Thread Stephane Decleire
Hi, I need a User component in a Tapestry form like this : @Persist("client") public abstract void setUser(User user); public abstract User getUser(); But my User component use Spring IoC to get its Address class. Without a Spring declaration, the Address of my User isn't instantiated

Re: Best way to record an error in a listener

2006-05-08 Thread Kent Tong
Paul Cantrell pobox.com> writes: > Ideally, I'd be able to do this: > > getPasswordField().recordError("Incorrect password"); > > ...or something like that. Try: class ErrorRecord { static void record(IFormComponent field, String msg) { field.getForm().getDelegate().record(field,

Localized Message In Validator

2006-05-08 Thread seng kim khong
Hi All, Regards to the aboe subject, would like to ask that how can we use different localized message in validator? Thax a lot :P -- Regards, Khong Seng Kin

Re: problem with including external file as parameter

2006-05-08 Thread Kent Tong
arun garg persistent.co.in> writes: > But the trouble is that if I make an asset and insert it, there are parsing > problems because one tag can not be > put inside another: > insert value="ognl.asset1">> Have you tried: -- Kent Tong Author of a book for learning Tapestry (http://www.agil

Re: messages-encoding problem for japanese in utf-8?

2006-05-08 Thread Kent Tong
Numa Schmeder euroconsumers.com> writes: > I have a problem localizing a tapestry application in japanese, a > translator has translated all properties file in japanese in utf-8, > so all the properties file are encoded in utf-8, opening thoses file > in eclipse or in a text editor that sup

RE: Tapernate-Example HiveMindAutowireWorker Problem

2006-05-08 Thread Mark Lehmacher
A little correction, the Shell delegate parameter is of type IRender, not IValidationDelegate. > --- Ursprüngliche Nachricht --- > Von: "Mark Lehmacher" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: RE: Tapernate-Example HiveMindAutowireWorker Problem > Datum: Mon, 8 May 2006 12:30:51 +02

Re: Testing pages

2006-05-08 Thread Kent Tong
Rob Dennett tmit1.org> writes: > Can you test your pages using HtmlUnit with mock services? I have a service > that is drawing data from the database and I would like to fake that for > testing purposes, but I can’t figure out how to do it. The way I do it is to create an XXXTestCaller extern

RE: Tapernate-Example HiveMindAutowireWorker Problem

2006-05-08 Thread Mark Lehmacher
Yup, that's what I am saying. Looks like it's wiring component parameters as well: 5705 HiveMindAutowireWorker:performEnhancement [DEBUG] Creating auto-wired accessor for property delegate on component classpath:/org/apache/tapestry/html/Shell.jwc, line 22, column 96 5856 HiveMindAutowireWorker:p

Re: Mike's DynamicBlock in Tap4

2006-05-08 Thread sp y
Thanks for pointing out :) On 5/8/06, Steve Motola <[EMAIL PROTECTED]> wrote: I believe he's refering to: http://www.behindthesite.com/blog/C1931765677/E20060309215538/index.html Quoting Andreas Bulling <[EMAIL PROTECTED]>: > On 08. Mai 2006 - 10:25:32, sp y wrote: > | Hi All, > | > | If any

Re: Mike's DynamicBlock in Tap4

2006-05-08 Thread Andreas Bulling
On 08. Mai 2006 - 04:37:42, Steve Motola wrote: | I believe he's refering to: | | http://www.behindthesite.com/blog/C1931765677/E20060309215538/index.html Thanks for that! Sounds _very_ interesting... ;-) Kind regards, Andreas

Re: CRUD Example using tapestry ?

2006-05-08 Thread Steve Motola
For yet another CRUD example you can also take a look at a demo of the Cognition Framework: http://www.thelabllc.com:8080/slave This example is available in your dev environment through a 'new project template' within the Modeler (http://www.thelabllc.com). You can view a walkthrough here: h

Re: Mike's DynamicBlock in Tap4

2006-05-08 Thread Steve Motola
I believe he's refering to: http://www.behindthesite.com/blog/C1931765677/E20060309215538/index.html Quoting Andreas Bulling <[EMAIL PROTECTED]>: > On 08. Mai 2006 - 10:25:32, sp y wrote: > | Hi All, > | > | If anyone successfully tested Michael Henderson's DynamicBlock in Tap4? > The > | err

Re: Dependent drop down list

2006-05-08 Thread Stephane Decleire
I've implemented Sam's solution in my project (thanks Sam !). When the page is refreshed with the new items in the drop down list, i would like that this form element keep the focus but the focus is reset to the first element in the form ... Any advice is welcome. Stephane Sam Gendler wrote:

Re: Mike's DynamicBlock in Tap4

2006-05-08 Thread Andreas Bulling
On 08. Mai 2006 - 10:25:32, sp y wrote: | Hi All, | | If anyone successfully tested Michael Henderson's DynamicBlock in Tap4? The | error I had encountered was 'factory already defined' java.lang.error. The | example that downloaded from Michael Henderson's website has the same error. What Dynami