Re: Disabled button events are queued and executed

2011-01-17 Thread Howard Lewis Ship
Nice analysis! On Mon, Jan 17, 2011 at 4:21 PM, Josh Canfield wrote: > Hey, thanks for the concise example to reproduce the problem! > > Yes, it's a bug. Tapestry tracks clicks to submit buttons: > $$("INPUT[type=submit]").each(function(element) { > > Image submit inputs have a type of "image", n

Re: Disabled button events are queued and executed

2011-01-17 Thread Stephan Windmüller
On 17.01.2011 17:15, Taha Hafeez wrote: >> The "select all" button works with or without JavaScript. This is >> achieved by this code: > It works without javascript because the select-all button is used as a > simple submit button when javascript is disabled > and so when it is clicked it submits

Re: Can I disable template proessing for a section of my TML file ?

2011-01-17 Thread Gunnar Eketrapp
It's just to include some javascript that includes a < or a >. E.g. ... if (counter > 1) { ... } ... This will be rendered by T5 as .. ... if (counter > 1) { ... } ... .. which is broken. 2011/1/17 Josh Canfield > Putting it in an html comment didn't work? Can you share a snippet t

Re: CSS not applied on zone update in IE7

2011-01-17 Thread Joost Schouten (mailing lists)
Hi, I'm doing some more testing as we speak and I might have been too quick in my assumptions. It might be related to some incorrect formatting in an unrelated area of my page which upsets IE but not the other browsers. I'll post back if I can consistently reproduce the problem. Running a slow VM

Re: Suspending and restoring a form in T5

2011-01-17 Thread Norman Franke
You could use JavaScript to hide the form and use AJAX to put something else there. Or create a new absolutely positioned DIV that covers the entire contents of the form and use AJAX to do whatever. A sort of easy way is to put all your content in a single DIV and just hide that and have an

Re: Upgrade Process from 5.1 to 5.2

2011-01-17 Thread Bob Harner
Thanks, I've added that one too. (These should appear at http://tapestry.apache.org/release-notes-52.html within an hour or two, after the documentation site export occurs.) On Mon, Jan 17, 2011 at 4:13 PM, Donny Nadolny wrote: > There's another one I came across looking through JIRA. > > Copied

Re: Upgrade Process from 5.1 to 5.2

2011-01-17 Thread Donny Nadolny
There's another one I came across looking through JIRA. Copied from https://issues.apache.org/jira/browse/TAP5-1401 In Tapestry 5.1.0.5, you can have code such as: @Component private Form inputs; ... if (inputs.getDefaultTracker().getHasErrors()) ... This fails in 5.2.4 because getDefaultTracke

Re: Upgrade Process from 5.1 to 5.2

2011-01-17 Thread Bob Harner
I took Donny's recommendations from last month as the basis for a new "Breaking Changes" section at the top of the https://cwiki.apache.org/confluence/display/TAPESTRY/Release+Notes+5.2 page. Does anybody know of any other "breaking" changes going from 5.1 to 5.2? On Fri, Dec 17, 2010 at 12:29 PM

Re: CSS not applied on zone update in IE7

2011-01-17 Thread Howard Lewis Ship
It's supposed to just work; the new CSS assets are converted into new tags and IE is supposed to load them. I'm pretty certain this works for FF and I tested, at one time with IE 6, I believe. On Sat, Jan 15, 2011 at 9:59 AM, Joost Schouten (mailing lists) wrote: > Hi, > > When I update a zone w

Re: Grid onAction Problem IEM6

2011-01-17 Thread Josh Canfield
If you want to do it in code then you can use the example of the TimingFilter that is part of the quickstart. Add this to your AppModule class. public RequestFilter buildTimingFilter(final Logger log) { return new RequestFilter() { public boolean service(Request r

Grid and clientId

2011-01-17 Thread Wechsung, Wulf
Hello fellow tapestriants, I'm trying to do a mixin for grids. As usual, the mixin does some javascript which I output in the @AfterRender of the mixin. Naturally, in the javascript I would like to reference the client-side representation of the element that is being "mixed into" (the grid's ta

Re: Grid onAction Problem IEM6

2011-01-17 Thread Tooobi
Sorry, but I'm not sure how to log all HTTP requests. Do you have a tapestry example? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-onAction-Problem-IEM6-tp3339635p3344786.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Grid onAction Problem IEM6

2011-01-17 Thread Taha Hafeez
As already suggested log all HTTP requests. Further, you error suggests that somehow one of your assets' url is mistyped and the resulting url is such that it points to a page with the 'assets' becoming its parameter. The page to which this url is pointing is expecting an integer but as it finds '

Re: Disabled button events are queued and executed

2011-01-17 Thread Taha Hafeez
On Fri, Jan 14, 2011 at 7:28 PM, Stephan Windmüller < stephan.windmuel...@tu-dortmund.de> wrote: > Hi! > > I have a strange behavior with a javascript button here. My page > contains the following: > > - Many items which may be selected > - A "select all" button > - A submit button > > The "select

Re: Can I disable template proessing for a section of my TML file ?

2011-01-17 Thread Josh Canfield
Putting it in an html comment didn't work? Can you share a snippet that is broken? The smallest possible. On Jan 17, 2011 3:34 AM, "Gunnar Eketrapp" wrote: > I encountered this problem again .. > > I.e. am adding javascript dynamically but expresions such as > > foo < bar > > ... gets translated i

Re: Disabled button events are queued and executed

2011-01-17 Thread Thiago H. de Paula Figueiredo
On Mon, 17 Jan 2011 13:37:28 -0200, Stephan Windmüller wrote: On 14.01.2011 15:34, Thiago H. de Paula Figueiredo wrote: The "select all" button works with or without JavaScript. This is achieved by this code: | Have you tried event listeners instead of onclick? Like Prototype's Event.obse

Re: Grid onAction Problem IEM6

2011-01-17 Thread Tooobi
Hey thank you for your response. How can I turn off the redirect after post? Yes, the error occurs after clicking the paging button. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-onAction-Problem-IEM6-tp3339635p3344587.html Sent from the Tapestry - User mailing lis

Re: Disabled button events are queued and executed

2011-01-17 Thread Stephan Windmüller
On 14.01.2011 15:34, Thiago H. de Paula Figueiredo wrote: >> The "select all" button works with or without JavaScript. This is >> achieved by this code: >> | > Have you tried event listeners instead of onclick? Like Prototype's > Event.observe()? Since we do not use much JavaScript in our appl

Re: Embedded tomcat for testing

2011-01-17 Thread Kalle Korhonen
Oh, it's absolutely possible. This article is from 2002: http://onjava.com/pub/a/onjava/2002/04/03/tomcat.html. I swear I had done embedding Tomcat for one of my projects, but for the life of me I can't remember which one and I couldn't find the code :( It's a bit more complicated than with Jetty,

Re: Combine scripts doesn't work in 5.2.4?

2011-01-17 Thread Donny Nadolny
Thanks for testing it out. I've filed an issue for it at https://issues.apache.org/jira/browse/TAP5-1416 On Mon, Jan 17, 2011 at 1:36 AM, Angelo C. wrote: > > I did a testing on the Tapestry-Hotel-Booking demo in the > tapestry.apache.org, added following: > > @ApplicationDefaults >@Contribu

Re: Can I disable template proessing for a section of my TML file ?

2011-01-17 Thread Gunnar Eketrapp
Yea it can be solved but the code that I ported generated javascript inside template code so the easy way was to just do the same in T5 ... 2011/1/17 Luke Wilson > Perhaps you can you engineer it so you use addScript and pass all dynamic > items to a constructor, keeping your JS in a separate f

Re: Can I disable template proessing for a section of my TML file ?

2011-01-17 Thread Luke Wilson
Perhaps you can you engineer it so you use addScript and pass all dynamic items to a constructor, keeping your JS in a separate file. Luke On 17 Jan 2011, at 12:33, Gunnar Eketrapp wrote: > No that didn't work either. > > 2011/1/17 Luke Wilson > >> Does enclosing the JS in a CData section h

Re: Can I disable template proessing for a section of my TML file ?

2011-01-17 Thread Gunnar Eketrapp
No that didn't work either. 2011/1/17 Luke Wilson > Does enclosing the JS in a CData section help? > > http://en.wikipedia.org/wiki/CDATA > > Luke > > On 17 Jan 2011, at 11:40, Gunnar Eketrapp wrote: > > > This ugly hack solved the problem but is far from what we want :-) > > > >if

Re: Can I disable template proessing for a section of my TML file ?

2011-01-17 Thread Luke Wilson
Does enclosing the JS in a CData section help? http://en.wikipedia.org/wiki/CDATA Luke On 17 Jan 2011, at 11:40, Gunnar Eketrapp wrote: > This ugly hack solved the problem but is far from what we want :-) > >if (counter 1) { > > /Gunnar > > 2011/1/17 Gunnar Eketrapp > >> I en

Re: Can I disable template proessing for a section of my TML file ?

2011-01-17 Thread Gunnar Eketrapp
This ugly hack solved the problem but is far from what we want :-) if (counter 1) { /Gunnar 2011/1/17 Gunnar Eketrapp > I encountered this problem again .. > > I.e. am adding javascript dynamically but expresions such as > > foo < bar > > ... gets translated into ... > > foo < bar

Re: Can I disable template proessing for a section of my TML file ?

2011-01-17 Thread Gunnar Eketrapp
I encountered this problem again .. I.e. am adding javascript dynamically but expresions such as foo < bar ... gets translated into ... foo < bar ... and fails to execute ... I tried the hide from parser method as Josh mentioned but T5 was not that easy to fool ... Is there any easy way to t

Re: BeanEditForm and Polymorphism

2011-01-17 Thread Elin
Of course. I started with tapestry some months ago so im not an expert but i will share everything im learning with others through tutorials (hopefully i will end some by the end of this week). The hardest part of tapestry is starting with it. If we all share our knoledge with newbies, it will be

Re: BeanEditForm and Polymorphism

2011-01-17 Thread Werner Keil
Although I am not using T5 beyond that project last year, the resolution sounds useful to many users, and maybe you could even get in touch with Howard & Co. to bake this into the official tutorials for future versions?[?] -- Werner Keil | UOMo Lead | Eclipse Foundation | Agile Coach, Principal

Re: BeanEditForm and Polymorphism

2011-01-17 Thread Elin
Thanks Werner. The problem here was that i wanted a generic method. At first, i dont know what kind of subclasses are avaliable because they are managed by a service so i can add more subclasses just annotating them and i will have more subproducts avaliable without any code changes. Because of th