Re: T5: Progress indicator and AJAX example?

2010-12-11 Thread Taha Hafeez
Hi It is very simple. In ProgressBar#afterRender an event "timer" is created which is passed on to javascript. Javascript is a periodicExecuter with period passed as a parameter. For each period it calls the event url with the previous value of percentage as a parameter. When the event is called

Re: T5.2 Need Advice on JDBC and Transaction Mgmt

2010-12-11 Thread Yohan Yudanara
Thanks for your reply.. hmm.. maybe I could use DataSourceTransactionManager instead of HibernateSessionManager, because I'm using JDBC instead of hibernate. When using this code, where do we place our DAO for accessing database ? tapestry service or spring bean ? Thanks in advance.. On Sat, De

Re: T5.2 Need Advice on JDBC and Transaction Mgmt

2010-12-11 Thread Yohan Yudanara
Unfortunately, I prefer use JDBC to Hibernate. I'm not using Hibernate in my projects. If I'm stick to JDBC, is it better to stick with Spring Service for declarative transaction and accessing database ? Thanks in advance On Sat, Dec 11, 2010 at 11:53 PM, Josh Canfield wrote: > For most cases u

RE: Image file upload with Easy FCKEditor

2010-12-11 Thread Jim O'Callaghan
Looking through this further it appears to be an issue with FCKEditor core code running php on Jetty. I know this is a Tap specific list but have any Tap 5 users got ex. QuercusServlet working using resin in their pom and including the quercus jar in their app? Would be grateful if you could shar

Re: @Transactional needed in tapestry-hibernate?

2010-12-11 Thread Howard Lewis Ship
At the very least, I've been thinking of having @CommitAfter determine when there is a prior @CommitAfter method further up the stack, and not commit in that case (letting the outermost @CommitAfter perform the overall commit). On Sat, Dec 11, 2010 at 10:01 AM, Thiago H. de Paula Figueiredo < thia

Re: Adding wiki support ...

2010-12-11 Thread Thiago H. de Paula Figueiredo
On Sat, 11 Dec 2010 16:20:07 -0200, Gunnar Eketrapp wrote: I need the wiki functionality to be "embedded" in my site. What about using some Java package that renders some wiki format (such as Markdown, reStructuredText, etc) into HTML? -- Thiago H. de Paula Figueiredo Independent Java,

Re: Adding wiki support ...

2010-12-11 Thread Gunnar Eketrapp
I need the wiki functionality to be "embedded" in my site. 2010/12/11 Kalle Korhonen > What kind of support are you envisioning? For stability, it's often > better to run wikis in a separate instance. > > Kalle > > > On Sat, Dec 11, 2010 at 12:05 AM, Gunnar Eketrapp > wrote: > > This may be ou

Re: @Transactional needed in tapestry-hibernate?

2010-12-11 Thread Thiago H. de Paula Figueiredo
On Sat, 11 Dec 2010 15:12:25 -0200, Christian Köberl wrote: Currently, there is only the @CommitAfter annotation in tapestry-hibernate. This is good for simple use cases but not sufficient for complex cases. Agreed. Therefore Spring introduced @Transactional, would this also make sense

@Transactional needed in tapestry-hibernate?

2010-12-11 Thread Christian Köberl
Currently, there is only the @CommitAfter annotation in tapestry-hibernate. This is good for simple use cases but not sufficient for complex cases. Imagine two services OrderService and CustomerService both storing the corresponding entities. Use case 1: Store a new customer without an order

Re: T5.2 Need Advice on JDBC and Transaction Mgmt

2010-12-11 Thread Josh Canfield
For most cases using tapestry-hibernate should be sufficient. Have you looked at that? http://tapestry.apache.org/current/tapestry-hibernate/userguide.html Are you doing something that would make this not sufficient? On Sat, Dec 11, 2010 at 2:36 AM, Yohan Yudanara wrote: > Hi.. > > Tapestry 5.2

Re: Adding wiki support ...

2010-12-11 Thread Kalle Korhonen
What kind of support are you envisioning? For stability, it's often better to run wikis in a separate instance. Kalle On Sat, Dec 11, 2010 at 12:05 AM, Gunnar Eketrapp wrote: > This may be out of scope for mailing list but I would like to add wiki > support to the users of my web application. >

Re: T5.2 Need Advice on JDBC and Transaction Mgmt

2010-12-11 Thread Christian Köberl
I would stick with Spring for transaction handling, since there's a lot of knowledge and tricks in the Spring transaction management and a lot you could do wrong. We have our own implementation of Spring @Transactional in Tapestry but we're now switching to a hybrid version using the Spring Platf

[ANN] Spock 0.5 released

2010-12-11 Thread Peter Niederwieser
Dear Tapestry community, I'm happy to announce that version 0.5 of Spock, the testing and specification framework for Java and Groovy apps, has been released. This release brings major new features like deep integration with Hamcrest (http://code.google.com/p/hamcrest/) and dynamic reordering of

Re: Ajax custom exception handled does not work in tapestry 5.2.4

2010-12-11 Thread Dimitris Zenios
i consider this as an exception (!response.getStatus() || !response.request.success()) .In my case i have a timer which every 5 seconds does an ajax request.What i want to do is when for example the server is closed and some one is on that website with ajax i should catch that error and stop th

T5.2 Need Advice on JDBC and Transaction Mgmt

2010-12-11 Thread Yohan Yudanara
Hi.. Tapestry 5.2 live service reload is awesome. However, I'm used to accessing database using Spring JdbcTemplate (using spring bean with @Repository annotation) and manage transaction using spring declarative transaction (in ApplicationContext.xml). I'm considering to use tapestry service inst

Re: T5: t:errors not displaying when form has a zone

2010-12-11 Thread Thiago H. de Paula Figueiredo
On Sat, 11 Dec 2010 05:50:28 -0200, Angelo C. wrote: Hi, Hi! I got a form like this, t:errors got displayed, but if I put a zone in the form, errors are not shown, why? You're not updating the form. If you had a Zone surrounding the Form, the errors would be shown, because it would

Re: T5: Progress indicator and AJAX example?

2010-12-11 Thread françois facon
Hi Taha, Thanks for sharing your code. It make me discover the CaptureResultCallback (new in 5.2). If I understand well your sample, to get progress value the progressBar component raise a server side event called 'update' and get the value from this callback. is it right? 2010/12/11 Taha H

Adding wiki support ...

2010-12-11 Thread Gunnar Eketrapp
This may be out of scope for mailing list but I would like to add wiki support to the users of my web application. I have googled but the wiki engines I have found (xwiki, gwiki, ...) seems not to be targeted to be incuded in my app or I may be to dumb to see how they should. Thanks in advance, G