Re: [t5.3] Using a map object with BeanEditor

2012-05-21 Thread trsvax
Here is how I did it http://tapestry.1045711.n5.nabble.com/writer-writeRaw-String-text-td5601234.html#a5601626 -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-3-Using-a-map-object-with-BeanEditor-tp5712589p5712988.html Sent from the Tapestry - User mailing list archive

Re: [t5.3] Using a map object with BeanEditor

2012-05-21 Thread Thiago H. de Paula Figueiredo
On Mon, 21 May 2012 04:03:54 -0300, Muhammad Gelbana wrote: I understand from the link you provided is that I have 2 choices, either to implement BeanModel for editing or go a step back and implement a BeanModelSource (which according to the document "provides support to the model by genera

Re: [t5.3] Using a map object with BeanEditor

2012-05-21 Thread Lance Java
> So the question is, what if I have those validation strings (maxLength=5,minLength=2..etc) in an independant string ? Because I intend to have this information in a database (label, name\id, validation rules). You could provide a DatabaseConstraintGenerator in a similar way to how Tapestry prov

Re: [t5.3] Using a map object with BeanEditor

2012-05-21 Thread Muhammad Gelbana
I can say it's not simple at all but I'm trying to comprehend it, specially that the code in the link you provided has some deprecated methods. But while I'm trying to master this, what if I need to apply validation too ? I understand from the link you provided is that I have 2 choices, either to

[t5.3] Using a map object with BeanEditor

2012-05-20 Thread Muhammad Gelbana
Has anyone tried to edit a map instance using a bean editor ? I checked this page "http://tapestry.apache.org/beaneditform-guide.html"; and now I'm trying to add a custom property but It isn't working: model = beanModelSource.createEditModel(Map.class, resources.getMessages()); model.add("F Var",