Escaping quotes in OGNL expressions in Tapestry templates

2006-10-10 Thread Jim Steinberger
Hello, I ran into the situation where I needed to insert a double-quote in an OGNL expression. I wanted to do: value="ognl:'Section: \"' + section.name + '\"'", but the Tapestry parser doesn't like that very much. A solution offered in the archives is to explicitly declare the component in th

Re: Instructions for building 4.1

2006-10-10 Thread Jesse Kuhnert
I believe all you need to do is this after installing maven: "mvn" in the main tapestry directory. ;) On 10/10/06, Ryan Cuprak <[EMAIL PROTECTED]> wrote: Hello, Just curious if there are instructions for building Tapestry 4.1 from source/version control? I did find http://tapestry.apache

Instructions for building 4.1

2006-10-10 Thread Ryan Cuprak
Hello, Just curious if there are instructions for building Tapestry 4.1 from source/version control? I did find http://tapestry.apache.org/tapestry4.1/download.html but I am not quiet sure what I need setup. I have begun looking into maven but it is a bit tangential to tapestry 4.1. Than

RE: Tapestry page (and other) event listeners

2006-10-10 Thread Epstein, Ezra
I declared the proper interface as being implemented and that was all that was needed. Works on components. Thanks, Ezra Epstein -Original Message- From: andyhot [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 10, 2006 5:08 PM To: Tapestry users Subject: Re: Tapestry page (and

Re: Tapestry page (and other) event listeners

2006-10-10 Thread andyhot
Jesse Kuhnert wrote: > I don't remember whether or not Page listeners get attached to > components or > not. It doesn't sound like something that would make sense, but who > knows.. They do get attached to components... but i'm under the impression that your page also has to implement PageBeginRe

Re: Tapestry page (and other) event listeners

2006-10-10 Thread Jesse Kuhnert
I don't remember whether or not Page listeners get attached to components or not. It doesn't sound like something that would make sense, but who knows.. For "components" specifically, you also have the other options involved, like: (from http://tapestry.apache.org/tapestry4.1/target/site/tapestr

RE: Tapestry page (and other) event listeners

2006-10-10 Thread Epstein, Ezra
A-ha! So if I have a component that implements this that component will auto-magically be registered and receive the call-back? Thanks, Ezra Epstein Amazon.com - Developer Tools 206-266-2259 -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Tuesday, October

Re: Tapestry page (and other) event listeners

2006-10-10 Thread Jesse Kuhnert
I'd have to dig into the code to be sure I understood all points but I don't think addPageBeginRenderListener is called by user code most of the time. .. If you page implements one of the various Listener classes (like umm... PageBeginRenderListener) - the framework will detect it and perform the

Re: How to observe property binding events

2006-10-10 Thread Jesse Kuhnert
To answer the last question first, maybe. That depends on how you do it. :) If the solution involves any potential added overhead for all properties to handle a 2% use-case then it'll get scrutinized and not likely make it in...If the design fits in line with the rest of the system + doesn't incur

Customizing the Shell Component

2006-10-10 Thread Mark Stang
Hi, I am using Tapestry 3.x and wondering how to customize my .css file with the Shell component. I want to be able to swap out my Shell component by putting it inside of a Library. If I do that can I still just reference it in my .html? I don't know why I think it is any different from any o

Tapestry page (and other) event listeners

2006-10-10 Thread Epstein, Ezra
The common idiom for listener registration (Swing, Java Beans, etc.) is that the remove() method returns the listener and the add() method only adds a listener if it's not already listening. Tapestry's impl follows neither of these approaches. Is there a reason for the naïve implementation of

RE: How to observe property binding events

2006-10-10 Thread Epstein, Ezra
This pretty much confirms to me that there's a lack of a notification feature for parameter binding events. Seems pretty basic and would be easy to add. May I add that in a way that might make its way back into the code base? Thanks, Ezra Epstein Amazon.com - Developer Tools 206-266-2259

Re: Maven, Eclipse and Jetty setup problems.

2006-10-10 Thread Leo Sakhvoruk
Oh I see, Thats kinda along the lines what I was attempting with the url resolver but it looked like I would have to match the version numbers exactly in order to pull the latest library builds. Thanks for your suggestion, I'll try it out. Leo Konstantin Ignatyev wrote: Maven2 integration

Re: Maven, Eclipse and Jetty setup problems.

2006-10-10 Thread Konstantin Ignatyev
Maven2 integration in Ivy is not ideal, we are supposed to have own Ivy repo ;) or use WOJ but you can simply use something like this, and do not mess with URL resolvers: http://people.apache.org/repo/m2-snapshot-repository/incubator-activemq/activeio-core/3.0-SNAPSHOT/activeio-core-3.0

A dynamic css emitter like the @Script component

2006-10-10 Thread Josh Long
http://www.madskristensen.dk/blog/CommentView,guid,9b4acb83-3ab4-45a0-be95-b4279f4da7d1.aspx The preceeding link is a an implementation (not my own, obviously) of a ASP.NET "engine-service" which renders your css based on scripted inputs. I know there's a lot to be said for x-platform CSS, but t

DirectLink in Abstract Component

2006-10-10 Thread jake123
Hi, I have a menu component that extends AbstractComponent. It seems that my DirectLinks in the menu component does not work. I have 4 different Listener methods and I have injected the pages that they should go to. If I add sysout:s to se if I end upp in the listener methods nothing happens. I ha

Re: DropDownTImePicker doesn't read and display the time chosen

2006-10-10 Thread Josh Long
Jesse! How horrible -- I was sick yesterday and hadn't checked my email over the weekend so accept my sincerest apologies for not thanking you earlier! I just booted my app and was surveying one of the sore spots (the drop down time pickers) when I noticed that some err.. .. magical... tapestry

Re: Problems with css tag in custom components

2006-10-10 Thread jake123
Thank you for your quick answer. It works perfectly fine now. Cheers, Jacob -- View this message in context: http://www.nabble.com/Problems-with-css-tag-in-custom-components-tf2417055.html#a6745243 Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Maven, Eclipse and Jetty setup problems.

2006-10-10 Thread Leo Sakhvoruk
Hi Konstantin, I'm trying to get Ivy working as per your suggestion but I'm having trouble pulling dependencies via a url resolver (as that seems to be the only option from what I could gather) for the 4.1.1-SNAPSHOT. Since I'm trying to retrieve libraries from http://people.apache.org/repo/m

Re: DatePicker not working after upgrading from 4.0.2 to 4.1

2006-10-10 Thread Jesse Kuhnert
Thanks for the input Matthew. I especially like enhancements that make components/widgets more usable. Since this is a dojo widget you might want to share some of your thoughts at trac.dojotoolkit.org . Or, if you had a suggestion for a DatePicker that you think works "correctly" I'm always open

Re: How to observe property binding events

2006-10-10 Thread Jesse Kuhnert
I'm not sure what the requirements are wrt properties and specific users. I've done similar things on a "per request" basis via doing something like: public abstract int getProp(); public abstract void setProp(int value); public int getComplicatedValue() { if(getProp() == -1) { // do somet

Re: DatePicker not working after upgrading from 4.0.2 to 4.1

2006-10-10 Thread andyhot
Payne, Matthew wrote: > Fyi: that dojo dropdownpicker has nice "eye candy effects", but terrible for > entering dates many years in the part. > > http://archive.dojotoolkit.org/nightly/tests/widget/test_DropdownDatePicker.html > > Though the standard tapestry date picker is not so good at that as

RE: DatePicker not working after upgrading from 4.0.2 to 4.1

2006-10-10 Thread Payne, Matthew
Fyi: that dojo dropdownpicker has nice "eye candy effects", but terrible for entering dates many years in the part. http://archive.dojotoolkit.org/nightly/tests/widget/test_DropdownDatePicker.html Though the standard tapestry date picker is not so good at that as well. I really hope that does n

RE: How to observe property binding events

2006-10-10 Thread Epstein, Ezra
That's the opposite of the functionality I want. These are not PER request. They are per instance of a component. Thus true instance variables are the way to go. Tapestry recycles Components and it seems that within a request the same component is re-used but not cleared (ivars reset) even th

Setting locale based on querystring

2006-10-10 Thread Malin Ljungh
I've seen this issue before on this list but not seen any satisfying solution. This is my problem: Based on the querystring to one of my tap pages (it is a link from outside) I derive the locale that I wan't to use to display the requested page. In other part of my app I use a DirectLink and a li

Re: Setting locale in stateless app

2006-10-10 Thread Malin Ljungh
I'm intressted in doing about the same. Can you explain in more detail how you solved it? Malin On 10/3/06, Hardi Rokk <[EMAIL PROTECTED]> wrote: Answering my own question: I resolved this problem by overriding tapestry.request.RequestLocaleManager service point in my hivemind conf and just a

Re: Validation questions: components and messages

2006-10-10 Thread Ron Piterman
Yes - you can do much with the delegate :) BTW - consider using CSS for this instead of adding elements , it might be more elegant and easier to maintain... Cheers, Ron Reto Hotz wrote: > Hi, > > On 10/10/06, Ron Piterman <[EMAIL PROTECTED]> wrote: >> Dave Rathnow wrote: >> > Also, is there an e

RE: Thoughts about performance monitoring in Tapestry

2006-10-10 Thread Mark Stang
Robin, Great idea. If we migrate to 4.x, I will try it. I don't know what Howard is going to have available for 5.x, but I think it will support this. regards, Mark Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message--

RE: How to pass parameters between Page and component

2006-10-10 Thread jake123
Thank you for your answer, I will try this solution too. Cheers, Jacob -- View this message in context: http://www.nabble.com/How-to-pass-parameters-between-Page-and-component-tf2412533.html#a6737950 Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: How to pass parameters between Page and component

2006-10-10 Thread jake123
thank you Dennis for your answer, it works perfectly fine :-) Cheers, Jacob -- View this message in context: http://www.nabble.com/How-to-pass-parameters-between-Page-and-component-tf2412533.html#a6737930 Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Problems with css tag in custom components

2006-10-10 Thread Andreas Andreou
For tap 3.0.x and 4.0.x assuming you use the Insert component, http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Insert.html set the raw attribute to true. For tap 4.1.x, there's already a component for correctly including a css http://tapestry.apache.org/tapestry4.1/components/Sty

Problems with css tag in custom components

2006-10-10 Thread jake123
Hi, I have some problems with my custom components. Each of the components have their own CSS so I need to insert a tag like this for the component: this tag will not end up in the tag but actually in the body of the html. The results come out like this (disregard the white spaces in the bigi

Re: Validation questions: components and messages

2006-10-10 Thread Reto Hotz
Hi, On 10/10/06, Ron Piterman <[EMAIL PROTECTED]> wrote: Dave Rathnow wrote: > Also, is there an easy way to get the individual error messages from the > validation delegate? In such a case you need to create your own class, extending the standard validation delegate. There are methods which al

Re: Validation questions: components and messages

2006-10-10 Thread Ron Piterman
Dave Rathnow wrote: > I have written a component that contains text fields that need to be validated > when a page is submitted but I can't figure out how component validation > hooks into Tapestry's validation framework. I can access my validation > delegate > in my page component but how can I

Re: How do I create a link...

2006-10-10 Thread Hajaansh
This is also how I do it but I thought I read in a previous post that this is not the "best" way of doing it. Is this correct? On 10/4/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: That depends on what you want to happen when they click on that asset? I've found the "ServiceLink" component ind

Validation questions: components and messages

2006-10-10 Thread Dave Rathnow
I have written a component that contains text fields that need to be validated when a page is submitted but I can't figure out how component validation hooks into Tapestry's validation framework. I can access my validation delegate in my page component but how can I get the validation delegate fr

Re: Accessing HiveMind Registry

2006-10-10 Thread Ron Piterman
One way would be to create a factory for instances of this class in hivemind, and inject any services you need to it. Another way would be to get the registry instance tapestry uses, which is stored as a context attribute. see the ApplicationServlet code. Cheers, Ron Edoardo Campagnano wrote: >

Re: checkboxes problem

2006-10-10 Thread Ron Piterman
Yes, I know why this happends: you have a bug, a mistake in your code. Cheers, Ron Andrés Nates wrote: > Hello > > > > I have the following problem > > > > I have a list of checkboxes, when i select a checkbox the page recharges > itself. But if i select the last of the checkboxes in the

Accessing HiveMind Registry

2006-10-10 Thread Edoardo Campagnano
Hi to all, I've got a small prioblem with HiveMind. I wrote a small Service but I must use from a class taht is outside a Tapestry component and can't be declared abstract. I need something like in the HiveMind manual: (from the HiveMind home page) . Registry registry = RegistryBuilder.constru

Re: Thoughts about performance monitoring in Tapestry

2006-10-10 Thread Robin Ericsson
On 10/9/06, Mark Stang <[EMAIL PROTECTED]> wrote: Try JProfiler. It can track where you application is spending all of its time. One thing that came up earlier is that OGNL is a hog. However, we haven't found Tapestry to be the issue, but the rest of the app... For simple expressions, try

Re: How to observe property binding events

2006-10-10 Thread andyhot
Why store them in local variables? Store it in the current request cycle... First do a cycle.getAttribute("myexpensivevar") if that returns null, do the computations and store the result back cycle.setAttribute("myexpensivevar",obj); See http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/ap

RE: How to observe property binding events

2006-10-10 Thread Epstein, Ezra
Also, that title should have been "parameter binding events" not (generic) property. The situation I have occurs when the framework sets the parameter on a Component. Thanks, Ezra Epstein -Original Message- From: Epstein, Ezra [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 20

RE: How to observe property binding events

2006-10-10 Thread Epstein, Ezra
OK, let's get to brass tacks. I have some derived values that are somewhat expensive to compute so I compute them once per request/response cycle and then they're in local instance variables (non-persisted). The particular component in question (with the semi-expensive derived values) is used