GWT RPC Proxy - how to create custom own one

2012-07-31 Thread Олександр Бежан
AFAIK GWT generates RPC proxies using Generators. I need more control in my 
proxy and so want to create my custom proxy. How can I do that ?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/otsVGEQgZIEJ.
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.



Editors framework edit/view mode question

2012-07-15 Thread Олександр Бежан
I have form with editors for bean fields:
public class EditSampleView extends ViewImpl implements EditView, 
Editor {

interface Driver extends SimpleBeanEditorDriver {
}

@UiField
TextFieldEditor country;
@UiField
TextFieldEditor description;
@UiField
DigitFieldEditor digit;
EditorDriver> driver;
@UiField
TextFieldEditor name;
}

Each field editor has edit and view modes.
I also have own driver wrapper. It adds JSR-303 validation automation.
I want to implement this method in my driver:

/**
 Sets edit/view mode of field editors
*/
public void setEditMode(boolean edit) {
 for(FieldEditor field: getFieldEditors()) {
field.setEditMode(edit);
 }
}

Is it possible to access all field editors from driver ?
GWT.create(Driver.class) generates code for each field editor annotated by 
@UiField. So it knows about all those fields. It could be great to have 
access to them.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/FenIwojd-CgJ.
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.



Re: How to share classes between two different modules with two different pages

2012-03-29 Thread Олександр Бежан
I think the best way you can do this is to create third gwt module 
('common' for example) and move all common classes there.
Then you can inherit this module and access to common classes.

вторник, 20 марта 2012 г. 23:22:58 UTC+2 пользователь Deepak Singh написал:
>
> Hi All,
>
> I have a GWT project with 2 modules.
>
> ModuleA  and ModuleB
> Both are having their own html page. i.e. tow seperate html pages so 
> seperate Rootpanel for both of them.
>
> So i cant inherit one into another.
>
> How can i use the same class(in shared package) in both the modules ?
>
>
>
> Thanks 
> Deepak Singh
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VQkHUafxafsJ.
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.