T5: Restarting a service

2009-06-06 Thread Angelo Chen

Hi,

I got a service, MyService, which when loaded will read a parameter from
file, as I understand service in T5 will remain loaded until the application
is restarted, is there a way to programmatically restart a loaded service?
Thanks,

A.C.
-- 
View this message in context: 
http://www.nabble.com/T5%3A-Restarting-a-service-tp23907845p23907845.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: Any component

2009-06-06 Thread Howard Lewis Ship
It can emulate any element, even dynamically deciding which element
(say "div" or "span" or "p") to emulate.

On Fri, Jun 5, 2009 at 6:33 PM, Angelo Chen wrote:
>
> Hi,
> notice there is this component called 'Any'? what's the use of this
> component?
> --
> View this message in context: 
> http://www.nabble.com/T5%3A-Any-component-tp23897821p23897821.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
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

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



Re: 5.1.0.0 xsd

2009-06-06 Thread Howard Lewis Ship
I thought I had set this up last week, but it didn't take. I just
uploaded the XSD and it should be visible in an hour or so.

On Fri, Jun 5, 2009 at 1:55 AM, Ben Gidley wrote:
> Hi,
> Is the tapestry 5.1.0.0.xsd published online? The samples reference
> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd but the URL doesn't
> work (I know it does have to but it would be handy if it did as a lot of
> tools try and download the schema from the namespace url).
>
> Ben Gidley
>
> www.gidley.co.uk
> b...@gidley.co.uk
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

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



Re: How big is the Tapestry community?

2009-06-06 Thread Geoffrey Wiseman
On Sat, Jun 6, 2009 at 4:21 PM, Piero Sartini  wrote:

> > If we could know the number of downloads per version or per each release
> > say from 5.0 up to latest release might enable us to guess the number of
> > active users.
>
> I think most people are using Maven2 - and even if we could get the logs
> from
> ibiblio.org -> I am downloading it on any machine I need to build a
> project. I
> think we can't guess the number of users from these stats.
>

Tricky - most organizations with even a few co-located developers using
Maven will end up with a repository, and then the true number of Tapestry
users will be hidden by the proxying effect of a property.

  - Geoffrey
-- 
Geoffrey Wiseman
http://www.geoffreywiseman.ca/


Re: Stuck on implementing recursion (or something like it) cleanly

2009-06-06 Thread ownedthx

A coworker of mine with much Tapesty-fu seems to have figured out a much more
elegant solution today. (this issue has blocked most of the team, so we both
attacked this problem simultaneously).  He blogged about it here:
http://blog.bolkey.com/2009/06/06/tapestry-5-recursive-tree/

The short of it is, you have to use  delegates in the tree
templates, and when you declare the component, be sure to put down a
delegate, go give the inner logic a chance to continue to walk the tree, and
fiddle around with the before/after BodyRender methods.   Also, caching was
a bit of a problem until he learned to turn it off...

Anyway, thanks all,
Seth


ownedthx wrote:
> 
> Yesterday I opened a feature request for recursive components,
> https://issues.apache.org/jira/browse/TAP5-739, and had it closed for the
> reasons described there (basically, 'not possible').
> 
> First of all, thanks Thiago for taking the time to describe the issue and
> the pointer to a technique as a workaround.
> 
> Here's my question about the suggested workaround (which I'll call the
> 'use MarkupWriter' technique).  I have two reasons why I want to avoid a
> markupwriter:
> 
> 1) We have many components already designed that fit in a tree structure
> (10 now, but easily 200 later).  We would like to have the template in a
> tml file, so that a UI designer can contribute without being a Java expert
> on our numerous templates.
> 
> 2) More importantly, components allow us to associate behavior (ajax,
> forms, actionlinks, etc) with our components in a very clean, modular way.  
> 
> With a MarkupWriter technique, I believe we lose both.  
> 
> Does anyone have any suggestions as to how we can pull off recursion of
> components (or something like it), while achieving #1 and #2?
> 
> Thanks for any help,
> 
> Seth
> 

-- 
View this message in context: 
http://n2.nabble.com/Stuck-on-implementing-recursion-%28or-something-like-it%29-cleanly-tp3032700p3036739.html
Sent from the Tapestry Users 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 big is the Tapestry community?

2009-06-06 Thread Piero Sartini
> If we could know the number of downloads per version or per each release
> say from 5.0 up to latest release might enable us to guess the number of
> active users.

I think most people are using Maven2 - and even if we could get the logs from 
ibiblio.org -> I am downloading it on any machine I need to build a project. I  
think we can't guess the number of users from these stats.

Piero

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



Re: How big is the Tapestry community?

2009-06-06 Thread spaway
Dear All,

I am impresed with this topic.  I recently decided to pick up a framework
for use in development after spending some years with jsp/servlets models.
I do not exactly why but I prefer to use Tapestry against others.

If we could know the number of downloads per version or per each release say
from 5.0 up to latest release might enable us to guess the number of active
users.

I am using Tapestry 5 - Building Web Applications by Alexander Koleniskov as
a guide and t5.1.0.5 and in many places I encounter variances.  I think the
level of documentation on Tapestry is very poor and this will scare people
away - am I missing where/how to access the right documentation?

Cheers

SPA

2009/6/6 Daniel Jue 

> Here is my cup 'o coffee estimate...
>
> For people using it professionally, what is their propensity for being
> on this official mailing list?  (It's good that there is only one, and
> there are not forums dedicated to Tapestry (aside from those that
> mirror the mailing list))
>
> M = mailing list population, including lurkers
> P = propensity coefficient for users being on the mailing list where 0 < P
> <=1
> U = number of Tapestry users = M/P
>
> Or
>
> T = median size of a team (# developers)
> W = median of team members subscribed to the mailing list where 1 <= W <= T
> U = number of Tapestry users = MT/W
>
> (simpson's paradox here?  maybe)
>
> Or
>
> U = M [sum T*Wt, T=1 to max team size, Wt = propensity for a team
> member to be subscribed for team size T, 0 'Team' might be better described as the subset of the team working on
> the web tier of an application.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: How big is the Tapestry community?

2009-06-06 Thread Daniel Jue
Here is my cup 'o coffee estimate...

For people using it professionally, what is their propensity for being
on this official mailing list?  (It's good that there is only one, and
there are not forums dedicated to Tapestry (aside from those that
mirror the mailing list))

M = mailing list population, including lurkers
P = propensity coefficient for users being on the mailing list where 0 < P <=1
U = number of Tapestry users = M/P

Or

T = median size of a team (# developers)
W = median of team members subscribed to the mailing list where 1 <= W <= T
U = number of Tapestry users = MT/W

(simpson's paradox here?  maybe)

Or

U = M [sum T*Wt, T=1 to max team size, Wt = propensity for a team
member to be subscribed for team size T, 0

Re: How big is the Tapestry community?

2009-06-06 Thread Thiago H. de Paula Figueiredo
Em Sat, 06 Jun 2009 13:00:34 -0300, Howard Lewis Ship   
escreveu:



Here's a question: how many people are using Tapestry?  And how do you
figure out how many people are using Tapestry?


Maybe we could do something like a Tapestry user survey (census?) in  
Tapestry360 in some other place and ask people in the mailing list to  
answer it. What do you think? It will not cover everyone using Tapestry,  
but I guess most users at least read the mailing list.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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



Re: T5: Any component

2009-06-06 Thread Thiago H. de Paula Figueiredo
Em Sat, 06 Jun 2009 05:51:04 -0300, Angelo Chen  
 escreveu:



Hi,


Hi!


So often that we commented something from the tml file, in the end it got
rendered, which might contain some sensitive info. I'm looking for some
components like < t:comment> < !--> I might need this later --> <
/t:comment>,


Just use . More details in  
http://tapestry.apache.org/tapestry5.1/guide/templates.html.


--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

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



Re: How big is the Tapestry community?

2009-06-06 Thread Martin Papy

I would make exactly the same analysis. I don't know many people that uses
Tapestry... And the book is much too old (even for the 5.0.x). The good
thing is that all the people I showed Tapestry to and tried to work with it
now prefers it :)

Martin



Craig St. Jean-4 wrote:
> 
> Well, I've worked at a couple of places and used both Struts and JSF in
> the
> workplace.  I'm the only one that I know that develops using Tapestry (for
> personal use), and maybe 1 or 2 people had heard of it (prior to me
> telling
> them about it).  So my guess?  Probably a low single digit percentage when
> looking at all JEE shops.
> 
> And, now that you mention Tapestry in Action, it would be great to get a
> new
> book out there!  I realize that documentation like that is expensive, so
> maybe Formos or yourself starts a place for donations?  The WIKI is so-so,
> and the component references are decent, but it would be really nice to
> have
> something that actually shows the power of Tapestry, along with best
> practices, in 1 place such as a book.
> 
> On Sat, Jun 6, 2009 at 12:00 PM, Howard Lewis Ship 
> wrote:
> 
>> Here's a question: how many people are using Tapestry?  And how do you
>> figure out how many people are using Tapestry?
>>
>> When asked, I answer what I think is an honest answer: there's
>> probably 1000 - 2000 teams using Tapestry ... but mostly I pulled that
>> number out of the air. That would be one team for every five copies of
>> "Tapestry in Action" sold, but that's now an old book. There's at
>> least an order of magnitude from Tapestry to Struts. I wonder how T5
>> compares to SpringMVC or Grails?
>>
>> So, what would be YOUR estimate and YOUR methodology for determining
>> the number of Tapestry coders out there?
>>
>> --
>> Howard M. Lewis Ship
>>
>> Creator of Apache Tapestry
>> Director of Open Source Technology at Formos
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-big-is-the-Tapestry-community--tp23903257p23904406.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 big is the Tapestry community?

2009-06-06 Thread Craig St. Jean
Well, I've worked at a couple of places and used both Struts and JSF in the
workplace.  I'm the only one that I know that develops using Tapestry (for
personal use), and maybe 1 or 2 people had heard of it (prior to me telling
them about it).  So my guess?  Probably a low single digit percentage when
looking at all JEE shops.

And, now that you mention Tapestry in Action, it would be great to get a new
book out there!  I realize that documentation like that is expensive, so
maybe Formos or yourself starts a place for donations?  The WIKI is so-so,
and the component references are decent, but it would be really nice to have
something that actually shows the power of Tapestry, along with best
practices, in 1 place such as a book.

On Sat, Jun 6, 2009 at 12:00 PM, Howard Lewis Ship  wrote:

> Here's a question: how many people are using Tapestry?  And how do you
> figure out how many people are using Tapestry?
>
> When asked, I answer what I think is an honest answer: there's
> probably 1000 - 2000 teams using Tapestry ... but mostly I pulled that
> number out of the air. That would be one team for every five copies of
> "Tapestry in Action" sold, but that's now an old book. There's at
> least an order of magnitude from Tapestry to Struts. I wonder how T5
> compares to SpringMVC or Grails?
>
> So, what would be YOUR estimate and YOUR methodology for determining
> the number of Tapestry coders out there?
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
> Director of Open Source Technology at Formos
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


How big is the Tapestry community?

2009-06-06 Thread Howard Lewis Ship
Here's a question: how many people are using Tapestry?  And how do you
figure out how many people are using Tapestry?

When asked, I answer what I think is an honest answer: there's
probably 1000 - 2000 teams using Tapestry ... but mostly I pulled that
number out of the air. That would be one team for every five copies of
"Tapestry in Action" sold, but that's now an old book. There's at
least an order of magnitude from Tapestry to Struts. I wonder how T5
compares to SpringMVC or Grails?

So, what would be YOUR estimate and YOUR methodology for determining
the number of Tapestry coders out there?

-- 
Howard M. Lewis Ship

Creator of Apache Tapestry
Director of Open Source Technology at Formos

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



Re: Stuck on implementing recursion (or something like it) cleanly

2009-06-06 Thread ownedthx

Thanks for responding Denis,

Your approach (markup writer approach) will get the HTML out and to  
the client, but it still doesn't help much with problems #1 and #2,  
right?

As an update to the list, I'l explain what we are having to do to get  
at least close to achieving #1 and #2. You'll see it's very ugly, from  
a template perspective.

We have an iterator  that indicates when a node is being visited and  
being left (going down and going up the tree, respectively). So, as an  
example, if there is only one node in the tree, the iterator hits  
twice--the first time it indicates that the node is being visited, and  
the second it indicates that the visit is over.   We invoke the  
template of the node every iteration, indicating to the template if  
it's the begin visit or end visit.

Because there is this simple NodeVisitor-like pattern, each component  
of ours is extended from a base component that defines two extension- 
points, 'start' and 'end'.

Base Component



http://tapestry.apache.org/schema/tapestry_5_1_0.xsd 
">

 
 
 

 
 
 



Here's where it gets ugly... because you have to jump through one hoop  
or another to avoid malformed markup, this is what our actual  
component templates look like (the hoop in this case is using  
outputRaw to serialize the  and  tags, which can not be written  
directly into the template because they would make the template  
malformed):


http://tapestry.apache.org/schema/ 
tapestry_5_1_0.xsd">

 

 

 a brown fox

 


 

 runs through field

 

 



The output of visiting just that node would be two renderings of the  
component per node--first the 'start' extension would render, then the  
'end' extension. For example, if we had just a one node tree, this  
would be the flow:

start iteration
-
 a brown fox

end iteration
-
runs through the field 

resulting in :  a brown fox runs through the field 


I'm not at all happy with this--but in trying to truly achieve #1 (put  
all markup in templates), and #2 (have a component for each node type  
in our tree to take advantage of behavior and modularization), this is  
the best we've come up with.


If anyone has any suggestions, I'd be all ears!

Seth



On Jun 6, 2009, at 7:12 AM, DenisS (via Nabble) wrote:

> Hi Seth,
>
> I have created Tree component http://pastebin.com/m134af976 for the  
> same purpose, basically you need to transform recursion to iteration.
>
>  t:children="treeItem.children">
> ...tree item body...
> 
>
> output will be:
>
> 
> ...tree item body...
> 
>
> ...tree item body... ... ul>
>
>
> ...tree item body... ... ul>
>
> 
> 
>
> Denis
>
> This email is a reply to your post @ 
> http://n2.nabble.com/Stuck-on-implementing-recursion-%28or-something-like-it%29-cleanly-tp3032700p3035136.html
> You can reply by email or by visting the link above.
>


-- 
View this message in context: 
http://n2.nabble.com/Stuck-on-implementing-recursion-%28or-something-like-it%29-cleanly-tp3032700p3035508.html
Sent from the Tapestry Users mailing list archive at Nabble.com.


Re: Stuck on implementing recursion (or something like it) cleanly

2009-06-06 Thread DenisS

Hi Seth,

I have created Tree component http://pastebin.com/m134af976 for the same
purpose, basically you need to transform recursion to iteration.

 
...tree item body...


output will be:


...tree item body...

   
...tree item body...
...
   
   
...tree item body...
...
   



Denis
-- 
View this message in context: 
http://n2.nabble.com/Stuck-on-implementing-recursion-%28or-something-like-it%29-cleanly-tp3032700p3035136.html
Sent from the Tapestry Users 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: Any component

2009-06-06 Thread Otho
http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/mixins/DiscardBody.html

2009/6/6 Angelo Chen 

>
> Hi,
>
> So often that we commented something from the tml file, in the end it got
> rendered, which might contain some sensitive info. I'm looking for some
> components like < t:comment> < !--> I might need this later --> <
> /t:comment>, probably T5 can have a flag to tell the run time that comments
> should not be rendered for  the page?
>
> A.C.
>
>
>
>
> Thiago H. de Paula Figueiredo wrote:
> >
> > Em Fri, 05 Jun 2009 22:39:35 -0300, Craig St. Jean <
> craigstj...@gmail.com>
> > escreveu:
> >
> >> Although I can't really say, there is a WIKI page about it:
> >> http://wiki.apache.org/tapestry/Tapestry5AnyComponent
> >
> > That wiki page was about creating an Any component when Tapestry didn't
> > provide one, so you shouldn't use the wiki one anymore. They're quite
> > similar, anyway.
> >
> > Any's documentation is here:
> >
> http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Any.html
> ,
> > but the mentioned wiki page describes what it is good for way better.
> >
> > --
> > Thiago H. de Paula Figueiredo
> > Independent Java consultant, developer, and instructor
> > http://www.arsmachina.com.br/thiago
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/T5%3A-Any-component-tp23897821p23899889.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: Any component

2009-06-06 Thread Angelo Chen

Hi,

So often that we commented something from the tml file, in the end it got
rendered, which might contain some sensitive info. I'm looking for some
components like < t:comment> < !--> I might need this later --> <
/t:comment>, probably T5 can have a flag to tell the run time that comments
should not be rendered for  the page?

A.C.




Thiago H. de Paula Figueiredo wrote:
> 
> Em Fri, 05 Jun 2009 22:39:35 -0300, Craig St. Jean   
> escreveu:
> 
>> Although I can't really say, there is a WIKI page about it:
>> http://wiki.apache.org/tapestry/Tapestry5AnyComponent
> 
> That wiki page was about creating an Any component when Tapestry didn't  
> provide one, so you shouldn't use the wiki one anymore. They're quite  
> similar, anyway.
> 
> Any's documentation is here:  
> http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Any.html,
>   
> but the mentioned wiki page describes what it is good for way better.
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Any-component-tp23897821p23899889.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