Re: "dynamic" tml

2010-03-23 Thread Igor Drobiazko
Nope, is used to delegate rendering to an object (e.g. Block) located in the same page/template. You can only provide locale-specific templates of your component: Foo.tml, Foo_en.tml, Foo_ru.tml. On Tue, Mar 23, 2010 at 4:46 AM, Alfonso Quiroga wrote: > You mean "might" choose between different

Re: Documentation Request/Suggestion

2010-03-23 Thread Ulrich Stärk
I guess we can kill two birds with one stone here. There is the lack of an annotation telling the user which services are there just for consumption and which are to be overriden with a user-supplied implementation. Having such an annotation (or two) would make it easy to just scan the packages

Re: [T5.2] Deprecated public API of RenderSupport removed without replacements?

2010-03-23 Thread Massimo Lusetti
On Mon, Mar 22, 2010 at 11:31 PM, Otho wrote: > Issue entered as *TAP5-1068 > * > > In my case it is specifically a link to the Google maps API, where I have to > conditionally set the sensor parameter to true or false and later on maybe > even the

Accessing to the contributed configuration from a overridden service

2010-03-23 Thread Nourredine K.
Hi, I've overridden ComponentClassResolver service but I have no access to the contributed configuration. I tried to decorate the service but no way to solve the pb (the interresting things are done in the contructor). I found the same issue in the mailing list here : http://www.mail-archive.c

Re: Documentation Request/Suggestion

2010-03-23 Thread Inge Solvoll
You're right about the information being technically available, but to newbies it isn't. I absolutely love the idea of a page that presents a "best of" list of services, with hands-on examples and simple explanations. For me, T5 is all about common patterns. I always use RenderSupport for doing ex

how to disable clientsidevalidation?

2010-03-23 Thread asianCoolz
my button, i already put form.onsubmit = null, but after page rendered after button pressed, i can still see "**" in red color on the page code at http://codepaste.net/qqjnek - To unsubscribe, e-mail: users-unsubscr...@tapest

Re: T5-tutorial1 got exception!plz help!

2010-03-23 Thread Thiago H. de Paula Figueiredo
On Mon, 22 Mar 2010 23:13:32 -0300, oliverlee000 wrote: hi,everyone! Hi! i am currently learning t5,i checked out the t5 src from svn,then i try to run the tutorial1 project with jettyRunjetty.i didnt modify the sourcecode from the repository. Why don't you just use the 5.1.0.5 versi

Re: "dynamic" tml

2010-03-23 Thread Thiago H. de Paula Figueiredo
On Mon, 22 Mar 2010 23:29:00 -0300, Alfonso Quiroga wrote: But what happens if I want really dynamic layout-tml? I mean, if a page uses layout "peter", it should search a peter.tml, and if a page uses layout "pretty", pretty.tml. You can use blocks and the ComponentSource component for

Re: how to disable clientsidevalidation?

2010-03-23 Thread Thiago H. de Paula Figueiredo
On Tue, 23 Mar 2010 07:19:25 -0300, asianCoolz wrote: my button, i already put form.onsubmit = null, but after page rendered after button pressed, i can still see "**" in red color on the page Use the Form's clientValidation parameter. -- Thiago H. de Paula Figueiredo Independent Java, Ap

Automatic dependency resolution requires that exactly one service implement the interface

2010-03-23 Thread P.Sandeep
Hi My application is using different implementations for an interface. And when I try to open a tapestry page injecting the service I am getting the following exception "*Automatic* *dependency* *resolution* *requires* *that* *exactly* *one* *service* *implement* *the* *interface"* * *I have trie

Re: Automatic dependency resolution requires that exactly one service implement the interface

2010-03-23 Thread Thiago H. de Paula Figueiredo
On Tue, 23 Mar 2010 08:30:11 -0300, P.Sandeep wrote: Hi Hi! My application is using different implementations for an interface. And when I try to open a tapestry page injecting the service I am getting the following exception Have you tried @InjectService("serviceName") instead of @Inje

Re: how to disable clientsidevalidation?

2010-03-23 Thread asianCoolz
but inside my form, i have html elements that i want clientside validation, only when user click on this "submit button" skip the clientside validation. can you please elaborate - To unsubscribe, e-mail: users-unsubscr...@tapest

Re: Automatic dependency resolution requires that exactly one service implement the interface

2010-03-23 Thread P.Sandeep
Thanks Thiago That worked !! On Tue, Mar 23, 2010 at 5:01 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, 23 Mar 2010 08:30:11 -0300, P.Sandeep > wrote: > > Hi >> > > Hi! > > My application is using different implementations for an interface. >> And when I try to open

Problem with HTML entities and OutputRaw

2010-03-23 Thread Mark Allan
Hi all, I'm developing a site which will be available in two different languages - English and Gaelic. I've localised the pages and can change easily between the two different versions, however, many terms in Gaelic include diacritic marks on some of the characters, for example the word f

Re: Problem with HTML entities and OutputRaw

2010-03-23 Thread Thiago H. de Paula Figueiredo
On Tue, 23 Mar 2010 09:07:49 -0300, Mark Allan wrote: Hi all, Hi! I know I can use the OutputRaw element, and most of the time it works fine, but I can't use that inside an alt tag for my images. Why don't you write a simple Image component that writes your tag programatically? It wou

Missing dependency in Tapestry 5.2.0-SNAPSHOT?

2010-03-23 Thread Robin Komiwes
Hi, We are currently integrating Tapestry 5.2.0-SNAPSHOT for Wooki. When I changed Tapestry version in our pom.xml I had a compilation problem with some imports related to tapestry-test (in fact, when our test classes were extending SeleniumTestCase). To fix them I had to add the following depend

Re: Problem with HTML entities and OutputRaw

2010-03-23 Thread Mark Allan
On 23 Mar 2010, at 12:14 pm, Thiago H. de Paula Figueiredo wrote: On Tue, 23 Mar 2010 09:07:49 -0300, Mark Allan wrote: I know I can use the OutputRaw element, and most of the time it works fine, but I can't use that inside an alt tag for my images. Why don't you write a simple Image co

Re: Missing dependency in Tapestry 5.2.0-SNAPSHOT?

2010-03-23 Thread Ulrich Stärk
Might be that I messed something up when upgrading the selenium-versions some time ago. I will look into it. Uli On 23.03.2010 13:18, Robin Komiwes wrote: Hi, We are currently integrating Tapestry 5.2.0-SNAPSHOT for Wooki. When I changed Tapestry version in our pom.xml I had a compilation pro

Re: Documentation Request/Suggestion

2010-03-23 Thread Michael Gentry
Most new users don't know where in the JavaDoc to begin looking. I wasn't suggesting there was no JavaDoc, but I don't consider it to be the main starting point for a new user (needle in a haystack). It is something for more advanced users. As for: http://tapestry.apache.org/tapestry5.1/tapestry

JavascriptSupport : any reason for limiting addInitializerCall?

2010-03-23 Thread Robin Komiwes
Hi, Still on my way to migrate to Tapestry 5.2.0-SNAPSHOT. Before, we were doing: support.addInit("appendToZone", link.toAbsoluteURI(), form.getClientId(), to, position); Now, there is only: void addInitializerCall(String functionName, JSONObject parameter); void addInitializerCall(Initiali

Re: javascript not working in updated zone ( IE only)

2010-03-23 Thread peter ricke
Thanks Thiago, Thanks Josh. I used RenderSupport.addScript() as suggested. Therefore i wrote 2 mixins, one for displaying the area and one for removal Maybe this whole mixin-strategie was not what you suggested, but i did not find anything better. So i`m happy about having implemented my firs

Re: Cross field validation in a component

2010-03-23 Thread Juan Isern
Hi Klaus, I've been facing the same exact problem with validations when also developing a similar component (maybe this should be taken as a suggestion for the tapestry developers to include a more traditional date field...) What I've found out so far is that you can inject a FormSupport object

Re: T5-tutorial1 got exception!plz help!

2010-03-23 Thread oliver lee
Depend on the m2eclipse i had added the tapestry-hibernate JAR to the classpath when i encountered the exception. any other solutions?thank you! 2010/3/23 Thiago H. de Paula Figueiredo > On Mon, 22 Mar 2010 23:13:32 -0300, oliverlee000 > wrote: > > hi,everyone! >> > > Hi! > > > i am currently l

Re: Documentation Request/Suggestion

2010-03-23 Thread Erick Erickson
I'll second Michael's statement, the documentation may exist but you don't even know it's there unless you already know it's there. Tribal knowledge and all that. Sometimes Google even gets me there. But the T5 website is NOT my first choice exactly because of its organization, and it *should* be

Re: Missing dependency in Tapestry 5.2.0-SNAPSHOT?

2010-03-23 Thread Andreas Andreou
Robin, if your project directly uses selenium classes, then you should add that dependency in any case. It's bad practice to directly use transitive dependencies, because it's easy to end up in such problems... To give another example, tapestry-core now uses some commons-codec classes - perhaps in

Re: Cross field validation in a component

2010-03-23 Thread Klaus Kopruch
Hi Juan, thank you for this hint. I'll try it when I need it. Up to now, I could work around that problem but not very elegant. Regards, Klaus Juan Isern wrote: > > Hi Klaus, > > I've been facing the same exact problem with validations when also > developing a similar component (maybe this

Re: Resolving DTDs without an internet connection

2010-03-23 Thread Klaus Kopruch
Thanks Christophe that's a very good hint, I'll try it soon. Thanks again, Klaus Christophe Cordenier wrote: > > Hi > > Contribute your DTD to the TemplateParserService : > > See this extract of core code : > > public static void contributeTemplateParser(MappedConfiguration URL> > config)

Re: JavascriptSupport : any reason for limiting addInitializerCall?

2010-03-23 Thread Howard Lewis Ship
I found that the positional style approach led to a lot of refactoring problems. I found that as I wrote more sophisticated JavaScript, I used only the two forms: single string (universally a client element id) or a JSON object "specification" with a number of keys for different purposes. Most of

Re: Missing dependency in Tapestry 5.2.0-SNAPSHOT?

2010-03-23 Thread Robin Komiwes
Just to be clear, the class I was speaking about belongs to org.apache.tapestry5 (tapestry-test artifact). Anyway, I will try "mvn dependency:analyze" later and give feedback. Thanx! On Tuesday, March 23, 2010, Andreas Andreou wrote: > Robin, if your project directly uses selenium classes, then

Re: Missing dependency in Tapestry 5.2.0-SNAPSHOT?

2010-03-23 Thread Andreas Andreou
oops - apologies... I just took a look at tapestry-test (and other subprojects) and didn't see anything using selenium-java-client-driver + hudson is correctly building everything. So, i don't know if selenium-java-client-driver was a dependency before, but it's not now (and rightly so). On Tue,

Need help with an error "PerthreadManagerImpl cleanup: Error invoking listener org.tynamo.jpa.internal.jpatransactionmanageri...@808e07: Transaction is not active"

2010-03-23 Thread Dmitry Gusev
Hi guys, don't know if this Tapestry, Tynamo JPA or DataNucleus/GAE bug. In my project I have task queue which triggers tapestry page (its /job/run/). The task get runned simultaneously (6 tasks per minute with bucket size = 5.0). And I'm getting very strange error (stack trace below). The error h

Re: Missing dependency in Tapestry 5.2.0-SNAPSHOT?

2010-03-23 Thread Howard Lewis Ship
I did a clean build of tapestry and tapx yesterday, starting with no local Maven repository with no problems; that would indicate the Tapestry dependencies are good. On Tue, Mar 23, 2010 at 8:09 AM, Andreas Andreou wrote: > oops - apologies... > I just took a look at tapestry-test (and other subp

working pom.xml for latest tapestry 5.2.0-SNAPSHOT

2010-03-23 Thread Peter Kanze
Does anyone have a working pom.xml file, so I can use the latest tapestry 5.2.0-SNAPSHOT en download all its dependencies.

Re: [T5.2] Deprecated public API of RenderSupport removed without replacements?

2010-03-23 Thread Howard Lewis Ship
I think because I had built all the supporting APIs around Assets, not links. I'm sure there's a way to slip this back in. On Tue, Mar 23, 2010 at 1:53 AM, Massimo Lusetti wrote: > On Mon, Mar 22, 2010 at 11:31 PM, Otho wrote: > >> Issue entered as *TAP5-1068

Re: Cross Site Request Forgery (CSRF) for T4

2010-03-23 Thread Matthew Cordes
Thanks Andreas, I'll give that a shot. On Mon, Mar 22, 2010 at 8:54 PM, Andreas Andreou wrote: > Assuming you just want to protect form submits and that you want to > implement the cookie + hidden > field solution it's possible to do this: > > 1) Create a CSRFValidator that implements > org.a

Re: Better EJB3.1 integration?

2010-03-23 Thread Piero Sartini
>  Has anyone done any work on doing better EJB3.1 integration with Tapestry? I > know that the Jumpstart does it by using a context lookup, and I'm copying > that pattern right now (though without the service) but I thought I'd ask if > anyone has gone one better. I tried to integrate tapestry

Re: Better EJB3.1 integration?

2010-03-23 Thread Pierce T. Wetter III
On Mar 23, 2010, at 12:28 PM, Piero Sartini wrote: >> Has anyone done any work on doing better EJB3.1 integration with Tapestry? >> I know that the Jumpstart does it by using a context lookup, and I'm copying >> that pattern right now (though without the service) but I thought I'd ask if >> a

Re: Documentation Request/Suggestion

2010-03-23 Thread Geoff Callender
I agree too. Users of anything usually need both a Guide and a Reference. To me, the Tapestry documentation is much more of a Reference than a Guide, and that makes it a source of immense frustration to newbies and the experienced alike. Here's what I mean: A User Reference is usually organised

Re: Documentation Request/Suggestion

2010-03-23 Thread Peter Stavrinides
We understand that Tapestry commiters are giving up their time to make Tapestry what it is, and we are grateful, I think they too are aware of these issues and must have some plans in the pipeline to rectify the problems. Nothing being suggested in this post is new, my question is where the bot