Re: [T5] How to tackle memory leak problem (Perm Gem Out of Space)

2009-03-15 Thread Peter Lundberg
Well if the MAT result is normal or not I cannot say. While developing I get PermGenSpace errors daily but a restart is so fast that it does not affect me. In production/test we have not had any issue as we rarely redeploy and if to typically replace the entire war and thus restart the servlet c

Re: "OnEvent" no response

2009-03-15 Thread Zenberg Ding
It's realy helpful, I'll look into it, thank you :) How can I link js tree's internal envent (onSelect(itemIdList) onDblClick(itemId)) with t5 xtree's component when I use createEventLink? Or write js code to encapsulate the original js tree events? Does tapestry5 has some internal mechanisms

Re: Q : Could not find a coercion from type java.lang.String to type java.util.Date

2009-03-15 Thread dwi ardi irawan
It works, Thnx you -- http://www.dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"

Re: "OnEvent" no response

2009-03-15 Thread DH
Use ComponentResources.createEventLink to get the url of relevant events. If you put the xtree component in login page,in your xtree component, componentResources.createEventLink("click", {11,22}) would produce like http://localhost/login.xtree:click/11/22. First to understand url of tapestry: ht

Re: [T5.1] generator meta screws up xml response

2009-03-15 Thread Joost Schouten (mailing lists)
I created https://issues.apache.org/jira/browse/TAP5-584 and added a patch that fixes the problem. If approved I'd love to see it included. Cheers, Joost On Sat, Mar 14, 2009 at 3:09 PM, Howard Lewis Ship wrote: > Seems like a reasonable patch. > > On Fri, Mar 13, 2009 at 8:35 PM, Joost Schouten

Re: Autocomplete problems in IE

2009-03-15 Thread Peter Lundberg
Thanks, yes that would be the way to replace scriptaculous with a patched version. How could one replace or complement the autocomplete.js that is part of tapestry-core? Is creating my own component or tapestry-core.jar the only way? I want as little code for this in my project, I would expect s

Re: [T5] How to tackle memory leak problem (Perm Gem Out of Space)

2009-03-15 Thread CG
Hi all , I got the problem when redeploy the application , then I use MAT to analyse the problem Below is the result of MAT The class "java.io.ObjectStreamClass$Caches", loaded by "", occupies 14,673,024 (30.88%) bytes. The memory is accumulated in classloader/component "org.apache.tapestry5.in

Re: "OnEvent" no response

2009-03-15 Thread Zenberg Ding
I still confused with how to fire javascript object event on t5's components way. so the code maybe not resonable :( Is there any document on it? How do you fire the 'click' event in your xtree component? This 'click' is not the one 'click' in html dom. Thanks, DH - Original Message --

Re: "OnEvent" no response

2009-03-15 Thread Zenberg Ding
Oh, That's just what I trying. Write a tree component is my evaluating t5 's way. And I still confused with how to fire a js tree's envents such as "onCheckNode(itemId) onExpandNode(itemId)" on t5's way. Is there any document on this subject? How do you fire the 'click' event in your x

Re: "OnEvent" no response

2009-03-15 Thread DH
How do you fire the 'click' event in your xtree component? This 'click' is not the one 'click' in html dom. Thanks, DH - Original Message - From: "Ding Zenberg" To: Sent: Monday, March 16, 2009 10:11 AM Subject: "OnEvent" no response > Hi all, > > Here is the case, I put one compon

Re: "OnEvent" no response

2009-03-15 Thread Thiago H. de Paula Figueiredo
Em Sun, 15 Mar 2009 23:11:02 -0300, Ding Zenberg escreveu: @OnEvent(value="click", component="xtree") void onTreeClick() { System.out.println("tree clicked ..."); } but there is no output expected. I want to know where's pro

"OnEvent" no response

2009-03-15 Thread Ding Zenberg
Hi all, Here is the case, I put one component named "xtree" on start page, then I wrote on method to receive events from this component. @OnEvent(value="click", component="xtree") void onTreeClick() { System.out.println("tree clicked

Re: t5: catching exception in onException

2009-03-15 Thread luna_guo
See http://tapestry.apache.org/tapestry5/guide/event.html onException caches exceptions throwed by event handlers. Angelo Chen wrote: > > Hi, > > I'm trying to use onException to catch exceptions, when I throw an > exception from onActivate, onException can catch it, but if it is thrown > from

Re: Autocomplete problems in IE

2009-03-15 Thread Qingbo Zhou
Hi Peter, You can have a look at this page: http://tapestry.apache.org/tapestry5/guide/conf.html Near the bottom there's a configuration option: tapestry.scriptaculous The path to the embedded copy of script.aculo.us packaged with Tapestry. This value may be overridden to use a different ve

Re: jetty and intellij

2009-03-15 Thread Luther Baker
Thanks for all the suggestions. I'll try these out Monday morning. -Luther On Sat, Mar 14, 2009 at 7:29 PM, Angelo Chen wrote: > > Hi, > > I have similar problem in 8.0, but when I upgraded to 8.1, it went away, my > config is very simple, just add a Maven configuration, add jetty:run, > that's

Re: Q : Could not find a coercion from type java.lang.String to type java.util.Date

2009-03-15 Thread Fernando Padilla
Though I agree that String<->Date by default is a no-go. I think tapestry could have a Long<->Date coercion. :) Howard Lewis Ship wrote: Converting between strings and dates is too finicky for Tapestry to handle automatically (without screwing it up for some people). Instead of including the

Re: about "OnEvent" no response

2009-03-15 Thread Geoff Callender
Please start a new thread for this new topic. On 16/03/2009, at 4:01 AM, Zenberg Ding wrote: Hi all, Here is the case, I put one component named "xtree" on start page, then I wrote on method to receive events from this component. @On

Re: Q : Could not find a coercion from type java.lang.String to type java.util.Date

2009-03-15 Thread Howard Lewis Ship
Converting between strings and dates is too finicky for Tapestry to handle automatically (without screwing it up for some people). Instead of including the Dates as event context values,, try converting them to long values (seconds since "the epoch") and then convert them back to usable Dates insi

Re: IF component in tapestry 5 ?

2009-03-15 Thread dwi ardi irawan
thnx u for the information^_^v

Re: Q : IF component in tapestry 5 ?

2009-03-15 Thread dwi ardi irawan
thnx u. it works now -- http://www.dwiardiirawan.com "cos everyone could be extraordinary...lighten up !"

Q : Could not find a coercion from type java.lang.String to type java.util.Date

2009-03-15 Thread dwi ardi irawan
hi, could anyone help me here's my code @Persist("flash") @Property private Date twawal, twakhir; . public Link getDailyChart(){ System.out.println(twawal); // OK System.out.println(twakhir); // OK return _resources.createEventLink("chart", new Object[]{"400"

about "OnEvent" no response

2009-03-15 Thread Zenberg Ding
Hi all, Here is the case, I put one component named "xtree" on start page, then I wrote on method to receive events from this component. @OnEvent(value="click", component="xtree") void onTreeClick() { System.out

Re: [T5] How to tackle memory leak problem (Perm Gem Out of Space)

2009-03-15 Thread Peter Lundberg
Another way is to check if the application is getting reloaded while you are running - hopefully easily observable in the log. Each reload will cause more things to get generated and eat up perm gen space. There is some configuration you can also use to either increase your jvm permgens space or l

Autocomplete problems in IE

2009-03-15 Thread Peter Lundberg
Hi, I have a nice web-app that was a pleasure to write in T5; but am running into problems that I need some help with. The autocomplete mixin works just fine in FF3 etc but there is a issue that seriously affects its usability in IE (I have only tested 7) and end-users are complaining. When typing

Re: T5: getting new Hibernat e session in a lengthy thread

2009-03-15 Thread Angelo Chen
Hi, The process is in a separate thread, wrapped in a service, and Session is injected into the service, the process takes quite a long time, I have to restart tomcat service almost everyday. Now, instead of injecting Session, I injected the HibernateSessionSource, then I can control the session

Re: T5: getting new Hibernate session in a lengthy thread

2009-03-15 Thread Lutz Hühnken
Hi Angelo, I think the point of sticking the session to the request is to keep it open until the request is processed, to avoid LazyInitializationExceptions during view rendering. So you might have to do your session management without the HibernateSessionManager. Then again, I wonder if it reall

Re: [T5] Web Service

2009-03-15 Thread Lutz Hühnken
Hi Dan, I think the usual approach would be to expose a remote interface to your application not through tapestry (or any other web framework), but by use of some remoting framework. Depending on your requirements (binary or text, one client platform or many, client architecture, security and tran

Re: base64 + url encoded activation context parameter

2009-03-15 Thread Lutz Hühnken
Hi Borut, right, Base 64 encoding is no good for URLs. See "http://en.wikipedia.org/wiki/Base64#URL_applications";. > What is the cleanest solution? Is there a known url safe > encoder/decoder which I can use or do I have to write one myself? I know there is one implementation included in the bo

t5: catching exception in onException

2009-03-15 Thread Angelo Chen
Hi, I'm trying to use onException to catch exceptions, when I throw an exception from onActivate, onException can catch it, but if it is thrown from getEntries which is a property accessed from the .tml, onException can't catch it, t5's ExceptionReport got it, any idea why I can't catch this exce

Re: [T5] How to tackle memory leak problem (Perm Gem Out of Space)

2009-03-15 Thread CG
thx for the reply, i'll get a try on the MAT ... thx .. CG On Sat, Mar 14, 2009 at 10:13 PM, Geoffrey Wiseman wrote: > On Sat, Mar 14, 2009 at 5:14 AM, CG wrote: > >> Hi all,  I have used T5 to write an application , it works fine , >> however, after using for a while  , it will run into proble

Re: [T5]form filed component not so handy.

2009-03-15 Thread Angelo Chen
multiple checkbox is something I'd like to have. luna_guo wrote: > > Tapestry's form related components is not very handy in some case.for > example: > select: > render out a list of options from database is complex,and what shall we do > when the options are rendered by javascript?More complex

[T5]form filed component not so handy.

2009-03-15 Thread luna_guo
Tapestry's form related components is not very handy in some case.for example: select: render out a list of options from database is complex,and what shall we do when the options are rendered by javascript?More complex,eh? checkbox can only used for a single boolean value.Multiple check is often