Re: Properties file in different location

2006-08-21 Thread soir
Hello, I am looking for same solution too. I need to store properties files and localized pictures in some directory on the server, outside Tapestry application. Does anybody knows how I can tell Tapestry look up for the localized content in some other directory, not in WEB-INF? Sincerelly yours,

Re: Tapestry 3.0.3 AJAX components

2006-08-21 Thread Peter Dawn
surely, but looking at tacos i feel like i am missing out on a lot of functionality. i am going to try and find tacos for tap3 and if not guess have to either upgrade (which i am not too keen on) or use t-deli. - To unsubscribe,

Properties file in different location

2006-08-21 Thread Peter Dawn
guys, my web app has a lot of properties files now and its beginning to look cluttered. is there a way to put the properties files in a separate folder and not in the same root folder as the html file. thanks. - To unsubscribe,

Re: Tapestry 3.0.3 AJAX components

2006-08-21 Thread Robert Zeigler
You could try for an older release of tacos... Depending on the functionality you want, "xtile" (from http://www.t-deli.com) is a sort of "low level" ajax component (but extremely useful! :) that works in tap3. Basically, with xtile, you specify the name of a "send" function and a receive function

Tapestry 3.0.3 AJAX components

2006-08-21 Thread Peter Dawn
guys, i have given up trying to find ajax components for tap3. tacos is for 4. and all other components seem to be backward compatible with tap3. surely ppl out there using tap3 must be experiencing the same issue. are there are any ajax components for tap3 at all. any help appreciated. ---

Re: Why Howard choose testNG in tapestry test module

2006-08-21 Thread Jesse Kuhnert
Because TestNG is better ;) On 8/21/06, xVik <[EMAIL PROTECTED]> wrote: Yesterday i reed a last post on Howars's blog about tapestry testing and i wonder why he choose tastNG not JUnit? -- View this message in context: http://www.nabble.com/Why-Howard-choose-testNG-in-tapestry-test-module-tf21

Why Howard choose testNG in tapestry test module

2006-08-21 Thread xVik
Yesterday i reed a last post on Howars's blog about tapestry testing and i wonder why he choose tastNG not JUnit? -- View this message in context: http://www.nabble.com/Why-Howard-choose-testNG-in-tapestry-test-module-tf2144189.html#a5919185 Sent from the Tapestry - User forum at Nabble.com. -

Noscript check

2006-08-21 Thread Peter Dawn
guys, how can i implement the noscript tags within my web app. i mean i use javascript all over my app. but just in case the user does not have javascript enabled on their machine, i need to display a message saying, please enable javascript. now if i was using

Re: return to a specified anchor in a page from a listener method?

2006-08-21 Thread andyhot
Will this also handle transparent redirect-after-post ? Jesse Kuhnert wrote: > I feel very strongly that we should strive to make these things as > simple as > possible for people to use/understand - even if it means we have to jump > through giant hoops behind the scenes to make it all work prope

Re: not rendering around window.onload

2006-08-21 Thread Vinicius Carvalho
Thanks for the replies. Actually its not causing problems, I've solved it by putting it around a window.onload{} and for now its ok, following the YAGNI principle, it is working :) I'm using Tap 4.0.2 and I need an onload, because it sets a timer for me, for eg: function receiveMessages(){ //ajax

Re: return to a specified anchor in a page from a listener method?

2006-08-21 Thread Jesse Kuhnert
I feel very strongly that we should strive to make these things as simple as possible for people to use/understand - even if it means we have to jump through giant hoops behind the scenes to make it all work properly in most use cases. There is zero doubt in my mind that I can implement this feat

Re: return to a specified anchor in a page from a listener method?

2006-08-21 Thread andyhot
Jesse Kuhnert wrote: > I think that's the whole point. There isn't really supposed to be a very > strong concept of URL's for people using Tapestry...Just pages / > components > /etc... > > I don't see why we can't do a redirect or forward when someone passes > in an > anchor. It wouldn't be very h

Re: Async form in Tap4.1 does not work...

2006-08-21 Thread Jesse Kuhnert
Fixed. On 8/21/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: btw: tried it with the fresh SNAPSHOT of 20060819 and the result is still the same! On 8/21/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: > > I've been browsing the TimeTracker source to see if I can sort things out. > I've found the par

Re: Submit doesnt tag or select when the form is submitted via ajax

2006-08-21 Thread Jesse Kuhnert
Yes, it is resolved. In the next few minutes at least. (Speaking of Forms with async only of course, the selected/tag has been working..) On 8/21/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: I have saw that the JIRA has been stamped solved. ("Resolved. (both handling of selected/tag correctly an

Re: [4.1] ajax directlink

2006-08-21 Thread Jesse Kuhnert
Fixed in deploy coming out in the next few minutes. In the instance of imgs the href attribute of target was returning the image href url. Fixed so that the proper event target is queried for the correct href url. On 8/21/06, Norbert Sándor <[EMAIL PROTECTED]> wrote: I'm very confused. If an

How to get Tapestry to eagerly create the components/pages

2006-08-21 Thread Patrick Moore
Hi there -- How do I get Tapestry to eagerly parse all component and page files so that in production I know that there are no bad pages or components caused by, for example, out-of-date template files? I would also like a cluster to be able to share the results of the parsing so only one vm wou

Re: return to a specified anchor in a page from a listener method?

2006-08-21 Thread Jesse Kuhnert
I think that's the whole point. There isn't really supposed to be a very strong concept of URL's for people using Tapestry...Just pages / components /etc... I don't see why we can't do a redirect or forward when someone passes in an anchor. It wouldn't be very hard. Maybe I've missed something?

Re: return to a specified anchor in a page from a listener method?

2006-08-21 Thread andyhot
How is cycle.activate related to anchors and URLs ? When one clicks on a direct link url, a corresponding listener is invoked. If *that* url doesn't already have an anchor, there's no way to set one unless 1. we mimic browser's behavior with javascript, or 2. we send a response and force client re

Re: return to a specified anchor in a page from a listener method?

2006-08-21 Thread Jesse Kuhnert
I'm not sure yet... We have IRequestCycle.activate(IPage page) and activate(String pageName) already, I guess we could add in activate(IPage page, String anchor) and activate(String pageName, String anchor)... What do you think? On 8/21/06, andyhot <[EMAIL PROTECTED]> wrote: Are we talking wi

Re: return to a specified anchor in a page from a listener method?

2006-08-21 Thread andyhot
Are we talking without using client redirects, i.e. without having the listener return ILink ? Jesse Kuhnert wrote: > There are ways to do this in Tapestry 4, but it seems non-intuitive > enough > already that it should probable be fixed. > > What do you think would feel most "convenient" for you?

Re: not rendering around window.onload

2006-08-21 Thread andyhot
Jesse Kuhnert wrote: > Saying .on= ~will~ blow away other peoples changes. Of course, that's why i said it's ugly... But for non dojo, non Tap4.1 cases, one can easily google for the 4 lines js function that appends stuff to window.onload instead of overwriting them... But anyway, what i would li

Re: return to a specified anchor in a page from a listener method?

2006-08-21 Thread Jesse Kuhnert
There are ways to do this in Tapestry 4, but it seems non-intuitive enough already that it should probable be fixed. What do you think would feel most "convenient" for you? On 8/21/06, Danny Mandel <[EMAIL PROTECTED]> wrote: Hi all, I know that it wasn't possible (through the framework) in Ta

return to a specified anchor in a page from a listener method?

2006-08-21 Thread Danny Mandel
Hi all, I know that it wasn't possible (through the framework) in Tapestry 3 to return a specific page at a specific anchor from a listener method. Is this now possible in Tapestry 4? If not, does anyone have any suggestions for working around this? I've written some javascript to refresh

Re: Submit doesnt tag or select when the form is submitted via ajax

2006-08-21 Thread Pedro Viegas
I have saw that the JIRA has been stamped solved. ("Resolved. (both handling of selected/tag correctly and LinkSubmit working with ajax forms)") It was done so on the 19th, same date as the last SNAPSHOT available on maven rep. The question is... has this fix been before or after the SNAPSHOT buil

Re: Async form in Tap4.1 does not work...

2006-08-21 Thread Pedro Viegas
btw: tried it with the fresh SNAPSHOT of 20060819 and the result is still the same! On 8/21/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: I've been browsing the TimeTracker source to see if I can sort things out. I've found the parameter I mentioned... the shell's ajaxEnabled="true". I set it up

Re: Submit doesnt tag or select when the form is submitted via ajax

2006-08-21 Thread Pedro Viegas
btw: tried it with the fresh SNAPSHOT of 20060819 and the result is still the same! On 8/21/06, Pedro Viegas <[EMAIL PROTECTED]> wrote: Hi all, I'm having the same issue with ajax submited forms. Jesse, you said that you have added the ajax logic to the form but not the submit. The parameters

Re: Submit doesnt tag or select when the form is submitted via ajax

2006-08-21 Thread Pedro Viegas
Hi all, I'm having the same issue with ajax submited forms. Jesse, you said that you have added the ajax logic to the form but not the submit. The parameters (async, updateComponents) are on the form so, it sould work right? Or since the Submit is the one that triggers the result it is the respon

For loop and field validation

2006-08-21 Thread Simon Raveh
Hi, I have an Editor component that uses a for component to render text fields. My problem is, in case of an validation error how to I mark the right field. I tried passing the name of the component but it always marked the field that was generated in the last iteration.

Re: is there a simpler way to get a component's html id?

2006-08-21 Thread Patrick Moore
Cool! I guess I better hurry up and upgrade from 4.0. Is the Rollover component now implemented with the dojo ToolTip? --- Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > IComponent.getClientId() is now implemented on all tapestry components by > default in tapestry 4.1. (at least as many as I've caug

Re: Async form in Tap4.1 does not work...

2006-08-21 Thread Pedro Viegas
I've been browsing the TimeTracker source to see if I can sort things out. I've found the parameter I mentioned... the shell's ajaxEnabled="true". I set it up in my test code and no change. Huess it's allready true by default. Since http://tapestry.apache.org/tapestry4.1/components/Shell.html does

Re: Async form in Tap4.1 does not work...

2006-08-21 Thread Pedro Viegas
Yep, sorry, I was messing things up a bit. I corrected several errors I had on the code. The form submits fine, all works but not asyncronously. It does a normal submit and not an ajax one. The client side form validation is also not working. Only server side. So async mode is apparently not activ

Re: Fast testing of Tapestry Apps

2006-08-21 Thread Marcus
try http://www.sysdeo.com/sysdeo/eclipse/tomcatplugin install plugin and configure parameters in eclipse, after configure "your-project" properties and with 1 clique you will deploy app into tomcat.

Re: is there a simpler way to get a component's html id?

2006-08-21 Thread Jesse Kuhnert
IComponent.getClientId() is now implemented on all tapestry components by default in tapestry 4.1. (at least as many as I've caught so far, a few stragglers might have escaped ) This will reliably tell you what the html element id is of any component, when previously it was only available on Form

Re: not rendering around window.onload

2006-08-21 Thread Jesse Kuhnert
Yes that is what would happen, but as of tapestry 4.1 we're using the built in node.addEventHandler() function most browsers support via dojo.event.connect().. We can add as many window.onload blocks we like with this method without stepping on anyone elses code. Saying .on= ~will~ blow away oth

Re: How to handle components and filesystem wysiwyg design?

2006-08-21 Thread Mael Caldas
Hi Malin, Instead of keep a static copy of border on each page, you can do the opposite. I usually keep a "Dumb" copy of my border, without jwcid's, in a resource directory, out of the app context, but under version control, and left the space where the body is rendered blank (better if you put c

new solution for concurrent requests

2006-08-21 Thread Henri Dupre
We've been having many strange errors message in our logs and several synchronization errors on session objects (especially visit). Also users kept getting error pages when they were clicking too fast (thus causing concurrent requests). One common solution for this problem is to implement synchron

Re: How to handle components and filesystem wysiwyg design?

2006-08-21 Thread Malin Ljungh
Hmm, OK, I guess there is no good solution to this. I have menu and locale selection in my border and some other stuff and I don't want to put this in all pages. But keeping the static version in all pages seems almost as tedious. Or maybe I'll just add the css in all pages and then the design gu

Re: Fast testing of Tapestry Apps

2006-08-21 Thread Norbert Sándor
Tomcat can be started/stopped from Eclipse as well... Dan Adams wrote: You can also do what we do and test using jetty rather than tomcat. That way I can restart everything right within eclipse. disable-caching is great too. On Mon, 2006-08-21 at 04:33 -0700, Fabbed wrote: Hi everybody, i

Re: not rendering around window.onload

2006-08-21 Thread Vinicius Carvalho
Well, yeah I though I can use this, but if Tapestry is not adding the window.onload now, what happens if I have 2 scripts that need to be loaded on the same time? does something like this work: window.onload = function(){ firstScript contribution } window.onload = function(){ secondScript contr

Re: not rendering around window.onload

2006-08-21 Thread andyhot
Vinicius Carvalho wrote: > Hello there! My script is not rendering it's initialization inside a > window.onload{}, any ideas what I might be doing wrong? http://tapestry.apache.org/tapestry4/UsersGuide/script.html#script.initialization describes this behavior. window.onload waits for all images to

not rendering around window.onload

2006-08-21 Thread Vinicius Carvalho
Hello there! My script is not rendering it's initialization inside a window.onload{}, any ideas what I might be doing wrong? requestMsgs.send("GET",$url,true); requestMsgs.onReadyStateChange = onMessage; requestMsgs.send(null); The JavaScript rendered on the

is there a simpler way to get a component's html id?

2006-08-21 Thread Patrick Moore
Hi there -- I am using dojo's tooltip. It needs to know the id of the component that it responds to. Use of Script is way over kill when all I want to do is get a html element's id to supply it to a dojo widget. Any ideas or example I can look at in the source code? -Pat This is what I would li

master/detail table with table components

2006-08-21 Thread Alexandre Buer
Hello, I am trying to build a table component for master/detail table, to display information such as a list of orders and their line-items in a single table. A similar application of this pattern to the workbench table would be making a Language List, with each language row giving say the numbe

Re: Fast testing of Tapestry Apps

2006-08-21 Thread Dan Adams
You can also do what we do and test using jetty rather than tomcat. That way I can restart everything right within eclipse. disable-caching is great too. On Mon, 2006-08-21 at 04:33 -0700, Fabbed wrote: > Hi everybody, > > i am relative new to Tapestry. I was wondering if there is a way of fast >

RE: Tapestry with Hibernate vs JSF with Hibernate (Object binding question)

2006-08-21 Thread Schulte Marcus
Maybe http://howardlewisship.com/tapestry-javaforge/tapestry-flash/ is of help here, ... > -Original Message- > From: Detlef Schulze [mailto:[EMAIL PROTECTED] > Sent: Monday, August 21, 2006 2:19 PM > To: Tapestry users > Subject: RE: Tapestry with Hibernate vs JSF with Hibernate > (Obj

RE: Mixed up sessions

2006-08-21 Thread Skriloff, Nicholas
I suggest you go to http://www.agileskills2.org/EWDT/ and download the tapestry 3.0 or 4.0 free chapters and read on "Instance variables may breach security" -Original Message- From: Tim Sawyer [mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 5:39 AM To: Tapestry users Subject: Mi

RE: Tapestry with Hibernate vs JSF with Hibernate (Object binding question)

2006-08-21 Thread Detlef Schulze
The problem you are facing is due to the nature tapestry works (the rewind-cycle). There is documentation online, you might read it to understand this behaviour and to solve it without a persistent attribute. In short: when the page renders you have your data, when you submit a form rewinding of t

EngineServices + Links question

2006-08-21 Thread Vinicius Carvalho
Hello there! I need to use asynchronous invocations on my page, XTile wouldn't do it, because of the complexity of the XML that I need to return. So I was thinking in create my own service. I have two situations, a javascript timer that will poll the server in a regular basis, and a onclick event

Re: Mixed up sessions

2006-08-21 Thread Tim Sawyer
Yes we're using Tomcat, but I don't know what you mean by this. The problem manifested itself as concurrent users of the web app seeing each other's session data, as if they were all sharing one big session (which they were!). The persistent sessions stuff I just googled for only seems to imp

Re: Tapestry with Hibernate vs JSF with Hibernate (Object binding question)

2006-08-21 Thread Vinicius Carvalho
Sorry for the delay. Well, object equals and hashcodes are fully implemented. What solved the problem was setting the property persistent, which I really did no liked :( When using a volatile property, tapestry is overwriting the objects, by fresh new ones, filled only with forms values (as I sai

Re: Fast testing of Tapestry Apps

2006-08-21 Thread Norbert Sándor
... or use org.apache.tapestry.enable-reset-service. I use this because in this case I can clear the caches only when I want, so testing will be somewhat faster. (By disabling caching all responses will be slow for larger apps.) Regards, Norbi Detlef Schulze wrote: ... startup the container

RE: Fast testing of Tapestry Apps

2006-08-21 Thread Detlef Schulze
... startup the container with -Dorg.apache.tapestry.disable-caching=true (command line option). At least that's with tap3, not sure if tap4 uses the same switch. -Original Message- From: Fabbed [mailto:[EMAIL PROTECTED] Sent: Montag, 21. August 2006 13:34 To: users@tapestry.apache.org

Fast testing of Tapestry Apps

2006-08-21 Thread Fabbed
Hi everybody, i am relative new to Tapestry. I was wondering if there is a way of fast testing my tapestry apps or do i always have to deploy my source code in the tomcat servlet container before testing my app in the browser? That takes so much time... What i liked about JSP or for instance PHP

Re: [4.1] ajax directlink

2006-08-21 Thread Norbert Sándor
I'm very confused. If an tag is wrapped by the ajax DirectLink: - in IE: "WARNING: No ajax-response elements recieved." - in FF: "FATAL: Error, link target not found or invalid [object MouseEvent]" (it seems that it tries to set the wrapped element as the target instead of the ) If only pla

RE: Mixed up sessions

2006-08-21 Thread James Carman
Are you using Tomcat? If you are, turn off persistent sessions. See if that fixes it. -Original Message- From: Tim Sawyer [mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 6:01 AM To: users@tapestry.apache.org Subject: Re: Mixed up sessions We believe we know what's causing this

Re: Mixed up sessions

2006-08-21 Thread Tim Sawyer
We believe we know what's causing this now. The customer had multiple thin-clients running IE from a citrix box, all logged into citrix as the same user. This means that they are all sharing the same session in IE on the citrix box. Not a good idea! Thanks, Tim. On Monday 21 August 2006 10:

Re: Mixed up sessions

2006-08-21 Thread Tim Sawyer
I don't think we're using any complex hivemind stuff - here's the hivemind.xml we have: Tim.

[4.1] ajax directlink

2006-08-21 Thread Norbert Sándor
Hi, I try to use an ajax DirectLink .jwc listener:onClick literal:testString true {"main"} .html link When I click on the link the request doesn't reach the servlet (I put a breakpoint to doService()), and the following message is pr

Re: Mixed up sessions

2006-08-21 Thread Norbert Sándor
Maybe you use a Hivemind service with an inappropriate model (singleton instead of threaded)? Regards, Norbi Tim Sawyer wrote: Hi, We've just written our first tapestry app, which is running on tomcat 5.0. We're getting strange problems with it deployed at our customer, where it looks like

Mixed up sessions

2006-08-21 Thread Tim Sawyer
Hi, We've just written our first tapestry app, which is running on tomcat 5.0. We're getting strange problems with it deployed at our customer, where it looks like users are getting each others sessions. We don't seem to get this in-house, but I'm getting someone to test multi-user now. My