Re: Using readonly textarea inside a Form component

2010-07-14 Thread Stephan Windmüller
On 12.07.2010 15:43, Christophe Cordenier wrote: What if you use a plain html textarea with readonly attribute instead of a div ? This works, thank you! - Stephan - To unsubscribe, e-mail:

RE: Conditional class for body

2010-07-14 Thread Jim O'Callaghan
Thiago, Pablo, Thanks for the replies. I'll try one of those methods. Regards, Jim. -Original Message- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: 13 July 2010 17:11 To: Tapestry users Subject: Re: Conditional class for body On Tue, 13 Jul 2010 13:01:35

Upgrading from Tapestry5.0.18 to 5.1.0.5

2010-07-14 Thread Sha Aith
Hi, I'm trying to upgrade from Tapestry 5.0.18 to 5.1.0.5. My projects works fine with 5.0.18, but when I use 5.1.0.5, I get the following exception. Please let me know how I can fix this problem. 2010-07-14 14:11:29.498] async-delivery-thread-1

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Paul Stanton
thanks josh, and geoff. Josh Canfield wrote: i have tried both of these approaches but neither cancel the event on the a... if yours works what is the fundamental difference? when you click on the text only one click event is created and it bubbles up through the dom. So it first is

Re: Upgrading from Tapestry5.0.18 to 5.1.0.5

2010-07-14 Thread Juan E. Maya
Hi, It seems to me like you are missing the tapestry-spring integration jar or you have the old one still somewhere. On Wed, Jul 14, 2010 at 11:36 AM, Sha Aith shashank.aith...@nuware.com wrote: Hi, I'm trying to upgrade from Tapestry 5.0.18 to 5.1.0.5. My projects works fine with 5.0.18,

Re: Upgrading from Tapestry5.0.18 to 5.1.0.5

2010-07-14 Thread Sha Aith
I do have the Tapestry-Spring integration package. I'm running this in an OSGi environment. Juan E. Maya wrote: Hi, It seems to me like you are missing the tapestry-spring integration jar or you have the old one still somewhere. On Wed, Jul 14, 2010 at 11:36 AM, Sha Aith

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Chris Mylonas
Geoff that's a great example of some more advanced layout/theme possibilities. Sorry to hijack the thread somewhat, Any chance of adding to jumpstart a Date added and/or Last modified section to each example? Cheers Chris On 14/07/2010, at 7:01 AM, Geoff Callender wrote: Can't stop to

Binding component parameter of type byte[]

2010-07-14 Thread Borut Bolčina
Hi, I am having problem binding a parameter of type byte[]. It is not bound for some reason while imageTitle works as expected. The page template looks like: t:dynaimage t:image=imageBytes t:title=imageTitle/ DynaImage is my custom component which displays image from byte[], or so it should :-)

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Geoff Callender
Chris, Hmmm, I'm always tossing up between keeping the examples simple and making them complete. Your request is pretty compelling so I'll consider it for the next release. In the meantime, here's what I use in simple entities... private java.sql.Timestamp createdAt; private

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Chris Mylonas
Thanks for the reply Geoff, Safe to ignore my request/suggestion :) I meant moreso when the example exercise/tutorial was added to jumpstart. E.g. you've added more AJAX examples in the past couple of months, but the onActivate/onPassivate example would be a couple of years old. and I

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Erick Erickson
Making the enough-but-not-overwhelming decision is always a tough one. What *I* want is an example that shows only and exactly what I want to see at the moment I'm looking. Oh, and I want it to come up first on whatever vaguely related terms I put in a Google search. I almost forgot; I also want

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Geoff Callender
Ah, I should have realised that's what you meant. Yep, worth considering. Thanks, Geoff On 15/07/2010, at 12:13 AM, Chris Mylonas wrote: Thanks for the reply Geoff, Safe to ignore my request/suggestion :) I meant moreso when the example exercise/tutorial was added to jumpstart. E.g.

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Chris Mylonas
jeez, some people are never pleased are they... ideally, if all the tapestry devs that came before me would have just built a drag and drop tapestry gui builder in html5, geoff wouldn't have had to build and maintain jumpstart /ducks ***Thanks for all that came before me on this list***

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Thiago H. de Paula Figueiredo
On Wed, 14 Jul 2010 11:13:07 -0300, Chris Mylonas ch...@mrvoip.com.au wrote: .java @Property private Date addedToJumpstart = new Date(2010-07-14); Never initialize fields like you've done in the above snippet because of the page pooling. Use the activate or begin render event to

Re: Upgrading from Tapestry5.0.18 to 5.1.0.5

2010-07-14 Thread Howard Lewis Ship
There are upgrade notes concerning tapestry-string, please check on the web site. On Wed, Jul 14, 2010 at 4:56 AM, Sha Aith shashank.aith...@nuware.com wrote: I do have the Tapestry-Spring integration package. I'm running this in an OSGi environment. Juan E. Maya wrote: Hi, It seems to

Re: Request to a unlocalized URL using the Locale stored on session

2010-07-14 Thread Adam Zimowski
I found this thread as a solution to my problem of switching locale. I can switch locale just fine and setting PersistentLocale works until I strip the URL from language code. Juan's example below is exactly what I need, however, because I'm returning to Tapestry after two years of inactivity, I

Re: Request to a unlocalized URL using the Locale stored on session

2010-07-14 Thread Thiago H. de Paula Figueiredo
On Wed, 14 Jul 2010 13:36:50 -0300, Adam Zimowski zimowsk...@gmail.com wrote: @Persist private String language; You should use @SessionState instead and then use the ApplicationStateManager to read or set it. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and

Ubuntu 10.04 - Error invoking service builder

2010-07-14 Thread Pablo dos Reis
I used the Ubuntu 9.10 and now I upgraded to 10.04. Then after that I have had the error below. The application use T5.2.0-SNAPSHOOT and was created with archtype. The strange is that I have other application with the same AppModule, but using T5.1.0.5 and it works well. [INFO] Preparing

Re: Expansion for Javascript

2010-07-14 Thread Michael Gentry
Assuming your example is in your TML file, try: var name='t:outputraw value=name/'; mrg On Wed, Jul 14, 2010 at 1:27 PM, Tim Koop t...@timkoop.com wrote:  Hi everyone. I've looked through the documentation, but I can't seem to find an answer for what I'm looking for. I want to put a

Re: Expansion for Javascript

2010-07-14 Thread Michael Gentry
Actually, that would have an issue if your name had a single quote in it. You might have to use a hidden form value (hopefully you have a form?). There is a bug in the Tapestry hidden component, though, so you have to do some tricks. Something like ... t:form t:id=inputs t:hidden t:id=name

Re: Expansion for Javascript

2010-07-14 Thread Tim Koop
Cool! It works! I still had to do the escaping of the quotation marks myself, but at least the html encoding doesn't need to be undone first. (Now if only there was outputjsstring, outputurl, outputtextarea, outputcsv, and outputcustom) Tim Koop t...@timkoop.com

Re: Expansion for Javascript

2010-07-14 Thread Thiago H. de Paula Figueiredo
On Wed, 14 Jul 2010 14:27:07 -0300, Tim Koop t...@timkoop.com wrote: Hi everyone. I've looked through the documentation, but I can't seem to find an answer for what I'm looking for. I want to put a String into Javascript as a variable, like this: script var name = ${name}; /script The

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Josh Canfield
@Property private Date addedToJumpstart = new Date(2010-07-14); Never initialize fields like you've done in the above snippet because of the page pooling. Use the activate or begin render event to initialize fields. In general that's sound advice, but if you look at the use case here he's

Re: Expansion for Javascript

2010-07-14 Thread Inge Solvoll
Actually, it's quite super easy to create those yourself :) Seriously, very very easy. Have a look at OutputRaw.java in the T5 source, and you'll get the idea. And then you might say Yeah, but something like this should be built-in. A lot of things should, but there aren't too many Tapestry

Re: Ubuntu 10.04 - Error invoking service builder

2010-07-14 Thread Thiago H. de Paula Figueiredo
Hi, Pablo! On Wed, 14 Jul 2010 14:30:34 -0300, Pablo dos Reis pablodosr...@gmail.com wrote: I used the Ubuntu 9.10 and now I upgraded to 10.04. Then after that I have had the error below. The application use T5.2.0-SNAPSHOOT and was created with archtype. Caused by:

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Thiago H. de Paula Figueiredo
On Wed, 14 Jul 2010 15:13:06 -0300, Josh Canfield joshcanfi...@gmail.com wrote: @Property private Date addedToJumpstart = new Date(2010-07-14); Never initialize fields like you've done in the above snippet because of the page pooling. Use the activate or begin render event to initialize

Re: Expansion for Javascript

2010-07-14 Thread Josh Canfield
I still had to do the escaping of the quotation marks myself Take a look at JSONObject.quote(String string); On Wed, Jul 14, 2010 at 10:40 AM, Tim Koop t...@timkoop.com wrote:  Cool!  It works! I still had to do the escaping of the quotation marks myself, but at least the html encoding

Re: Expansion for Javascript

2010-07-14 Thread Thiago H. de Paula Figueiredo
On Wed, 14 Jul 2010 15:13:45 -0300, Inge Solvoll inge.tapes...@gmail.com wrote: And then you might say Yeah, but something like this should be built-in. A lot of things should, but there aren't too many Tapestry committers :) Having too many built-in features can be a problem too.

Re: Ubuntu 10.04 - Error invoking service builder

2010-07-14 Thread Pablo dos Reis
HI Thiago, Thank you. I'll do tests in the T5.0.5 for the time being. 2010/7/14 Thiago H. de Paula Figueiredo thiag...@gmail.com Hi, Pablo! On Wed, 14 Jul 2010 14:30:34 -0300, Pablo dos Reis pablodosr...@gmail.com wrote: I used the Ubuntu 9.10 and now I upgraded to 10.04. Then

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Josh Canfield
HA! I guess I've been using joda-time for too long... I've always treated Date as immutable, too bad Java 6 has to be backward compatible with Java 1.1 or the setter methods could have been removed a LONG time ago! but I prefer to give a short advice instead of a longer one informing the

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Thiago H. de Paula Figueiredo
On Wed, 14 Jul 2010 15:39:11 -0300, Josh Canfield joshcanfi...@gmail.com wrote: HA! I guess I've been using joda-time for too long... I've always treated Date as immutable, too bad Java 6 has to be backward compatible with Java 1.1 or the setter methods could have been removed a LONG time

OAuth support in tynamos tapestry-security

2010-07-14 Thread Moritz Gmelin
Hi, I was wondering if there is some kind of support planned to support OAuth authentication with tynamos tapestry-security. I would love to be able to offer RESTful webservices with OAuth authentication with tapestry, tapestry-restful and tapestry-security. Any plans? Pointers? Thanks

Re: OAuth support in tynamos tapestry-security

2010-07-14 Thread Borut Bolčina
That would be awesome. I am using tapestry security in two apps currently. One is a 5.1 and the other T5.2. So far very smooth. I am very pleased. Keep up! Regards, Borut 2010/7/14 Moritz Gmelin moritz.gme...@gmx.de Hi, I was wondering if there is some kind of support planned to support

Re: OAuth support in tynamos tapestry-security

2010-07-14 Thread Kalle Korhonen
I already implemented Oauth2 for my own use, obviously utilizing tapestry-security, not using rest though but I imagine it'd be easy to add on top. The sore point right now is that it's not generalized since there's a few different ways to go about it, depending on whether you need federated user

Re: using a js confirm to cancel an async eventlink

2010-07-14 Thread Chris Mylonas
Thanks Thiago - I've read the follow ups to this from you and Josh, and the nevers are good to know early on. ...because of the page pooling is a good enough reason to make it register. There seems to be a shortage of never do this cheat sheet library in the 21st century :) .java

[Tapestry Central] Everyone out of the Pool! Tapestry goes singleton!

2010-07-14 Thread Howard
Tapestry applications are inherently stateful: during and between requests, information in Tapestry components, value stored in fields, stick around. This is a great thing: it lets you program a web application in a sensible way, using stateful objects full of mutable properties and methods to

Re: [Tapestry Central] Everyone out of the Pool! Tapestry goes singleton!

2010-07-14 Thread Howard Lewis Ship
Read it with formatting: http://tapestryjava.blogspot.com/2010/07/everyone-out-of-pool-tapestry-goes.html On Wed, Jul 14, 2010 at 4:30 PM, Howard hls...@gmail.com wrote: Tapestry applications are inherently stateful: during and between requests, information in Tapestry components, value stored

production html whitespace compression alters rendered markup

2010-07-14 Thread Paul Stanton
Firstly, I'd like to say that tapestry does most things very well and I probably only comment on the things it doesn't do well. Thank you to those who've spent time improving the framework for making my job as a developer more enjoyable. I do have an issue with the production mode Considering

Re: Upgrading from Tapestry5.0.18 to 5.1.0.5

2010-07-14 Thread Sha Aith
Howard, I read through some of the points mentioned in http://tapestry.apache.org/tapestry5.1/tapestry-spring/. I tried the 5.0 Compatibility Mode and also tried retaining the old tapestry-spring version 5.0.18 with the rest of Tapestry 5.1.0.5. By doing this, the original exception I reported

Re: OAuth support in tynamos tapestry-security

2010-07-14 Thread Moritz Gmelin
Every starting point would be helpful! I'm pretty new with REST and OAuth. Though I do have experience with T5 since the very early 5.0.4 days. M. Am 14.07.2010 um 23:44 schrieb Kalle Korhonen: I already implemented Oauth2 for my own use, obviously utilizing tapestry-security, not using rest