Re: Tapestry 5.2.5 and jboss6

2011-05-05 Thread Adam Zimowski
We've had EJB's running on a separate JVM (in fact, separate physcial server) for years, with no performance problems. In fact, scalability wise, it's been to our advantage. With unit tests, EJBs are as testable as anything. In fact, I don't see a point in hosting EJBs locally on the same JVM as th

Re: Encrypting a url

2011-05-05 Thread Thiago H. de Paula Figueiredo
On Thu, 05 May 2011 22:43:38 -0300, Taha Hafeez wrote: Hi Thiago! Hi, Taha! I did the exact same thing(great people think alike!! :)) but it lead to recursion. The trace is below. A a workaround is to instantiate ComponentEventLinkEncoder(Impl) yourself to avoid the recursive calls. I

Re: Encrypting a url

2011-05-05 Thread Taha Hafeez
Hi Thiago! I did the exact same thing(great people think alike!! :)) but it lead to recursion. The trace is below. [ERROR] TapestryModule.RequestExceptionHandler Processing of request failed with uncaught exception: java.lang.StackOverflowError java.lang.StackOverflowError at sun.nio.cs.StreamEnc

Re: Encrypting a url

2011-05-05 Thread Thiago H. de Paula Figueiredo
On Thu, 05 May 2011 20:46:32 -0300, Taha Hafeez wrote: Hi Hi, Taha! I want to encrypt urls using jasypt. I tried using LinkTransformer api but that would force me to do the conversion from request to PageRenderRequestParameters after decryption and from PageRenderRequestParameters to re

Encrypting a url

2011-05-05 Thread Taha Hafeez
Hi I want to encrypt urls using jasypt. I tried using LinkTransformer api but that would force me to do the conversion from request to PageRenderRequestParameters after decryption and from PageRenderRequestParameters to request before encryption. What am I missing ? regards Taha

Re: Suggestion on quickstart

2011-05-05 Thread Bob Harner
> Maybe we can add a note Actually, the "note" is already there -- as a footnote at the bottom of the page, listing the shorter command. On Thu, May 5, 2011 at 6:46 AM, Josh Kamau wrote: > Thanks Bob. Thats the one i was looking for. I couldnt find it in the > Hungman example. > > On Thu, May 5,

Re: Tapestry 5.2.5 and jboss6

2011-05-05 Thread Thiago H. de Paula Figueiredo
On Thu, 05 May 2011 18:34:18 -0300, Jabbar wrote: Hello Adam, We've always used JBoss, it's the company standard. I could perhaps use Glassfish or Jetty to host the application. The application works perfectly using the run jetty run eclipse plugin. What's the error message when you try t

Re: Tapestry 5.2.5 and jboss6

2011-05-05 Thread Jabbar
Hello Adam, We've always used JBoss, it's the company standard. I could perhaps use Glassfish or Jetty to host the application. The application works perfectly using the run jetty run eclipse plugin. On 5 May 2011 21:34, Adam Zimowski wrote: > I'm not sure if our setup will be of any help but..

Re : Tapestry 5.2.5 and jboss6

2011-05-05 Thread Hoang-Vu PHUNG
Hi Adam, IMHO, I would think that if the web server is running in the same JVM as the EJB container, the performance could be drastically improved: no need for serialization, net work problem etc... Also for testing purpose, if everything is in-process, then testing is really a pleasure. We

Re: Tapestry 5.2.5 and jboss6

2011-05-05 Thread Lenny Primak
I was unable to do this and switched to glassfish. That was easy On May 5, 2011, at 3:30 PM, Jabbar wrote: > Hello all, > Has anybody got tapestry 5.2.5 to work inside jboss 6? I've found various > mailing list messages for getting tapestery 5 to work with jboss 5.0.1, but > nothing conclusive

Re: Tapestry 5.2.5 and jboss6

2011-05-05 Thread Adam Zimowski
I'm not sure if our setup will be of any help but... We use JBoss 6 with Tapestry 5.2.5, but indirectly. What is your purpose for needing JBoss to power Tapestry? If it's for EJBs, we have a separate EJB server running our EJBs, and Jetty running Tapestry. We have an EJB module for Tapestry which

Tapestry 5.2.5 and jboss6

2011-05-05 Thread Jabbar
Hello all, Has anybody got tapestry 5.2.5 to work inside jboss 6? I've found various mailing list messages for getting tapestery 5 to work with jboss 5.0.1, but nothing conclusive for Jboss 6.0 Can anybody help or point me in the right direction? -- Thanks A Jabbar Azam

Re: Injecting spring beans in tapestry services?

2011-05-05 Thread LLTYK
Well the real problem was me trying to use the service to early during application startup. A plain @Inject private SomeDAO someDAO; worked after I moved my code to contributeRegistryStartup. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Injecting-spring-beans-in

Re: Injecting spring beans in tapestry services?

2011-05-05 Thread LLTYK
Why does it work in pages anyways, if they're not exposed as ioc services without compatibility mode? -- View this message in context: http://tapestry-users.832.n2.nabble.com/Injecting-spring-beans-in-tapestry-services-tp6334659p6334823.html Sent from the Tapestry Users mailing list archive at Na

Re: Injecting spring beans in tapestry services?

2011-05-05 Thread LLTYK
public SomeService(SomeDAO someDAO) { this.someDAO = someDAO; //nope } Still getting "No service implements the interface". Thiago, that would turn off injecting tapestry services into spring beans. I'm gonna hold out for a bit. -- View this message in context: http://tapestry-users.832.

Re: Injecting spring beans in tapestry services?

2011-05-05 Thread Jonathan Barker
Your SomeService should have a constructor that takes your SomeDAO as a parameter. You shouldn't even need to use @Inject. public class SomeClass{ private final SomeDAO dao; public SomeClass(SomeDao dao){ this.dao=dao; } } Then using bind() should take care of the injection for you.

Re: Injecting spring beans in tapestry services?

2011-05-05 Thread Thiago H. de Paula Figueiredo
On Thu, 05 May 2011 12:40:51 -0300, LLTYK wrote: So how do I inject spring beans in services? Just use the Tapestry 5.0 compatibility mode. Chech the tapestry-spring documentation. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,

Injecting spring beans in tapestry services?

2011-05-05 Thread LLTYK
So I have a DAO, with an interface and impl, and injecting it works fine in a page: public class SomePage { @Inject private SomeDAO someDAO; } But then I have some tapestry service: public class SomeService { @Inject private SomeDAO someDAO; //nope @Inject @Autowired private SomeDA

Re: Java based spring configuration

2011-05-05 Thread Thiago H. de Paula Figueiredo
On Thu, 05 May 2011 09:43:18 -0300, Magnus Kvalheim wrote: Hi Thiago - thanks for your answer, Hi! You're welcome! Think an implementation similar to tapestry-spring would the better alternative of the two. Agreed. It's not completely clear to me what the difference is between an Obje

Re: Java based spring configuration

2011-05-05 Thread Magnus Kvalheim
Hi Thiago - thanks for your answer, See comments below... On Wed, May 4, 2011 at 6:06 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 04 May 2011 12:51:05 -0300, Magnus Kvalheim > wrote: > > >> How would I make that play with Tapestry? >> *=Server=* >> * Use a JEE 6 Web

Re: Getting "page cannot be displayed" error in Tapestry 4 on submitting a form with 100+ dropdowns and text field components

2011-05-05 Thread nazarhussain_s
Hi , I have changed the property-name in the to property . Now if i try to deploy the application , I am getting the following error. add a description org.apache.tapestry.util.xml.DocumentParseException: Unable to read context:/WEB -INF/Genesis.application: A

Re: How can I use dashes instead of underscores in url's for page names?

2011-05-05 Thread Thiago H. de Paula Figueiredo
On Wed, 04 May 2011 23:48:15 -0300, marcanti wrote: Hello, Hi! I would like to use "-" instead of "_" in my tapestry page url's, how can I do that? I know that Java classes cannot have "-" in the name, but it would be easy for Tapestry to replace them with "_". Use the LinkTransformer

Re: Getting "page cannot be displayed" error in Tapestry 4 on submitting a form with 100+ dropdowns and text field components

2011-05-05 Thread Taha Hafeez
May be this will help. The error says 'property' attribute missing and you have specified 'property-name' in your configure tag not 'property' regards Taha On Thu, May 5, 2011 at 4:28 PM, nazarhussain_s wrote: > Hi, > I am using WebLogic and I sparsely know what to set in that. Any > sug

Re: Getting "page cannot be displayed" error in Tapestry 4 on submitting a form with 100+ dropdowns and text field components

2011-05-05 Thread nazarhussain_s
Hi, I am using WebLogic and I sparsely know what to set in that. Any suggestions on how to do that . Regards Nazar -- View this message in context: http://tapestry.1045711.n5.nabble.com/Getting-page-cannot-be-displayed-error-in-Tapestry-4-on-submitting-a-form-with-100-dropdowns-and-texs-t

Re: Suggestion on quickstart

2011-05-05 Thread Josh Kamau
Thanks Bob. Thats the one i was looking for. I couldnt find it in the Hungman example. On Thu, May 5, 2011 at 1:25 PM, Bob Harner wrote: > There is indeed this shorter version: > >mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org > > as listed in the tutorial at > http://t

Re: Getting "page cannot be displayed" error in Tapestry 4 on submitting a form with 100+ dropdowns and text field components

2011-05-05 Thread LLTYK
I don't have that in my .application and I have lots of huge forms. I did have to adjust a jetty setting (3124208 ). -- View this message in context: http://tapestry-users.832.n2.nabble.com/Getting-page-cannot-be-displayed-error-in-Tapestry-4-on-submitting-a-form-with-100-dropdowns-and-texs-tp633

Re: Suggestion on quickstart

2011-05-05 Thread Bob Harner
There is indeed this shorter version: mvn archetype:generate -DarchetypeCatalog=http://tapestry.apache.org as listed in the tutorial at http://tapestry.apache.org/creating-the-skeleton-application.html. Maybe we can add a note on the http://tapestry.apache.org/getting-started.html page about

Getting "page cannot be displayed" error in Tapestry 4 on submitting a form with 100+ dropdowns and text field components

2011-05-05 Thread nazarhussain_s
Hi, Currently I am using Tapestry 4 and am facing an issue wherein i have a form with 100+ drop downs , text fields and checkboxes. On submitting the form , i am getting error - page cannot be displayed . For that I worked out a turn around by adding the following lines in my .application

Re: Creating direct download links to files

2011-05-05 Thread olip
thanks LLTYK again for your reply. I was really stupid and feel a bit embarrased now. I solved it but it had nothing to do with wget, that was fine. Problem was for security reason I stored the URL of the inital calling request from the external webservice in a sessionstate variable and checked