Page name problem with user/profile

2009-09-25 Thread Gunnar Eketrapp
Hi! T5 refused to render anything for a page named pages/user/Profile.java When renamed to pages/user/Profiles2.java the problem disappeared. It could have been due to the phase of the moon or is there something special with the name "profile" that I should know about? Thanks in advance! Gunnar

is it possilble to construct domain object w/o using default constructor?

2009-09-25 Thread rolfst
Hi s it possilble to construct a domain object w/o using default constructor or using a dto? or using @Inject because I dont have access to the domain object sources. so i cant use @inject and other wise i get an exception about not having an interface for java.lang.String thanks, rolfst -- Vie

RE: Validation on textfields in a grid?

2009-09-25 Thread Newham, Cameron
Using a validator would be ok, but unfortunately that assumes that the component being validated exists in isolation. In my case I only want to do the validation depending on parameters that have been set by other components on the page, viz: public void onValidateForm() {

Re: Website preview - update 3

2009-09-25 Thread P . Stavrinides
Just had a quick glance, but initial comments are as follows: What I like: - The organization of information has improved a lot What could be better: - The menu bar, I feel it really is a regression. Other than the pleasant splash of colour its too klunky, it jumps occasionally which is distract

Re: [Tapestry Central] Devoxx 2009: Tapestry and Clojure

2009-09-25 Thread Oliver Geisser
Hi all, maybe we can arrange an informal "Tapestry Meet & Greet", e.g. taking a beer or dinner together with other Tapestry developers? Last year at Devoxx it was a little bit problematic to find other Tapestry developers ... :-( Olli 2009/9/24 Howard > Coming up in November ... I'll be at th

Re: T5.1 How to support non English characters in url

2009-09-25 Thread Ritesh_121
Hello Thiago, Thanks for reply. :-) > You'll need to override the URLEncoder service with one of your own. Ok, so I will need to override the URLEncoder service with my own. By looking at the Tapestry source of existing URLEncoderImpl I found that only English alphabets (small and capital ca

Re: Thoughts on an equivalent of "prototype" beans in Tapestry IOC

2009-09-25 Thread Paul Field
Howard Lewis Ship wrote on 24/09/2009 21:34:06: > What about nestable manual scopes? I was thinking of not allowing them because I wanted to give errors if you got the open()/close() mismatched. But actually, now I think about it, the manual scope is nested in a perthread scope, so I could warn

Re: zone append or add new content

2009-09-25 Thread Lionell_Hutz
I modified the Tapestry.ZoneManager.show - function and changed "update" to "insert". Thats all. -- View this message in context: http://www.nabble.com/zone-append-or-add-new-content-tp25185239p25610807.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: is it possilble to construct domain object w/o using default constructor?

2009-09-25 Thread Thiago H. de Paula Figueiredo
Em Fri, 25 Sep 2009 05:22:42 -0300, rolfst escreveu: Hi s it possilble to construct a domain object w/o using default constructor or using a dto? Do you mean to use it as a Tapestry-IoC service? Or using it in a BeanEditor or BeanEditForm? or using @Inject because I dont have access to t

Re: is it possilble to construct domain object w/o using default constructor?

2009-09-25 Thread rolfst
Hi I am trying to use my domain model objects in a beaneditor. the backend is constructed and serviced by spring. Thiago H. de Paula Figueiredo wrote: > > Em Fri, 25 Sep 2009 05:22:42 -0300, rolfst escreveu: > >> Hi s it possilble to construct a domain object w/o using default >> constructo

Re: How coooooooooool is this !!!

2009-09-25 Thread Andy Pahne
I felt that it should be hard to develop/support the site without upgrading the technology so I decided to give T5 a shot. In the same time I upgraded MySql, Hibernate, Spring, Debian. CVS to SVN. Ant to Mvn. And so on ... Of course I have undertaken a much too big job and the risk is huge! But

Re: form that create an object

2009-09-25 Thread limonn
Ok I m not editing so no need to use value, however it looks like there is no way in tapestry to receive an object as described above ( straight from a form as BeanEditForm, that I can't use because I need many submit buttons) m I correct ? Thiago H. de Paula Figueiredo wrote: > > Em Thu, 24

Re: is it possilble to construct domain object w/o using default constructor?

2009-09-25 Thread Thiago H. de Paula Figueiredo
Em Fri, 25 Sep 2009 09:35:31 -0300, rolfst escreveu: Hi I am trying to use my domain model objects in a beaneditor. the backend is constructed and serviced by spring. Just use the Form and BeanEditForm prepare event to instantiate the object yourself: @OnEvent(EventConstants.PREPARE) publ

Re: form that create an object

2009-09-25 Thread Thiago H. de Paula Figueiredo
Em Fri, 25 Sep 2009 10:24:56 -0300, limonn escreveu: Ok I m not editing so no need to use value, however it looks like there is no way in tapestry to receive an object as described above ( straight from a form as BeanEditForm, that I can't use because I need many submit buttons) m I correc

Re: Page name problem with user/profile

2009-09-25 Thread Thiago H. de Paula Figueiredo
Em Fri, 25 Sep 2009 04:17:29 -0300, Gunnar Eketrapp escreveu: Hi! Hi! T5 refused to render anything for a page named pages/user/Profile.java When renamed to pages/user/Profiles2.java the problem disappeared. It could have been due to the phase of the moon or is there something special wit

Re: form that create an object

2009-09-25 Thread limonn
I understand that but my problem it is only to create an object, I dont know how to code a form with the object properties and many buttons and receive them in java the whole as an object. Thiago H. de Paula Figueiredo wrote: > > Em Fri, 25 Sep 2009 10:24:56 -0300, limonn > escreveu: > >> O

Re: Page name problem with user/profile

2009-09-25 Thread Gunnar Eketrapp
Sorry and thanks for doing the test! It was my fault. I hade by mistake also a class called UserProfile.java which was empty. T5 tok that one instead of my Profile.java Gunnar Eketrapp Cold North 2009/9/25 Thiago H. de Paula Figueiredo > Em Fri, 25 Sep 2009 04:17:29 -0300, Gunnar Eketrapp < >

Re: form that create an object

2009-09-25 Thread Thiago H. de Paula Figueiredo
Em Fri, 25 Sep 2009 10:50:59 -0300, limonn escreveu: I understand that but my problem it is only to create an object, I dont know how to code a form with the object properties and many buttons and receive them in java the whole as an object. Take a look at the tutorial: http://tapestry.a

Re: multiple onActivate methods in page handler

2009-09-25 Thread P . Stavrinides
> I don't think the EventContext method is in the spirit of quick and easy > programming Only because this feature is missing documentation, which is unfortunate. > the onActivate doesn't seem very robust Tapestry is doing a lot of the work for you (serialization / deserialization & coercion of

AJAX form request is empty

2009-09-25 Thread m!ga
I have form component which in brief looks like this: This form previously was without zones

MessagesSource and Bundle hierarchy

2009-09-25 Thread ccordenier
Hi All, I have one question about MessagesSource.getMessages(...) method. Actually, this method uses the bundle id to cache previously build catalog map messages. The bundle id is equal to the component class name. This means if one component is used in one page, and this page is accessed first

T5:how to do initialization work when custom component was called?

2009-09-25 Thread cleverpig
hi,friends! i got a trouble thing:how to do initialization work when custom component was called? i mean when i made a custom component which need some parameters,and these parameters will be inject in the page that the custom component hold on. such as: the custom component class: public class D

Re: Zone update

2009-09-25 Thread Geoff Callender
In the meantime, ZoneUpdater can help: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/javascript/ajaxselect1 Cheers, Geoff On 07/10/2008, at 9:00 PM, Ulrich Stärk wrote: That doesn't work at the moment, an issue has already been opened: https://issues.apache.org/jira

Re: T5:how to do initialization work when custom component was called?

2009-09-25 Thread Juan E. Maya
Hi cleverpig, You can use @SetupRender or onActivation methods to setup ur page. There was a long discussion in the mail list about when to use what. Using the @setuprender on ur page would be as simple as: @SetupRender private void loadData() { this.data=serv.list();

Re: T5:how to do initialization work when custom component was called?

2009-09-25 Thread cleverpig
ok! thanks! it's working! by the way:what's the page or component's render order? @SetupRender/beginRender/endRender/@BeforeRenderTemplate/@AfterRenderTemplate what's the order? 2009/9/26 Juan E. Maya : > Hi cleverpig, > > You can use @SetupRender or onActivation methods to setup ur page. > There

Re: T5:how to do initialization work when custom component was called?

2009-09-25 Thread Thiago H. de Paula Figueiredo
Em Fri, 25 Sep 2009 13:39:42 -0300, cleverpig escreveu: ok! thanks! it's working! by the way:what's the page or component's render order? @SetupRender/beginRender/endRender/@BeforeRenderTemplate/@AfterRenderTemplate what's the order? Please read the documentation: http://tapestry.apache.o

Re: T5:how to do initialization work when custom component was called?

2009-09-25 Thread Andreas Andreou
There's a nice diagram at http://tapestry.apache.org/tapestry5/guide/rendering.html And there's another great diagram (but this time for the whole request) at the nightly docs: http://tapestry.formos.com/nightly/tapestry5/guide/request.html On Fri, Sep 25, 2009 at 7:39 PM, cleverpig wrote: > ok!

Re: T5:how to do initialization work when custom component was called?

2009-09-25 Thread Julian Wood
I also find this JumpStart page invaluable: http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/whatiscalledandwhen J On Fri, Sep 25, 2009 at 10:58 AM, Andreas Andreou wrote: > There's a nice diagram at > http://tapestry.apache.org/tapestry5/guide/rendering.html > > And th

[Tapestry Central] Joys of cross-browser development

2009-09-25 Thread Howard
I'm working on a dependent drop-down list inside my Tapestry application (one I'm building for a client). Guess what? They fire the critical "change" even completely differently. In FF, change is fired when: - You hit enter after tabbing into the select and changing its value - You tab out of the f

Re: like component

2009-09-25 Thread Howard Lewis Ship
Please take this to the user mailing list. is not a component in T5, it is a special directive. However, a component has access to its own body, which is (effectively) a block. You can inject CoponentResources and invoke getBody() to get a Block that can be used to render the body of the compon

Re: Iframe javascript problem

2009-09-25 Thread Howard Lewis Ship
Please discuss on the Tapestry user mailing list ... and read the Tapestry JavaScript documentation on the web site. On Mon, Sep 14, 2009 at 10:49 AM, blueboy6 wrote: > > Hi I have a lil bit problem with iFrame > > I need to get it by getElementById > > and to do some basic functions from its con

Re: New Tapestry Website - Final review

2009-09-25 Thread Vangel V. Ajanovski
On 23.09.2009 10:10, Sebastian Hennebrueder wrote: The idea is nice but I think technically it is not possible. If you click to any page from the sitemap the menu would appear again. But your proposal points me to another idea. I think that a new user would benefit from the sliding menu as it is

Re[2]: question

2009-09-25 Thread Sergey Kashin
Stop on ognl, prop is not powerful. Creating java method public boolean isSufficientPlayers() { return playersOnline > 100; } instead ognl:playersOnline > 100 is not good idea 1. You move presentation in to java code 2. You lost control on viewable presentation code, 100 or 50 or 1000 palyersOnli

Re: Re[2]: question

2009-09-25 Thread Josh Canfield
> Stop on ognl, prop is not powerful. > > Creating java method > public boolean isSufficientPlayers() { return playersOnline > 100; } > instead > ognl:playersOnline > 100 > is not good idea > > 1. You move presentation in to java code > 2. You lost control on viewable presentation code, 100 or 50 o