Re: Strange behavior when instantiating properties directly in the page

2008-06-16 Thread Dmitry Shyshkin
Hi, Thorsten This is correct behavior. Tapestry pages are shared across all requests, so User object will be the same. you need to add some code like follow: @Persist @Property private User user; @OnEvent(Form.PREPARE) void prepare() { if (user == null) { user = new User();

Re: Page pool exausted?

2008-05-06 Thread Dmitry Shyshkin
Look at http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html for parameters tapestry.page-pool.hard-limit and tapestry.page-pool.soft-limit Peter Stavrinides wrote: Hi All, I have a peculiar error turning up in our server logs, I am running a Tapestry 5 application on Tomcat 6:

Re: T5: Persistence pains

2008-05-05 Thread Dmitry Shyshkin
The problem in "client" strategy that it used Serializable mechanism of jvm. Of cause it produce a lot of data (not getting in mind that most domain objects are not Serializable). I use own persistent strategy called 'parameter'. It is similar to "client" with follow exceptions. * It uses

Re: Is it possible to receive uploaded files from non-tapestry pages?

2008-04-24 Thread Dmitry Shyshkin
Hi, Ken May be it possible but will be hard to achieve, because T5 (you use T5, don't you?) use hidden fields with internal information with every form. Without this information form can't be processed. As for your stacktrace: You try to change character encoding for request when it is too late fo

Re: Strange return for grid component

2008-04-24 Thread Dmitry Shyshkin
Stacktrace and some source and *.tml code will be helpful. Methods definition is not enough to see the problem 滕训华 write: > I have a grid component in the page of T5 and its sources is got from > db.There is also another search field to filter the records. > > > > I defined 2 method in my servic

Re: ComponentEventException on Form Submit with Ajax

2008-04-03 Thread Dmitry Shyshkin
You can return Block or Component from listener only when tapestry is precessing _ajax_ request. 'this.form.submit()' is not an ajax. As I know currently there is no ajax support for radio button (may be I am wrong), but you can look into code of TriggerFragment mixin and adopt this code for rad

Re: ComponentEventException on Form Submit with Ajax

2008-04-03 Thread Dmitry Shyshkin
What do you want to achieve by returning Block from onSucess event? As you can read from http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html Block is not a valid return value for listener method. P.S. I think it is a typo, but you return myBlock from method as declared as _v

Re: T5 Checkbox Problem

2008-04-03 Thread Dmitry Shyshkin
When form submission occurs Tapestry5 do not look at binding that was used during render phase. Instead it use ValueEncoder to restore object from String id. If you do not provide an ValueEncoder (I think you don't, do you?) tapestry will use default. Default ValueEncoder use java serialization

Re: Is there a way to include a component with fields in a form ?

2008-04-02 Thread Dmitry Shyshkin
. // you may get ValidationTracker from environment (the same way as you get FormSupport) } } Best Regards, Dmitry Shyshkin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: IE6 issue with dropdowns

2008-03-18 Thread Dmitry Shyshkin
It is not tapestry problem. In IE6 dropdown always display at top of others page elements. As work around you may use javascript dropdown. For example you may look at dojo combobox http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit/form-validation-specialized-input/auto-completer sasidh

Re: Do I have to @persist( "session" ) input values in verify page?

2008-03-15 Thread Dmitry Shyshkin
Persistence is needed because form is submitted in one request (that send redirect in response) and rendered in second request. If you do not want to persist data for form you should 1. turn off redirect after post and process submission in one request public class WebModule { public static void

T5: Now to generate page with binary output

2008-03-15 Thread Dmitry Shyshkin
Hello, all I want to generate image by tapestry page. Follow code successfully set Content-Type and output image data, but after that exception is thrown : java.lang.RuntimeException: Page resource/Image did not generate any markup when rendered. This could be because its template file could n

Re: T5: Stop current event bubbling but continue processing of other events

2008-03-14 Thread Dmitry Shyshkin
I've found the answer. To achieve this you should return 'true' from event handler. Dmitry Shyshkin пишет: Non null value stop processing of all other event and start page rendering. But it actually not what I need. I have a multiple onActivate event handlers with different coun

Re: T5: Stop current event bubbling but continue processing of other events

2008-03-14 Thread Dmitry Shyshkin
estry-core/guide/event.html) Stephane Dmitry Shyshkin a écrit : Hi, all. Is there a way to stop bubbling of current event? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

T5: Stop current event bubbling but continue processing of other events

2008-03-14 Thread Dmitry Shyshkin
Hi, all. Is there a way to stop bubbling of current event? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: t5: onValidationFromForm ?

2008-03-13 Thread Dmitry Shyshkin
1. You may replace submit action with some other .I'am sure you do not need form field values in case back button was pressed. change to or 2. In case if you need it you may set defer parameter to false in Submit component and receive submit event before validation Angelo Chen пишет: Hi,

T4: EventListener on multiple elements

2008-03-06 Thread Dmitry Shyshkin
Hello, All. I want to apply the only @EventListener("onchange") for multiple form elements (say checkboxes or selectboxes). Each of them is placed into his own row in the table (table is not a component, it's formed using @For by ). But the problem here is that I do not know how many table ro