Re: Console app with Tapestry IoC configuration

2011-09-20 Thread Steve Eynon
Yep, I always define two modules; one Core Module that defines my database DAOs and other core services and another Web Module which focuses on T5 webby stuff. Steve. -- Steve Eynon --- "If at first you don't succeed,    so much for skydiving!" On 20 September 2011 2

Re: tapestry select model

2011-09-20 Thread csckid
Now I have add an encoder : public class WholeSaleMemberEncoder implements ValueEncoder, ValueEncoderFactory { @Inject private WholeSaleMemberDao wholeSaleMemberDao; @Inject private DatabaseDao databaseDao; public String toClient(WholeSaleM

Re: tapestry select model

2011-09-20 Thread Jonathan Barker
>From the javadoc for SelectModelFactory... ( http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/SelectModelFactory.html ) "The returned model creates for every object in the list a selectable option and relies on existing ValueEncoder

Re: tapestry select model

2011-09-20 Thread csckid
Select component is populated. But I wasn't able to fetch the id variable of the selected object. *CreateWMemberTruck.tml * : *CreateWMemberTruck.java * public class CreateWMemberTruck { @Inject private WholeSaleMemberDao wholeSaleMemberDao;

Re: PageLink page-Parameter

2011-09-20 Thread Geoff Callender
+1 On 21/09/2011, at 7:56 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, 20 Sep 2011 11:14:03 -0300, Reinhold Gruber > wrote: > >> Hi, > > Hi! > >> I would found it rather usefull if if the page Parameter of PageLink >> would also accept a page-class or an injected and configured page >>

Re: PageLink page-Parameter

2011-09-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Sep 2011 11:14:03 -0300, Reinhold Gruber wrote: Hi, Hi! I would found it rather usefull if if the page Parameter of PageLink would also accept a page-class or an injected and configured page instance (so that the activation context could be calculated from onPassivate()). I l

Re: tapestry select model

2011-09-20 Thread Josh Canfield
This is pretty light on details. You may need to provide some code that demonstrates the problem. On Tue, Sep 20, 2011 at 12:17 PM, csckid wrote: > I am developing a page that will load value of combobox from a database > table. The table is loaded fine. But when I clicked on submit, I can't > a

tapestry select model

2011-09-20 Thread csckid
I am developing a page that will load value of combobox from a database table. The table is loaded fine. But when I clicked on submit, I can't access the data that is selected in the combobox. When I click on submit it says. I though I will be able to call membersName.getId() -- View this mes

Re: T5.2, message encoding

2011-09-20 Thread Dimitri
Thank you for the reply, i tried to add the param in the tomcat6 start script, but no effect :( It looks like an utf8 converter is converting my strings twice, what do you think about it ? My browser input with ANSI rendering from the server is: "Peut-être vos critères sont-ils trop restri

Re: Console app with Tapestry IoC configuration

2011-09-20 Thread Thiago H. de Paula Figueiredo
On Tue, 20 Sep 2011 11:51:56 -0300, nquirynen wrote: Hi, Hi! I'm making an application using Tapestry IoC configuration (contributions). Nice! So in my AppModule I have: *public void contributePolicyValueProviderSource(MappedConfiguration config) { ... }

Re: Console app with Tapestry IoC configuration

2011-09-20 Thread Lenny Primak
You need to instantiate the registry, and then use bind() in your AppModule to do what you want. You can search the net for further details on that There have been threads on this before. On Sep 20, 2011, at 10:51 AM, nquirynen wrote: > Hi, > > I'm making an application using Tapestry IoC con

Console app with Tapestry IoC configuration

2011-09-20 Thread nquirynen
Hi, I'm making an application using Tapestry IoC configuration (contributions). So in my AppModule I have: *public void contributePolicyValueProviderSource(MappedConfiguration config) { ... }* and in code I do: *@Inject private PolicyValueProviderSource policyValue

Re: Using OWASP - ESAPI

2011-09-20 Thread martinbascuas
Hi Antalk, Could you send me any documentation of the course about java and security? I'd appreciate it so much. Do you any web where I could download a course about ESAPI and security in Java? My email is j...@martinbascuas.com Thanks in advance. -- View this message in context: htt

PageLink page-Parameter

2011-09-20 Thread Reinhold Gruber
Hi, I would found it rather usefull if if the page Parameter of PageLink would also accept a page-class or an injected and configured page instance (so that the activation context could be calculated from onPassivate()). Regards, Reinhold

Re: AjaxFormLoop problem with Tapestry 5.2.-beta-9

2011-09-20 Thread Steve Eynon
I don't know what I'm doing differently, but my AjaxFormLoop still seems to add and remove rows with T5.3-beta-9. My implementation (like most people's I suspect!) is based on Geoff's Jumpstart example http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1 Steve. -- Steve Eynon

Re: textchanged like clientEvent

2011-09-20 Thread LLTYK
Define doesn't work. What was wrong with keyup? -- View this message in context: http://tapestry-users.832.n2.nabble.com/textchanged-like-clientEvent-tp6798861p6811862.html Sent from the Tapestry Users mailing list archive at Nabble.com. --

AjaxFormLoop problem with Tapestry 5.2.-beta-9

2011-09-20 Thread Emmanuel DEMEY
Hi everybody Few days ago, I created a simple sample for the AjaxFormLoop component, with Tapestry 5.3.0. Everything was OK. This morning, I updated to Tapestry 5.3-beta-9. But when I add a new row (by clicking to the "add" link), the JSON response of the AJAX request does not include the element