Re: [T5] improve documentation

2009-01-19 Thread Peter Stavrinides
I think Jumpstart covers a lot of ground, and is the quickest and most efficient way to learn Tapestry (whats more useful than looking at actual code), its been around for a while, ao its evolution means it documents best practices. Now that it runs with Jetty, I say use Jumpstart and strip out

Complex Component Tutorial

2009-01-19 Thread Sid Ferreira
Is there any tutorial that, for example, teaches how to build a beanEdit or a Grid? -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations

Re: Complex Component Tutorial

2009-01-19 Thread Ulrich Stärk
Sid Ferreira schrieb: Is there any tutorial that, for example, teaches how to build a beanEdit or a Grid? There is the BeanEditForm guide (http://tapestry.apache.org/tapestry5/guide/beaneditform.html) and the official tutorial (http://tapestry.apache.org/tapestry5/tutorial1/) also deals

Re: Complex Component Tutorial

2009-01-19 Thread Sid Ferreira
Didn't checked yet, but, I meant build a beanEdit... I mean, make my own grid... On Mon, Jan 19, 2009 at 7:33 AM, Ulrich Stärk u...@spielviel.de wrote: Sid Ferreira schrieb: Is there any tutorial that, for example, teaches how to build a beanEdit or a Grid? There is the BeanEditForm

Hibernate relations in BeanEditForm

2009-01-19 Thread Ulrich Stärk
Hi All, tapestry-hibernate in combination with the BeanEditForm is great, as it allows for simple CRUD applications to be written in no time. Unfortunately it takes quite some manual work to represent relations like OneToMany, ManyToOne and ManyToMany in your application because Tapestry

[ANN] JumpStart 4.0 released - uses Jetty!

2009-01-19 Thread Geoff Callender
Hi all, JumpStart 4.0 is now available. The big thing about version 4 is that now you develop and test with Jetty! It's fast and you get the full benefit of live class reloading and local debugging, even with EJB3! You can still deploy to JBoss, but we swap in OpenEJB during development

Redirect and Forward

2009-01-19 Thread Sid Ferreira
Im trying to forward or redirect the page programatically, for instance: Opens Start.tml, if the ID is TRUE, it goes to List.tml, else it goes to Login.tml How to redirect? -- Sidney G B Ferreira Desenvolvedor Web - Tibox Innovations

Re: Redirect and Forward

2009-01-19 Thread Ulrich Stärk
Sid Ferreira schrieb: Im trying to forward or redirect the page programatically, for instance: Opens Start.tml, if the ID is TRUE, it goes to List.tml, else it goes to Login.tml How to redirect? http://tapestry.apache.org/tapestry5/guide/pagenav.html Uli

Re: Redirect and Forward

2009-01-19 Thread Thiago HP
On Mon, Jan 19, 2009 at 8:38 AM, Sid Ferreira sid@gmail.com wrote: Im trying to forward or redirect the page programatically, for instance: Opens Start.tml, if the ID is TRUE, it goes to List.tml, else it goes to Login.tml. How to redirect? Put this method in your Start class: Object

Re: [ANN] JumpStart 4.0 released - uses Jetty!

2009-01-19 Thread Peter Stavrinides
Thanks for your hard work Geoff, great news that it now supports Jetty, I noticed that this morning :-) I will use it a lot more now, I tended to avoid Jumpstart because of JBoss. Cheers Peter - Original Message - From: Geoff Callender geoff.callender.jumpst...@gmail.com To: Tapestry

Re: Discard persistent field changes for one strategy only?

2009-01-19 Thread Kristian Marinkovic
hi kalle, i've tried to solve this with another indirection :). i encapsulate all conversation specific data in a ConversationContext object. if i want to invalidate a conversation i just remove this context. i'm going to send you a zip with my experimental project to your gmail address.

Dynamic Assets

2009-01-19 Thread Sid Ferreira
I was reading http://tapestry.apache.org/tapestry5/guide/assets.html(including checking out the AssetFactory docs) but didn't found how to generate a dynamic asset. I need, for instance, that based on my client a different image is loaded, but the name will always be the same. Any tip about how to

Re: Complex Component Tutorial

2009-01-19 Thread Thiago HP
On Mon, Jan 19, 2009 at 7:48 AM, Sid Ferreira sid@gmail.com wrote: Didn't checked yet, but, I meant build a beanEdit... I mean, make my own grid... Step 1: learn how to build simple components. Step 2: if step 1 was not enough to do what you want, read the Grid, BeanEditor, etc sources as a

Re: [T5] improve documentation

2009-01-19 Thread Otho
Jumpstart is great, especially for looking some techniques up and see how certain details are done. But does it really suit as a single Tutorial application where you go from nil to something useable? 2009/1/19 Peter Stavrinides p.stavrini...@albourne.com I think Jumpstart covers a lot of

Re: [T5] improve documentation

2009-01-19 Thread Thiago HP
On Mon, Jan 19, 2009 at 10:51 AM, Otho taa...@googlemail.com wrote: Jumpstart is great, especially for looking some techniques up and see how certain details are done. But does it really suit as a single Tutorial application where you go from nil to something useable? I think both are very

Re: Complex Component Tutorial

2009-01-19 Thread Thiago HP
On Mon, Jan 19, 2009 at 10:56 AM, Sid Ferreira sid@gmail.com wrote: Well, I used them much more as an example... Also, I was looking for more detailed articles. The steps I suggested in my last message to this thread are still valid. Instead of asking for generic things like how to build a

Re: Complex Component Tutorial

2009-01-19 Thread Sid Ferreira
Well, I used them much more as an example... Also, I was looking for more detailed articles. On Mon, Jan 19, 2009 at 10:50 AM, Thiago HP thiag...@gmail.com wrote: On Mon, Jan 19, 2009 at 7:48 AM, Sid Ferreira sid@gmail.com wrote: Didn't checked yet, but, I meant build a beanEdit... I

Is this already possible in Tapestry5?

2009-01-19 Thread Tobias Marx
Hi there! Is it possible to implement the following datamodel in Tapestry5 for dynamic form generation: If so, how can you do this dynamically? Category: The category to group values (e.g. Country, Language) Value: Values...(e.g. USA, Spain, English, Spanish.whatever) FormElement: Input

T5: disabling column sorting programmatically in Grid

2009-01-19 Thread immutability
Hey guys, I have a very specific page where I need to disable/enable sorting for a single-column grid - the grid is under a small form, and based on the form input I need to disable or enable the sorting. So I thought of the standard way of doing this - in the onSuccessFromFormFilter handler I

JavaLobby Web Framework Comparison

2009-01-19 Thread Howard Lewis Ship
JavaLobby is looking to create a comprehensive web framework comparison. http://java.dzone.com/articles/javalobby-web-frameworks-compa I'm hoping one or more people from the Tapestry community can step forward and help out! -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind

T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Chris Lewis
Hi list, I simply want to know how the Select component gets its encoder from the ValueEncoderSource service, when an encoder isn't explicitly provided as a parameter. Thanks! -- http://thegodcode.net - To unsubscribe,

Re: T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Thiago H. de Paula Figueiredo
Em Mon, 19 Jan 2009 13:54:11 -0300, Chris Lewis chris_le...@bellsouth.net escreveu: Hi list, Hi! I simply want to know how the Select component gets its encoder from the ValueEncoderSource service, when an encoder isn't explicitly provided as a parameter. Thanks! Are you using

Re: T5: disabling column sorting programmatically in Grid

2009-01-19 Thread Thiago H. de Paula Figueiredo
Em Mon, 19 Jan 2009 13:33:42 -0300, immutability devli...@bielik.org escreveu: So I thought of the standard way of doing this - in the onSuccessFromFormFilter handler I do the following: As Tapestry uses redirect-after-post by default, it does not renders the page in the same request it

Re: T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Chris Lewis
I am, but that's not my question. My question is how does the select component get a default value encoder when one is not provided as a parameter? The source suggests it comes from the ValueEncoderSource service, to which modules like tapestry-hibernate contribute. But nowhere in the select's

Re: T5: disabling column sorting programmatically in Grid

2009-01-19 Thread immutability
Thiago, thank you for a quick response, I still have a lot to learn! One way to do it is to nameColumn.sortable(false) the the method that returns the BeanModel. I'm confused at this point. I'm currently not returning the BeanModel anywhere. When I was using BeanModel to add custom columns,

Re: T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Ulrich Stärk
IIRC from browsing through the source code this is done automagically by type coercing from your type to String (TypeCoercedValueEncoderFactory or something). The correspondig Encoder is selected by the Select components defaultEncoder() method, when no encoder parameter is provided (see the

Re: T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Chris Lewis
Wow. Is that recent behavior? I've not been aware of the default* method convention before. Interesting indeed. Thanks for that! Ulrich Stärk wrote: IIRC from browsing through the source code this is done automagically by type coercing from your type to String (TypeCoercedValueEncoderFactory

Re: T5: disabling column sorting programmatically in Grid

2009-01-19 Thread Thiago H. de Paula Figueiredo
Em Mon, 19 Jan 2009 14:27:35 -0300, immutability devli...@bielik.org escreveu: Thiago, thank you for a quick response, I still have a lot to learn! You're welcome! We all stilee need a lot to learn . . . One way to do it is to nameColumn.sortable(false) the the method that returns the

Possible to override onActivate from an extended page?

2009-01-19 Thread James Sherwood
Hello, I have a login only application and for the most part you just need to be logged in to use it except for a couple of pages. To enforce this I made a class: Class SecurePage{ Object onActivate(){ If(!visitExists){ Return index.class; }

Re: Possible to override onActivate from an extended page?

2009-01-19 Thread Thiago H. de Paula Figueiredo
Em Mon, 19 Jan 2009 15:02:07 -0300, James Sherwood jsherw...@rgisolutions.com escreveu: My problem: Is there a way to override the onActivate (or a way around it) in the page that extends SecurePage so I could perform additional security checks? Short answer: yes, ordinary inheritence

Wrong visual behaviors using chenillekit window component

2009-01-19 Thread Hugo Palma
I'm getting erratic visual behaviors when using chenillekit window component and i was wondering if anyone else has experienced the same or has any suggestions. I have a form rendered in the window with client validation turned on, and it seems that some elements that are showed by triggering

Re: JavaLobby Web Framework Comparison

2009-01-19 Thread nille hammer
Hi Howard, if none of your co-committers can spare time, I will be happy to jump in for T5. Cheers, nillehammer - original Nachricht Betreff: JavaLobby Web Framework Comparison Gesendet: Mo, 19. Jan 2009 Von: Howard Lewis Shiphls...@gmail.com JavaLobby is looking to create a

Re: Hibernate relations in BeanEditForm

2009-01-19 Thread Kalle Korhonen
This (representing entity relations) is one of the main features of Trails ( http://www.trailsframework.org/); Trails 2 for T5 is currently in development. Kalle On Mon, Jan 19, 2009 at 2:27 AM, Ulrich Stärk u...@spielviel.de wrote: Hi All, tapestry-hibernate in combination with the

RE: Possible to override onActivate from an extended page?

2009-01-19 Thread James Sherwood
Hello, Short answer: It is in a different package(base) so the override won't work for a page class in the pages package(or so says my compiler:). Not so short answer: I really like this thanks! Long answer: Looking into it but what is the advantage over just the more simple 'activate'?

Re: Hibernate relations in BeanEditForm

2009-01-19 Thread Ulrich Stärk
I'd still love to see this feature in the Tapestry core. Cheers, Uli Kalle Korhonen schrieb: This (representing entity relations) is one of the main features of Trails ( http://www.trailsframework.org/); Trails 2 for T5 is currently in development. Kalle On Mon, Jan 19, 2009 at 2:27 AM,

Re: Possible to override onActivate from an extended page?

2009-01-19 Thread Thiago H. de Paula Figueiredo
Em Mon, 19 Jan 2009 15:54:32 -0300, James Sherwood jsherw...@rgisolutions.com escreveu: Hello, Hi! Short answer: It is in a different package(base) so the override won't work for a page class in the pages package(or so says my compiler:). If you declared it package-private (no access

Re: T5: disabling column sorting programmatically in Grid

2009-01-19 Thread immutability
Thanks again, now you got me started (finally)! It really seems to be a better idea to just create the bean model for each request in this case. A note for others who may be trying the code above - don't ever try to call grid.getBeanModel within a getter for the model for the same grid - that

Re: T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Ulrich Stärk
I believe this was added back in 2007... Uli Chris Lewis schrieb: Wow. Is that recent behavior? I've not been aware of the default* method convention before. Interesting indeed. Thanks for that! Ulrich Stärk wrote: IIRC from browsing through the source code this is done automagically by

Re: T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Chris Lewis
I'd be surprised if I've overlooked it that long, but given how much the framework and its docs have evolved, it's certainly possible. Thanks again! Ulrich Stärk wrote: I believe this was added back in 2007... Uli Chris Lewis schrieb: Wow. Is that recent behavior? I've not been aware of the

Re: T5: ValueEncoderSource and Select's default encoder

2009-01-19 Thread Howard Lewis Ship
In Select.java: ValueEncoder defaultEncoder() { return defaultProvider.defaultValueEncoder(value, resources); } In ComponentDefaultProvider.java: /** * Gets or creates a value encoder based on the emtype/em of the named parameter. ValueEncoders are cached * based

Re: T5: SetupRender before parameters binding in 5.1.0.0-SNAPSHOT?

2009-01-19 Thread Howard Lewis Ship
What is the defaultSource parameter for? Are you using prop:defaultSource or inherit:defaultSource? The latter could cause your NPE. On Mon, Jan 19, 2009 at 8:22 AM, Yunhua Sang yunhua.s...@gmail.com wrote: Hi Howard, I am sorry for this late message; source are as below: public class

Re: Hibernate relations in BeanEditForm

2009-01-19 Thread Kevin Monceaux
On Mon, 19 Jan 2009, Ulrich Stärk wrote: I'd still love to see this feature in the Tapestry core. I'll second that motion. I found a post in 2007 suggesting it was on the todo list: On Wed, 21 Nov 2007, Francois Armand wrote: For now, BeanEditor (or BeanEditForm) is not really aware of

Re: Discard persistent field changes for one strategy only?

2009-01-19 Thread Kalle Korhonen
Hey Kristian, thanks a lot for sending your project; it'll be interesting to compare the implementations. Yes, of course there's a million different ways of solving the problem but since the Tapestry architecture and services offer a lot of functionality already for this, I tried to reuse most of

Re: T5: SetupRender before parameters binding in 5.1.0.0-SNAPSHOT?

2009-01-19 Thread Yunhua Sang
Now I explicitly set prop:defaultSource, get same result. The function getDefaultSource() seems never get called. Thanks, Yunhua On Mon, Jan 19, 2009 at 2:45 PM, Howard Lewis Ship hls...@gmail.com wrote: What is the defaultSource parameter for? Are you using prop:defaultSource or

Re: T5: disabling column sorting programmatically in Grid

2009-01-19 Thread Thiago H. de Paula Figueiredo
The code above should be, as found by Immutability: public BeanModel getBeanModel() { BeanModel model = beanModelSource.createDisplayModel(YourClass.class, messages); if (disableSorting) { PropertyModel nameColumn = model.getById(name);

Re: Hibernate relations in BeanEditForm

2009-01-19 Thread Thiago H. de Paula Figueiredo
Em Mon, 19 Jan 2009 16:14:01 -0300, Kevin Monceaux ke...@rawfeddogs.net escreveu: On Wed, 21 Nov 2007, Francois Armand wrote: For now, BeanEditor (or BeanEditForm) is not really aware of collection as a property. I think it's in the todo list (T5 still alpha, etc ;) Tapestry 5.0.18 is not

Re: Hibernate relations in BeanEditForm

2009-01-19 Thread Alejandro Scandroli
I think this would be quite difficult to implement in tapestry-hibernate without parsing hibernate's metadata and storing it in some kind of metadata container, which is what Trails is doing. Alejandro. On Tue, Jan 20, 2009 at 12:33 AM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Em

Extend AppPropertyEditBlocks with cut feature

2009-01-19 Thread nillehammer
Hi List, I am making extensive use of AppPropertyEditBlocks. Now I'd like to extend the way the blocks are rendered. I'd like to provide somehow a maxLenth value. Maxlenth being null the whole output should be displayed. Maxlength being positive the output should be cut to maxLenth. I have

[blog post] T5 - Scala blog : layout and CRUD for the blog

2009-01-19 Thread fan...@gmail.com
I just published a (fairly long) post where I explain how I setted up a layout and basic CRUPD operation for the blog tool project I'm building in T5 / Scala. The post is rather long, but the total amount of code is really short. The good new is all is going really good, and Scala begins to

Re: [blog post] T5 - Scala blog : layout and CRUD for the blog

2009-01-19 Thread Thiago H. de Paula Figueiredo
Em Mon, 19 Jan 2009 19:51:28 -0300, fan...@gmail.com fan...@gmail.com escreveu: I just published a (fairly long) post where I explain how I setted up a layout and basic CRUPD operation for the blog tool project I'm building in T5 / Scala. Nice post. :) I don't really know Scale nor I

Re: Wrong visual behaviors using chenillekit window component

2009-01-19 Thread James Hillyerd
The first thing I would try is setting the z-index for the validation popups: http://www.w3schools.com/Css/pr_pos_z-index.asp -james On Mon, Jan 19, 2009 at 10:16 AM, Hugo Palma hugo.m.pa...@gmail.com wrote: I'm getting erratic visual behaviors when using chenillekit window component and i

t:Select

2009-01-19 Thread luther.baker
I would like to display an html select drop down based on an enum ... works perfectly. Now concerning, the first or *blank*value - I'd like to replace it with some text like ... choose one. So, if using t:Select id=enumValue/, is there a way I can add an option ... and make sure it shows up at

Re: t:Select

2009-01-19 Thread Thiago H. de Paula Figueiredo
Em Mon, 19 Jan 2009 21:23:45 -0300, luther.baker lutherba...@gmail.com escreveu: Now concerning, the first or *blank*value - I'd like to replace it with some text like ... choose one. Try the blankLabel parameter:

Re: [blog post] T5 - Scala blog : layout and CRUD for the blog

2009-01-19 Thread Angelo Chen
Nice post, I was just wondering what's the benefit of using Scala or Groovy in a T5 app, T5 app seems very short in code, typing a little extra does not mean too much to the developers, the only benefit i can see from using Groovy(not so sure about Scala) is we can use closure in the code,

change grid table row background color based on column data

2009-01-19 Thread wesleywj2
hi there, i 've wondered how to change the background color of the tr element based on data? normally we just override the css, but on my case, when my data is populated; one of my column is a fixed string. based on this column value i will have a unique background color for it. so how do it i

Re: t:Select

2009-01-19 Thread Luther Baker
Whoa nice. I missed the blankLabel parameter. Gracias Thiago - thanks for being such an active member here. -Luther On Jan 19, 2009, at 7:41 PM, Thiago H. de Paula Figueiredo wrote: Em Mon, 19 Jan 2009 21:23:45 -0300, luther.baker lutherba...@gmail.com escreveu: Now concerning, the

Re: Discard persistent field changes for one strategy only?

2009-01-19 Thread Ville Virtanen
Hi, It sounds like an addition that would be good to have when implementing non-standard persistence strategies. - Ville Ps. I'm very interested in the results Kalle if you care to share? (Or Kristian for that matter. Would it be possible to add a project to tapestry.formos.com?) Kalle

Re: Discard persistent field changes for one strategy only?

2009-01-19 Thread Kalle Korhonen
On Mon, Jan 19, 2009 at 10:37 PM, Ville Virtanen ville.virta...@cerion.fiwrote: It sounds like an addition that would be good to have when implementing non-standard persistence strategies. Thanks. Haven't heard from Howard but I'll open an issue anyway. I can get this done without this