Re: Rapid turnaround with Tapestry 5 blog post

2009-01-06 Thread Angelo Chen
Hi, I noticed that using Maven Build in IDEA8, there is no option to have 'build on frame deactivation' and 'build web resources only'. how to do this live reloading when template got changed or class modified wit IDEA8? thanks. Angelo bbcooper wrote: Hi folks, I made another post. This

Using OnEvent(activate) to render block

2009-01-06 Thread dsarosi
I'm trying to render a block instead of the page when using an ajax call. This way, I can have a low-bandwidth and a high-bandwith (AJAX enabled site). @Inject @Property private Block _content; @OnEvent(activate) Object activate() { if (req.isXHR()) return _content Object

Re: Using OnEvent(activate) to render block

2009-01-06 Thread Ulrich Stärk
I'm not 100% sure but I think returning a block only works with Zones. In all other cases, the rules as described here http://tapestry.apache.org/tapestry5/guide/pagenav.html apply. Cheers, Uli dsarosi schrieb: I'm trying to render a block instead of the page when using an ajax call. This

Re: Rapid turnaround with Tapestry 5 blog post

2009-01-06 Thread Otho
Hi, just use the maven compile target in a separate run config. 2009/1/6 Angelo Chen angelochen...@yahoo.com.hk Hi, I noticed that using Maven Build in IDEA8, there is no option to have 'build on frame deactivation' and 'build web resources only'. how to do this live reloading when

Re: Is it possible to use Property Files with HTML tags in Tapestry 5.0

2009-01-06 Thread Francois Armand
hemen wrote: It will print the phi this is demo property file.. please refer t:pagelink t:page=aboutHome/t:pagelink/p. --- As whole String with HTML tags HTML parsing is not done In fact, Tapestry escaped the armful characters to avoid any damaging side effects. If you actually

Re: [T5] 5.0.18 Email validator validates 1...@1

2009-01-06 Thread Otho
Thanks, I misread the regexp. then. But for all real email adresses which are not on the local host or network, the hostname should have at least one dot in it, regardless if it's an ip or a host with tld. 2009/1/5 Ulrich Stärk u...@spielviel.de Otho schrieb: It just occured to me that the

Is it possible to use Property Files with HTML tags in Tapestry 5.0

2009-01-06 Thread hemen
I am using example.properties file in which, the following property is using Property1=phi this is demo property file.. please refer t:pagelink t:page=aboutHome/t:pagelink/p In example.tml file when i print it as ${Property1} It will print the phi this is demo property file.. please

Re: [T5] 5.0.18 Email validator validates 1...@1

2009-01-06 Thread Ulrich Stärk
Well, you are free to write your own email validator and replace the existing one in FieldValidatorSource with it. Cheers, Uli Otho schrieb: Thanks, I misread the regexp. then. But for all real email adresses which are not on the local host or network, the hostname should have at least one

Re: Is it possible to use Property Files with HTML tags in Tapestry 5.0

2009-01-06 Thread hemen
Thanks Armand... :jumping: Its working very fine... With : t:outputraw t:value = ${Property1}/ Hemen.. Francois Armand wrote: hemen wrote: It will print the phi this is demo property file.. please refer t:pagelink t:page=aboutHome/t:pagelink/p. --- As

RadioButton Component...

2009-01-06 Thread Gutemberg A. Da Silva
Hi guys, I have a problem with RadioButton Component. I have this class: !-- Class -- public class CheckBoxClass { @Property private final String[] colors = { Blue, Red, Green }; @Property private String color; @Property private String teste; @Property

Re: Rapid turnaround with Tapestry 5 blog post

2009-01-06 Thread Onno Scheffers
In IDEA8 they moved that feature to the Run-settings. Sadly they didn't think it through enough.. I'm using the remote debugger to connect to Jetty only when I need to debug, so I'm not starting Jetty from within IDEA... It pretty much keeps running most of the day because of the live class

[OT] Hot deploy with JBoss

2009-01-06 Thread Lance Java
Hi guys, this is slightly off topic but I know this problem has been solved with tapestry so I'm sure there's some expertise in this forum. I am attempting to add hot deploy functionality to an application which is deployed to JBoss and uses spring mvc (sorry). I was hoping to be able to hot

Re: Rapid turnaround with Tapestry 5 blog post

2009-01-06 Thread Angelo Chen
Hi Otho, Can you give some more details? Thanks. Angelo Otho wrote: Hi, just use the maven compile target in a separate run config. 2009/1/6 Angelo Chen angelochen...@yahoo.com.hk Hi, I noticed that using Maven Build in IDEA8, there is no option to have 'build on frame

[T5] How to show progress bar (or similar) during the delay of ActionLink ?

2009-01-06 Thread CG
Hi all, I have search the mail archive and google to look for this , but no luck , not much info on this. Let me describe the problem first, take Grid as example , when user click page 2 , it may need to wait for 1-3 seconds (if the server response is slow) , but there is no progress bar or

Re: Push event using AJAX from server to client

2009-01-06 Thread Lance Java
DWR provides reverse ajax which will do what you want. See the reverse ajax clock or chat examples in the war which can be downloaded from http://directwebremoting.org/dwr/download Cheers, Lance. 2009/1/5 Peter Stavrinides p.stavrini...@albourne.com Hi everyone, Happy New Year! Has anyone

Re: RadioButton Component...

2009-01-06 Thread Gutemberg A. Da Silva
hi, tried your code, but when submit the form on OnSubmit print in this prompt false or true. I'd like to print the value of Radio and not if it's true or false. Thanks. 2009/1/6 Jayson Pierringer jays...@gemex.com Hello, Try this: input t:type=checkbox value=color1/ Tapestry will

Re: RadioButton Component...

2009-01-06 Thread Tobias Wehrum
Hello, I'm not seeing where you are using the Radio Component? I suggest you take a look at http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Radio.html and combine it with your loop. Hope that helped, Tobias Gutemberg A. Da Silva schrieb: Hi

Re: RadioButton Component...

2009-01-06 Thread Gutemberg A. Da Silva
Ok guys, so -- my Class Code public class CheckBoxClass { @Property private String teste = teste; @Property private final String[] colors = { Blue, Red, Green }; @Property private String color; @Property private boolean color1 = false; public void

Re: RadioButton Component...

2009-01-06 Thread Tobias Wehrum
Hello, while I've never worked with the Radio Component before, I assume from the URL I provided to you that it should look like this: Class: --- [...] @Property private String currentColor; @Property private String chosenColor;

Re: RadioButton Component...

2009-01-06 Thread Jayson Pierringer
I haven't ever seen anything like value=${teste} in the tml either. I think that should just be value=teste. You used the @Property attribute in your java page so tapestry will magically create your getter and setter. Tapestry will then use that getter and setter for the value. For a good

Re: RadioButton Component...

2009-01-06 Thread Tobias Wehrum
Indeed it should. I didn't check all the code I copied. If you use an expansion ${color}, just the value of the property color gets inserted there and Tapestry doesn't has access to the property color. This was the first error reported in this thread. Jayson Pierringer schrieb: I haven't

[OT] Re: T5: encoding issues

2009-01-06 Thread Christoph Jäger
Hi Lutz, thanks for your thoughts. As far as I can see, the encoding in the generated HTML is correct (everything works nicely if the special characters come from some different place than a compiled .java file). Additionally, I found the same behaviour in graphics generated using

RE: Tapestry Upgrade problem

2009-01-06 Thread Mike Wasserman
I've tried a variety of JDKs and the problem happens with all of them. I've tracked it through the code and what it seems to come down to is that sometimes the _components Map in the AbstractComponent class is populated and other times it's null. My guess at this point is that it's some sort

Re: [T5] 5.0.18 Email validator validates 1...@1

2009-01-06 Thread Otho
Yes of course. I saw it only and it striked me as odd, because I used the inbuilt validator for the first time while playing around with some aspects of Tap which I never used before. Most applications will check the email address serverside anyways, for example to exclude certain domains from

Re: [OT] Re: T5: encoding issues

2009-01-06 Thread Kalle Korhonen
Use -Dfile.encoding=utf-8 when starting up Java; you can set it as JVM default properties in Eclipse. Kalle On Tue, Jan 6, 2009 at 11:42 AM, Christoph Jäger christoph.jae...@derwald.at wrote: Hi Lutz, thanks for your thoughts. As far as I can see, the encoding in the generated HTML is

T5's Ajax/Zone implementation has substantial limitations

2009-01-06 Thread Avi Cherry
First off, I want to say that I'm a huge supporter, advocate (and long time user) of Tapestry, particularly T5. Secondly, I'd like to say that I hope this can be the start of a rational discussion about the merits and limitations of the current 'Zone' approach as well as possible ways to

Re: [T5] How to show progress bar (or similar) during the delay of ActionLink ?

2009-01-06 Thread Angelo Chen
what i did is: 1. clear the div containing data 2. show an animated gif 3. start the action link When the response come, it will overwrite the animated gif anyway. the above steps can be made into a mixin so that you can use it easily CG-6 wrote: Hi all, I have search the mail archive

Problem with direct link

2009-01-06 Thread kk4Nabble
Hi all, I am using tapestry 4.1.1 Click here In the above code , mymethod which is a listener method is called when u click on that link which says click here and it takes to new page.. In the method mymethod i have created new object ,also this method calls more methods. But when u refresh