RE: Help in Javascript

2005-09-26 Thread Manjith Kumar Adapa
Hi, Thanks Pat for the solution but I get an error saying: - "Element type "context-asset" must be declared." Moreover I am using Tapestry 4... Is there anything do I need to configure apart from the .page and .html Thanks & Regards, Manjith Kumar -Original Message- From: Patrick Ca

RE: How ro apply Localization

2005-09-26 Thread Anjali Abraham
Hi, Everything works but what about for the input tag with the type=submit an type=reset I have given in the code like this: But on the button, I am getting its display name as "ognl:rRDTO.reset"... For this how can we apply localization Please respond, Thanks in advance, Re

Re: contrib:Table generic filter feature

2005-09-26 Thread Tibor Vatai
Louis Meiring írta: Hi there, I am using the Tapestry Table component and am thinking about having a generic Filter feature that I can reuse throughout my web-app. I.e., the user clicks on a link at the top of the table, he then gets various input fields based on the columns that are in the t

RE: How ro apply Localization

2005-09-26 Thread Anjali Abraham
Thanks a lot for the suggestion and reply... it worked... Thanks once again.. Regards, Anjali -Original Message- From: Muralidhar Y. [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 27, 2005 9:17 AM To: 'Tapestry users' Subject: RE: How ro apply Localization If you want to acieve bo

RE: Better way to statically get ahold of the visit object?

2005-09-26 Thread Muralidhar Y.
Sorry a small correction :- Public class Visit{ // constructor. public Visit(){ HttpSession s = (HttpSession) fCurrentSession.get(); s.setAttribute("visit", this) ; } // other methods and code goes here. }//end of the Visit class. public static V

RE: How ro apply Localization

2005-09-26 Thread Muralidhar Y.
If you want to acieve both you have to use "FieldLabel" component and map its display name parameter to localisation. Look at the following one. Always you have to use "FieldLabel" in combination with "ValidField" . Origin : Muralidhar Y Software Engineer, Adastrum technolog

RE: Better way to statically get ahold of the visit object?

2005-09-26 Thread Muralidhar Y.
Look at the following code. It might give you idea and better way of doing. Public class Visit{ // constructor. public Visit(){ HttpSession s = (HttpSession) fCurrentSession.get(); s.setAttribute("visit", this) ; } // other methods and code goes here. }

RE: Working with Validation Delegates in Code

2005-09-26 Thread Muralidhar Y.
Hi Patrick Casey, yes it is the way in 3.0.3. but after you get the list of field trakings instead of for loop get java.util.Iterator from the java.util.List it might be an easy way. Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division

Re: Working with Validation Delegates in Code

2005-09-26 Thread Filip S. Adamsen
Oops, that's something new - no @since in the source, hence I didn't notice... I believe what you're doing now is the only way in 3.0.3, but I might be wrong. -Filip Patrick Casey wrote: Sorry to be dense here, but I'm not seeing a getErrorRenderers() method in the IValidationDelegate

RE: Working with Validation Delegates in Code

2005-09-26 Thread Patrick Casey
Sorry to be dense here, but I'm not seeing a getErrorRenderers() method in the IValidationDelegate interface. Is that something that went into tapestry 4.0? I'm still on 3.0.3. I think I found a 3.0.3 way of doing it, but I'm not super happy about it. IValidationD

Re: Working with Validation Delegates in Code

2005-09-26 Thread Dan Adams
I developed the same kind of component. Here's my code (nevermind the 'message' stuff): error message here You just call getErrorRenderers to get each of the IRender objects (which just display strings by default). On Mon, 2005-09-26 at 14:05 -0700, Patrick Casey wrote: > I've run

Re: Working with Validation Delegates in Code

2005-09-26 Thread Filip S. Adamsen
Doh, sorry - I meant IRender#toString()... :$ -Filip Filip S. Adamsen wrote: Hmm, you could query IValidationDelegate#getErrorRenderers() and call IRender#getString() on each object in the returned list to get the error messages? -Filip Patrick Casey wrote: > All I really want are the er

Re: Working with Validation Delegates in Code

2005-09-26 Thread Filip S. Adamsen
Hmm, you could query IValidationDelegate#getErrorRenderers() and call IRender#getString() on each object in the returned list to get the error messages? -Filip Patrick Casey wrote: > All I really want are the error strings; my error rendering will take care of formatting and rendering them, b

Working with Validation Delegates in Code

2005-09-26 Thread Patrick Casey
I've run into a situation where I have multiple levels of validation going on during a form submit; 1) Form level validation (collected in an IValidationDelegate). 2) Metadata level validation (Collected in my own ErrorAggregator). 3) Database level validation (Collected in my own ErrorAgg

Better way to statically get ahold of the visit object?

2005-09-26 Thread Patrick Casey
Is there a better way to get ahold of the visit object statically (e.g. without access to the cycle or page objects?). Right now I'm using: public static Visit getVisit() { HttpSession s = (HttpSession) fCurrentSession.get(); Enum

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
That looks like it'd work, yep. Dunno if the Hibernate session is the root of your bug, but A) it might be and B) that looks like it'll clear it out. --- Pat > -Original Message- > From: seloha . [mailto:[EMAIL PROTECTED] > Sent: Monday, September 26, 2005 1:15 PM > To: t

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
Pat, So in my case then since the Hibernate session is controlled by Spring after getting the large list I could subsequently call a method in my DAO which looks something like this: public void clearSessionObjects(List bigList) { Iterator bigListIt = bigList.iterator(); while (bigListI

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Mark Stang
You were right to suggest it, it can't hurt. Mark -Original Message- From: Patrick Casey [mailto:[EMAIL PROTECTED] Sent: Mon 9/26/2005 2:08 PM To: 'Tapestry users' Subject: RE: OutOfMemoryError Tapestry 4.0 True, but it's better than not asking at all :). In my experience syst

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
True, but it's better than not asking at all :). In my experience system.gc() *usually* results in an immediate gc sweep in a development environment where the JVM isn't usually all that busy. You're right though, it's a request, not a demand. --- Pat > -Original Mes

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Mark Stang
I don't believe that calling System.gc() will have the immediate affect you require. The call is more of a request than a command. -Original Message- From: seloha . [mailto:[EMAIL PROTECTED] Sent: Mon 9/26/2005 12:54 PM To: tapestry-user@jakarta.apache.org Subject: RE: OutOfMemoryError

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
To clean out a hibernate session: s.clear(); That will clean everything out of it. Be warned though that it clears *everything* out of it, not just the stuff you recently loaded. A safer way is to evict each object one at a time as you load it e.g. Sesison s = Hi

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
Pat, 1) Yes I am setting the object list to null. 2) I have not put a log statement in the code to check it but I have set a break point in debug mode and each time the page was rendered the code in pageDetached(PageEvent event) was run. 3) There is no other code which references the list ob

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Sergei Dubov
Paul, Instead of poking in the dark, get your boss (assuming you have one :-)) to buy you a good memory profiler like YourKit (http://www.yourkit.com) or JProbe (http://www.quest.com/jprobe/) and you will be golden. Serge P.S. YourKit is just great... seloha . wrote: Yes I do in the develop

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
Well, it really smells to me like a leak, largely because 5,000 objects, while a pain in the posterior to scroll through, is mouse nuts from a memory use standpoint (say each object is 10k (a whopper of an object), we're only looking at 50 M of memory here. Most object though are at least

RE: Which way Table or Tree renders its nested components?

2005-09-26 Thread Mark Stang
I would use Composite. -Original Message- From: Aleksej [mailto:[EMAIL PROTECTED] Sent: Mon 9/26/2005 1:20 AM To: Tapestry users Subject: Which way Table or Tree renders its nested components? Hi! I am writing my own Tree component and I have question about rendering nested ( leaf ) co

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
Yes I do in the development system but in the different production test systems caching is enabled. regards Paul Mind Bridge <[EMAIL PROTECTED]> wrote: Do you have caching disabled by any chance? seloha . wrote: Thanks ausias, I have thought about reducing the number of ob

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
Thanks Pat, One thing I was not doing which you pointed out was setting the list to null in pageDetached(PageEvent event) so I added this and also included System.gc(). This unfortunately had no affect. The list uses abstract getter and setter and is initialized in the .page spec with initial

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
Isn't the OP's problem a bit more subtle? He doesn't run out of memory on the *initial* load, so one full page fits in memory. Its repeated loads of the page that eventually run him out of memory, isn't it (implying a memory leak)? Or did I misread his original problem? --- Pat >

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Howard Lewis Ship
The likely difference is how Tapestry renders the page; it will buffer the contents in memory (a consequence of the Body component) before streaming the entire result to the user. If your page does not use any JavaScript, then you should be able to build it without the Body component and the resul

Datasqueezers and strategies

2005-09-26 Thread Rob Dennett
I created a simple component that takes a complex class as a parameter and iterates over it, outputting one of its values. When I initially tried to run this, I got an exception saying, “Could not find a strategy instance for class Foobar”. I made the class in question implement Serializabl

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Mind Bridge
Do you have caching disabled by any chance? seloha . wrote: Thanks ausias, I have thought about reducing the number of objects but a prvious version of the app written with struts was able to display many more thn 5000 lines with no problem. A rethink on presentation may be a good idea. Als

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
Thanks ausias, I have thought about reducing the number of objects but a prvious version of the app written with struts was able to display many more thn 5000 lines with no problem. A rethink on presentation may be a good idea. Also providing the container with more memory may help. Thanks a

Spindle Update site temporarily offline.

2005-09-26 Thread Geoff Longman
You can still get Spindle though! More info here: http://jroller.com/page/glongman?entry=spindle_update_site_temporarily_suspended Geoff -- The Spindle guy. http://spindle.sf.net Get help with Spindle: http://lists.sourceforge.net/mailman/listinfo/spindle-user Announcement Feed:

Re: Jetty Installation!

2005-09-26 Thread Jamie Orchard-Hays
As with other servlet containers, if you're deploying a war file, just make sure the tapestry and supporting jars are in WEB-INF/lib. On Sep 26, 2005, at 11:14 AM, FTP wrote: Hi, I was looking in the different tutorials but wasn't able to find something concerning Tapestry installation wi

Re: Help on porting from Tapestry version 3 to 4 and adding Hivemind.

2005-09-26 Thread Joseph Hannon
Kent, Great! Just purchased your e-book. Joseph On 9/24/05, Kent Tong <[EMAIL PROTECTED]> wrote: > > Joseph Hannon gmail.com > writes: > > > > > I currently have an app written using version 3 and it works well. Do > you > > know of an example app that is written in Tapestry 4

RE: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread Patrick Casey
It sounds like a memory leak, but it could just be a slow garbage collector as well. Try adding: System.gc() to the end of your transaction to guarantee the garbage collector runs after each page render. Then see if repeated page renders still blow out your memory. If they do, the

Re: OutOfMemoryError Tapestry 4.0

2005-09-26 Thread ausias vives
Hi, In my experience, the problem you're describing is not related directly with Tapestry, It looks like more as a standard problem with the available memory in the servlet container. I'll try to avoid returning 5000 objects at the same time, depending on the size of the objects this can be a l

RE: Deployment problems: argument type mismatch

2005-09-26 Thread Patrick Casey
Just a wild-assed guess here, but does your new development environment have any xml parser jars in the classpath that your old environment didn't? In my limited experience you can really narf Tapestry if you put the wrong XML parser (like the GNU one) in your classpath. --- Pat

Deployment problems: argument type mismatch

2005-09-26 Thread Eric Schneider
Hi, Our SA recently setup a new deployment environment that we're having configuration issues with. The application has run successfully on other machines. It seems to throw an argument type mismatch while trying to build the ApplicationSpecificationInitializer related services. inte

RE: Help in Javascript

2005-09-26 Thread Patrick Casey
Alternately if you're looking to just link in some static javascript: This on the page file: This in the html; I must confess that's how I do all of my javascript, largely because I could never fi

Re: Help in Javascript

2005-09-26 Thread Ron Piterman
Look at the sourcecode of the palette component ( contrib ) the .script files are described here: http://jakarta.apache.org/tapestry/3.0.3/doc/DevelopersGuide/script-spec.html ציטוט Manjith Kumar Adapa: Hi, I need a sample piece of code. In the html where I can put all the javascript methods

Re: need help for localization

2005-09-26 Thread Ron Piterman
for ComponentX.jwc create ComponentX_en_US.properties which looks like username.label=Username password.label=Username use from java code: getMessages().getMessage("username.label"); use from template: of also for libraryX.library create libraryX_en_US.properties which will available for all

Jetty Installation!

2005-09-26 Thread FTP
Hi, I was looking in the different tutorials but wasn't able to find something concerning Tapestry installation with the latest Jetty server! Any hints? Thanks George > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Help in Javascript

2005-09-26 Thread Manjith Kumar Adapa
Hi, I need a sample piece of code. In the html where I can put all the javascript methods in .js file and refer them in html through Tapestry 4 Thanks Manjith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: How ro apply Localization

2005-09-26 Thread Anjali Abraham
Hi, Well It worked, but there is a small issue. 1st of all let me tell you what I have done... message:signup.firstname the above code is my previous code before change Actually I was using @FieldLabel for displaying label. This also helps me to show that field as mandat

Re: Overwrite StaleSession Page

2005-09-26 Thread [EMAIL PROTECTED]
Define in your *.application: >Hi all, >How do I overwrite this page by a custom page? >Kind regards, >Lennart >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] --

RE: How ro apply Localization

2005-09-26 Thread Anjali Abraham
Thank you so much for the reply. It worked... Regards, Anjali -Original Message- From: Andreas Andreou [mailto:[EMAIL PROTECTED] Sent: Monday, September 26, 2005 8:08 PM To: Tapestry users Subject: Re: How ro apply Localization Use Anjali Abraham wrote: >In my .html file, I have the

Re: How ro apply Localization

2005-09-26 Thread Andreas Andreou
Use Anjali Abraham wrote: In my .html file, I have the code like this: message:signup.firstname I am trying to apply localization as shown above. But nothing matters in this case... How do I need to apply localization in this case. Please help... Thanks in advance, Regards, Anjal

How ro apply Localization

2005-09-26 Thread Anjali Abraham
In my .html file, I have the code like this: message:signup.firstname I am trying to apply localization as shown above. But nothing matters in this case... How do I need to apply localization in this case. Please help... Thanks in advance, Regards, Anjali

contrib:Table generic filter feature

2005-09-26 Thread Louis Meiring
Hi there, I am using the Tapestry Table component and am thinking about having a generic Filter feature that I can reuse throughout my web-app. I.e., the user clicks on a link at the top of the table, he then gets various input fields based on the columns that are in the table, and can then f

Re: Eclipse won't move html files to bin

2005-09-26 Thread Adam Greene
Thanks. I will check that. - Original Message - From: "Niklas Ekman" <[EMAIL PROTECTED]> To: "'Tapestry users'" Sent: Friday, September 23, 2005 4:38 AM Subject: SV: Eclipse won't move html files to bin Hello, In Eclipse 3.1 there is a setting that by default leaves some files out

need help for localization

2005-09-26 Thread Anjali Abraham
Hi All, I need help on how to go ahead for localization behavior to be implemented through Tapestry4.0v. I have already read http://jakarta.apache.org/tapestry/UsersGuide/localization.html . but didnt understand the files

RE: issues when upgrading from T3 to T4

2005-09-26 Thread Manjith Kumar Adapa
Hi, How to include a .js file in html in Tapestry 4 as an asset url. Can you suggest a link where I can find some examples. Thanks in Advance. Thanks Manjith Kumar

Overwrite StaleSession Page

2005-09-26 Thread Lennart Benoot
Hi all, How do I overwrite this page by a custom page? Kind regards, Lennart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Contrib table pageSize

2005-09-26 Thread Tomáš Drenčák
Thanks, It's my fault, I haven't read documentation to the end...:) 2005/9/25, Mind Bridge <[EMAIL PROTECTED]>: > Hi, > > Perform the following on your table model to set the page size: > > tableModel.getPagingState().setPageSize(50); > > The 'pageSize' parameter is a shortcut only used with sourc

AW: issues when upgrading from T3 to T4

2005-09-26 Thread Peter Ertl
> on the mailing list once. Unfortunately it's implementation retrieves services from the engine which is deprecated now. Speaking of returning an ILink from a listener, > tried that and ended up with Tapestry reporting a RedirectException (yay! or more appropriately: w had the same problem - so

OutOfMemoryError Tapestry 4.0

2005-09-26 Thread seloha .
I have a page which allows a user to search the database based on various criteria. I have restricted the number of returned items to 5000. I display the items in the same search page using the @For component with volatile="ognl:true" . Repeated searches which return 5000 items will result in a

issues when upgrading from T3 to T4

2005-09-26 Thread Mark Lehmacher
Hello everyone, when trying to port a T3 app to T4 I stumbled across the following two issues (for now ;)). 1. redirect-after-post? I know you can use a listener which returns an ILink in order to redirect. However, I want to redirect and forward interchangeably from the same listener (redirect o

how to inject aso object to a engine service?

2005-09-26 Thread pickerel yee
sorry for post this question again, but it's really bothering me now. -- i use jdk 1.4, and config the hivemind.xml as blow ## it's not work but it not work, what shall i do? --

IMonitor and Hivemind contributions

2005-09-26 Thread Pete
Is there a way to register an org.apache.tapestry.engine.IMonitor implementation through Hivemind? Using 'org.apache.tapestry.monitor-factory' restricts the number of implementations to one. Also it's not possible to include a .jar-file which automatically supplies your application with IM

RE: [SOLVED]Xtile question

2005-09-26 Thread Gertjan Assies
that was it, it works now ;-) thanks Gertjan On Wed, 2005-09-21 at 19:35 +0100, seloha . wrote: > XTiles is now included in the contrib library, so the first thing to try is > to remove the XTile library you have obtained and use the contrib library > (jwcid="@contrib:XTile") > > Hope this h

RE: active application state objects

2005-09-26 Thread Simon Buettner
The observation of object creation is no problem. I could add every created visit object to a list. But waiting for garbage collector is no solution. I need a list of all logged in users and guest so I cant wait for the garbage collector. Is there a possibility to use hivemind as an observer

RE: active application state objects

2005-09-26 Thread Muralidhar Y.
Ok ok understood. Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, Dubai, UAE. Mobile : 00971-50-2256149. http://www.adastrumtech.com http://www.mercator.aero (Keep Smiling. Be happy All The Time.) -Original Message- From: Patrick Casey

RE: active application state objects

2005-09-26 Thread Muralidhar Y.
But in this case we have to wait until session time out. Is it the case? Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, Dubai, UAE. Mobile : 00971-50-2256149. http://www.adastrumtech.com http://www.mercator.aero (Keep Smiling. Be happy All The

RE: active application state objects

2005-09-26 Thread Patrick Casey
If you're willing to wait on the garbage collector, couldn't you just put a listener in a finalizer for your visit? It wont' fire until the visit gets swept, but it'll get around to it eventually. --- Pat > -Original Message- > From: Simon Buettner [mailto:[EMAIL PROTECTE

RE: active application state objects

2005-09-26 Thread Muralidhar Y.
I think it could only be possible by servlet api. In tapestry there is no specific things for that. Muralidhar Y Software Engineer, Adastrum technologies-Nikai groups, EmiratesGroup-I.T Division, Dubai, UAE. Mobile : 00971-50-2256149. http://www.adastrumtech.com http://www.mercator.aero (Kee

Re: active application state objects

2005-09-26 Thread Simon Buettner
I can observe the creation of visit objects with a factory, but how can I monitor the destruction of visit objects?

Which way Table or Tree renders its nested components?

2005-09-26 Thread Aleksej
Hi! I am writing my own Tree component and I have question about rendering nested ( leaf ) component. The idea is to leave Tree component to decide where to render nested component and somehow specify which component must be used as nested. I have allready Tree component, and component which mu