Hi Martin,

very interesting application you're working on. But - you're using a
Long for noOfFingers? BTW, how do I specify, which finger to cut off
first? ;-)

On Feb 24, 11:55 am, Martin Trummer <[email protected]> wrote:
> there's no such thing as inout-parameters
>
> you'll have to return the new value
>
> if there are more values you want to return,
> then you have to declare a class that simply
> holds the value and use this class as the
> return type of your service-function
>
> class ReturnObject {
>   String userName;
>   Long noOfFingers
>
> }
>
> public ReturnObject cutFingerOff(Long noOfFingersToCutOff, String
> userName, Long noOfFingers) {
>   ReturnObject result = new ReturnObject ();
>   result.noOffFingers = noOfFingers - noOfFingersToCutOff;
>   if (result.noOffFingers <= 0) {
>      result.noOffFingers = 0;
>      result.userName = "no finger john";
>   } else {
>      result.userName = userName;
>   }
>   return result;
>
> }
>
> On 23 Feb., 21:32, Ehsan <[email protected]> wrote:
>
>
>
> > Hi
> > I've a sample gwt2 rpc service & i need to set some of it's parameters
> > as out or inout (like out or ref parmeter types in microsoft wcf), but
> > i could not find anything about it in gwt documents or related forums :
> > (
> > Can anybody help me please ?!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to