Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread aibkwik
Dude, The tutorial has quite a few quirks that really should be updated. I got loads of help from folks on this forum in order to get it working. I thought I'd give you the benefit of my pain. Here is my final code for each module along with a snapshot of my project tree. Enjoy. http://ta

Need help on Guessing Game Tutorial - compile error

2010-05-12 Thread aibkwik
I can't get the last step of the tutorial to work. Note in the screenshot below that I have an error in Guess.java The error I get when I "mouse over" the 'X' is: http://old.nabble.com/file/p28543121/Fullscreen-13.jpg Note the "InjectPage" in the screenshot below. I read where another person

Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread Christian Riedel
The menu item in the import dialogue is also in the old version available. Just click import and type maven into the filter and you'll see it (no need for the new version). You can also create the whole tapestry-quickstart project with eclipse and that plugin. Maybe a little tutorial in the wiki

Re: ExtJS

2010-05-12 Thread Howard Lewis Ship
Using Tapestry & ExtJS together is not a huge problem EXCEPT both ExtJS & Prototype put a function named defer() on the Function javascript object and they are incompatible. So ... I manually edit the ExtJS files and rename defer() to xdefer(). Ugly! Other than that, it's just been wrappers aro

Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread Tim Koop
Uninstalling is the hard part. It looks like "Eclipse Platform" is dependant on "Maven Integration", and I don't want to uninstall the whole Eclipse Platform. Well, hang on. Let me try it anyway... OK. I just uninstalled it, and then I installed version 0.10. And everything still works.

Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread Thiago H. de Paula Figueiredo
On Wed, 12 May 2010 18:46:27 -0300, Tim Koop wrote: I already have m2eclipse 0.9.8 installed, and it looks like installing 0.10 is a big pain. 0.10 is the recommended version and its installation was easy. Just make sure you uninstall the previous version before installing the new one. -

Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread Igor Drobiazko
Tim, you can also try these one: http://code.google.com/p/q4e/ Works fine for me. On Wed, May 12, 2010 at 11:46 PM, Tim Koop wrote: > Thanks for the idea Christian. > > I already have m2eclipse 0.9.8 installed, and it looks like installing 0.10 > is a big pain. > > I can't find an import for

Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread Tim Koop
I would be happy to install m2eclipse if it wasn't so painful to do. But I tried this and it seems to work. Thanks a lot Matheus. Tim Koop t...@timkoop.com www.timkoop.com On 12/05/2010 4:35 PM, Matheus Eduardo Machado Moreira wrote: Lik

Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread Tim Koop
Thanks for the idea Christian. I already have m2eclipse 0.9.8 installed, and it looks like installing 0.10 is a big pain. I can't find an import for "existing maven projects". Maybe that only came out with 0.10. Tim Koop t...@timkoop.com www.timkoop.com

Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread Matheus Eduardo Machado Moreira
Like Christian sugested, it is a good idea to install m2eclipse. If you don't install de plugin (not recommended), define M2_REPO as a classpath variable in Eclipse (preferences: Java > Build Path > Classpath Variables). Its value must be the path to the root dir of your local maven reposito

Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread Tim Koop
No, I hadn't done that. Perhaps it should be documented somewhere. But I just tried it now. Eclipse has imported the project, but it is now complaining about a lot of "Unbound classpath variable: 'M2_REPO/..." Tim Koop t...@timkoop.com www.timkoop.com

Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread Christian Riedel
hi, install http://m2eclipse.sonatype.org/ and then try to import "existing maven projects" instead. cheers christian Am 12.05.2010 um 23:03 schrieb Tim Koop: > I'm having a problem with the Tapestry tutorial on this page: > http://tapestry.apache.org/tapestry5.1/tutorial1/first.html > > I

Re: Tutorial Import Project Into Eclipse

2010-05-12 Thread Matheus Eduardo Machado Moreira
Hi, Tim. Did you execute mvn eclipse:eclipse on the command line before trying to import the project? Atenciosamente, Matheus Eduardo Machado Moreira matheus@gmail.com "Violence is the last refuge of the incompetent." Salvor Hardin (The Foundation, Isaac Asimov) 2010/5/12

Tutorial Import Project Into Eclipse

2010-05-12 Thread Tim Koop
I'm having a problem with the Tapestry tutorial on this page: http://tapestry.apache.org/tapestry5.1/tutorial1/first.html I have created a project with Maven (however, I used the instructions on this page: http://java.dzone.com/articles/using-maven-create-new because the one in the above tutor

Re: Noob problem with Guessing Game tutorial

2010-05-12 Thread aibkwik
Thanks, so much, Steve. I'm off and running. Maybe I'll drop you a note some time to let you know how I'm getting along. More likely, you will see me show up on here with another "issue". LOL. Thanks again - Best. Phil Steve Eynon wrote: > > There's no initial /org/apache/tapestry5/pag

Re: Noob problem with Guessing Game tutorial

2010-05-12 Thread aibkwik
Thanks, so much, Steve. I'm off and running. Maybe I'll drop you a note some time to let you know how I'm getting along. More likely, you will see me show up on here with another "issue". LOL. Thanks again - Best. Phil Steve Eynon wrote: > > There's no initial /org/apache/tapestry5/pag

Re: Noob problem with Guessing Game tutorial

2010-05-12 Thread Steve Eynon
There's no initial /org/apache/tapestry5/pages resources directory because the (old fashioned) alternative was to place the .tml files in the webapp (aka context) directory. That's where they appear in the tutorial. However that technique is no longer recommended and the .tml files should be place

Re: Noob problem with Guessing Game tutorial

2010-05-12 Thread aibkwik
Hey Steve, Very interesting. I started over from scratch. Still did not work, however, when I copy (manually) my .tml files down into ../target/classes/org/apache/tapestry5/tutorial/pages along with my .class files, the damn thing worked right away. I don't even have a /src/main/resources/or

[T5.1] Page Annotation to Render Absolute URIs

2010-05-12 Thread Steve Eynon
Just another idea I had. Let me know if you foresee any problems with it... If you have your web application set up so T5 renders your 404 pages, more than likely you've noticed the relative URI links on your error page are incorrect. Say you have these pages /page1, /error404 and /viewMember and

Re: Module contributionMethods not invoked from testNG ?

2010-05-12 Thread Steve Eynon
Hi, This probably won't help much (as it's not much more than a "It works on my machine" comment) but I'm using Testify with TestNG. Testify extends the TestModule, adding some more nifty features. I make use of multiple modules (both my own and supplied) and have never had to specify or add any m

Re: comet implementation issue

2010-05-12 Thread rajesh sukumaran
Thanks Thiago, The markup returned is very simple. I'll try out the dispatcher approach. BTW you are right I am using Tapestry 5.1.0.5. regards, Rajesh - Original Message From: Thiago H. de Paula Figueiredo To: Tapestry users Sent: Wed, 12 May, 2010 5:59:12 PM Subject: Re: comet impl

RE: TSS add custom voter & securing non-tapestry methods

2010-05-12 Thread Nicolas Gillet - MARKET-IP
Thank you Jonathan. Capital letters don't change anything, unfortunately. Just like you, I came to the conclusion that the few lines I added in XML to enable the security on methods are actually initiating another security context and it implicitly creates what it needs to work. I'll try to cust

Re: TSS add custom voter & securing non-tapestry methods

2010-05-12 Thread Jonathan Barker
There's nothing jumping out at me, so here are a couple of things to try: Change the capitalization on access-decision-manager-ref="accessDecisionManager" to "AccessDecisionManager" and see if it finds your bean. It looks like in the absence of a specific reference, it's building a default config

Re: Noob problem with Guessing Game tutorial

2010-05-12 Thread aibkwik
Steve, You're the best. I'll give it another go from the top with your directions below and let you know... Thanks! Phil Steve Eynon-2 wrote: > > Hi Phil, > > Now you've made me do the tutorial... (D'Oh) and yeah, it's not quite > as accurate as I expect it once was. But fundamentally, t

Module contributionMethods not invoked from testNG ?

2010-05-12 Thread MauricioF
Hi In my test module has some binder calls and some contributions methods public static void bind(ServiceBinder binder) { // Make bind() calls on the binder object to define most IoC services. // Use service builder methods (example below) when the im

Re: comet implementation issue

2010-05-12 Thread Thiago H. de Paula Figueiredo
On Wed, 12 May 2010 00:19:20 -0300, rajesh sukumaran wrote: Hi, Hi! I implemented reverse ajax component that uses long polling technique. Basically what I did was to use JQuery's jQuery.getJSON(...) method to make an ajax call using an action event URL of the component. The action ev

Re: Ajax event hooks T5 style

2010-05-12 Thread Thiago H. de Paula Figueiredo
On Wed, 12 May 2010 00:40:17 -0300, Alex Kotchnev wrote: Thiago - you usually have words of wisdom - would you share your thoughts, how would you approach this ? Hi, Alex! I would adapt the JavaScript code in http://tinybits.blogspot.com/2009/05/update-zone-on-any-client-side-event.html

Re: How to use a grid with some "null" cells

2010-05-12 Thread Thiago H. de Paula Figueiredo
On Wed, 12 May 2010 07:09:18 -0300, Claude Dubois wrote: Is it possible to use this syntax in other cases? For example adding a "else"? No. Create a getXXX() method in your corresponding class and do this logic there. Tapestry's philosophy is to not have logic in templates. I tried to

Re: problems with client validation Internet Explorer 8 - no background images

2010-05-12 Thread Kiss Izolda
Hi Santiago, I have applied the patch for Tapestry 5.1.0.5 that changes the bundled version of Prototype to version 1.6.1, which is compatible with Internet Explorer 8. http://tapestry.formos.com/nightly/tapx/ http://tapestry.formos.com/nightly/tapx/ It has basically solved the problem, but the

Re: How to use a grid with some "null" cells

2010-05-12 Thread Claude Dubois
Thank you, it works very well ! Is it possible to use this syntax in other cases? For example adding a "else"? I tried to add ":" like this : ${user.shop?.shoCode:"No Data"} and it doesn't work. Does someone know a way to do that? Thanks ! Pierce T. Wetter III-3 wrote: > > > On May 11, 2

Re: [t5] Contribute multiple translators for one type no longer supported

2010-05-12 Thread Joost Schouten (ml)
Thanks, After updating my javadoc the TranslatorAlternatesSource was quickly found. So for completeness sake, the following did the trick for me: public static void contributeTranslatorAlternatesSource(MappedConfigurationTranslator> configuration) { Translator bdTranslator = new B

RE: TSS add custom voter & securing non-tapestry methods

2010-05-12 Thread Nicolas Gillet - MARKET-IP
Hello Jonathan, Here's the web.xml (there are some stuff for DWR too): # WEB.XML # http://java.sun.com/xml/ns/javaee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee