Re: Input dates validator

2006-06-21 Thread Malin Ljungh
Thank you Paul. It is the localized format of the date that is not working. My app is localized to Swedish and the 'sv' date format is -mm-dd but the only thing that works with the date translator is mm/dd/ I think. Malin On 6/21/06, Paul Ferraro <[EMAIL PROTECTED]> wrote: That syntax

Re: serviceParameters or listenerParameters both null during validate()!

2006-06-21 Thread Sam Gendler
OK, so the whole mechanism does work correctly, but only if the stale session occurs when the user is accessing an ExternalLink. In that case, storing the serviceParameters in the ExternalCallback is sufficient for getting good values to deal with during activateExternalPage(). Unfortunately, it

Re: Issues with Label Components with Tapestry 4.0

2006-06-21 Thread Todd Orr
I have the same need to add a span in the label. Did you ever come up with a complete solution to this? On 6/1/06, mraible <[EMAIL PROTECTED]> wrote: My issue isn't with label, it's with the inputs. I have the following in my custom ValidationDelegate: public void writeAttributes(IMarkupW

WebResponse.setContentType

2006-06-21 Thread hv @ Fashion Content
I serve pages to different sorts of devices, so I need to set the mime type. Right now the logical place to do it is in my custom Shell component. I saw a solution of overriding a method on the page, but this is something I need to do for all pages. So do I have to override a service or can I s

RE: Ajax autocomplete

2006-06-21 Thread Mark Stang
Does anyone have the 3.0.3 version of an autocompleter? thanks, Mark -Original Message- From: Didier LAFFORGUE [mailto:[EMAIL PROTECTED] Sent: Tue 8/23/2005 2:56 AM To: Tapestry users Subject: Re: Ajax autocomplete I developped the liveTextField component you found in Tassel. Recentl

Re: CSV export component

2006-06-21 Thread Sam Gendler
Rather than grabbing it from the TableComponent, can I suggest that you just make it so that it accepts the same source object (IBasicTableModel) and columns property, which would make it very easy to use, since the syntax would be identical to the table which would probably be declared directly n

Re: Localization

2006-06-21 Thread Vu Nguyen
Hi, how do you specify the URL on the "refresh" parameter of the Shell component? I don't see the "content" as part of its parameters. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: turn off xml validation

2006-06-21 Thread Norbert Sándor
Thank you Jesse :) But my my question is still valid. For example in production I don't want the xmls to be validated. Is there a way to turn it off? Regards, Norbi Jesse Kuhnert wrote: Oops! Sorry about that. Should be resolvable/fixed in about 40 minutes. On 6/21/06, Norbert Sándor <[EMAI

Re: Input dates validator

2006-06-21 Thread Paul Ferraro
That syntax is documented here: http://tapestry.apache.org/tapestry4/UsersGuide/validation.html#validation.fields What aspect of localization is not working? The format? date symbols? or validation error messages? all of the above? The format is unfortunately hard coded and can be overridden.

Re: Client side validation and Form

2006-06-21 Thread Shing Hing Man
Please see my below example. Shing Java file : import org.apache.tapestry.IRequestCycle; public abstract class TestValidateNumber extends BasePage { public abstract double getNumber(); public abstract void setNumber(double num); public abstract Stri

Re: turn off xml validation

2006-06-21 Thread Jesse Kuhnert
Oops! Sorry about that. Should be resolvable/fixed in about 40 minutes. On 6/21/06, Norbert Sándor <[EMAIL PROTECTED]> wrote: Hello, I get java.io.FileNotFoundException http://tapestry.apache.org/dtd/Script_3_0.dtd Is there a way to turn off xml validation? Regards, Norbi

turn off xml validation

2006-06-21 Thread Norbert Sándor
Hello, I get java.io.FileNotFoundException http://tapestry.apache.org/dtd/Script_3_0.dtd Is there a way to turn off xml validation? Regards, Norbi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

How to use Html Special Symbols inside a component

2006-06-21 Thread Simon Raveh
Hi, I'd like to use the html symbols → (right arrow) and ← (left arrow) inside submit component   My problem is that Tapestry escape this spacial symbols so instead of an arrow you see the raw value (← ). Is there a way to use this spacial symbols Thanks, Simon

Re: Client side validation and Form

2006-06-21 Thread Simon Raveh
Do you mind posting an example, here is the way I tried using it onclick="document.form.elements.cancel">   class="button" value="Login →"> and the form component The logout method was never called Thanks, Simon Shing Hing Man wrote: I tried canceling

problem with sessions

2006-06-21 Thread Craig Hamilton
Hi, I have a shopping cart written in Tapestry, and I am redirecting to PayPal for some users to specify their purchase method. When paypal returns the users browser back to my cart, the session seems to get lost, and a new session is created. When redirecting to paypal, i specify a return u

Problem : source is null for getProperty

2006-06-21 Thread seng kim khong
Hi all, I meet a error which state that " source is null for getProperty" when I want to access the table rows data inside table view with follow syntax ognl:isBlank(components.rows.tableRow.parentCompanyName) Thank you in advance for any idea. Cheers! -- Regards, Khong Seng Kin

RE: Logging error page into log4j

2006-06-21 Thread amirsguard-tapestry
Steve, I did'nt need to create a specific error page, but thanks for the ExceptionAnalyzer code snippet... that came pretty handy. Thanks, Amir --- Steve Shucker <[EMAIL PROTECTED]> wrote: > My team did something like this recently. We put a line in our > *.application file: > > > > Then w

RE: Logging error page into log4j

2006-06-21 Thread amirsguard-tapestry
That did the trick. Thanks! --- James Carman <[EMAIL PROTECTED]> wrote: > Copy the definition from the original hivemodule.xml: > > > > > value="infrastructure:exceptionPageName"/> > value="infrastructure:requestExceptionRe

RE: Logging error page into log4j

2006-06-21 Thread James Carman
Copy the definition from the original hivemodule.xml: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 10:46 AM To: James Carman; 'Tapestry users' Subject: RE: Logging error page into log4j

RE: Logging error page into log4j

2006-06-21 Thread amirsguard-tapestry
I wish it was that simple, but it's not working! The problem is that the _exceptionPageName field is not being set. When I removed the hivemodule.xml entry, the field gets populated with "Exception". So I tried this just to see if it works: @Override public void presentException(f

Radio components indirectly enclosed by RadioGroups?

2006-06-21 Thread jah.volcano
Page 112 of 'Tapestry in Action' mentions that radio components must be enclosed by RadioGroups but don't need to be directly enclosed- they can be scattered about the html. Nice feature but no explanation or example given. Will someone show a simple example of html that is using this approac

RE: Logging error page into log4j

2006-06-21 Thread James Carman
Just extend ExceptionPresenterImpl and call your superclass' implementation! :-) Ain't object-oriented programming great? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 10:33 AM To: Tapestry users Subject: RE: Logging error page into

RE: Logging error page into log4j

2006-06-21 Thread amirsguard-tapestry
Hi James, I created my own ExceptionPresenter and added the entry to the hivemodule.xml file and it now logs, but the original error display page is not showing. Is there any way to display the error (as it does by default) and log it? Thanks, Amir --- James Carman <[EMAIL PROTECTED]> wrote: >

RE: Logging error page into log4j

2006-06-21 Thread Steve Shucker
My team did something like this recently. We put a line in our *.application file: Then we copied/modified the code from tapestry's error page so we could pipe tapestry's stacktrace generation to log4j. The actual html/page file was just our friendly message and layout with the original tapest

RE: Logging error page into log4j

2006-06-21 Thread James Carman
Override the implementation of the tapestry.error.ExceptionPresenter service point (until I change the way it works). In your hivemodule.xml file: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 21, 2006 9:43 AM To: tapestry-user@j

Logging error page into log4j

2006-06-21 Thread amirsguard-tapestry
Hi all, How do get the default error page to log into log4j? I really dont need to overide the default error page (this is an internal application) but I do need the errors logged. Any help is appreciated! Thanks, Amir - To

Re: CSV export component

2006-06-21 Thread Peter Svensson
That's great! Good work with putting it up on Tassel. Cheers, PS On 6/21/06, Martin Schnyder <[EMAIL PROTECTED]> wrote: As part of a student project we developed a small component to export (download) tabular data in the CSV format. We thought it might be useful for others and described it in

Form action problem in embedded form

2006-06-21 Thread Jimmi Dyson
Hello, I have a form embedded in a component that is then used on multiple pages. The form gets rendered correctly, but the action HTML parameter does not get set - well, it gets set to the path to the page. Here's some source: PollModuleComponent.java: ... @Component(type = "Form", bindings = "l

Re: Client side validation and Form

2006-06-21 Thread Shing Hing Man
> I tried canceling the form using > document.form.events.cancel as it shows > in the form component document but this doesn't That's strange. The cancel parameter in the Form component works for me. Shing --- Simon Raveh <[EMAIL PROTECTED]> wrote: > Hi, > > I have a simple form with two su

CSV export component

2006-06-21 Thread Martin Schnyder
As part of a student project we developed a small component to export (download) tabular data in the CSV format. We thought it might be useful for others and described it in the Wiki (http://wiki.apache.org/tapestry/ExportingCSVFiles). The code is also available on Tassel. The data to export ha