I'm unsure of what to document since there are no params to the method nor a
return value. I'll try to add an @return void and see if that helps. I don't
need to do anything different in the controller do I? It seems like this is
handled in jsonRpcAction. Also, I think I must need to hookup the submit
button in my form to behave differently somehow. Any insights?
tfk wrote:
>
> On Mon, Aug 18, 2008 at 11:18 AM, Matthew Lurz <[EMAIL PROTECTED]> wrote:
>> Please excuse my ignorance as I've worked very little with any RPC
>> service
>> in the past.
>>
>> I'm attempting to AJAJ-enable a form. I've selected a simple form
>> containing
>> 2 ValidationTextBoxes. I'm using the modular directory structure and the
>> controller class in this case is Dashboard_Options and the action is
>> blogAction. The Dojo view integration is working as expected but I must
>> be
>> missing something. I have created the getJsonRpcServer and jsonRpcAction
>> methods in the controller as described here (I understand that this is
>> but 1
>> potential solution):
>>
>> Which seems to be calling the blogAction however I receive this error:
>>
>> "Variable number of arguments is not supported for services (except
>> optional
>> parameters). Number of function arguments must currespond to actual
>> number
>> of arguments described in a docblock."
>>
>> Sidebar: I copied and pasted the error message. What is the procedure for
>> submitting a a minor spelling mistake to the developers?
>>
>> I understand that the methods are to contain docblocks so that the
>> JSON-RPC
>> service knows the signature of the method but in this case there are no
>> arguments to the method nor a return value. Again, I must be missing
>> something but am at a loss. Any help would be greatly appreciated.
>>
>> Here are the methods:
>
> That's your controller.
>
> The error probably comes from the class that you assign with
> setClass() ('Options').
>
> That class needs to be documented properly - that's what I guess. ;)
> I've only used Zend_XmlRpc_Server.
>
> Till
>
>
--
View this message in context:
http://www.nabble.com/Dojo-%2B-JSON-RPC-tp19033900p19062947.html
Sent from the Zend Framework mailing list archive at Nabble.com.