Re: [T5] Simple question about select and enum

2007-11-15 Thread Michael Courcy
Do you have error messages ? TNO a écrit : Hi, I want to create a very simple select list from an enum. But in a select component, the model (org.apache.tapestry.SelectModel) is required, I try to use EnumSelectModel but it did not work... I can't have my enum list... please help, thanks T

Re: [T5] Simple question about select and enum

2007-11-15 Thread martin boulanger
o unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/-T5--Simple-question-about-select-and-enum-tf4815229.html#a13776401 Sent from the Tapestry - User mailing list archive at Nabble.com

Re: [T5] Simple question about select and enum

2007-11-15 Thread TNO
It works ! thanks but the Component Reference says that parameter "model" is required... lasitha a écrit : > Tom, try it without specifing a select model. > > The following is working for me: > > > Where the page class has just the report property and accessors. > > Also note that you don't need

Re: [T5] Simple question about select and enum

2007-11-15 Thread lasitha
Tom, try it without specifing a select model. The following is working for me: Where the page class has just the report property and accessors. Also note that you don't need to use expansions (the ${..}s) on these. Cheers, lasitha. On Nov 15, 2007 10:00 PM, Michael Courcy <[EMAIL PROTECTED]>

Re: [T5] Simple question about select and enum

2007-11-15 Thread TNO
No error message, but in the HTML page : instead of my enum value... My java code : public EnumSelectModel getReportModel() { return new EnumSelectModel(Report.class, _resources.getMessages()); } Michael Courcy a écrit : > Do you have error messages ? > > TNO a écrit : >> H

[T5] Simple question about select and enum

2007-11-15 Thread TNO
Hi, I want to create a very simple select list from an enum. But in a select component, the model (org.apache.tapestry.SelectModel) is required, I try to use EnumSelectModel but it did not work... I can't have my enum list... please help, thanks Tom --- Antivirus avast! : message Sortant s