Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Kalle Korhonen
On Mon, Dec 14, 2009 at 6:51 PM, Thiago H. de Paula Figueiredo wrote: > Em Tue, 15 Dec 2009 00:34:25 -0200, Geoff Callender > escreveu: (Bravo Geoff!) > You can be happy with relational persistence now, but maybe not tomorrow. ;) > Just to be very clear: when I say "JPA is not my DAO", I say "an

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Thiago H. de Paula Figueiredo
Em Tue, 15 Dec 2009 00:34:25 -0200, Geoff Callender escreveu: However, if you're happy to stick with relational, then JPA can be your DAO. You choose your relational persister at runtime, eg. Hibernate, TopLink, OpenJPA, etc. You can be happy with relational persistence now, but maybe no

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Geoff Callender
On 14/12/2009, at 11:05 PM, Thiago H. de Paula Figueiredo wrote: > Em Mon, 14 Dec 2009 07:55:21 -0200, Alessandro Bottoni > escreveu: >> 3) In his Jumpstart's FAQ, Geoff Callender says: >> >> "Why did the Data Access Object pattern ever exist? As I recall it had >> two purposes: to abstract a

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Dec 2009 23:02:41 -0200, Ashwanth Kumar escreveu: Well, if you want Mouse and Text field (key press events), use Java Script on the client side, its very useful and efficient. If you're very particular, use DWR to map JS events to a Java Class @ server side, but with in-built aj

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread Ashwanth Kumar
Well, if you want Mouse and Text field (key press events), use Java Script on the client side, its very useful and efficient. If you're very particular, use DWR to map JS events to a Java Class @ server side, but with in-built ajax support, Tapestry doesn't require it though. Protoype can help u w

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Dmitry Gusev
Why don't just use spring to manage EntityManager and transactions? This worked very well for me. I've just published my "ping-service" project to github so that you can see how JPA/Spring can be implemented in T5 app: http://github.com/dmitrygusev/ping-service I already mentioned this project h

Res: Res: Specific CSS files for each browser

2009-12-14 Thread Everton Agner
Okay, thanks. One of the weirdest problems I'm having is the DateField component Javascript calendar... It's "absolute" position didn't work fine here on IE8 (it's DIV jumps out on weird spots on screen). Everton De: Thiago H. de Paula Figueiredo Para: Tap

[Tapestry Central] Upcoming Public Training: London and Paris

2009-12-14 Thread Howard
This is a big announcement ... something I've been working on pretty much since I left Formos. I've partnered up with SkillsMatter to provide my three-day, hands-on Tapestry training as a public enrollment course! This is the exact same course I provide as on-site training, but we'll be doing it at

Re: Res: Specific CSS files for each browser

2009-12-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Dec 2009 17:23:25 -0200, Everton Agner escreveu: It's perfect! Thank you! :) You're welcome! What about my other question? Tapestry generated html/css code is fine to run in which IE version? I guess it's fine even with IE6, but do your own tests with your own CSS files.

Res: Specific CSS files for each browser

2009-12-14 Thread Everton Agner
It's perfect! Thank you! :) What about my other question? Tapestry generated html/css code is fine to run in which IE version? Thanks! Everton De: Thiago H. de Paula Figueiredo Para: Tapestry users Enviadas: Segunda-feira, 14 de Dezembro de 2009 16:45:52

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Dec 2009 17:05:03 -0200, Piero Sartini escreveu: That's what I meant with re-inventing the wheel ;-) You're right. :) There are already lots of working implementations of JavaEE persistence but every single web framework needs to build one implementation of its own, simulat

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Piero Sartini
> I would say that Tapestry-IoC is not able to handle JPA fully > (@PersistenceContext) now, but someone can step up and implement this. :) That's what I meant with re-inventing the wheel ;-) One time we will have a working tapestry-jpa2 module. But then the next step is to support more than one p

Re: Specific CSS files for each browser

2009-12-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Dec 2009 16:39:31 -0200, Everton Agner escreveu: Hi, Hi! I'm having problems with tapestry generated html/css code (plus my html/css layout), and I want to fix it for each browser issue... There is any way I can make the @IncludeStylesheet value Dynamic? No, but you can @In

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Dec 2009 16:32:03 -0200, Piero Sartini escreveu: Struts2, Wicket and many others do have the same problem. All of them need to reinvent the wheel when it comes to persistence... tapestry did the best job imho, but is not able to use JPA instead of the hibernate APIs. I would say

Specific CSS files for each browser

2009-12-14 Thread Everton Agner
Hi, I'm having problems with tapestry generated html/css code (plus my html/css layout), and I want to fix it for each browser issue... There is any way I can make the @IncludeStylesheet value Dynamic? So I can look for the Browser's request info and refer the correct CSS file? Or... There is

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Piero Sartini
>  For both JPA/Hibernate, you have two ways to go: > >    1. Container-Managed EntityManagers and transactions. > > By this I mean that you're using @PersistenceContext and such in your classes > so that your web application container (i.e. GlassFish) manages the > EntityManagers and the transact

Re: Tapestry 5 and Selenium

2009-12-14 Thread Robert Zeigler
//input[contains(@id,'mpo')] Cheers, Robert On Dec 14, 2009, at 12/1411:41 AM , Ville Virtanen wrote: Yep, that's what I was afraid of. I don't have anything to base my opinion to, but I have a feeling that the tests will be really easily broken if and when someone decides to change the

Re: Tapestry 5 and Selenium

2009-12-14 Thread Ville Virtanen
Yep, that's what I was afraid of. I don't have anything to base my opinion to, but I have a feeling that the tests will be really easily broken if and when someone decides to change the page layout etc. This of course is not related to T5 at any level, but rather common problem. And that's the o

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Pierce T. Wetter III
On Dec 14, 2009, at 2:55 AM, Alessandro Bottoni wrote: > Hi All, > I'm looking at the alternatives that are available for building the > persistence layer of a application in Tapestry 5 and I would be happy to > hear your opinion about a couple of topics: > > 1) I see that there is a support lib

Re: Tapestry 5 and Selenium

2009-12-14 Thread Howard Lewis Ship
Identify the fields using XPath instead of id. On Sun, Dec 13, 2009 at 11:05 PM, Ville Virtanen wrote: > > Hi, > > I've googled around but couldn't find solution for this one. The problem is > that we have to test a form that is loaded using progressive display which > makes all the ids to be gen

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread marioosh.net
Olle Hallin-2 wrote: > > I forgot to paste in the JavaDocs link: > http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/annotations/OnEvent.html > Yes, I know this annotation but... i think it doesn't work for events like: mouseover, mouseout, change (textfield)... http://tapes

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread Olle Hallin
I forgot to paste in the JavaDocs link: http://tapestry.apache.org/tapestry5.1/apidocs/org/apache/tapestry5/annotations/OnEvent.html Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se http://www.linkedin.com/in/ollehallin 2009/12/14 Olle Hallin > It is. > > Add

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread Olle Hallin
It is. Add this to your page/component class: @OnEvent @Log public void onEvent() {} and watch the log file for the stream of events that are fired against this (catch-all) event handler. Olle Hallin Senior Java Developer and Architect olle.hal...@crisp.se www.crisp.se http://www.linkedin.com

Re: Tapestry 5, JPA and Hibernate

2009-12-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Dec 2009 07:55:21 -0200, Alessandro Bottoni escreveu: Hi All, Hi! 3) In his Jumpstart's FAQ, Geoff Callender says: "Why did the Data Access Object pattern ever exist? As I recall it had two purposes: to abstract away the data sources, and to hide the implementation of accessin

Re: Custom ordering of fields

2009-12-14 Thread Thiago H. de Paula Figueiredo
Em Mon, 14 Dec 2009 06:45:59 -0200, Inge Solvoll escreveu: Hi! Hi! Why don't you use BeanEditor (or BeanEditForm) and handle the fields by creating and manipulating a BeanModel and its PropertyModels? -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate co

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread marioosh.net
Inge Solvoll wrote: > > Check out this one! > > http://chenillekit.codehaus.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/mixins/OnEvent.html > Thanks:) But... I see, that is a addition to tapestry. Why is not in native Tapestry 5 ? :( -- View this message in context: http://

Re: [newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread Inge Solvoll
Check out this one! http://chenillekit.codehaus.org/chenillekit-tapestry/ref/org/chenillekit/tapestry/core/mixins/OnEvent.html On Mon, Dec 14, 2009 at 11:34 AM, marioosh.net wrote: > Is something like that: > http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html > in Tapestry 5 ? > > I

[newbie] EventListener in Tapestry 5 ?

2009-12-14 Thread marioosh.net
Is something like that: http://tapestry.apache.org/tapestry4.1/ajax/EventListener.html in Tapestry 5 ? I can't see @EventListener annotation in Tapesty5. -- Pozdrawiam, Mariusz - To unsubscribe, e-mail: users-unsubscr...@tapest

Tapestry 5, JPA and Hibernate

2009-12-14 Thread Alessandro Bottoni
Hi All, I'm looking at the alternatives that are available for building the persistence layer of a application in Tapestry 5 and I would be happy to hear your opinion about a couple of topics: 1) I see that there is a support library for JPA and JPA2 (http://kenai.com/projects/tapestry-jpa) but th

Re: Custom ordering of fields

2009-12-14 Thread Inge Solvoll
One more thing I managed to solve this by parsing the DOM in afterRender and moving the elements around there. But I don't find this approach very attractive, and would like to find a way to do it with blocks. On Mon, Dec 14, 2009 at 9:45 AM, Inge Solvoll wrote: > Hi! > > In Struts, I implemente

Custom ordering of fields

2009-12-14 Thread Inge Solvoll
Hi! In Struts, I implemented a way to let the customer decide the ordering of form fields. It is done by specifying a list of keywords that each identify a part of the form (most often a field) to include. These keywords are put in a comma separated configuration string, that looks something like