[ANN] The Ars Machina Project: open-source packages related to Tapestry 5 (and some which aren't)

2008-10-01 Thread Thiago H. de Paula Figueiredo
Hi! I'm very happy to announce the Ars Machina Project: a collection of open-source packages, released under the Apache Public License version 2. Its goal is to provide well-written common application building blocks that cut development time and bugs and to suggest some development stand

Re: formatting data output in t:grid column

2008-10-01 Thread Thiago H. de Paula Figueiredo
Em Thu, 02 Oct 2008 03:44:35 -0300, wesley <[EMAIL PROTECTED]> escreveu: this is great, thanks much for the help thiago! You're welcome! -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor Consultor, desenvolvedor e instrutor em Java http://www.arsmachina

Re: formatting data output in t:grid column

2008-10-01 Thread wesley
this is great, thanks much for the help thiago! regards, wesley Thiago H. de Paula Figueiredo wrote: > > Em Wed, 01 Oct 2008 16:25:21 -0300, wesley <[EMAIL PROTECTED]> > escreveu: > >> i've been wondering how i can change the format of the column data given >> if the data is of type java.

[T4.1] Reading values from the app.properties file from a page class

2008-10-01 Thread Craig Spry
Hello List, I want to be able to get to the localized strings stored in the app.properties file from my java page class, I've tried to use: engine.getInfrastructure().getApplicationPropertySource().getPropertyValue("value") This didn't seem to work. Is what I'm trying to do achievable? If so w

Re: problem beaneditform and external ejb3

2008-10-01 Thread Geoff Callender
Does this example help? http://202.177.217.122:8080/jumpstart/examples/input/edit1/1 Cheers, Geoff On 02/10/2008, at 8:00 AM, Thiago H. de Paula Figueiredo wrote: Em Wed, 01 Oct 2008 18:47:37 -0300, mdes <[EMAIL PROTECTED]> escreveu: Hello everybody, I'm new to Tapestry 5 and I need hel

Re: Tapestry 5.0.15 DateField localization problem

2008-10-01 Thread Doublel
That is right ,Thanks a lot. 2008/10/2 Jecki <[EMAIL PROTECTED]> > On Thu, Oct 2, 2008 at 7:20 AM, Doublel <[EMAIL PROTECTED]> wrote: > > Thank you for your fix, It can work by default. but When i user > > t:format="/mm/dd" for dateFIeld to format the data ,it return > > '2008/00/26' too .t

Re: Tapestry 5.0.15 DateField localization problem

2008-10-01 Thread Jecki
On Thu, Oct 2, 2008 at 7:20 AM, Doublel <[EMAIL PROTECTED]> wrote: > Thank you for your fix, It can work by default. but When i user > t:format="/mm/dd" for dateFIeld to format the data ,it return > '2008/00/26' too .the month is always "00". > > I believe the format should be "/MM/dd" a

Re: Tapestry 5.0.15 DateField localization problem

2008-10-01 Thread Doublel
Thank you for your fix, It can work by default. but When i user t:format="/mm/dd" for dateFIeld to format the data ,it return '2008/00/26' too .the month is always "00". 2008/10/1 Konstantin <[EMAIL PROTECTED]> > > Ok. I've created a workaround. > > package myapphere.mixins; > > import or

Re: problem beaneditform and external ejb3

2008-10-01 Thread Thiago H. de Paula Figueiredo
Em Wed, 01 Oct 2008 18:47:37 -0300, mdes <[EMAIL PROTECTED]> escreveu: Hello everybody, I'm new to Tapestry 5 and I need help to solve a problem. I defined an entity bean "Operator" in my ejb3 project, and I want it to be the object of a beaneditform in a Tapestry 5 project. One common er

problem beaneditform and external ejb3

2008-10-01 Thread mdes
Hello everybody, I'm new to Tapestry 5 and I need help to solve a problem. I defined an entity bean "Operator" in my ejb3 project, and I want it to be the object of a beaneditform in a Tapestry 5 project. So, I wrote this in the AddOperator.tml page: and I get this Tapestry error: Embedded

Re: formatting data output in t:grid column

2008-10-01 Thread Thiago H. de Paula Figueiredo
Em Wed, 01 Oct 2008 16:25:21 -0300, wesley <[EMAIL PROTECTED]> escreveu: i've been wondering how i can change the format of the column data given if the data is of type java.util.Date. the t:grid column shows my result as -mm-dd. how about if i want to show the time as well? is there an

formatting data output in t:grid column

2008-10-01 Thread wesley
hi all, i've been wondering how i can change the format of the column data given if the data is of type java.util.Date. the t:grid column shows my result as -mm-dd. how about if i want to show the time as well? is there any way that i can pass something like SimpleDataFormat to format the dat

Re: pass list of string/object between Tapestry pages

2008-10-01 Thread wesley
hi there thiago, thanks very much for the reply. the appstatemanager sure comes in handy, thanks again for the advise. wesley Thiago H. de Paula Figueiredo wrote: > > Em Wed, 01 Oct 2008 11:51:47 -0300, wesley <[EMAIL PROTECTED]> > escreveu: > >> from the alternative ways of passing data a

change locale redirect to current page

2008-10-01 Thread mike
my current page is show when i pass in url like http://localhost:8080/Test/app?service=page&page=Product&id=xxx1 after calling changing of locale, i call cycle.activate(); how to i get the current path like the above and pass to cycle.activate() ? cycle.activate can be accept pagename , not para

Re: [RESOLVED] Re: T5.0.15 Problem with localized app.properties

2008-10-01 Thread Tobias Wehrum
Hi Thomas, it has just got the number "3" after it was moved to the new TAP5-JIRA project about one or two weeks ago, so don't this issue was there from the beginning till now and not being worked on. Creation date of this issue was 27/Jun/08, and since it is minor (a very easy workaround once

[RESOLVED] Re: T5.0.15 Problem with localized app.properties

2008-10-01 Thread TNO
No I didn't... and now it works The third issue of Tapestry Thanks a lot Tobias Wehrum a écrit : > Hi Thomas, > > do you have a global app.properties? > See https://issues.apache.org/jira/browse/TAP5-3 > > - Tobias > > TNO schrieb: >> Hi everybody, >> >> I'm trying to localize my applicatio

Re: pass list of string/object between Tapestry pages

2008-10-01 Thread Thiago H. de Paula Figueiredo
Em Wed, 01 Oct 2008 11:51:47 -0300, wesley <[EMAIL PROTECTED]> escreveu: from the alternative ways of passing data around, can i say that using flash option; the data only lived on until the next page? after that any link to other page the flashed data will invalidated unless you set it a

Re: T5.0.15 Problem with localized app.properties

2008-10-01 Thread Tobias Wehrum
Hi Thomas, do you have a global app.properties? See https://issues.apache.org/jira/browse/TAP5-3 - Tobias TNO schrieb: Hi everybody, I'm trying to localize my application, it works very well with properties files for components or pages! But when I try to use the application message catalog

Re: [T5] Lost HTML javadoc in tapestry-component-report

2008-10-01 Thread Thiago H. de Paula Figueiredo
Em Wed, 01 Oct 2008 05:01:55 -0300, Sven Homburg <[EMAIL PROTECTED]> escreveu: try this You can set your ~/.m2/settings.xml file to include c:/Dokume~1/username/.m2/repository/ This is a pretty standard issue with windows and Maven (and often windows and Java in general) I'm afraid you ans

T5.0.15 Problem with localized app.properties

2008-10-01 Thread TNO
Hi everybody, I'm trying to localize my application, it works very well with properties files for components or pages! But when I try to use the application message catalog (app_en.properties and app_fr.properties in the WEB-INF path), it doesn't work anymore, it can't find any message and I have

Re: template dynamics

2008-10-01 Thread Ulrich Stärk
Have a look at the If (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/If.html) and Zone (http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Zone.html) components. Uli Am Mi, 1.10.2008, 17:06, schrieb Jáno

Re: template dynamics

2008-10-01 Thread János Jarecsni
Sorry, I forgot that the tag is exactly for this :) Cheers Janos 2008/10/1 János Jarecsni <[EMAIL PROTECTED]> > Hi guys, > > is there a way to change the template (piece of the template) which gets > generated, depending on state? Here is what I mean: > Given a component C, its C.tml looks like

template dynamics

2008-10-01 Thread János Jarecsni
Hi guys, is there a way to change the template (piece of the template) which gets generated, depending on state? Here is what I mean: Given a component C, its C.tml looks like the following: blabla... //if (loggedIn) Logged in //else Not Logged in Of course I know this concrete problem can be

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-01 Thread Alex Kotchnev
Shymon, I know you said you already resolved your issue. However, instead of using a stock netbeans Web Application project, I would strongly recommend using the NetBeans Maven support when starting a project; it really makes the ramp up almost 0 . See my blog for details at http://www.troymaxve

Re: pass list of string/object between Tapestry pages

2008-10-01 Thread wesley
from the alternative ways of passing data around, can i say that using flash option; the data only lived on until the next page? after that any link to other page the flashed data will invalidated unless you set it again? on another side using Application State, there's no other way to kill the se

Re: T5: RadioGroup and null?

2008-10-01 Thread Onno Scheffers
Hi Uli, I figured any Object-type, including a Boolean, could be set to null, but indeed when I change the type to a String it works. Thanks a lot. regards, Onno Scheffers On Wed, Oct 1, 2008 at 3:18 PM, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > Boolean values cannot be set to null. If sele

Re: [T5] question about render phases

2008-10-01 Thread Andy Pahne
No, it was not. I simply put a @Property on it. @Persist did it, thanks. Andy Ulrich Stärk schrieb: Is your accomodationType @Persisted? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

T5: Validation message defaults

2008-10-01 Thread Blower, Andy
I'm trying to set up validation for our forms and I need to customise the default validation messages. Unfortunately there doesn't seem to be a way to do this as contributing to ValidationMessagesSource just adds new messages for new validators. I need to change the default messages to what we n

[~OT] I'm looking for a software engineer and QA engineer in Boston (T4 & T5)

2008-10-01 Thread Dan Adams
Hey all, Sorry for the spam. We are looking for a software engineer and QA engineer (and project manager actually) in Boston (near the Children's museum). We are a small (~30 people company) with a great culture (read: beer fridge and legos) and challenging projects (I'm in the process or rele

Re: [T5] question about render phases

2008-10-01 Thread Ulrich Stärk
Is your accomodationType @Persisted? Uli Am Mi, 1.10.2008, 15:33, schrieb Andy Pahne: > > > I have a page "SearchResult", which has a method that is used to > activate the page: > > > public Object startNewSearch(AccommodationType accommodationType) { > this.accommodationType = acco

[T5] question about render phases

2008-10-01 Thread Andy Pahne
I have a page "SearchResult", which has a method that is used to activate the page: public Object startNewSearch(AccommodationType accommodationType) { this.accommodationType = accommodationType; return this; } When I try to initialize the page based on the Accommod

Re: T5: RadioGroup and null?

2008-10-01 Thread Ulrich Stärk
Boolean values cannot be set to null. If selection is a boolean variable then it's always false except when it gets set to true. Use some other type for your variable (e.g. String and parse that to boolean if it's not null, use literal:true and literal:false in your radios). This will work. Uli A

Re: T5: RadioGroup and null?

2008-10-01 Thread Onno Scheffers
I just upgraded to T5.0.15. Still the same problem. Anyone? On Tue, Sep 30, 2008 at 12:21 AM, Onno Scheffers <[EMAIL PROTECTED]> wrote: > I'm using T5.0.14 and I'd like to get back null from a RadioGroup if the > user didn't click on any radio-buttons, but it seems the RadioGroup doesn't > suppo

Re: Integration with GWT

2008-10-01 Thread Szemere Szemere
To integrate GWT and Tapestry, we're using separate projects in Eclipse. One for GWT code (uses Ant as build tool) and the other for Tapestry (Maven based). I looked at maven-gwt a few months back and I decided against using it, because it didn't seem easy to use, give a big enough benefit for lea

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-01 Thread shymon
kristian.marinkovic wrote: > > do you have the library in your classpath? > Now it works. I removed only tapestry-hibernate... jars. tapestry-spring-5.0.15.jar also had to be removed. Thanx! -- View this message in context: http://www.nabble.com/Tapestry-5.0.15%2C-NetBeans-6.1-and-Hibernat

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-01 Thread Kristian Marinkovic
do you have the library in your classpath? shymon <[EMAIL PROTECTED]> 01.10.2008 13:39 Bitte antworten an "Tapestry users" An users@tapestry.apache.org Kopie Thema Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception kristian.marinkovic wrote: > > you have to

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-01 Thread shymon
kristian.marinkovic wrote: > > you have to remove the dependency to tapestry-hibernate > > g, > kris > Didn't help. Now, I added only one dependency to tapestry-core-5.0.15.jar. And the problem remains the same: java.lang.NoClassDefFoundError: org/hibernate/Session ... Caused by: java.lang.

Re: Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-01 Thread Kristian Marinkovic
you have to remove the dependency to tapestry-hibernate g, kris shymon <[EMAIL PROTECTED]> 01.10.2008 12:43 Bitte antworten an "Tapestry users" An users@tapestry.apache.org Kopie Thema Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception I'm trying to create my fir

Tapestry 5.0.15, NetBeans 6.1 and Hibernate ClassNotFound exception

2008-10-01 Thread shymon
I'm trying to create my first simple application using Tapestry 5.015. My IDE is NetBeans 6.1, and app is deployed to Glassfish v2ur2. I have created web application, added Tapestry to project libraries, configured web.xml, created Start.tml and Start class. But when I deploy app to appserver I

Changing character encoding for a single page in Tapestry 4.0.2

2008-10-01 Thread Syrjälä Juha
Hello, I am using Tapestry 4.0.2 where encoding for every page is currently utf-8. That is server returns this http header with its response: Content-type: text/html;charset=UTF-8 Now, I need to change this encoding for a single page to ISO-8859-1 while keeping the rest of the application in u

Re: My Tapestry5 suggestion list

2008-10-01 Thread Tobias Marx
5. resolving template/component class names: Also allow SomeExample for a component class name if the template is called some-example. Original-Nachricht > Datum: Wed, 01 Oct 2008 10:38:02 +0200 > Von: "Tobias Marx" <[EMAIL PROTECTED]> > An: "Tapestry users" > Betreff: My

My Tapestry5 suggestion list

2008-10-01 Thread Tobias Marx
Hi there! Here is my list of Tapestry5 suggestions: Tapestry5 Suggestions: 1. User .tpl instead of .tml. This way there is also no problem with syntax highlighting in most editors. 2. Make those templates compatible with SSI templates. This is because most HTMLers will slice PSD

Re: Tapestry 5.0.15 DateField localization problem

2008-10-01 Thread Konstantin
Ok. I've created a workaround. package myapphere.mixins; import org.apache.tapestry5.annotations.IncludeJavaScriptLibrary; import org.apache.tapestry5.annotations.MixinAfter; @IncludeJavaScriptLibrary("datefield-tzfix.js") @MixinAfter public class DateFieldTzFix { } - Using in: -page class

Re: [T5] Lost HTML javadoc in tapestry-component-report

2008-10-01 Thread Sven Homburg
try this You can set your ~/.m2/settings.xml file to include c:/Dokume~1/username/.m2/repository/ This is a pretty standard issue with windows and Maven (and often windows and Java in general) 2008/10/1 Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> > Hi! > > I have just noticed that tapest