t5: generating an external link

2009-09-16 Thread Angelo Chen
Hi, this question sounds stupid:) but suddenly my mind is blank, anybody give me a hint? Thanks. Angelo -- View this message in context: http://www.nabble.com/t5%3A-generating-an-external-link-tp25467984p25467984.html Sent from the Tapestry - User mailing list archive at Nabble.com.

RE: t5: generating an external link

2009-09-16 Thread Komiwes Robin
Just send an URL: http://tapestry.apache.org/tapestry5.1/guide/pagenav.html -Message d'origine- De : Angelo Chen [mailto:angelochen...@yahoo.com.hk] Envoyé : mercredi 16 septembre 2009 10:24 À : users@tapestry.apache.org Objet : t5: generating an external link Hi, this question sounds

T5:hibernate @Length validator doesn't work

2009-09-16 Thread cleverpig
hi,all! i got a trouble in hibernate @Length validator with Tapestry 5.1. i think it's a easy-meet problem for newbie(it's me). @Entity @Table(name="hello") public class Hello implements Serializable{ ... @NotNull(message="{hello.message.notnull}") @Length(min=10,max=20) @

Re: T5:hibernate @Length validator doesn't work

2009-09-16 Thread Kristian Marinkovic
hi, the beandeditor cannot handle Hibernate annotations. you have to use the tapestry specific validators. g, kris cleverpig 16.09.2009 11:28 Bitte antworten an "Tapestry users" An users@tapestry.apache.org Kopie Thema T5:hibernate @Length validator doesn't work hi,all! i got

Re: Wrong context for submit button in loop

2009-09-16 Thread Stephan Windmüller
Thiago H. de Paula Figueiredo schrieb: >> What I need is a button which does some change to an object. I do not >> want the user to lose data he entered for other objects, so I decided to >> use a form submit. > If you don't need to submit a form, just to fire an event in the server, > an EventL

Re: Wrong context for submit button in loop

2009-09-16 Thread Felix Gonschorek
Same problem here: I have a delete button which removes an object from a list. Changes to other fields in the form get currently lost, as i have to use a event link. Using a submit button inside the loop with custom context and event would be great - but it does not work as always the last item

Re: How to create analog of Spring FactoryBean?

2009-09-16 Thread Kristian Marinkovic
hi peter, it is doable create a - let's say - a factory service with a Bean getBean() method. then create a service for the Bean interface by using the PropertyShadowBuilder service. then you'll be able to inject the Bean whereever you need it. when you access the bean, the factory.getBea

Re: T5:hibernate @Length validator doesn't work

2009-09-16 Thread Juan E. Maya
Thiago has a project in Ars Machina that allows to use the hibernate validators with Tapestry. U may find it useful http://www.arsmachina.com.br/project/tapestrycrudhibernatevalidator 2009/9/16 Kristian Marinkovic : > hi, > > the beandeditor cannot handle Hibernate annotations. > you have to use

Re: T5:hibernate @Length validator doesn't work

2009-09-16 Thread cleverpig
thanks you all! i found @NotNull annotation always work on tapestry! but @Length...so how to backend data validator in tapestry? will make a custom function on serverside's event handler? On Wed, Sep 16, 2009 at 7:44 PM, Juan E. Maya wrote: > Thiago has a project in Ars Machina that allows to us

T5:how to use rowIndex in Grid component?

2009-09-16 Thread cleverpig
I got this define from tapestry5's guide document: http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html rowIndex:Optional output parameter (only set during rendering) that identifies the current row index. This is the index on the page (i.e., a

Re: Wrong context for submit button in loop

2009-09-16 Thread Norman Franke
WHat I do is to have the button call a JavaScript function that stores the context/value in a hidden field (a normal TextField with display: none, since Tapestry's hidden field type is broken. Then call form.submit(). That works well. Norman Franke Answering Service for Directors, Inc. www.

Re: [T5.1] PageDocumentGenerator Broken?

2009-09-16 Thread xfile80303
Hi Thiago, Yes, I'm sorry, you are correct. In my attempt to get a small "working" example, I stripped out the head tag. Here's my corrected template: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> My Page

Add a column to beaneditform question

2009-09-16 Thread neo anderson
I have an user object which contains several properties, including account, name, gender and password. However, due to the object only provide getAccount() method. So when displaying using beaneditform, the web page does not show the Account column. Then I search the forum http://www.nabble.com

[ANNOUNCEMENT] New Tapestry 5 book

2009-09-16 Thread Igor Drobiazko
Hello folks, I am pleased to announce a new Tapestry 5 book. The book is written in German and is available as eBook on publisher's website: http://www.addison-wesley.de/main/main.asp?page=home/bookdetails&ProductID=174975 The hardcover version of the book will be available starting from Sep 28

Re: Add a column to beaneditform question

2009-09-16 Thread Thiago H. de Paula Figueiredo
Please post your template. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor Consultor, desenvolvedor e instrutor em Java Coordenador e professor da Especialização em Engenharia de Software com Ênfase em Java da Faculdade Pitágoras http://www.arsmachina.co

Re: Website preview - update 3

2009-09-16 Thread Sebastian Hennebrueder
Hello, I finished a number of issues for the new website and staged it to http://tapestry.laliluna.de/ The website update is close to come to an end. I would be fantastic if some people could test the page and give a feedback on this. Home page is reorganized and has two additional sections.

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-16 Thread Dave Greggory
Instead of using BeanBlockSource (as used by PropertyEditor), would I be able to use ComponentSource instead (passing in complete id to it)? I need the actual Component instead of the Block containing it. Since ComponentSource uses the RequestPageCache, I assume I will not end up creating a larg

Re: [T5.1] PageDocumentGenerator Broken?

2009-09-16 Thread Josh Canfield
I went down a similar path on thedailytube.com for sending email forwards. The challenge you are seeing here is with the Environment. The form is checking in setupRender for an existing FormSupport object and complaining because it already exists. The environment that you are trying to render with

[Tapestry Central] Tapestry Performance Benchmark (vs. Wicket, JSF, etc.)

2009-09-16 Thread Howard
Peter Thomas has created a detailed performance analysis of Wicket, Tapestry, Grails and Seam. It's an interesting read from non-Tapestry user's perspective, and complements Ben Gidley's findings. He's measuring raw performance and Wicket narrowly bests Tapestry in most categories, with Seam pretty

switch between tml and component

2009-09-16 Thread Alfonso Quiroga
I wish to know if someone did a small plugin for eclipse, so I can switch between component's TML and component's java file, thanks! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail:

Re: switch between tml and component

2009-09-16 Thread Thiago H. de Paula Figueiredo
Em Wed, 16 Sep 2009 18:37:28 -0300, Alfonso Quiroga escreveu: I wish to know if someone did a small plugin for eclipse, so I can switch between component's TML and component's java file, thanks! Take a look at http://code.google.com/p/loom-t5/. -- Thiago H. de Paula Figueiredo Independent

Re: [ANNOUNCEMENT] New Tapestry 5 book

2009-09-16 Thread Howard Lewis Ship
Looks like eager Tapestry fans have crashed the Addison Wesley web site :-) On Wed, Sep 16, 2009 at 11:28 AM, Igor Drobiazko wrote: > Hello folks, > > I am pleased to announce a new Tapestry 5 book. The book is written in > German and is available as eBook on publisher's website: > > > http://www

Re: [T5.1] PageDocumentGenerator Broken?

2009-09-16 Thread xfile80303
Thanks Josh. Unfortunately I can't do that since there is session state involved in the rendering. I've tried a slightly different approach (abandoning PageDocumentGenerator as broken) thinking perhaps since this works for AJAX requests maybe I could render a block in this way, and I've met with

Re: [ANN] JumpStart 4.4 released

2009-09-16 Thread Kalle Korhonen
I'll still come back to this thread. I have to agree with Peter below - while setupRender() and/or using multiple event handlers would technically produce cleaner code, it's proven out to be a more safe way for me to use single onActivate() with multiple if (property == null) {...} blocks. The code

Re: [ANNOUNCEMENT] New Tapestry 5 book

2009-09-16 Thread cleverpig
seem like On Thu, Sep 17, 2009 at 7:06 AM, Howard Lewis Ship wrote: > Looks like eager Tapestry fans have crashed the Addison Wesley web site :-) > > On Wed, Sep 16, 2009 at 11:28 AM, Igor Drobiazko > wrote: > >> Hello folks, >> >> I am pleased to announce a new Tapestry 5 book. The book is writt

Re: switch between tml and component

2009-09-16 Thread cleverpig
you can use eclipse wtp to edit tml files,just config association for it. On Thu, Sep 17, 2009 at 5:39 AM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 16 Sep 2009 18:37:28 -0300, Alfonso Quiroga > escreveu: > >> I wish to know if someone did a small plugin for eclipse, so I can >> switch betw

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread cleverpig
anyone have idea on this? On Wed, Sep 16, 2009 at 8:06 PM, cleverpig wrote: > I got this define from tapestry5's guide document: > http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/Grid.html > > rowIndex:Optional output parameter (only set during ren

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread DH
If you want to show the row num in front of each row, take an user (with bean property lastname and firstname) list for example, I assume your data source 'userSource' is prepared. ${var:rowIndex} Note: It begins from 0. And I haven't test it at all but should almost work.

Re: [ANNOUNCEMENT] New Tapestry 5 book

2009-09-16 Thread Alex Kotchnev
I hate to belabor one obvious question but here I go : are there any plans/hopes for an English translation ? Cheers, Alex K On Wed, Sep 16, 2009 at 2:28 PM, Igor Drobiazko wrote: > Hello folks, > > I am pleased to announce a new Tapestry 5 book. The book is written in > German and is available

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread cleverpig
oh,thank DH! but there is a wrong:Undeclared namespace prefix "p"..your example code would be mistake..:( On Thu, Sep 17, 2009 at 9:50 AM, DH wrote: > If you want to show the row num in front of each row, take an user (with bean > property lastname and firstname) list for example, I assume your

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread DH
Hey, do it yourself^_^ It was introduced in T5.1. http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> DH http://www.gaonline.com.cn - Original Message - From: "cleverpig" To: "Tapestry users" Sent: Thursday, September 17, 2009 11:08 AM Subject: Re: T

Session State Object Creating Itself

2009-09-16 Thread Mark W. Shead
I have an abstract class that is extended by pages that require a login. This seems to work except for on the page where I actually manage the users. It appears that the session state object is creating itself. There is a user session state object. If someone tries to go to an authentic

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread cleverpig
oh,i'd added this description. namespace p works now! so i ran app,found this rowNumber Column was empty...it didn't display the value:${var:rowIndex}... :( 2009/9/17 DH : > Hey, do it yourself^_^ It was introduced in T5.1. > > http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; >  xmlns:p="tap

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread cleverpig
To HD: namespace p is only the "t:parameter" 's shortcut? so i can use "t:parameter" to replace "p:".. On Thu, Sep 17, 2009 at 11:26 AM, cleverpig wrote: > oh,i'd added this description. namespace p works now! > so i ran app,found this rowNumber Column was empty...it didn't display > the value:$

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread DH
yes. I am sorry that I gave the wrong example. should be . Append the 'Cell' and will work. DH http://www.gaonline.com.cn - Original Message - From: "cleverpig" To: "Tapestry users" Sent: Thursday, September 17, 2009 11:38 AM Subject: Re: T5:how to use rowIndex in Grid component?

Re: Session State Object Creating Itself

2009-09-16 Thread Mark W. Shead
Never mind. One onActivate was canceling out the other. I should probably stop coding and go to bed. :) Mark On Sep 16, 2009, at 10:25 PM, Mark W. Shead wrote: I have an abstract class that is extended by pages that require a login. This seems to work except for on the page where I actu

Re: T5:how to use rowIndex in Grid component?

2009-09-16 Thread cleverpig
thanks!!! I got! but when you turn to another page,the rowindex will be calculate from zero.. there is good way from lombok project:http://lombok.demon.co.uk/tapestry5Demo/test/accessgrid 2009/9/17 DH : > yes. > > I am sorry that I gave the wrong example. > > should be . > > Append the 'Cell' and

Re: [ANNOUNCEMENT] New Tapestry 5 book

2009-09-16 Thread Igor Drobiazko
Hi Alex, I can't promise anything but I'll try to make it possible. Some time ago I discussed the translation of the book with the publisher. They said it is possible but to early to make some promises. So I'll ask them again and report the result. On Thu, Sep 17, 2009 at 4:11 AM, Alex Kotchnev

Re: [T5.0.18] Out of Memory Error / Potential Leak (doesn't reduce after forced GC)

2009-09-16 Thread Stefan
I've tried it with a ComponentWrapper (or loader) too, but don't got it to work this way. Now i use a simple BeanEditForm with an own simple BeanModel. I pass a property with my custom datatype into the beanmodel and it does the rest. Define and register your custom components with their cor