RE: T4: Adding a listener to a link that has not been rendered in tapestry

2007-07-29 Thread Marcus.Schulte
you could use the EventListener mechanism to intercept the clicks, see http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html If you know the link-id's in advance, it's particularly easy. If you don't have control over the "external" links, you'll have to come up with some javascript deleg

Re: T5: Javascript abstraction musing

2007-07-29 Thread Kristian Marinkovic
hi bill, i posted a related comment on https://issues.apache.org/jira/browse/TAPESTRY-1650 maybe you can take a look on it g, kris "Bill Holloway" <[EMAIL PROTECTED]> 30.07.2007 01:14 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema T5: Javascript abstraction mu

T4: Adding a listener to a link that has not been rendered in tapestry

2007-07-29 Thread Kay.Thielmann
I wrote a component which shows some html from an external source. This html may contain some links. If one of this links is clicked I need to call a listener to set some parameters, but I don't know how to trigger the listener in this case. Please help. Kay Thielmann Mitarbeiter / BC Governme

Re: T5.0.5 Informal parameters not rendered in a descendant of AbstractField.

2007-07-29 Thread Nick Westgate
Hi Shing. Nice to see you getting into T5. ;-) Not sure why your resources.renderInformalParameters(writer) fails, but it's likely a clash with the RenderInformals mixin in AbstractField. You should read the docs about rendering multiple tags: http://tapestry.apache.org/tapestry5/tapestry-core/a

Re: [T4]Handling Nulls in OGNL expressions

2007-07-29 Thread Damien Uern
(Sorry for top posting, but everybody else seems to do it on this list) Anyway, the null pointer exception in a long property access chain was one of the issues I had with OGNL a while ago and have basically just learned to live with it. It is highly annoying. One of the things I preferred wit

T5: Javascript abstraction musing

2007-07-29 Thread Bill Holloway
It seems tapestry.js works this way, so I'm sure someone has thought of this... I wonder if a prototype "interface" in javascript could be a path to plugging in whatever javascript library you want, at least at some level of functionality. Such as: var Tapestry = { xhrSend: function (/* so

Re: T5 Converting a T4 table to T5 grid

2007-07-29 Thread Daniel Jue
Reading from some other threads about the Grid Component, it seems that since it relies on the BeanModel, it would be unable to call the methods that would return the data. i.e for some column "foo" in row myrow, It wants to call myrow.getFoo(). There is no way of telling it to call myrow.get("foo

T5.0.5 Informal parameters not rendered in a descendant of AbstractField.

2007-07-29 Thread Shing Hing Man
I have subclassed AbstractField to make a colour picker component, which is essentially a read only text field with a clickable icon next to it. The component is working, but it does not render the informal parameters. With I expect the rendered text field to have an attribute of size="3".

Re: T5: Tutorial question.

2007-07-29 Thread SergeEby
Do a search in the mailing list. This question was answered a while ago. /Serge Alex Shneyderman wrote: > > Hi, all! > > I am trying out tapestry and was going through the tutorial and > noticed that in the section about Guess.java the following: > > Object onActionFromLink(int guess) >

T5: Tutorial question.

2007-07-29 Thread Alex Shneyderman
Hi, all! I am trying out tapestry and was going through the tutorial and noticed that in the section about Guess.java the following: Object onActionFromLink(int guess) { _count++; if (guess == _target) { _gameOver.setup(_count); return _gameOver; } if (guess

Re: Select component problem in T5

2007-07-29 Thread Allen Guo
Thanks Nick again. Nick Westgate 写道: Because individual options can be disabled. Also, you shouldn't really use OptionModelImpl because it is an internal class and may change in the future. (1) You can pass a map (names to codes) and Tapestry will create the model for you. (2) More work, imp

Re: Tomcat Eclipse plugin and stand-alone Tomcat - html files

2007-07-29 Thread Eckenfellner Klaus
for the reason that you have made some logging to application-servlet ... we know, that property is set right ... this is very good, because i know that running tomcat as service under windows can be a little bit tricky (especially applying new configurations or using custom system-properties). i

[T5][Info] Scala Programming langage works with T5

2007-07-29 Thread farmand
Hello guys, I just began to play with Scala ( http://www.scala-lang.org/index.html ), a functional, full-OO programming language that run on top of the JVM. And you know what ? I attempt to build a page in Scala for Tapestry 5, and it works ! Scala allows to import Java class and use annotation,

Re: Tomcat Eclipse plugin and stand-alone Tomcat - html files

2007-07-29 Thread Malin Ljungh
Wo... I may have solved it !?!? I started comparing all the JVM system properties. One that differed was user.name - service running as SYSTEM and eclipse as Malin Ljungh (my local account). I tried to change the service run with my own account, Malin Ljungh and now it seems to work!?!? H

Re: Tomcat Eclipse plugin and stand-alone Tomcat - html files

2007-07-29 Thread Malin Ljungh
I extended the ApplicationServlet and performed some logging under initializeApplication. The JVM system property org.apache.tapestry.disable-caching is indeed set to true and it still doesn't work... :'( Any ideas? /Malin On 7/29/07, Malin Ljungh <[EMAIL PROTECTED]> wrote: > > Thank you Klaus

Re: Tomcat Eclipse plugin and stand-alone Tomcat - html files

2007-07-29 Thread Malin Ljungh
Thank you Klaus for your input. I fully understand your feelings about windows-click-click but I'm stuck on this environment, for development at least. I'm running the Tomcat as a service. I do not have a catalina.bat anywhere on my computer... is it maybe a Tomcat 4 thing? All I can find is the t

Re: Tomcat Eclipse plugin and stand-alone Tomcat - html files

2007-07-29 Thread Eckenfellner Klaus
in which way do you start your tomcat? service / startmenu / console ? maybe you could give the console approach a try and set the flag manually. other approach could be to edit the catalina.bat file where you can set a lot of tomcat-specific properties and your own vm-properties. sorry but i am li

Re: Tomcat Eclipse plugin and stand-alone Tomcat - html files

2007-07-29 Thread Malin Ljungh
OK, so this is the key then... I use tomcat5w.exe "Configure Tomcat" tool. On the Java tab I have Java Options: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 5.5 -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 5.5 -Djava.endorsed.dirs=C:\Program Files\Apach

Re: Tomcat Eclipse plugin and stand-alone Tomcat - html files

2007-07-29 Thread Eckenfellner Klaus
the only way to get this behavior you want (changes to html files are applied without restarting tapestry), can be set with the -Dorg.apache.tapestry.disable-caching=true flag. here a snippet from the tapestry documentation: If specified (as "true"), then the framework will discard all cached data

Re: Tomcat Eclipse plugin and stand-alone Tomcat - html files

2007-07-29 Thread Malin Ljungh
Klaus! I do not use WAR, it is a directory with WEB-INF and classes and lib directories and all that stuff. In development I have -Dorg.apache.tapestry.disable-caching=true but I have also set this on my standalone Tomcat (I think have not verified that it works though) Is it this flag that m

Re: Tomcat Eclipse plugin and stand-alone Tomcat - html files

2007-07-29 Thread Eckenfellner Klaus
how do you deploy your application, with a WAR-file or do you copy webapplication-folder into webapp-folder of tomcat? is it possible that you have set "org.apache.tapestry.disable-caching" during development (see http://tapestry.apache.org/tapestry4/UsersGuide/configuration.html)? which version of

Tomcat Eclipse plugin and stand-alone Tomcat - html files

2007-07-29 Thread Malin Ljungh
This is mainly about Tomcat but also about Tapestry handling of html files. I'm using Eclipse and Tomcat for development - works fine! Particularly, if I change an html file, the change will appear immediately without reload of context. But - if I have standalone Tomcat server, and change the co