Re : Use cases for the any component

2014-03-08 Thread nhhockeyplayer nashua
I have had good luck animating structural fluff for the stuff using Any and having a custom component under the hood. a href=# model=currentObject t:pagelink t:page=Edit context=editPageContext t:Any t:id=imageComponentId id=imageComponentId img

Re: Use cases for the any component

2014-03-06 Thread Bob Harner
Thanks, Geoff. Very nice. On Mar 5, 2014 11:28 PM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: Here's an Any div that is a container of things you can click on to select, identified by having CSS class selectable. JavaScript listens for click from selectables in the container.

Re: Use cases for the any component

2014-03-06 Thread Thiago H de Paula Figueiredo
On Sun, 02 Mar 2014 19:42:29 -0300, Bob Harner bobhar...@gmail.com wrote: Hi Tapestry users, Does anyone have any good use cases for the any component? I think there's only one: adding mixins to something that wasn't a component before. -- Thiago H. de Paula Figueiredo Tapestry, Java

Re: Use cases for the any component

2014-03-06 Thread Thiago H de Paula Figueiredo
On Mon, 03 Mar 2014 04:18:31 -0300, Lance Java lance.j...@googlemail.com wrote: I've also extended any to make new components. I'm really not following you . . . -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer http://machina.com.br

Re: Use cases for the any component

2014-03-05 Thread Geoff Callender
My biggest use is the same as Kristian mentioned: to generate a unique client id to pass to javascript. It's usually on a div, span, but sometimes on a ul, p, area, or canvas. Option 2 too, but less often. On 3 March 2014 19:51, Kristian Marinkovic kristian.marinko...@gmail.comwrote: i use it

Re: Use cases for the any component

2014-03-05 Thread Bob Harner
javadocs. I meant javadocs On Wed, Mar 5, 2014 at 8:23 AM, Bob Harner bobhar...@gmail.com wrote: Thanks, everybody! I'll be updating the avocados for that component soon, with examples. On Wed, Mar 5, 2014 at 8:08 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: My biggest use

Re: Use cases for the any component

2014-03-05 Thread Bob Harner
Thanks, everybody! I'll be updating the avocados for that component soon, with examples. On Wed, Mar 5, 2014 at 8:08 AM, Geoff Callender geoff.callender.jumpst...@gmail.com wrote: My biggest use is the same as Kristian mentioned: to generate a unique client id to pass to javascript. It's

Re: Use cases for the any component

2014-03-05 Thread Bob Harner
Geoff, Kristian, do you have any examples for using the any component when you need to generate a unique client id to pass to JavaScript? On Wed, Mar 5, 2014 at 8:23 AM, Bob Harner bobhar...@gmail.com wrote: javadocs. I meant javadocs On Wed, Mar 5, 2014 at 8:23 AM, Bob Harner

Re: Use cases for the any component

2014-03-05 Thread Geoff Callender
Here's an Any div that is a container of things you can click on to select, identified by having CSS class selectable. JavaScript listens for click from selectables in the container. It adds css class active to the selected thing and removes active from the others. You can see an EventLink in

Re: Use cases for the any component

2014-03-03 Thread Kristian Marinkovic
i use it if i need unique clientIds for certain dom elements to access it with my javascripts. g, Kris On Mon, Mar 3, 2014 at 8:18 AM, Lance Java lance.j...@googlemail.comwrote: I've used option 2 and I've also extended any to make new components.

Re: Use cases for the any component

2014-03-03 Thread Emmanuel DEMEY
Most of the time I use any with the use case 2 also Le 3 mars 2014 20:50, George Christman gchrist...@cardaddy.com a écrit : Like lance, I use it for option 2 as well as extended to make new components from it. On Mon, Mar 3, 2014 at 3:51 AM, Kristian Marinkovic

Use cases for the any component

2014-03-02 Thread Bob Harner
Hi Tapestry users, Does anyone have any good use cases for the any component? http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Any.html So far I have only come up with two: 1) When you want to dynamically output a different HTML element depending

Re: Use cases for the any component

2014-03-02 Thread Lance Java
I've used option 2 and I've also extended any to make new components.