Re: How does registerForProxyType works

2011-06-14 Thread Joshua Kappon
You need to cause a version change on the object to cause an update
EntityProxyChange event.
are you changing the version on the object once one of the clients is
changing it?


On Jun 15, 12:18 am, Aldo Neto  wrote:
> Hi,
>
> Thanks for the hint, but unless I'm doing something wrong I'm still not
> being notified. Please note that when I say "other clients" I mean different
> users working on different machines accessing the same table on the same
> server.
>
> As I said, I expected that everyone would be notified when registering
> to registerForProxyType(). If this is not the case, the only thing that
> comes to my mind is to periodically request for all the entries that I'm
> interested. But again, I'd expect to have a way to PUSH the information I
> need, and this is what I'm not being able to do.
>
> Am I missing something? Any other idea?
>
> Thanks
>
> On Tue, Jun 14, 2011 at 3:49 PM, Juan Pablo Gardella <
>
>
>
>
>
>
>
> gardellajuanpa...@gmail.com> wrote:
> > If you propage a event via eventBus don't work?
>
> > 2011/6/14 Aldo Neto 
>
> >> Hi,
>
> >> I need to implement a dynamic table that is populated based on values of a
> >> given entity on the server by many clients simultaneously. I thought
> >> that registerForProxyType() would solve all problems of mine, but then I
> >> made some quick tests and found that it is not called when a different
> >> client performs changes to that table. Is this correct? I mean, If I have 2
> >> persons working on the same table and one updates an entry there, should I
> >> expect to be notified on both clients? If not, is there an easy way to do
> >> that?
>
> >> Thanks,
> >> Aldo
>
> >> --
> >> 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.

-- 
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.



Ref: Jdoconfig.xml

2011-06-14 Thread sam
Hi All,

During the build process a copy of "jdo-config.xml" is created in the
WAR folder, so m question is what is the name of that file.


Thx in Advanced
Sanjay

-- 
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.



Re: weird production compile problem

2011-06-14 Thread pansen
ok, i found the problem and fixed it in restygwt:
https://github.com/pansen/resty-gwt/commit/d6f63d9146f407fd12e9f1ab4cfccfa0c7a2d154

if someone could help me with that
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e0f8392cf222a0ef
, i could finalize this in a smarter way.

cheers, andi

On 14 Jun., 20:55, pansen  wrote:
> thx juan, sorry for the noise. i found out 1 hour ago that the problem
> is with 99% percent probabilty related to restygwt. i'm happy i found
> this, now we'll see if i can fix it ;)
>
> keep you updated.
>
> cheers, andi
>
> On 14 Jun., 20:21, Juan Pablo Gardella 
> wrote:
>
>
>
>
>
>
>
> > Are you use third gwt libraries ? for example gin, etc.? What version of gwt
> > are you use?
>
> > 2011/6/14 pansen 
>
> > > hey guys,
>
> > > i think we have a massive problem with the generated js sources for
> > > production. we built a larger app and since now all worked like a
> > > charm, we had not a single stopper.
>
> > > at the moment there is a strange issue. when i use the static app it
> > > seems like there is a confusion about the generic-type or the content
> > > of it. let me first show you the gwttest i wrote to let you see what
> > > happens::
>
> > > package net.vz.common.widgets.client.profile.lastvisitors;
>
> > > import java.util.List;
> > > import java.util.logging.Logger;
>
> > > import net.vz.common.services.client.registry.Registry;
> > > import net.vz.common.services.client.restdto.GenericListDto;
> > > import net.vz.common.services.client.restdto.MinUserDto;
> > > import net.vz.common.services.client.restservice.UserService;
> > > import
> > > net.vz.common.services.client.resty.vzcore.SimpleMethodCallback;
> > > import net.vz.common.widgets.client.bundles.UnifiedResources;
> > > import net.vz.common.widgets.client.i18n.LocalMessages;
> > > import net.vz.common.widgets.client.listitem.GenericImageSlider;
> > > import net.vz.common.widgets.client.listitem.GenericList;
> > > import net.vz.common.widgets.client.listitem.renderer.MinUserRenderer;
> > > import
> > > net.vz.common.widgets.client.simpleItem.inject.SimpleItemModule;
> > > import net.vz.common.widgets.client.toolbox.custompanels.ListPanel;
> > > import net.vz.common.widgets.client.toolbox.slideBar.SlideBarActivity;
> > > import net.vz.common.widgets.client.toolbox.slideBar.SlideBarView;
> > > import net.vz.common.widgets.client.toolbox.slideBar.SlideBarViewImpl;
>
> > > import org.fusesource.restygwt.client.Method;
>
> > > import com.google.gwt.core.client.GWT;
> > > import com.google.gwt.event.shared.SimpleEventBus;
> > > import com.google.gwt.junit.client.GWTTestCase;
> > > import com.google.gwt.user.client.ui.AcceptsOneWidget;
> > > import com.google.gwt.user.client.ui.SimplePanel;
>
> > > /**
> > >  * try to reconstruct a production bug which seems to be caused by
> > > wrong typing
> > >  * from gwt??!
> > >  *
> > >  * @author abalke
> > >  */
> > > public class ProfileLastVisitorsActivityTestGwt extends GWTTestCase {
>
> > >    private static final String userKey = "U:test_user";
>
> > >    @Override
> > >    public String getModuleName() {
> > >        return SimpleItemModule.MODULE_NAME;
> > >    }
>
> > >    public void testDo() {
> > >        LocalMessages localMessages = GWT.create(LocalMessages.class);
> > >        UnifiedResources unifiedResources = new UnifiedResources();
>
> > >        ListPanel ul = GWT.create(ListPanel.class);
> > >        SlideBarView sidebarView = GWT.create(SlideBarViewImpl.class);
> > >        SlideBarActivity slideBarActivity = new
> > > SlideBarActivity(sidebarView);
> > >        GenericList genericLinkList = new
> > > GenericList(unifiedResources);
> > >        GenericImageSlider slider = new
> > > GenericImageSlider(
> > >                ul, slideBarActivity, genericLinkList,
> > > unifiedResources);
>
> > >        ProfileLastVisitorsViewImpl__ view =
> > >            new ProfileLastVisitorsViewImpl__(localMessages);
> > >        UserService userService = GWT.create(UserService.class);
> > >        MinUserRenderer renderer = new MinUserRenderer();
>
> > >        AcceptsOneWidget panel = new SimplePanel();
> > >        SimpleEventBus eventBus = new SimpleEventBus();
> > >        ProfileLastVisitorsActivity a = new
> > > ProfileLastVisitorsActivity(
> > >                view, userService, slider, renderer) {
> > >            protected void loadLastVisitors(String userId) {
> > >                userService.getLastVisitors(userId, new
> > > SimpleMethodCallback>() {
> > >                    @Override
> > >                    public void onSuccess(Method method,
> > > GenericListDto response) {
> > >                        List items = response.getItems();
> > >                        if (Registry.canLog()) {
>
> > > Logger.getLogger(ProfileLastVisitorsActivity.class.getName())
> > >                                .info("got a list of " +
> > > MinUserDto.class + ": " );
>
> > > Logger.getLogger(ProfileLastVisitorsActivity.class.getName())
> > >    

Re: How does registerForProxyType works

2011-06-14 Thread Aldo Neto
Hi,

Thanks for the hint, but unless I'm doing something wrong I'm still not
being notified. Please note that when I say "other clients" I mean different
users working on different machines accessing the same table on the same
server.

As I said, I expected that everyone would be notified when registering
to registerForProxyType(). If this is not the case, the only thing that
comes to my mind is to periodically request for all the entries that I'm
interested. But again, I'd expect to have a way to PUSH the information I
need, and this is what I'm not being able to do.

Am I missing something? Any other idea?

Thanks


On Tue, Jun 14, 2011 at 3:49 PM, Juan Pablo Gardella <
gardellajuanpa...@gmail.com> wrote:

> If you propage a event via eventBus don't work?
>
> 2011/6/14 Aldo Neto 
>
>> Hi,
>>
>> I need to implement a dynamic table that is populated based on values of a
>> given entity on the server by many clients simultaneously. I thought
>> that registerForProxyType() would solve all problems of mine, but then I
>> made some quick tests and found that it is not called when a different
>> client performs changes to that table. Is this correct? I mean, If I have 2
>> persons working on the same table and one updates an entry there, should I
>> expect to be notified on both clients? If not, is there an easy way to do
>> that?
>>
>> Thanks,
>> Aldo
>>
>> --
>> 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.
>

-- 
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.



Widget not displayed upon change of place

2011-06-14 Thread Harry X
I have a display region which will display diffrent widgets accpording place 
change event. 
The widgets are simple, haveing a couple of tables in a flowpanel and making a 
async call 
to get some data through RPC. When the place change events are fired by 
clicking 
on a 
navigation tree, sometimes the widgets are not displayed. However, 
A second click on the navi tree will trigger the widget to be displayed.

I think this has something to do with the handling with onStop()/onCancel(), 
but 
not
sure how to debug and change. Do you have any suggestion? Thanks.

Harry

-- 
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.



JClassType source and isGenericType()

2011-06-14 Thread pansen
hi,

assuming i'm in a generator and receive a ``JClassType source`` which
is in that case a ``org.test.Foo``.

then ``souce.isGenericType()`` returns ``null``
but ``source.getParameterizedQualifiedSourceName()`` returns
"org.test.Foo".
whereas ``source.getSimpleSourceName()`` only returns "Foo"

...which is a problem for me.

what can i call to see this is a specialization of a generic? e.g.
something like ``source.base().isGenericType()``.

what can i call to see the specialization of this class - in this case
i want the result of "Bar".

thx a lot, andi

-- 
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.



Re: GWT and Maven

2011-06-14 Thread jgonian
Also, you can find a bare minimum POM which works with Maven and Google 
Plugin for Eclipse here .

-- 
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/-/J70NrcuqBZAJ.
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: CheckboxCell 2 clicks for selection, when using SingleSelectionModel

2011-06-14 Thread bb.f.pav
Ok, np, Thx you Juan for your patience/ efforts

On 14 Jun., 13:10, Juan Pablo Gardella 
wrote:
> The only difference I see is addSelectionChangeHandler. I don't see an
> error, sorry
>
> 2011/6/14 bb.f.pav 
>
>
>
>
>
>
>
> > Hi Patrick,
>
> > unfortunately i'll need the single selection model for the purpose of
> > the project ;)
>
> > Thx
> > bb.f.pav
>
> > On 13 Jun., 22:42, Patrick Tucker  wrote:
> > > If you don't need the selection model, try NoSelectionModel.
>
> > > On Jun 13, 2:56 pm, "bb.f.pav"  wrote:
>
> > > > Hi Juan,
>
> > > > 1) i'm not yet reached that point. i'm using the stockwatcher examples
> > > > as basis for my celltable example and run it via eclipse as web
> > > > application
> > > >     that's my module.gwt.xml
>
> > > > 
> > > > 
> > > >   
> > > >   
>
> > > >   
> > > >   
> > > >   
> > > >   
>
> > > >   
> > > >    > > > class='de.f10rian.mySampleGwtOhneMaven.client.MySampleGwtOhneMaven'/>
>
> > > >   
> > > >   
> > > >   
>
> > > > 
>
> > > > 2) Here is my CellTableExample code. hopefully you'll see my error:
>
> > > > public class CellTableExample extends Composite {
>
> > > >         private static CellTableExampleUiBinder uiBinder = GWT
> > > >                         .create(CellTableExampleUiBinder.class);
>
> > > >         interface CellTableExampleUiBinder extends
> > > >                         UiBinder {
> > > >         }
>
> > > >         @UiField
> > > >         CellTable ct;
>
> > > >         List checkBoxSelectedIds = new ArrayList();
>
> > > >         private final ListDataProvider dataProvider = new
> > > > ListDataProvider();
> > > >         private final SingleSelectionModel singleSelectionModel
> > = new
> > > > SingleSelectionModel();
>
> > > >         {
> > > >                 singleSelectionModel.addSelectionChangeHandler(new
> > Handler() {
> > > >                         @Override
> > > >                         public void
> > onSelectionChange(SelectionChangeEvent event) {
> > > >                                 GWT.log("getSelectedObject" +
> > > > singleSelectionModel.getSelectedObject().toString());
> > > >                         }
> > > >                 });
> > > >         }
>
> > > >         public CellTableExample() {
> > > >                 initWidget(uiBinder.createAndBindUi(this));
>
> > > >                 // name column
> > > >                 Column nameCol = new Column > String>(
> > > >                                 new TextInputCell()){
> > > >                         public String getValue(Person object) {
> > > >                                 return object.getName();
> > > >                         }
> > > >                 };
>
> > > >                 nameCol.setFieldUpdater(new FieldUpdater > String>() {
> > > >                         public void update(int index, Person object,
> > String value) {
> > > >                                 object.setName(value);
> > > >                         }
> > > >                 });
>
> > > >                 // title column
> > > >                 Column forenameCol = new Column > String>(
> > > >                                 new TextInputCell()){
> > > >                         public String getValue(Person object) {
> > > >                                 return object.getForeName();
> > > >                         }
> > > >                 };
>
> > > >                 forenameCol.setFieldUpdater(new FieldUpdater > String>() {
> > > >                         public void update(int index, Person object,
> > String value) {
> > > >                                 object.setForeName(value);
> > > >                         }
> > > >                 });
>
> > > >                 /*
> > > >                  * add check column
> > > >                  */
> > > >                 Column cbCol = new Column > Boolean>(new
> > > >CheckboxCell()) {
> > > >                         public Boolean getValue(Person object) {
> > > >                                 GWT.log("cbCol.getValue: " +
> > Boolean.FALSE);
> > > >                                 return object.isSelected();
> > > >                         }
> > > >                 };
>
> > > >                 cbCol.setFieldUpdater(new FieldUpdater > Boolean>() {
> > > >                         public void update(int index, Person object,
> > Boolean value) {
> > > >                                 GWT.log("cbCol.setValue: " + value);
> > > >                                 object.setSelected(value);
> > > >                         }
> > > >                 });
>
> > > >                 // Add the columns.
> > > >                 ct.addColumn(forenameCol, "Forname");
> > > >                 ct.addColumn(nameCol, "Name");
> > > >                 ct.addColumn(cbCol, "Check");
>
> > > >             // Set the width of the table and put the table in fixed
> > width
> > > > mode.
> > > >                 ct.setWidth("100%", true);
>
> > > >             // Set the width of each column.
> > > >                 ct.setColumnWidth(forenameCol, 200.0, Uni

Re: weird production compile problem

2011-06-14 Thread pansen
thx juan, sorry for the noise. i found out 1 hour ago that the problem
is with 99% percent probabilty related to restygwt. i'm happy i found
this, now we'll see if i can fix it ;)

keep you updated.

cheers, andi

On 14 Jun., 20:21, Juan Pablo Gardella 
wrote:
> Are you use third gwt libraries ? for example gin, etc.? What version of gwt
> are you use?
>
> 2011/6/14 pansen 
>
>
>
>
>
>
>
> > hey guys,
>
> > i think we have a massive problem with the generated js sources for
> > production. we built a larger app and since now all worked like a
> > charm, we had not a single stopper.
>
> > at the moment there is a strange issue. when i use the static app it
> > seems like there is a confusion about the generic-type or the content
> > of it. let me first show you the gwttest i wrote to let you see what
> > happens::
>
> > package net.vz.common.widgets.client.profile.lastvisitors;
>
> > import java.util.List;
> > import java.util.logging.Logger;
>
> > import net.vz.common.services.client.registry.Registry;
> > import net.vz.common.services.client.restdto.GenericListDto;
> > import net.vz.common.services.client.restdto.MinUserDto;
> > import net.vz.common.services.client.restservice.UserService;
> > import
> > net.vz.common.services.client.resty.vzcore.SimpleMethodCallback;
> > import net.vz.common.widgets.client.bundles.UnifiedResources;
> > import net.vz.common.widgets.client.i18n.LocalMessages;
> > import net.vz.common.widgets.client.listitem.GenericImageSlider;
> > import net.vz.common.widgets.client.listitem.GenericList;
> > import net.vz.common.widgets.client.listitem.renderer.MinUserRenderer;
> > import
> > net.vz.common.widgets.client.simpleItem.inject.SimpleItemModule;
> > import net.vz.common.widgets.client.toolbox.custompanels.ListPanel;
> > import net.vz.common.widgets.client.toolbox.slideBar.SlideBarActivity;
> > import net.vz.common.widgets.client.toolbox.slideBar.SlideBarView;
> > import net.vz.common.widgets.client.toolbox.slideBar.SlideBarViewImpl;
>
> > import org.fusesource.restygwt.client.Method;
>
> > import com.google.gwt.core.client.GWT;
> > import com.google.gwt.event.shared.SimpleEventBus;
> > import com.google.gwt.junit.client.GWTTestCase;
> > import com.google.gwt.user.client.ui.AcceptsOneWidget;
> > import com.google.gwt.user.client.ui.SimplePanel;
>
> > /**
> >  * try to reconstruct a production bug which seems to be caused by
> > wrong typing
> >  * from gwt??!
> >  *
> >  * @author abalke
> >  */
> > public class ProfileLastVisitorsActivityTestGwt extends GWTTestCase {
>
> >    private static final String userKey = "U:test_user";
>
> >    @Override
> >    public String getModuleName() {
> >        return SimpleItemModule.MODULE_NAME;
> >    }
>
> >    public void testDo() {
> >        LocalMessages localMessages = GWT.create(LocalMessages.class);
> >        UnifiedResources unifiedResources = new UnifiedResources();
>
> >        ListPanel ul = GWT.create(ListPanel.class);
> >        SlideBarView sidebarView = GWT.create(SlideBarViewImpl.class);
> >        SlideBarActivity slideBarActivity = new
> > SlideBarActivity(sidebarView);
> >        GenericList genericLinkList = new
> > GenericList(unifiedResources);
> >        GenericImageSlider slider = new
> > GenericImageSlider(
> >                ul, slideBarActivity, genericLinkList,
> > unifiedResources);
>
> >        ProfileLastVisitorsViewImpl__ view =
> >            new ProfileLastVisitorsViewImpl__(localMessages);
> >        UserService userService = GWT.create(UserService.class);
> >        MinUserRenderer renderer = new MinUserRenderer();
>
> >        AcceptsOneWidget panel = new SimplePanel();
> >        SimpleEventBus eventBus = new SimpleEventBus();
> >        ProfileLastVisitorsActivity a = new
> > ProfileLastVisitorsActivity(
> >                view, userService, slider, renderer) {
> >            protected void loadLastVisitors(String userId) {
> >                userService.getLastVisitors(userId, new
> > SimpleMethodCallback>() {
> >                    @Override
> >                    public void onSuccess(Method method,
> > GenericListDto response) {
> >                        List items = response.getItems();
> >                        if (Registry.canLog()) {
>
> > Logger.getLogger(ProfileLastVisitorsActivity.class.getName())
> >                                .info("got a list of " +
> > MinUserDto.class + ": " );
>
> > Logger.getLogger(ProfileLastVisitorsActivity.class.getName())
> >                                .info("... " + items.get(0));
> >                        }
> >                        slider.render(items);
>
> > view.setLastVisitorsOverallCount(response.getCount());
> >                        view.show(true);
>
> >                        // in production, here is a wrong type
> >                        assertEquals(MinUserDto.class,
> > items.get(0).getClass());
> >                        assertEquals(true,
> > ((ProfileLastVisitorsViewImpl__)view).getShowState());
> >                        finishTes

How does registerForProxyType works

2011-06-14 Thread Aldo Neto
Hi,

I need to implement a dynamic table that is populated based on values of a
given entity on the server by many clients simultaneously. I thought
that registerForProxyType() would solve all problems of mine, but then I
made some quick tests and found that it is not called when a different
client performs changes to that table. Is this correct? I mean, If I have 2
persons working on the same table and one updates an entry there, should I
expect to be notified on both clients? If not, is there an easy way to do
that?

Thanks,
Aldo

-- 
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.



Re: How does registerForProxyType works

2011-06-14 Thread Juan Pablo Gardella
If you propage a event via eventBus don't work?

2011/6/14 Aldo Neto 

> Hi,
>
> I need to implement a dynamic table that is populated based on values of a
> given entity on the server by many clients simultaneously. I thought
> that registerForProxyType() would solve all problems of mine, but then I
> made some quick tests and found that it is not called when a different
> client performs changes to that table. Is this correct? I mean, If I have 2
> persons working on the same table and one updates an entry there, should I
> expect to be notified on both clients? If not, is there an easy way to do
> that?
>
> Thanks,
> Aldo
>
> --
> 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.



Re: ArrayOutOfBoundsException in editor 2.3

2011-06-14 Thread Juan Pablo Gardella
Can you make a sample?

2011/6/14 Ann Smith 

> hi
>
> before I spend all night debugging  maybe someone can share his
> experience with me.
> Problem:
> gwt 2.2 code works fine -> 2.3 in a single method use of
> editor.edit(proxy,context) throws me ArrayOutOfBoundsException
>
> Anyone has had it too?
>
> regards
>
> --
> 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.



ArrayOutOfBoundsException in editor 2.3

2011-06-14 Thread Ann Smith
hi

before I spend all night debugging  maybe someone can share his
experience with me.
Problem:
gwt 2.2 code works fine -> 2.3 in a single method use of
editor.edit(proxy,context) throws me ArrayOutOfBoundsException

Anyone has had it too?

regards

-- 
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.



Re: weird production compile problem

2011-06-14 Thread Juan Pablo Gardella
Are you use third gwt libraries ? for example gin, etc.? What version of gwt
are you use?

2011/6/14 pansen 

> hey guys,
>
> i think we have a massive problem with the generated js sources for
> production. we built a larger app and since now all worked like a
> charm, we had not a single stopper.
>
> at the moment there is a strange issue. when i use the static app it
> seems like there is a confusion about the generic-type or the content
> of it. let me first show you the gwttest i wrote to let you see what
> happens::
>
> package net.vz.common.widgets.client.profile.lastvisitors;
>
> import java.util.List;
> import java.util.logging.Logger;
>
> import net.vz.common.services.client.registry.Registry;
> import net.vz.common.services.client.restdto.GenericListDto;
> import net.vz.common.services.client.restdto.MinUserDto;
> import net.vz.common.services.client.restservice.UserService;
> import
> net.vz.common.services.client.resty.vzcore.SimpleMethodCallback;
> import net.vz.common.widgets.client.bundles.UnifiedResources;
> import net.vz.common.widgets.client.i18n.LocalMessages;
> import net.vz.common.widgets.client.listitem.GenericImageSlider;
> import net.vz.common.widgets.client.listitem.GenericList;
> import net.vz.common.widgets.client.listitem.renderer.MinUserRenderer;
> import
> net.vz.common.widgets.client.simpleItem.inject.SimpleItemModule;
> import net.vz.common.widgets.client.toolbox.custompanels.ListPanel;
> import net.vz.common.widgets.client.toolbox.slideBar.SlideBarActivity;
> import net.vz.common.widgets.client.toolbox.slideBar.SlideBarView;
> import net.vz.common.widgets.client.toolbox.slideBar.SlideBarViewImpl;
>
> import org.fusesource.restygwt.client.Method;
>
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.event.shared.SimpleEventBus;
> import com.google.gwt.junit.client.GWTTestCase;
> import com.google.gwt.user.client.ui.AcceptsOneWidget;
> import com.google.gwt.user.client.ui.SimplePanel;
>
> /**
>  * try to reconstruct a production bug which seems to be caused by
> wrong typing
>  * from gwt??!
>  *
>  * @author abalke
>  */
> public class ProfileLastVisitorsActivityTestGwt extends GWTTestCase {
>
>private static final String userKey = "U:test_user";
>
>@Override
>public String getModuleName() {
>return SimpleItemModule.MODULE_NAME;
>}
>
>public void testDo() {
>LocalMessages localMessages = GWT.create(LocalMessages.class);
>UnifiedResources unifiedResources = new UnifiedResources();
>
>ListPanel ul = GWT.create(ListPanel.class);
>SlideBarView sidebarView = GWT.create(SlideBarViewImpl.class);
>SlideBarActivity slideBarActivity = new
> SlideBarActivity(sidebarView);
>GenericList genericLinkList = new
> GenericList(unifiedResources);
>GenericImageSlider slider = new
> GenericImageSlider(
>ul, slideBarActivity, genericLinkList,
> unifiedResources);
>
>ProfileLastVisitorsViewImpl__ view =
>new ProfileLastVisitorsViewImpl__(localMessages);
>UserService userService = GWT.create(UserService.class);
>MinUserRenderer renderer = new MinUserRenderer();
>
>AcceptsOneWidget panel = new SimplePanel();
>SimpleEventBus eventBus = new SimpleEventBus();
>ProfileLastVisitorsActivity a = new
> ProfileLastVisitorsActivity(
>view, userService, slider, renderer) {
>protected void loadLastVisitors(String userId) {
>userService.getLastVisitors(userId, new
> SimpleMethodCallback>() {
>@Override
>public void onSuccess(Method method,
> GenericListDto response) {
>List items = response.getItems();
>if (Registry.canLog()) {
>
> Logger.getLogger(ProfileLastVisitorsActivity.class.getName())
>.info("got a list of " +
> MinUserDto.class + ": " );
>
> Logger.getLogger(ProfileLastVisitorsActivity.class.getName())
>.info("... " + items.get(0));
>}
>slider.render(items);
>
> view.setLastVisitorsOverallCount(response.getCount());
>view.show(true);
>
>// in production, here is a wrong type
>assertEquals(MinUserDto.class,
> items.get(0).getClass());
>assertEquals(true,
> ((ProfileLastVisitorsViewImpl__)view).getShowState());
>finishTest();
>}
>});
>}
>};
>
>a.start(panel, eventBus);
>
>// the widget wants only to be loaded when this is my user
>Registry.MY_USER_ID = userKey;
>
>assertEquals(false, view.getShowState());
>a.update(userKey);
>
>delayTestFinish(5 * 1000);
>}
>
>class ProfileLastVisitorsViewImpl__ extends
> ProfileLastVisitorsViewImpl {
>
>private boolean isShow

Re: grid with CheckBoxSelectionModel

2011-06-14 Thread Juan Pablo Gardella
Check this 
thread

2011/6/14 NANOUS 

> Hi all,
> i have a problem when i use the CheckBoxSelectionModel in my grid is
> that i can't define the listener.
>
> So, i want extract information from the store when i checked some row
> from the grid ( of course with the CheckBoxSelectionModel plugin)...
>
> Someone can help me???  if there is some line of code that can help me
> i would be grateful
>
> --
> 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.



Re: How to start a web service which only return plain text with GWT?

2011-06-14 Thread Juan Pablo Gardella
For this type of service I don't recommend GWT. GWT is for RIA application.
If you need a REST service, make a servlet and return csv directly.

Read about SQL injection too.

2011/6/14 Hong Kong Youth IT Group 

> Hi everyone,
>
> I am a newbie to GWT and working on a web project which allow caller
> to query data from database with given sql:
>
> www.iamweb.com/callSQL=select NAME from CLASS_TABLE
>
> First of all, I am not sure if GWT allows to return plain text (.csv)
> instead of html?
>
> Thanks very much in adv!
>
> Adonis
>
> --
> 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.



Re: CheckBoxSelectionModel

2011-06-14 Thread Juan Pablo Gardella
In english please

2011/6/14 NANOUS 

> Bonjour,
>
> Comment je peut ajouter un ActionListener à une grid ,sachant que
> cette grid admet comme plugin un CheckBox,
> et que l'action soit en relation avec ce plugin??
>
> Merci d'avance
>
> --
> 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.



Re: weird production compile problem

2011-06-14 Thread pansen
the exception is::

java.lang.ClassCastException
at Unknown.com_google_gwt_core_client_impl_StackTraceCreator
$Collector_
$fillInStackTrace__Lcom_google_gwt_core_client_impl_StackTraceCreator
$Collector_2Ljava_lang_Throwable_2V(Unknown Source)
at
Unknown.java_lang_ClassCastException_ClassCastException__V(Unknown
Source)
at
Unknown.com_google_gwt_lang_Cast_dynamicCast__Ljava_lang_Object_2ILjava_lang_Object_2(Unknown
Source)
at
Unknown.net_vz_common_widgets_client_listitem_renderer_MinUserRenderer_render__Ljava_lang_Object_2ZLnet_vz_common_widgets_client_listitem_GenericList
$ImageSize_2Lnet_vz_common_widgets_client_bundles_UnifiedResources_2Lcom_google_gwt_user_client_ui_Widget_2(Unknown
Source)
at Unknown.net_vz_common_widgets_client_listitem_GenericList_
$addToList__Lnet_vz_common_widgets_client_listitem_GenericList_2Ljava_util_Collection_2Ljava_util_List_2(Unknown
Source)
at Unknown.anonymous(Unknown Source)
at
Unknown.net_vz_common_widgets_client_profile_lastvisitors_ProfileLastVisitorsActivity
$1_
$onSuccess__Lnet_vz_common_widgets_client_profile_lastvisitors_ProfileLastVisitorsActivity
$1_2Lorg_fusesource_restygwt_client_Method_2Lnet_vz_common_services_client_restdto_GenericListDto_2V(Unknown
Source)
at
Unknown.net_vz_common_widgets_client_profile_lastvisitors_ProfileLastVisitorsActivity
$1_onSuccess__Lorg_fusesource_restygwt_client_Method_2Ljava_lang_Object_2V(Unknown
Source)
at
Unknown.org_fusesource_restygwt_client_AbstractRequestCallback_onResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown
Source)
at
Unknown.org_fusesource_restygwt_client_callback_FilterawareRetryingCallback_onResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_Response_2V(Unknown
Source)
at Unknown.com_google_gwt_http_client_Request_
$fireOnResponseReceived__Lcom_google_gwt_http_client_Request_2Lcom_google_gwt_http_client_RequestCallback_2V(Unknown
Source)
at Unknown.com_google_gwt_http_client_RequestBuilder
$1_onReadyStateChange__Lcom_google_gwt_xhr_client_XMLHttpRequest_2V(Unknown
Source)
at Unknown.anonymous(Unknown Source)
at
Unknown.com_google_gwt_core_client_impl_Impl_apply__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(Unknown
Source)
at
Unknown.com_google_gwt_core_client_impl_Impl_entry0__Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2Ljava_lang_Object_2(Unknown
Source)
at Unknown.anonymous(Unknown Source)
at Unknown.anonymous(Unknown Source)
at Unknown.anonymous(Unknown Source)

On 14 Jun., 15:47, pansen  wrote:
> hey guys,
>
> i think we have a massive problem with the generated js sources for
> production. we built a larger app and since now all worked like a
> charm, we had not a single stopper.
>
> at the moment there is a strange issue. when i use the static app it
> seems like there is a confusion about the generic-type or the content
> of it. let me first show you the gwttest i wrote to let you see what
> happens::
>
> package net.vz.common.widgets.client.profile.lastvisitors;
>
> import java.util.List;
> import java.util.logging.Logger;
>
> import net.vz.common.services.client.registry.Registry;
> import net.vz.common.services.client.restdto.GenericListDto;
> import net.vz.common.services.client.restdto.MinUserDto;
> import net.vz.common.services.client.restservice.UserService;
> import
> net.vz.common.services.client.resty.vzcore.SimpleMethodCallback;
> import net.vz.common.widgets.client.bundles.UnifiedResources;
> import net.vz.common.widgets.client.i18n.LocalMessages;
> import net.vz.common.widgets.client.listitem.GenericImageSlider;
> import net.vz.common.widgets.client.listitem.GenericList;
> import net.vz.common.widgets.client.listitem.renderer.MinUserRenderer;
> import
> net.vz.common.widgets.client.simpleItem.inject.SimpleItemModule;
> import net.vz.common.widgets.client.toolbox.custompanels.ListPanel;
> import net.vz.common.widgets.client.toolbox.slideBar.SlideBarActivity;
> import net.vz.common.widgets.client.toolbox.slideBar.SlideBarView;
> import net.vz.common.widgets.client.toolbox.slideBar.SlideBarViewImpl;
>
> import org.fusesource.restygwt.client.Method;
>
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.event.shared.SimpleEventBus;
> import com.google.gwt.junit.client.GWTTestCase;
> import com.google.gwt.user.client.ui.AcceptsOneWidget;
> import com.google.gwt.user.client.ui.SimplePanel;
>
> /**
>  * try to reconstruct a production bug which seems to be caused by
> wrong typing
>  * from gwt??!
>  *
>  * @author abalke
>  */
> public class ProfileLastVisitorsActivityTestGwt extends GWTTestCase {
>
>     private static final String userKey = "U:test_user";
>
>     @Override
>     public String getModuleName() {
>         return SimpleItemModule.MODULE_NAME;
>     }
>
>     public void testDo() {
>         LocalMessages localMessages = GWT.create(LocalMessages.class);
>         UnifiedReso

Re: RPC and Servlet

2011-06-14 Thread Juan Pablo Gardella
Both are servlets. See
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideServerSide

2011/6/14 sam 

> What is the difference between RPC and HTTPServlet. I mean how
> differently they work when connecting to a server.
>
> Thank you
> Sam
>
> --
> 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.



Re: Null Version

2011-06-14 Thread Juan Pablo Gardella
Can you make a sample to reproduce?

On Jun 14, 12:40 pm, Pavel Byles  wrote:
> Anyone?
>
>
>
>
>
>
>
>
>
> On Mon, Jun 13, 2011 at 9:23 AM, Pavel Byles  wrote:
> > ??
>
> > On Sat, Jun 11, 2011 at 12:20 AM, Pavel Byles wrote:
>
> >> Sorry, DataNucleus.
>
> >> On Fri, Jun 10, 2011 at 5:44 AM, Juan Pablo Gardella <
> >> gardellajuanpa...@gmail.com> wrote:
>
> >>> So, what implementation of JPA are you using? EclipseLink, OpenJPA, ...
>
> >>> 2011/6/10 Pavel Byles 
>
>  Not using hibernate.
>
>  On Thu, Jun 9, 2011 at 11:33 PM, Juan Pablo Gardella <
>  gardellajuanpa...@gmail.com> wrote:
>
> > Hibernate?
>
> > 2011/6/9 Pavel Byles 
>
> >> 3.0-1.1.1
>
> >> On Thu, Jun 9, 2011 at 8:56 PM, Juan Pablo Gardella <
> >> gardellajuanpa...@gmail.com> wrote:
>
> >>> What implementation of JPA are you use?
>
> >>> 2011/6/9 Pavel Byles 
>
>  anyone?
>
>  On Wed, Jun 8, 2011 at 10:46 PM, Pavel Byles 
>  wrote:
>
> > I'm getting the following error when I'm using requestfactory with
> > locators:
>
> > The persisted entity with id 152 has a null version
>
> > I have a version column in my datastore and the following in my
> > Entity:
>
> > public Integer getVersion() {
>
> >   return this.version;
>
> > }
>
> > public void setVersion(Integer version) {
>
> >   this.version = version;
>
> > }
>
> > I also have this in my locator:
>
> > @Override
>
> > public Object getVersion(Country domainObject) {
>
> >   return domainObject.getVersion();
>
> > }
>
> > If I return 1 all the time for getVersion, everything works fine.
>
> > I have looked at all the examples I could but there aren't many and
> > tried to figure this out for a while. Things look right but doesn't 
> > seem to
> > work.
>
> > Any ideas?
>
> > --
> > -Pav
>
>  --
>  -Pav
>
>  --
>  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.
>
> >> --
> >> -Pav
>
> >> --
> >> 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.
>
>  --
>  -Pav
>
>  --
>  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.
>
> >> --
> >> -Pav
>
> > --
> > --
> > Pav
>
> --
> --
> Pav

-- 
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.

Re: Null Version

2011-06-14 Thread Pavel Byles
Anyone?

On Mon, Jun 13, 2011 at 9:23 AM, Pavel Byles  wrote:

> ??
>
>
> On Sat, Jun 11, 2011 at 12:20 AM, Pavel Byles wrote:
>
>> Sorry, DataNucleus.
>>
>>
>> On Fri, Jun 10, 2011 at 5:44 AM, Juan Pablo Gardella <
>> gardellajuanpa...@gmail.com> wrote:
>>
>>> So, what implementation of JPA are you using? EclipseLink, OpenJPA, ...
>>>
>>>
>>> 2011/6/10 Pavel Byles 
>>>
 Not using hibernate.


 On Thu, Jun 9, 2011 at 11:33 PM, Juan Pablo Gardella <
 gardellajuanpa...@gmail.com> wrote:

> Hibernate?
>
>
> 2011/6/9 Pavel Byles 
>
>> 3.0-1.1.1
>>
>>
>> On Thu, Jun 9, 2011 at 8:56 PM, Juan Pablo Gardella <
>> gardellajuanpa...@gmail.com> wrote:
>>
>>> What implementation of JPA are you use?
>>>
>>> 2011/6/9 Pavel Byles 
>>>
 anyone?

 On Wed, Jun 8, 2011 at 10:46 PM, Pavel Byles 
 wrote:

> I'm getting the following error when I'm using requestfactory with
> locators:
>
>
> The persisted entity with id 152 has a null version
>
> I have a version column in my datastore and the following in my
> Entity:
>
>
> public Integer getVersion() {
>
>   return this.version;
>
> }
>
>
> public void setVersion(Integer version) {
>
>   this.version = version;
>
> }
>
> I also have this in my locator:
>
> @Override
>
> public Object getVersion(Country domainObject) {
>
>   return domainObject.getVersion();
>
> }
>
> If I return 1 all the time for getVersion, everything works fine.
>
> I have looked at all the examples I could but there aren't many and
> tried to figure this out for a while. Things look right but doesn't 
> seem to
> work.
>
> Any ideas?
>
> --
> -Pav
>
>


 --
 -Pav

 --
 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.
>>>
>>
>>
>>
>> --
>> -Pav
>>
>> --
>> 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.
>



 --
 -Pav

 --
 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.
>>>
>>
>>
>>
>> --
>> -Pav
>>
>
>
>
> --
> --
> Pav
>



-- 
--
Pav

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolk

CellTree with SingleSelectionModel will not fire event for root node (GWT 2.3)

2011-06-14 Thread Jens
Hi

I have a CellTree with a SingleSelectionModel, when i click the root
node it gets visually selected but does not fire a
SelectionChangeEvent, the problem is only for the root element.

Has anyone else discovered (is it by design / a bug / me that screwed
up).

My example is quite simple but i cannot post the code as is, but i can
clean it up and post it if required.

Best regards Jens

-- 
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.



Wave rich text editor

2011-06-14 Thread Anton Starcev
Hello all,

Trying to extract rich text editor from the Wave, stuck with a compilation 
error:

  
  
   
... 

gwt compile produce: 
java 
Compiling module ru.artlebedev.ast.Admin 
   [ERROR] Errors in 
'jar:file:/mnt/sda1/projects/appengine/nucleus-app/war/WEB-INF/lib/client-common-src.jar!/org/waveprotocol/wave/client/common/util/UserAgentStaticProperties.java'
 
  [ERROR] Line 57: Rebind result 
'org.waveprotocol.wave.client.common.util.UserAgentStaticProperties' cannot 
be abstract 
   [ERROR] Cannot proceed due to previous errors 

When I replace in waveprotocol project in 
org.waveprotocol.wave.client.common.util.UserAgentStaticProperties string:
return GWT.create(UserAgentStaticProperties.class);

with:
return new FirefoxImpl();
everything is going well

Can anyone help?

-- 
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/-/sxRSjlRXTYMJ.
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.



CheckBoxSelectionModel

2011-06-14 Thread NANOUS
Bonjour,

Comment je peut ajouter un ActionListener à une grid ,sachant que
cette grid admet comme plugin un CheckBox,
et que l'action soit en relation avec ce plugin??

Merci d'avance

-- 
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.



Re: Wave rich text editor

2011-06-14 Thread Anton Starcev
I didn't receive email notification, but I'm subscribed to the wave-dev 
mailing list now, thnx

-- 
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/-/BzyAjGuwa6IJ.
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.



How to start a web service which only return plain text with GWT?

2011-06-14 Thread Hong Kong Youth IT Group
Hi everyone,

I am a newbie to GWT and working on a web project which allow caller
to query data from database with given sql:

www.iamweb.com/callSQL=select NAME from CLASS_TABLE

First of all, I am not sure if GWT allows to return plain text (.csv)
instead of html?

Thanks very much in adv!

Adonis

-- 
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.



RPC and Servlet

2011-06-14 Thread sam
What is the difference between RPC and HTTPServlet. I mean how
differently they work when connecting to a server.

Thank you
Sam

-- 
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.



Licensing

2011-06-14 Thread SS
When reading the licensing agreement (terms)
I found a reference to the Browser Detect Code as follows

Browser Detect v2.1.6   Creative Commons Attribution 1.0
google-web-toolkit.googlecode.com; transliterated into Java source

and also came across

Protocol BuffersNew BSD License
code.google.com/p/protobuf

How does this impact Commercial Software development? Both these
licenses are not acceptable to our company and was wondering whether
it would impact developing the software in GWT...

Thanks for your help in advance

-- 
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.



grid with CheckBoxSelectionModel

2011-06-14 Thread NANOUS
Hi all,
i have a problem when i use the CheckBoxSelectionModel in my grid is
that i can't define the listener.

So, i want extract information from the store when i checked some row
from the grid ( of course with the CheckBoxSelectionModel plugin)...

Someone can help me???  if there is some line of code that can help me
i would be grateful

-- 
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.



Re: GWT pluggable GUIs

2011-06-14 Thread lemaiol
Hi Jaroslav,

Are you still interested on this topic? Maybe have a look at:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/42062c7f6cf8989b/e29d37a5f737d34e?lnk=gst&q=pluggable#e29d37a5f737d34e
and give feedback.

cheers,
Berto

On May 5, 10:51 am, Jaroslav Urban  wrote:
> Hello,
>
> I'm investigating the possibility to use GWT in our project. One of
> the requirements is the ability for extensible GUIs and possibly
> domain classes. I have the impression that it's not really possible
> (e.g. 
> seehttp://stackoverflow.com/questions/814647/is-it-possible-to-create-dy...).
>
> Let me explain our use case in more detail - basically we'd like our
> application to be extensible similarly to Eclipse platform. So the
> application would define a set of extension points that can be
> extended by plugins. One specific example - the application works with
> configurable entities that are configured via properties. The
> properties are typed (e.g. "file path" property has the type
> "fileURL") and each type can have a specific editing GUI (file
> selection dialog in case of the file path). We need the ability of
> plugins to describe such configurable entities, and define new types
> of the properties with possibly new editing GUIs. From the point of
> view of the plugin it would register something like "complexType" type
> with its editing GUI provided by "ComplexTypeEditor" class.
>
> In effect the application would consist of a set of plugins - we don't
> necessarily need the plugins to be loadable at run-time (restart of
> the application might be OK). My impression is this is not possible
> because the GWT compiler takes all modules of the application and
> creates one big JavaScript (for each permutation). This would mean
> that kind-of plugin-ability would be possible only at compile time -
> the resulting application cannot be freely composed of plugins.
>
> Best regards,
> Jaroslav Urban

-- 
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.



Local filesystem access

2011-06-14 Thread gwt_user
Hi,

We need to be able to access physical files system from GWT
application. Does anyone have any suggestions?

Thanks!

-- 
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.



Re: Local filesystem access

2011-06-14 Thread Juan Pablo Gardella
I think you can use gwt4air (use flash) .

Juan

2011/6/14 gwt_user 

> Hi,
>
> We need to be able to access physical files system from GWT
> application. Does anyone have any suggestions?
>
> Thanks!
>
> --
> 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.



weird production compile problem

2011-06-14 Thread pansen
hey guys,

i think we have a massive problem with the generated js sources for
production. we built a larger app and since now all worked like a
charm, we had not a single stopper.

at the moment there is a strange issue. when i use the static app it
seems like there is a confusion about the generic-type or the content
of it. let me first show you the gwttest i wrote to let you see what
happens::

package net.vz.common.widgets.client.profile.lastvisitors;

import java.util.List;
import java.util.logging.Logger;

import net.vz.common.services.client.registry.Registry;
import net.vz.common.services.client.restdto.GenericListDto;
import net.vz.common.services.client.restdto.MinUserDto;
import net.vz.common.services.client.restservice.UserService;
import
net.vz.common.services.client.resty.vzcore.SimpleMethodCallback;
import net.vz.common.widgets.client.bundles.UnifiedResources;
import net.vz.common.widgets.client.i18n.LocalMessages;
import net.vz.common.widgets.client.listitem.GenericImageSlider;
import net.vz.common.widgets.client.listitem.GenericList;
import net.vz.common.widgets.client.listitem.renderer.MinUserRenderer;
import
net.vz.common.widgets.client.simpleItem.inject.SimpleItemModule;
import net.vz.common.widgets.client.toolbox.custompanels.ListPanel;
import net.vz.common.widgets.client.toolbox.slideBar.SlideBarActivity;
import net.vz.common.widgets.client.toolbox.slideBar.SlideBarView;
import net.vz.common.widgets.client.toolbox.slideBar.SlideBarViewImpl;

import org.fusesource.restygwt.client.Method;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.user.client.ui.AcceptsOneWidget;
import com.google.gwt.user.client.ui.SimplePanel;

/**
 * try to reconstruct a production bug which seems to be caused by
wrong typing
 * from gwt??!
 *
 * @author abalke
 */
public class ProfileLastVisitorsActivityTestGwt extends GWTTestCase {

private static final String userKey = "U:test_user";

@Override
public String getModuleName() {
return SimpleItemModule.MODULE_NAME;
}

public void testDo() {
LocalMessages localMessages = GWT.create(LocalMessages.class);
UnifiedResources unifiedResources = new UnifiedResources();

ListPanel ul = GWT.create(ListPanel.class);
SlideBarView sidebarView = GWT.create(SlideBarViewImpl.class);
SlideBarActivity slideBarActivity = new
SlideBarActivity(sidebarView);
GenericList genericLinkList = new
GenericList(unifiedResources);
GenericImageSlider slider = new
GenericImageSlider(
ul, slideBarActivity, genericLinkList,
unifiedResources);

ProfileLastVisitorsViewImpl__ view =
new ProfileLastVisitorsViewImpl__(localMessages);
UserService userService = GWT.create(UserService.class);
MinUserRenderer renderer = new MinUserRenderer();

AcceptsOneWidget panel = new SimplePanel();
SimpleEventBus eventBus = new SimpleEventBus();
ProfileLastVisitorsActivity a = new
ProfileLastVisitorsActivity(
view, userService, slider, renderer) {
protected void loadLastVisitors(String userId) {
userService.getLastVisitors(userId, new
SimpleMethodCallback>() {
@Override
public void onSuccess(Method method,
GenericListDto response) {
List items = response.getItems();
if (Registry.canLog()) {
 
Logger.getLogger(ProfileLastVisitorsActivity.class.getName())
.info("got a list of " +
MinUserDto.class + ": " );
 
Logger.getLogger(ProfileLastVisitorsActivity.class.getName())
.info("... " + items.get(0));
}
slider.render(items);
 
view.setLastVisitorsOverallCount(response.getCount());
view.show(true);

// in production, here is a wrong type
assertEquals(MinUserDto.class,
items.get(0).getClass());
assertEquals(true,
((ProfileLastVisitorsViewImpl__)view).getShowState());
finishTest();
}
});
}
};

a.start(panel, eventBus);

// the widget wants only to be loaded when this is my user
Registry.MY_USER_ID = userKey;

assertEquals(false, view.getShowState());
a.update(userKey);

delayTestFinish(5 * 1000);
}

class ProfileLastVisitorsViewImpl__ extends
ProfileLastVisitorsViewImpl {

private boolean isShown = false;

public ProfileLastVisitorsViewImpl__(LocalMessages
localMessages) {
super(localMessages);
}

@Override
public void show(boolean b) {
isShown = b;
super.show(b);
}

public boolean getShowState() {
 

Re: How to set lable of Textbox

2011-06-14 Thread Juan Pablo Gardella
The label is Label
component
or 
InlineLabel.
Read layout 
guide
to
see how arrange your components.

Juan

2011/6/14 Sanjay Jain India 

> Hello all
> I am using GWT2.3.In this I want to create a form.For This I used a
> form panel and texbox.Textbox is for the User Name purpose.So I want
> to set the label of text box.But there no way to set label.
> I want label at the left side of the text box.
>
> Please help me how to set label, So It come left to text box.
> Thanks In Advance
>
> --
> 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.



Intercept basic authentication popup

2011-06-14 Thread Vinicius Carvalho
Hi there!

Is it possible to intercept the basic auth login that pops up on a
browser? My problem is that I have a basic auth set on server side for
all my services (RPC and REST).

When I try to invoke a service and the user is not authenticated,
before I get the chance (the async callback gets called), the window
pops up.

What I would like (I know i could do this using either form, or spring
security for instance) is to intercept the return from the server that
asks for the authorization credentials, and then provide my
credentials on the requestbuilder by setting username/password.

Is this possible?

-- 
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.



Re: CheckboxCell 2 clicks for selection, when using SingleSelectionModel

2011-06-14 Thread Juan Pablo Gardella
The only difference I see is addSelectionChangeHandler. I don't see an
error, sorry

2011/6/14 bb.f.pav 

> Hi Patrick,
>
> unfortunately i'll need the single selection model for the purpose of
> the project ;)
>
> Thx
> bb.f.pav
>
> On 13 Jun., 22:42, Patrick Tucker  wrote:
> > If you don't need the selection model, try NoSelectionModel.
> >
> > On Jun 13, 2:56 pm, "bb.f.pav"  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi Juan,
> >
> > > 1) i'm not yet reached that point. i'm using the stockwatcher examples
> > > as basis for my celltable example and run it via eclipse as web
> > > application
> > > that's my module.gwt.xml
> >
> > > 
> > > 
> > >   
> > >   
> >
> > >   
> > >   
> > >   
> > >   
> >
> > >   
> > >> > class='de.f10rian.mySampleGwtOhneMaven.client.MySampleGwtOhneMaven'/>
> >
> > >   
> > >   
> > >   
> >
> > > 
> >
> > > 2) Here is my CellTableExample code. hopefully you'll see my error:
> >
> > > public class CellTableExample extends Composite {
> >
> > > private static CellTableExampleUiBinder uiBinder = GWT
> > > .create(CellTableExampleUiBinder.class);
> >
> > > interface CellTableExampleUiBinder extends
> > > UiBinder {
> > > }
> >
> > > @UiField
> > > CellTable ct;
> >
> > > List checkBoxSelectedIds = new ArrayList();
> >
> > > private final ListDataProvider dataProvider = new
> > > ListDataProvider();
> > > private final SingleSelectionModel singleSelectionModel
> = new
> > > SingleSelectionModel();
> >
> > > {
> > > singleSelectionModel.addSelectionChangeHandler(new
> Handler() {
> > > @Override
> > > public void
> onSelectionChange(SelectionChangeEvent event) {
> > > GWT.log("getSelectedObject" +
> > > singleSelectionModel.getSelectedObject().toString());
> > > }
> > > });
> > > }
> >
> > > public CellTableExample() {
> > > initWidget(uiBinder.createAndBindUi(this));
> >
> > > // name column
> > > Column nameCol = new Column String>(
> > > new TextInputCell()){
> > > public String getValue(Person object) {
> > > return object.getName();
> > > }
> > > };
> >
> > > nameCol.setFieldUpdater(new FieldUpdater String>() {
> > > public void update(int index, Person object,
> String value) {
> > > object.setName(value);
> > > }
> > > });
> >
> > > // title column
> > > Column forenameCol = new Column String>(
> > > new TextInputCell()){
> > > public String getValue(Person object) {
> > > return object.getForeName();
> > > }
> > > };
> >
> > > forenameCol.setFieldUpdater(new FieldUpdater String>() {
> > > public void update(int index, Person object,
> String value) {
> > > object.setForeName(value);
> > > }
> > > });
> >
> > > /*
> > >  * add check column
> > >  */
> > > Column cbCol = new Column Boolean>(new
> > >CheckboxCell()) {
> > > public Boolean getValue(Person object) {
> > > GWT.log("cbCol.getValue: " +
> Boolean.FALSE);
> > > return object.isSelected();
> > > }
> > > };
> >
> > > cbCol.setFieldUpdater(new FieldUpdater Boolean>() {
> > > public void update(int index, Person object,
> Boolean value) {
> > > GWT.log("cbCol.setValue: " + value);
> > > object.setSelected(value);
> > > }
> > > });
> >
> > > // Add the columns.
> > > ct.addColumn(forenameCol, "Forname");
> > > ct.addColumn(nameCol, "Name");
> > > ct.addColumn(cbCol, "Check");
> >
> > > // Set the width of the table and put the table in fixed
> width
> > > mode.
> > > ct.setWidth("100%", true);
> >
> > > // Set the width of each column.
> > > ct.setColumnWidth(forenameCol, 200.0, Unit.PX);
> > > ct.setColumnWidth(nameCol, 50.0, Unit.PCT);
> > > ct.setColumnWidth(cbCol, 50.0, Unit.PCT);
> >
> > > ct.setSelectionModel(this.singleSelectionModel);
> > > dataProvider.addDataDisplay(ct);
> >
>

Re: GXT : Out of memory error

2011-06-14 Thread Shawn Brown
> I am new to GXT development.We have used GXT in our project. However, on
> running the hosted mode in debug I encounter Out of memory error very
> frequently. Is there any thing which i can do to prevent this or minimize
> the frequency of occurance?
> Any tweaks for this?


Can't you go to Run Configurations (to configure hosted mode) and set
more memory as a VM argument?  Well that assumes you use Eclipse.  I
have -Xmx512m and it never has a problem.

If that doesn't work, I'd try setting a  VM argument under Advanced
when you click to compile the project.  I"m not sure if the settings
get carried over to developer mode though, so that's why I'd set it
directly first.

-- 
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.



Re: Wave rich text editor

2011-06-14 Thread Thomas Broyer
Your bug report  actually 
had answers… on the wave-dev mailing list!
See 
http://mail-archives.apache.org/mod_mbox/incubator-wave-dev/201106.mbox/%3cbanlktinwsi4mpu3dgwvqpvhxr4kmz0nzr0eiqzwch9zdimx...@mail.gmail.com%3E
 (also, 
read the associated thread)

If you want to reuse the Editor though, the module you actually need is 
org.waveprotocol.wave.client.editor.Editor. And you'll probably also need 
org.waveprotocol.wave.model.Model (and 
org.waveprotocol.wave.model.account.Account and 
org.waveprotocol.wave.model.supplement.Supplement or you'll have a bunch of 
errors on the console; it won't make you build fail though, unless you build 
in -strict mode)
EditorHarness is, as its name suggest, the GWT *application* that allows 
devs to test the Editor. It's a good start to understand how to bootstrap 
the editor, but it's not a reusable module.

-- 
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/-/NpGb-9lzmNMJ.
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.



How to set lable of Textbox

2011-06-14 Thread Sanjay Jain India
Hello all
I am using GWT2.3.In this I want to create a form.For This I used a
form panel and texbox.Textbox is for the User Name purpose.So I want
to set the label of text box.But there no way to set label.
I want label at the left side of the text box.

Please help me how to set label, So It come left to text box.
Thanks In Advance

-- 
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.



Re: Displaying only part of an image using GWT Image Widget

2011-06-14 Thread redjhawk
Um, last parenthesis was not showed in the link... method is
setVisibleRect

On Jun 12, 9:49 pm, Jim Douglas  wrote:
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...)
>
> On Jun 12, 12:19 pm, Noor  wrote:
>
>
>
>
>
>
>
> > I want to display only part of image using the GWT Image widget;
> > for e.g. for an image of 400X400, I want to use an image widget to
> > display only the top left 100x100 px. I want to do this for a puzzle,
> > check thishttp://i.stack.imgur.com/4BVoi.png

-- 
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.



Re: RequestFactory causing OutOfMemoryError

2011-06-14 Thread khiem nguyen
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b16e9efa51b6/4e7c898492471c12?hl=en&lnk=gst&q=leak#4e7c898492471c12

On Tue, Jun 14, 2011 at 9:21 AM, Julian Scheid wrote:

> On Tue, Jun 14, 2011 at 7:18 PM, Filip Krygowski
>  wrote:
> > I took a long and careful look at the heap and after some analysis I
> > noticed that the Longs I’ve been sending don’t get garbage-collected
> > (also true for other types stored in lists, which I checked later).
> > The same goes for all serialized properties (the ‘message’ String and
> > Longs). The questions at this point is: is this some kind of caching
> > feature that backfires on us? Or is it possible that we messed up
> > configuration at some point? Or perhaps this is a new bug?
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=6193
>
> --
> 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.



Re: RequestFactory causing OutOfMemoryError

2011-06-14 Thread Julian Scheid
On Tue, Jun 14, 2011 at 7:18 PM, Filip Krygowski
 wrote:
> I took a long and careful look at the heap and after some analysis I
> noticed that the Longs I’ve been sending don’t get garbage-collected
> (also true for other types stored in lists, which I checked later).
> The same goes for all serialized properties (the ‘message’ String and
> Longs). The questions at this point is: is this some kind of caching
> feature that backfires on us? Or is it possible that we messed up
> configuration at some point? Or perhaps this is a new bug?

http://code.google.com/p/google-web-toolkit/issues/detail?id=6193

-- 
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.



RequestFactory causing OutOfMemoryError

2011-06-14 Thread Filip Krygowski
Hi!

We've recently been trying to switch from GWT-RPC to RequestFactory
and we've been generally successful. However, we’ve noticed that after
quite a large number of requests (depending on the volume of data
sent) the server was running out of memory. I set up a test project to
investigate and came up with this simple class:

public class SampleMessage {
private String message;
private List numbers;

// getters and setters cut for brevity
}

and a client-side ValueProxy for it. Regardless of the size of the
data sent per request (controlled by the number of  Longs in the
list), we were still running out of memory, both in development mode
and with compiled code deployed on a server. Later I’ve come across
this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=6193
; thinking it might be related, I checked out the GWT trunk, built the
jars and used those, but that didn’t help.

I took a long and careful look at the heap and after some analysis I
noticed that the Longs I’ve been sending don’t get garbage-collected
(also true for other types stored in lists, which I checked later).
The same goes for all serialized properties (the ‘message’ String and
Longs). The questions at this point is: is this some kind of caching
feature that backfires on us? Or is it possible that we messed up
configuration at some point? Or perhaps this is a new bug?

Thanks in advance for all replies,
Filip Krygowski

-- 
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.