[T4.1] Application works fine with Jetty, doesn't work so good with Tomcat

2008-08-27 Thread Craig Spry
Hello All, I have a Tapestry 4.1 application that uses a Tacos Tree, which is built from information in a database. This tree isn't visible from all pages in our application. Now when I go to the page that has the tree on it and then navigate to a page without the tree on it and make a

eidtor component of the t5c

2008-08-27 Thread 滕训华
When I input the chinese character and save it into table of SQL Server,but the Chinese is changed into “”.How can I set it and save Chinese character correctly. My environment: Tapestry5.0.13 Window XP T5C 0.5.13

T5: monitor file size during uploading

2008-08-27 Thread Angelo Chen
hi, I use Tapestry-upload to upload files, I'd like to monitor the size of files uploaded, if it is greater than 200k, I'll just abort the upload and info the user to limit their file upload size, is this possible? Angelo -- View this message in context:

Re: T5 : Let's write a book !

2008-08-27 Thread Hugo Palma
I also agree with the DocBook format. A have question thought, if the plan is to publish the book in a printed paid version there's obviously going to be income from this effort. How will that work being the book a result of community effort ? Where will the money go to ? Alex Kotchnev

Re: T5 : Let's write a book !

2008-08-27 Thread photos
Have the book printed by Lulu. In the Lulu project set the Royalties to 0. Then when a copy is bought the customer will be paying for the printing only. No royalties will be paid. As the book is unlikely to sell tens of thousands of copies the amount of money generated by royalties would

Re: [T5] Is there a way to restric filesize in upload component?

2008-08-27 Thread Angelo Chen
Hi Otho, FILESIZE_MAX does limit the uploading of file to a certain size, it throws an exception 500,FileUploadBase$FileSizeLimitExceededException, but how to catch this exception in code? seems to me it always dumps it to the browser, any idea? thanks. Angelo Otho wrote: I digged a bit

Re: [T5] Is there a way to restric filesize in upload component?

2008-08-27 Thread Carl Crowder
If you add an onException method to your upload page class, then you can catch it rather than let it get dumped into the browser. You could do something like this: @InjectPage private FileSizeTooBig fileSizeToBig; Object onException( Throwable cause ) { if ( cause instanceof

[T5] my form does not update page properties

2008-08-27 Thread Andy Pahne
I must be missing something, because my form does not update my page property. public class SearchItems{ ... @Property @Persist private SearchOptions searchOptions; @Inject private Block searchOutput; public void onPrepareForRender() {

Re: [T5] Is there a way to restric filesize in upload component?

2008-08-27 Thread Angelo Chen
Hi Carl, Thanks, I tried it as suggested, but the onException was never called before or after the exception: Object onException( Throwable cause ) { System.out.println(size problem); return null; } any idea? Carl Crowder wrote: If you add an onException method to

T4.1 Property Selection component

2008-08-27 Thread Mohammad Irfan
Hi, I have success in using Property selection component but I found a problem. I'd like to ask, how can I set a selected value for the Selection list? So I can have this html output: select name=reportTypeSelection id=reportTypeSelection option value=0CSV/option option value=1DBF/option option

Re: Tapestry query on URLs and Memcached

2008-08-27 Thread Toby Hobson
I'm not too familiar with the Tapestry pipeline/chain of command system which is why I chose to use a servlet filter. Other's might like to comment on the benefits of the Tapestry approach. It's certainly possible to cache on a page level using the servlet filter through the filter-mapping

T5: Form cancellation query

2008-08-27 Thread photos
I have a form on a page and I have two buttons: Submit and Cancel. I have handlers for both. However, because I need two of the fields to be required, the client side checking never allows my handlers to be called if no values are inserted in the fields and the user presses Cancel. How

T5: how to caught those exceptions uncaught by T5?

2008-08-27 Thread Angelo Chen
Hi, I would like to catch the exception of FileSizeLimitExceededException, I tried the decorator method like this: public RequestExceptionHandler decorateRequestExceptionHandler( final Logger logger, final ResponseRenderer renderer, final ComponentSource

Re: T5: how to caught those exceptions uncaught by T5?

2008-08-27 Thread Hugo Palma
That's not how decoration works. You have to return your RequestExceptionHandler implementation that will decorate the default one. Take a look at the example at the bottom of the page here http://tapestry.apache.org/tapestry5/cookbook/exceptions.html Angelo Chen wrote: Hi, I would like to

[T4] e-mail validation combined with event listeners

2008-08-27 Thread Nils Preusker
Hi all, I'm trying to create the following feature with Tapestry 4.1.5: I want to check an input text field on the fly, while a user is typing. I'm using an ajax call (with the @EnventHandler annotation) to check the input string in the background without reloading the page. The event handler

Re: T5: how to caught those exceptions uncaught by T5?

2008-08-27 Thread Angelo Chen
hi, Thanks for the reply. I copied the code from the cookbook, i deleted the other part, i just want to be sure if the method will be called when an exception occurs, it does with all those normal exceptions, but the 505 status dumped coming somewhere from Apache's file upload routine was not

Tapestry validation not showing

2008-08-27 Thread stuffhere
Hi This is happening on all forms on my site, in all browsers. I fill out the form with at least one correct field and one erroneous field and hit submit - I see the tapestry error bubbles. I then change the valid field to be incorrect and without tabbing out of it hit submit - the validation

Re: Deadlocks related to class creation

2008-08-27 Thread Howard Lewis Ship
The deadlocks have been pesky; 5.0.14 includes a first pass at fixing them. 5.0.15 includes a more overarching approach which is currently being validated. https://issues.apache.org/jira/browse/TAPESTRY-2468 https://issues.apache.org/jira/browse/TAPESTRY-2561 On Wed, Aug 27, 2008 at 7:45 AM,

Re: Tapestry validation not showing

2008-08-27 Thread stuffhere
Found the cause now - not a tapestry bug :) stuffhere wrote: Hi This is happening on all forms on my site, in all browsers. I fill out the form with at least one correct field and one erroneous field and hit submit - I see the tapestry error bubbles. I then change the valid field to

Re: Tapestry validation not showing

2008-08-27 Thread Howard Lewis Ship
Please always start a query such as this with browser type and Tapestry version. If you are using a -SNAPSHOT, be sure to clear your browser cache (using Shift-F5 to refresh the page does a good job in Firefox). Obviously, this works for me and there are integration tests built into Tapestry for

Re: T4.1 Property Selection component

2008-08-27 Thread Norman Franke
This is handled automatically based on the value parameter for the tapestry object. select jwcid=@PropertySelection value=ognl:myValue model=ognl:myValues / You can use an existing model, or implement IPropertySelectionModel which Tapestry uses to translate values and the like. Norman

RE: T5: Form cancellation query

2008-08-27 Thread Jonathan Barker
The most commonly suggested method is to use a Cancel link that is stylized to look like a button. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 08:53 To: Tapestry users Subject: T5: Form cancellation query I have a form

Multiple file upload

2008-08-27 Thread ProAdmin Dariusz Dwornikowski
Hi, I encountered such problem: I got a news editing page and I would like to be able to upload as many files as I want. I can do a form with ex. 5 file uploading fields, but that limits me to 5 ofc. Is it possible to do such thing, that when i upload one file, I can trigger a second upload, and

Re: T5: how to caught those exceptions uncaught by T5?

2008-08-27 Thread Filip S. Adamsen
Hi Angelo, I think the upload processing happens before the request gets to where exceptions are caught på RequestExceptionHandler, if that makes sense. Perhaps that's why? -Filip On 2008-08-27 16:37, Angelo Chen wrote: hi, Thanks for the reply. I copied the code from the cookbook, i

Best action/event to setup a model?

2008-08-27 Thread Markus Joschko
Hi, I am currently struggling to find the best way to setup a model for a beandisplay from within a component. As I have an ajax call included, the method should not only be called during the render phase, but also during the action phase. I looked at the form component (which fires a prepare

Re: T5: Form cancellation query

2008-08-27 Thread Baofeng Yu
The following should work: input type=button id=cancelButton value=Cancel onclick=location.href='Page1';/ Hope this helps! [EMAIL PROTECTED] wrote: I have a form on a page and I have two buttons: Submit and Cancel. I have handlers for both. However, because I need two of the fields to

Re: Best action/event to setup a model?

2008-08-27 Thread Filip S. Adamsen
Hi Markus, Is the BeanDisplay component inside a form? In that case, @OnEvent(prepare) void setupModel() { ... } should be called whenever the form is preparing to be rendered or submitted. Is there any reason you can't setup your model once and just reference it from there? Just

Re: T5: how to caught those exceptions uncaught by T5?

2008-08-27 Thread Angelo Chen
Hi Filip, That make sense. now how to deal these kinds of exceptions? Filip S. Adamsen-2 wrote: Hi Angelo, I think the upload processing happens before the request gets to where exceptions are caught på RequestExceptionHandler, if that makes sense. Perhaps that's why? -Filip

Re: T5: how to caught those exceptions uncaught by T5?

2008-08-27 Thread Hugo Palma
Have you tried adding the error-page element to your web.xml ? Something like: error-page error-code505/error-code location/myErrorHandlerPage.html/location /error-page Angelo Chen wrote: Hi Filip, That make sense. now how to deal these kinds of exceptions? Filip S.

Re: T5: how to caught those exceptions uncaught by T5?

2008-08-27 Thread Filip S. Adamsen
Hi Angelo, Having digged through the tapestry-upload source code, I think I may have found a solution. Or at least something to get you started. The upload stuff is handled, it seems, in MultipartServletRequestFilter, part of the HttpServletRequestHandler pipeline. If you contribute a

Re: JMaki with Tapestry 5

2008-08-27 Thread Prashanth Gali
Nobody to answer this question? I am a beginner to Tapestry 5 and Web development. Your feedback will be appreciated. Please help. Prashanth Gali wrote: Good Morning group, I am trying to use JMaki with Tapestry 5 and was wondering if any brave soul tried to incorporate JMaki with

Re: JMaki with Tapestry 5

2008-08-27 Thread Howard Lewis Ship
Haven't looked at jMaki. Sorry. On Wed, Aug 27, 2008 at 5:33 PM, Prashanth Gali [EMAIL PROTECTED] wrote: Nobody to answer this question? I am a beginner to Tapestry 5 and Web development. Your feedback will be appreciated. Please help. Prashanth Gali wrote: Good Morning group, I am

Re: JMaki with Tapestry 5

2008-08-27 Thread Prashanth Gali
Thank you Howard Howard Lewis Ship wrote: Haven't looked at jMaki. Sorry. On Wed, Aug 27, 2008 at 5:33 PM, Prashanth Gali [EMAIL PROTECTED] wrote: Nobody to answer this question? I am a beginner to Tapestry 5 and Web development. Your feedback will be appreciated. Please help.

Re: T5 : The book - next steps

2008-08-27 Thread Alex Kotchnev
Would there be any value to having a top-level domain for the book (e.g. tapestry-book.org or something like that), or can we find it a home for the book somewhere under the Tapestry namespace ? A note on the potential mode for governing decisions : I was thinking that in the next couple of days,