Disable checkbox if cookies are disabled

2005-10-04 Thread Ananya Goswami
Hi all!! I have a home.html where I have a checkbox. I want to disable the checkbox on load of the page if the cookies are disabled in the client machine. I am trying using javascript, but am not being able to get the effect.( I am using tapestry as my framework) If

Re: Why no BaseFormComponent?

2005-10-04 Thread Scott Russell
Hi Pat, I think you've got me confused here. I'm not actually trying to extend Form, I'm trying to make a component that needs to be embedded within a form. The problem is that BaseComponent extends AbstractComponent, and adds the facility to parse html templates. AbstractFormComponent extends

3.0.3 Component Localization

2005-10-04 Thread Mark Stang
Hi, I am using 3.0.3 and it appears that I must localize at the component level. I have a single page and I can localize there for "page" specific stuff, however, when I try and localize at the component level it seems to require a .properties file for each component. Is this true? thanks, M

Tapestry and errors

2005-10-04 Thread Rafa� Masztalerz
Hi I've a question associated with errors in tapestry. If I define the following line in my *.application file and create needed class and page, do I have to create another page for stalelink/stalesession errors? I would like to have one page for all errors. Thanks for help Rafal -

Re: NoClassDefFound - postgresql

2005-10-04 Thread Tim Sawyer
Put the postgres driver jar in ${tomcat.home}/common/lib You need the driver classes from http://jdbc.postgresql.org/download.html that match your database. Tim. On Wednesday 02 Oct 2002 10:57, Radim Burget wrote: > Hi, > > I have problem with creating resource for database connection. I have >

RE: injecting services in ASO's

2005-10-04 Thread Patrick Casey
I'm not sure if this is what you're looking for, but one trick I use to load resources from time to time is: Step 1: Put the resource in a known package. Step 2: Put some class, any class, in that package. Step 3: Get a classloader for that marker class with:

Re: injecting services in ASO's

2005-10-04 Thread Norbert Sándor
It would be nice to have a special classloader which enhances arbitrary classes (I mean not only components) based on it's annotations. Does anyone know about such ClassLoader or ClassFileTransformer? I have a very ugly but working "solution" for this: I subclassed ApplicationServlet and I stor

Re: Tapestry 4 migration: how to initialize a Global object?

2005-10-04 Thread Adam Greene
You aren't missing anything. Upgrade to the latest Beta-9 build, the ServletContext wasn't available originally (but was "requested" that it be added). Then just inject it as a service, like you would a WebRequest (it might be available via infrastructure:, but I haven't looked). - Origi

Re: [~OT] configuration management in tapestry (aka testing vs production)

2005-10-04 Thread Gertjan Assies
what I do is make a server specific directory in my project (like /etc/config/staging and /etc/config/live) and there I put all the files specific for that server, like web.xml and property files, database configuration files etc etc then I define a variable in my build.properties (build.location=s

RE: Persistent cookies in T4

2005-10-04 Thread Denis Souza
Thanks for all your responses! I'm doing my own implementation of CookieSource and with a bit more of reading I learned how to hook to the WebRequestServicerFilter through hivemind. I got most of it working already. Denis -Original Message- From: Eli Doran [mailto:[EMAIL PROTECTED] Sent:

RE: [~OT] configuration management in tapestry (aka testing vs pr oduction)

2005-10-04 Thread Hensley, Richard
Here is a simple property file symbol source package any.package; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import java.util.Properties; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.ap

Re: [~OT] configuration management in tapestry (aka testing vs production)

2005-10-04 Thread Dan Adams
hmm. i like that idea. forgive my ignorance but if specified a .properties file like -Dconfig.properties=production.properties how would I get hivemind to read it so i can access the values from inside the hivemodule.xml and inside tapestry? On Tue, 2005-10-04 at 20:57 +0200, Peter Ertl wrote: > m

Re: [~OT] configuration management in tapestry (aka testing vs production)

2005-10-04 Thread Peter Ertl
my favourite: define a java propery in the startup line of the server java -Dconfig.dir=c:/config [server-specific-startup] - if there is no config.dir, use senseful defaults - the directory differs for development / production - put all external configuration files for your apps in there - not s

Re: [~OT] configuration management in tapestry (aka testing vs production)

2005-10-04 Thread Johan Maasing
Dan Adams wrote: I was wondering what people ways people have found with tapestry to make launching a .war easier? For instance in my app I test locally using jetty but then have a server that releases get put on at the end of every iteration. Here is an example of what would need to change: - e

injecting services in ASO's

2005-10-04 Thread Dan Adams
Does anyone know how to inject a service into an ASO? I'm really havin some trouble with this. -- Dan Adams Software Engineer Interactive Factory - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

OGNL enum?

2005-10-04 Thread Martin Strand
Is there a way to reference an enum with OGNL? package package; class Class { public enum Enum { ONE, TWO, THREE } } I tried a couple of variations but couldn't figure it out. Perhaps it's not possible? ognl:@[EMAIL PROTECTED] ? -Martin --

Re: Creating an IAsset in code from a context image

2005-10-04 Thread Kevin Menard
On Mon, 05 Sep 2005 10:03:09 -0400, Joe Trewin <[EMAIL PROTECTED]> wrote: For anyone else trying to do something similar, I eventually solved this by doing the following: ContextResource resource = new ContextResource(servletContext, "myfile.gif"); IAsset asset = new ContextAsse

ASO's with invoke-factory

2005-10-04 Thread Dan Adams
What is wrong with the following? I've looked through the docs and can't figure out why it's complaining that invoke-factory has a required object attribute. This worked before with create-instance.

Re: InjectState exception within activateExternalPage

2005-10-04 Thread Shawn Church
The only solution (work-around) I could come up with for this problem is to replace this in my Border component: @InjectState("visit") public abstract Visit getVisitObject(); with this: @InjectObject("infrastructure:applicationStateManager") public abstract ApplicationStateManage

[~OT] configuration management in tapestry (aka testing vs production)

2005-10-04 Thread Dan Adams
I was wondering what people ways people have found with tapestry to make launching a .war easier? For instance in my app I test locally using jetty but then have a server that releases get put on at the end of every iteration. Here is an example of what would need to change: - email address of sup

Re: Recusive Components

2005-10-04 Thread Michael Henderson
I wrote this a while ago: http://www.behindthesite.com/blog/C1931765677/E923478269/index.html Mike Daniel M Garland wrote: Could you explain that in a little more detail? I'm scratching my head here... Dan Norbert Sándor wrote: You can use Block and RenderBlock to implement recursion.

Re: T4 best practice

2005-10-04 Thread Kent Tong
Rob Dennett tmit1.org> writes: > Yes, but would it be fair to say that it is a T4 best practice to create a > session-scoped ASO that handles all > non-Tapestry-specific page logic for each page (and maybe for each custom > component) in the application? Or should this logic live in the page c

Re: Where are validator messages stored.

2005-10-04 Thread Kent Tong
Alan Chandler chandlerfamily.org.uk> writes: > However, I have hit on a little problem. I want to create an appropriate > error message when the translation fails. This seems to work in the basis > that I pass a message-key which is looked up in a properties file (locale > based). > > I t

Re: Documentation for client persistence scopes?

2005-10-04 Thread Kent Tong
Vjeran Marcinko email.t-com.hr> writes: > > Hi there. > > Can someone provide me with currently available client persistence scopes, > and their short explanation? > Tapestry 4.0 documentation has explicit mark that it's missing, so ... a) @Persist("client") b) @Persist("client:page") c) @P

Re: Documentation for client persistence scopes?

2005-10-04 Thread Adam Greene
Ok. Here is a quick explanation of the client persistent scopes and how they work. There is "page" and "application" scopes. defined as "client:page" and "client:app" respectively. Both page and application scope client-side persistence take the indicated page values and gzip compress + ba

OGNL 3.0 - status and integration

2005-10-04 Thread Adam Greene
What is the status of OGNL 3.0, it seems like it hasn't been worked on for a long time, and I was wondering when we might see it integrated into Tapestry, assuming it is in a state that could be integrated. If it is not, can we apply some pressure to see it completed :-) If it gives a 3x speed

Re: Recusive Components

2005-10-04 Thread Daniel M Garland
Could you explain that in a little more detail? I'm scratching my head here... Dan Norbert Sándor wrote: You can use Block and RenderBlock to implement recursion. BR, Norbi - Original Message - From: "Daniel M Garland" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Tuesday, October

Re: ClassCastException with StringValidator

2005-10-04 Thread Jan Normann Nielsen
Jan Normann Nielsen wrote: Hey I don't quite understand how this is possible. I see the problem. I didn't realize that there were two BaseValidator classes, one that implements Validator, and one that implements IValidator. StringValidator extends the last one which means it can't be used

RE: Download service

2005-10-04 Thread Detlef Schulze
Look in the FAQ of the tapestry website. Section 2.7. That should be the easiest way. -Original Message- From: Martin Strand [mailto:[EMAIL PROTECTED] Sent: Dienstag, 4. Oktober 2005 09:30 To: tapestry-user@jakarta.apache.org Subject: Download service Hi. I need a stateful download f

Re: Recusive Components

2005-10-04 Thread Ron Piterman
taocs.sf.net has a great tree component. ציטוט Daniel M Garland: Hi all, Is it possible for a component to reference itself within it's template? If I wanted to display a tree-like structure it would nice if I could recursively call components. If not, is there a good way of doing this? Th

ClassCastException with StringValidator

2005-10-04 Thread Jan Normann Nielsen
Hey I don't quite understand how this is possible. I have a component in my page: value="validator:string,required,minimumLength=3" /> but when the form rewinds, I get this exception: java.lang.ClassCastException: org.apache.tapestry.valid.StringValidator # o

Re: Recusive Components

2005-10-04 Thread Norbert Sándor
You can use Block and RenderBlock to implement recursion. BR, Norbi - Original Message - From: "Daniel M Garland" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Tuesday, October 04, 2005 1:08 PM Subject: Recusive Components Hi all, Is it possible for a component to reference itsel

Recusive Components

2005-10-04 Thread Daniel M Garland
Hi all, Is it possible for a component to reference itself within it's template? If I wanted to display a tree-like structure it would nice if I could recursively call components. If not, is there a good way of doing this? Thanks in advance -- Dan Garland [EMAIL PR

How to render the thumbnails using the Contrib table?

2005-10-04 Thread Manjith Kumar Adapa
Hi, In our application I store the path of the file and other MetaData about the file in database. Well I am able to retrieve all the metadata. But the thing is that I need to render the images from the path specified in the database table from the local machine. Can somebody help me how to do th

getPage() on a page in a seperate app

2005-10-04 Thread Daniel M Garland
Hi all, From what I can tell it seems that I can't access a page in another Tapestry app; for example if I wanted to use the cycle to getPage() on a seperate app to set a property I can't. This seems a reasonable limitation but what's the workaround? Regards -- Dan Garland

Re: Download service

2005-10-04 Thread Inge Solvoll
How about this one? http://tapestry-bayeux.sourceforge.net/components/DownloadLink.html http://tapestry-bayeux.sourceforge.net/services/DownloadService.html Martin Strand wrote: Hi. I need a stateful download function which simply streams a file to the client. I suppose I should write a "se

Re: validating PropertySelection in each row of a table

2005-10-04 Thread Kent Tong
Larry Sherrill yahoo.com> writes: > 1. How does the render method get access to the > component it needs to valid to validate? something like: class Home { IDelegate getMyDelegate() { return new MyDelegate(this); } } class MyDelegate ... { MyDelegate(IPage page) { //you can get

Re: Submit component and "value" property

2005-10-04 Thread Jan Normann Nielsen
Muralidhar Y. wrote: Why value is not a reserved parameter is as following :- One of the most imp point is that tapestry html pages can be directly opened in the browser and can give the same look and feel as they are seen when deployed. But if you declare value as reserved parameter html deve

Re: tapfx EasyInsert for T3?

2005-10-04 Thread Andreas Andreou
I haven't really seen the related source in Tap3, but most probably, you'ld have to create and use a patched tapestry 3 version, that would apply this preprocessing to the templates. Inge Solvoll wrote: Hi! I have downloaded the tapfx EasyInsert class, and I would like to make it work for my

tapfx EasyInsert for T3?

2005-10-04 Thread Inge Solvoll
Hi! I have downloaded the tapfx EasyInsert class, and I would like to make it work for my T3 project. Is it any way to plug it in to Tapestry 3? I have tried to search for a way to configure my tapestry to use the custom template parser, but have not found out how to do it. Anyone? http://ta

Re: help on stale link for dynamic table

2005-10-04 Thread Mind Bridge
Hi, I am aware of this issue and was trying to find the best way to resolve it. Since it is rather rare (depends on the contents of the columns as well, not only the dynamic nature of the columns string) it was a bit on the back burner. Please add a bug report for this -- I am finishing the docum

Download service

2005-10-04 Thread Martin Strand
Hi. I need a stateful download function which simply streams a file to the client. I suppose I should write a "service" for this, but I have no idea on where to start as I couldn't find any documentation about this on the Tapestry site. Help? -Martin --

About cookieless Tapestry

2005-10-04 Thread Andreas Andreou
When browsing my app with cookies disabled, my tapestry links will contain a jsessionid parameter only after I have logged on - which is the expected behaviour since (before the login) I don't store any user state. And then, after logging off and the session is invalidated, my links do not contain