Re: Feedback wanted on IoC documentation

2007-11-12 Thread Peter Stavrinides
A very commendable effort Howard! I believe this type of documentation will go a long way towards a more usable and marketable framework. A minor comment from an editorial perspective regarding the cookbook section, perhaps the naming is misleading: 'cookbook' represents recepies so you might

Re: Feedback wanted on IoC documentation

2007-11-12 Thread Jiri Mares
Hi, the documentation is really getting better, more understandable. But I would like to print it and read offline (from paper), is there any way how to show all documentation as one HTML page or PDF to print it easily? Jirka Howard Lewis Ship napsal(a): > I've been working on new documentati

Re: T4: Putting Tapestry files inside another folder

2007-11-12 Thread Jim
Joshua Jackson wrote: Dear all, By default T4 files such as *.jwc, *.page, *.html are required to be place inside WEB-INF/. But I find this quite messy when there are other configuration from another framework. Is there any way I can move these files to another folder? Thanks in advance H

T4: Putting Tapestry files inside another folder

2007-11-12 Thread Joshua Jackson
Dear all, By default T4 files such as *.jwc, *.page, *.html are required to be place inside WEB-INF/. But I find this quite messy when there are other configuration from another framework. Is there any way I can move these files to another folder? Thanks in advance -- What you want today, may

T5 adding custom parameters to a BeanEditor

2007-11-12 Thread Ezra Epstein
I'm wanting to add custom t:parameter elements to a beaneditor within a Form. This is not a BeanEditorForm, but a vanilla Form element with a beaneditor within it. Screencast #5 shows how to add custom t:parameter blocks to a BeanEditorForm. I've tried similar with a BeanEditor - adding the b

Re: T5: How to access user-defined component's properties

2007-11-12 Thread ronaldlee
But when I tried to pass my own data structure, it throws an exception like this: .. Could not find a coercion from type java.lang.String to type com.xxx...MyDataStructure. Actually, MyDataStructure is quite complex, it contains some primitive data types (byte,int,boolean), another custom data st

Re: T5: How to access user-defined component's properties

2007-11-12 Thread Josh Canfield
Sorry, I was unclear in my cut and paste of your question. You can pass anything as a parameter. If you want to get access to your component in your page then define an attribute with the right type and use the @Component annotation. Add a getter to your component if you want to get something ba

Re: T5: How to access user-defined component's properties

2007-11-12 Thread ronaldlee
So the @Parameter can only be used to passed user-defined data structure to the custom component... Is there a way such that the page that displays the custom component can have access to the componet's properties (public getter functions) in order to retrieve the user-defined data structure? F

Re: T5: How to access user-defined component's properties

2007-11-12 Thread Josh Canfield
> For @Parameter attributes of custom components, can it be user-defined > data > structure? Or it has to be simple java-defined ones? > Yes. > Yes, but you don't need the ${}, the default binding is property Josh On Nov 12, 2007 3:01 PM, ronaldlee <[EMAIL PROTECTED]> wrote: > > > For @Pa

Re: Multiple Tapestry Applications

2007-11-12 Thread Omar Valerio
Well, not in a single WAR. What you need is to built an *EAR* (Enterprise Application Archive), and package inside there the WAR's of your tapestry developed applications.. What it is important to note is that WAR is an standard for a web application developed by Sun for the Java server side techno

Re: T5: How to access user-defined component's properties

2007-11-12 Thread ronaldlee
For @Parameter attributes of custom components, can it be user-defined data structure? Or it has to be simple java-defined ones? For example, can I have this in my custom component: @Parameter MyOwnDataStructure data And in my main page I will feed that param using the page's property function

Re: Feedback wanted on IoC documentation

2007-11-12 Thread Massimo Lusetti
On Nov 9, 2007 7:09 PM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > Feedback is encouraged! I've already said this kind of works are invaluable expecially when are written side by side with concrete examples as the ones taken from tapestry-core. In this regards the only this i would say is the

Re: T5: How to access user-defined component's properties

2007-11-12 Thread Chris Lewis
Ronald, Tapestry receives input (and fires events) using its Form component, which is used for creating html forms. Checkboxes are themselves components and are tied to boolean properties of the containing page (or component in your case). If you have declared the checkboxes as 'raw' html tag

T5: How to access user-defined component's properties

2007-11-12 Thread ronaldlee
Hi, I wrote a simple component which contain a check list (using checkboxes). I put it in a page where it has a function to listen to the submit event. Inside my onSuccess function, how can I access that component's check list that user has set? thx. Ronald -- View this message in context: htt

Re: [T4] Context real path

2007-11-12 Thread Istvan Szucs
Hi, Thank you, I forgot this injection. Best regards, Stef > -Original Message- > From: [EMAIL PROTECTED] > Sent: Mon, 12 Nov 2007 11:28:22 -0800 (PST) > To: users@tapestry.apache.org > Subject: Re: [T4] Context real path > > Have you tried the following ? > > > @InjectObject(service:

Re: [T4] Context real path

2007-11-12 Thread Shing Hing Man
Have you tried the following ? @InjectObject(service:tapestry.globals.ServletContext") public abstract ServletContext getServletContext(); Shing --- Istvan Szucs <[EMAIL PROTECTED]> wrote: > Hi, > > How can I get the real context path in Tapestry > 4.0.2? > > It is not enough: > pub

Re: T5 Previewable pages

2007-11-12 Thread Shing Hing Man
The following is my implementation of a remove component. Put the following in the component directory: public class Remove { protected boolean beginRender(){ return false; } } Usage : Fred Shing --- Geoff Callender <[EMAIL PROTECTED]> wro

Re: [T4] Context real path

2007-11-12 Thread Kevin Menard
You likely want to inject the ServletContext into your page. In T4.0.2, you need to explicitly reference the tapestry.globals name (don't recall it off hand -- check the HiveDoc). In Tapestry 4.1+, you don't need to inject it by name, as it will be auto-wired. -- Kevin On 11/12/07 1:35 PM, in

T5: entities in literal:

2007-11-12 Thread Chris Lewis
My component takes a parameter with a default binding prefix of 'literal'. This parameter needs to be able to receive strings with characters like '>', but apparently the literal prefix causes them to be converted to entities. How can I pass unfiltered characters to my component as a parameter?

RE: Script component locality of definition

2007-11-12 Thread Ken nashua
Just another tidbit... The parent is actually Home.html I guess I am wondering why the Script component is not rendering when specified deeper beyond Home.html Are there limitations?Best regards Ken in nashua From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: RE: Script component locality of d

[T4] Context real path

2007-11-12 Thread Istvan Szucs
Hi, How can I get the real context path in Tapestry 4.0.2? It is not enough: public void test(IRequestCycle cycle) { String contextPath = cycle.getEngine().getInfrastructure().getContextPath(); } Best regards, Stef GET FREE 5

RE: Script component locality of definition

2007-11-12 Thread Ken nashua
The reason why I am asking this... is because then I specify the @Script definition in the parent, the javascript code gets rendered properly in the initialization of the body and just near the actual widget markup. If I specify the @script definition in the child, no scripting gets rendered at

T5: thoughts on components using javascript

2007-11-12 Thread Chris Lewis
Hello all. I'm working on a component that makes a 'slide show.' It doesn't accept input as its only every used do display images. I'm writing it so that users can have total control (if they wish) over how the images are cycled, how the rotation starts, and what to do at the end of the cycle.

Re: getting remote IP address

2007-11-12 Thread Josh Canfield
I believe that what you want to do is create a constructor that takes RequestGlobals as a parameter. Then store the value out into a final property for access later. private final RequestGlobals _globals; public MyDispatcher(RequestGlobals globals) { _globals = globals; } public boolean dispatc

Multiple Tapestry Applications

2007-11-12 Thread Pablo Ruggia
Hi ! Is it possible to run multiple Tapestry Applications in the same Web Application (same war). Are there any known issues doing so, like Hivemind Registry clashes or some singletons that the applications will have to share, etc ... Thanks in advance.

Re: T5: Link to string and back to link?

2007-11-12 Thread Howard Lewis Ship
There isn't a very good way to do that, there's no possiblity of squirreling the link object away somewhere? On Nov 12, 2007 6:54 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > I have this in the code, it generates a link: > > String link1 = resources.createPageLink("mypage", true, > usr.

Rendering Page in background (4.1.3)

2007-11-12 Thread lt
Hello, I would like to render a tapestry page, components and all in the background. I will set up the page parameters and it will be initialized correctly, but i want to do this in the background and pass down the html. This is what I had, and it worked for the early versions of tapestry. Ju

Script component locality of definition

2007-11-12 Thread Ken nashua
Folks, I have ParentTemplate.html and ChildTemplate.html ChildTemplate is a tapestry Component ChildTemplate happens to exercise tapestry script and has a respective ChildTemplate.script QUES: Where should I place the @Script definition... in ParentTemplate or ChildTemplate ? I realize

T5 : How to use checkbox inside of the grid components

2007-11-12 Thread Penyihir Kecil
hi... i have list of daya displayed by grid component now i want to add checkbox for each row could anyone give me an example how to do it ? thnx Dwi Ardi Irawan ~ ...and the story goes ~ Blog : http://dwiardiirawan.blogspot.com __ Do You Yah

T4: Multiple Tapestry Applications

2007-11-12 Thread Pablo Ruggia
Hi ! Is it possible to run multiple Tapestry Applications in the same Web Application (same war). Are there any known issues doing so, like Hivemind Registry clashes or some singletons that the applications will have to share, etc ... Thanks in advance.

table field i18n

2007-11-12 Thread cometta
i have a field name like this --> fieldname:display name:fieldname how to use i18n for table field ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[T5] Dynamic Layouts]

2007-11-12 Thread Harald Graf
hi all, is there any possibility to use dynamic layouts for example, i'd like to use some variable for my layout name (${layout} which is then filled in my pageclass at runtime depending on some conditions. http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> thank you, harald

T5: Link to string and back to link?

2007-11-12 Thread Angelo Chen
Hi, I have this in the code, it generates a link: String link1 = resources.createPageLink("mypage", true, usr.getId()).toURI(); later I'd like to turn link1 back into a instance of Link, possible? Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-Link-to-string-and-b

Re: T5 Previewable pages

2007-11-12 Thread Nick Westgate
$Remove$ is not yet implemented. You can accomplish what you're trying to do with Any: http://wiki.apache.org/tapestry/Tapestry5AnyComponent In that case the runtime href will be prefixed with "t:" to override the (informal) additional href used for preview. The cleaner option is to write your

RE: T5: testing software?

2007-11-12 Thread Joel Wiegman
Anything wrong with the one that ships with T5? http://tapestry.apache.org/tapestry5/tapestry-test/ Unforutnately, it's hard-coded that you have to use Firefox for your testing (or is that 'fortunately'?), but I've been using it and it works great. -Original Message- From: Angelo Chen [

Re: [T4] Listeners called twice

2007-11-12 Thread Kevin Menard
Digging further, it appears to be a problem when caching is disabled in Firefox and the Yslow! Plugin is activated in Firefox. So, the whole thing is a bit perplexing. My guess is that Yslow! Is somehow resubmitting the form. With the same setup this behavior is not observed at all with T5 -- th

Re: T5 Previewable pages

2007-11-12 Thread Thiago H de Paula Figueiredo
On Mon, 12 Nov 2007 10:06:49 -0200, Geoff Callender <[EMAIL PROTECTED]> wrote: One of T4's great selling points was that the templates could be made previewable in a browser or WYSIWYG tool. Is this possible in T5? Yes. Some people people use, for example, the Grid component, as , but yo

Re: T5 Previewable pages

2007-11-12 Thread Hugo Palma
I think that should work. Howard has already said in other threads that he plans to support the $remove$ and $content$ notations from T4 in T5. It's just a matter of time until that happens. Geoff Callender wrote: I was thinking particularly of stylesheet handling. In T4 you could put $remo

Re: T5 Previewable pages

2007-11-12 Thread Geoff Callender
I was thinking particularly of stylesheet handling. In T4 you could put $remove$ around a stylesheet that used a relative path. The approach I'm taking in T5 is this kind of thing: The first link makes it previewable, but it might not be valid at runtime eg. if the te

Re: T5 Previewable pages

2007-11-12 Thread Filip S. Adamsen
That is indeed possible: http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html See "Invisible Instrumentation" at the bottom. -Filip Geoff Callender skrev: One of T4's great selling points was that the templates could be made previewable in a browser or WYSIWYG tool. Is this

Re: T5 Previewable pages

2007-11-12 Thread Joshua Jackson
Of course. It's even better :) On 11/12/07, Geoff Callender <[EMAIL PROTECTED]> wrote: > One of T4's great selling points was that the templates could be made > previewable in a browser or WYSIWYG tool. Is this possible in T5? > > Geoff -- What you want today, may not exist tommorrow Blog: htt

T5 Previewable pages

2007-11-12 Thread Geoff Callender
One of T4's great selling points was that the templates could be made previewable in a browser or WYSIWYG tool. Is this possible in T5? Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

RE: getting remote IP address

2007-11-12 Thread mnguyen21
That didn't seem to work for me. Is what you are using for T4 or T5? I'm trying to do this in T5. mnguyen21 wrote: > > Thanks! I'll try that! > > --Michael > > > -Original Message- > From: Norman Franke [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 08, 2007 1:40 PM > To

Re: T4 Nightly Build

2007-11-12 Thread Joshua Jackson
Thanks andy, This is good enough for me as I need the latest build because it already has some fixes I need. Cheers, On 11/12/07, andyhot <[EMAIL PROTECTED]> wrote: > http://tapestry.apache.org/tapestry4.1/download.html has the url for the > snapshot repo. > It's not really nightly builds - just

Re: [T4] Listeners called twice

2007-11-12 Thread andyhot
No, I haven't noticed something like this... how is it possible for us to reproduce this? Kevin Menard wrote: Hi all, I've just run into a problem with one of our apps that has likely been there for some time. It seems all of our form listeners are called twice. I've confirmed this behaviour

Re: T4 Nightly Build

2007-11-12 Thread andyhot
http://tapestry.apache.org/tapestry4.1/download.html has the url for the snapshot repo. It's not really nightly builds - just manual builds from the committers Joshua Jackson wrote: Dear all, Is there any maven repo for T4 snapshot/nightly build? Since I always need the latest build for T4. Th

Re: T5: testing software?

2007-11-12 Thread adasal
Hi has anyone given any thought to this:- The possibility of creating test (black box) scripts that are generated in some way as code is developed. Would tapestry lend itself to this? I haven't looked into this at all and have no idea what I am asking. But I have a hunch that Tapestry might be able

Re: [T5] BeanEditForm validations

2007-11-12 Thread Francois Armand
Kevin Menard wrote: Hi, Hello, Is there anyway to configure validation for a BeanEditForm other than with the Validate annotation? I'd like to have validation, but really can't apply the annotations because I'm working with classes coming out of a library. I see at least two other way, o

Re: ApplicationState and subclasses (T5) ?

2007-11-12 Thread Massimo Lusetti
On Nov 12, 2007 8:54 AM, Alexander Lamb <[EMAIL PROTECTED]> wrote: > Hello list, > > We are making use of @ApplicationState to inject a session object in > our various components. > > As I understand it, the first time Tapestry finds @ApplicationState it > creates an instance of the class we inten