Re: T5.0.6 - GirdModelProvider for GridRows - example?

2007-11-14 Thread CarstenM
Hi, the line model.add(action, null ); caused the NullPointer. I am not sure if your suggestion is what I ma looking for. I am looking for a grid inside a form. A grid row (GridRow component?) should contain a textfield and a checkbox for example. Cheers. Vashon-Ez wrote: Maybe you could

[ANN] Tapestry 5 book is available for pre-order

2007-11-14 Thread Kolesnikov, Alexander GNI
It can be pre-ordered from the publisher's website: http://www.packtpub.com/tapestry5/book Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by

RE: T5: onchange event from a select

2007-11-14 Thread martin boulanger
Hello, this solution will submit the form, but 'onchange', I need to modify the value of the other select instead of submitting the form Martin CarstenM wrote: Hello, well, I dont know if its a nice solution but I realized it with several forms. Then you can handle the form event and

Re: T4: Putting Tapestry files inside another folder

2007-11-14 Thread Joshua Jackson
Hi Jim, Thanks for replying. But isn't it possible to configure this just using hivemodule.xml without having to create the classes you've mentioned? Since I'm still new to this and do not have any idea how would the class look like. Thanks On 11/13/07, Jim [EMAIL PROTECTED] wrote: Tapestry's

RE: T5: onchange event from a select

2007-11-14 Thread CarstenM
Hi, well, of course this will submit the form (lets say form A) but if your first select (select A) is the only component inside form A you can handle it as needed in your page class like onSubmitFromFormA(){ setValueToSelectB(); } In my case I have a .tml file with

T5 : Event system

2007-11-14 Thread Stephane Decleire
I've tried without success to add an onchange event on a select box without firing the submit of the form. @OnEvent(value=onChange, component=mySelect) private String select() { log.info(new item selected); return null; } Did i miss something or is the only way to get an event on a

Re: T5 : Event system

2007-11-14 Thread Steph
Stephane Decleire a écrit : I've tried without success to add an onchange event on a select box without firing the submit of the form. @OnEvent(value=onChange, component=mySelect) private String select() { log.info(new item selected); return null; } Did i miss something or is the only

Re: T5.06 Project tree

2007-11-14 Thread Joachim Van der Auwera
Have you started using the project archetype? This is the easiest way to have a correct directory srtucture. Anyway, I think the paths should be MyProject/src/papo/pages/ MyProject/src/papo/services/ Kind regards, Joachim Michael Bernagou wrote: I have something strange and it made me

Re: [ANN] Tapestry 5 book is available for pre-order

2007-11-14 Thread Francois Armand
Kolesnikov, Alexander GNI wrote: It can be pre-ordered from the publisher's website: http://www.packtpub.com/tapestry5/book That's _really_a good new, congratulations ! So bad that there is no PDF version :/ -- Francois Armand Etudes Développements J2EE Groupe Linagora -

Re: T5.06 Project tree

2007-11-14 Thread Michael Bernagou
No I didn't because I don't understand why the webroot should be in the src directory. About that : MyProject/src/papo/pages/ MyProject/src/papo/services/ It is what I have but I wrote in my message MyProject/src/papo.pages/ MyProject/src/papo.services/ instead, just to show it is packages in

ExtJs and Tapestry

2007-11-14 Thread superoverdrive
Are there an ExtJS components for Tapestry yet? http://extjs.com/what-ext-javascript-library-all-about - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5 : Event system

2007-11-14 Thread Thiago H de Paula Figueiredo
On Wed, 14 Nov 2007 08:13:53 -0200, Stephane Decleire [EMAIL PROTECTED] wrote: I've tried without success to add an onchange event on a select box without firing the submit of the form. @OnEvent(value=onChange, component=mySelect) private String select() { log.info(new item selected);

Re: [T5] Default order by for Grid

2007-11-14 Thread Marcelo Lotif
The grid component have a method called setSortColumnId(), but for use it, you got to have a reference to the component in your page's class 2007/11/13, Christoph Jaeger [EMAIL PROTECTED]: Hi, is there an easy way of setting the default order by column for the Grid component? Christoph

Re: T5 Previewable pages

2007-11-14 Thread Geoff Callender
Nice one - Remove works like a charm. On 13/11/2007, at 6:19 AM, Shing Hing Man wrote: The following is my implementation of a remove component. Put the following in the component directory: public class Remove { protected boolean beginRender(){ return

Re: TextStreamResponse and XML and UTF-8

2007-11-14 Thread thanos
Yes, forcing the encoding to UTF-8 inside a ByteArrayInputStream did the trick. It works now! I will soon make some tests to compare the two approaches (Template based XML vs StreamResponse), since perfomance was the main reason I switched to Tapestry. Will keep you posted. Many thanks to all

Tapestry 5: running tutoriel

2007-11-14 Thread GUERARD Elisabeth
Dear all, I try to run the tutoriel for Tapestry 5 at the following address: http://tapestry.apache.org/tapestry5/tutorial1/first.html I have problem with the first step: create an empty application by using feature of Maven, archetype. It 's the first time, i use Maven, I install it

Re: T5.06 Project tree

2007-11-14 Thread Michael Courcy
Well it's a matter of convention When maven build the project, things are in the place they have to be. Michael Bernagou a écrit : No I didn't because I don't understand why the webroot should be in the src directory. About that : MyProject/src/papo/pages/ MyProject/src/papo/services/ It is

Re: T5: entities in literal:

2007-11-14 Thread Chris Lewis
I understand, and I don't particularly want to get into a discussion about pros/cons of that, but at the moment that may leave me stranded. The correct way to handle this would be to declare the script block as CDATA instead of PCDATA (I'm not sure why its not this way by default), and so I

T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread Michael Courcy
Hi In my Page I have a property User, and I want to directly populate the value of the form to the bean User User.java class User{ private String name; private String surName; getters ans setters . } Start.java class Start{ private User user; getters and setters }

Re: T5.06 Project tree

2007-11-14 Thread Michael Bernagou
So is it why my start.tml is not found?? If yes (I'm really not sure), I'm very surprised about the miss of flexibility T5 have... For an existing project build in the usual way (Project/src, Project/webroot), having to change this just for T5 is veru bad... 2007/11/14, Michael Courcy [EMAIL

RE: Tapestry 5: running tutoriel

2007-11-14 Thread Kristian Marinkovic
hi eli, maven will download any maven plugin that was not already downloaded from the public repositories. if you run maven with the option -e at the end it will display a more complete error message. if you are behind a proxy ensure you have it set in your settings.xml (please refer to the

Re: T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread Thiago H de Paula Figueiredo
On Wed, 14 Nov 2007 11:24:03 -0200, Michael Courcy [EMAIL PROTECTED] wrote: input t:type=TextField t:id=user.name t:value=user.name/ Try t:id=name instead of t:id=user.name. ;) The t:id attribute is not meant as a way to tell Tapestry what are you editing: it's just an id that you can use

Re: T5: entities in literal:

2007-11-14 Thread Chris Lewis
I just found this JIRA and added my vote: https://issues.apache.org/jira/browse/TAPESTRY-1818 No one is assigned to it and it doesn't have a 'Fix Version', so let this follow-up illustrate the importance of the issue to me :). chris Chris Lewis wrote: I understand, and I don't particularly

Re: T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread CarstenM
Hi, have you tried it with @ApplicationState private User user; in your page class ? Michael Courcy wrote: Hi In my Page I have a property User, and I want to directly populate the value of the form to the bean User User.java class User{ private String name; private String

Re: T4: Putting Tapestry files inside another folder

2007-11-14 Thread Jim
Hi Joshua, If you look through the configuration guide: http://tapestry.apache.org/tapestry4/UsersGuide/configuration.html, under Application extensions, you'll find the following two entries in the table: org.apache.tapestry.specification-resolver-delegate ISpecificationResolverDelegate An

Re: T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread Michael Courcy
The t:id attribute is not meant as a way to tell Tapestry what are you editing: it's just an id that you can use to refer to it in another component (Label, for example) or in your page class. Ok you're right but if I try this input t:type=TextField t:value=user.name/ I get a failure

Re: T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread Thiago H de Paula Figueiredo
On Wed, 14 Nov 2007 12:47:06 -0200, Michael Courcy [EMAIL PROTECTED] wrote: input t:type=TextField t:id=name t:value=user.name/ I have to provide the setter and the getter for name and I still get an error when I submit. What error? Make sure your user field is not null when the form is

Re: T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread Michael Courcy
I'm 100% sure, user is not null I have a getter and a setter for both : name and user Thanks Thiago H de Paula Figueiredo a écrit : On Wed, 14 Nov 2007 12:47:06 -0200, Michael Courcy [EMAIL PROTECTED] wrote: input t:type=TextField t:id=name t:value=user.name/ I have to provide the setter

[T5] Tapestry-IOC Features and Readiness

2007-11-14 Thread richard.hensley
I'm a long time hivemind user. I'm looking to get rid of XML configuration, so I'm considering transitioning to tapestry-ioc. I have a few questions. 1. Is it ready for production use? I've found the following features missing. - Pooled service model - Explicit primitive, however I think

T5: referencing embedded Component is null in onActivate(). What am I missing?

2007-11-14 Thread Britske
I've got a embedded component (a searchform) on a page. On page.onActivate() I need to reference this embedded component (to set a couple of its input-fields based on the url of the page). However, although the embedded component is correctly set-up in the page I get a nullPointerException when

Re: T4: Putting Tapestry files inside another folder

2007-11-14 Thread Andreas Andreou
Also, http://wiki.apache.org/tapestry/PagesAndComponentsInWEB-INF http://wiki.apache.org/tapestry/SpeclessPagesInWEB-INF On Nov 14, 2007 4:09 PM, Jim [EMAIL PROTECTED] wrote: Hi Joshua, If you look through the configuration guide:

Re: T5: referencing embedded Component is null in onActivate(). What am I missing?

2007-11-14 Thread Howard Lewis Ship
Show us the code! Also, check your console for warnings. On Nov 14, 2007 7:31 AM, Britske [EMAIL PROTECTED] wrote: I've got a embedded component (a searchform) on a page. On page.onActivate() I need to reference this embedded component (to set a couple of its input-fields based on the url of

RE: [ANN] Tapestry 5 book is available for pre-order

2007-11-14 Thread Kolesnikov, Alexander GNI
Yeah, I know... I thought they will have PDF version too. -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: 14 November 2007 16:00 To: Tapestry users Subject: Re: [ANN] Tapestry 5 book is available for pre-order This is good news!! I don't mind buying the hard

Re: [ANN] Tapestry 5 book is available for pre-order

2007-11-14 Thread Peter Stavrinides
This is good news!! I don't mind buying the hard copy, but would really have prefered a PDF, its easier to work with and searchable. Peter Kolesnikov, Alexander GNI wrote: It can be pre-ordered from the publisher's website: http://www.packtpub.com/tapestry5/book Cheers, Alexander

Re: Problems Deploying Tapestry 5.0.6 to JBOSS Web

2007-11-14 Thread Charles Mason
On 06/11/2007, Howard Lewis Ship [EMAIL PROTECTED] wrote: At one point I really thought about naming the packages org.apache.tapestry5 (not org.apache.tapestry). Well the T5 jars are so different from the T4 ones it sort of makes sense to do that. Of course the problem is if T6 is based off

Re: T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread Ezra Epstein
I always pause when hearing 100% sure. An easy check/test is to remove the offending input and stick in a simple ${user} and see if indeed you get the toString() value for your user object. Michael Courcy [EMAIL PROTECTED] wrote: I'm 100% sure, user is not null I have a getter and a setter

Re: T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread Michael Courcy
You're right here it is, I remove the offending input and use this instead ${user}-- ${user.name} And I get [EMAIL PROTECTED] -- A name Obviously user is not null. I think the problem does not come from tapestry but from me. I want to populate from the form directly to the bean. But this

Re: T5.06 Project tree

2007-11-14 Thread Ezra Epstein
The main requirement for folder structure is based on on Tapestry but on the servlet specification. Web accessible files in a .war cannot but in the WEB-INF folder. Tapestry lets you put .tml files either in the the regular place for web accessible files or in the WEB-INF at the same location

Re: T5.0.6 - GirdModelProvider for GridRows - example?

2007-11-14 Thread Ezra Epstein
Maybe you've got a different Model class. The add() method with a null conduit works fine. That said, I didn't realize you were inside a form. Howard as mentioned that this is an area that needs work. CarstenM [EMAIL PROTECTED] wrote: Hi, the line model.add(action, null ); caused the

Re: Tapestry 5: running tutoriel

2007-11-14 Thread Jeffrey ai
Eli, Your mvn command should run without any manual download or settings. I have seen the similar error message before. My problem is caused by a broken maven plugin in my local repository, which is gotten from our incorrectly-configured repository server. I would suggest you to try the

T5: Custom 404 Page

2007-11-14 Thread Michael Gottschalk
Hi, we have the following problem with our tapestry5 application: We already have a custom ExceptionReport page which is displayed when an exception is thrown in the application. However, when the user enters a non-existing page name, the exception page is not shown, but the standard tomcat

Re: [T5] Tapestry-IOC Features and Readiness

2007-11-14 Thread Howard Lewis Ship
On Nov 14, 2007 7:23 AM, richard.hensley [EMAIL PROTECTED] wrote: I'm a long time hivemind user. I'm looking to get rid of XML configuration, so I'm considering transitioning to tapestry-ioc. I have a few questions. 1. Is it ready for production use? I've found the following features

Re: [T5] Tapestry-IOC Features and Readiness

2007-11-14 Thread Thiago H de Paula Figueiredo
Talking about Tapestry-IoC (that I love :), I would like to 1) Ask Howard to take a look at https://issues.apache.org/jira/browse/TAPESTRY-1874. 2) Ask Howard about setter-based injection, at least for objects that for some reason or another need to be created outside T-IoC. Spring

Re: T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread Josh Canfield
I want to populate from the form directly to the bean. But this require to use either the beanEditForm or a custom component. You can get this to work. I use the textfield component for editing my bean objects. This is from a working emplate: input t:id=*title* t:type=*textfield* t:size=*40*

Re: T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread Michael Courcy
Thanks Josh, but do you have also a title property with getter and setter in your page class ? And if yes (as I guess) whish value is updated when you submit the form : MyPage.title or MyPage.video.title ? Josh Canfield a écrit : I want to populate from the form directly to the bean. But

Re: T5: referencing embedded Component is null in onActivate(). What am I missing?

2007-11-14 Thread Britske
hmm, after quickly rebuilding the issue (I removed the component ,component-ref, etc) everything works.. well better than the other way around ;-) Thanks anyway for the quick response, Cheers, Geert-Jan Howard Lewis Ship wrote: Show us the code! Also, check your console for warnings.

T4: extracting out static files...

2007-11-14 Thread Patrick Moore
Hi there -- I would like to reduce the load on my tapestry server by having static files (such as dojo) be served by an external server. In my case I am thinking about amazon's s3 service. In order for this to work well, we need to : 1. have all static files served by a separate subdomain.

[T5] Big problem with url-pattern

2007-11-14 Thread Vjeran Marcinko
Hello. After years of using Tapestry 4.0, I just started experimenting with T5, and although it brings much improvement, I noticed a few issues: 1. Biggest issue - most of serious web apps out there wil always have few servlets/filters defined in their web.xml, and thus using

Re: [T5] Default order by for Grid

2007-11-14 Thread Ezra Epstein
Speaking of which, how does one get a reference to a contained component in T5? Marcelo Lotif [EMAIL PROTECTED] wrote: The grid component have a method called setSortColumnId(), but for use it, you got to have a reference to the component in your page's class 2007/11/13, Christoph Jaeger :

Re: T5 Newbie : populate the value of a form in a bean

2007-11-14 Thread Josh Canfield
Hi Michael, Thanks Josh, but do you have also a title property with getter and setter in your page class ? No, I only have the video getter/setter And if yes (as I guess) whish value is updated when you submit the form : MyPage.title or MyPage.video.title ? The title property of the

T4 - access hivemind registry from another servlet

2007-11-14 Thread Paul Stanton
Ok, so the tapestry servlet initializes and stores the hivemind registry for use within tapestry. My hivemind services and tapestry components and pages can find each other via injection or context method calls. That's fine, but now I've got separate servlet in which I need to have access to

Re: [T5] Big problem with url-pattern

2007-11-14 Thread Kevin Menard
On 11/14/07 3:03 PM, in article [EMAIL PROTECTED], Vjeran Marcinko [EMAIL PROTECTED] wrote: Hello. After years of using Tapestry 4.0, I just started experimenting with T5, and although it brings much improvement, I noticed a few issues: 1. Biggest issue - most of serious web apps out

Re: [ANN] Tapestry 5 book is available for pre-order

2007-11-14 Thread Doublel
That is great 2007/11/15, Kolesnikov, Alexander GNI [EMAIL PROTECTED]: Yeah, I know... I thought they will have PDF version too. -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent: 14 November 2007 16:00 To: Tapestry users Subject: Re: [ANN] Tapestry 5 book

Re: [ANN] Tapestry 5 book is available for pre-order

2007-11-14 Thread Doublel
Chinese user how to buy it?? 2007/11/15, Doublel [EMAIL PROTECTED]: That is great 2007/11/15, Kolesnikov, Alexander GNI [EMAIL PROTECTED]: Yeah, I know... I thought they will have PDF version too. -Original Message- From: Peter Stavrinides [mailto:[EMAIL PROTECTED] Sent:

Re: T4 - access hivemind registry from another servlet

2007-11-14 Thread Jili Lv
1. Add a filter class : package com.example; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import

Re: [T5] Big problem with url-pattern

2007-11-14 Thread Vjeran Marcinko
- Original Message - From: Kevin Menard [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: Thursday, November 15, 2007 12:21 AM Subject: Re: [T5] Big problem with url-pattern 1. Biggest issue - most of serious web apps out there wil always have few servlets/filters defined in their

Using Tapestry 5 with OpenLaszlo

2007-11-14 Thread Christopher Ottley
Hi all, I know Tapestry 5 is in a pre-release stage, but I've been mulling using it with an OpenLaszlo front end for a project I've been wanting to start. I've created a blog at http://buccoo.blogspot.com/ documenting my thoughts on getting it working and although I'm new to Tapestry in general I

Re: Using Tapestry 5 with OpenLaszlo

2007-11-14 Thread Christian Edward Gruber
On 15-Nov-07, at 12:42 AM, Christopher Ottley wrote: I'd appreciate any feedback you guys may have. Sure... how 'bout: why would you build with ant? ;) No, seriously though, I'm going to point some people to your blog. My general contractor is quite enamored with Flex and Laszlo.

T4.0.2: How do I replace a Service via Hivemind?

2007-11-14 Thread Kay.Thielmann
Hi, I'm using Tapestry in a portal environment. In configuration point tapestry.portlet.services.FactoryServices a service called render is stored, which I would like to replace with my own class. Is it possible to overwrite this entry or the configuration point within my hivemodule.xml

Re: T4: Putting Tapestry files inside another folder

2007-11-14 Thread Joshua Jackson
I kinda get the idea now that Tapestry by default looks for page component specification under WEB-INF. But what I don't get is why do we have to create a class that implements ISpecificationResolverDelegate and then configure it again in hivemodule.xml instead of just configuring it in

Re: Antwort: [T5] Dynamic Layouts]

2007-11-14 Thread Harald Graf
ty for your detailed answer. sounds good. cheers, harald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5: entities in literal:

2007-11-14 Thread Chris Lewis
Not to beat a dead horse, but I (completely by accident) ran into this bug again as I was testing my component and was using internal styles - one of the rules used the direct child operator ''. It took me an hour before I realized why it wasn't working - it was being filtered as an entity for