6 May 10:32
Re: wildcards for include/exclude parameters in converters
From: Lance Java <lance.java@...>
Subject: Re: wildcards for include/exclude parameters in converters
Newsgroups: gmane.comp.java.dwr.user
Date: 2008-05-06 08:32:36 GMT
Expires: This article expires on 2008-05-20
Subject: Re: wildcards for include/exclude parameters in converters
Newsgroups: gmane.comp.java.dwr.user
Date: 2008-05-06 08:32:36 GMT
Expires: This article expires on 2008-05-20
Simple answer: no
Complex answer: You could implement your own access control (extending DefaultAccessControl perhaps) and plug it in via a servlet init param. Note that an exclude param in dwr.xml results in addExcludeRule(String scriptName, String methodName) being called.
<init-param>
<name>org.directwebremoting.extend.AccessControl</name>
<value>foo.bar.MyAccessControl</value>
</init-param>
Cheers,
Lance.
2008/5/5 se <pamaneg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
Hello DWR Gurus!
I find the "include" and "exclude" parameters of the BeanConverter very useful.
Is it possible to use wildcards in include/exclude definitions?
I would like to do something like:
<convert converter="bean" match="MyClass">
<param name="exclude" value="str*"/>
</convert>
and expect DWR to exclude all member variables of MyClass that start with "str".
Thanks,
Gabor
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe-EyPigyGktj4FDOXUYO6UHQ@public.gmane.org
For additional commands, e-mail: users-help-EyPigyGktj4FDOXUYO6UHQ@public.gmane.org
RSS Feed