RE: T5 on JDK 1.6 or newer

2007-08-24 Thread Ben Sommerville
You can find that discussion here
http://www.nabble.com/T5%3A-NPE-in-Base64InputStream-and-locked-waiting-Ch
eckForUpdatesFilter-tf4058686.html


> -Original Message-
> From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, 25 August 2007 3:35 AM
> To: Tapestry users
> Subject: Re: T5 on JDK 1.6 or newer
> 
> An earlier posting on this list highlighted a bug in concurrency on
> some version of JDK 1.6.  Please check into that, the symptoms sound
> similar to what you see.
> 
> On 8/24/07, Stephan Schwab <[EMAIL PROTECTED]> wrote:
> >
> > We've been experiencing strange behaviour of our now 
> growing application
> > Savila and as well with another project we are working on. 
> Both use Tapestry
> > 5.0.5. Our development machines run with Mac OS X and we 
> use JDK 1.5 that
> > comes with it. We deploy to Linux with Sun's JDK 1.6 and 
> Tomcat 6.0.10.
> >
> > Our application Savila ran fine on JDK 1.6 with Tapestry 
> 5.x until last week
> > when we started to experience hangs. It seems that Tomcat 
> accepts the
> > request, then our and Tapestry's code do something, but it 
> never finishes.
> > When we hit the stop button in the browser and look at the 
> HTML we can see
> > that it's all there. I'm not talking about form 
> submissions, but regular
> > pages.
> >
> > This behaviour either starts after the app has been idle 
> for some time or in
> > the middle of user actions. There is no load - just one 
> user active. With a
> > significantly smaller application we see the same behaviour.
> >
> > Two days ago we switched to Sun JDK 1.5 for our large 
> application and since
> > then there are no more hangs.
> >
> > There was a report here on the mailinglist about trouble 
> with a javassist
> > and using a pre-release 3.6.0.CR1. At least on the Mac with 
> the pre-release
> > JDK 1.6 that didn't not really solve the problem. It just 
> shows up later.
> >
> > At the moment I feel that Tapestry 5.0.5 requires JDK 1.5.
> >
> > Stephan
> >
> > --
> > View this message in context: 
> http://www.nabble.com/T5-on-JDK-1.6-or-newer-tf4324659.html#a12316191
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> -- 
> Howard M. Lewis Ship
> Partner and Senior Architect at Feature50
> 
> Creator Apache Tapestry and Apache HiveMind
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Restricting Page Access

2007-08-24 Thread Nick Westgate (Work)

Also, just as a reminder, base classes must not go in the pages package.

Cheers,
Nick.



César Les wrote:
> 
> A little mistake  myPage MUST extends SecurePage of course :)
> 
> On 8/24/07, César Lesc <[EMAIL PROTECTED]> wrote:
>> If you have a base class for your protected pages then onActivate
>> event will trigger first on the parent then in the child if return
>> value of the parent onActivate event is null. This work fine in my
>> project, I don´t use any annotation for this just declare:
>>
>> public abstract class SecurePage{
>>
>>Class onActivate(){
>>// check security return null if ok
>>}
>> }
>>
>>
>> then
>>
>> public class myPage{
>>
>> void onActivate(){
>>
>>// do something
>> }
>>
>> }
>>
>>
>> Regards
>>
>> César.
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-T5--Restricting-Page-Access-tf4325658.html#a12321896
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Restricting Page Access

2007-08-24 Thread César Lesc
A little mistake  myPage MUST extends SecurePage of course :)

On 8/24/07, César Lesc <[EMAIL PROTECTED]> wrote:
> If you have a base class for your protected pages then onActivate
> event will trigger first on the parent then in the child if return
> value of the parent onActivate event is null. This work fine in my
> project, I don´t use any annotation for this just declare:
>
> public abstract class SecurePage{
>
>Class onActivate(){
>// check security return null if ok
>}
> }
>
>
> then
>
> public class myPage{
>
> void onActivate(){
>
>// do something
> }
>
> }
>
>
> Regards
>
> César.
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Restricting Page Access

2007-08-24 Thread César Lesc
If you have a base class for your protected pages then onActivate
event will trigger first on the parent then in the child if return
value of the parent onActivate event is null. This work fine in my
project, I don´t use any annotation for this just declare:

public abstract class SecurePage{

   Class onActivate(){
   // check security return null if ok
   }
}


then

public class myPage{

void onActivate(){

   // do something
}

}


Regards

César.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5]: Question about temporary properties

2007-08-24 Thread Josh Canfield
> anyway?  If the loop can already figure these out, make them read-only
> properties of the loop.  Then you could reference them like ${loop_id.index}
> or ${loop_id.value}.
>
That'd be nice in some cases, but there are also times when I want to
be able to access them through my component class. I like being able
to separate out my rendering logic from my page so that I could change
it in one place. For instance, if you want to color rows of a table
its nice to be able to do something like

...

and let the component decide the row colouring scheme based on the
rows position. I suppose you could access the Loop component directly
to ask it it's position when getRowClass() is called. This leaves you
with a pretty clean template, I suppose potentially at the expense of
the class file...

Josh

-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5] Restricting Page Access

2007-08-24 Thread Robin Helgelin
On 8/24/07, Charles Mason <[EMAIL PROTECTED]> wrote:
> @Secured("ROLE_ADMIN")
> public class AdminPage
> {
> }
>
> I was wondering how this worked. I am assuming its through some sort
> of T5 service. I was looking at the documentation on the T5 site,
> although I can't figure how to do something like that. I also had a
> look at the Tapestry 5 acegi library. But not knowing acegi, its hard
> to see how this works in the source.
>
> I was wondering if someone could tell me the basic principle of what I
> need to write or implement to be able to hook in the to the page
> loading procedure  from just an annotation.

The tapestry5-acegi library adds a few request filters that run
between your browser and the T5 engine. It also adds a few hooks to
your classes defined by the @Secured annotation. These hooks are
executed before your class by a few Acegi classes which checks right
permissions/roles, etc and either gives you access to the page or
redirects you to the defined login page.

Depending on your needs, Acegi might be the bigger hammer to punch the
little nail :-).

To ask your second question, the code tapestry5-acegi uses to wrap
around the class is found here in this service:


-- 
regards,
Robin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5] Restricting Page Access

2007-08-24 Thread Charles Mason
Firstly I just want to say Tapestry 5 is amazing, Tapestry 4 was very
good but Tapestry 5 is outstanding. One thing I haven't figured out
how to do the Tapestry 5 way is controlling page access.

On many sites I write there is often a need to password protect a
large number of pages. The way I usually do it in Tapestry 4 was to
put an object in the application state once the user logged in. Then
every restricted page was a sub class of my RestrictedPage class. The
RestrictedPage class was a subclass of Page, which when activated
check the existence of the Application Sate Object. If the user wasn't
logged in there was no application state object they weren't logged
in.

I have been trying to do a similar thing in Tapestry 5, my first
problem was that I couldn't get all of the annotations and special
methods (like onActivate) to work if declared in the base class
RestrictedPage. The same code worked fine in the actual page class,
however I don't really want a big chunk of identical code in every
class of a restricted page, as that would make future changes to the
login system difficult. I assume its a feature rather than a bug that
these annotations and special methods don't work if defined in the
base class.

I was looking at various solutions to this and found the Tapestry 5
acegi library, http://www.localhost.nu/java/tapestry5-acegi/ It has a
really nice secured annotation to do a similar thing e.g.

@Secured("ROLE_ADMIN")
public class AdminPage
{
}

I was wondering how this worked. I am assuming its through some sort
of T5 service. I was looking at the documentation on the T5 site,
although I can't figure how to do something like that. I also had a
look at the Tapestry 5 acegi library. But not knowing acegi, its hard
to see how this works in the source.

I was wondering if someone could tell me the basic principle of what I
need to write or implement to be able to hook in the to the page
loading procedure  from just an annotation.


Charlie M

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Memory consumption in T4.1.2 - Hard data

2007-08-24 Thread Jesse Kuhnert
Hmmm...well,  I don't think I like the sound of any of that.  I'm just
going to pretend this problem doesn't exist.   (just kidding)

I had thought I was doing something special with the ognl compilations
that would cause its generated classes to not hang around afterwards
in any pools.

I'll take a look at things this weekend and am sure a fix will appear
in between now and Monday - if there is a reasonable fix to be found.
(in 4.1.3 snapshot form)

On 8/24/07, Bryan Dotzour <[EMAIL PROTECTED]> wrote:
> I and another colleague of mine have been investigating what seems to be
> a "memory leak" in our Tapestry application for about a month since we
> upgraded to T4.1.2.  I won't bore you with the saga of the last month,
> but I would like to present the data I've gathered and look to the list
> for a proposed solution.  I was reading a recent thread in which Jesse
> said (08/09/2007):
>
>
>
> "There is a map that grows as large as the system using it internally to
> javassist of various cached reflection info - but it doesn't leak in any
> way."
>
> This is precisely what I've found in profiling our application and it
> *appears* to be this map that is causing our applications to eventually
> run out of memory.
>
> The YourKit profiler shows me that, as time goes on, there is an
> instance of HiveMindClassPool  that grows and grows as class instances
> are created.  This class extends from javassist.ClassPool and is the map
> that Jesse is talking about in his quote above.  And he's right, I
> wouldn't say that the class pool "leaks" either because it looks like
> it's designed to retain that memory until the class pool itself is no
> longer needed.
>
>
>
> Take this quote from the javassist.ClassPool javadocs:
>
> "Memory consumption memo:
> ClassPool objects hold all the CtClasses that have been created so that
> the consistency among modified classes can be guaranteed. Thus if a
> large number of CtClasses are processed, the ClassPool will consume a
> huge amount of memory. To avoid this, a ClassPool object should be
> recreated, for example, every hundred classes processed. Note that
> getDefault() is a singleton factory. Otherwise, detach() in CtClass
> should be used to avoid huge memory consumption. "
>
> This huge memory consumption by the ClassPool is what I was seeing. In
> particular it is the ClassPool that is held onto by OgnlRuntime.
> Inspecting this object in the profiler showed that it has a map
> containing about 45,000 classes.  All of the keys into this map were
> things like:  "ASTTest_11494aca9af" and "ASTAnd_11494ace4fb" and the
> values are instances of javassist.CtNewClass.  Each entry in this map
> looks like it retains about 1,900 bytes, for a grand total of about 90
> MB of memory used.
>
> These numbers came from my staging deployment where I had the profiler
> attached, using some reflection tricks I was able to look at a
> production site and found that it had about 240,000 items in that class
> pool.. approximately 450 MB of memory.
>
> So I guess the questions in my mind are:  Why are there so many classes
> in the pool?  Why does the number only ever go up?  Do those classes
> really need to stay in the pool forever?
>
>
>
>
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DynamicSelectionList Hivemind NullPointerException

2007-08-24 Thread Shing Hing Man
I have just downoloaded
manTap4Library-1.3-src.jar from Tassel  and verified
all the files 
are same as my local copy. I am running Tap 4.0.2 
as well and the component works.

It is strange that you have problem with it.
Anyway, I am glad you have found a solution.

Shing 



--- Jacob Arnold <[EMAIL PROTECTED]> wrote:

> I was able to fix the NullPointer by adding this
> code 
> abovecycle.getParameter(_childId) in the
> rewindFormComponent() method of 
> DynamicSelectionList:
> 
> String suffix = "";
> if (getIndex() > 0) {
>   suffix = "_" + (getIndex() - 1);
> }
> _childId = getId() + suffix;
> 
> It looks like it's working perfectly now.
> 
> Jacob
> 
> 
> 
> Ulrich Stärk wrote:
> > It seems to me that this component is broken. When
> I try to test this 
> > my browser complains about javascript errors and
> the child list stays 
> > empty. I don't know whats wrong with it and I'm
> too lazy to debug it. 
> > You should contact the author of the component to
> get a fix.
> >
> > Uli
> 
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Home page : http://www.lombok.demon.co.uk/



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5]: Question about temporary properties

2007-08-24 Thread Kevin Menard
Well, on the one hand I guess that means it's not supported yet.  But on the
other, it's nice to see that there's interest in it.

Taking it a step further, it'd be nice if you didn't even need to bind a
value and if they just became properties of the component itself.  E.g., why
supply a value or an index parameter if they're likely to be read-only
anyway?  If the loop can already figure these out, make them read-only
properties of the loop.  Then you could reference them like ${loop_id.index}
or ${loop_id.value}.

-- 
Kevin


On 8/24/07 1:49 PM, in article
[EMAIL PROTECTED], "Josh Canfield"
<[EMAIL PROTECTED]> wrote:

> Interesting idea.
> 
> You could look at contributing a BindingSource, call it 'variable'.
> You'd need to investigate how they are created, not sure about typing
> the values, the get/set in the Binding interface are Object so you may
> be able to get away with out worrying about it:
> 
> 
>   ${variable:theValue}
> 
> 
> Look at the TapestryModule for details about adding BindingSource...
> http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/src-html/org/apache
> /tapestry/services/TapestryModule.html
> (line 329)
> 
> Any reason something like that couldn't work?
> 
> Josh
> 
> On 8/24/07, Kevin Menard <[EMAIL PROTECTED]> wrote:
>> Hi,
>> 
>> Now that T4 is likely to go the way of the dodo and I'm looking at a new
>> app, I'm evaluating T5 along with several other frameworks.  I'm trying to
>> get some info on T5 that may help out.
>> 
>> It appears that the page spec has gone away in T5.  While it was optional in
>> T4, one of the things I found myself using it for was the declaration of
>> temporary properties.  I did not want to pollute my page classes with the
>> temporary property used to hold a For loop's value, for example.  Aside from
>> aesthetics, this would create a problem with code analyzers that would
>> inaccurately mark sections as unused.  Someone would invariably delete them,
>> then the app would stop working.
>> 
>> Is my only option in T5 to declare the property in the page class?  Or is
>> there some other way to handle this case?
>> 
>> As an aside, I even had an idea for cleaning this up in T4 [1]
>> 
>> Thanks for any info,
>> Kevin
>> 
>> [1] -- https://issues.apache.org/jira/browse/TAPESTRY-1694
>> 
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5.0.5] Caching and IE6

2007-08-24 Thread Josh Canfield
On 8/24/07, Siddhartha Argollo <[EMAIL PROTECTED]> wrote:
> With auto-links I wanted to say "links to the same page".
> For example, when the user clicks the link, a condition for an if is
> met, rendering a block.
> With IE, instead of the new state of the page, it shows the same state
> before the click.
> I will be foreced to break the logic in several pages, instead of using
> if and blocks...
> In the case below, doesn't  the date interfere with the URL?

What is an auto-link? What layer are your "if" conditions in? The
javascript? tapestry template? Can you provide a snippet of code for
the links that don't work?

Appending date to your url is a pretty common cache-busting technique,
how could it interfere with the url? Just ignore it in your code...

-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5]: Question about temporary properties

2007-08-24 Thread Thiago H de Paula Figueiredo
On Fri, 24 Aug 2007 14:49:39 -0300, Josh Canfield <[EMAIL PROTECTED]>  
wrote:



Interesting idea.

You could look at contributing a BindingSource, call it 'variable'.
You'd need to investigate how they are created, not sure about typing
the values, the get/set in the Binding interface are Object so you may
be able to get away with out worrying about it:


  ${variable:theValue}



Very interesting idea!
As far as I thought about this topic, maybe a threaded service would be a  
nice way to implement this, as we have to clear these variables after they  
were used. Tapestry-IoC can notify thread-scoped services the thread has  
finished its execution.
My only doubt is about how the prop:binding would deal with these  
"untyped" values.


--
Thiago H. de Paula Figueiredo
Desenvolvedor, Instrutor e Consultor de Tecnologia
Eteg Tecnologia da Informação Ltda.
http://www.eteg.com.br

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5]: Question about temporary properties

2007-08-24 Thread Josh Canfield
Interesting idea.

You could look at contributing a BindingSource, call it 'variable'.
You'd need to investigate how they are created, not sure about typing
the values, the get/set in the Binding interface are Object so you may
be able to get away with out worrying about it:


  ${variable:theValue}


Look at the TapestryModule for details about adding BindingSource...
http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/src-html/org/apache/tapestry/services/TapestryModule.html
(line 329)

Any reason something like that couldn't work?

Josh

On 8/24/07, Kevin Menard <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Now that T4 is likely to go the way of the dodo and I'm looking at a new
> app, I'm evaluating T5 along with several other frameworks.  I'm trying to
> get some info on T5 that may help out.
>
> It appears that the page spec has gone away in T5.  While it was optional in
> T4, one of the things I found myself using it for was the declaration of
> temporary properties.  I did not want to pollute my page classes with the
> temporary property used to hold a For loop's value, for example.  Aside from
> aesthetics, this would create a problem with code analyzers that would
> inaccurately mark sections as unused.  Someone would invariably delete them,
> then the app would stop working.
>
> Is my only option in T5 to declare the property in the page class?  Or is
> there some other way to handle this case?
>
> As an aside, I even had an idea for cleaning this up in T4 [1]
>
> Thanks for any info,
> Kevin
>
> [1] -- https://issues.apache.org/jira/browse/TAPESTRY-1694
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 on JDK 1.6 or newer

2007-08-24 Thread Howard Lewis Ship
An earlier posting on this list highlighted a bug in concurrency on
some version of JDK 1.6.  Please check into that, the symptoms sound
similar to what you see.

On 8/24/07, Stephan Schwab <[EMAIL PROTECTED]> wrote:
>
> We've been experiencing strange behaviour of our now growing application
> Savila and as well with another project we are working on. Both use Tapestry
> 5.0.5. Our development machines run with Mac OS X and we use JDK 1.5 that
> comes with it. We deploy to Linux with Sun's JDK 1.6 and Tomcat 6.0.10.
>
> Our application Savila ran fine on JDK 1.6 with Tapestry 5.x until last week
> when we started to experience hangs. It seems that Tomcat accepts the
> request, then our and Tapestry's code do something, but it never finishes.
> When we hit the stop button in the browser and look at the HTML we can see
> that it's all there. I'm not talking about form submissions, but regular
> pages.
>
> This behaviour either starts after the app has been idle for some time or in
> the middle of user actions. There is no load - just one user active. With a
> significantly smaller application we see the same behaviour.
>
> Two days ago we switched to Sun JDK 1.5 for our large application and since
> then there are no more hangs.
>
> There was a report here on the mailinglist about trouble with a javassist
> and using a pre-release 3.6.0.CR1. At least on the Mac with the pre-release
> JDK 1.6 that didn't not really solve the problem. It just shows up later.
>
> At the moment I feel that Tapestry 5.0.5 requires JDK 1.5.
>
> Stephan
>
> --
> View this message in context: 
> http://www.nabble.com/T5-on-JDK-1.6-or-newer-tf4324659.html#a12316191
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Howard M. Lewis Ship
Partner and Senior Architect at Feature50

Creator Apache Tapestry and Apache HiveMind

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: T5 on JDK 1.6 or newer

2007-08-24 Thread Joel Wiegman
Hrm... I've been running a reasonably robust production app on T5.05 and
JDK 1.6 and haven't seen any "hangs".   I develop on Jetty but deploy to
SJSAS, which runs Catalina (Tomcat's servlet container).  Production is
Linux and development is Windows.  I also have 92 integration tests and
unit tests that use the Tapestry-provided testing tools and haven't
experienced any problems there either.

Can you be more specific with the problem?

Also, I think I've been to your blog... my good friend Josh Hicks sent
me there one day when I was trying to decide if Tapestry a good choice
for a UI framework.  :-)

-Original Message-
From: Stephan Schwab [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 24, 2007 1:01 PM
To: users@tapestry.apache.org
Subject: T5 on JDK 1.6 or newer


We've been experiencing strange behaviour of our now growing application
Savila and as well with another project we are working on. Both use
Tapestry 5.0.5. Our development machines run with Mac OS X and we use
JDK 1.5 that comes with it. We deploy to Linux with Sun's JDK 1.6 and
Tomcat 6.0.10. 

Our application Savila ran fine on JDK 1.6 with Tapestry 5.x until last
week when we started to experience hangs. It seems that Tomcat accepts
the request, then our and Tapestry's code do something, but it never
finishes.
When we hit the stop button in the browser and look at the HTML we can
see that it's all there. I'm not talking about form submissions, but
regular pages.

This behaviour either starts after the app has been idle for some time
or in the middle of user actions. There is no load - just one user
active. With a significantly smaller application we see the same
behaviour.

Two days ago we switched to Sun JDK 1.5 for our large application and
since then there are no more hangs.

There was a report here on the mailinglist about trouble with a
javassist and using a pre-release 3.6.0.CR1. At least on the Mac with
the pre-release JDK 1.6 that didn't not really solve the problem. It
just shows up later.

At the moment I feel that Tapestry 5.0.5 requires JDK 1.5.

Stephan

--
View this message in context:
http://www.nabble.com/T5-on-JDK-1.6-or-newer-tf4324659.html#a12316191
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: DynamicSelectionList Hivemind NullPointerException

2007-08-24 Thread Jacob Arnold
I was able to fix the NullPointer by adding this code 
abovecycle.getParameter(_childId) in the rewindFormComponent() method of 
DynamicSelectionList:


   String suffix = "";
   if (getIndex() > 0) {
 suffix = "_" + (getIndex() - 1);
   }
   _childId = getId() + suffix;

It looks like it's working perfectly now.

Jacob



Ulrich Stärk wrote:
It seems to me that this component is broken. When I try to test this 
my browser complains about javascript errors and the child list stays 
empty. I don't know whats wrong with it and I'm too lazy to debug it. 
You should contact the author of the component to get a fix.


Uli




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5:Tiles?

2007-08-24 Thread Josh Canfield
On 8/24/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
> Hi Josh,
>
> This works, now if I have this in the Layout.html:
>
> 
>${title}
> 
>
> Layout.java also has a getTtitle to return 'base page';
>
> now how to replace this title with 'somepage' in the somepage.html? I add a
> getTitle in the Somepage.java, but it still picks up 'base page', any
> solution to this?
>

There is no inheritance relationship between Somepage and Layout.
Somepage contains a reference to the Layout object. You have options
with how you are going to update the layout.

You can inject the Layout object into Somepage and manipulate it by:

@Component
private Layout layout; // add getter/setter
protected void beforeRender() {
  layout.setTitle(title);
}

or you can add the title parameter to Layout and pass it from Somepage

Layout.java:
@Parameter // if you want to require a title, add (required=true)
private String title; // add getter/setter

Somepage.html

...


Pick the one that makes the most sense for your application



> A.C.
> Josh Canfield-2 wrote:
> >
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd ">
> >
> > Could it be as silly as a space after the xsd?
> >
> > I have run the following successfully
> >
> > -
> > /src/main/resources/com/thedailytube/ui/tapestry/pages/SomePage.html
> > ---
> >
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > 
> > SomePage Added Sidebar
> > 
> > This is the body content
> > 
> >
> > -
> > /src/main/resources/com/thedailytube/ui/tapestry/components/Layout.html
> > ---
> >
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/T5%3ATiles--tf4310807.html#a12309092
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5:Tiles?

2007-08-24 Thread Josh Canfield
Yes, you can put other components inside of your block parameters.

On 8/23/07, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
>
> Hi Josh,
>
> What defined in the parameter block should be in the same
> page(Somepage.html), can it refer to another html?
>
> A.C.
>
>  somepage.html 
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> 
> Add this additional to the sidebar
> 
> All of this goes into the content section
>
> 
>
>
> Josh Canfield-2 wrote:
> >
> > I love delegate for this type of stuff. If you want to define a layout
> and
> > let the page decide what goes in the layout define a block parameter and
> > use
> > delegate to render it:
> >
> > (this has been truncated and modified for brevity, so while this may not
> > work out of the box it's full size cousin does work...)
> >
> >  somepage.html 
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd
> ">
> > 
> > Add this additional to the sidebar
> > 
> > All of this goes into the content section
> >
> > 
> >
> >
> > - layout.html 
> >
> > http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> > ...
> > 
> >
> > ...
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > ...
> >
> > 
> > 
> >
> > Enjoy,
> > Josh
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/T5%3ATiles--tf4310807.html#a12307416
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


Re: T5:Tiles?

2007-08-24 Thread Josh Canfield
Hey Angelo,

Nick's right, sorry I didn't see that before.

Try using your browsers view source feature, if you're using Firefox look
into getting the firebug plugin (google for a tutorial) so you can inspect
what is actually getting rendered, you should never not know what is getting
generated in your page!

Josh


On 8/23/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
>
> The page location is "http://localhost:8080/Somepage";
>
> "http://localhost:8080/Somepage.html"; is the location of component "html"
> on the page "Somepage". I.e. Tapestry 5 uses "." to specify components.
> (Which might actually be a bad idea.)
>
> Cheers,
> Nick.
>
>
> Angelo Chen wrote:
> > Hi Josh,
> >
> > It works perfectly! thanks, It's my fault, I start the page directly:
> >
> > http://localhost:8080/Somepage.html.
> >
> > this works:
> >
> >  somepage
> >
> > don't know what's the difference.
> >
> > A.C.
> >
> >
> > Josh Canfield-2 wrote:
> >> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd ">
> >>
> >> Could it be as silly as a space after the xsd?
> >>
> >> I have run the following successfully
> >>
> >>
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


T5 on JDK 1.6 or newer

2007-08-24 Thread Stephan Schwab

We've been experiencing strange behaviour of our now growing application
Savila and as well with another project we are working on. Both use Tapestry
5.0.5. Our development machines run with Mac OS X and we use JDK 1.5 that
comes with it. We deploy to Linux with Sun's JDK 1.6 and Tomcat 6.0.10. 

Our application Savila ran fine on JDK 1.6 with Tapestry 5.x until last week
when we started to experience hangs. It seems that Tomcat accepts the
request, then our and Tapestry's code do something, but it never finishes.
When we hit the stop button in the browser and look at the HTML we can see
that it's all there. I'm not talking about form submissions, but regular
pages.

This behaviour either starts after the app has been idle for some time or in
the middle of user actions. There is no load - just one user active. With a
significantly smaller application we see the same behaviour.

Two days ago we switched to Sun JDK 1.5 for our large application and since
then there are no more hangs.

There was a report here on the mailinglist about trouble with a javassist
and using a pre-release 3.6.0.CR1. At least on the Mac with the pre-release
JDK 1.6 that didn't not really solve the problem. It just shows up later.

At the moment I feel that Tapestry 5.0.5 requires JDK 1.5.

Stephan

-- 
View this message in context: 
http://www.nabble.com/T5-on-JDK-1.6-or-newer-tf4324659.html#a12316191
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [General] Changing the name of web app

2007-08-24 Thread Jonathan Barker
Daniel,

Recognize that your servlet container will have its own, sometimes
confusing, way of specifying contexts.

With tomcat, I think it defaults to the name of the war file, overriding
whatever you have in web.xml.  

Once you layer on Eclipse integration - who knows what they override?  I'm
just grateful for the integrations.

I've given up over-thinking it, and my development environment (using
JettyLauncher in Eclipse) shows up one way, and my production environment
(usually JBoss using tomcat, but sometimes pure tomcat) shows up another.

I don't use absolute paths anywhere. I have burned large amounts of time
figuring out how to do it the "tapestry way" for javascript in the past, but
it's worth it for situations like this.

In the end, it all works and shows up where it should.

Jonathan


> -Original Message-
> From: Daniel Jue [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 23, 2007 2:31 PM
> To: Tapestry users
> Subject: [General] Changing the name of web app
> 
> I am attempting to do this, but I am not getting the results I was
> wanting.
> 
> 
> lets say I have an application called MyApp2, which I can access as
> www.mycomp.com/MyApp2
> 
> (Now of course lots of things have this name in it, like the packages,
> some hard coded paths in Javascript, etc)
> 
> And lets say a pointy haired boss decided that the url should now be
> www.mycomp.com/MyApp
> 
> Arg!
> 
> I thought I'd only have to change the in one spot in the Web.xml, but
> it seems like that is just a name (I changed it to MyApp anyway)  I
> tried changing the context root to MyApp (Through Eclipse), and now I
> can access it through both of the above urls!
> 
> As shown in the Tomcat Launcher in Eclipse
> Before:
> Path = /MyApp2
> DocumentBase = MyApp2
> Module = MyApp2
> 
> Currently:
> Path = /MyApp
> DocumentBase = MyApp2
> Module = MyApp2
> 
> This is very strange to me!
> I even made sure to stop the server, remove the module, and manually
> delete the MyApp2 directories under Tomcat (under work and webapps).
> I also cleaned and recompiled.
> 
> I now get MyApp and MyApp2 under the work directory (which saves caches i
> think)
> and only MyApp2 under the webapps directory.
> 
> Any pointers?
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Memory consumption in T4.1.2 - Hard data

2007-08-24 Thread Bryan Dotzour
I and another colleague of mine have been investigating what seems to be
a "memory leak" in our Tapestry application for about a month since we
upgraded to T4.1.2.  I won't bore you with the saga of the last month,
but I would like to present the data I've gathered and look to the list
for a proposed solution.  I was reading a recent thread in which Jesse
said (08/09/2007):

 

"There is a map that grows as large as the system using it internally to
javassist of various cached reflection info - but it doesn't leak in any
way."
 
This is precisely what I've found in profiling our application and it
*appears* to be this map that is causing our applications to eventually
run out of memory.

The YourKit profiler shows me that, as time goes on, there is an
instance of HiveMindClassPool  that grows and grows as class instances
are created.  This class extends from javassist.ClassPool and is the map
that Jesse is talking about in his quote above.  And he's right, I
wouldn't say that the class pool "leaks" either because it looks like
it's designed to retain that memory until the class pool itself is no
longer needed.

 

Take this quote from the javassist.ClassPool javadocs:

"Memory consumption memo: 
ClassPool objects hold all the CtClasses that have been created so that
the consistency among modified classes can be guaranteed. Thus if a
large number of CtClasses are processed, the ClassPool will consume a
huge amount of memory. To avoid this, a ClassPool object should be
recreated, for example, every hundred classes processed. Note that
getDefault() is a singleton factory. Otherwise, detach() in CtClass
should be used to avoid huge memory consumption. "

This huge memory consumption by the ClassPool is what I was seeing. In
particular it is the ClassPool that is held onto by OgnlRuntime.
Inspecting this object in the profiler showed that it has a map
containing about 45,000 classes.  All of the keys into this map were
things like:  "ASTTest_11494aca9af" and "ASTAnd_11494ace4fb" and the
values are instances of javassist.CtNewClass.  Each entry in this map
looks like it retains about 1,900 bytes, for a grand total of about 90
MB of memory used.  

These numbers came from my staging deployment where I had the profiler
attached, using some reflection tricks I was able to look at a
production site and found that it had about 240,000 items in that class
pool.. approximately 450 MB of memory.  

So I guess the questions in my mind are:  Why are there so many classes
in the pool?  Why does the number only ever go up?  Do those classes
really need to stay in the pool forever?  

 

 



Grid inside a form (with checkboxes)

2007-08-24 Thread Ognen Ivanovski

Hello again,

I am trying to setup a Grid with checkboxes where the user can select  
several items and submit.


I wrote a CheckboxGroup/Checkbox set of components derived from the  
RadioGruop/Radio which enables me to render any number of checkboxes  
*all with the same name attribute*. The CheckboxGroup control has a  
value parameter (collection) and will put there all the selected items.


Say the page has the following

public ItemChooser {

  private List avilableItems; // assume proper init, getters  
and setters

  private Set collectedItems; // here too
}

in ItemChooser.html:


  

  of the item.id -->


  

  


The problem is - it doesn't work. I get a NullPointerException inside  
the Loop while it's reading its source parameter.


After digging a while I discovered that The Loop component stores  
some events in the form and one of them (SETUP_FOR_VOLATILE) is  
trying to access the columnNames property of the GridColumns (which  
is bound to the source of the Loop), which in turn accesses the  
dataModel of the dataProvider (the Grid).


However, the Grid doesn't store any initialization events in the form  
at all so the NPE is obvious - the data model isn't


Is this a bug or am I doing something wrong?

Ognen

P.S. Log of the error:

[ERROR] RequestExceptionHandler Processing of request failed with  
uncaught exception: Failure reading parameter source of component  
Page2Role:permissiondisplay.grid.columns.loop: Failure reading  
parameter model of component Page2Role:permissiondisplay.grid:  
java.lang.NullPointerException
org.apache.tapestry.ioc.internal.util.TapestryException: Failure  
reading parameter source of component  
Page2Role:permissiondisplay.grid.columns.loop: Failure reading  
parameter model of component Page2Role:permissiondisplay.grid:  
java.lang.NullPointerException
   at org.apache.tapestry.corelib.components.Form.onAction(Form.java: 
375)
   at  
org.apache.tapestry.corelib.components.Form.handleComponentEvent 
(Form.java)
   at  
org.apache.tapestry.internal.structure.ComponentPageElementImpl.handleEv 
ent(ComponentPageElementImpl.java:893)
   at  
org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerE 
vent(ComponentPageElementImpl.java:998)
   at  
org.apache.tapestry.internal.services.ComponentActionRequestHandlerImpl. 
handle(ComponentActionRequestHandlerImpl.java:81)
   at org.apache.tapestry.internal.services.InternalModule$11.handle 
(InternalModule.java:541)
   at $ComponentActionRequestHandler_1149850824d.handle 
($ComponentActionRequestHandler_1149850824d.java)
   at $ComponentActionRequestHandler_114985081ce.handle 
($ComponentActionRequestHandler_114985081ce.java)
   at  
org.apache.tapestry.internal.services.ComponentActionDispatcher.dispatch 
(ComponentActionDispatcher.java:116)

   at $Dispatcher_114985081d0.dispatch($Dispatcher_114985081d0.java)
   at $Dispatcher_114985081c3.dispatch($Dispatcher_114985081c3.java)
   at org.apache.tapestry.services.TapestryModule$12.service 
(TapestryModule.java:1066)
   at com.telekurs.pass.online.permissiongui.services.AppModule 
$1.service(AppModule.java:75)
   at $RequestFilter_114985081c2.service 
($RequestFilter_114985081c2.java)
   at $RequestHandler_114985081c4.service 
($RequestHandler_114985081c4.java)
   at  
org.apache.tapestry.internal.services.LocalizationFilter.service 
(LocalizationFilter.java:43)
   at $RequestHandler_114985081c4.service 
($RequestHandler_114985081c4.java)
   at org.apache.tapestry.services.TapestryModule$2.service 
(TapestryModule.java:657)
   at $RequestHandler_114985081c4.service 
($RequestHandler_114985081c4.java)
   at org.apache.tapestry.internal.services.StaticFilesFilter.service 
(StaticFilesFilter.java:63)
   at $RequestHandler_114985081c4.service 
($RequestHandler_114985081c4.java)
   at org.apache.tapestry.internal.services.CheckForUpdatesFilter 
$2.invoke(CheckForUpdatesFilter.java:97)
   at org.apache.tapestry.internal.services.CheckForUpdatesFilter 
$2.invoke(CheckForUpdatesFilter.java:88)
   at  
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead 
(ConcurrentBarrier.java:77)
   at  
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service 
(CheckForUpdatesFilter.java:110)
   at $RequestHandler_114985081c4.service 
($RequestHandler_114985081c4.java)
   at $RequestHandler_114985081bc.service 
($RequestHandler_114985081bc.java)
   at org.apache.tapestry.services.TapestryModule$11.service 
(TapestryModule.java:1044)
   at $HttpServletRequestHandler_114985081bb.service 
($HttpServletRequestHandler_114985081bb.java)
   at org.apache.tapestry.TapestryFilter.doFilter 
(TapestryFilter.java:135)
   at org.mortbay.jetty.servlet.WebApplicationHandler$Chain.doFilter 
(WebApplicationHandler.java:334)
   at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch 
(WebApplicationHandler.java:286)
   at org.mortbay.jetty.servlet.ServletHandler.handle 
(ServletHandler.java:567)

   at org.mortbay.http.HttpContext.ha

Re: T5 is production ready ?

2007-08-24 Thread Daniel Jue
I am also using T5 for a project that will go into production in
October.  There are some useful how-tos on the wiki regarding custom
components, etc

On 8/24/07, Marcus <[EMAIL PROTECTED]> wrote:
> Hi Cyrille,
>
> We're using 5.0.5 in production with no problems.
> Anyway, search for "AssetProtectorDispatcher" topic on this forum.
>
> Marcus
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: path to referenced files

2007-08-24 Thread Angelo Chen

works, thanks.

I have to add this:

@Inject
@Path("context:/images/logo.jpg")

private Asset logo;

public Asset getLogo() {
return logo;
}

then in the Layout.html, add: 

img src="${logo}"

is there a way to directly specify it in the html?



Marcus.Schulte wrote:
> 
> yourWebApp/images 
> 
>> -Original Message-
>> From: Angelo Chen [mailto:[EMAIL PROTECTED] 
>> Sent: Friday, August 24, 2007 1:07 PM
>> To: users@tapestry.apache.org
>> Subject: path to referenced files
>> 
>> 
>> Hi,
>> 
>> If I have something like following in the html, which 
>> directory should i put so that it can be picked up during run time:
>> 
>> /images/logo.jpg 
>> 
>> Thanks,
>> 
>> A.C.
>> --
>> View this message in context: 
>> http://www.nabble.com/path-to-referenced-files-tf4322970.html#
>> a12310389
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/path-to-referenced-files-tf4322970.html#a12313869
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[T5]: Question about template <=> page class mapping

2007-08-24 Thread Kevin Menard
Hi,

Another one of my T5 questions.  In T4, I could easily map multiple
templates to the same class in the page spec.  Oftentimes this meant
creating a page spec that did nothing more than specify the class, but this
was more attractive to me than creating an empty Java class that subclasses
the one I really want.

Once again, for reasons of static analysis and dumping unused code, empty
classes can be problematic.  With that in mind, is there any straightforward
way to map multiple templates to a single page class?

Thanks,
Kevin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 is production ready ?

2007-08-24 Thread Marcus
Hi Cyrille,

We're using 5.0.5 in production with no problems.
Anyway, search for "AssetProtectorDispatcher" topic on this forum.

Marcus


[T5]: Question about temporary properties

2007-08-24 Thread Kevin Menard
Hi,

Now that T4 is likely to go the way of the dodo and I'm looking at a new
app, I'm evaluating T5 along with several other frameworks.  I'm trying to
get some info on T5 that may help out.

It appears that the page spec has gone away in T5.  While it was optional in
T4, one of the things I found myself using it for was the declaration of
temporary properties.  I did not want to pollute my page classes with the
temporary property used to hold a For loop's value, for example.  Aside from
aesthetics, this would create a problem with code analyzers that would
inaccurately mark sections as unused.  Someone would invariably delete them,
then the app would stop working.

Is my only option in T5 to declare the property in the page class?  Or is
there some other way to handle this case?

As an aside, I even had an idea for cleaning this up in T4 [1]

Thanks for any info,
Kevin

[1] -- https://issues.apache.org/jira/browse/TAPESTRY-1694



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 is production ready ?

2007-08-24 Thread Robin Helgelin
On 8/24/07, Kolesnikov, Alexander  GNI
<[EMAIL PROTECTED]> wrote:
> T5 isn't production ready, but you can do a lot with it. Some obvious
> features are missing like a control for date entry, some bugs are here
> and there, like validation error messages are misplaced. Despite of
> this, I think you can already build a fully working T5 application. You
> will just need to fix or configure a few things yourself and create a
> few custom components.

I would say the current release is production ready for the features
it got. The problem is that T5 is behind T4 when it comes to core
features/components and ajax.

-- 
regards,
Robin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: T5 is production ready ?

2007-08-24 Thread Kolesnikov, Alexander GNI
T5 isn't production ready, but you can do a lot with it. Some obvious
features are missing like a control for date entry, some bugs are here
and there, like validation error messages are misplaced. Despite of
this, I think you can already build a fully working T5 application. You
will just need to fix or configure a few things yourself and create a
few custom components.

-Original Message-
From: #Cyrille37# [mailto:[EMAIL PROTECTED] 
Sent: 24 August 2007 14:46
To: Tapestry users
Subject: T5 is production ready ?


Hello,
This subject is often present in the list...

I'm working on a project which has to be in production in 1 month. The
business layer is done, and the web part is nearly done with T4.1.2.

I've some time left, and every day I'm thinking about changing to T5 ...

The only T5 missing part seems to be Ajax.
But is T5 is ready for production use ?
If yes, there are 5 releases, so which release is production ready ?

Cyrille

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2007 CIGNA
==


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



T5 is production ready ?

2007-08-24 Thread #Cyrille37#

Hello,
This subject is often present in the list...

I'm working on a project which has to be in production in 1 month.
The business layer is done, and the web part is nearly done with T4.1.2.

I've some time left, and every day I'm thinking about changing to T5 ...

The only T5 missing part seems to be Ajax.
But is T5 is ready for production use ?
If yes, there are 5 releases, so which release is production ready ?

Cyrille

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T4.1 :: async form auto-submit

2007-08-24 Thread Marcelo C. de Freitas
Thanks Patrick,

It didn't work as expected (well, at all), but I saw some
javascript written in the HTML output. I'll just have to dig a little
deeper; at least now I have the right directions.


Regards.

2007/8/24, Patrick Klein <[EMAIL PROTECTED]>:
> Hello,
> >  How can I make a PropertySelection auto-submit an async form when 
> > changed?
> >
> Create an EventListener in your java file listening for the onchange
> event for this element or target. Inside this method you can trigger an
> async update of the page using
> getRequestCycle().getRepsonseBuilder().updateComponent(id)
>
> Regards,
> Patrick
> >  I tried the ordinary "onChange=this.form.submit()" but it causes
> > the entire page to reload and I just want parts of it to do so.
> >
> >  Thanks.
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Marcelo C. Freitas

IM's:
MSN: [EMAIL PROTECTED]
ICQ: 24263609
Jabber: [EMAIL PROTECTED]
GTalk: [EMAIL PROTECTED]
Yahoo: baterausp

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 questions: adding my own initializations; outputing pre-formatted HTML; tree component; javadoc

2007-08-24 Thread Francois Armand

Erik Vullings wrote:

In the end, to create the Tree component (
http://wiki.apache.org/tapestry/Tapestry5TreeComponent) 

ho :) I didn't make the link between this page and you :)

I just opened a Jira issue to ask for the addition of a Tree element in 
the code lib, so that every users may use the same base in place of 
reinventing the wheel. Moreover, if the core developers are ok to add 
such a component, we may hope that it will be more generic, idiomatic of 
Tapestry 5, deeply tested, etc than ours. I post our two reference 
implementations as examples.


--
Francois Armand
Etudes & Développements J2EE
LINAGORA SA - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: path to referenced files

2007-08-24 Thread Michael Wölm

I use
path="context:/images/logo.jpg"

to display the office emblem, for example. But I use T4, doesn't know if 
T5 has is still...
That has the small adavantage that renaming the application doesn't 
force a change to such links.


Regards,
Michael Wölm

[EMAIL PROTECTED] schrieb:
yourWebApp/images 

  

-Original Message-
From: Angelo Chen [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 24, 2007 1:07 PM

To: users@tapestry.apache.org
Subject: path to referenced files


Hi,

If I have something like following in the html, which 
directory should i put so that it can be picked up during run time:


/images/logo.jpg 


Thanks,

A.C.
--
View this message in context: 
http://www.nabble.com/path-to-referenced-files-tf4322970.html#

a12310389
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: path to referenced files

2007-08-24 Thread Marcus.Schulte
yourWebApp/images 

> -Original Message-
> From: Angelo Chen [mailto:[EMAIL PROTECTED] 
> Sent: Friday, August 24, 2007 1:07 PM
> To: users@tapestry.apache.org
> Subject: path to referenced files
> 
> 
> Hi,
> 
> If I have something like following in the html, which 
> directory should i put so that it can be picked up during run time:
> 
> /images/logo.jpg 
> 
> Thanks,
> 
> A.C.
> --
> View this message in context: 
> http://www.nabble.com/path-to-referenced-files-tf4322970.html#
> a12310389
> Sent from the Tapestry - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [T5.0.5] Caching and IE6

2007-08-24 Thread Siddhartha Argollo

With auto-links I wanted to say "links to the same page".
For example, when the user clicks the link, a condition for an if is 
met, rendering a block.
With IE, instead of the new state of the page, it shows the same state 
before the click.
I will be foreced to break the logic in several pages, instead of using 
if and blocks...

In the case below, doesn't  the date interfere with the URL?

Jesse Kuhnert wrote:

I don't know what an "auto link" is - but if you are creating ajax
requests then you have to do something stupid like:

// pseudo javascript
var url = "url";
url += new Date();

Otherwise ie will see the same url and not bother to make the request.
 (a premature optimization I guess)

On 8/22/07, Siddhartha Argollo <[EMAIL PROTECTED]> wrote:
  

Hi all,

I'm having an annoying problem with my pages in IE6. It doesn't happen
with firefox.
When the page has auto-links, sometimes it doesn't refresh when the link
is clicked.
The state before the click continues to be shown in the browser, in
despite of the postback. I have to hit the refresh button to view the
new state of the page. It even happens with the pager of the Grid
component.
I already inject all may pages with




Anybody else has notice that? Is there something else I might try to
solve this issue?

Thanks.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


--
Siddhartha Argollo
Técnico Judiciário
TRE-BA
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



path to referenced files

2007-08-24 Thread Angelo Chen

Hi,

If I have something like following in the html, which directory should i put
so that it can be picked up during run time:

/images/logo.jpg 

Thanks,

A.C.
-- 
View this message in context: 
http://www.nabble.com/path-to-referenced-files-tf4322970.html#a12310389
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 questions: adding my own initializations; outputing pre-formatted HTML; tree component; javadoc

2007-08-24 Thread Robin Helgelin
On 8/24/07, Kheldar666 <[EMAIL PROTECTED]> wrote:
>
> I do this :
>
>
>
> >   In AppModule.java :
> >
> >   public void
> > contributeApplicationInitializer(OrderedConfiguration
> > configuration) {
> >   configuration.add("mainModuleInitializer", new
> > MainModuleInitializer());
> >   }
> >
> > With MainModuleInitializer implementing ApplicationInitializerFilter

Oh, nice! Didn't even know there was such a filter :)

-- 
regards,
Robin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5:Tiles?

2007-08-24 Thread Angelo Chen

Hi Josh,

This works, now if I have this in the Layout.html:


${title}


Layout.java also has a getTtitle to return 'base page';

now how to replace this title with 'somepage' in the somepage.html? I add a
getTitle in the Somepage.java, but it still picks up 'base page', any
solution to this?

A.C.



Josh Canfield-2 wrote:
> 
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd ">
> 
> Could it be as silly as a space after the xsd?
> 
> I have run the following successfully
> 
> -
> /src/main/resources/com/thedailytube/ui/tapestry/pages/SomePage.html
> ---
> 
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> 
> SomePage Added Sidebar
> 
> This is the body content
> 
> 
> -
> /src/main/resources/com/thedailytube/ui/tapestry/components/Layout.html
> ---
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3ATiles--tf4310807.html#a12309092
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 questions: adding my own initializations; outputing pre-formatted HTML; tree component; javadoc

2007-08-24 Thread Kheldar666

I do this :



>   In AppModule.java :
> 
>   public void
> contributeApplicationInitializer(OrderedConfiguration
> configuration) {
>   configuration.add("mainModuleInitializer", new
> MainModuleInitializer());
>   }
> 
> With MainModuleInitializer implementing ApplicationInitializerFilter
> 
> 


Robin Helgelin wrote:
> 
> On 8/23/07, Ben Tomasini <[EMAIL PROTECTED]> wrote:
>> I have the same requirement mentioned in #2.  What is the best approach
>> to
>> handle this with Tapestry 5?  I am thinking of just eager loading a
>> service
>> and invoking the init method in the builder method of the module.  Any
>> other
>> thoughts?
>> > 1. I've started changing the quickstart project to move a current
>> > struts2-spring-jdbc application to T5. Where can I put my dao
>> > initialization  (creation of hsqldb tables, which used to be done via
>> > my ContextListener class in struts2)?
> 
> I use an @EagerLoad service similar to this, example code can be found
> here:
> 
> 
> -- 
> regards,
> Robin
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/T5-questions%3A-adding-my-own-initializations--outputing-pre-formatted-HTML--tree-component--javadoc-tf3872028.html#a12309051
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 questions: adding my own initializations; outputing pre-formatted HTML; tree component; javadoc

2007-08-24 Thread Francois Armand

Erik Vullings wrote:

3. Related to Q2, are there any T5 tutorials on how to develop a tree
component, similar to a grid component? Or does someone already have
it?


I have an example tree component here :
http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/interldap/interldap-wui-t5/trunk/src/main/java/org/interldap/wui/tapestry/components/Tree.java?view=markup&rev=97
And an example of use :
http://svn.forge.objectweb.org/cgi-bin/viewcvs.cgi/interldap/interldap-wui-t5/trunk/src/t5-test/resources/org/interldap/wui/tapestry/pages/TestTree.html?view=markup&rev=139

Basically, the component take a DefaultMutableTreeNode as parameter and 
print it in a preorder traversal.
You can specify a (unique) html element as a level separator. I think it 
would be a good idea to clean the code and extend it in a more generic 
way ;)


Hope it may help (and sorry for the delay, I missed your post)

--
Francois Armand
Etudes & Développements J2EE
LINAGORA SA - http://www.linagora.com
Tél.: +33 (0)1 58 18 68 28
---
InterLDAP - http://interldap.org 
FederID - http://www.federid.org/

Open Source identities management and federation


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T4.1 :: async form auto-submit

2007-08-24 Thread Patrick Klein
Hello,
>  How can I make a PropertySelection auto-submit an async form when 
> changed?
>   
Create an EventListener in your java file listening for the onchange
event for this element or target. Inside this method you can trigger an
async update of the page using
getRequestCycle().getRepsonseBuilder().updateComponent(id)

Regards,
Patrick
>  I tried the ordinary "onChange=this.form.submit()" but it causes
> the entire page to reload and I just want parts of it to do so.
>
>  Thanks.
>
>
>   


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]