Hi.
Pre-render "initialization" methods are needed, and implementing some
specialized listener for that looks cleaner than overriding some methods
(especially in case when one needs to call super.thatMethod() in the
beginning of that method).
Since we currently have PageRenderListener for that, b
I want to use a javascript prompt e.g.
var foo = prompt("Please answer the question", "bar");
And then route the result back to tapestry for processing.
Historically, I did this with custom javascript and a hidden form
which I submitted after stuffing the
Hi,
Just wondering what the general consensus is on where to "handle"
operations leading to another page... It seems there are 2 approaches:
1. Handle the calls to service layer on the current page and just
activate the next page at the end of the listener method;
2. Get the next page and pass ex
John Anderson semiosix.com> writes:
> Here's the problem: in order to get changes to the Java files showing up
> via Tomcat, I need to enable reloading in Tomcat. But then every time
> a .class file in the classes subdir changes, the app reloads. Which is
> fine except for the long Hibernate star
Well, ya know Tapestry's code is open source... just have a peek
at the TextField component and what makes it tick. You'll need to
navigate to its parent class and such, but it's pretty
straightforward how that particular component works and does the
binding to and from.
Sorry to not
I figured out what I was doing wrong.
Wow! this was sure hard to find.
I have a ListEditMap on the page and the ListEditMap
was not set to persistent. For some strange reason
my formSubmit method was not getting called.
Travis Romney wrote:
I have a form with a listener method that never gets call
Konstantin,
I tried that, however, I don't have a standard tapestry page. So, what I
wanted to do was to create component like ButtonSubmit. This button would be
in my component and I would like to know what was submitted.
thanks!
Mark
Mark Stang wrote:
>Yes. Without going through a listen
Ed Cohen wrote:
How do I replace the StringValidator's messages with ones in my own
.property file?
Implement getMyMinimumLengthMessage() accordingly.
Also, a quick ognl question. In a .page file, is there a way to get to
the page's getMessage("xyz") method?
Instead of an ognl expressi
you can call at the .page:
expression="getMessage('xyz')"
(don't forget the simple quotes inside)
2005/5/3, Ed Cohen <[EMAIL PROTECTED]>:
>
> How do I replace the StringValidator's messages with ones in my own
> .property file?
>
> Also, a quick ognl question. In a .page file, is there a way
Wouldn't that, potentially, result in a StaleLink exception? I can
give a try, I guess.
-SG
On 5/3/05, Patrick Casey <[EMAIL PROTECTED]> wrote:
>
>Could you make the reset button a directLink instead of a submit
> button? Unless my mental model of rewind is seriously narfed, that should
How do I replace the StringValidator's messages with ones in my own
.property file?
Also, a quick ognl question. In a .page file, is there a way to get to
the page's getMessage("xyz") method?
Thanks for the help.
-
To unsubscr
Could you make the reset button a directLink instead of a submit
button? Unless my mental model of rewind is seriously narfed, that should
sidestep the whole rewind process.
--- Pat
-Original Message-
From: SG Tapestry [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 03, 200
Hi,
I have a need where I need to cancel out of a small editing
section/component inside a form that contains other tapestry
components. I want the cancel to forget all the changes that I made in
that component and revert back to their previous values. Currently, I
have an ImageSubmit mapped to an
I'm writing my own render method. I want to put out an input
field on a form that is bound to a particular data field. If I was doing
this with an html template file I'd write something like:
And then I'd get out html that reads like:
Tapestry's
Yea... it is a Gotcha...
I use the redirection code that Paul Ferraro wrote and it works :D thank you
I think Konstantin aproach is also good, I will look at it later.
If you have time, it would be great if you post some of this solutions at:
www.tapestryforums.com
it needs people as you :)
There's a solution similar to what you describe in HiveMind; HiveMind
proxies are serializable. In fact, a token is serialized in place of the
proxy, and then the token uses a ThreadLocal to reconnect to a HiveMind
Registry when deserialized.
On 5/3/05, LOCHART,DOUGLAS E <[EMAIL PROTECTED]> wr
In short words: this behavior seems to be caused by standard Tapestry
gotcha:
Form and Submit Listeners: Order Matters
http://wiki.apache.org/jakarta-tapestry/Gotchas
Do not do submit, use DirectLink
or try using my trick for a postponed method execution ( see my today's
post Re: SubmitButton E
PageRedirectException does not actually redirect. It simply activates
the specified page. Consequently, reloading the page reexecutes the
form submit causing a stale link exception since the number of form
elements has changed between rewind and render.
To actually redirect, try the following:
The file is successfuly deleted, but the problem is when reloading the
page (Manually).
In my listener I redirected:
throw new PageRedirectException(cycle.getPage("Images"));
where Images is my current page.
In this case, no error is displayed, but when reloading, the next
image in list is also
Hi everyone
A little background: I'm working on my first Tapestry app. I've been
involved with Java since 1.0, and involved with software dev for a lot
longer.
I'm using Hibernate for db access, having had much joy with it on
previous projects. The Hibernate Configuration and SessionFactory take
Yes, I have IPN and Paypal on my Tapestry site
(www.viewbuildings.com - under "Add Counties", but you need to register
to see it)
I just used the Buy Now buttons as a basis and then modified one to use
my image and output the code in a tapestry table (as I have a list of
things in a DB to subsc
try adding log4j.jar to your webapp project's classpath and optionally a
log4j.xml config file.
On Tuesday 03 May 2005 17:17, Andreas Andreou wrote:
> Accept my apologies for this unrelated post, but...
> has anyone managed to configure log4j logging with the jetty-launcher
> plugin...
> I always
Try replacing ImageSubmit by DirectLink with a parameter(image name?)
that will allow deletion of chosen image;
Alberto Lepe wrote:
Here is the challenge:
I have a List of Image's File name, with an ImageSubmit to delete them, like:
image1.jpg [X]
image2.jpg [X]
Quite simple. I press on the [
Mark Stang wrote:
Yes. Without going through a listener.
There is the trick that works for me well, it has only one OnSubmit
listener in the parent page class,
so in a way there is no listener in the actual page, only methods which
we call.
I extend my pages from my OnSubmitDelegatorPage
pub
How are you redirecting in your listener? I suspect that's where the
problem is...
Paul
Alberto Lepe wrote:
Here is the challenge:
I have a List of Image's File name, with an ImageSubmit to delete them, like:
image1.jpg [X]
image2.jpg [X]
Quite simple. I press on the [X] and the image is del
-Original Message-
From: Andreas Andreou [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 03, 2005 2:17 PM
To: Tapestry users
Subject: Re: Component includes
You can always create a myscript.script file having:
and then in your template
Yes. Without going through a listener.
-Original Message-
From: Eric Schneider [mailto:[EMAIL PROTECTED]
Sent: Tue 5/3/2005 11:44 AM
To: Tapestry users
Subject: Re: SubmitButton Example
Mark,
Not sure what you mean. Are you trying to track which submit button
was clicked?
e.
On M
And what is wrong with pay-pal provided buy now button and other free tools?
https://www.paypal.com/cgi-bin/webscr?cmd=_merchant-outside
[EMAIL PROTECTED] wrote:
Hi,
I am sure that this has been done before:
I have to enable payments done via PayPal. So I would like to automatically
open another wi
Here is the challenge:
I have a List of Image's File name, with an ImageSubmit to delete them, like:
image1.jpg [X]
image2.jpg [X]
Quite simple. I press on the [X] and the image is deleted succesfully.
If I reload the page, it display a "Stale link" error. This also
happens if other user is
No the class is set and it's right.
That is the strange thing. I'm not getting
any errors. the page just refreshes.
The pageBeginRender(PageEven pe) method is
getting called, but the listener method is not getting
called to save my life.
Shing Hing Man wrote:
In your page specification,
have you
> I really feel like there should be an option for
> the @Script
> component that just says "embed a link to this
> script. Don't rewrite it,
Have you looked at
the element of the Tapestry script
specification.
It generates :
Shing
--- Patrick Casey <[EMAIL PROTECTED]> wrote:
>
>
Patrick Casey wrote:
If I recall though @Script really wants to rewrite your javascript
for you on the fly and has some weird requirements (like you have to block
your whole script inside a big-old CDATA area). I looked at it and couldn't
find a way to make it just put out a script *exactly
I also use the search option at the forum:
http://www.tapestryforums.com/search.php
On 5/3/05, Graeme J Sweeney <[EMAIL PROTECTED]> wrote:
> On Sat, 30 Apr 2005, Vjeran Marcinko wrote:
>
>
>
> > is better (how can my Outlook Express present me messages that
> were posted
> > long time ago when
I have a bit of an odd request here. I need to put in a set of
"emergency" forms that pop up if the base form gets deleted, destroyed,
corrupted, etc. The users still need *some* way to get at the data (if
nothing else to bootstrap the system back up).
My approach was to write cod
Mark,
Not sure what you mean. Are you trying to track which submit button
was clicked?
e.
On May 3, 2005, at 12:52 PM, Mark Stang wrote:
Hi,
Does anyone have some sample code on how to access the SubmitButton
from within java?
thanks,
Mark
-
Hi,
My contribution... here is sample piece of code that does redirection to the
PayPal web site:
// Redirect to PayPal.
StringBuffer buffer = new StringBuffer();
buffer.append(
"https://www.paypal.com/xclick/business=paypal%40bidnplay.com";)
.append("&quantity=1").append("&amount=").appe
If I recall though @Script really wants to rewrite your javascript
for you on the fly and has some weird requirements (like you have to block
your whole script inside a big-old CDATA area). I looked at it and couldn't
find a way to make it just put out a script *exactly* as I have it in th
Accept my apologies for this unrelated post, but...
has anyone managed to configure log4j logging with the jetty-launcher
plugin...
I always seem to get the jetty's default log system
P.S. I do not want to create a jetty.xml configuration, since I'ld have to
manually configure all the classpaths
Hi,
Does anyone have some sample code on how to access the SubmitButton from within
java?
thanks,
Mark
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I am sure that this has been done before:
I have to enable payments done via PayPal. So I would like to automatically
open another window (the paypal site) or at least supply a "buy now"
button.
Can anybody give me some information on how this is done the best way? Or
maybe has anybody alre
On Sat, 30 Apr 2005, Vjeran Marcinko wrote:
is better (how can my Outlook Express present me messages that
were posted
long time ago when I wasn't subscribed, also grouped by topics - I hope none
From the welcome message, you can retrieve past messages as follows:
To get messages 123 through 14
In your page specification,
have you forgotten to set the class attribute ?
Shing
--- Travis Romney <[EMAIL PROTECTED]> wrote:
> You're right.
> I just mistyped it in the email
>
> I do have it this way on my form
>
> listener="ognl:listeners.formSubmit">
>
>
>
>
> Jean C. Favi
@Script is a component that does that explicitly.
Robert wrote:
Hi,
Is it possible to let a Tapestry component cause a webpage to include
an external javascript and/or css file?
So putting a component on your page will also cause a
This has been suggested before - the Shell component should behave like the
Body component accepts form event handlers. Also, the shell should provide
support for media and other attributes of stylesheets.
+1 from me for including it in Tapestry 4.0
Any takers?
-Original Message-
From:
You're right.
I just mistyped it in the email
I do have it this way on my form
Jean C. Favila wrote:
I think you have to change
to:
-Original Message-
From: Travis Romney [mailto:[EMAIL PROTECTED]
Sent: Monday, May 02, 2005 6:38 PM
To: Tapestry users
Subject: Listener methods are not
Nevermind. I guess I skipped pages 275 and 308 in TIA.
However anybody have any issues/experience using cgilib
with tapestry? I remember reading somewhere that the
proxies are not serializable as java.lang.reflect.Method
is not serializable.
I was thinking of implementing a Proxy Pool that is
We will be moving to a clustered environment for our
application. We are/will be using Apache (SSL) (with
distcache to handle load balancing with SSL), Tomcat with
load-balancing/clustering and an encrypted postgres
database.
We are using a simple home grown Data Access layer which I
will be
On May 2, 2005, at 10:30 PM, Random Tapestry User wrote:
Hmmm.
Thanks Erik.
I defined a method in my base class with a getter for getting a
ValidationDelegate, and loading the page no longer throws an error.
However, when I submit the form, and the validation is triggered,
an runtime exception
Hi,
Is it possible to let a Tapestry component cause a webpage to include an
external javascript and/or css file?
So putting a component on your page will also cause a
It would be cool, if the Betterpetshop or some other example tapestry
application was updated whenever things are updated for Tapestry.
As the documentation is never up to date, people could at least learn by
examples.
Or does anyone know a tapestry application that uses hivemind,
hibermate&mysql
BTW I tried it with tapestry 3.0 and 3.03 jars. With 3.03 I also
noticed that message: and key= did not resolve to property values. I
haven't gone back straighten that out, so I thought I should mention it.
Robert Zeigler wrote:
Hm. I'll look into it.
Robert
euphobot wrote:
I am getting
Coul
51 matches
Mail list logo