You could pass a output variable as an argument to your custom widget and
let the variable be set whenever it's necessary.

The other approach is, just as you said, to create a custom event that would
carry the information and add a method to MyDialogCompositeClass  that takes
as the parameter a custom event handler that handles this custom event.
Inside the event handler, set the data from the event to your variable.

Creating the custom event and the custom event handler takes some effort,
but I think it's worth the effort.


Alisson Prestes
www.google.com/profiles/javalisson



On Fri, May 13, 2011 at 4:43 PM, Murray <kmo...@diddiasix.com> wrote:

> I am struggle with this...
>
> I would like to create a dialogbox or popupanel via UiBinder that
> requires the
> user to enter first name and phone number (i.e. <g:TextBox
> ui:field='fname' ).
>
> From some "main" form, this dialog will be launched...
>
> @UiField MyDialogCompositeClass  mydialogorpopuppnael;
>
>
> dialogdata = mydialogorpopuppnael.show();
>
> where dialogdata is a structure that contains the items from the
> dialogbox.
>
> I know this is not  the way but rather I would need to pass an
> eventhandler etc..
>
> does anyone have an example of this out there?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

Reply via email to