Re: How to get a service whithout using @Inject

2012-05-25 Thread Lance Java
Whilst tapestry will happily work side-by-side with other servlets, you can get tapestry to instantiate a servlet and delegate to it. Here is my recent attempt at integrating DWR with tapestry before I abandoned the idea. https://github.com/uklance/tapestry-push/blob/master/src/main/java/com/lazan

Re: [OT] J2EE write to filesystem & JEE6

2012-05-25 Thread Chris Mylonas
Very cool - thanks for giving me the reason when it's okay to bend these rules re: Assets not needing transactional business stuff On 25/05/2012, at 9:43 PM, Geoff Callender wrote: > Arno is spot on. The spec is being motherly, but in practice if you're > uploading assets, as opposed to saving

Re: Building object through wizard.

2012-05-25 Thread George Christman
Hi Thiago, when making updates to an existing object, at the start of the wizard I'm initially populating it with a criteria query, then on submit to page2 from page1, I populate the SessionState and rebuild my object in page 2 with the SessionState rather than the criteria query. I'm assuming that

Re: Building object through wizard.

2012-05-25 Thread George Christman
Thanks Guys, for your input. All very helpful. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Building-object-through-wizard-tp5713417p5713420.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Building object through wizard.

2012-05-25 Thread Thiago H. de Paula Figueiredo
On Fri, 25 May 2012 11:02:42 -0300, George Christman wrote: miserably with that. "Maybe I'm missing something". So my question is therea alternative solution such as SessionState or Persist where I could store the object in memory and then later save? Why not SessionState? Unless you nee

Re: Building object through wizard.

2012-05-25 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi George, using some sort of conversation (i.e. HTTP session) state is one way to go - you would either detach the entities or use some sort of specialized Transfer Objects. Another way to go is to put the wizard into a single Tapestry page and use

Re: Building object through wizard.

2012-05-25 Thread Chris Cureau
Hi George! What I am doing for this is following the Jumpstart example...I store all of my entities in the Conversation, and on the last page of the Wizard I write them to the database. It's worked out very well so far. Check out http://jumpstart.doublenegative.com.au/jumpstart/examples/wizard/u

Building object through wizard.

2012-05-25 Thread George Christman
Hello, I'm building a small little wizard that consist of a few pages. The wizard allows for updates as well. I'm a hibernate user with a fairly complex data structure consisting of many joined entities. I do not want to save/update the data until the last page of the wizard which has caused me to

Re: Tapestry Transactions

2012-05-25 Thread bhorvat
So you put your transactional annotation on the DAO, right? The CommitAfter does that for me as well, what I need is to put it on some layer above that has multiple contats to the couple of different DAOs. One that saves one part of the transaction, other that saves another but the should fail or s

Re: How to get a service whithout using @Inject

2012-05-25 Thread Thiago H. de Paula Figueiredo
On Fri, 25 May 2012 07:18:32 -0300, Thim Anneessens wrote: Hello, Hi! I need to use a Tapestry service outside of the Tapestry scope (in another servlet of the same web app) and would like to know what is the cleanest way to achieve this. The Tapestry-created Registry instance is sto

Re: [OT] J2EE write to filesystem & JEE6

2012-05-25 Thread Geoff Callender
Arno is spot on. The spec is being motherly, but in practice if you're uploading assets, as opposed to saving something that must be considered part of a transaction, then there's no harm done in writing to the file system. Everybody does it! Here's an example: http://jumpstart.doublen

T5.3 customizing BeanEditForm's cancel button label

2012-05-25 Thread Immutability
Guys, this might be a silly question but I'm trying to figure out how to customize the text of the Cancel button within a BeanEditForm. I believe the "cancel" boolean attribute was introduced in T5.2 but unlike "submitLabel" there's no "cancelLabel" property to override the default text. This also

How to get a service whithout using @Inject

2012-05-25 Thread Thim Anneessens
Hello, I need to use a Tapestry service outside of the Tapestry scope (in another servlet of the same web app) and would like to know what is the cleanest way to achieve this. Thanks, Thim. - To unsubscribe, e-mail: users-un

@Inject vs @InjectResource in 5.3

2012-05-25 Thread Arming, Sebastian
Hi I tried to @Inject a Logger into a service (a tapestry-resteasy resource if that matters) and got an exception: oejs.ServletHandler:/intern/ java.lang.RuntimeException: Exception constructing service 'ResteasyRequestFilter': Error building service proxy for service 'Application' (at org.tyna

Re: Tapestry Transactions

2012-05-25 Thread Steve Eynon
Our dependencies are configured via Ivy: And yes, you need to use the Spring filter in your web.xml because your transactional services will be Spring services - configured in the usual Spring way via the application-context.xml. Example DAO: import org.springframewor

Re: Component cannot be cast to Page?

2012-05-25 Thread Lance Java
Tapestry does some byte code manipulation on component classes. Net result is that the Login page instance is loaded by a different classloader than the Login class that is referenced by your AuthenticationFilter. This means that the two classes are not equal which causes the ClassCastException. O

Component cannot be cast to Page?

2012-05-25 Thread sub
Hi, I have an AuthenticationFilter Class with the following code snippet: private boolean dispatchedToLoginPage(String pageName) throws IOException { Component page = componentSource.getPage(pageName); if (loginPage.equalsIgnoreCase(pageName)) {

Re: Tapestry Transactions

2012-05-25 Thread bhorvat
Hi Steve, Thanks for posting. Can I ask you to help a bit more :) I have tried adding to pom tapestry-spring but it didn't resolve everything. I was under the impression that tapestry-spring includes everything spring related that is needed. The missing dependencies are related to hibernate impo

Re: [OT] J2EE write to filesystem & JEE6

2012-05-25 Thread Chris Mylonas
626 pages of spec... and you reply with section number and some copy and paste. I am grateful Arno, thank you! On 25/05/2012, at 5:45 PM, Arno Haase wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > JEE application servers typically do not actually prevent you from > accessing the fi

Re: [OT] J2EE write to filesystem & JEE6

2012-05-25 Thread Arno Haase
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 JEE application servers typically do not actually prevent you from accessing the file system, and the spec does not require them to. So if it works with your specific app server / jee stack, you are home free. The spec prohibits accessing the file sys