Re: T5 which button did you hit?

2007-11-01 Thread Nick Westgate
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

[T5.06] component action context does not support utf8!

2007-11-01 Thread Donyee
I use the actionLink, and the context contains utf8 string, and the onUpdate(string str)... the str is ???, encoding wrong!

RE: T5 book: update

2007-11-01 Thread Kolesnikov, Alexander GNI
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

RE: T5 book: update

2007-11-01 Thread Kolesnikov, Alexander GNI
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

Re: T5 which button did you hit?

2007-11-01 Thread Nick Westgate
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:

RE: T5 book: update

2007-11-01 Thread Kolesnikov, Alexander GNI
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

add checkbox to tableview

2007-11-01 Thread cometta
is there any example how to do this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

T5: actionlink in another page/class

2007-11-01 Thread Angelo Chen
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

Re: T5 book: update

2007-11-01 Thread Peter Stavrinides
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,

Re: T5 which button did you hit?

2007-11-01 Thread Marcus
Hi Nick, Thanks, Marcus

Re: T5 book: update

2007-11-01 Thread Paul Cooley
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.

RE: T5 book: update

2007-11-01 Thread Kolesnikov, Alexander GNI
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

Re: T5: inject ComponentResources in a service

2007-11-01 Thread Peter Stavrinides
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

[T3] Spindle for Tapestry 3 and Eclipse 3.3

2007-11-01 Thread Jesse Kuhnert
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

Re: [T3] Spindle for Tapestry 3 and Eclipse 3.3

2007-11-01 Thread Nick Westgate
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 :

Re: Tapestry 5 Roadmap

2007-11-01 Thread Peter Stavrinides
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

Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
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

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
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

Re: Is Tapestry 5 ready?

2007-11-01 Thread Peter Stavrinides
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

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
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

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
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

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
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

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
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}

Re: T4.1.3 loop index issues, migrating from 4.0.2

2007-11-01 Thread Jesse Kuhnert
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.

RE: Output variables in Tapestry Script - 4.1.3

2007-11-01 Thread Ken nashua
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 =

binding id to a property (not a liteal)

2007-11-01 Thread Marc A. Donis
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

T5 Image Upload Client Side Resize

2007-11-01 Thread Josh Penza
Is there a way to resize images on the client side before they are uploaded with the Tapestry Upload Component?

Re: T5 book: update

2007-11-01 Thread Daniel Jue
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

Re: T5 Image Upload Client Side Resize

2007-11-01 Thread Chris Lewis
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

Re: T5: persist a list

2007-11-01 Thread Josh Canfield
@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

Re: T5: actionlink in another page/class

2007-11-01 Thread Josh Canfield
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,

Re: T5: actionlink in another page/class

2007-11-01 Thread Josh Canfield
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.

RE: T5 book: update

2007-11-01 Thread Kolesnikov, Alexander GNI
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

Re: binding id to a property (not a liteal)

2007-11-01 Thread Christoph Jaeger
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

Tapestry 4.1 Component Render

2007-11-01 Thread Scott Smith
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

Re: Tapestry 4.1 Component Render

2007-11-01 Thread Scott Smith
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

Re: T5: actionlink in another page/class

2007-11-01 Thread Angelo Chen
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

Re: T5: How can I inject a different resource type?

2007-11-01 Thread Mike Lake
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

Re: [T4] One way to get the context path when you need to inject it straight into HTML

2007-11-01 Thread Jim Roycroft
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

Re: [T4] One way to get the context path when you need to inject it straight into HTML

2007-11-01 Thread Kalle Korhonen
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,