Re: Unusual caching problem

2007-01-16 Thread Peter Stavrinides
Thanks for the reply Andy, I found the problem... it was with a service that maintains its own cache that I read and write to, but the cache was not being refreshed. Much appreciated, Peter andyhot wrote: Peter Stavrinides wrote: Hi everyone I have developed an editable table similar to an

Acegi and Visit object

2007-01-16 Thread Srinivas Yermal
Hi, I have been trying to initialize the Visit object with certain values once the user has logged in. The values needless to say are user specific. So I would need to access the auth details from acegi. What should I be doing to set these values? I am bit lost here. We are using Acegi with sprin

Re: Problem with InlineEditBox and Tapestry 4.1.1

2007-01-16 Thread Jesse Kuhnert
Yeah it's definitely a bug, but I'm glad an easy solution was had so that I don't have to do something "right now" for fear I've left anyone in a blocked state. ;) On 1/16/07, Leffel, Daniel <[EMAIL PROTECTED]> wrote: That fixed it! So, completely coping the workbench friendly url strategy fixe

RE: Problem with InlineEditBox and Tapestry 4.1.1

2007-01-16 Thread Leffel, Daniel
That fixed it! So, completely coping the workbench friendly url strategy fixed the problem. Don't know if that means that my old config exposed an edge case bug or not, but I'm happy to use the workbench url structure. Thanks! Daniel Leffel -Original Message- From: Jesse Kuhnert [ma

Re: Problem with InlineEditBox and Tapestry 4.1.1

2007-01-16 Thread Jesse Kuhnert
ShewwwI was worried you were facing a pointy haired boss deadline of "have it working by Friday or else!" type of situation.. ;) I will attack this during my next change session. (will be the next "free" work I work on when I get a chance as the ognl svn repo hasn't shown up yet ) I've gmail

Render qustion , Tapestry 4.1.2 , IE

2007-01-16 Thread Nalin Gupta
I have noticed that page rendering on Internet Explorer seems to have "flicker effect" and you can see the page getting loaded twice , very distinctly. This can be observed even in the Tapestry 4.1.2 demo : http://opencomponentry.com:8080/timetracker/app . If the refresh button is pressed on t

RE: Problem with InlineEditBox and Tapestry 4.1.1

2007-01-16 Thread Leffel, Daniel
So, one reason I thought it was a bug was the fact that the url it is requesting (/V2/app?service=asset&path=%2Fdojo%2Fsrc/widget/ContentPane.js) throws a 404 while manually requesting it at the correct URL (/V2/app?service=asset&path=%2Fdojo%2Fsrc/ContentPane.js) in fact returns the script. I

Re: Problem with InlineEditBox and Tapestry 4.1.1

2007-01-16 Thread Jesse Kuhnert
H...Sounds like it's a bug if it's possible for it to get like that without any weird configuration. What are the differences between the "basic" portions of your web.xml and the ones used by the demo apps? (like TimeTracker or Workbench) http://svn.apache.org/viewvc/tapestry/tapestry4/t

Re: Nice speedup with prop

2007-01-16 Thread Henri Dupre
On 1/16/07, Holger Stolzenberg <[EMAIL PROTECTED]> wrote: But should there be no logic in the templates ? I don't really care if there is, or not, any logic in the templates, but doing some simple comparisons with ognl is saving me lots of uninteresting java code. -- Henri Dupre Actualis Ce

RE: Problem with InlineEditBox and Tapestry 4.1.1

2007-01-16 Thread Leffel, Daniel
Does anyone have an opinion as to whether or not this something I'm doing wrong or a bug? I'm really stuck. Should I switch to a 4.1.2 snapshot? Will this solve the problem? Only hesitation is that this is going to go to production soon... Help would be much appreciated. -Original Message-

RE: script initializtion calls and event binding

2007-01-16 Thread Chris Norris
Thanks for the reply. I think that's possible and I'll check it out, but I wanted to post a little more code. The example I gave was perhaps too simplified. Here's the line that is called in the block: var cropper = new Cropper.Picture('${imageId}', options); and here's the constructor from

Re: script initializtion calls and event binding

2007-01-16 Thread Jesse Kuhnert
The context of "this" is probably what is breaking. That particular keyword is deceptively similar to java this but much more specific. in a block like : dojo.addOnLoad(function(){ }); "this" refers to the closest containing object. In this case that would be the anonymous function(){} object.

new binding similiar to context:

2007-01-16 Thread Marcus Irven
How would I go about creating a new binding static: used for assets instead of context: in order to direct assets to a server used only for static data? Is this possible? Thanks, Marcus

script initializtion calls and event binding

2007-01-16 Thread Chris Norris
Please bear with me though this explanation. We have some code that is broken, I believe, by the inclusion of all script initialization code in a dojo.addOnLoad call. The code this is being broken is a call to Scriptaculous' Event.observe: Event.observe(this.picture, "load", this.onLoad.bindAsEve

Re: Ajax Loading Indicator (google style)

2007-01-16 Thread Daniel Anguita O.
Thanks mkreis. I was trying to work this out like you told me, but i can't get the hide/show effect when is loading.. I've been many hours searching on the web for an explination but i still can't get it. So i dicede to show you the html rendered, maybe you can find easely what's my problem.

FormLinkRenderer + ServiceExtensionEncoder - NPE

2007-01-16 Thread Carlos.Fernandez
Tapestry 4 - Java 1.5 - Tomcat 5.5.9 Our app is using the page, direct and service ServiceEncoders for pretty urls. I am using the FormLinkRenderer to bypass the ~2kb url limit in IE. I am running into an NPE on line 154 of the FormLinkRenderer. This occurs because the link returns a null array

problem with restart service: exception thrown on session.flush()

2007-01-16 Thread RonPiterman
I have on a server log an exception every time the restart service is called - does anyone have a clue how to get rid of that? Cheers, Ron java.lang.IllegalStateException: setAttribute: Session already invalidated org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:12

RE: Recommendation...

2007-01-16 Thread Maldonado, Daniel CW2 NGCT
Thank you all. It seems that Tapestry, Spring and Hibernate is the best option for us. I appreciate all the help. Dan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: Re: AW: download a file

2007-01-16 Thread Jesse Kuhnert
Yep. That's exactly how I have done it in the past. On 1/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Why not return an ILink from the listener ? > > > > > http://tapestry.apache.org/tapestry4.1/usersguide/listenermethods.html > > Not sure about others, but I don't think this will wo

Re: Ajax Loading Indicator (google style)

2007-01-16 Thread imkreis
I think I forgot to mention that fx.js was my inspiration ;) @ShowOnAjax should also have a parameter with a list of components. @ShowOnAjax then only reacts on Ajax-Events within those components. @ShowOnAjax could also have two subcomponents like a4j:status. ciao.michael. > -Ursprünglich

RE: Submit form and bypass validation

2007-01-16 Thread Ben Dotte
You can also use Form's "refresh" listener to bypass client-side validation. Note that calling clearErrors() on the validation delegate can have undesired consequences: http://issues.apache.org/jira/browse/TAPESTRY-867 Ben -Original Message- From: Patrick Klein [mailto:[EMAIL PROTECTED]

Re: OT: Better Java performance on Linux

2007-01-16 Thread Danny Angus
"Inge Solvoll" <[EMAIL PROTECTED]> wrote on 16/01/2007 09:53:50: > A friend of mine (big linux fan) told me that tests at his workplace > indicated a huge (up to 500%) java performance gap between linux and > windows Of course you have to also ask what he calls performance, what did he measu

Re: OT: Better Java performance on Linux

2007-01-16 Thread Danny Angus
"Inge Solvoll" <[EMAIL PROTECTED]> wrote on 16/01/2007 09:53:50: > A friend of mine (big linux fan) told me that tests at his workplace > indicated a huge (up to 500%) java performance gap between linux and windows > Has anyone here experienced anything similar, with either OS performing > va

Re: Ajax Loading Indicator (google style)

2007-01-16 Thread andyhot
Yep, that's a nice way of doing this... It's also how effects are currently implemented http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/fx.js?view=markup Anyway, Daniel, it wouldn't hurt adding a JIRA request for this feature - i know i'll need something

Re: Ajax Loading Indicator (google style)

2007-01-16 Thread imkreis
Hi Daniel, in the onLoad of Dojo you have to registered two functions dojo.event.connect("around", tapestry, "loadContent", this, "postLoading"); dojo.event.connect("around", tapestry, "linkOnClick", this, "preLoading"); These functions surround the tapestry functions responsible for updating

Ajax Loading Indicator (google style)

2007-01-16 Thread Daniel Anguita O.
Hello all. I'm using Tapestry 4.1.1 and i'm learning to use ajax with it. Now i'm trying to make a loading indicator for ajax request when are loading, like google. So i make a simple div like this: Loading... and i want to make it visible when i run an EventListener and when it's finish, ma

RE: AW: Re: AW: download a file

2007-01-16 Thread Marcus.Schulte
> > Why not return an ILink from the listener ? > > > > > http://tapestry.apache.org/tapestry4.1/usersguide/listenermethods.html > > Not sure about others, but I don't think this will work for > me. I'm generating a PDF inside my listener, which I then > wish to send to the client as a downl

Re: Nice speedup with prop

2007-01-16 Thread D&J Gredler
Actually, it looks like Jesse already has some numbers for us! http://blog.opencomponentry.com/2007/01/14/new-ognl-release-on-the-horizon-its-faster/ http://www.theserverside.com/news/thread.tss?thread_id=43837 On 1/15/07, D&J Gredler <[EMAIL PROTECTED]> wrote: I've had a similar experience.

Re: Tap 4.1.2 : Asynchronous Selection Boxes does not work with Internet Explorer 6/7

2007-01-16 Thread Patrick Klein
Hi! To my knowledge there is none yet. This is the one thing that keeps us here from switching completely to Ajax... :| If you don't need a asynchronity, you could use synchronous updates for now... Regards, patrick I have run into the same problem of updating a child SelectionProperty

Re: Unusual caching problem

2007-01-16 Thread andyhot
Peter Stavrinides wrote: Hi everyone I have developed an editable table similar to an excel spreadsheet. I use Tapestry 4.1 and a little Javascript to get it to work. when you edit a cell it affects corresponding cells etc just like a spreadsheet. My problem arises when I enable caching on

Re: OT: Better Java performance on Linux

2007-01-16 Thread Marilen Corciovei
We are doing all development and deployment on Linux (Unix) servers but one big difference I have noticed is when installing on Sun machines. We have an application deployed on a Sun-Fire v210 and the java part behaves much faster on sun than on a similar linux server while the C part behaves somet

Re: Setting Focus to a formcomponent (4.1.2 SNAPSHOT)

2007-01-16 Thread Patrick Klein
Hi again! Found a working solution for my case Emptying the body part and simplifying the initalization part to document.getElemtentById("submittedId").focus() does the trick (parameters have to be adjusted, too) Regards, Patrick Hi! I'm trying to set the focus using the example script

Re: PatternValidator with Tapesty 4.0

2007-01-16 Thread andyhot
Nick Westgate wrote: Yet again, mourn the passing of Spindle, which would warn you that has an invalid OGNL expression for value. You want to pass a string, so use quotes: or better Cheers, Nick. Pratibha Gopalam wrote: Hello, Has anybody used PatternValidator with Ta

Tap 4.1.2 : Asynchronous Selection Boxes does not work with Internet Explorer 6/7

2007-01-16 Thread Shing Hing Man
I have run into the same problem of updating a child SelectionProperty in IE 6, as described in the following JIRA and an earlier post. https://issues.apache.org/jira/browse/TAPESTRY-1206 and also http://article.gmane.org/gmane.comp.java.tapestry.user/44438/match=stefan+esterer It would be appr

Re: OT: Better Java performance on Linux

2007-01-16 Thread andyhot
Inge Solvoll wrote: Sorry about this OT question, but I figured you guys were the right ones to ask about this. A friend of mine (big linux fan) told me that tests at his workplace indicated a huge (up to 500%) java performance gap between linux and windows on machines running on the same har

Re: OT: Better Java performance on Linux

2007-01-16 Thread Martin Strand
Are you sure it wasn't just -server vs -client VM? I've seen the server VM (in certain apps) be up to 500% faster than the client VM. On Tue, 16 Jan 2007 10:53:50 +0100, Inge Solvoll <[EMAIL PROTECTED]> wrote: Sorry about this OT question, but I figured you guys were the right ones to a

OT: Better Java performance on Linux

2007-01-16 Thread Inge Solvoll
Sorry about this OT question, but I figured you guys were the right ones to ask about this. A friend of mine (big linux fan) told me that tests at his workplace indicated a huge (up to 500%) java performance gap between linux and windows on machines running on the same hardware, in favour of linu

Re: PatternValidator with Tapesty 4.0

2007-01-16 Thread Nick Westgate
Yet again, mourn the passing of Spindle, which would warn you that has an invalid OGNL expression for value. You want to pass a string, so use quotes: Cheers, Nick. Pratibha Gopalam wrote: Hello, Has anybody used PatternValidator with Tapestry 4.0? I would like to validate

AW: AW: Re: AW: download a file

2007-01-16 Thread Holger Stolzenberg
For us returning Ilink worked very well -Ursprüngliche Nachricht- Von: Robert J. Walker [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. Januar 2007 01:27 An: Tapestry users Betreff: RE: AW: Re: AW: download a file andreas a wrote: > Why not return an ILink from the listener ? > > ht

AW: Nice speedup with prop

2007-01-16 Thread Holger Stolzenberg
But should there be no logic in the templates ? Mit lieben Grüßen aus dem eWerk | Holger Stolzenberg | Softwareentwickler | | eWerk IT GmbH | Markt 16 | Leipzig 04109 | http://www.ewerk.com | | fon +49.341.4 26 49-0 | fax +49.341.4 26 49-88 | mailto:[EMAIL PROTECT

PatternValidator with Tapesty 4.0

2007-01-16 Thread Pratibha Gopalam
Hello, Has anybody used PatternValidator with Tapestry 4.0? I would like to validate an user input against a pattern. I tried using the PatternValidator like below class="org.apache.tapestry.valid.PatternValidator"> but got exceptions saying patternString/patt

Re: Nice speedup with prop

2007-01-16 Thread Massimo Lusetti
On 1/16/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Yeah..The new ognl version should be just as fast as tapestry-prop. (only with the obvious benefits of supporting a full expression language) Interesting... I don't know when it will be released. The guy who owns opensymphony is supposedly

Setting Focus to a formcomponent (4.1.2 SNAPSHOT)

2007-01-16 Thread Patrick Klein
Hi! I'm trying to set the focus using the example script on tapestry's @Script-component page but every time i try the resulting page using firefox firebug shows me the error "document.reportForm has no properties" even though the script is completely defined after the form. I checked the gen

Re: Submit form and bypass validation

2007-01-16 Thread Patrick Klein
Hi! Is it possible to have a submit button on a form that can call a listener bypassing any validation set for the form (without having to explicitly code around validation in the listener)? This is useful when buttons modify the structure of the form: e.g add or remove form components. You co