Re: Getting HttpSession by ID

2005-06-02 Thread Olve Hansen
ons, 01,.06.2005 kl. 12.47 +0300, skrev Krutyakov Roman: Hello, Is there any way to access to HttpSession by its id? I have an application based on Tapestry 4 and Spring with Acegi and want to control concurrent user logins. After successful user authentication i need

How to overwrite an old css class within the a ValidField ?

2005-06-02 Thread Andy Chu
From the workbench example, We know that Tapestry is able to indicate a ValidField being Invalid by writing a CSS class, for example "field-error", with the "writeAttributes" method in the delegate class of a specified form. However, for some purpose, the ValidField initially has its own CSS cla

Re: contrib:table used for simple table generation [auf Viren geprueft]

2005-06-02 Thread Jonathan O'Connor
Michael, Just chop your collection into a collection of Object[5]. Then pass this as your data source. Then each column is just item[0], item[1], etc... Ciao, Jonathan O'Connor XCOM Dublin Michael Engelhart <[EMAIL PROTECTED]> Michael Engelhart <[EMAIL PROTECTED]> 02/06/20

contrib:table used for simple table generation

2005-06-02 Thread Michael Engelhart
Hi - I have a simple Collection of objects that only have a single attribute "name" that I want to display in rows and columns using contrib:table and am not sure of the way to get this to work. is there a way to tell contrib:table to go across while looping up to say 5 columns and then creating

RE: dynamically generated form fields and form level validation

2005-06-02 Thread Chris Norris
The validator idea doesn't work. In retrospect, it makes sense. > -Original Message- > From: Chris Norris [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 02, 2005 1:27 PM > To: Tapestry users > Subject: RE: dynamically generated form fields and form level > validation > > I think thi

RE: dynamically generated form fields and form level validation

2005-06-02 Thread Chris Norris
I think this is what you are talking about: http://thread.gmane.org/gmane.comp.jakarta.tapestry.devel/1632 It seems like they were talking in January 2004 (a year and a half ago? Time flies...) about putting it in the next release... But still hasn't been done? I'm still trying my page property va

Re: dynamically generated form fields and form level validation

2005-06-02 Thread robertz
Harish submitted a patch a /long/ while back that dealt with the scenario of how to set a particular field in error when it's rendered in a loop. He added a new "index" property, as I recall. The patch was never applied, but if you search the archives for it, you should be able to find it. I also

RE: ThreadLocal example pleeeeease!

2005-06-02 Thread Patrick Casey
Can't you just make a method on the page e.g. Public Object getThingy(String key) { HashMap m = getAppropriateMap(key); Object rc = m.get(key); Return rc; } When whenever you need to use this functionality from withi

dynamically generated form fields and form level validation

2005-06-02 Thread Chris Norris
I'm going to try to boil this down to the neccesities. If it doesn't make sense, I'll provide some code. I have a Foreach loop inside of a form. The loop generates a couple of sets of FieldLabel/ValidField components*. The problem is that two of the fields' validation depend on each other. If

RE: Handling an arbitraru HTTP request in Tapestry

2005-06-02 Thread Hensley, Richard
Write a servlet filter, or use urlrewrite to make a tapestry url out of the incoming url. There examples in the mailing list and on the wiki. If you have control of the sender, use a page that implements the IExternalPage interface. Richard -Original Message- From: Lennart Benoot [mail

Handling an arbitraru HTTP request in Tapestry

2005-06-02 Thread Lennart Benoot
Hi all, I have a tapestry application with hibernate. I also have an external server that from now and then wants to send a request to my application via HTTP. The http request contains some data encoded in the url e.g ?message=a message for you. I want a quick and easy way to handle this reque

Re: Accessing a component property from html page

2005-06-02 Thread Paul Woodward
The component in question belongs to the border, not the page. leaving out the page. as suggested worked. On 6/2/05, Andreas Andreou <[EMAIL PROTECTED]> wrote: > > Yes, it's null... > Do a > > > > to see which components are there... > > Do you add these 2 components into the page directly?

Re: ThreadLocal example pleeeeease!

2005-06-02 Thread sarah . simbad
Imagine you are within a component. You need to get the global object. Then you need to get the specific HashMap. Then you need to get the object from inside the HashMap. Then you need to call the method on the object to get the property you want to know. These are too many steps, especially whe

Re: Accessing a component property from html page

2005-06-02 Thread Andreas Andreou
Yes, it's null... Do a to see which components are there... Do you add these 2 components into the page directly? or do you add a Border component into your page and then add those 2 components into the Border... page.components only returns components directly added to the page There's a

Re: Accessing a component property from html page

2005-06-02 Thread Paul Woodward
I get no output from the insert at all - so it's null? On 6/2/05, Andreas Andreou <[EMAIL PROTECTED]> wrote: > > From the Exception thrown, it seems that > > ognl: page.components.holdingQuantityPie > > returns null, but I can't figure why, since your code seems correct. > > Can you confirm t

Re: Re[2]: How to make forward to Page

2005-06-02 Thread Erik Hatcher
On Jun 2, 2005, at 6:48 AM, gvp wrote: Hello Erik, I do forward because I want to have A's page url in browser address text box. So if user decides to bookmark page B (results) he'll get actually page A(search criteria). Then simply activating a page from a listener will do the trick. The

How to implement nodes that are framework/custom components using Contrib:Tree

2005-06-02 Thread Ameet Savanur
Hi, I wanted to know the approach to show different components like Contrib:Table, PropertySelection when various Nodes in a Tree are expanded. I was able to implement a Tree which shows a set of nodes that are Strings by creating nodes which extend from TreeNode. How do I create TreeNodes that

Re: ThreadLocal example pleeeeease!

2005-06-02 Thread Andreas Andreou
Why can't you use a custom Global object and initialize the map in its constructor (will only get invoked once) ??? [EMAIL PROTECTED] wrote: Thanks. Ok, I try again. The following assumptions are made: 1. The number of groups can change on the database without having to change the java code.

Re: Accessing a component property from html page

2005-06-02 Thread Andreas Andreou
From the Exception thrown, it seems that ognl: page.components.holdingQuantityPie returns null, but I can't figure why, since your code seems correct. Can you confirm this? i.e. instead of HoldingChart, add a Paul Woodward wrote: Hi all, I'm somewhat new to tapestry so apologies if this

Re[2]: How to make forward to Page

2005-06-02 Thread gvp
Hello Erik, I do forward because I want to have A's page url in browser address text box. So if user decides to bookmark page B (results) he'll get actually page A(search criteria). > You could simply activate the next page, though that's not > technically a "forward". Or you could throw PageR

Re: How to make forward to Page

2005-06-02 Thread Erik Hatcher
On Jun 2, 2005, at 6:06 AM, gvp wrote: Hi all, I have two pages A and B(implements IExternalPage interface). I'd like to make forward (not redirect) from A.someListener to B page but don't know how. Do you know any way of doing this? You could simply activate the next page, though that's no

Re: Example of query params in ExternalLink

2005-06-02 Thread Erik Hatcher
On Jun 2, 2005, at 3:33 AM, Peter Veentjer - Anchor Men wrote: I have been looking for an example how to use query parameters with the ExternalLink. I know the ExternalLink can have a array of parameters.. and it can access the request context to catch the query parameters. But is there no

How to make forward to Page

2005-06-02 Thread gvp
Hi all, I have two pages A and B(implements IExternalPage interface). I'd like to make forward (not redirect) from A.someListener to B page but don't know how. Do you know any way of doing this? -- Best regards, gvp ---

Re: Manipulating existing components via java code

2005-06-02 Thread Erik Hatcher
On Jun 1, 2005, at 9:52 PM, Patrick Casey wrote: I have a component on my form: How the heck do I make the component red? I can make it red on the page definition with: But I can't seem to find a way for my java code to set the class programmatically. Is there a w

Bug in RequestContext ???? Tapestry 3.0.3

2005-06-02 Thread Tomas Jucius
Then the request is form/multipart-data, why I can't still access service name? Shouldn't this method return service name in both situations? public String getParameter(String name) { IMultipartDecoder decoder = getDecoder(); if (decoder != null) return decoder

Accessing a component property from html page

2005-06-02 Thread Paul Woodward
Hi all, I'm somewhat new to tapestry so apologies if this is obvious: I have a squisher component which hides and shows its body. The squisher has zoom buttons that adjust a member property called size: I want to be able to pass the size property to a subcomponent so that can affect the way i

RE: ThreadLocal example pleeeeease!

2005-06-02 Thread sarah . simbad
Thanks. Ok, I try again. The following assumptions are made: 1. The number of groups can change on the database without having to change the java code. (It is not a problem to restart the web application if that happens.) 2. All the data is loaded on start-up, independent on how many members are

Example of query params in ExternalLink

2005-06-02 Thread Peter Veentjer - Anchor Men
I have been looking for an example how to use query parameters with the ExternalLink. I know the ExternalLink can have a array of parameters.. and it can access the request context to catch the query parameters. But is there no way to fill in those query parameters on the Page properties? so a