Prevent method being called when DWR marshal's object.

View: New views
3 Messages — Rating Filter:   Alert me  

Prevent method being called when DWR marshal's object.

by stephensitton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

In my dwr.xml have the following:

<convert converter="bean" match="com.SomeClass"/>

In this class I have a method that I don't want to be called when DWR marshal's this from server to client.  Is there a setting in the dwr.xml or an annotation I can use to prevent this method being called?

thanks
Steve

Re: Prevent method being called when DWR marshal's object.

by David Marginian-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sure, the docs on this are under the dwr.xml section, take a look at
'Restricting Property Conversion':
http://getahead.org/dwr/server/dwrxml/converters/bean

Stephen Sitton wrote:

> Hi,
>
> In my dwr.xml have the following:
>
> <convert converter="bean" match="com.SomeClass"/>
>
> In this class I have a method that I don't want to be called when DWR
> marshal's this from server to client.  Is there a setting in the
> dwr.xml or an annotation I can use to prevent this method being called?
>
> thanks
> Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: Prevent method being called when DWR marshal's object.

by stephensitton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Great, thanks for you help.

On Feb 11, 2008 3:34 PM, David Marginian <david@...> wrote:
Sure, the docs on this are under the dwr.xml section, take a look at
'Restricting Property Conversion':
http://getahead.org/dwr/server/dwrxml/converters/bean

Stephen Sitton wrote:
> Hi,
>
> In my dwr.xml have the following:
>
> <convert converter="bean" match="com.SomeClass"/>
>
> In this class I have a method that I don't want to be called when DWR
> marshal's this from server to client.  Is there a setting in the
> dwr.xml or an annotation I can use to prevent this method being called?
>
> thanks
> Steve


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...