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://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
  
Game Over!
  
  

Game Over

 You guessed the secret number in ${count} guesses!  

  



Here is my project tree...
http://old.nabble.com/file/p28543232/Java%2B-%2Btutorial1_target_classes_org_apache_tapestry5_tutorial_pages_GameOver.tml%2B-%2BEclipse%2B-%2B_Users_phil.mcquitty_Documents_personal_javacode.jpg
 


Tim Koop-3 wrote:
> 
> 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 tutorial didn't work--at least I couldn't get it 
> working)
> 
> But when I try to Import Existing Project Into Workspace, the project 
> made by Maven, Eclipse says "No projects are found to import".  What's 
> the deal?
> 
> Thanks.
> 
> -- 
> Tim Koop
> t...@timkoop.com 
> www.timkoop.com 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tutorial-Import-Project-Into-Eclipse-tp28541099p28543232.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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
had my same problem and they described this as a bug in the tutorial. 
Apparently, this line resolved it for him...

Any help appreciated.

http://old.nabble.com/file/p28543121/Java%2B-%2Btutorial1_src_main_java_org_apache_tapestry5_tutorial_pages_Guess.java%2B-%2BEclipse%2B-%2B_Users_phil.mcquitty_Documents_personal_javacode.jpg
 
-- 
View this message in context: 
http://old.nabble.com/Need-help-on-Guessing-Game-Tutorial---compile-error-tp28543121p28543121.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 would help out...? I could make one 
:)

Am 13.05.2010 um 00:14 schrieb 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.  Except I still can't see a "import maven".  But I 
> don't mind now, because my project is working.
> 
> Thanks everyone for your help.  I appreciate it all.
> 
> 
> Tim Koop
> t...@timkoop.com 
> www.timkoop.com 
> 
> On 12/05/2010 5:00 PM, Thiago H. de Paula Figueiredo wrote:
>> 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.
>> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 around the ExtJS stuff,
pretty much straight-forward. It may be spun out as a standalone
library at some point, but that isn't a priority for me or my client
at this time (maybe after the ship date).

On Wed, May 12, 2010 at 2:47 PM, Jorge Ramirez  wrote:
> Howard,
>
> I am looking into using Tapestry for a new project I have on hand, part of my 
> project involves heavy use of ExtJS.
>
> The only person I have seen which references this on the mailing list is you, 
> do you have an estimate of when you will be able to release this code 
> publicly?
>
> I would hate to reinvent the wheel on this, but if you are going to release 
> this code too far into the future, I may just need to write something from 
> scratch in order to get started.
>
> Thanks for your time,
>
> Jorge
>
>
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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.  Except I still can't see a "import maven".  But 
I don't mind now, because my project is working.


Thanks everyone for your help.  I appreciate it all.


Tim Koop
t...@timkoop.com 
www.timkoop.com 

On 12/05/2010 5:00 PM, Thiago H. de Paula Figueiredo wrote:

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 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.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 "existing maven projects".  Maybe that only came
> out with 0.10.
>
>
>
> Tim Koop
> t...@timkoop.com 
> www.timkoop.com 
>
> On 12/05/2010 4:11 PM, Christian Riedel wrote:
>
>> 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 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 tutorial didn't work--at least I couldn't get it
>>> working)
>>>
>>> But when I try to Import Existing Project Into Workspace, the project
>>> made by Maven, Eclipse says "No projects are found to import".  What's the
>>> deal?
>>>
>>> Thanks.
>>>
>>> --
>>> Tim Koop
>>> t...@timkoop.com
>>> www.timkoop.com
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>>
>>
>


-- 
Best regards,

Igor Drobiazko
http://tapestry5.de/blog


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:

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
repository (eg. $USER_DIR/.m2/repository).

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 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

On 12/05/2010 4:09 PM, Matheus Eduardo Machado Moreira wrote:

 

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 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 tutorial didn't work--at least I couldn't get it
working)

But when I try to Import Existing Project Into Workspace, the project
made
by Maven, Eclipse says "No projects are found to import".  What's the
deal?

Thanks.

--
Tim Koop
t...@timkoop.com
www.timkoop.com



 


   
 
   


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 

On 12/05/2010 4:11 PM, Christian Riedel wrote:

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 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 tutorial didn't work--at least I couldn't get it working)

But when I try to Import Existing Project Into Workspace, the project made by Maven, 
Eclipse says "No projects are found to import".  What's the deal?

Thanks.

--
Tim Koop
t...@timkoop.com
www.timkoop.com
 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org


   


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
repository (eg. $USER_DIR/.m2/repository).

   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 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 
>
> On 12/05/2010 4:09 PM, Matheus Eduardo Machado Moreira wrote:
>
>>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 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 tutorial didn't work--at least I couldn't get it
>>> working)
>>>
>>> But when I try to Import Existing Project Into Workspace, the project
>>> made
>>> by Maven, Eclipse says "No projects are found to import".  What's the
>>> deal?
>>>
>>> Thanks.
>>>
>>> --
>>> Tim Koop
>>> t...@timkoop.com
>>> www.timkoop.com
>>>
>>>
>>>
>>
>>
>


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 

On 12/05/2010 4:09 PM, Matheus Eduardo Machado Moreira wrote:

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 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 tutorial didn't work--at least I couldn't get it
working)

But when I try to Import Existing Project Into Workspace, the project made
by Maven, Eclipse says "No projects are found to import".  What's the deal?

Thanks.

--
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 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 tutorial didn't work--at least I couldn't get it working)
> 
> But when I try to Import Existing Project Into Workspace, the project made by 
> Maven, Eclipse says "No projects are found to import".  What's the deal?
> 
> Thanks.
> 
> -- 
> Tim Koop
> t...@timkoop.com 
> www.timkoop.com 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 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 tutorial didn't work--at least I couldn't get it
> working)
>
> But when I try to Import Existing Project Into Workspace, the project made
> by Maven, Eclipse says "No projects are found to import".  What's the deal?
>
> Thanks.
>
> --
> Tim Koop
> t...@timkoop.com 
> www.timkoop.com 
>


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 tutorial didn't work--at least I couldn't get it 
working)


But when I try to Import Existing Project Into Workspace, the project 
made by Maven, Eclipse says "No projects are found to import".  What's 
the deal?


Thanks.

--
Tim Koop
t...@timkoop.com 
www.timkoop.com 


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/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 placed along side your java files. As to why they don't work
> in the context dir ('cos they should still work there really)... I
> don't know - I've never tried it! :)
> 
> The maven archetype (along with the tutorial) was written a wee while
> ago now and needs updating - which is why the .tml files are in the
> wrong place.
> 
> If you put your .tml files in src/main/java/... (as I saw in your
> screenshot) then you're reliant on eclipse copying them over to
> target/classes/... but if you put them in src/main/resources/... then
> it's maven wot copies them over. And as you're using maven to launch
> jetty, you're better off relying on maven to do the leg work.
> 
> But cool, I'm pleased you're now in a position to start playing around
> with components and T5 in general.
> 
> T5 is an excellent piece of engineering but it is mentioned frequently
> on this list that the documentation is a bit light. That maybe, but
> what I find really goes in T5's favour is the quality of the code and
> the way it's completely modular. Unlike other arbitrary frameworks
> (e.g. in my opinion, Spring) T5 is really well written, avoids
> inheritance where it can, and most answers can be found by a quick
> peek in the code.
> 
> Anyhow, have fun,
> 
> Steve.
> 
> --
> Steve Eynon
> mobie: (+592) 678 4236
> 
> 
> 
> On 12 May 2010 14:16, aibkwik  wrote:
>>
>> 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/org/apache/tapestry5/pages
>> directory.
>>
>> See my working file setup below...
>>
>> http://old.nabble.com/file/p28539377/Java%2B-%2Btutorial1_src_main_webapp_WEB-INF_Index.java%2B-%2BEclipse%2B-%2B_Users_phil.mcquitty_Documents_personal_javacode-1.jpg
>>
>> So I guess the question is, "why do I not get the resources directory?"
>> and
>> why don't my initial .tml files from the mvn:generate command get placed
>> there?
>>
>> 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, the principles
>>> are sound.
>>>
>>> So again, starting from scratch, I generate the archetype.
>>>
>>> For the record, I'm using Maven 2.2.1 (as given by mvn -version) and
>>> by default (i.e. pressing [enter]) it creates the tutorial in the
>>> package : org.apache.tapestry : so we'll go with this.
>>>
>>> Now "org.apache.tapestry" is important, it means all your page code
>>> and your page templates go in to "org.apache.tapestry.pages"
>>>
>>> So your Index.java and Guess.java go in to:
>>>
>>> /src/main/java/org/apache/tapestry/pages
>>>
>>> and Index.tml and Guess.tml go in:
>>>
>>> /src/main/resources/org/apache/tapestry/pages
>>>
>>> The important thing is, that once compiled, all your .class files and
>>> your .tml files end up in the same place. Following our example this
>>> would be:
>>>
>>> /target/classes/org/apache/tapestry/pages
>>>
>>> Note how "org.apache.tapestry.pages" is used throughout.
>>>
>>> I cut'n'paste'ed the java files from the tutorial and they give the
>>> wrong java package of "org.apache.tapestry5.tutorial.pages" but follow
>>> the eclipse hint to change it to "org.apache.tapestry.pages"
>>>
>>> The tutorial .tml files are fine.
>>>
>>> The generated web.xml is fine also, so no need to touch that.
>>>
>>> Despite the tutorial saying otherwise I would stick to using "mvn
>>> jetty:run" for now to prevent further complicating your set up. (In
>>> fact I use nothing else and still get live class re-loading but my
>>> setup is probably a little more advanced.)
>>>
>>> In fact, start using "mvn clean jetty:run" just to make sure no stray
>>> class files are hanging around.
>>>
>>> And that's it - it works on my machine!
>>>
>>> From there it's all about cut'n'pasting bits of code and not whole
>>> pages. And once everything is in the correct directory it should
>>> largely, just work.
>>>
>>> By the way, "org.apache.tapestry" is not a special package, you can
>>> use what ever you want - just make sure everything is the same. i.e.
>>> if use the package "foo.bar.t5" then
>>>
>>> .java files go in:
>>> /src/main/java/foo/bar/t5/pages
>>>
>>> .tml 

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/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 placed along side your java files. As to why they don't work
> in the context dir ('cos they should still work there really)... I
> don't know - I've never tried it! :)
> 
> The maven archetype (along with the tutorial) was written a wee while
> ago now and needs updating - which is why the .tml files are in the
> wrong place.
> 
> If you put your .tml files in src/main/java/... (as I saw in your
> screenshot) then you're reliant on eclipse copying them over to
> target/classes/... but if you put them in src/main/resources/... then
> it's maven wot copies them over. And as you're using maven to launch
> jetty, you're better off relying on maven to do the leg work.
> 
> But cool, I'm pleased you're now in a position to start playing around
> with components and T5 in general.
> 
> T5 is an excellent piece of engineering but it is mentioned frequently
> on this list that the documentation is a bit light. That maybe, but
> what I find really goes in T5's favour is the quality of the code and
> the way it's completely modular. Unlike other arbitrary frameworks
> (e.g. in my opinion, Spring) T5 is really well written, avoids
> inheritance where it can, and most answers can be found by a quick
> peek in the code.
> 
> Anyhow, have fun,
> 
> Steve.
> 
> --
> Steve Eynon
> mobie: (+592) 678 4236
> 
> 
> 
> On 12 May 2010 14:16, aibkwik  wrote:
>>
>> 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/org/apache/tapestry5/pages
>> directory.
>>
>> See my working file setup below...
>>
>> http://old.nabble.com/file/p28539377/Java%2B-%2Btutorial1_src_main_webapp_WEB-INF_Index.java%2B-%2BEclipse%2B-%2B_Users_phil.mcquitty_Documents_personal_javacode-1.jpg
>>
>> So I guess the question is, "why do I not get the resources directory?"
>> and
>> why don't my initial .tml files from the mvn:generate command get placed
>> there?
>>
>> 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, the principles
>>> are sound.
>>>
>>> So again, starting from scratch, I generate the archetype.
>>>
>>> For the record, I'm using Maven 2.2.1 (as given by mvn -version) and
>>> by default (i.e. pressing [enter]) it creates the tutorial in the
>>> package : org.apache.tapestry : so we'll go with this.
>>>
>>> Now "org.apache.tapestry" is important, it means all your page code
>>> and your page templates go in to "org.apache.tapestry.pages"
>>>
>>> So your Index.java and Guess.java go in to:
>>>
>>> /src/main/java/org/apache/tapestry/pages
>>>
>>> and Index.tml and Guess.tml go in:
>>>
>>> /src/main/resources/org/apache/tapestry/pages
>>>
>>> The important thing is, that once compiled, all your .class files and
>>> your .tml files end up in the same place. Following our example this
>>> would be:
>>>
>>> /target/classes/org/apache/tapestry/pages
>>>
>>> Note how "org.apache.tapestry.pages" is used throughout.
>>>
>>> I cut'n'paste'ed the java files from the tutorial and they give the
>>> wrong java package of "org.apache.tapestry5.tutorial.pages" but follow
>>> the eclipse hint to change it to "org.apache.tapestry.pages"
>>>
>>> The tutorial .tml files are fine.
>>>
>>> The generated web.xml is fine also, so no need to touch that.
>>>
>>> Despite the tutorial saying otherwise I would stick to using "mvn
>>> jetty:run" for now to prevent further complicating your set up. (In
>>> fact I use nothing else and still get live class re-loading but my
>>> setup is probably a little more advanced.)
>>>
>>> In fact, start using "mvn clean jetty:run" just to make sure no stray
>>> class files are hanging around.
>>>
>>> And that's it - it works on my machine!
>>>
>>> From there it's all about cut'n'pasting bits of code and not whole
>>> pages. And once everything is in the correct directory it should
>>> largely, just work.
>>>
>>> By the way, "org.apache.tapestry" is not a special package, you can
>>> use what ever you want - just make sure everything is the same. i.e.
>>> if use the package "foo.bar.t5" then
>>>
>>> .java files go in:
>>> /src/main/java/foo/bar/t5/pages
>>>
>>> .tml 

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 placed along side your java files. As to why they don't work
in the context dir ('cos they should still work there really)... I
don't know - I've never tried it! :)

The maven archetype (along with the tutorial) was written a wee while
ago now and needs updating - which is why the .tml files are in the
wrong place.

If you put your .tml files in src/main/java/... (as I saw in your
screenshot) then you're reliant on eclipse copying them over to
target/classes/... but if you put them in src/main/resources/... then
it's maven wot copies them over. And as you're using maven to launch
jetty, you're better off relying on maven to do the leg work.

But cool, I'm pleased you're now in a position to start playing around
with components and T5 in general.

T5 is an excellent piece of engineering but it is mentioned frequently
on this list that the documentation is a bit light. That maybe, but
what I find really goes in T5's favour is the quality of the code and
the way it's completely modular. Unlike other arbitrary frameworks
(e.g. in my opinion, Spring) T5 is really well written, avoids
inheritance where it can, and most answers can be found by a quick
peek in the code.

Anyhow, have fun,

Steve.

--
Steve Eynon
mobie: (+592) 678 4236



On 12 May 2010 14:16, aibkwik  wrote:
>
> 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/org/apache/tapestry5/pages
> directory.
>
> See my working file setup below...
>
> http://old.nabble.com/file/p28539377/Java%2B-%2Btutorial1_src_main_webapp_WEB-INF_Index.java%2B-%2BEclipse%2B-%2B_Users_phil.mcquitty_Documents_personal_javacode-1.jpg
>
> So I guess the question is, "why do I not get the resources directory?" and
> why don't my initial .tml files from the mvn:generate command get placed
> there?
>
> 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, the principles
>> are sound.
>>
>> So again, starting from scratch, I generate the archetype.
>>
>> For the record, I'm using Maven 2.2.1 (as given by mvn -version) and
>> by default (i.e. pressing [enter]) it creates the tutorial in the
>> package : org.apache.tapestry : so we'll go with this.
>>
>> Now "org.apache.tapestry" is important, it means all your page code
>> and your page templates go in to "org.apache.tapestry.pages"
>>
>> So your Index.java and Guess.java go in to:
>>
>> /src/main/java/org/apache/tapestry/pages
>>
>> and Index.tml and Guess.tml go in:
>>
>> /src/main/resources/org/apache/tapestry/pages
>>
>> The important thing is, that once compiled, all your .class files and
>> your .tml files end up in the same place. Following our example this
>> would be:
>>
>> /target/classes/org/apache/tapestry/pages
>>
>> Note how "org.apache.tapestry.pages" is used throughout.
>>
>> I cut'n'paste'ed the java files from the tutorial and they give the
>> wrong java package of "org.apache.tapestry5.tutorial.pages" but follow
>> the eclipse hint to change it to "org.apache.tapestry.pages"
>>
>> The tutorial .tml files are fine.
>>
>> The generated web.xml is fine also, so no need to touch that.
>>
>> Despite the tutorial saying otherwise I would stick to using "mvn
>> jetty:run" for now to prevent further complicating your set up. (In
>> fact I use nothing else and still get live class re-loading but my
>> setup is probably a little more advanced.)
>>
>> In fact, start using "mvn clean jetty:run" just to make sure no stray
>> class files are hanging around.
>>
>> And that's it - it works on my machine!
>>
>> From there it's all about cut'n'pasting bits of code and not whole
>> pages. And once everything is in the correct directory it should
>> largely, just work.
>>
>> By the way, "org.apache.tapestry" is not a special package, you can
>> use what ever you want - just make sure everything is the same. i.e.
>> if use the package "foo.bar.t5" then
>>
>> .java files go in:
>> /src/main/java/foo/bar/t5/pages
>>
>> .tml files go in:
>> /src/main/resources/foo/bar/t5/pages
>>
>> so your .class and .tml files end up in:
>> /target/classes/foo/bar/t5/pages
>>
>> and make sure the "tapestry.app-package" param-value in your web.xml is
>> set to
>> foo.bar.t5
>>
>> I don't think I can say much more than that. But to be honest, if
>> Java, Eclipse, Maven and Web Apps are all new to you, then I suspect
>> you're in for rough ride and a steep learning curve 

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/org/apache/tapestry5/pages
directory.

See my working file setup below...

http://old.nabble.com/file/p28539377/Java%2B-%2Btutorial1_src_main_webapp_WEB-INF_Index.java%2B-%2BEclipse%2B-%2B_Users_phil.mcquitty_Documents_personal_javacode-1.jpg
 

So I guess the question is, "why do I not get the resources directory?" and
why don't my initial .tml files from the mvn:generate command get placed
there?

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, the principles
> are sound.
> 
> So again, starting from scratch, I generate the archetype.
> 
> For the record, I'm using Maven 2.2.1 (as given by mvn -version) and
> by default (i.e. pressing [enter]) it creates the tutorial in the
> package : org.apache.tapestry : so we'll go with this.
> 
> Now "org.apache.tapestry" is important, it means all your page code
> and your page templates go in to "org.apache.tapestry.pages"
> 
> So your Index.java and Guess.java go in to:
> 
> /src/main/java/org/apache/tapestry/pages
> 
> and Index.tml and Guess.tml go in:
> 
> /src/main/resources/org/apache/tapestry/pages
> 
> The important thing is, that once compiled, all your .class files and
> your .tml files end up in the same place. Following our example this
> would be:
> 
> /target/classes/org/apache/tapestry/pages
> 
> Note how "org.apache.tapestry.pages" is used throughout.
> 
> I cut'n'paste'ed the java files from the tutorial and they give the
> wrong java package of "org.apache.tapestry5.tutorial.pages" but follow
> the eclipse hint to change it to "org.apache.tapestry.pages"
> 
> The tutorial .tml files are fine.
> 
> The generated web.xml is fine also, so no need to touch that.
> 
> Despite the tutorial saying otherwise I would stick to using "mvn
> jetty:run" for now to prevent further complicating your set up. (In
> fact I use nothing else and still get live class re-loading but my
> setup is probably a little more advanced.)
> 
> In fact, start using "mvn clean jetty:run" just to make sure no stray
> class files are hanging around.
> 
> And that's it - it works on my machine!
> 
> From there it's all about cut'n'pasting bits of code and not whole
> pages. And once everything is in the correct directory it should
> largely, just work.
> 
> By the way, "org.apache.tapestry" is not a special package, you can
> use what ever you want - just make sure everything is the same. i.e.
> if use the package "foo.bar.t5" then
> 
> .java files go in:
> /src/main/java/foo/bar/t5/pages
> 
> .tml files go in:
> /src/main/resources/foo/bar/t5/pages
> 
> so your .class and .tml files end up in:
> /target/classes/foo/bar/t5/pages
> 
> and make sure the "tapestry.app-package" param-value in your web.xml is
> set to
> foo.bar.t5
> 
> I don't think I can say much more than that. But to be honest, if
> Java, Eclipse, Maven and Web Apps are all new to you, then I suspect
> you're in for rough ride and a steep learning curve whatever platform
> you try out.
> 
> Good luck!
> 
> Steve.
> 
> 
> 
> 
> On 11 May 2010 21:14:05 UTC-4, aibkwik  wrote:
>>
>> Steve. thanks, for hangin in there, man.
>>
>> I have had that "ta da" moment each time I have started over from
>> scratch.
>>
>> Each time I re-create my project, I follow the tutorial and actually use
>> the
>> exact command you specified.  (Discovered the "create" error in the
>> tutorial
>> (deprecated function) after a couple of hours).
>>
>> It creates a project for me and going to the URL works great.  I see the
>> time-of-day function and clicking on refresh works great.   I continue to
>> follow the tutorial example and import the new, working project into my
>> Eclipse.   (that's when the .tml files get separated from the .java
>> files).
>>
>> Going to the URL at that point reveals the index.tml page and all looks
>> good
>> until you click the link.
>>
>> Nothing works beyond that.
>>
>> I checked my web.xml and did have "tutorial" instead of "tutorial5",
>> however, making the change ended up with the same error, but gave me a
>> new
>> branch in my directory along with two new .class files.
>>
>> I'm losing steam...
>>
>> I feel like I should not proceed to other samples, examples, if I can not
>> get this very simple one working.  I'm considering dropping this
>> altogether
>> and giving other paradigms a try.  I've seen appFuse and echo Web but was
>> under the impression that tapestry was more settled and would be easier
>> to
>> learn.  I've been on this one tutorial for 3 days LoL...  I'm a C++
>> programmer trying to make the switch over to Java/web and am looking for
>> a
>> way to avoid havin

[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 a menu
displayed on every page with a .

Then when you navigate to "/viewMember/dontExist" the web app forwards
you to /error404 which T5 happily renders. Only the menu renders a
relative link to  (and not ) which
your browser, after requesting /viewMember/dontExist, interprets as . Which leads to another 404...

Whilst the idea of this 404 vicious circle amuses me, it's not
particularly helpful!

You could add a HTML base tag to your error pages but that requires
you to know the deployed host URL in advance and it's just extra
configuration to deal with.

Instead, consider this; an annotation to add to your page class which
renders all links on the page as absolute URIs. So simply add
@RenderAbsoluteURIs to your /error404 page and job done! Here's the
code:

First the annotation:

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
public @interface RenderAbsoluteURIs { }

Then an advice to the RequestPathOptimizer so we may optionally bypass it:

import java.lang.annotation.Annotation;
import org.apache.tapestry5.ioc.Invocation;
import org.apache.tapestry5.ioc.MethodAdvice;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.services.ComponentClassResolver;
import org.apache.tapestry5.services.ComponentEventLinkEncoder;
import org.apache.tapestry5.services.Request;


public class OptimizePathAdvice implements MethodAdvice {

@Inject
private Request request;

@Inject
private ComponentEventLinkEncoder linkEncoder;

@Inject
private ComponentClassResolver classResolver;

public void advise(Invocation invocation) {
boolean renderAbsolute = 
pageHasAnnotion(RenderAbsoluteURIs.class);

if (renderAbsolute) {
String absolutePath = (String) 
invocation.getParameter(0);
invocation.overrideResult(absolutePath);
} else
invocation.proceed();
}

private  boolean pageHasAnnotion(Class 
annotation) {
String pageName;
try {
pageName = 
linkEncoder.decodePageRenderRequest(request).getLogicalPageName();
} catch(IllegalArgumentException e) {
// ignore those stoopid invalid path errors
return false;
}

String className = 
classResolver.resolvePageNameToClassName(pageName);

Class pageClass;
try {
pageClass = Class.forName(className);
} catch (ClassNotFoundException e) {
return false;
}

return pageClass.isAnnotationPresent(annotation);
}
}

and finally the Module configuration to add the advice:

@Match("RequestPathOptimizer")
public static void adviseRequestPathOptimizer(MethodAdviceReceiver
receiver, OptimizePathAdvice optimizePathAdvice) throws
SecurityException, NoSuchMethodException {
Method method = RequestPathOptimizer.class.getMethod("optimizePath",
String.class);
receiver.adviseMethod(method, optimizePathAdvice);
}

Have fun,

Steve.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 more configuration more than telling it what my own
Module class is. See here:

http://tapestry.formos.com/nightly/tapestry-testify/

and

http://tapestry.formos.com/nightly/tapestry-testify/testng.html

Steve.

P.S. By the way, if Paul's listening, I'm dying for Testify to be
updated to work with T5.2 - it's the only reason I'm still on 5.1! I
know T5.2 isn't near a release yet but it addresses many little
niggles.


On 12 May 2010 10:25, MauricioF  wrote:
>
> 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 
> implementation
>                // is provided inline, or requires more initialization than 
> simply
>                // invoking the constructor.
>
>                binder.bind(ConfigAssetAliasManager.class,
> ConfigAssetAliasManagerImpl.class);
>                binder.bind(ConfigurationService.class,
> PropertyReaderConfigurationServiceImpl.class);
>
>        }
>
>   �...@marker(ConfigProvider.class)
>    public AssetFactory buildConfigAssetFactory(ResourceCache resourceCache,
>            ConfigAssetAliasManager aliasManager, ConfigurationService
> configuration) {
>        return new ConfigAssetFactory(resourceCache, aliasManager,
> configuration);
>    }
>
>        /** Add a new factory with the prefix "uri"
>         * @param configuration
>         * @param uriAssetFactory
>         */
>        public void contributeAssetSource(
>                        MappedConfiguration 
> configuration,
>                       �...@configprovider AssetFactory configAssetFactory) {
>                configuration.add(AssetConstants.CONFIG_PREFIX, 
> configAssetFactory);
>        }
>
>        /**
>         * The MasterDispatcher is a chain-of-command of individual 
> Dispatchers,
>         * each handling (like a servlet) a particular kind of incoming 
> request.
>         */
>        public void contributeMasterDispatcher(
>                        OrderedConfiguration configuration,
>                        ObjectLocator locator) {
>                configuration.add("Config",
> locator.autobuild(ConfigDispatcher.class),"before:Asset");
>        }
>
>
> The same methods are working fine in the main Application module and the
> asset factory works fine.
>
> However in my test case ( a simple pageTester render ) it´s complainining
> when contributing to the services
>
>
> java.lang.IllegalArgumentException: Contribution
> com.ioko.frontend.services.MyPagesTestModule.contributeAssetSource(MappedConfiguration,
> AssetFactory, AssetFactory) (at MyPagesTestModule.java:88) is for service
> 'AssetSource', which does not exist.
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl.validateContributeDefs(RegistryImpl.java:199)
>        at
> org.apache.tapestry5.ioc.internal.RegistryImpl.(RegistryImpl.java:174)
>        at 
> org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:170)
>        at
> com.ioko.frontend.services.AbstractTestSuite.setup_registry(AbstractTestSuite.java:18)
>        at
> com.ioko.frontend.services.ConfigurationServiceTest.setup_registry(ConfigurationServiceTest.java:23)
>        at
> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
>
> I read that I need to use some module dependancy so I added
>
> @SubModule (TapestryModule.class)
> public class MyPagesTestModule {
>
> Still is not working...
>
> Now I got
>
> ERROR RequestExceptionHandler - Processing of request failed with uncaught
> exception: Exception assembling root component of page URIAssetTestPage:
> Could not convert 'asset:uri:file:///C:/temp/selected-cell.png' into a
> component parameter binding: Unknown prefix for asset path
> 'uri:file:///C:/temp/selected-cell.png'.
> java.lang.RuntimeException: Exception assembling root component of page
> URIAssetTestPage: Could not convert
> 'asset:uri:file:///C:/temp/selected-cell.png' into a component parameter
> binding: Unknown prefix for asset path
> 'uri:file:///C:/temp/selected-cell.png'.
>        at
> org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleRootComponent(ComponentAssemblerImpl.java:110)
>        at
> org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:159)
>        at $PageLoader_1288ce49865.loadPage($PageLoader_1288ce49865.java)
>        at
> org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210)
>        at
> org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99)
>       

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 implementation issue

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 event on
> the component spawns another event(using resourse.triggerEvent()) which is 
> handled by the page that holds the component. The event handler in the page 
> waits for the relevant data to be available and when it is available return a 
> block for displaying the data.

Tapestry uses a pool of pages. So, when a request takes long to complete and 
more requests to the same page are done, the number of page instances checked 
out of pool the increases until it reaches the hard limit. So, yes, Tapestry 
pages were not meant to use in long polling.

Is the block your returning complex markup? If not, I would create a Dispatcher 
(that is not pooled) to handle these requests and return the information as 
JSON.

> BTW I am using Tapestry 5.0.1 with tomcat 6.0. Any help  is much
> appreciated.

5.0.1? Wouldn't it be 5.1? 5.0.1 is almost three years old now.

--Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and 
instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 customize T-S-S.
For now I will work around the small constraints of T-S-S.

Thank you again for the time you took investigating this.

Nicolas

-Message d'origine-
From : Jonathan Barker [mailto:jonathan.theit...@gmail.com] 
To : Tapestry users
Objet : Re: TSS add custom voter & securing non-tapestry methods

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 configuration
of the AccessDecisionManager, giving you duplication.

If that doesn't work, try building a custom copy of TSS with the builder for
AccessDecisionManager commented out, and build one within the Spring xml
file.

Good luck.
JB

Jonathan Barker
ITStrategic


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 configuration
of the AccessDecisionManager, giving you duplication.

If that doesn't work, try building a custom copy of TSS with the builder for
AccessDecisionManager commented out, and build one within the Spring xml
file.

Good luck.
JB



On Wed, May 12, 2010 at 4:15 AM, Nicolas Gillet - MARKET-IP <
nicolas.gil...@market-ip.com> wrote:

> Hello Jonathan,
>
> Here's the web.xml (there are some stuff for DWR too):
> # WEB.XML #
> 
> xmlns="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
>http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
>geoplanning Tapestry 5 Application
>
>contextConfigLocation
>classpath:applicationContext.xml
>
>
>
>tapestry.app-package
>com.marketip.geoplanning.web
>
>
>
>JpaFilter
>
>
> org.springframework.orm.jpa.support.OpenEntityManagerInViewFil
> ter
>
>
>JpaFilter
>/*
>
>
>
>app
>
>
> org.apache.tapestry5.spring.TapestrySpringFilter >
>
>
>app
>/*
>
>
>
>DwrSecurityFilter
>
>
> org.springframework.security.util.FilterToBeanProxy ass>
>
>targetClass
>
>
> org.springframework.security.util.FilterChainProxy >
>
>
>
>DwrSecurityFilter
>/dwr/*
>
>
>
>dwr-invoker
>
>
> org.directwebremoting.spring.DwrSpringServlet
>
>debug
>true
>
>
>
>
>dwr-invoker
>/dwr/*
>
>
> 
>ico
>image/x-icon
>
> 
> # /WEB.WML #
>
> And the applicationContex.xml :
> (There is a lot of non-relevant stuff I think, but just in case, I paste
> the
> whole file)
> I think only the part between  and  is
> relevant.
>
> # APPLICATIONCONTEXT.XML #
> 
> http://www.springframework.org/schema/beans";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xmlns:context="http://www.springframework.org/schema/context";
>xmlns:tx="http://www.springframework.org/schema/tx";
>xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr";
>xmlns:security="http://www.springframework.org/schema/security";
>xsi:schemaLocation="http://www.springframework.org/schema/beans
>   http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>   http://www.springframework.org/schema/context
>
> http://www.springframework.org/schema/context/spring-context-2.5.xsd
>   http://www.springframework.org/schema/tx
>   http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
>   http://www.directwebremoting.org/schema/spring-dwr
>   http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd
>   http://www.springframework.org/schema/security
>
> http://www.springframework.org/schema/security/spring-security-2.0.4.xsd";>
>
>
>
>
>
>
>
>  class="org.springframework.security.util.FilterChainProxy">
>
>
>CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
>PATTERN_TYPE_APACHE_ANT
>/**=httpSessionContextIntegrationFilter
>
>
>
>
>
> class="org.springframework.security.context.HttpSessionContextIntegrationFil
> ter" />
>
> 
>
>
>
> base-package="com.marketip.geoplanning.domain.dao.jpa" />
> base-package="com.marketip.geoplanning.services" />
> base-package="com.marketip.geoplanning.services.impl" />
> base-package="com.marketip.geoplanning.services.dwr" />
> base-package="com.marketip.geoplanning.report" />
>
>
>
>
> class="org.springframework.beans.factory.config.PropertyPlaceholderConfigure
> r">
>
>true
>
>
>
>
> classpath*:geoplanning.properties
>
>
>
>
>
>
>
>
>
>
> class="org.springframework.dao.annotation.PersistenceExcep

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, the principles
> are sound.
> 
> So again, starting from scratch, I generate the archetype.
> 
> For the record, I'm using Maven 2.2.1 (as given by mvn -version) and
> by default (i.e. pressing [enter]) it creates the tutorial in the
> package : org.apache.tapestry : so we'll go with this.
> 
> Now "org.apache.tapestry" is important, it means all your page code
> and your page templates go in to "org.apache.tapestry.pages"
> 
> So your Index.java and Guess.java go in to:
> 
> /src/main/java/org/apache/tapestry/pages
> 
> and Index.tml and Guess.tml go in:
> 
> /src/main/resources/org/apache/tapestry/pages
> 
> The important thing is, that once compiled, all your .class files and
> your .tml files end up in the same place. Following our example this
> would be:
> 
> /target/classes/org/apache/tapestry/pages
> 
> Note how "org.apache.tapestry.pages" is used throughout.
> 
> I cut'n'paste'ed the java files from the tutorial and they give the
> wrong java package of "org.apache.tapestry5.tutorial.pages" but follow
> the eclipse hint to change it to "org.apache.tapestry.pages"
> 
> The tutorial .tml files are fine.
> 
> The generated web.xml is fine also, so no need to touch that.
> 
> Despite the tutorial saying otherwise I would stick to using "mvn
> jetty:run" for now to prevent further complicating your set up. (In
> fact I use nothing else and still get live class re-loading but my
> setup is probably a little more advanced.)
> 
> In fact, start using "mvn clean jetty:run" just to make sure no stray
> class files are hanging around.
> 
> And that's it - it works on my machine!
> 
> From there it's all about cut'n'pasting bits of code and not whole
> pages. And once everything is in the correct directory it should
> largely, just work.
> 
> By the way, "org.apache.tapestry" is not a special package, you can
> use what ever you want - just make sure everything is the same. i.e.
> if use the package "foo.bar.t5" then
> 
> .java files go in:
> /src/main/java/foo/bar/t5/pages
> 
> .tml files go in:
> /src/main/resources/foo/bar/t5/pages
> 
> so your .class and .tml files end up in:
> /target/classes/foo/bar/t5/pages
> 
> and make sure the "tapestry.app-package" param-value in your web.xml is
> set to
> foo.bar.t5
> 
> I don't think I can say much more than that. But to be honest, if
> Java, Eclipse, Maven and Web Apps are all new to you, then I suspect
> you're in for rough ride and a steep learning curve whatever platform
> you try out.
> 
> Good luck!
> 
> Steve.
> 
> 
> 
> 
> On 11 May 2010 21:14:05 UTC-4, aibkwik  wrote:
>>
>> Steve. thanks, for hangin in there, man.
>>
>> I have had that "ta da" moment each time I have started over from
>> scratch.
>>
>> Each time I re-create my project, I follow the tutorial and actually use
>> the
>> exact command you specified.  (Discovered the "create" error in the
>> tutorial
>> (deprecated function) after a couple of hours).
>>
>> It creates a project for me and going to the URL works great.  I see the
>> time-of-day function and clicking on refresh works great.   I continue to
>> follow the tutorial example and import the new, working project into my
>> Eclipse.   (that's when the .tml files get separated from the .java
>> files).
>>
>> Going to the URL at that point reveals the index.tml page and all looks
>> good
>> until you click the link.
>>
>> Nothing works beyond that.
>>
>> I checked my web.xml and did have "tutorial" instead of "tutorial5",
>> however, making the change ended up with the same error, but gave me a
>> new
>> branch in my directory along with two new .class files.
>>
>> I'm losing steam...
>>
>> I feel like I should not proceed to other samples, examples, if I can not
>> get this very simple one working.  I'm considering dropping this
>> altogether
>> and giving other paradigms a try.  I've seen appFuse and echo Web but was
>> under the impression that tapestry was more settled and would be easier
>> to
>> learn.  I've been on this one tutorial for 3 days LoL...  I'm a C++
>> programmer trying to make the switch over to Java/web and am looking for
>> a
>> way to avoid having to learn all the 'plumbing' required in servlet/JSP
>> baseline programing.
>>
>> If you have something else you'd like me to try, I'm still game on giving
>> it
>> a go.
>>
>> Phil
>>
>>
>>
>>
>> Steve Eynon wrote:
>>>
>>> Scary that the exception talks about components when it should be
>>> looking for a page.
>>>
>>> What does your web.xml look like? What is your app package set to? It
>>> should be:
>>>
>>> 
>>>     
>>>     tapestry.app-package
>>>     org.apache.tapestry5.tutorial
>>> 
>>>
>>> See http://tapestry.apache.org/tapestry5.1/guide/conf.html
>>>
>>> Actuall

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 
implementation
// is provided inline, or requires more initialization than 
simply
// invoking the constructor.

binder.bind(ConfigAssetAliasManager.class,
ConfigAssetAliasManagerImpl.class);
binder.bind(ConfigurationService.class,
PropertyReaderConfigurationServiceImpl.class);

}

@Marker(ConfigProvider.class)
public AssetFactory buildConfigAssetFactory(ResourceCache resourceCache,
ConfigAssetAliasManager aliasManager, ConfigurationService
configuration) {
return new ConfigAssetFactory(resourceCache, aliasManager,
configuration);
}

/** Add a new factory with the prefix "uri"
 * @param configuration
 * @param uriAssetFactory
 */
public void contributeAssetSource(
MappedConfiguration configuration,
@ConfigProvider AssetFactory configAssetFactory) {
configuration.add(AssetConstants.CONFIG_PREFIX, 
configAssetFactory);
}

/**
 * The MasterDispatcher is a chain-of-command of individual Dispatchers,
 * each handling (like a servlet) a particular kind of incoming request.
 */
public void contributeMasterDispatcher(
OrderedConfiguration configuration,
ObjectLocator locator) {
configuration.add("Config",
locator.autobuild(ConfigDispatcher.class),"before:Asset");
}


The same methods are working fine in the main Application module and the
asset factory works fine.

However in my test case ( a simple pageTester render ) it´s complainining
when contributing to the services


java.lang.IllegalArgumentException: Contribution
com.ioko.frontend.services.MyPagesTestModule.contributeAssetSource(MappedConfiguration,
AssetFactory, AssetFactory) (at MyPagesTestModule.java:88) is for service
'AssetSource', which does not exist.
at
org.apache.tapestry5.ioc.internal.RegistryImpl.validateContributeDefs(RegistryImpl.java:199)
at
org.apache.tapestry5.ioc.internal.RegistryImpl.(RegistryImpl.java:174)
at 
org.apache.tapestry5.ioc.RegistryBuilder.build(RegistryBuilder.java:170)
at
com.ioko.frontend.services.AbstractTestSuite.setup_registry(AbstractTestSuite.java:18)
at
com.ioko.frontend.services.ConfigurationServiceTest.setup_registry(ConfigurationServiceTest.java:23)
at
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)

I read that I need to use some module dependancy so I added 

@SubModule (TapestryModule.class)
public class MyPagesTestModule {

Still is not working...

Now I got 

ERROR RequestExceptionHandler - Processing of request failed with uncaught
exception: Exception assembling root component of page URIAssetTestPage:
Could not convert 'asset:uri:file:///C:/temp/selected-cell.png' into a
component parameter binding: Unknown prefix for asset path
'uri:file:///C:/temp/selected-cell.png'.
java.lang.RuntimeException: Exception assembling root component of page
URIAssetTestPage: Could not convert
'asset:uri:file:///C:/temp/selected-cell.png' into a component parameter
binding: Unknown prefix for asset path
'uri:file:///C:/temp/selected-cell.png'.
at
org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleRootComponent(ComponentAssemblerImpl.java:110)
at
org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:159)
at $PageLoader_1288ce49865.loadPage($PageLoader_1288ce49865.java)
at
org.apache.tapestry5.internal.services.PagePoolCache.checkout(PagePoolCache.java:210)
at
org.apache.tapestry5.internal.services.PagePoolImpl.checkout(PagePoolImpl.java:99)
at $PagePool_1288ce49864.checkout($PagePool_1288ce49864.java)
at
org.apache.tapestry5.internal.services.RequestPageCacheImpl.get(RequestPageCacheImpl.java:51)

A bit more digging shows that the contribute* methods are not invoked in
testing (I added breakpoints and they nerver are invoked..), which explains
everything

My understanding was that ALL contribution methods are invoked, but it seems
that in my MyPagesTestModule this is not true
Do I need to add some additional dependency aside of TapestryModule ? (only
the service binders are invoked).
Is there something else I´ve missed?

PS: Everything works fine when I launch the application with mvn jetty:run,
I can see the components rendered correctly

Thanks!
 
-- 
View this message in context: 
http://tapestry-users.832.n2.nabble.com/Module-contributionMethods-not-invoked-from-testNG-tp5041340p5041340.html
Sent from the Tape

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 event on
the component spawns another event(using resourse.triggerEvent()) which  
is handled by the page that holds the component. The event handler in  
the page waits for the relevant data to be available and when it is  
available return a block for displaying the data.


Tapestry uses a pool of pages. So, when a request takes long to complete  
and more requests to the same page are done, the number of page instances  
checked out of pool the increases until it reaches the hard limit. So,  
yes, Tapestry pages were not meant to use in long polling.


Is the block your returning complex markup? If not, I would create a  
Dispatcher (that is not pooled) to handle these requests and return the  
information as JSON.



BTW I am using Tapestry 5.0.1 with tomcat 6.0. Any help  is much
appreciated.


5.0.1? Wouldn't it be 5.1? 5.0.1 is almost three years old now.

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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  
to trigger the form update myself and immediately clearing the form fields.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 add ":" like this :
 ${user.shop?.shoCode:"No Data"}
and it doesn't work.


${shopCode}

public void getShopCode() {
if (getUser().getShop() != null) {
return getUser().getShop().getShopCode();
}
else {
return "No Data";
}
}

Another option is to use the OGNL binding from ChenilleKit, but I  
recommend the approach above.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 appaereance of the background
images was still not perfect, they overflew out of their edges and after
about 1 second error-bevel-left.png and error-bevel-right.png gained their
normal size.

I have tried to override the following css entry, and it helped the
error-bevel-left.png
HTML>BODY DIV.t-error-popup SPAN {
background: url("error-bevel-left.png") no-repeat scroll 0 0 transparent;
position: relative;
}
Unfortunately position: relative; can't be set for tha tag with
error-bevel-right.gif, as it is set in the DIV.t-error-popup css entries,
and the aprropriate div, with this css style has the following style
property:
style="position: absolute; top: 122px; left: 423px; width: auto; height:
39px;" 

Izolda
-- 
View this message in context: 
http://old.nabble.com/problems-with-client-validation-Internet-Explorer-8---no-background-images-tp28149213p28534672.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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, 2010, at 5:59 AM, Claude Dubois wrote:
> 
>   The problem is slightly different then just being a null. The problem is
> that shop is null, so user.getShop().getShoCode() throws an exception. So
> the problem is that one step removed from the value to be displayed is a
> null.
> 
>   You can deal with this more easily by using the ?. operator. 
> 
>   ${user.shop?.shoCode}
> 
>   ?. will stop if shop is null. 
> 
>   Pierce
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 


-
Claude Dubois
-- 
View this message in context: 
http://old.nabble.com/How-to-use-a-grid-with-some-%22null%22-cells-tp28521840p28534060.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 
BigDecimalTranslator(); 
   configuration.add(bdTranslator.getName(), bdTranslator);


   Translator durationTranslator = new 
DurationTranslator(); 
   configuration.add(durationTranslator.getName(), 
durationTranslator);

   }

Thanks,
Joost


Howard Lewis Ship wrote:

Please read the documentation on TranslatorSource about how to
accomplish what you want.

On Tue, May 11, 2010 at 4:16 AM, Joost Schouten (ml)
 wrote:
  

Hi,

I just updated to the latest snapshot of T5.2 and can no longer contribute
two translators for the same type [1]. I get an exception due to the fact
that the TranslatorSource now only accepts a MappedConfiguration which
disallows two contributions on the same type [2].

Two translators on one type seems like a valid situation to me.

I understand I can pass a custom FieldTranslator in the translate parameter
but think that is less elegant than just defining the name or the translator
if I need something other than default.

Is this no longer possible or is there now a different way to contribute
multiple translators for one type?

Cheers,
Joost


[1]: My old AppModule contribution method which now no longer works:
public static void contributeTranslatorSource(Configuration
configuration) {
  Translator bdTranslator = new BigDecimalTranslator();
   configuration.add(bdTranslator);

  Translator durationTranslator = new
DurationTranslator();configuration.add(durationTranslator);
}

[2]: nor does this one, understandably:
public static void contributeTranslatorSource(MappedConfiguration configuration) {
  Translator bdTranslator = new BigDecimalTranslator();
   configuration.add(BigDecimal.class, bdTranslator);

  Translator durationTranslator = new
DurationTranslator();configuration.add(BigDecimal.class,
durationTranslator);
}

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org







  



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



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 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";>
geoplanning Tapestry 5 Application

contextConfigLocation
classpath:applicationContext.xml



tapestry.app-package
com.marketip.geoplanning.web



JpaFilter

org.springframework.orm.jpa.support.OpenEntityManagerInViewFil
ter


JpaFilter
/*



app

org.apache.tapestry5.spring.TapestrySpringFilter


app
/*



DwrSecurityFilter

org.springframework.security.util.FilterToBeanProxy

targetClass

org.springframework.security.util.FilterChainProxy



DwrSecurityFilter
/dwr/*



dwr-invoker

org.directwebremoting.spring.DwrSpringServlet

debug
true




dwr-invoker
/dwr/*


 
ico
image/x-icon


# /WEB.WML #

And the applicationContex.xml : 
(There is a lot of non-relevant stuff I think, but just in case, I paste the
whole file)
I think only the part between  and  is
relevant.

# APPLICATIONCONTEXT.XML #

http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:context="http://www.springframework.org/schema/context";
xmlns:tx="http://www.springframework.org/schema/tx";
xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr";
xmlns:security="http://www.springframework.org/schema/security";
xsi:schemaLocation="http://www.springframework.org/schema/beans 
   http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
   http://www.springframework.org/schema/context
 
http://www.springframework.org/schema/context/spring-context-2.5.xsd
   http://www.springframework.org/schema/tx 
   http://www.springframework.org/schema/tx/spring-tx-2.5.xsd
   http://www.directwebremoting.org/schema/spring-dwr
   http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd
   http://www.springframework.org/schema/security
 
http://www.springframework.org/schema/security/spring-security-2.0.4.xsd";>










CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
PATTERN_TYPE_APACHE_ANT
/**=httpSessionContextIntegrationFilter




















true




classpath*:geoplanning.properties



























































































# /APPLICATIONCONTEXT.XML #

Thank you for taking time to help me.

Nicolas

-Message d'origine-
From : Jonathan Barker 
To : Tape