|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Dwr convert and extendsHi!
i have this class: public class BaseEntity { private int id; private String name; } and this class: public class Currency extends BaseEntity { private String code; } When I configure DWR 2.0 I do this: <dwr:configuration> <dwr:convert type="bean" class="com.db.cib.gm.gfdtracker.entities.BaseEntity"> <dwr:include method="id"/> <dwr:include method="name"/> </dwr:convert> <dwr:convert type="bean" class="com.db.cib.gm.gfdtracker.entities.Currency"> <dwr:include method="id"/> <dwr:include method="name"/> <dwr:include method="code"/> </dwr:convert> </dwr:configuration> My question is if it's posible when I configure to do something like this: <dwr:configuration> <dwr:convert type="bean" class="com.db.cib.gm.gfdtracker.entities.BaseEntity"> <dwr:include method="id"/> <dwr:include method="name"/> </dwr:convert> <dwr:convert type="bean" class="com.db.cib.gm.gfdtracker.entities.Currency"> <dwr:include method="code"/> </dwr:convert> </dwr:configuration> When I put this configuration when i recieve a Currency i don't have id and name...it's posible to simplify the fist configuration?? and don't need to put id and name in Currency convert? maybe is able in DWR to put and extends??? Thanks! |
|
|
Re: Dwr convert and extendsNot currently but I'd also like to see it. Mike has the last work, I guess
On Mon, Apr 28, 2008 at 6:54 PM, fixfax <ignasi.pineiro@...> wrote:
|
|
|
Re: Dwr convert and extendsThanks XMaNIaC for you reply.
I think that it's a good way to reduce the line number in our's dwr configuration. I'm not sure but you say that Mike is developing or looking this for future versions in DWR ? Thanks!
|
|
|
Re: Dwr convert and extendsMike has worked with converters in the past and is the one who could take a look into it. Well, anyone could do it but Mike would get it working in half the time. The topic has been discussed before so he may have it in his TODO list already.
On Tue, Apr 29, 2008 at 8:31 AM, fixfax <ignasi.pineiro@...> wrote:
|
|
|
Re: Dwr convert and extendsOk!
thanks for your explanations. Happy coding! ;)
|
| Free Forum Powered by Nabble | Forum Help |