Re: Let's make @ActivationRequestParameter first-class citizen

2010-11-02 Thread Vjeran Marcinko
Hello again, - Original Message - From: "Thiago H. de Paula Figueiredo" To: "Tapestry users" Sent: Tuesday, November 02, 2010 4:09 PM Subject: Re: Let's make @ActivationRequestParameter first-class citizen Something I personally find odd is to have two different object ids being us

Re: Access to a component through an URL

2010-11-02 Thread ael
You cloud also combine LINK & IF :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/Access-to-a-component-through-an-URL-tp3247169p3248003.html Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Regarding zone updates, and custom events.

2010-11-02 Thread ael
Ypu cannot mixed them... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Regarding-zone-updates-and-custom-events-tp3245855p3248000.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: [Tapestry Central] Tapestry 5.2.2

2010-11-02 Thread ael
Why i cannot get the Tapestry 5.2.2 in Netbeans? Any idea? WARNING: You are running embedded Maven builds, some build may fail due to incompatibilities with latest Maven release. To set Maven instance to use for building, click here. Scanning for projects... Setting property: classpath.r

Re: [Tapestry Central] Tapestry 5.2.2

2010-11-02 Thread Vjeran Marcinko
- Original Message - From: "Thiago H. de Paula Figueiredo" To: "Tapestry users" Sent: Tuesday, November 02, 2010 8:28 PM Subject: Re: [Tapestry Central] Tapestry 5.2.2 On Tue, 02 Nov 2010 16:10:52 -0200, Vjeran Marcinko wrote: Mentioned utility static method stores some value in on

Re: Getting form client input to persist through zone update

2010-11-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Nov 2010 20:33:27 -0200, Rich M wrote: Hi, Hi! so I've had to add some mixins to a form to conditionally handle some form elements based on used input. A user selects a certain select list option, some fields get disabled or enabled as a result type thing. Does all this logi

Getting form client input to persist through zone update

2010-11-02 Thread Rich M
Hi, so I've had to add some mixins to a form to conditionally handle some form elements based on used input. A user selects a certain select list option, some fields get disabled or enabled as a result type thing. The form is actually a BeanEditForm, not just a Form. Anyway, when my mixin re

Re: Access to a component through an URL

2010-11-02 Thread Christian Riedel
sure! read this page: http://tapestry.apache.org/tapestry5.1/cookbook/lib.html Am 02.11.2010 um 20:59 schrieb Kado: > First of all thanks for the hint. > > We are doing this "component thing" in order to re-use pages across many > webapps. > Can we put pages in a library package?? > > Thanks.

Re: Access to a component through an URL

2010-11-02 Thread Kado
First of all thanks for the hint. We are doing this "component thing" in order to re-use pages across many webapps. Can we put pages in a library package?? Thanks. On 11/02/2010 04:36 PM, Thiago H. de Paula Figueiredo wrote: On Tue, 02 Nov 2010 17:26:10 -0200, Kado wrote: Thanks for t

Re: Access to a component through an URL

2010-11-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Nov 2010 17:26:10 -0200, Kado wrote: Thanks for the links, but this is not solving my problem. An example of what I am needing will be: "http://www.mysite.com/component"; and this load the component in the browser. Ooops, I forgot to complete the long answer. :) Components are

Re: Access to a component through an URL

2010-11-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Nov 2010 17:26:10 -0200, Kado wrote: Thanks for the links, but this is not solving my problem. It does solve, but you need to adapt your solution to the tool you're using. :) An example of what I am needing will be: "http://www.mysite.com/component"; and this load the compon

Re: [Tapestry Central] Tapestry 5.2.2

2010-11-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Nov 2010 16:10:52 -0200, Vjeran Marcinko wrote: Mentioned utility static method stores some value in one static field (ThreadLocal static field), and this field is later accessed from pages. I don't know if classloader for services is the same that loads pages, so is there gon

Re: Access to a component through an URL

2010-11-02 Thread Kado
Thanks for the links, but this is not solving my problem. An example of what I am needing will be: "http://www.mysite.com/component"; and this load the component in the browser. On 11/02/2010 03:53 PM, Muhammad Mohsen wrote: I don't think I can help you much, I haven't tackled such functio

Re: Access to a component through an URL

2010-11-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Nov 2010 16:13:46 -0200, Kado wrote: Hi, Olá, hermano! :) I am using some components for showing info in my webApp. Right now I am trying to access to some of these components by a direct URL (so I can access to this components from other webs, other processes and so on) a

Re: Access to a component through an URL

2010-11-02 Thread Muhammad Mohsen
I don't think I can help you much, I haven't tackled such functionality yet. But check this page (I think this will solve it, but sadly there is no example on the page, may be you can google or search Google code for the annotation and see how it's utilized): http://tapestryjava.blogspot.com/2010/

Re: Access to a component through an URL

2010-11-02 Thread Kado
Thanks for the quick answer, Is a matter of how-to. What we are really needing is an URL to access to a component. In this case the component is a page in the package components. Is this possible? Thanks! On 11/02/2010 03:18 PM, Muhammad Mohsen wrote: If you need to access ComponentA from

Re: Mixing zone updates and custom events.

2010-11-02 Thread Travis Romney
That worked perfectly, and cleaned up the code quite nicely. Thanks for the tip. Regards, Travis Romney On Tue, Nov 2, 2010 at 7:22 AM, LLTYK wrote: > > The main reason I see for events suddenly stopping is the element you > observed being inside the zone, and being trashed on zone reload. > >

Re: Access to a component through an URL

2010-11-02 Thread Muhammad Mohsen
If you need to access ComponentA from ComponenB. And PageA contains ComponentB. Then add ComponentA to ComponentB (@InjectComponent). And pass a parameter to your page to invoke ComponentB in a way that would render ComponentA. Did I answer your question ? Is it a matter of organization or "how-t

Access to a component through an URL

2010-11-02 Thread Kado
Hi, I am using some components for showing info in my webApp. Right now I am trying to access to some of these components by a direct URL (so I can access to this components from other webs, other processes and so on) and I don't know how to do this. As we try to re-use as much as we can in

Re: [Tapestry Central] Tapestry 5.2.2

2010-11-02 Thread Vjeran Marcinko
Even if this bug gets fixed, I'm interested in something. Mentioned utility static method stores some value in one static field (ThreadLocal static field), and this field is later accessed from pages. I don't know if classloader for services is the same that loads pages, so is there gonna be t

Re: [Tapestry Central] Tapestry 5.2.2

2010-11-02 Thread Howard Lewis Ship
That's odd, pretty sure I covered that case. On Tue, Nov 2, 2010 at 7:46 AM, Vjeran Marcinko < vjeran.marci...@email.t-com.hr> wrote: > - Original Message - From: "Howard Lewis Ship" > To: "Tapestry users" > Sent: Tuesday, November 02, 2010 3:34 PM > Subject: Re: [Tapestry Central] Tape

Re: Let's make @ActivationRequestParameter first-class citizen

2010-11-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Nov 2010 12:33:13 -0200, Vjeran Marcinko wrote: Yes, I'm aware of "subclassing is evil" rule, When a tool is used we can't forget that it has some design decisions. It was meant to be used in some ways and not in others. I guess you're stepping out a little of the Tapestry ph

Re: [Tapestry Central] Tapestry 5.2.2

2010-11-02 Thread Vjeran Marcinko
- Original Message - From: "Howard Lewis Ship" To: "Tapestry users" Sent: Tuesday, November 02, 2010 3:34 PM Subject: Re: [Tapestry Central] Tapestry 5.2.2 I'm not sure how you are getting illegal access errors at this point; I'd need to see your code. The code is dead simple. I ju

Re: [Tapestry Central] Tapestry 5.2.2

2010-11-02 Thread Howard Lewis Ship
I'm not sure how you are getting illegal access errors at this point; I'd need to see your code. If you package your app classes into a JAR for deployment, then that will also defeat live class reloading. On Jetty (but possibly not Tomcat) deploying as a WAR will defeat live class reloading ... i

Re: Let's make @ActivationRequestParameter first-class citizen

2010-11-02 Thread Vjeran Marcinko
Hi, Vjeran! Hi Thiago! Almost any kind of cross-page solution, as this scenario, is much better implemented as a ComponentRequestFilter. You can put all the logic in a single, easily unit tested class and with almost no effort (just a contribution to the ComponentRequestHandler service) apply

Re: Let's make @ActivationRequestParameter first-class citizen

2010-11-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Nov 2010 10:30:52 -0200, Vjeran Marcinko wrote: Hi, Hi, Vjeran! What I needed was parameter naming since ordering was not sufficient. I ended up coding my own "context parser" that treats every parameter with odd index as "name", so you have: http:///localhost/myapp/mypage/

Re: Mixing zone updates and custom events.

2010-11-02 Thread LLTYK
The main reason I see for events suddenly stopping is the element you observed being inside the zone, and being trashed on zone reload. I feel like you should actually be using a mixin on the textfield, since that's probably where you want the keyup events. A mixin will automatically reinitialize

Re: Application Scope

2010-11-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Nov 2010 10:46:57 -0200, Ulrich Stärk wrote: Not build-in but you can write yourself some singleton service around a hashmap or something. I'd like to add that Tapestry never had an application scope. ApplicationState was renamend to SessionState exactly to prevent this kind o

Re: Application Scope

2010-11-02 Thread Mats Andersson
One solution is to implement your own tapestry service for this. BR Mats Stephan Windmüller skrev 2010-11-02 13:36: Hi! Since the ApplicationState annotation has been renamed to SessionState, I am wondering if there is a usable Application scope in Tapestry where I can store data globally for

Re: Application Scope

2010-11-02 Thread Ulrich Stärk
Not build-in but you can write yourself some singleton service around a hashmap or something. Uli On 02.11.2010 13:36, Stephan Windmüller wrote: Hi! Since the ApplicationState annotation has been renamed to SessionState, I am wondering if there is a usable Application scope in Tapestry where

Application Scope

2010-11-02 Thread Stephan Windmüller
Hi! Since the ApplicationState annotation has been renamed to SessionState, I am wondering if there is a usable Application scope in Tapestry where I can store data globally for the application? TIA Stephan - To unsubscribe, e-

Re: Let's make @ActivationRequestParameter first-class citizen

2010-11-02 Thread Vjeran Marcinko
Hi, Yes, for all these non-trivial pages I ended up having to use onActivate(EventContext) and it was definetly cumbersome. If I have a page that has only 3 parameters in activation context, and all of them are optional Longs let's say, then you have many types of combinations allowed: - ze

Re: Let's make @ActivationRequestParameter first-class citizen

2010-11-02 Thread Thiago H. de Paula Figueiredo
On Tue, 02 Nov 2010 05:08:08 -0200, Vjeran Marcinko wrote: Hello all. Hi! URL path context and onActivate/onPassivate mechanism seemed sufficient until I started using it for any non-trivial page. By non-trivial, I mean any page that can be activated via different activation contexts,

Re: Portlet support in Tapestry 5?

2010-11-02 Thread Vangel V. Ajanovski
On 01.11.2010 19:11, Howard Lewis Ship wrote: > This seems to perpetually be something "in the next release". It isn't a > significant amount of code, but its a lot of work to test. Since it hasn't I am willing to test since I am already on a portal development project. So if there is something alr

Re: Let's make @ActivationRequestParameter first-class citizen

2010-11-02 Thread Vjeran Marcinko
- Original Message - From: "Kalle Korhonen" To: "Tapestry users" Sent: Tuesday, November 02, 2010 8:24 AM Subject: Re: Let's make @ActivationRequestParameter first-class citizen 2010/11/2 Vjeran Marcinko : And finally, with 5.2. release, we got @ActivationRequestParameter annotation

Re: [Tapestry Central] Tapestry 5.2.2

2010-11-02 Thread Vjeran Marcinko
I have a question regarding this disabling live-service reloading since I'm the one who still gets IllegalAccessErrors in my service when it calls static package-private method in some other utility class: Why is this disabling realized via JVM property and not deafult configuration mechanism th

Re: Let's make @ActivationRequestParameter first-class citizen

2010-11-02 Thread Kalle Korhonen
2010/11/2 Vjeran Marcinko : > And finally, with 5.2. release, we got @ActivationRequestParameter > annotation, and I felt relieved. Finally! > But, to spoil the celebration, I noticed immediately there is no way to > specify whether query parameter is required, so I had to place manual check > of a

Let's make @ActivationRequestParameter first-class citizen

2010-11-02 Thread Vjeran Marcinko
Hello all. I know this is shameless whining for my wishes, but I find it very strange that people don't use new @ActivationRequestParameter annotation often and notice it's shortcomings. When I first jumped on T5, I first looked what is the way to pass parameters between pages/links. URL p