Re: Scheduling tasks

2006-07-18 Thread Schulte Marcus
Using Quartz is not very difficult. I did it in the following steps - write a HivemindServiceJobFactory which takes HiveMind-Services implementing "Job" or "Runnable" and wrap them into an adapter taking care of calling setupThread and cleanupThread on the registry. The service-id is taken from

Re: external link to a tapestry page

2006-07-18 Thread Valdemaras Repšys
I managed to get the Registry by overriding the ApplicationServlet and i'm able to get the external service. However, it is not clear, when it is correct to invoke externalService.getLink(). If it is invoked just after ApplicationServlet.init() it fails with exception: org.apache.hivemind.Applicat

Re: Scheduling tasks

2006-07-18 Thread D&J Gredler
+1 on quartz On 7/19/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: I would use quartz. It took me about half an hour to integrate with hivemind. On 7/18/06, Martin Strand <[EMAIL PROTECTED]> wrote: > > Hi guys. > How can I schedule a task with Hivemind? I want something similar to crond > in Li

Re: Scheduling tasks

2006-07-18 Thread Jesse Kuhnert
I would use quartz. It took me about half an hour to integrate with hivemind. On 7/18/06, Martin Strand <[EMAIL PROTECTED]> wrote: Hi guys. How can I schedule a task with Hivemind? I want something similar to crond in Linux - a service should be notified every n minutes. Ideally the service wou

$template option using annotations

2006-07-18 Thread Rowland Smith
I've built a Border component using only annotations. I would like to put the .html template in /context/basic/Border.html. And in general I would like to organize my components in various directories as I expect them to grow pretty quickly. Is there an option for specifying the template

Re: A bit OT: how to manage database connections for multiple components rendered simultaneously.

2006-07-18 Thread kranga
1) To have 9 pages rendering simultaneously you need to have very very high traffic. 2) We have systems with 500 connections to the database running just fine. It is easier to throw hardware on a well-known problem (at least to some extent) than to spend cycles over-engineering. 3) Think of cach

Re: handling file downloads

2006-07-18 Thread Shing Hing Man
A possibility is to store the parameters (that are needed to construct the data set) in a session ASO. You can inject the above session ASO into your service. So that the data set can be constructed in your service when the service is called. Shing --- Julian Wood <[EMAIL PROTECTED]> wrote:

Scheduling tasks

2006-07-18 Thread Martin Strand
Hi guys. How can I schedule a task with Hivemind? I want something similar to crond in Linux - a service should be notified every n minutes. Ideally the service would implement Runnable and the scheduler would invoke run(). I've heard of Quartz, but I've never used it before and I'm not sure h

Re: A bit OT: how to manage database connections for multiple components rendered simultaneously.

2006-07-18 Thread Rui Pacheco
Still, if the components were all rendered at the same time, you would be tying up 9 connections simultaneously, and that would kill your response times. On 7/18/06, kranga <[EMAIL PROTECTED]> wrote: Yes I would be fine with opening/closing 9 connections to the database if they are from a conne

Re: A bit OT: how to manage database connections for multiple components rendered simultaneously.

2006-07-18 Thread kranga
Yes I would be fine with opening/closing 9 connections to the database if they are from a connection pool because then I would be opening/closing 0 connections in reality! - Original Message - From: "James Carman" <[EMAIL PROTECTED]> To: "'Tapestry users'" Sent: Monday, July 17, 2006

Re: handling file downloads

2006-07-18 Thread Konstantin Ignatyev
I did that by passing ognl expression (as string) that specifies the dataset as parameter to the service, so the service simply evaluates the OGNL expression and uses its result as source. Konstantin Ignatyev PS: If this is a typical day on planet earth, humans will add fifteen million t

Re: handling file downloads

2006-07-18 Thread Julian Wood
I finally got back to this. I wrote up a service to send the csv files (using http://lombok.demon.co.uk/serviceHowTo/app - thanks Shing for the example - well done), which all works fine, but I have one question (which could easily be addressed by using the "unsanctioned" approach mentioned

RE: Re: From the online docs

2006-07-18 Thread Epstein, Ezra
Actually I think you were referring to servlet Tapestry rather than portlet. And for servlets, you are correct. Tapestry 3 did not, however, support portlets (at least not directly). And for the portlets one doesn't actually specify page names, rather they are implicit. The sub-folder idea d

Re: Creating new hivemind service

2006-07-18 Thread amirsguard-tapestry
Thanks Shing, that did the trick! -Amir --- Shing Hing Man <[EMAIL PROTECTED]> wrote: > I think you have to do it indirectly by injecting the > ApplicationManager into your service. > Then in your service, retrieve the desired ASO using > the ApplicationManager. > There is a how-to on this at t

Re: Re: Administrator of this forum ?

2006-07-18 Thread Jesse Kuhnert
I'm a "moderator" of the forum, but if it won't un-subscribe you when sending an email to [EMAIL PROTECTED] there's not much more I can do about it. Could it be that the actual email address you are signed up to the list with is different than the return address the list sees? This might be the c

RE: external link to a tapestry page

2006-07-18 Thread Brian Duchek
You're on the right track by using an External link. Make sure your page implements IExternalPage. We do something similar with one page that we wanted to be "bookmarkable" and the URL Format is quite similar to what you're trying. You'll still have to workaround problems of interdependency

Re: Creating new hivemind service

2006-07-18 Thread Shing Hing Man
I think you have to do it indirectly by injecting the ApplicationManager into your service. Then in your service, retrieve the desired ASO using the ApplicationManager. There is a how-to on this at the following. http://lombok.demon.co.uk/tapestry4Demo/Inject.html Shing --- [EMAIL PROTECTED

Creating new hivemind service

2006-07-18 Thread amirsguard-tapestry
Hi, I have a application object defined in my hivemodule.xml: I have a new engine service that I am trying to create:

Re: Re: Administrator of this forum ?

2006-07-18 Thread Blackwings
So, the bot is dead... Try to contact directly the main site. 2006/7/18, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: I have been trying to unsubscribe for awhile, too. No luck.> Date: Tue, 18 Jul 2006 15:08:06 +0200> From: [EMAIL PROTECTED]> To: users@tapestry.apache.org> Subject: Re: Administrator

RE: help content implementation

2006-07-18 Thread Mark Stang
We take Frame output and create a set of HTML pages. These are linked-in via a popup. -Original Message- From: Konstantin Ignatyev [mailto:[EMAIL PROTECTED] Sent: Tue 7/18/2006 9:47 AM To: Tapestry users Subject: Re: help content implementation Overlib doing Ajax calls does the trick

Re: help content implementation

2006-07-18 Thread Konstantin Ignatyev
Overlib doing Ajax calls does the trick and it does not matter what king of technology produces the pages http://www.bosrup.com/web/overlib/ Peter Dawn <[EMAIL PROTECTED]> wrote: has anybody tried to implement a help system using tapestry. within my web app i want to implement a help manual and

RE: Re: Administrator of this forum ?

2006-07-18 Thread [EMAIL PROTECTED]
I have been trying to unsubscribe for awhile, too. No luck.> Date: Tue, 18 Jul 2006 15:08:06 +0200> From: [EMAIL PROTECTED]> To: users@tapestry.apache.org> Subject: Re: Administrator of this forum ?> > It is an automatic process normally. You just have to send an email to> [EMAIL PROTECTED]> the

Re: Order by which events and listeners are called

2006-07-18 Thread Rui Pacheco
Many thanks for all your help. This was extremelly valuable! On 7/18/06, Bernard Lange <[EMAIL PROTECTED]> wrote: Rui Pacheco wrote: > And this is another very good idea. But if I stick with the abstract > authenticated class, I'll have to update code in one single place, while > the component

Re: Order by which events and listeners are called

2006-07-18 Thread Bernard Lange
Rui Pacheco wrote: > And this is another very good idea. But if I stick with the abstract > authenticated class, I'll have to update code in one single place, while > the component will force me to copy/paste it accross all the templates. Yes indeed. Decision is up to you, what's more convienient

Re: Order by which events and listeners are called

2006-07-18 Thread Rui Pacheco
Another approach is to create simple non-html component, lets call it AuthenticationRequired and place it in pages which does require authentication. And this is another very good idea. But if I stick with the abstract authenticated class, I'll have to update code in one single place, while the

Re: Order by which events and listeners are called

2006-07-18 Thread Bernard Lange
Rui Pacheco wrote: > I implement a class called AbstractWebPage that extends BasePage and I > store > all functionality common to webpages there. > > I guess, as Geoff sugested, I'll created another abstract web page that > deals uniquely with pages that need authentication. This is what I sugges

Re: Order by which events and listeners are called

2006-07-18 Thread Bernard Lange
Rui Pacheco wrote: > I implement a class called AbstractWebPage that extends BasePage and I > store > all functionality common to webpages there. > > I guess, as Geoff sugested, I'll created another abstract web page that > deals uniquely with pages that need authentication. This is what I sugges

Re: Order by which events and listeners are called

2006-07-18 Thread Rui Pacheco
I implement a class called AbstractWebPage that extends BasePage and I store all functionality common to webpages there. I guess, as Geoff sugested, I'll created another abstract web page that deals uniquely with pages that need authentication. On 7/18/06, Bernard Lange <[EMAIL PROTECTED]> wrote

Re: Question about PageValidate

2006-07-18 Thread Chris Chiappone
Contained within my Border I have a navigation component that contains a number of @DirectLinks. It appears that any DirecLink in that border calls the PageValidate method on the current page, I assumed that pageValidate would only get called on the page you are forwarding to, not on the page tha

Re: Administrator of this forum ?

2006-07-18 Thread Blackwings
It is an automatic process normally. You just have to send an email to [EMAIL PROTECTED] the content is not important I think. The goal is for the bot to receive a mail from an adress and remove the adress from the list BW 2006/7/18, Frank Misa <[EMAIL PROTECTED]>: Hi, Are there any administr

Re: Order by which events and listeners are called

2006-07-18 Thread Bernard Lange
Bernard Lange wrote: > redirects him to Login page. Login page does have pageValidate Correction: Login page *DOES NOT* have such pageValidate authentication listener. Forgive me this important typo :) Cheers, Bernard - To unsub

Re: Order by which events and listeners are called

2006-07-18 Thread Bernard Lange
Rui Pacheco wrote: > Hi all Hi, > My problem is, pageValidate, the natural place to check whether the user > has > permissions to load that page or not, is being called before doLogin and > this makes it impossible for the user to login. You mean that the form does not start rewinding cause lis

Administrator of this forum ?

2006-07-18 Thread Frank Misa
Hi, Are there any administrators monitoring this forum ? I'd greatly appreciate someone forwarding the email contact of any administrator for this forum. My repeated submissions to be removed from the mailer are being ignored. Would appreciate some help. Thanks Frank -

Re: Order by which events and listeners are called

2006-07-18 Thread Geoff Callender
I'd suggest using pageValidate on every page EXCEPT the login page. Do the login validation in the doLogin method and set your Visit or similar object there before activating the next page. You could have a look at JumpStart for an example. http://tapestry.apache.org/ tapestry4.1/QuickSta

RE: external link to a tapestry page

2006-07-18 Thread James Carman
If you can get to the HiveMind registry, you can lookup the ExternalService and use it. -Original Message- From: Valdemaras Repšys [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 18, 2006 8:27 AM To: Tapestry users Subject: Re: external link to a tapestry page Thanks for the answer, Alekse

Re: external link to a tapestry page

2006-07-18 Thread Valdemaras Repšys
Thanks for the answer, Aleksej. The problem is, this URL must be generated on a java thread (or class) that is not an instance of BasePage and is not a tapestry page. That means i have no access to ExternalService, right? Also, I can't use @Any component because this url will be sent as an email

Re: Basic HTTP Authentication in Tap 3 = Acegi + Spring ?

2006-07-18 Thread Bernard Lange
Hugo Palma wrote: > I think the fastest way to achieve what you need would be to use > declarative > security(in the web.xml) together with friendly URLs. Ok. I've done it differently. As I don't want to rely on page urls (whether friendly or not) I've implemented simple authentication page valida

Order by which events and listeners are called

2006-07-18 Thread Rui Pacheco
Hi all I have a chicken and egg problem. I included a login component in my page. That component is supposed to receive the username and password from the user and process it in its form listener in order to check whether the user is valid or not. The way I see it, the user would fill the userna

Re: external link to a tapestry page

2006-07-18 Thread Aleksej
Valdemaras Repšys wrote: Hi, i need my application to send emails with the link to the specific tapestry page. How would i generate a link? I tried extending a page with IExternalPage and using the address: http://localhost:8080/BioJazz/app?service=external/HitList What i get is RuntimeExcepti

java.util.ConcurrentModificationException in portlet when trying to show ArrayList

2006-07-18 Thread baranovsky
Good day! I've writed portlet application with tapestry 4.0.2 (using TapestryApplicationPortlet). I have deployed it to our jetspeed-2 portal server. Sometimes exception is rised when some users navigates to my portlet (exception is described bellow). Any ideas why this would happen? Please, hel

Re: DirectLink in TableValue

2006-07-18 Thread Kosarev A.V.
Thanks a lot! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How do I do a Servlet filter, or similar functionality... help please!

2006-07-18 Thread Pratibha Gopalam
This is what I did public class MyFilter implements WebRequestServicerFilter{ public void service(WebRequest request, WebResponse response, WebRequestServicer servicer) throws IOException { try { //do whatever u want servicer.servi

Re: How do I do a Servlet filter, or similar functionality... help please!

2006-07-18 Thread James Carman
Tapernate uses a Tapestry WebRequestServicerFilter to implement the open-session-in-view pattern. > Thank you James. > > Maybe Tapernate is a good idea... it's just that my project is really > small > and I would rather avoid another dependency. And I have not introduced > Hivemind yet. But I'll s

Re: Basic HTTP Authentication in Tap 3 = Acegi + Spring ?

2006-07-18 Thread Bernard Lange
Hugo Palma wrote: > I think the fastest way to achieve what you need would be to use > declarative security(in the web.xml) together with friendly URLs. Thanks, I'll take a look at it. > There's problably an example of this in the wiki(sorry, don't have much > time to search it myself) Ok. I wil

Re: Basic HTTP Authentication in Tap 3 = Acegi + Spring ?

2006-07-18 Thread Hugo Palma
I think the fastest way to achieve what you need would be to use declarative security(in the web.xml) together with friendly URLs. There's problably an example of this in the wiki(sorry, don't have much time to search it myself) Hope this helps. On 7/18/06, Bernard Lange <[EMAIL PROTECTED]> wrot

external link to a tapestry page

2006-07-18 Thread Valdemaras Repšys
Hi, i need my application to send emails with the link to the specific tapestry page. How would i generate a link? I tried extending a page with IExternalPage and using the address: http://localhost:8080/BioJazz/app?service=external/HitList What i get is RuntimeException: No engine service named

Basic HTTP Authentication in Tap 3 = Acegi + Spring ?

2006-07-18 Thread Bernard Lange
Hello all, My production system still runs on Tapestry 3.0.4/Hibernate/Spring. I would like to setup Basic HTTP Authentication scheme for some non-critical, but administrator-only pages (ie. usage stats etc.). For normal user pages we currently use authentication mechanism, but what I need is fas

Special characters stop being that when moved to modules

2006-07-18 Thread Rui Pacheco
Hi all As I said yesterday, I have my pages broken into modules. Today I just noticed that what were valid special characters when the file was one pure .html page, turns into garbage when I break it into components and include them in one master page. For example, I populated a select box with

Re: Access ASO outside of Tapestry (i.e. in Servlet Filter)?

2006-07-18 Thread Shing Hing Man
Please have a look at the following post in the archive. http://article.gmane.org/gmane.comp.java.tapestry.user/39168/match=aso It might help. Shing --- Mika Tammilehto <[EMAIL PROTECTED]> wrote: > Hi! > > I have to access an Application State Object in a > Servlet filter - so I > can't use

Re: How do I do a Servlet filter, or similar functionality... help please!

2006-07-18 Thread Shing Hing Man
The following is a simple CRUD web application example written in Hibernate and Tapetsry 3 (no HiveMind nor Spring) using servlet filter to avoid LazyInitilisationException. http://lombok.demon.co.uk/folders/welcome There is another version of the above for Tapestry 4 using the approach describ

Access ASO outside of Tapestry (i.e. in Servlet Filter)?

2006-07-18 Thread Mika Tammilehto
Hi! I have to access an Application State Object in a Servlet filter - so I can't use tapestry's injection mechanism. What's the preferred way to access an ASO? I thought about access via Hivemind... but I can't find doco about this rather special case. Thanks in advance for your help! mika ---

Re: How do I do a Servlet filter, or similar functionality... help please!

2006-07-18 Thread Malin Ljungh
Thank you James. Maybe Tapernate is a good idea... it's just that my project is really small and I would rather avoid another dependency. And I have not introduced Hivemind yet. But I'll sure check it out carefully. And I'm still curious for the answer to my question - anyone? :) Malin On 7/1