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
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
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:
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
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
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
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
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() {
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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.
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,
34 matches
Mail list logo