Re: Reusing widgets across mvp views

2011-11-27 Thread Thomas Lefort
Hi Thanks. You are probably right. It's really the model I want to
reuse and not the presentation. It's just handy sometimes to reuse the
same widget.

Anyway, I sorted it out, for the time being, by calling a view
interface method in my activity start method that reattaches those
common widgets to the view being viewed. It's far from satisfactory
though, as for example I cannot use those widgets in Uibinder anymore,
I need some placeholder panel.

I'll see in the long run how it goes, if it is useful and if I find a
better pattern.

On Nov 27, 2:04 am, Andrei vol...@spiraluniverseinc.com wrote:
 Thomas,

 You have an interesting idea. I am not sure, however, how much you are
 going to win by trying to reuse a single copy of a widget. I have some
 very complex widgets in my app, and they render very quickly (I must
 add I use plain GWT). If I ever notice a delay, it's caused by loading
 data, not rendering of widgets. I also don't think you will get any
 reduction in the compile code size - may be a few bytes here and there
 - as long as you create your own custom widgets and reuse them
 consistently throughout the app. So, unless I miss something, just
 define your own custom widgets and use them in your code and in the
 Ui:Binder.

 Andrei

-- 
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: Datepicker with multiselect

2011-11-27 Thread Deepak Singh
Hi Eric,

I also need this multi select datepicker.
Can release the component or send the source code to us.

Thanks
Deepak

On Mon, Jun 27, 2011 at 5:54 PM, Dmitry Tikhomirov chani.l...@gmail.comwrote:

 Hi Erik,

 Have you realese your multi-select DatePicker ?

 Thanks




 17.05.2011, в 21:09, Erik Uzureau написал(а):

 :-) Ok great to hear. I'm a little tied up this week but I'll see about
 getting that process started next week at the latest


 Erik Uzureau
 *France: *+33.6.85.96.94.08
 *USA: *+1.312.927.5644


 On Tue, May 17, 2011 at 15:19, Dmitry Tikhomirov chani.l...@gmail.comwrote:

 Yes, We need it !


 17.05.2011, в 17:05, Juan Pablo Gardella написал(а):

 Yes! Very useful.

 2011/5/17 Erik Uzureau euz...@gmail.com

 Hello Dmitry,

 We built a date picker that can handle the selection of date ranges (for
 the hospitality industry).

 We basically forked the generic GWT one to add the support for
 multi-select and the range display.
 It's not the most optimised code in the world but it gets the job
 done

 You can see it live running here: https://demo.reztrip.com/

 We were thinking about taking the code and open sourcing it. Would this
 be useful to you? Others?

 Erik Uzureau
 **

 On Thu, May 5, 2011 at 16:39, Juan Pablo Gardella 
 gardellajuanpa...@gmail.com wrote:

 See multiselect calendar in 
 jqueryhttp://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/ and
 see gwtquery http://code.google.com/p/gwtquery/ (jquery ported to
 GWT). You can try with this to integrate to your application.

 2011/5/5 Dmitry Tikhomirov chani.l...@gmail.com

 Hi all,

 Does anyone know any Datepicker with multiselect support. I need
 ability to select several dates.

 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.



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



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




-- 
Deepak Singh

-- 
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: Adding Buttons to DialogBox

2011-11-27 Thread Ovidiu Mihaescu
Any reason you're using DOM and Element to do this? Why not just
setWidget(2,1,okButton)?

Vid

On Fri, Nov 25, 2011 at 7:37 AM, John Maitland
jfgmaitl...@googlemail.com wrote:
 Could anyone suggest why the Click Event doesn't fire in the following
 example code?

 Many thanks

 John

 public class OKDialog extends DialogBox {

    public OKDialog() {

        Button okButton = new Button(OK);

        //add a button in dialogBottomCenterInner div
        Element bottomMiddle = getCellElement(2, 1);

        okButton.removeFromParent();
        remove(okButton);

        // Add the buttons to the top row of the decorator panel. We
 need to
        // logically adopt the caption so we can catch click events.
        DOM.appendChild(bottomMiddle,
 okButton.asWidget().getElement());
        adopt(okButton.asWidget());

        okButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                GWT.log(Clicked!);
            }
        });
   }
 }

 --
 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: Problem in viewing ui.xml in designer mode.

2011-11-27 Thread Eric Clayberg (Google)
You have a JDK version mismatch between the JDK you are using to run 
Eclipse and the one you are using to compile your code. Make sure you are 
running Eclipse with the latest JDK.

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



Help with ClientBundle: neighbour @sprite offsets dependencies

2011-11-27 Thread Vitrums
I've got 5 sprites in a row. How can I get left offsets for the 3rd and 4th 
elements using early binding? I'm trying to do something like calculate a 
sum of 1st and 2nd images widths, using 
value('imageResource.getWidth','px') function or anything of that kind... 
but didn't manage to find any solution to evaluate those expressions( If 
there was no workaround, would there at least be a way to implement some 
custom generator as a plug-in over proprietary GWT css processing facility?

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



shall we define a HorizontalPanel in ui.xml?

2011-11-27 Thread wahaha
in ui.xml,should we define a HorizontalPanel with some sub widget in
it?
i fond that the HorizontalPanel class does not extend the Composit
class,so it does not have a initWidget() method.

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



How to access gtalk friend list in google web tookit?

2011-11-27 Thread sunny bansal
Hi,

I am builing an application using GWT. I want to access the friend
list/emailids of the user who is logged into the application using his
gmail account. How I can achieve this?

Any help will be appreciated.

Regards
Sunny

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



GWT Event Bus basics

2011-11-27 Thread Alex Tretyakov
Hello!
I have created a post about creating a simple GWT app that uses Event
Bus: http://alextretyakov.blogspot.com/2011/11/gwt-event-bus-basics.html

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



CellTable Selection advice needed

2011-11-27 Thread Cassio
Hey, I have recently started working into GWT and directly run in a
problem:

I want to make a week scheduler and  after searching for a way to
display the dates I found the CellTable.
So I wanted to have each column of the table represent a day and each
row a timespan.

Also when clicking on a cell, a dialog to edit its data should pop up.

When trying to implement this I was unable to get a selection event
from more than one previously specified column, as when selecting a
cell you only get the row object back and no ID of the column.
Probably this is my bad due to a wrong way of implementing the dates:
row1 = Date[]{Monday1,Tuesday1,}

Now I wonder if there is a better way to represent such data, if there
is a way to get the column ID, or if I need use cells that process the
click events themselves (ClickableTextCell?).

/
Cassio

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



Include google calendar into an existing gwt application

2011-11-27 Thread hugues2
Hi,

Maybe obvious but I'd like to add a google calendar into an existing
application.


Basic use case is the following :

- User logs-in via the gwt application (verification is already done
through Oauth2 on the back-end)

- The menu is displayed via different possibilities including showing
the calendar

- If the user clicks on the calendar link, the calendar is shown
within the application (not opening another window)

I know it is possible to show a calendar in a iframe but this is
really ugly. What I am trying to do is given seamless access to the
user's calendar within the application.

Thanks a lot for your help,

Hugues

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



how to check if the input

2011-11-27 Thread Bruce Zu

background:
there is  a  variable  :  NpTextBox createTxt 
there is  a button, by  default   thisButton.setEnabled(false).

what logic I want :
when user put something  into  createTxt.  I will 
thisButton.setEnabled(true).

user may  type or middle click the mouse to paste something into
createTxt.

my question is :

   what event  type I should handle to implement my logic especially
when user middle click mouse :

   I do some test as below :


I add 4 handlers of 'Click', 'MouseDown', 'MouseUp', and 'MouseOver'
event .

I add System.out.println(). on some lines for test and got below
output .(because
eclipse beakpoints on these lines in GWT debug mode not always work.)

I copy a string projectname then I move my mouse to the createTxt on
the Web UI page and click middle button of mouse twice and find output
as below .


...
---MouseOver--
--createTxt.getAbsoluteLeft(): [0]-
--createTxt.getValue(): []-
--createTxt.getText(): []-
---MouseDown--
--createTxt.getAbsoluteLeft(): [0]-
--createTxt.getValue(): []-
--createTxt.getText(): []-
---MouseUp--
--createTxt.getAbsoluteLeft(): [0]-
--createTxt.getValue(): []-
--createTxt.getText(): []-
---MouseClick--
--createTxt.getAbsoluteLeft(): [0]-
--createTxt.getValue(): []-
--createTxt.getText(): []-

[ reminder : here is the place that fist click is done  ]

---MouseDown--
--createTxt.getAbsoluteLeft(): [22]-
--createTxt.getValue(): [projectnameprojectname]-
--createTxt.getText(): [projectnameprojectname]-
---MouseUp--
--createTxt.getAbsoluteLeft(): [22]-
--createTxt.getValue(): [projectnameprojectname]-
--createTxt.getText(): [projectnameprojectname]-
---MouseClick--
--createTxt.getAbsoluteLeft(): [22]-
--createTxt.getValue(): [projectnameprojectname]-
--createTxt.getText(): [projectnameprojectname]-



we can see after  first click on mouse middle button  the
createTxt.getText() will return empty string.

Gwt
from the second click it will work.
seems the 'Click', 'MouseDown', 'MouseUp', and 'MouseOver' events are
handler before GWT set value to ' createTxt' .



question  1  : which even should  I monitor and which handler should
I add to createTxt  so that I can catch the content after the first
click here ?

question  2  if user right click mouse , OS (here I use Ubuntu)
will feedback a menu with a option 'paste' , now if user click this
option . GWT Web UI can not catch this click event, but this event can
be catch
by OS. I do not know if we should catch this event.

and take different browser , OS ...into account.

so I want to know if we must have this function . or can we do this in
the same way of Create Branch --The button is never disabled and the
string checking can be done on button click event.

I think it will be much easier than make a check for all the events. I
am not clear
the background about why we need disabling the button . I think
handling all this
events is not necessary except that you really expect to this way.

thanks in advance!!

//Bruce

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



about input event of NpTextBox

2011-11-27 Thread Bruce Zu
GWT version:2.3.0
background:
there is  a  variable  :  NpTextBox createTxt 
there is  a button, by  default   thisButton.setEnabled(false).

what logic I want :
when user put something  into  createTxt.  I will 
thisButton.setEnabled(true).

user may  type or middle click the mouse to paste something into
createTxt.

my question is :

   what event  type I should handle to implement my logic especially
when user middle click mouse :

   I do some test as below :


I add 4 handlers of 'Click', 'MouseDown', 'MouseUp', and 'MouseOver'
event .

I add System.out.println(). on some lines for test and got below
output .(because
eclipse beakpoints on these lines in GWT debug mode not always work.)

I copy a string projectname then I move my mouse to the createTxt on
the Web UI page and click middle button of mouse twice and find output
as below .


...
---MouseOver--
--createTxt.getAbsoluteLeft(): [0]-
--createTxt.getValue(): []-
--createTxt.getText(): []-
---MouseDown--
--createTxt.getAbsoluteLeft(): [0]-
--createTxt.getValue(): []-
--createTxt.getText(): []-
---MouseUp--
--createTxt.getAbsoluteLeft(): [0]-
--createTxt.getValue(): []-
--createTxt.getText(): []-
---MouseClick--
--createTxt.getAbsoluteLeft(): [0]-
--createTxt.getValue(): []-
--createTxt.getText(): []-

[ reminder : here is the place that fist click is done  ]

---MouseDown--
--createTxt.getAbsoluteLeft(): [22]-
--createTxt.getValue(): [projectnameprojectname]-
--createTxt.getText(): [projectnameprojectname]-
---MouseUp--
--createTxt.getAbsoluteLeft(): [22]-
--createTxt.getValue(): [projectnameprojectname]-
--createTxt.getText(): [projectnameprojectname]-
---MouseClick--
--createTxt.getAbsoluteLeft(): [22]-
--createTxt.getValue(): [projectnameprojectname]-
--createTxt.getText(): [projectnameprojectname]-



we can see after  first click on mouse middle button  the
createTxt.getText() will return empty string.

Gwt ve
from the second click it will work.
seems the 'Click', 'MouseDown', 'MouseUp', and 'MouseOver' events are
handler before GWT set value to ' createTxt' .



question  1  : which even should  I monitor and which handler should
I add to createTxt  so that I can catch the content after the first
click here ?

question  2  if user right click mouse , OS (here I use Ubuntu)
will feedback a menu with a option 'paste' , now if user click this
option . GWT Web UI can not catch this click event, but this event can
be catch
by OS. I want to know in this case which even should  I monitor and
which handler should I add to createTxt  so that I can catch the
content after user first  click this 'paste'
option and the createTxt have the value.

thanks !!
//Bruce

-- 
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 check if the input

2011-11-27 Thread Bruce Zu
please ignore this topic  !! seems it is published by wrong operation
before I finished editing it . sorry for that!!

On Nov 28, 10:48 am, Bruce Zu bruce...@sonyericsson.com wrote:
 background:
 there is  a  variable  :  NpTextBox createTxt 
 there is  a button, by  default   thisButton.setEnabled(false).

 what logic I want :
     when user put something  into  createTxt.  I will 
 thisButton.setEnabled(true).

     user may  type or middle click the mouse to paste something into
 createTxt.

 my question is :

    what event  type I should handle to implement my logic especially
 when user middle click mouse :

    I do some test as below :

 I add 4 handlers of 'Click', 'MouseDown', 'MouseUp', and 'MouseOver'
 event .

 I add System.out.println(). on some lines for test and got below
 output .(because
 eclipse beakpoints on these lines in GWT debug mode not always work.)

 I copy a string projectname then I move my mouse to the createTxt on
 the Web UI page and click middle button of mouse twice and find output
 as below .

 ...
 ---MouseOver--
 --createTxt.getAbsoluteLeft(): [0]-
 --createTxt.getValue(): []-
 --createTxt.getText(): []-
 ---MouseDown--
 --createTxt.getAbsoluteLeft(): [0]-
 --createTxt.getValue(): []-
 --createTxt.getText(): []-
 ---MouseUp--
 --createTxt.getAbsoluteLeft(): [0]-
 --createTxt.getValue(): []-
 --createTxt.getText(): []-
 ---MouseClick--
 --createTxt.getAbsoluteLeft(): [0]-
 --createTxt.getValue(): []-
 --createTxt.getText(): []-

 [ reminder : here is the place that fist click is done  ]

 ---MouseDown--
 --createTxt.getAbsoluteLeft(): [22]-
 --createTxt.getValue(): [projectnameprojectname]-
 --createTxt.getText(): [projectnameprojectname]-
 ---MouseUp--
 --createTxt.getAbsoluteLeft(): [22]-
 --createTxt.getValue(): [projectnameprojectname]-
 --createTxt.getText(): [projectnameprojectname]-
 ---MouseClick--
 --createTxt.getAbsoluteLeft(): [22]-
 --createTxt.getValue(): [projectnameprojectname]-
 --createTxt.getText(): [projectnameprojectname]-
 

 we can see after  first click on mouse middle button  the
 createTxt.getText() will return empty string.

 Gwt
 from the second click it will work.
 seems the 'Click', 'MouseDown', 'MouseUp', and 'MouseOver' events are
 handler before GWT set value to ' createTxt' .

 question  1  : which even should  I monitor and which handler should
 I add to createTxt  so that I can catch the content after the first
 click here ?

 question  2  if user right click mouse , OS (here I use Ubuntu)
 will feedback a menu with a option 'paste' , now if user click this
 option . GWT Web UI can not catch this click event, but this event can
 be catch
 by OS. I do not know if we should catch this event.

 and take different browser , OS ...into account.

 so I want to know if we must have this function . or can we do this in
 the same way of Create Branch --The button is never disabled and the
 string checking can be done on button click event.

 I think it will be much easier than make a check for all the events. I
 am not clear
 the background about why we need disabling the button . I think
 handling all this
 events is not necessary except that you really expect to this way.

 thanks in advance!!

 //Bruce

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



a mistake when set backgroun-color value

2011-11-27 Thread wahaha
i write these code :

-
HorizontalPanel hp=new HorizontalPanel();
Label lbl=new Label(a);
hp.add(lbl);
hp.setWidth(300px);
hp.setHeight(300px);
DOM.setStyleAttribute(hp.getElement(), backgroun-color, 
red);
DOM.setStyleAttribute(hp.getElement(), border, 1px solid 
red);
RootPanel.get().add(hp);
-

then it wongs,the developement mod console said :
java.lang.AssertionError: The style name 'background-color' should be
in camelCase format

-- 
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: a mistake when set backgroun-color value

2011-11-27 Thread Gal Dolber
try with backgroundColor, also you don't need to use static methods

hp.getElement().getStyle().setBackgroundColor(red);

On Mon, Nov 28, 2011 at 12:44 AM, wahaha il...@yahoo.com.cn wrote:

 i write these code :


 -
HorizontalPanel hp=new HorizontalPanel();
Label lbl=new Label(a);
hp.add(lbl);
hp.setWidth(300px);
hp.setHeight(300px);
DOM.setStyleAttribute(hp.getElement(), backgroun-color,
 red);
DOM.setStyleAttribute(hp.getElement(), border, 1px solid
 red);
RootPanel.get().add(hp);

 -

 then it wongs,the developement mod console said :
 java.lang.AssertionError: The style name 'background-color' should be
 in camelCase format

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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 celltable : Unexpected behavior : when record deleted from page then other record repeated in page.

2011-11-27 Thread vaibhav gwt
Any Idea How to resolve this issue ?

On Nov 15, 10:11 pm, vaibhav gwt bhalke.vaib...@gmail.com wrote:
 I also called
 updateRowData(startIndexOfPage, recordList);
 updateRowCount(updatedRecordCount, true);

 Still same issue :-|

 On Nov 15, 6:01 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote:







  Hi,
  I am using celltable -- gwt2.3.
  I found strange behavior in celltable.
  My celltable's pagesize is 10. Total 13 records.
  When Page contains 3 records
  A 1 11
  B 2 22
  C 3 33

  When I deleted any one record e.g. A record then that record is deleted
  from page but other record repeated / sets in page.
  i.e.
  B 2 22
  C 3 33
  C 3 33
  Page is trying to set 3 recods some how.
  Expected 2 records in page after deleting 1 record

  Whats wrong ? How to resolve this issue?

  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: GWT Chrome dev OOPHM is Slow. What is the roadmap?

2011-11-27 Thread Brandon Donnelson
If you haven't already starred the issue, please star it.
http://code.google.com/p/google-web-toolkit/issues/detail?id=6813 They have
begun working on it too. I agree Firefox is faster as of now.
On Nov 27, 2011 6:39 PM, Strelok roman.ro...@gmail.com wrote:

 Latest ChromeDev (17.0.942.0 dev-m) is unbearably slow. I've given up on
 Chrome now. Only Firefox is any good on Windows.

 --
 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/-/8d9-qD1kvWwJ.
 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: GWT Chrome dev OOPHM is Slow. What is the roadmap?

2011-11-27 Thread Tom Carchrae
I'm curious to know why this is a priority for you?

I use Firefox for development and it's a perfectly workable solution for
me.  What does Chrome give you that you need for GWT development?

Tom



On Mon, Nov 28, 2011 at 5:53 AM, Brandon Donnelson
branflake2...@gmail.comwrote:

 If you haven't already starred the issue, please star it.
 http://code.google.com/p/google-web-toolkit/issues/detail?id=6813 They
 have begun working on it too. I agree Firefox is faster as of now.
 On Nov 27, 2011 6:39 PM, Strelok roman.ro...@gmail.com wrote:

 Latest ChromeDev (17.0.942.0 dev-m) is unbearably slow. I've given up on
 Chrome now. Only Firefox is any good on Windows.

 --
 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/-/8d9-qD1kvWwJ.
 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.



[gwt-contrib] Re: Fix for ScrollImplTrident leak (issue1601803)

2011-11-27 Thread t . broyer

Adding Joel as a reviewer, as IE leaks are his Moby Dick (as he says).


http://gwt-code-reviews.appspot.com/1601803/diff/1/user/src/com/google/gwt/user/client/ui/ScrollImpl.java
File user/src/com/google/gwt/user/client/ui/ScrollImpl.java (right):

http://gwt-code-reviews.appspot.com/1601803/diff/1/user/src/com/google/gwt/user/client/ui/ScrollImpl.java#newcode56
user/src/com/google/gwt/user/client/ui/ScrollImpl.java:56:
scrollable.__scrollHandler = scrollHandler;
On 2011/11/27 01:06:33, stephenh wrote:

On 2011/11/26 10:36:07, tbroyer wrote:
 How about creating static functions (have a look into
 com.google.gwt.user.client.impl.DOMImplTrident)



I don't see any static methods in DOMImplTrident?


I meant the callDispatchEvent et al.


 that use window.event.srcElement to get a reference to the

scrollableElem?

That way it wouldn't leak and wouldn't need to be uninstalled.



That seems cool.



 For the container.onresize, one solution could be to set the

scrollableElem as

an expando; e.g.



I think Dirk's other leak (issue 1601804 in reitveld) was caused by a

parent DOM

element having an expando property to one of its children. (AFAIK,

would

appreciate your comments on that review if I'm wrong.)


It seems like you're right:
http://msdn.microsoft.com/en-us/library/bb250448(v=vs.85).aspx


In this case scrollableElem is the parent, so perhaps a child

(container) having

an expando to its parent would be okay?


I'm afraid it'd leak too (according to the MSDN). A quick and dirty fix
would be to set an expando on the 'container' just saying hey, I'm the
'container', the 'scrollable' is my parent, and then using:
if (scrollableElem.__container) scrollableElem = scrollableElem.parent;

Otherwise, I'm afraid an onAttach/onDetach is necessary; but using the
technique I proposed and just setting the expando back to 'null' in
onDetach would then be more readable I guess.

http://gwt-code-reviews.appspot.com/1601803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Stale sourcemap-rebased.jar in svn/tools

2011-11-27 Thread Thomas Broyer
r10760 uses com.google.gwt.thirdparty.debugging.sourcemap 
but ${gwt.tools.lib}/jscomp/sourcemap-rebased.jar still contains 
com.google.debugging.sourcemap.

Could someone update it please?

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Stale sourcemap-rebased.jar in svn/tools

2011-11-27 Thread Ray Cromwell
Oops, ok, I'll update it this afternoon.

-Ray


On Sun, Nov 27, 2011 at 7:44 AM, Thomas Broyer t.bro...@gmail.com wrote:
 r10760 uses com.google.gwt.thirdparty.debugging.sourcemap
 but ${gwt.tools.lib}/jscomp/sourcemap-rebased.jar still contains
 com.google.debugging.sourcemap.
 Could someone update it please?

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors