Re: Example tapestry 4.1 with ajax style calls

2007-02-16 Thread Murray Collingwood
Thank you once again - another perfect answer. > > // content > In deed the use of was not sufficient. I updated it as suggested and suddenly I began getting ajax responses as expected. Cheers mc - To unsubscribe, e-mail:

Re: Problems with Tapestry 5 and JBoss

2007-02-16 Thread Howard Lewis Ship
Sorry, just haven't had a second to try this. I'm sure it's a matter of security or other configuration. On 2/16/07, Aslak Gronflaten <[EMAIL PROTECTED]> wrote: Hi, I'm having problems deploying tapestry 5 applications on JBoss (4.5 at least). The first problem was that the tapestry jars need

Re: Tapestry5: Passing parameters to pages

2007-02-16 Thread Howard Lewis Ship
I'm working on the tool to generate the component documentation right now. On 2/16/07, Carlos Curotto <[EMAIL PROTECTED]> wrote: Hello everyone! Is there any documentation about what template we have to put in a page template for the different controls of tapestry 5? I mean, i can only create t

Re: Component timeouts and an NPE

2007-02-16 Thread Bryan Lewis
The easy solution is, don't use private variables like that. Declare them as persistent page properties. Do your development with caching disabled so that the problem appears right away, rather than after a ten-minute garbage-collection period. Mark Stang wrote: > Hi, > I am seeing Tapestry 3 c

Re: [WARNING] Feedback for the AcegiSpringJava5FormBased wiki page

2007-02-16 Thread Jim Roycroft
You are quite right... I just threw that key in there when I was re-writing the other parts and I did not yet know how to deal with the errors. So, just ignore that key, and put a try-catch block around the authenticationManager.authenticate() call, and catch a BadCredentialsException (for things

Component timeouts and an NPE

2007-02-16 Thread Mark Stang
Hi, I am seeing Tapestry 3 components with values which is good, say a ArrayList: private ArrayList displayList; If I don't touch the component for 10 minutes or maybe a little longer, then the "displayList" is null. I assume that this is due to Tapestry putting it back in the pool. However,

Re: Example tapestry 4.1 with ajax style calls

2007-02-16 Thread Jesse Kuhnert
Is "orderarea" a component or html element? updateComponents() only works with components. You could also just as easily put that in the html part: Sounds to me like your orderarea just isn't a component. It might work better if you did something like : // content instead.. Besides the exa

Re: Example tapestry 4.1 with ajax style calls

2007-02-16 Thread Murray Collingwood
Hi guys Great responses - both were exactly right. However both lacked any reference to a simple example to get Ajax calls working in Tapestry 4.1. If anybody has one I'd be keen to see it? I have watched this list long enough to know it is possible yet as much as I try I'm still not getting th

Re: Tapestry5: Passing parameters to pages

2007-02-16 Thread Carlos Curotto
Hello everyone! Is there any documentation about what template we have to put in a page template for the different controls of tapestry 5? I mean, i can only create the components that are shown in the screencasts, but i want to create others like: combobox, checkbox, password, tables, etc... I s

Re: AW: My crap development environment

2007-02-16 Thread Norbert Sándor
You can configure which webapps to start when the tomcat is started. Just select the "update/remove context definition" from the project's context menu... Regards: Norbi Holger Stolzenberg írta: I think the WTP approach with the temporary tomcat installation is very good because you can defi

Changing Reset Address?

2007-02-16 Thread Daniel Tabuenca
I'm not very hivemind-savvy and everything I've tried so far hasn't worked. I'm sure this is a trivially simple answer. I use friendly URLs but when it hits the reset service it gets forwarded back to "contextName/app". How do I specify the address to forward after the reset?

RE: My crap development environment

2007-02-16 Thread Mark Stang
We use Jetty embedded in JBoss. From a developer point of view, I can re-compile my code using maven and copy the war over to my version of JBoss in about 8 seconds. I kill and restart the server in 17 seconds. When I want to debug, I tell Eclipse to connect up to JBoss and everything works.

Re: My crap development environment

2007-02-16 Thread Daniel Jue
I use WTP with the integrated Tomcat, and it's fine as long as I don't have a lot of web apps running from it. (takes a couple seconds to start, and restarts when I've changed a java or html/jwc.) It doesn't seem to restart when I change a .css file though; the change is just picked up on a scre

Re: Best strategy?

2007-02-16 Thread Julian Wood
Thanks Matt, for that insightful response. I have decided after all to go with the XTile component. I guess I had been leaning towards using EventListener, since that seemed the way of the future, and a way to consolidate all the different AJAX approaches out there. I find it interesting th

Re: My crap development environment

2007-02-16 Thread Kalle Korhonen
Big or small, I think whether hot code swapping succeeds or fails depends mostly on if the class can be safely (i.e. no existing objects of that type in memory) unloaded at the time changes are compiled. Tomcat and Jetty work the same way in this regard (too!). Kalle On 2/16/07, Joe Trewin <[EMA

RE: Page Re-direction

2007-02-16 Thread Mark Stang
Peter, That is going to be a bit of a problem. For every request from the client you can get a response. If you request the PDF then you get the PDF in the response. Telling Tapestry to send another page will override the download. Which is the behavior you are seeing. Our solution which we

Re: Tapestry5: Passing parameters to pages

2007-02-16 Thread Dennis Kempin
Sorry, i hit the wrong button, please ignore my previous mail. Well I finally got it working, making some smaller changes to the LinkFactory(Impl), ComponentResource and PageLink of course. PageLink now takes a context parameter just like actionLink does and passes it to the LinkFactory

Re: Tapestry5: Passing parameters to pages

2007-02-16 Thread Dennis Kempin
Well I finally got it working, making some smaller changes to the LinkFactory(Impl) and ComponentResource. I added a method "Link createPageLink(Page page, Object... overrideContext)" and markes the "Link createPageLink(Page page)" one as deprecated (java should accept calls to createPageLink(page

AW: [WARNING] AW: Problem with user logout (Tapestry-Acegi)

2007-02-16 Thread Peter Schröder
hi jake, i did not mean the html-header but the http-header. i think that you can have a look at your online-banking application. they are probably doing the same thing. i remember an older thread in this mailing list about this topic. perhaps you should aks google ;-) -Ursprüngliche Nachr

Re: [WARNING] AW: Problem with user logout (Tapestry-Acegi)

2007-02-16 Thread jake123
Hi Peter, thanks for your response, I tried to add in the head tag in all my pages that contains a secured annotation and then tried to logout and hit the back button on my browser and I still get the same result... I end up in the secured page... so it seems to not have any effect at all. My lo

Re: Tapestry5: Passing parameters to pages

2007-02-16 Thread Dennis Kempin
Well that would be a nice solution I think. Well I dont see any other way to make a simple content list / display application. The onActivate Event seems to be really useful, entering the URL manually works great, but i dont know any solution to link to such a page. I tried the following hack: $

AW: Problem with user logout (Tapestry-Acegi)

2007-02-16 Thread Peter Schröder
hi jacob, i think that this can be achieved by disabling the caching in the http response. Cache-Control: no-cache so that the browser tries to fetch a fresh version of this page. -Ursprüngliche Nachricht- Von: jake123 [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 15. Februar 2007 2

Re: @EventListener: adding custom data to map in BrowserEvent

2007-02-16 Thread Kristian Marinkovic
thank you ... i just just found https://issues.apache.org/jira/browse/TAPESTRY-1202 ... stupid me ... at least i voted for it :) kris "Alexandru

Re: @EventListener: adding custom data to map in BrowserEvent

2007-02-16 Thread Alexandru Dragomir
As far as i know this is not possible yet. There is a jira request registered for it. In the mean time you might use directly the js function provided by tapestry linkOnClick which does the job very well. I think you can find an example of how to use it in the autocompleter component. Alex On

@EventListener: adding custom data to map in BrowserEvent

2007-02-16 Thread Kristian Marinkovic
hi all, is it possible to add some custom data to a call produced by a @EventListener so it appears in the map of the BrowserEvent class? or the other way around :)... does anyone else consider this an useful feature? so why do i need it: i have some drag-n-drop elements in two lists that can

RE: My crap development environment

2007-02-16 Thread Joe Trewin
Don't forget that if you launch your web app in debug mode from Eclipse (and probably other IDEs) with Jetty (and maybe Tomcat?) then *most* minor code changes, particularly to pages/components etc will be picked up automatically without a server restart. Eclipse will complain when it can't. So

AW: My crap development environment

2007-02-16 Thread Holger Stolzenberg
I think the WTP approach with the temporary tomcat installation is very good because you can defined which projects should be started with this tomcat, if you use one tomcat with sysdeo then all webapps will always be starte. -Ursprüngliche Nachricht- Von: Kalle Korhonen [mailto:[EMAIL

Re: Tapestry 4 with MyEclipse?

2007-02-16 Thread Gernot Stocker
On Thursday 15 February 2007 6:42 pm, Matthew Freedman wrote: > MyEclipse comes with support for Tapestry version 3 via the Spindle > plugin, but apparently that was never updated for Tapestry 4. We are > having problems getting Tapestry 4 to work at all in MyEclipse, even > without the extra IDE

Problems with Tapestry 5 and JBoss

2007-02-16 Thread Aslak Gronflaten
Hi, I'm having problems deploying tapestry 5 applications on JBoss (4.5 at least). The first problem was that the tapestry jars need to be in the servers lib folder, not inside the war file, or the classloader would not be permitted to instantiate services. After I found that out, I moved them ou