Re: Q: Java Script Check All The CheckBox?

2011-01-18 Thread dwi ardi irawan
I agree this is my solution. thnx to josh canfield who give me the idea. Instead of using document.getElementsByTagName("INPUT") then check whether is checkbox or not, I prefer to use this method. the same idea as josh canfield but I try to get the form element as the root of iteration, not t

Re: Combine scripts doesn't work in 5.2.4?

2011-01-18 Thread Angelo C.
can we decorate the JavascriptStack to include non T5 default js into the single core.js? if yes, a simple sample code to get us started? thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Combine-scripts-doesn-t-work-in-5-2-4-tp3343378p3347367.html Sent from the Tape

Re: Embedded tomcat for testing

2011-01-18 Thread Josh Canfield
whoops, typo > in your testng.xml you can now add a tapestry.servlet-container parameter and choose between => "tomcat6" <= or "jetty7" On Tue, Jan 18, 2011 at 9:56 PM, Josh Canfield wrote: > Just submitted a Tomcat6Runner which is a drop-in replacement for the > Jetty7Runner. > in your testng.xm

Re: Embedded tomcat for testing

2011-01-18 Thread Josh Canfield
Just submitted a Tomcat6Runner which is a drop-in replacement for the Jetty7Runner. in your testng.xml you can now add a tapestry.servlet-container parameter and choose between "tapestry6" or "jetty7"

Re: Q: Java Script Check All The CheckBox?

2011-01-18 Thread Taha Hafeez
Yes, this is an option as are others and these can be used AFAIK. The thread there shows a way to use it even if javascript is disabled regards Taha On Wed, Jan 19, 2011 at 8:51 AM, penyihirkecil wrote: > is there any simple way to do that without having a new component. > I mean it just feel w

Re: Q: Java Script Check All The CheckBox?

2011-01-18 Thread Taha Hafeez
There are always other ways to select checkboxes like classnames, element location (even xpaths are supported by some js libraries) Having id is not always necessary regards Taha On Tue, Jan 18, 2011 at 11:45 PM, dwi ardi irawan wrote: > Okay, it might be old question, but I've searched throug

Re: Q: Java Script Check All The CheckBox?

2011-01-18 Thread Josh Canfield
Please describe a simple solution. On Tue, Jan 18, 2011 at 7:21 PM, penyihirkecil wrote: > is there any simple way to do that without having a new component. > I mean it just feel weird. > this simple things should be solve using simple solution. > > the zip file from this thread: > > > http://ta

Re: Q: Java Script Check All The CheckBox?

2011-01-18 Thread penyihirkecil
is there any simple way to do that without having a new component. I mean it just feel weird. this simple things should be solve using simple solution. the zip file from this thread: http://tapestry.1045711.n5.nabble.com/Disabled-button-events-are-queued-and-executed-td3341300.html it's weird, g

Re: Combine scripts doesn't work in 5.2.4?

2011-01-18 Thread Howard Lewis Ship
On Tue, Jan 18, 2011 at 10:38 AM, Donny Nadolny wrote: > Thanks for the clarification. > > I like this change overall (it can help pageload times because the larger > libraries will always be cached by the client after the first pageload), but > I think it's missing part of the benefit of how the

Tapx repository

2011-01-18 Thread Howard Lewis Ship
I've just spent some time working wiht Gradle to get the Tapx modules to build and deploy. They have a new home: http://howardlewisship.com/snapshot-repository Note that tapx-kaptcha depends on a library available here: http://howardlewisship.com/repository ... so you should update your pom.x

Re: Embedded tomcat for testing

2011-01-18 Thread Josh Canfield
Is anyone using arquillian? http://docs.jboss.org/arquillian/reference/latest/en-US/html/containers.html It seems to promise easy testing across containers. It's an alpha project, but if we could get the highest priority containers working for the base Tapestry unit tests that seems like a big wi

Re: ValidationException constructor arguments

2011-01-18 Thread Nicolas Barrera
Just returning void after recording various errors.., worked fine... thanks Nicolás.- On Tue, Jan 18, 2011 at 4:12 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 18 Jan 2011 16:43:24 -0200, Nicolas Barrera > wrote: > > So I thought.., if I can't have a return value

Re: Q: Java Script Check All The CheckBox?

2011-01-18 Thread Shing Hing Man
Hi, I have a written a component and a mixin to form a 'checkbox group'. If you are interested, there is online demo at http://lombok.demon.co.uk/tapestry5Demo/test/components/checkboxgroupdemo Source code download instruction is on http://lombok.demon.co.uk/tapestry5Demo/ Shing --- On We

Re: ValidationException constructor arguments

2011-01-18 Thread Thiago H. de Paula Figueiredo
On Tue, 18 Jan 2011 16:43:24 -0200, Nicolas Barrera wrote: So I thought.., if I can't have a return value and the only way to inform that form is invalid is through raising a ValidationException... then I thought it was not possible to inform many errors in one response... while it's construc

Re: ValidationException constructor arguments

2011-01-18 Thread Nicolas Barrera
Thiago..., thanks for answering, that's what i was doing, I implemented an event handler like this: public void onValidateFormFromExample() throws ValidationException { > I think I misread some information at this page: http://tapestry.apache.org/input-validation.html > Now, what if you want

Re: Combine scripts doesn't work in 5.2.4?

2011-01-18 Thread Donny Nadolny
Thanks for the clarification. I like this change overall (it can help pageload times because the larger libraries will always be cached by the client after the first pageload), but I think it's missing part of the benefit of how the feature was in 5.1. I have a few libraries which I include on eve

Re: Q: Java Script Check All The CheckBox?

2011-01-18 Thread Josh Canfield
http://tapestry.1045711.n5.nabble.com/Disabled-button-events-are-queued-and-executed-td3341300.html Here is a thread from yesterday that includes an attachment with a working example. Josh On Tue, Jan 18, 2011 at 10:15 AM, dwi ardi irawan wrote: > Okay, it might be old question, but I've search

Q: Java Script Check All The CheckBox?

2011-01-18 Thread dwi ardi irawan
Okay, it might be old question, but I've searched through mailing list archive, but haven't found the solution yet. I have 2 checkbox. and I want to create a checkbox master(when I click this checkbox, all the checkbox will be checked). I can't use the common js algorithm here, cos I can't get the

Re: Combine scripts doesn't work in 5.2.4?

2011-01-18 Thread Howard Lewis Ship
Not a bug; a change in behavior. http://tapestry.apache.org/release-notes-52.html https://issues.apache.org/jira/browse/TAP5-769 ... but we should update the release notes to make a larger not of this. On Tue, Jan 18, 2011 at 9:53 AM, LLTYK wrote: > > The builtin tapestry stuff seems to comb

Re: Combine scripts doesn't work in 5.2.4?

2011-01-18 Thread LLTYK
The builtin tapestry stuff seems to combine itself into core.js if it's included as a stack. Maybe it works if you create a javascriptstack instead? Still a bug though. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Combine-scripts-doesn-t-work-in-5-2-4-tp5929290p593650

Re: Grid onAction Problem IEM6

2011-01-18 Thread LLTYK
If you wanted a servlet request you'd do "return new HttpServletRequestFilter()". And then you'd change the the return type, and the request and response type (HttpServletResponse, etc). I don't think you need to do that anyways. Just log Request.getPath(). Usually this ends up being a url() ref

Re: ValidationException constructor arguments

2011-01-18 Thread Thiago H. de Paula Figueiredo
On Tue, 18 Jan 2011 14:21:31 -0200, Nicolas Barrera wrote: Hi, Hi! why do you think ValidationException only accepts a String as it's constructor argument? Methods handling the validate event from form fields components are meant to validate a single field independent of other fields.

Re: Grid onAction Problem IEM6

2011-01-18 Thread Taha Hafeez
You have "assets/5.0.18/tapestry/spacer.gif" also hanging around in your html. You may remove and try. (May be IEMobile seeing a possible link is trying to retrieve the content... just may be:) ) regards Taha On Tue, Jan 18, 2011 at 9:28 PM, Tooobi wrote: > > thank you for your suggestion. the

ValidationException constructor arguments

2011-01-18 Thread Nicolas Barrera
Hi, I wanted to ask as a design question... why do you think ValidationException only accepts a String as it's constructor argument? Right now I 'm working on a form's validation, validation of a field value depends upon other field's value so I thought the only way to do that would be on server

Re: Grid onAction Problem IEM6

2011-01-18 Thread Tooobi
thank you for your suggestion. the strange thing is that the error occurs only on the IEmobile. on every other browser there is no error. I tested tha application on opera 10, safari mobile and skyfire mobile. therefore I think the chance to retrieve the error with the described plugin for firefox

Re: Grid onAction Problem IEM6

2011-01-18 Thread Josh Canfield
Does your app return different content for the mobile browser? If so you can get a plugin for FireFox to change the user agent header. On Jan 18, 2011 6:35 AM, "Tooobi" wrote: > > This is the html source code, which was produced by Firefox. Please remember, > the problem occurs only on the Interne

Re: Grid onAction Problem IEM6

2011-01-18 Thread Tooobi
This is the html source code, which was produced by Firefox. Please remember, the problem occurs only on the Internet Explorer Mobile on the HTC HD2 and I'm not able to post this source code. http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>http://www.w3.org/1999/xhtml"; xmlns:p="tapestry:para

Re: t5: 5.2.4 and IE8

2011-01-18 Thread Angelo C.
works! you saved my day, thanks for sharing! -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-5-2-4-and-IE8-tp3345797p3346241.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To

Re: Grid onAction Problem IEM6

2011-01-18 Thread Taha Hafeez
Can you share the output page (html that is rendered) regards Taha On Tue, Jan 18, 2011 at 7:51 PM, Tooobi wrote: > > Thank you very much for the fast response. > > I think the asset:context:pics/black.gif is not the problem because if I > uncomment them the error still occur. > That was my

Re: Grid onAction Problem IEM6

2011-01-18 Thread Tooobi
Thank you very much for the fast response. I think the asset:context:pics/black.gif is not the problem because if I uncomment them the error still occur. Do you know what is going wrong with the ${toLoginAreaImage} and ${logoutImage}? At the moment I have no idea. I posted the corresponding co

Re: Suspending and restoring a form in T5

2011-01-18 Thread Benny Law
Thanks Norman for your ideas. I will explore them and see what makes the most sense in my case. I was hoping that there would be something in Tapestry that I could utilize to make it easier, but I guess not. Regards, Benny On Mon, Jan 17, 2011 at 4:27 PM, Norman Franke wrote: > You could use Ja

Re: Suspending and restoring a form in T5

2011-01-18 Thread Benny Law
Thanks Norman for your ideas. I will explore them and see what makes the most sense in my case. I was hoping that there would be something in Tapestry that I could utilize to make it easier, but I guess not. Regards, Benny On Mon, Jan 17, 2011 at 4:27 PM, Norman Franke wrote: > You could use Ja

Re: Grid onAction Problem IEM6

2011-01-18 Thread Tooobi
thank you very much for helping me ;) http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; xmlns:p="tapestry:parameter">

Re: Grid onAction Problem IEM6

2011-01-18 Thread Taha Hafeez
I have read more lines reading this mail :) so no issues I will be more than happy to help (if am able to )!! regards Taha On Tue, Jan 18, 2011 at 7:01 PM, Tooobi wrote: > > do you mean the entire code of the tml file? It is approximately 200 line > of > codes. > -- > View this message in cont

Re: Grid onAction Problem IEM6

2011-01-18 Thread Tooobi
do you mean the entire code of the tml file? It is approximately 200 line of codes. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-onAction-Problem-IEM6-tp3339635p3346166.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Grid onAction Problem IEM6

2011-01-18 Thread Taha Hafeez
Can you share the page ?? regards Taha On Tue, Jan 18, 2011 at 6:53 PM, Tooobi wrote: > > I used the RequestGlobals.getHTTPServletRequest(), but I think it isn't the > right request. Any suggestions? > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Grid-onAction-Pro

Re: Grid onAction Problem IEM6

2011-01-18 Thread Tooobi
I used the RequestGlobals.getHTTPServletRequest(), but I think it isn't the right request. Any suggestions? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Grid-onAction-Problem-IEM6-tp3339635p3346151.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: t5: 5.2.4 and IE8

2011-01-18 Thread Donny Nadolny
Hi Angelo, I had this exact problem - jQuery and Prototype don't work out in IE8 (I vaguely remember reading something about IE8 trying to be smart and load/run scripts in parallel, which cause problems). Sometimes prototype code would run, but $ would be referencing jQuery even though I had calle

Re: Grid onAction Problem IEM6

2011-01-18 Thread Tooobi
I have implemented your code so that I'm now able to log all requests. So, could you tell me which parameter of the request is interessting to figure out my problem, please? Is it proper to use the Request request typ for analysing the HTTPRequest for my problem? -- View this message in context:

Re: t5: 5.2.4 and IE8

2011-01-18 Thread Angelo C.
Thanks for the code. It seems to me, T5.2.4 app with jQuery will fail in IE 8, from what I found out in Google, running jQuery's noConflict() ahead of Prototype might solve the problem, but with this issue: https://issues.apache.org/jira/browse/TAP5-1416 , jQuery is not combined into the single js

Re: t5: 5.2.4 and IE8

2011-01-18 Thread Joost Schouten (ml)
I did test it now and it doesn't work. The code should have been: @AfterRender private void afterRender(MarkupWriter writer) throws JaxenException { Element foundIEMode = TapestryXPath.xpath("html/head/meta[@http-equiv='X-UA-Compatible']").selectSingleElement(writer.getDocument());

Re: t5: 5.2.4 and IE8

2011-01-18 Thread Joost Schouten (ml)
Haven't tested it but something like this will probably do the trick: @AfterRender private void afterRender(MarkupWriter writer) { Element foundIEMode = writer.getDocument().find("html/head/meta[@http-equiv='X-UA-Compatible']"); Element head = writer.getDocument().find("htm

Re: T5: url rewriting

2011-01-18 Thread Alejandro Scandroli
Hi Angelo LinkTransformer is ready to use. Here is more info: http://blog.tapestry5.de/index.php/2010/09/06/new-url-rewriting-api/ I followed that post to write: http://svn.tynamo.codehaus.org/browse/tynamo/trunk/tapestry-routing/src/main/java/org/tynamo/routing/services/RouterLinkTransformer.java

Re: Disabled button events are queued and executed

2011-01-18 Thread Stephan Windmüller
On 18.01.2011 01:21, Josh Canfield wrote: > Hey, thanks for the concise example to reproduce the problem! I'm glad that I was able to help tracking down this issue. > The brute force workaround is copy the code from tapestry.js and apply > it to your affected page (after your form so that everyt

t5: 5.2.4 and IE8

2011-01-18 Thread Angelo C.
Hi, after upgrading, my app has problem with IE8 all the time, I need to put this as the first entry in the head section: but T5.2.4 always has scripts inserted first: < script src="/tapestry5-hotel-booking/assets/1.2-SNAPSHOT/stack/en/core.js"... any approach to force that meta tag to be t