There are some docs about this here:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html
To get the success event from the component named Form, use:
onSuccessFromForm()
To get the submit event from the component named Submit, so use:
onSuccessFromSubmit()
It's good practice to
I use the actionLink, and the context contains utf8 string,
and the onUpdate(string str)...
the str is ???, encoding wrong!
The book is not ready yet. I had to completely rewrite chapter 5 upgrading it
to 5.0.6 as Grid and BeanEditForm are so much easier to deal with now. If
everything goes well, the book should become available in December. I thought
there will be a PDF version too, but the publisher has just
That's easy, basically in the same way as a TextField, but the value
should be of java.util.Date type.
t:datefield value=theDate/
-Original Message-
From: Eko S.W. [mailto:[EMAIL PROTECTED]
Sent: 01 November 2007 03:20
To: Tapestry users
Subject: Re: T5 book: update
I am sorry, but
Oops, that should be:
To get the submit event from the component named Submit, use:
onSubmitFromSubmit()
You can see it's better to give meaningful names to your components.
Cheers,
Nick.
Nick Westgate wrote:
There are some docs about this here:
I was asked about the Table of Contents of the coming book. Here is the
general outline:
1. Introduction.
2. Creating a working environment (NetBeans and Eclipse WTP versions).
3. The foundations of Tapestry. Navigation, different ways to pass a
value from page to page, structuring the
is there any example how to do this ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
I have a page which generate a link to an action in the same page, the link
was embedded in a Streamresponse, when I click the link in the browser, it
does not activate the action link created, why?
Here is the code:
public class TestPage2 {
@Inject
private ComponentResources
Hi Alexander,
Do these sections (structuring the application, ASO, activation context)
cover IoC comprehensively in Tapestry? this is an area where very little
exists in the documentation, in terms of concrete examples, so I would
be curious if you have covered it in your book.
thanks,
Hi Nick,
Thanks,
Marcus
Peter:
Can you please tell me the kinds of examples you think we need? I'm doing a
lot of work with Tapestry IoC at the moment (without the web part of the
framework) and would be more than happy to try and put together a few for
you. Keep in mind there are plenty of examples on the TWiki too.
Peter, this book is actually a primer. The idea was to show how to do
some real stuff with Tapestry in the easiest possible way. It shows the
path of the least resistance for those who want to learn Tapestry, and
it is in no way exhaustive. However, whatever it *does* show, it shows
that on
I suffered with this one for quite some time... you can *not provide
ComponentResources to a service, you will end up with all sorts of funky
errors, but I did however manage to create a navigation component and
reuse it in there. The navigation component is part of my layout
template, so I
From a message given to me by Geoff about a small update he's made for
eclipse 3.3 tapestry 3 users :
[T3] Spindle for Tapestry 3 and Eclipse 3.3
A build (3.4.0) of Spindle for Tapestry 3 that works correctly in
Eclipse 3.3.X has been
Wow! Great news. What a sterling guy Geoff is.
There will be some happy developers out there I'm sure.
Cheers,
Nick.
Jesse Kuhnert wrote:
From a message given to me by Geoff about a small update he's made for
eclipse 3.3 tapestry 3 users :
A released product needs to achieve 'true' stability in the code base,
especially with regards to internals, I imagine that keeping tapestry as
an Alpha/Beta allows more flexibility to modify the internals without
causing waves in the community. I always have had the feeing that
production
Folks,
I am using simple div/span... no form.
When I attempt to index an element is showing undefined.
1. document.forms[0] produces my form alright and it has a name
BUT document.forms.${myFormName} produces undefined at
runtime ? Why the lapse ? myFormname equates to the
I have read over and over these docs...
http://tapestry.apache.org/tapestry4.1/ajax/basics.html
http://tapestry.apache.org/tapestry4.1/components/general/script.html
http://tapestry.apache.org/tapestry4.1/faq.html#script-component
Including Kent Tongs doc on scripting which is solely focused
The question is Tapestry a better framework... is entirely a matter of
opinion, ask this question on a few mailing lists you will get different
answers on each one. I personally feel Tapestry 5 is a 'cleaner'
component framework compared to what's available (open source), but
having said that
correction...
BUT document.forms.${myFormName} produces undefined at the above works...
But if I have a DIV or SPAN above in a containing html file I am unable to
assign a name to it or dereference it in the document object.
clarification on how to dereference and assign output data to these
Someruntime output...
input-symbol key=theWidget class=org.trails.demo.components.Gallery
required=yes/ input-symbol key=theTableSize required=yes/
let key=galleryFormdocument.forms[0]/let let
key=galleryFormIddocument.forms[0].id/let
let key=tableWidth
Attached is the modules in question...
My tableSize parameter is specified in Home.html along with the component.
I am able to dereference the form and get/set the value of the select component.
I guess I want to get the value of the select and assign it to the ognl
property of my
more clarification...
alert(document.forms.tableSizeSelect.value);
${theWidget.tableSize} = document.forms.tableSizeSelect.value; why is the above
assignment not possible? Inside the widget I have tableSize declared as a
Parameter.
This poses a dereferencing dilemma as ${theWidget.tableSize}
HmmI'll look at it later tonight and put out a fix - if I'm able
to re-produce it outside of Tapestry somehow.
On Oct 31, 2007 5:11 PM, Dom Couldwell [EMAIL PROTECTED] wrote:
Any ideas as to when we might get a fix for this?
We're stuck in terms of migrating to 4.1.3 until we get a fix.
corrected syntax... forgot form name
The alert works...
alert(document.forms.galleryForm.tableSizeSelect.value);
The assignment does not.
${theWidget.tableSize} = document.forms.tableSizeSelect.value;
This is what the assignment parses to...
2 =
Hi again,
I am trying to get a select component to take an id from its component
class, rather than having it staticly defined in the tml.
It seems, however, that no matter what I try, the id is always interpreted
as a literal string.
e.g.:
t:select t:id=prop:refFieldId ... etc
which I
Is there a way to resize images on the client side before they are uploaded
with the Tapestry Upload Component?
About how many pages can we look forward to reading, once it's published?
On 11/1/07, Kolesnikov, Alexander GNI
[EMAIL PROTECTED] wrote:
Peter, this book is actually a primer. The idea was to show how to do
some real stuff with Tapestry in the easiest possible way. It shows the
path of
With 'native' javascript, that's not possible. That would at the least
require access to an imaging api, and that unfortunately doesn't exist
in pure javascript. With an applet or activex or flash object, its possible.
Josh Penza wrote:
Is there a way to resize images on the client side
@Persist(flash) removes the object from the session after it reads it
while the page request is being prepared. Every time you set the value it
gets put back into the session. So, you could keep a flash persisted object
in the session perpetually if it's set from within your events or lifecycle
resources.createActionLink(onActionFromDeleteConfirm, false,
id).toURI();
The action you are invoking is deleteConfirm, the event method is
onActionFromDeleteConfirm so your action link should look like this:
resources.createActionLink(deleteConfirm, false, id).toURI();
Josh
On 11/1/07,
resources.createActionLink(onActionFromDeleteConfirm, false,
id).toURI();
The action you are invoking is deleteConfirm, the event method is
onActionFromDeleteConfirm so your action link should look like this:
Actually, I take that back. Your event method should be onDeleteConfirm.
About 250 - the publisher's technological optimum. The publisher is
Packtpub.com.
-Original Message-
From: Daniel Jue [mailto:[EMAIL PROTECTED]
Sent: 01 November 2007 16:08
To: Tapestry users
Subject: Re: T5 book: update
About how many pages can we look forward to reading, once it's
Try t:select t:id=${prop:refFieldId} ...
Christoph
Marc A. Donis wrote:
Hi again,
I am trying to get a select component to take an id from its component
class, rather than having it staticly defined in the tml.
It seems, however, that no matter what I try, the id is always
interpreted as
How do I get a page to render a component that I have set up in the page
class?
I have done this successfully
OnePage.html
span jwcid=@OneComponent/
but instead of just grabbing OneComponent from the pool I need to use the
one that I set up in the rendering of OnePage
OnePage.java
@Component
I found the answer to my question.
span jwcid=oneComponentComponent Goes Here/span
On Nov 1, 2007 4:01 PM, Scott Smith [EMAIL PROTECTED] wrote:
How do I get a page to render a component that I have set up in the page
class?
I have done this successfully
OnePage.html
span
Hi Josh,
Thanks, it works, so method should be declared as
OnDeleteConfirm, then createActionLink(DeleteConfirm,...)
A.C.
Josh Canfield-2 wrote:
resources.createActionLink(onActionFromDeleteConfirm, false,
id).toURI();
The action you are invoking is deleteConfirm, the event
Michael Lake wrote:
Basically, I want to be able to store my component .tml files in a
database.
I've been looking at the code, stepping through the debugger, and it
seems that I need to implement org.apache.tapestry.ioc.Resource or
perhaps extend AbstractResource.
ClasspathResouce and
The mailinglist/nabble formatting cut out some stuff... here's the relevant
snippet:
Jim Roycroft wrote:
...
Note the path to csshover2.htc, obviously it's going to break if I don't
get the context path in there. Here's my solution:
style type=text/css media=screen
!-- This is an
Thanks Jim, good stuff! I was pondering about the same issue just the other
day.
Kalle
On 11/1/07, Jim Roycroft [EMAIL PROTECTED] wrote:
The mailinglist/nabble formatting cut out some stuff... here's the
relevant
snippet:
Jim Roycroft wrote:
...
Note the path to csshover2.htc,
40 matches
Mail list logo