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();
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:
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
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
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
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
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
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
.
// 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]
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
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
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
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
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
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]
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,
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
17 matches
Mail list logo