Peter,

Here's my whitelist:

<whitelist>
    <unnamed>
        <source>*</source>
    </unnamed>
    <named>
        <object name="userDelegate">
            <source>businessdelegates.UserDelegate</source>
            <type>stateful-class</type>
            <allow-unnamed-access>false</allow-unnamed-access>
        </object>
        <object name="groupDelegate">
            <source>businessdelegates.GroupDelegate</source>
            <type>stateful-class</type>
            <allow-unnamed-access>false</allow-unnamed-access>
        </object>
    </named>
</whitelist>

-Josh

--- In [email protected], "Peter Farland" <[EMAIL PROTECTED]> wrote:
> Ah, what does the unnamed whitelist in the remote-object section look
> like? Does it include your Group class? I apologize for not double
> checking whether it was still a requirement in Flex 1.5, but I know it
> was in Flex 1.0.
> 
> -----Original Message-----
> From: cazzaran [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 28, 2005 4:19 PM
> To: [email protected]
> Subject: [flexcoders] Re: Error: Cannot invoke method when using a VO
> 
> 
> 
> Peter,
> 
> It does... 
> 
> -Josh
> 
> --- In [email protected], "Peter Farland" <[EMAIL PROTECTED]>
> wrote:
> > Does the Java version of Group have a public no args constructor?
> > 
> > 
> > -----Original Message-----
> > From: cazzaran [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, March 28, 2005 3:50 PM
> > To: [email protected]
> > Subject: [flexcoders] Error: Cannot invoke method when using a VO
> > 
> > 
> > 
> > I have a delegate class on my server called GroupDelegate, and it has
> > a method addGroup(Group group).
> > 
> > When I try and call this method on my remote object, I get the error:
> > 
> > Error: Cannot invoke method addGroup
> > 
> > However, if I switch my method's signature to addGroup(String
> > groupName), the method executes, and the group is added to the DB.
> > 
> > Group is just a POJO, and obviously the second method wont work
> > because there is a lot more information than just the groupName that
> > needs to be recorded...
> > 
> > Interestingly, when I do a getGroups I get back an array of the
> > correct objects, and in my client side model of my Group class I have
> > correctly done the Object.registerClass. The only time I seem to have
> > an issue is when I pass it BACK to my server as a Group.
> > 
> > Any ideas? -Josh
> > 
> > 
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to