Hivemind SpringLookupFactory

2006-06-06 Thread Stephane Decleire
Hi all, I need to inject a Spring bean (wich is a DAO) in my Tapestry Visit session object. After some readings, the solution seems to be the declaration of a new ASO in Hivemind for the Visit object and the injection of my Spring bean in this new ASO using the Hivemind SpringLookupFactory.

Re: Hivemind SpringLookupFactory

2006-06-06 Thread Andreas Bulling
| So i send here my SOS ! | Has anybody already used the SpringLookupFactory and could show me a | configuration sample ? For the Visit ASO you should find examples easily on this list... Concerning the LookupFactory I'm not sure if you really need it. AFAIK if you use Howards tapestry-spring

Re: Tapestry 4 / Acegi integration examples

2006-06-06 Thread Andreas Bulling
I'd also be very interested in such an example... ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Hivemind SpringLookupFactory

2006-06-06 Thread Andreas Bulling
On 06. Jun 2006 - 12:53:04, Andreas Bulling wrote: | | So i send here my SOS ! | | Has anybody already used the SpringLookupFactory and could show me a | | configuration sample ? | | For the Visit ASO you should find examples easily on this list... | | Concerning the LookupFactory I'm not sure

Re: Hivemind SpringLookupFactory

2006-06-06 Thread Stephane Decleire
Concerning the creation of an ASO, i found a lot of samples using the create-instance/ implementation but none with the invoke-factory/ wich seems to be unique way to access Spring ... Regarding the [EMAIL PROTECTED] annotation, perhaps i've missed something but i don't know how it can be

OGNL in javascript

2006-06-06 Thread Deon Visagie
Hi All I want to put an ognl expression in my onclick event of a link e.g: onclick=ognl:'javascript: document.getElementById('userId').value=' + user.Id but the above doesn't work. I have tried various variations with no success. I know onclick=ognl: user.Id would print out the id but I need to

Re: Tapernate Squeezer...

2006-06-06 Thread Andreas Bulling
Hi James, I'd vote for the hashCode() approach, why: 1) It's the approach already used and widely accepted (for example in Hibernate) 2) using Hibernate (which is what Tapernate is dedicated to) you are advised to implement hashCode() and equals() anyway (according to the Hibernate homepage) so

Re: OGNL in javascript

2006-06-06 Thread Christian Haselbach
Quoting Deon Visagie [EMAIL PROTECTED]: I want to put an ognl expression in my onclick event of a link e.g: onclick=ognl:'javascript: document.getElementById('userId').value=' + user.Id I'd say there is a syntax error with the single quotes, which occure in the getElementById call. If

Re: getting rid of cycle.activate

2006-06-06 Thread Andreas Bulling
Hi Daniel, you can make your listener methods return the desired IPage directly... Perhaps thats a solution to your problem? hth, Andreas On 06. Jun 2006 - 12:13:34, Daniel M Garland wrote: | Hi all, | | I've been using Tapestry 3.03, and I need help getting rid of | cycle.activate, because

RE: Tapernate Squeezer...

2006-06-06 Thread James Carman
Actually, I like Adreas Androu's idea. He said (from the developers list): I think I would use the entire entity name enhanced with an optional properties file that would allow users to define substitutions. However, I'm going to go one better. Instead of using a properties file, I'll create a

Re: Tapernate Squeezer...

2006-06-06 Thread Andreas Andreou
James Carman wrote: Actually, I like Adreas Androu's idea. He said (from the developers list): I think I would use the entire entity name enhanced with an optional properties file that would allow users to define substitutions. However, I'm going to go one better. Instead of using a

RE: OGNL in javascript

2006-06-06 Thread Deon Visagie
Thanks! It worked. -Original Message- From: Inge Solvoll [mailto:[EMAIL PROTECTED] Sent: 06 June 2006 02:26 PM To: Tapestry users Subject: Re: OGNL in javascript You have to escape the ('userId'), like this probably: (\'userId\') On 6/6/06, Deon Visagie [EMAIL PROTECTED] wrote: Hi

Re: getting rid of cycle.activate

2006-06-06 Thread Andreas Bulling
On 06. Jun 2006 - 16:03:27, Andreas Andreou wrote: | That won't do, he's in 3.0.3... I thought he has switched to T4 as he said I've been using... @Daniel: Sorry, in this case just forget what I've said. ;) - To unsubscribe,

Re: OGNL in javascript

2006-06-06 Thread Andreas Andreou
if, by any chance, you have a tacos jar in your classpath, you can take advantage of the template binding, i.e. onclick=template:javascript: document.getElementById('userId').value=${user.Id} Also, you don't have to add javascript: in the onclick attribute. Deon Visagie wrote: Thanks! It

DirectLink listening to session state method

2006-06-06 Thread Willem van Asperen
Hi All, Is there a way to create an @DirectLink that listens to a method on a state object that I have in my session? What I would like to do is: a jwcid=@DirectLink listener=myStateObject.someMethod parameters=ognl:somevalue Here the someMethod method returns a string with the name of the

Trails

2006-06-06 Thread Carl Pelletier
Hi everyone, I'm looking for feedback here, I planning of using Trails to help gain speed with my Tapestry 4.0 development. Somebody use it? Should I ? What are the pinfall ? What are your advise... Thanks for your feedback

RE: DirectLink listening to session state method

2006-06-06 Thread Schulte Marcus
Probably you need a getter on your ASO returning an IActionListener-instance which calls your method. Then you can say a jwcid=@DirectLink listener=ognl:myStateObject.someMethod parameters=ognl:somevalue with : class YourStateObjectClass { IActionListener getSomeMethod() { return

Re: Trails

2006-06-06 Thread Peter Svensson
I only use trails for my Tapestry-4 development. Mainly because I enjoyed the steep initial learning curve of tapestry and needed something to lean on. The main reason I liked and like trails is because the ant scripts together with hibernate tools generate all tables in my MySQL database

Re: Trails

2006-06-06 Thread Carl Pelletier
Ok, thanks, that help. Last question: Is it easy to change the UI after Trails generate the page ? Because, we have some specific needs. We won't use the simple layout Trails give after the generation. We need to modify the ui to reflect our needs. Thanks ! - Original Message From:

Re: OGNL in javascript

2006-06-06 Thread Jesse Kuhnert
You might also want to take a look at the @Script templating ability in tapestry. It simplifies more complicated scenerios such as what you describe. http://jakarta.apache.org/tapestry/UsersGuide/script.html On 6/6/06, Andreas Andreou [EMAIL PROTECTED] wrote: if, by any chance, you have a

Tacos AjaxForm with Tapestry Form

2006-06-06 Thread sp y
Hello, I have a page with AjaxForm and Tapestry Form which that doesnt work well, which i believe it's the problems come from Tacos. I'm using Tacos 4 beta 1 with Tapestry 4, I just can't get it work with tacos beta 2, nor do i have clear ideas why the simple tacos component page with tacos beta

Re: Tacos AjaxForm with Tapestry Form

2006-06-06 Thread Andreas Andreou
Are you using tapestry 4.0 or 4.0.2 ? sp y wrote: Hello, I have a page with AjaxForm and Tapestry Form which that doesnt work well, which i believe it's the problems come from Tacos. I'm using Tacos 4 beta 1 with Tapestry 4, I just can't get it work with tacos beta 2, nor do i have clear

Re: Trails

2006-06-06 Thread Peter Svensson
Actually, my first trails (and tapestry) project was for a customer who had an existing database with lots of odd relationships in it, and which I managed to map one class at a time, by creating classes with the same name as the tables and pasting the description into a comment. I didn't have to

RE: Hibernate persisted data never makes it to DB

2006-06-06 Thread Payne, Matthew
+1 Don't use autocommit. You might wind up changed pojo's where you've changed a couple properties yet never called/save/update commit etc. Just specify transactional advice on your persistence manager. Shame there is no way to specify spring transactional advice on pages/actions like other

RE: Tapernate and Spring

2006-06-06 Thread Payne, Matthew
re: since Spring does not have explicit Tapestry-support Is it up to spring add tapestry support? No. Its is up to Tapestry to fix it brokenness? Webwork is not mentioned in spring's lib/src, yet its spring support is superior. Right now tapestry's spring support is kind of half baked. Pages

RE: strange problem losing session variables

2006-06-06 Thread Steve Shucker
I've seen something like this once before involving an app designed for a small number of large sessions. My problem was that I was persisting my sessions in-memory. When there was no more memory available, my app server (weblogic 8.1) conveniently started discarding sessions. Turning on JDBC

Re: Tacos examples

2006-06-06 Thread Peter Dawn
i experienced the same problem, but then i downloaded the demo from their site and deployed it locally on my server and then i was able to see its implementation, the same as the demo on the above mentioned servers. perhaps deploying it locally would save the developers bandwidth and hosting

get status from http response

2006-06-06 Thread Eddie Fang
Hi, In order to get the status back from HttpServletResponse, I've tried overriding servletwebresponse, as well as implementing a HttpServletResponseWrapper, to no avail. setStatus() doesn't seem to be called either way. Does anyone have an idea how to get the status back by any chance?

Re: get status from http response

2006-06-06 Thread Shing Hing Man
Have you tried to inject a HttpServletReponse into a Tapestry page .java file with the following? @InjectObject(service:tapestry.globals.HttpServletResponse) public abstract HttpServletResponse getServletResponse(); Shing --- Eddie Fang [EMAIL PROTECTED] wrote: Hi, In order to get the

Re: Tapernate Squeezer...

2006-06-06 Thread Ted Steen
Hi, I too like the idea of a configuration point for the substitutions. I can't see a way to convert the name into something more simple, without the risk of getting collisions and/or somewhat ugly URLs. With a configuration point one will be able to; * Get the abbreviation of the entity class

RE: Tapernate Squeezer...

2006-06-06 Thread James Carman
That's the way I went with it. I also made a configurable option (set via a FactoryDefault symbol) that will allow you to tell it whether or not to use the short name of the classes or not. The default is to use the short name. -Original Message- From: Ted Steen [mailto:[EMAIL

Re: Tacos AjaxForm with Tapestry Form

2006-06-06 Thread sp y
Thanks for your reply, Andreas. There's no difference from using tapestry 4 or 4.0.2 to me. On 6/7/06, Andreas Andreou [EMAIL PROTECTED] wrote: Are you using tapestry 4.0 or 4.0.2 ? sp y wrote: Hello, I have a page with AjaxForm and Tapestry Form which that doesnt work well, which i

Re: Tacos AjaxForm with Tapestry Form

2006-06-06 Thread Jesse Kuhnert
You might have to be more clear about what isn't working. On 6/6/06, sp y [EMAIL PROTECTED] wrote: Thanks for your reply, Andreas. There's no difference from using tapestry 4 or 4.0.2 to me. On 6/7/06, Andreas Andreou [EMAIL PROTECTED] wrote: Are you using tapestry 4.0 or 4.0.2 ? sp y

Injected HttpServletRequest does not match cycle.requestContext.request

2006-06-06 Thread Mark Helmstetter
Why is the injected HttpServletRequest not compatible with the HttpServletRequest obtained via the deprecated getRequestCycle().getRequestContext().getRequest()? public abstract class LoginPage extends BasePage implements PageBeginRenderListener {

Re: Tacos AjaxForm with Tapestry Form

2006-06-06 Thread sp y
Sorry that I wasnt clear about the problems that I've been met. I've tried to look into the code, when there is other Tapestry Form within the same page with Tacos AjaxForm, Tapestry.register_form doesnt get called which causing related issues like client side validation will not be handled. Am

RE: Wiring up an Export service

2006-06-06 Thread Barry Heath
Patrick, I've just been tasked with integrating BIRT into our Tapestry 3 application. It appears as if you've done most of the heavly lifting already. Would you be willing to share a little more detail about your integration. I can roughly follow what you've outlined below, but it appears as if