Re: [T5.1.0.4] Distinguishing Between Internal and Scripts when Combining

2010-01-21 Thread Kalle Korhonen
On Thu, Jan 21, 2010 at 9:12 PM, Ville Virtanen wrote: > GA works ok for us by just adding it to the tml as is instructed in GA site > - No need to use T5 facilities to include the script. (Done in layout.tml in > our case.) Yes, for GA that's fine. But in general, addScriptLink is rather useful

Re: [T5.1.0.4] Distinguishing Between Internal and Scripts when Combining

2010-01-21 Thread Ville Virtanen
Hi, GA works ok for us by just adding it to the tml as is instructed in GA site - No need to use T5 facilities to include the script. (Done in layout.tml in our case.) This doesn't solve the external script problems, and may not work for you but just thought to let you know. - Ville Kalle Ko

Re: Dynamicly Created Checkboxes

2010-01-21 Thread Jun Tsai
I think you should write own component to support that. ${item} processSubmit: request.getParameters("xxx"); 2010/1/22 Hilco Wijbenga > Hi all, > > I am trying to get the submit results of a dynamic set of checkboxes > and I'm stumped. > > http://tapestry.apache.org/schema/tape

Re: T5: some automagical way to export versioned assets to CDN?

2010-01-21 Thread Jun Tsai
You can override AssetPathConverter service. example: http://code.google.com/p/corner/source/browse/corner3/trunk/src/main/java/corner/asset/services/impl/CDNAssetPathConverterImpl.java 2010/1/22 britske > > Versioning in Tapestry is really easy. Just increment the version-nr in > appModule

Dynamicly Created Checkboxes

2010-01-21 Thread Hilco Wijbenga
Hi all, I am trying to get the submit results of a dynamic set of checkboxes and I'm stumped. http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> ${item} public class Test { private final String[] list = new String[] { "Abc", "Defg", "Hijkl",

Re: [T5.1.0.4] Distinguishing Between Internal and Scripts when Combining

2010-01-21 Thread Kalle Korhonen
This seems to be the case with 5.1.0.5 as well - was there any resolution for it? Did you ever create an enhancement request? Kalle On Sun, May 3, 2009 at 3:07 PM, Steve Eynon wrote: > Hi, > > If you add a script with an external url then script combining is disabled. > > From DocumentLinkerImp

T5: some automagical way to export versioned assets to CDN?

2010-01-21 Thread britske
Versioning in Tapestry is really easy. Just increment the version-nr in appModule and you're set. However, I'd like my assets to live on a CDN. (Amazon S3 + cloudfront) . For this to work (along with versioning) I would have to do 2 conceptual things: 1. export assets to a specific s3 bucket l

Re: a space character in url context

2010-01-21 Thread lyf
Thanks a lot. Temporarily, I am using hex encoding with js and decode it on the server side. Yunhua Sang wrote: > > forgot the link of ticket: https://issues.apache.org/jira/browse/TAP5-637 > > On Thu, Jan 21, 2010 at 12:43 PM, Yunhua Sang > wrote: >> Tapestry 5 has its own URLEncoder, a JI

Re: How to clear an @Persist-ed value in a component?

2010-01-21 Thread Hilco Wijbenga
2010/1/21 Howard Lewis Ship : > In Tapestry 5.2, there's a new lifecycle method, pageReset(), that > your pages/components can implement.  It is invoked during page render > requests, when the active page changes. See the nightly documentation > for details. That sounds very useful. I'll have a lo

Re: How to clear an @Persist-ed value in a component?

2010-01-21 Thread Hilco Wijbenga
2010/1/21 Stephan Windmüller : > Am 21.01.2010 09:04, Hilco Wijbenga wrote: > >> So how would you suggest I store data that I only need in a component? > > That depends on what you want to do with the data and where you need it. The component would consist of a dynamic set of radiogroups and check

Re: a space character in url context

2010-01-21 Thread Yunhua Sang
forgot the link of ticket: https://issues.apache.org/jira/browse/TAP5-637 On Thu, Jan 21, 2010 at 12:43 PM, Yunhua Sang wrote: > Tapestry 5 has its own URLEncoder, a JIRA has been logged about this > issue with client encode js by Hugo, but seems this way's not > recommended. > > > On Thu, Jan 21

Re: a space character in url context

2010-01-21 Thread Yunhua Sang
Tapestry 5 has its own URLEncoder, a JIRA has been logged about this issue with client encode js by Hugo, but seems this way's not recommended. On Thu, Jan 21, 2010 at 9:45 AM, lyf wrote: > > The url of my form looks like: ./index.domains:selected/Internal%20Domain , > which caused a exception s

Re: Canonical way to involve a listener with JS?

2010-01-21 Thread Thiago H. de Paula Figueiredo
On Thu, 21 Jan 2010 14:28:27 -0200, Michael Prescott wrote: Is there a canonical way to expose a server-side listener for invocation by custom JavaScript? Yes. @Inject ComponentResources and create a Link using createEventLink(). Then pass that link to your JavaScript code through Rend

Canonical way to involve a listener with JS?

2010-01-21 Thread Michael Prescott
Is there a canonical way to expose a server-side listener for invocation by custom JavaScript? Regards, Michael

Re: How to return a component without a form (T5.1.05)

2010-01-21 Thread Robert Zeigler
It's not quite true, but close enough. All form components have to have a FormSupport environmental object available when they render. So you can have form fields that are in blocks on non-rendering pages and pull those blocks into the rendering page and everything works fine. The problem

Re: How to return a component without a form (T5.1.05)

2010-01-21 Thread Andreas Andreou
On Thu, Jan 21, 2010 at 16:47, Inge Solvoll wrote: > This limitation has been a blocker for me too. All form components need to > be enclosed by a form in the same template. Is that true? Anyone knows if there's a reason for this? Cause otherwise, you should file a bug report ---

Re: T5: how to eval 'canned' expansions (stored in db)?

2010-01-21 Thread britske
I'd rather have an all- tapestry solution. Neverthless i'll have a look thanks. 2010/1/21 Thiago H. de Paula Figueiredo [via Tapestry Users] < ml-node+4433143-269793...@n2.nabble.com > > On Thu, 21 Jan 2010 09:12:02 -0200, britske <[hidden > email]

Re: T5: how to eval 'canned' expansions (stored in db)?

2010-01-21 Thread britske
Thanks, this looks like the way to go. 2010/1/21 Howard Lewis Ship [via Tapestry Users] < ml-node+4434057-1227788...@n2.nabble.com > > You can inject the PropertyConduitSource service (it is public). You > can obtain PropertyConduits, which are the compiled versions of > property expressions (as

Re: How to clear an @Persist-ed value in a component?

2010-01-21 Thread Howard Lewis Ship
ComponentResources includes a method, discardPersistentFieldChanges(), for this purpose ... the trick is to know when to invoke it. In Tapestry 5.2, there's a new lifecycle method, pageReset(), that your pages/components can implement. It is invoked during page render requests, when the active pa

Re: T5: how to eval 'canned' expansions (stored in db)?

2010-01-21 Thread Howard Lewis Ship
You can inject the PropertyConduitSource service (it is public). You can obtain PropertyConduits, which are the compiled versions of property expressions (as used by parameter bindings). The PCS caches the result, so it's reasonable to pass an a class and an expression, get back a PC, and discard

Re: How to return a component without a form (T5.1.05)

2010-01-21 Thread lyf
Thanks for replying. But I've abandoned ajax. Inge Solvoll-2 wrote: > > This limitation has been a blocker for me too. All form components need to > be enclosed by a form in the same template. > > I guess you need to use some other strategy, for example by subclassing > the > select componen

Re: How to return a component without a form (T5.1.05)

2010-01-21 Thread Inge Solvoll
This limitation has been a blocker for me too. All form components need to be enclosed by a form in the same template. I guess you need to use some other strategy, for example by subclassing the select component? I would like to se some nice suggestions on this, as this is a real requirement for m

a space character in url context

2010-01-21 Thread lyf
The url of my form looks like: ./index.domains:selected/Internal%20Domain , which caused a exception saying 'Input string 'Internal Domain' is not valid; the character ' ' at position 9 is not valid.' how to solve this? (T5.1.05) -- View this message in context: http://old.nabble.com/a-space-c

Re: Required action attribute of form component

2010-01-21 Thread Stephan Windmüller
Am 21.01.2010 15:09, schrieb Thiago H. de Paula Figueiredo: I tried exactly the above line it worked. Form ignores the action attribute value, overriding it when rendering. Thanks for the reply and your test! But is there an "official" (or even documented) guideline for this? Regards Stepha

Re: Required action attribute of form component

2010-01-21 Thread Sven Homburg
Tapestry build his own action url and throws "yours" away. with regards Sven Homburg Founder of the Chenille Kit Project http://chenillekit.codehaus.org 2010/1/21 Stephan Windmüller > Hello! > > We are creating our templates with default XHTML tags like > > > > so we are able to edit and v

Re: Required action attribute of form component

2010-01-21 Thread Thiago H. de Paula Figueiredo
On Thu, 21 Jan 2010 12:00:09 -0200, Stephan Windmüller wrote: Hello! Hi! We are creating our templates with default XHTML tags like so we are able to edit and validate them with standard HTML tools. But I am unsure how to set the required "action" parameter of the form component.

Required action attribute of form component

2010-01-21 Thread Stephan Windmüller
Hello! We are creating our templates with default XHTML tags like so we are able to edit and validate them with standard HTML tools. But I am unsure how to set the required "action" parameter of the form component. Does it even care for tapestry if I write ? The component reference is

Re: [Announce] Wooki - Collaborative Writing

2010-01-21 Thread cordenier christophe
Hi Igor, Thanks for comment and suggestion, actually the project is in early development phase and we are open to all suggestions. We wanted to announce wooki on the mailing list because wooki answers to many questions asked by Tapestry beginner. We have tried to cover all the subjects required b

How to return a component without a form (T5.1.05)

2010-01-21 Thread lyf
The page template looks like: ... page class: class Index { @InjectComponent private MyComponent myComponent; Object onSuccess() { return this.myComponent; } } MyComponent template: MyCompon

Re: T5: how to eval 'canned' expansions (stored in db)?

2010-01-21 Thread Thiago H. de Paula Figueiredo
On Thu, 21 Jan 2010 09:12:02 -0200, britske wrote: One of these components gets it's content from a database and writes it in the BeginRender() - phase. The content to store in the database is some html possibly with tapestry expansions. E.g: "today is: #foo ${dateAsString} " or somethin

T5: how to eval 'canned' expansions (stored in db)?

2010-01-21 Thread britske
I have a page showing different blocks (ala myYahoo , netvibes, etc) . Each block is a different component. One of these components gets it's content from a database and writes it in the BeginRender() - phase. The content to store in the database is some html possibly with tapestry expansions.

RE: T4.1.6 Troubles with accessing bindings from async listener method

2010-01-21 Thread Marko Mrkus
I solved it with passing the index of an item in collection as a direct link parameter which then updates component's parameter. Then the client of this component (usually page) access the object from collection with updated index. Thanks! -Original Message- From: andre...@gmail.com [mailt

Re: How to clear an @Persist-ed value in a component?

2010-01-21 Thread Stephan Windmüller
Am 21.01.2010 09:04, Hilco Wijbenga wrote: So how would you suggest I store data that I only need in a component? That depends on what you want to do with the data and where you need it. I'm already using the activation context (not for this component) but the component has a fair number of

Re: How to clear an @Persist-ed value in a component?

2010-01-21 Thread Hilco Wijbenga
2010/1/20 Stephan Windmüller : > Hilco Wijbenga wrote: > >> Any advice would be appreciated (also comments about this approach, is >> it wrong to @Persist values in a component?). > > You should use @Persist only when it is absolutely necessary. When you > only need it on one page this may be an in