Re: Tapestry 5 book is here

2013-01-27 Thread sommeralex
thx. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-book-is-here-tp5719513p5719560.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail:

Re: parameter in tml page?

2013-01-27 Thread Shing Hing Man
I think you meant ${getDescriptionForTag(user1)} where user1 is a page property of type String. I think the above should work. Shing From: sommeralex alexander.som...@gmail.com To: users@tapestry.apache.org Sent: Sunday, January 27, 2013 10:54 AM

Re: handling parameters passed through the url path

2013-01-27 Thread mats . andersson
Easy, I would go as far as to say that this is the preferred way in Tapestry. See: http://tapestry.apache.org/page-navigation.html for examples of onActivate() and onPassivare(). /Mats   Mats AnderssonRonsoft AB - Fridhemsvägen 8 - 372 25 RonnebyTel.

Re: handling parameters passed through the url path

2013-01-27 Thread Thiago H de Paula Figueiredo
On Sun, 27 Jan 2013 09:39:36 -0200, John j...@quivinco.com wrote: Suppose I want to pass a parameter like this: http://somedomain.com/JohnSmith instead of http://somedomain.com?username=JohnSmith so the parameter looks like a subdirectory. Can a tapestry page plus some kind of service hande

Re: handling parameters passed through the url path

2013-01-27 Thread John
is there a root page then, do I need to program this in my Index page, or am I better something like this somedomain.com/p/JackSmith Where p is a page and JackSmith is the username? John - Original Message - From: Thiago H de Paula Figueiredo To: Tapestry users Sent: Sunday,

getting tapestry out there

2013-01-27 Thread John
Hi, One of the markets I am intersted in serving has settled on JSF as the technology of choice. So there are loads of devs out there they can pick from. What hope is there of breaking this stranglehold of an etablished standard technology with tapestry? I think it would help if there was a

5.4 - Javascript best practices

2013-01-27 Thread Lance Java
I'm using the new 5.4-alpha-2 and I'm not 100% sure how I should be managing my javascript. I'm a require.js newbie and I've got a few questions: 1. Are @Import(library=x) and JavascriptSupport.importJavaScriptLibrary(x) now considered deprecated or are there still valid use cases? 2. What would

Re: handling parameters passed through the url path

2013-01-27 Thread Thiago H de Paula Figueiredo
On Sun, 27 Jan 2013 10:13:33 -0200, John j...@quivinco.com wrote: is there a root page then, do I need to program this in my Index page, or am I better something like this The Index page is the root page. somedomain.com/p/JackSmith Where p is a page and JackSmith is the username? If

Re: getting tapestry out there

2013-01-27 Thread Thiago H de Paula Figueiredo
On Sun, 27 Jan 2013 10:25:19 -0200, John j...@quivinco.com wrote: Hi, Hi! I'm sure having a book is also a great way to get this great technology taken more seriously. We already have a very good one, written by one of the committers, Igor Drobiazko:

Re: [5.4-alpha-2] Environment cloaked during ajax component event

2013-01-27 Thread Lance Java
I agree, I wanted to do this the tapestry way via an Environmental but was forced to use a request attribute (ie the struts way). I'd like to understand why the cloak/decloak was introduced. -- View this message in context:

Re: handling parameters passed through the url path

2013-01-27 Thread John
So, I can pick up the /UserName in my index page and forwards to the required page, although of course that will limit me to only handling 1 parameter linked to 1 page. I am also finding that resources such as this in my layout.tml img src=layout/images/page_bg.png border=0

Re: handling parameters passed through the url path

2013-01-27 Thread Thiago H de Paula Figueiredo
On Sun, 27 Jan 2013 10:47:08 -0200, John j...@quivinco.com wrote: So, I can pick up the /UserName in my index page and forwards to the required page, although of course that will limit me to only handling 1 parameter linked to 1 page. Actually, you can have as much parameters as you want:

Re: parameter in tml page?

2013-01-27 Thread sommeralex
i dont wont a page property, i want to define the parameter dynamically in the TML page itself. but it seems that this is not possible. -- View this message in context: http://tapestry.1045711.n5.nabble.com/parameter-in-tml-page-tp5719561p5719574.html Sent from the Tapestry - User mailing

Re: 5.4 - Javascript best practices

2013-01-27 Thread Steve Eynon
Good questions - I had to work this out myself when moving to T5.4! Yes, I personally consider @Import'ing JS deprecated - though it is still valid if you don't wish to use RequireJS. In your component put: JSONObject params = new JSONObject();

Re: 5.4 - Javascript best practices

2013-01-27 Thread Steve Eynon
My last email assumes your RequireJS modules live in the /META-INF/modules/ dir and follow the same naming convention. If that's not the case then you can 'Alias' your module. define([highcharts], function(highcharts) { ... } If 'highcharts' lives elsewhere I can re-route the call to

Re: parameter in tml page?

2013-01-27 Thread Steve Eynon
Could you use: ComponentResources.getInformalParameter(String name, ClassT type); ??? Steve. -- Steve Eynon --- If at first you don't succeed, so much for skydiving! On 27 January 2013 22:18, sommeralex alexander.som...@gmail.com wrote: i dont wont a page

Call Tynamo's SimpleAccountRealm's methods

2013-01-27 Thread Segura
Hello. Trying to configurate Tapestry-Security. Added into my AppModule @Contribute(WebSecurityManager.class) public static void addRealms(ConfigurationRealm configuration) { SimpleAccountRealm realm = new SimpleAccountRealm(); configuration.add(realm); } But i cant understand how to call

Re: 5.4 - Javascript best practices

2013-01-27 Thread Lance Java
Thanks Steve, I've lost a few hours trying to figure this out. So I only need to contribute to ModuleManager if I don't follow the convention? (ie module foo is located at /META-INF/modules/foo.js). -- View this message in context:

Re: 5.4 - Javascript best practices

2013-01-27 Thread Steve Eynon
Yup. That's right. On 28 January 2013 00:00, Lance Java lance.j...@googlemail.com wrote: Thanks Steve, I've lost a few hours trying to figure this out. So I only need to contribute to ModuleManager if I don't follow the convention? (ie module foo is located at /META-INF/modules/foo.js).

Re: Call Tynamo's SimpleAccountRealm's methods

2013-01-27 Thread Segura
Yes, i know it. And i read all of http://tynamo.org/tapestry-security+guide http://tynamo.org/tapestry-security+guide , but have not found a Realm's method call. I thought that it is like working with the hibernate session: @Inject private MyRealm realm; ... void foo() {

Re: Call Tynamo's SimpleAccountRealm's methods

2013-01-27 Thread Lenny Primak
Also, remember that tynamo-security is just a front end to Apache Shiro. You need to understand how it works before you can fully understand the concepts here. They have great documentation and sample code. On Jan 27, 2013, at 11:49 AM, Segura segur...@yandex.ru wrote: Yes, i know it. And i

Re: [ANN] New project available : Kawwa

2013-01-27 Thread Emmanuel DEMEY
Thanks Massimo. We were very happu to present, last week, Kawwa to the TakeOff conference in Lille. Manu 2013/1/26 Massimo Lusetti mluse...@gmail.com It's cool to see this kind of staff ! ... That's great. There's also a small presentation of it: