Re: [T5.3] Bug PageTester

2011-11-28 Thread Josh Canfield
> My current fix is monkey-patch the PageTester class file. Hopefully this > will be fixed in next release of T53. It's unlikely to be fixed unless you file a defect in Jira. :) It's curious that none of the internal tests include a query parameter that would have caught this. Josh On Mon, Nov

Re: Dynamic Disabled fields with binding

2011-11-28 Thread Josh Canfield
Hi George. I answered your base question on a different thread, but for the sake of search engines: I don't think you'll come across a scenario where you need to get the BindingSource and create your own bindings in this way. In general the binding that you want is defined in your TML or via the

[T5.3] Bug PageTester

2011-11-28 Thread Kevin Lin
Hi, I was running a web test using the latest source code from testify on a T5.3 application. And I get the following exception for any tests that contains a request/event: java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1937) at

Re: [T5.3] @ActivationRequestParameter not encoding to be URL friendly

2011-11-28 Thread Josh Canfield
Hehe... You found it, you can file it! ;) I just verified that it's a problem. I highly recommend keeping a copy of the Tapestry source handy though! On Mon, Nov 28, 2011 at 6:28 PM, Kartweel wrote: > Thanks for the reply, should I file a bug report for this or are you > more qualified for doing

Re: [T5.3] @ActivationRequestParameter not encoding to be URL friendly

2011-11-28 Thread Kartweel
Thanks for the reply, should I file a bug report for this or are you more qualified for doing that :) ? Thanks, Ryan On 29/11/2011 10:24 AM, joshcanfield [via Tapestry] wrote: > Looks like a defect, not sure if it's been filed yet. > > ActivationRequestParameterWorker isn't encoding the client

Re: [T5.3] Need a replacement for pageDetached (or a better way to achieving this...)

2011-11-28 Thread Josh Canfield
> But I don't think afterRender will be called unless the ajax response> > contains the form? True. That seems to be what you're asking for. > > I have the following code which I've been using to work around forms > > invalidly persisting data on ajax requests (ie. form is rendered in > the ajax

Re: [T5.3] @ActivationRequestParameter not encoding to be URL friendly

2011-11-28 Thread Josh Canfield
Looks like a defect, not sure if it's been filed yet. ActivationRequestParameterWorker isn't encoding the client value returned by the ValueEncoder. String clientValue = encoder.toClient(value); link.addParameter(parameterName, clientValue); addParameter is documented as not doing the encodin

Re: [T5.3] Need a replacement for pageDetached (or a better way to achieving this...)

2011-11-28 Thread Kartweel
Thanks, I'll give it a try. But I don't think afterRender will be called unless the ajax response contains the form? (ie, the form is rendered...). I think that is why I was using pageDetached because it is always called. What do you think? Thanks, Ryan On 29/11/2011 10:06 AM, joshcanfield

Re: [T5.3] Need a replacement for pageDetached (or a better way to achieving this...)

2011-11-28 Thread Josh Canfield
Hmm... somewhere between nabble and my inbox your sourcecode was stripped. This seems to be a pretty common problem with nabble. I'm not sure that this is addressed in 5.3, or if there is a defect filed yet. But, seems like you could use a mixin? // In your page/component holding the form @Comp

Re: Radio button inside ajaxformloop

2011-11-28 Thread Josh Canfield
Hi! > I'm trying to use a radio component inside a ajaxformloop. My template looks> > like this: Ok, I struggled a bit, and it took a while but I think I can guess what you are trying to do. You are creating an editor for a multiple choice test/questionnaire. You want to the test editor to be ab

Re: T5: dynamically set disabled attribute

2011-11-28 Thread Josh Canfield
There are at least a few reasonable approaches to this problem, different approaches make more sense depending on how you're storing the data. For instance, I can't tell from your description whether you are determining the enable/disable state using business logic about the workflow/role, or if y

Re: Tapestry Laptop Stickers

2011-11-28 Thread Dragan Sahpaski
I would also be interested in ASCII stickers. So if someone is thinking about making the design, you have my support. Cheers, Dragan Sahpaski On Mon, Nov 28, 2011 at 10:38 PM, Jon Williams wrote: > Ok your patch idea is a good idea. > As far as the ASCII fascination let me put this as politely

Re: Tapestry 5 and Mobile

2011-11-28 Thread Barry Books
The latest version of Twitter Bootstrap supports mobile via css. You can have different css media types depending on the resolution of the device. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional comm

Re: Tapestry Laptop Stickers

2011-11-28 Thread Jon Williams
Ok your patch idea is a good idea. As far as the ASCII fascination let me put this as politely as possible. Unicorns are for girls, for 1 obvious reason. ASCII art has heritage, is inherently digital and forces the reader to use their brain. Once they've thought about it they'll stand a better chan

Re: Tapestry Laptop Stickers

2011-11-28 Thread Vangel V. Ajanovski
How about also officially selling them. I might not have the knowledge/interest/time to do patches, but I would definitely buy a t-shirt and sweatshirt if the quality of the fabric / print is good - and especially if there is an embroidery option - and even more if I know that this would help m

Re: Tap 5.3 : Jboss 5.0.1 tmp/vfs-nested.tmp fill up fast

2011-11-28 Thread Howard Lewis Ship
A quick google search turned this up: http://community.jboss.org/message/614729 On Mon, Nov 28, 2011 at 12:34 PM, Shing Hing Man wrote: > My  Tapestry applications have been running in Jboss 5.0.1 without any > problem before I upgraded to Tapestry 5.3. > > I have noticed, in Jboss 5.0.1,  the d

Re: Tapestry 5 and Mobile

2011-11-28 Thread Howard Lewis Ship
One thing I've been thinking about is to have greater control over the "core" stack on a request-by-request basis, so that a single app can skin one way for a desktop browser, and skin another way (with changes to the "core" stack) for a mobile device (i.e., include JS & CSS from jQuery Mobile, for

Re: Tapestry Laptop Stickers

2011-11-28 Thread Howard Lewis Ship
Actually, I'm thinking of creating T-shirts or sweatshirts, and giving them out monthly or quarterly, based on viable patches received. You supply a patch, you go into a pool to receive a shirt. How's that sound? I'm not sure what's up with your fascination with the ascii art logo. On Mon, Nov

Tap 5.3 : Jboss 5.0.1 tmp/vfs-nested.tmp fill up fast

2011-11-28 Thread Shing Hing Man
My  Tapestry applications have been running in Jboss 5.0.1 without any problem before I upgraded to Tapestry 5.3. I have noticed, in Jboss 5.0.1,  the directory    tmp/vfs-nested.tmp grows very quickly (about 20G a day), after I  upgraded to Tapestry 5.3. I wonder if it is caused 

5.3 Bug AjaxFormLoop nested within Zone

2011-11-28 Thread George Christman
When nesting an AjaxFormLoop within a Zone while giving the zone the following parameters update="fade" visible="false", on submit, the value encoder doesn't seem to getting reached resulting in unsaved values. This does seemed to work without issue in version 5.3.0 and prior. After doing some mor

Re: Tapestry Laptop Stickers

2011-11-28 Thread Jon Williams
Howard, you should do a limited run of stickers with the ASCII logo from the build. On Mon, Nov 28, 2011 at 12:07 PM, Howard Lewis Ship wrote: > I still have a backlog of people waiting for T5 Laptop Stickers ... > don't worry, I haven't forgotten you! I hope to get everything > packaged up and

Re: Tapestry 5 and Mobile

2011-11-28 Thread SeleniuM
Also, you can always implement your own Chain of Command builder directly implemented from Tapestry IOC. The thing is to make parameteres width and height of your own web application, and to make a selection when detected what device is approaching your web applications using just variable HTTP_US

Re: [ANNOUNCE] Apache Tapestry 5.3

2011-11-28 Thread Daniel Jue
Congrats Howard! I can't wait to get back into using Tapestry and see all the progress that's been made. On Mon, Nov 28, 2011 at 1:20 PM, Howard Lewis Ship wrote: > Great, so use Maven. The quickstart archetype gives you the option. > > On Mon, Nov 28, 2011 at 10:07 AM, SeleniuM wrote: >> Yes,

Re: [ANNOUNCE] Apache Tapestry 5.3

2011-11-28 Thread Howard Lewis Ship
Great, so use Maven. The quickstart archetype gives you the option. On Mon, Nov 28, 2011 at 10:07 AM, SeleniuM wrote: > Yes, but I don't have plugin for gradle in Netbeans, so I need first to > import an Eclipse project with all gradle dependencies and then apply > project in NetBeans to have the

Re: [ANNOUNCE] Apache Tapestry 5.3

2011-11-28 Thread SeleniuM
Yes, but I don't have plugin for gradle in Netbeans, so I need first to import an Eclipse project with all gradle dependencies and then apply project in NetBeans to have the working project in NetBeans. If I would use Maven, then I will need to write down all dependencies in my web.xml or create si

Tapestry Laptop Stickers

2011-11-28 Thread Howard Lewis Ship
I still have a backlog of people waiting for T5 Laptop Stickers ... don't worry, I haven't forgotten you! I hope to get everything packaged up and mailing this week. -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn

Re: [ANNOUNCE] Apache Tapestry 5.3

2011-11-28 Thread Dragan Sahpaski
Also the archetype offers a pom and a build.gradle file so you can choose your build system. I think since recently hibernate is also built with gradle. No problems using it in a maven project right? The build system really has no direct relationship with tapestry. You can see it as just another ja

Re: [ANNOUNCE] Apache Tapestry 5.3

2011-11-28 Thread Howard Lewis Ship
The 5.3 release was ready last week ... the delay in the announcement is partly to update the tutorial and make it current. Tapestry no longer builds with Maven, but still works with it. Tapestry's quickstart archetype creates a fully-functioning application that uses Maven OR Gradle to build. On

Re: [ANNOUNCE] Apache Tapestry 5.3

2011-11-28 Thread Robert Zeigler
Hm, not sure about your maven objection. You can still use maven with tapestry 5.3. Tapestry is built with gradle, but it plays just fine with maven. And, in fact, the quickstart maven archetype was updated and improved in 5.3. So maven is still relevant to tapestry. (Even if gradle is the bette

Re: [ANNOUNCE] Apache Tapestry 5.3

2011-11-28 Thread SeleniuM
Great job you have made! :) But I have an objection for not keeping up-to-date tapestry tutorial page. I mean no one is doing anything about that Q. , not to mention that the support for Maven in tap5.3 doesn't exist ,but all the tutorial stuff is about Maven, not gradle. Do you think, if it would

[ANNOUNCE] Apache Tapestry 5.3

2011-11-28 Thread Howard Lewis Ship
Apache Tapestry 5.3 is now available for immediate download: http://tapestry.apache.org/2011/11/23/announcing-tapestry-53.html Tapestry 5.3 represents nearly a year of effort, and includes over 270 bug fixes, improvements, and other changes. Full details are in the release notes, but here's a few

Re: Help with actionlink and hibernate

2011-11-28 Thread SeleniuM
Solved, thanks. :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Help-with-actionlink-and-hibernate-tp5027394p5029446.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscri

Re: CSS Stacks

2011-11-28 Thread Howard Lewis Ship
One other issue is the dynamic addition of new CSS files to the page via Ajax; 5.3 includes some control over where the injected CSS files go. That becomes even more complex if the CSS can be aggregated the way JavaScript is. On Wed, Nov 9, 2011 at 1:58 AM, Luke Wilson-Mawer wrote: > Hi, > > Are

Re: Tapestry 5 and Mobile

2011-11-28 Thread Lance Java
Igor's template skinning blog entry might help too: http://blog.tapestry5.de/index.php/2011/06/24/template-skinning/ On Monday, 28 November 2011, Peter Stavrinides wrote: > Those are fantastic resources, thank you François! > > > > - Original Message - > From: "François Facon" > To: "Tap

RE: tapestry, hibernate and timeout

2011-11-28 Thread Wechsung, Wulf
Hi Bdm, I guess you should use connection pooling but if you want to manage your own connection I would do it like this: Manage the JDBC connection as thread with per-request scope. I think the Connection is already an interface so you can do the following in APP Module: @Scope(ScopeConsta

Re: fault found

2011-11-28 Thread csckid
Found out the problem :D All my downloads are done by Internet download manager. My problem was actually similar to what 'Lance' said. Browser sends one request and 2 more from IDM(thats makes it three times). Anyways, I have disabled IDM and went with normal downloader that came out with the brow

tapestry, hibernate and timeout

2011-11-28 Thread bdm
Hello, I have got a problem with a small crud app developed with tapestry. This is a low traffic application so it can be unused for more than one day before we need it again. The problem is we got a timeout with the jdbc connection and we need to restart the application container (Glassfish) to ha

Re: tapestry, hibernate and timeout

2011-11-28 Thread bdm
Thanks for your reply ! I already set a c3p0 connection pool but I missed the idleTestPeriod param ! I try that and get back tomorrow ! See you! -- View this message in context: http://tapestry.1045711.n5.nabble.com/tapestry-hibernate-and-timeout-tp5028844p5029204.html Sent from the Tapestry -

Re: tapestry, hibernate and timeout

2011-11-28 Thread nquirynen
I think this is a MySQL / Hibernate issue, not Tapestry. I think you need to configure your connection pooling. Example: http://community.jboss.org/wiki/HowToConfigureTheC3P0ConnectionPool http://community.jboss.org/wiki/HowToConfigureTheC3P0ConnectionPool -- View this message in context: http

Re: T5: dynamically set disabled attribute

2011-11-28 Thread George Christman
Thanks Thiago for your response. I have a single form with a very large workflow, throughout the workflow individual fields are either disabled or enabled depending on user role and workflow state. I have all the field id's stored in the db, so on render I was hoping to get my list of my disabled/e

Re: T5: dynamically set disabled attribute

2011-11-28 Thread Thiago H. de Paula Figueiredo
On Mon, 28 Nov 2011 12:08:10 -0200, George Christman wrote: Hi Thiago, Hi! thanks for the response. How would you recommend controlling the individual fields dynamically? The same way I've explained before. Put this logic inside isDisabled(). By the way, what do you mean by dynamicall

Re: fault found

2011-11-28 Thread Peter Stavrinides
One thing you can check is that your submit method references the correct form id, using catch all event methods could receive bubbled up events from other forms: i.e.: onSuccess() should become onSuccessFrom() Kind regards, Peter - Original Message - From: "Christian Riedel" To: "Ta

Re: T5: dynamically set disabled attribute

2011-11-28 Thread George Christman
Hi Thiago, thanks for the response. How would you recommend controlling the individual fields dynamically? I tried something like this, public boolean isDisabled() { if (componentResources.getEmbeddedComponent("unitPrice").getComponentResources().isRendering()) { return fals

Re: fault found

2011-11-28 Thread Christian Riedel
then it is caused by some portion of the code that you did not show. I tried it out and the onSubmit method is only called once, as expected. jsp won't help you here. Am 28.11.2011 um 12:18 schrieb csckid: > I tried with smaller project that has only hibernate and spring integrated > and no cu

Re: fault found

2011-11-28 Thread Lance Java
This sounds like an IE bug I encountered years ago. Are you using an old version of IE (5 perhaps). From memory, IE sends two requests for the PDF and then Acrobat sends one itself. My solution at the time (I don't have access to the code) involved ignoring two of the requests and only returning c

Re: Moving to T5.3 / Problem with textfield and translate ...

2011-11-28 Thread Gunnar Eketrapp
Hi Thiago! I created JIRA issue https://issues.apache.org/jira/browse/TAP5-1762 for the missing component params. /Gunnar 2011/11/28 Thiago H. de Paula Figueiredo > On Sun, 27 Nov 2011 14:26:49 -0200, Gunnar Eketrapp < > gunnar.eketr...@gmail.com> wrote: > > When looking at the 5.3 component

Re: Help with actionlink and hibernate

2011-11-28 Thread Thiago H. de Paula Figueiredo
On Sun, 27 Nov 2011 21:14:15 -0200, SeleniuM wrote: I am doing some project, and I got stuck on very irritating issue that is " I want to make an actionlink, which will process user to another page and retrieve some data from database ( using hibernate for that purpose ). " So far, I hav

Re: Moving to T5.3 / Problem with textfield and translate ...

2011-11-28 Thread Thiago H. de Paula Figueiredo
On Sun, 27 Nov 2011 14:26:49 -0200, Gunnar Eketrapp wrote: When looking at the 5.3 component reference for textfield the component parameters are all gone ... Yep, that's something that needs to be fixed. Documentation JIRA please? ;) -- Thiago H. de Paula Figueiredo Independent Java, Apac

Re: fault found

2011-11-28 Thread csckid
I tried with smaller project that has only hibernate and spring integrated and no custom filters. It didn't work still. Is there any other way to download the file beside this procedure? Can I link it through jsp? If that is possible can you please show me the way. -- View this message in contex

Re: Tapestry 5 and Mobile

2011-11-28 Thread Peter Stavrinides
Those are fantastic resources, thank you François! - Original Message - From: "François Facon" To: "Tapestry users" Sent: Monday, 28 November, 2011 12:33:45 PM Subject: Re: Tapestry 5 and Mobile Hi Peter, I sure you will lile this link : http://mobiforge.com/starting/story/mobile-web-

Re: Tapestry 5 and Mobile

2011-11-28 Thread François Facon
Hi Peter, I sure you will lile this link : http://mobiforge.com/starting/story/mobile-web-content-adaptation-techniques If I have to convert an existing site into a multi device one, I would try the responsive design approach.lot of example can be view at http://mediaqueri.es/ My advise would be to

Tapestry 5 and Mobile

2011-11-28 Thread Peter Stavrinides
Hi everyone, This question is for the mobile gurus out there using Tapestry. We are about to take the plunge and convert our Tapestry web applications into mobile compatible web applications, but I don't quite know where to begin, so I would love to know how others are handling mobile with Tape