Re: Horizontal tabs in a TabPanel

2009-06-30 Thread Bruce Choi

Just looked at some of the option avaliable, I think i'm going to add
options into a stackpanel then putting the tabl panel and stackpanel
into a dock panel. Just wondering how to incorporate it so everything
looks awhole is it all done through a CSS?
--~--~-~--~~~---~--~~
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: TextBox allow only numbers (gwt 1.6.4)

2009-06-30 Thread Dominik Erbsland

thanks all for the help so far!
the solution of Pablo works for me. although I also have the problem
with CTRL+V. If the user inputs a string like that there is no
cancelKey() possible.
I added a second keyhandler doing this:

inputRufnummer.addKeyUpHandler(new KeyUpHandler() {

public void onKeyUp(KeyUpEvent event) {

if 
(!inputRufnummer.getText().matches([0-9]*)) {
sendButton.setEnabled(false);
sendButton.setText(Not a number);
} else {
sendButton.setEnabled(true);
sendButton.setText(Send);
}
}
});

Best solution for me would be if the framework would offer a number
only TextBox - but for the moment this solution must suffice.





On Jun 30, 12:50 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 29 juin, 22:38, Eric erjab...@gmail.com wrote:



  On Jun 29, 3:20 pm, Thomas Broyer t.bro...@gmail.com wrote:

   Note that ((TextBox) event.getSource()).cancelKey(); is exactly
   equivalent to event.preventDefault();

   ..and I believe the // TODO(ECC) must be tested. really means that
   it *needs* to be tested (i.e. I'm almost sure that it isn't enough;
   I'm almost sure you also have to deal with KeyDown and/or KeyUp).

  How could I write my application to recover nicely when the user
  pastes
  alphabetic characters into the text box?  If the user selects Ctrl (or
  Cmd)-V,
  or right-clicks and pastes. the browser will not invoke the keyboard
  handler.
  I found out that IE has an onpaste event, but that isn't universal.

 That's why I think canceling keys is not good practice (or at least
 not good enough), you should instead (or in addition, if you really
 want) either flag the field as invalid or automatically fix it (e.g.
 on KeyUp field.setText(fix(field.getText()) where fix() does something
 like a replaceAll([^0-9], )).

 The best solution, of course, would be to use an input type=number
 in an HTML5-aware browser (Opera for now). But in the mean time, a
 validation framework, or auto-correction work pretty well (and
 cancelling keys are just a bonus if you can get it to work)
--~--~-~--~~~---~--~~
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 specifying Grid's cell size

2009-06-30 Thread Sowjanya Yerramneni
Hi,

Can anyone help me out explaining how to add a hyperlink in a cell for any
grid?
I could set simple data into my grid but unable to find out how to add a
hyperlink in one of the columns.
Please let me know.



On Tue, Jun 30, 2009 at 8:21 AM, hezjing hezj...@gmail.com wrote:

 Hi Ian,

 You example works fine except that I have to include myGrid when setting
 the styles into the cells like the following:

  f.setStyleName(0, 0, myGrid my-Grid-ne my-Grid-border-row
 my-Grid-border-col);
 f.setStyleName(0, 1, myGrid my-Grid-n  my-Grid-border-row);
 f.setStyleName(0, 2, myGrid my-Grid-nw my-Grid-border-row
 my-Grid-border-col);
 f.setStyleName(1, 0, myGrid my-Grid-e  my-Grid-border-col)


 For some reasons, the myGrid style specified in Grid has no effect in the
 cells.

 Thanks Ian, you shown me a good CSS example and it is very helpful for a
 Java Swing developer like me ;-)



 On Mon, Jun 29, 2009 at 8:06 PM, Ian Bambury ianbamb...@gmail.com wrote:

 You can apply border-spacing to a table (e.g. your grid) which adjusts the
 spacing between cells. To get rid of it completely, you need to set
 border-collapse:collapse to the *table* (not the cells - i.e.not the td
 elements)
 I think you can get away with setting font-size on the table/grid and to
 make the css easier, you might like to set style something like below. It
 makes the code easier to read (e.g. every cell has ne. n, nw to indicate
 where it is in the grid) and the css is so much simpler - you set all the
 widths/heights in one place and therefore don't miss any if you change from
 5px to 3px, say.

 Grid grid = new Grid(3, 3);
 grid.setStylePrimaryName(my-Grid);
 CellFormatter f = grid.getCellFormatter();
 f.setStyleName(0, 0, my-Grid-ne my-Grid-border-row
 my-Grid-border-col);
 f.setStyleName(0, 1, my-Grid-n  my-Grid-border-row);
 f.setStyleName(0, 1, my-Grid-nw my-Grid-border-row
 my-Grid-border-col);
 f.setStyleName(1, 0, my-Grid-e  my-Grid-border-col);
 .
 .
 .
 and then the css is simpler

  .my-Grid
 {
 font-size   :  1px;
 border-collapse :   collapse;
 }
 .my-Grid-border-row
 {
 height  :5px;
 }
  .my-Grid-border-col
 {
 width   :5px;
 }
 .my-Grid-ne
 {
 /* put the north-east corner image here */
 }
 etc

  Ian

 http://examples.roughian.com







 --

 Hez

 



-- 
-Regards,
Sowjanya.

--~--~-~--~~~---~--~~
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 add a hyperlink in a cell for any grid?

2009-06-30 Thread Sowjanya Yerramneni
Hey I am sorry :)

Thanks for your response.
I will try that out.

On Tue, Jun 30, 2009 at 1:40 PM, hezjing hezj...@gmail.com wrote:

 Hi Sowjanya

 I think your question should start in a new thread ;-)


 On Tue, Jun 30, 2009 at 3:51 PM, Sowjanya Yerramneni y.sowja...@gmail.com
  wrote:

 Hi,

 Can anyone help me out explaining how to add a hyperlink in a cell for any
 grid?
 I could set simple data into my grid but unable to find out how to add a
 hyperlink in one of the columns.
 Please let me know.



 Can you try if the following code works for you?

 public void onModuleLoad() {
  Hyperlink link = new Hyperlink(Hello, token);
  Grid panel = new Grid(1, 1);
 panel.setWidget(0, 0, link);

 RootPanel root = RootPanel.get();
 root.add(panel);
 }


 --

 Hez

 



-- 
-Regards,
Sowjanya.

--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
Hi

I have a big label and a small label, and I want to align-bottom these
labels when added in HorizontalPanel:

public void onModuleLoad() {

Label bigTitle = new Label(BIG);
bigTitle.setStyleName(big);

Label smallTitle = new Label(small);
smallTitle.setStyleName(small);

HorizontalPanel panel = new HorizontalPanel();
// this style will set vertical-align: bottom
panel.setStyleName(my);

panel.add(bigTitle);
panel.add(smallTitle);

 RootPanel root = RootPanel.get();
root.add(panel);
}


and here is my CSS:

.my {
vertical-align: bottom;
background: yellow;
}

.big {
font-size: 15px;
font-weight: bold;
background: red;
}

.small {
font-size: xx-small;
background: blue;
}


The problem is the smallTitle is always top aligned.


The following is what I observed in Firebug, and it seems that both labels
are set to style=vertical-align: top

table class=my cellspacing=0 cellpadding=0
tbody
tr
td align=left style=vertical-align: top;
div class=bigBIG/div
/td
td align=left style=vertical-align: top;
div class=smallsmall/div
/td
/tr
/tbody
/table


It doesn't help if I
panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).

How can I align the labels to the bottom of HorizontalPanel?


-- 

Hez

--~--~-~--~~~---~--~~
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 add a hyperlink in a cell for a gridpanel?

2009-06-30 Thread Sowjanya Yerramneni
Hi,

Can anyone help me out explaining how to add a hyperlink in a cell for a
gridpanel?
I could set simple data into my grid but unable to find out how to add a
hyperlink in one of the columns.
Please let me know.


Here is a piece of code:


*GridPanel gridPanel = **new SampleGrid(new int**[]{0,1,2,3},list);*

*gridPanel.setWidth(900);*

*gridPanel.setHeight(400);*

*p.add(gridPanel);*

**




*public* SampleGrid(*int*[] columnIndexes, ListCar list) {

*this*.searchlist = list;

*this*.columnIndexes = columnIndexes;

Object[][] data = getStringArrayFromList();//new String[][]{{RR, *Redrock
*, 12/12/2009, state},{LT, *Infotech*, 11/11/2008,state}};

MemoryProxy proxy = *new* MemoryProxy(data);

ArrayReader reader = *new* ArrayReader(*new* RecordDef(

*new* FieldDef[]{

*new* StringFieldDef(cid),

*new* StringFieldDef(title),

*new* DateFieldDef(lastChanged),

*new* StringFieldDef(status)

}

));

store = *new* Store(proxy, reader);

store.load();

setStore(store);

ColumnModel columnModel = getColumnConfigs();

setColumnModel(columnModel);

setFrame(*true*);

setStripeRows(*true*);

setIconCls(grid-icon);

}

-- 
-Regards,
Sowjanya.

--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread Damien Picard
Hi,

Could you try something like :

public void onModuleLoad() {

 Label bigTitle = new Label(BIG);
bigTitle.setStyleName(big);

Label smallTitle = new Label(small);
smallTitle.setStyleName(small);

HorizontalPanel panel = new HorizontalPanel();
// this style will set vertical-align: bottom
*panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
*
 panel.setStyleName(my);//Probably not useful (cause the classe is applied
to table DOM node instead of td DOM node)

panel.add(bigTitle);
panel.add(smallTitle);

 RootPanel root = RootPanel.get();
root.add(panel);
}

Regards,

2009/6/30 hezjing hezj...@gmail.com

 Hi

 I have a big label and a small label, and I want to align-bottom these
 labels when added in HorizontalPanel:

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
 smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
 // this style will set vertical-align: bottom
  panel.setStyleName(my);

 panel.add(bigTitle);
 panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }


 and here is my CSS:

 .my {
 vertical-align: bottom;
 background: yellow;
 }

 .big {
 font-size: 15px;
 font-weight: bold;
 background: red;
 }

 .small {
 font-size: xx-small;
 background: blue;
 }


 The problem is the smallTitle is always top aligned.


 The following is what I observed in Firebug, and it seems that both labels
 are set to style=vertical-align: top

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: top;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: top;
 div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 It doesn't help if I
 panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).

 How can I align the labels to the bottom of HorizontalPanel?


 --

 Hez

 



-- 
Damien Picard
Open Source BPM : http://code.google.com/p/osbpm

--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
Hi Damien
Yes, it is working now and the following is what the HTML generated!

table class=my cellspacing=0 cellpadding=0
tbody
tr
td align=left style=vertical-align: bottom;
div class=bigBIG/div
/td
td align=left style=vertical-align: bottom;
div class=smallsmall/div
/td
/tr
/tbody
/table


Hmmm ... I thought I tried
setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too!
I don't know what was in my head at that time!


But I'm still don't understand why my approach doesn't work?



On Tue, Jun 30, 2009 at 4:38 PM, Damien Picard picard.dam...@gmail.comwrote:

 Hi,

 Could you try something like :

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
  smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
  // this style will set vertical-align: bottom
 *panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
 *
  panel.setStyleName(my);//Probably not useful (cause the classe is
 applied to table DOM node instead of td DOM node)

 panel.add(bigTitle);
  panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }

 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi

 I have a big label and a small label, and I want to align-bottom these
 labels when added in HorizontalPanel:

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
 smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
 // this style will set vertical-align: bottom
  panel.setStyleName(my);

 panel.add(bigTitle);
 panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }


 and here is my CSS:

 .my {
 vertical-align: bottom;
 background: yellow;
 }

 .big {
 font-size: 15px;
 font-weight: bold;
 background: red;
 }

 .small {
 font-size: xx-small;
 background: blue;
 }


 The problem is the smallTitle is always top aligned.


 The following is what I observed in Firebug, and it seems that both labels
 are set to style=vertical-align: top

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: top;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: top;
 div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 It doesn't help if I
 panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).

 How can I align the labels to the bottom of HorizontalPanel?


 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm

 



-- 

Hez

--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread Damien Picard
As you can see in the generated HTML code, the css class my is applied to
the DOM element table.
Nevertheless, each td node of this table is applied the css style
vertical-align with the setted VerticalAlignment.
And, in the XHTML/CSS definition, the style order applied is :
 - style attribute of the node
 - class attribute of the node
 - if there is no style or class attribute, inherits from parents

Then, the style applied here is the one contained in the style attribute
of td node, which override the one contained in the my class of table
node.

Regards,

2009/6/30 hezjing hezj...@gmail.com

 Hi Damien
 Yes, it is working now and the following is what the HTML generated!

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: bottom;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: bottom;
 div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 Hmmm ... I thought I tried
 setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too!
 I don't know what was in my head at that time!


 But I'm still don't understand why my approach doesn't work?



 On Tue, Jun 30, 2009 at 4:38 PM, Damien Picard picard.dam...@gmail.comwrote:

 Hi,

 Could you try something like :

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
  smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
  // this style will set vertical-align: bottom
 *panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
 *
  panel.setStyleName(my);//Probably not useful (cause the classe is
 applied to table DOM node instead of td DOM node)

 panel.add(bigTitle);
  panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }

 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi

 I have a big label and a small label, and I want to align-bottom these
 labels when added in HorizontalPanel:

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
 smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
 // this style will set vertical-align: bottom
  panel.setStyleName(my);

 panel.add(bigTitle);
 panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }


 and here is my CSS:

 .my {
 vertical-align: bottom;
 background: yellow;
 }

 .big {
 font-size: 15px;
 font-weight: bold;
 background: red;
 }

 .small {
 font-size: xx-small;
 background: blue;
 }


 The problem is the smallTitle is always top aligned.


 The following is what I observed in Firebug, and it seems that both
 labels are set to style=vertical-align: top

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: top;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: top;
 div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 It doesn't help if I
 panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).

 How can I align the labels to the bottom of HorizontalPanel?


 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm





 --

 Hez

 



-- 
Damien Picard
Open Source BPM : http://code.google.com/p/osbpm

--~--~-~--~~~---~--~~
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: Convert a Java Swing Application

2009-06-30 Thread Ivan Ooi
 I think smart client better in term of licensing. it is LGPL.

http://www.smartclient.com/smartgwt/

where Ext-GWT are under GPL. means you need an extra license for commercial
use.



On Tue, Jun 30, 2009 at 1:42 AM, DaBlick dabl...@gmail.com wrote:


 I would suggest that you consider using the Ext-GWT component library
 instead of the native GWT components.   Ext-GWT (also known as GXT)
 provide a far more Swing-like approach (MVC, etc.) to GUI's than GWT
 components.

 I definitely believe it's a shorter leap from Swing to Ext-GWT than
 to GWT.

 On Jun 26, 2:13 am, romant roman.te...@gmail.com wrote:
   can I use Google Web Toolkit to convert a Java Swing Application?
 
  It depends on the complexity and functionality of your Swing
  application, but generally I would say yes, you can. Of course you
  must take into account that the set of components which GWT offers is
  different than the set which is available in Swing. So your Swing
  application will have to be adjusted a bit. But if you use some
  component library for GWT this limitation can almost disappear.
 
   Has already anybody convert an application?
 
  Yes, I converted a Swing application which provided some accounting
  functionality. Firstly you should consider what functionality your
  Swing application provides and how to move it (if it is even possible)
  to the web environment. Then the user interface will have to be
  probably adjusted a bit so that it can be implemented using the
  available GWT components, but this is not such a big problem.
 
   Can anybody give me some information?
 
  You've just got some.
 


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



Add class to SerializationPolicy

2009-06-30 Thread Andrey

Hello, everyone!
How can I add a class to SerializationPolicy directly?
I don't want to reference it in Service class and I cannot refernce it
as a non-transient member.
I need this because this class is a member of another class having its
own custom serializer and this class also has its own serializer. Both
the classes have Object fields so they cannot be serialized as usual.
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: TextBox allow only numbers (gwt 1.6.4)

2009-06-30 Thread Thomas Broyer



On 30 juin, 09:22, Dominik Erbsland derbsl...@gmail.com wrote:
 Best solution for me would be if the framework would offer a number
 only TextBox - but for the moment this solution must suffice.

Have a look at the ValueSpinner widget from the Incubator:
http://code.google.com/docreader/#p=google-web-toolkit-incubatort=Spinner

(and note that it does not prevent pasting non-numeric text, but it
recovers quite well if you do so)
--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
I think I'm a bit slow here :-P
Probably I should ask how can we achieve this effect by setting CSS,
without setVerticalAlignment()?



On Tue, Jun 30, 2009 at 5:19 PM, Damien Picard picard.dam...@gmail.comwrote:

 As you can see in the generated HTML code, the css class my is applied to
 the DOM element table.
 Nevertheless, each td node of this table is applied the css style
 vertical-align with the setted VerticalAlignment.
 And, in the XHTML/CSS definition, the style order applied is :
  - style attribute of the node
  - class attribute of the node
  - if there is no style or class attribute, inherits from parents

 Then, the style applied here is the one contained in the style attribute
 of td node, which override the one contained in the my class of table
 node.


 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi Damien
 Yes, it is working now and the following is what the HTML generated!

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: bottom;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: bottom;
  div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 Hmmm ... I thought I tried
 setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too!
 I don't know what was in my head at that time!


 But I'm still don't understand why my approach doesn't work?



 On Tue, Jun 30, 2009 at 4:38 PM, Damien Picard 
 picard.dam...@gmail.comwrote:

 Hi,

 Could you try something like :

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
  smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
  // this style will set vertical-align: bottom
 *panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
 *
  panel.setStyleName(my);//Probably not useful (cause the classe is
 applied to table DOM node instead of td DOM node)

 panel.add(bigTitle);
  panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }

 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi

 I have a big label and a small label, and I want to align-bottom these
 labels when added in HorizontalPanel:

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
 smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
 // this style will set vertical-align: bottom
  panel.setStyleName(my);

 panel.add(bigTitle);
 panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }


 and here is my CSS:

 .my {
 vertical-align: bottom;
 background: yellow;
 }

 .big {
 font-size: 15px;
 font-weight: bold;
 background: red;
 }

 .small {
 font-size: xx-small;
 background: blue;
 }


 The problem is the smallTitle is always top aligned.


 The following is what I observed in Firebug, and it seems that both
 labels are set to style=vertical-align: top

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: top;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: top;
 div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 It doesn't help if I
 panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).

 How can I align the labels to the bottom of HorizontalPanel?


 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm





 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm

 



-- 

Hez

--~--~-~--~~~---~--~~
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: Best practice to implement Command Pattern RPC on server?

2009-06-30 Thread ClusterCougar

I thought I posted this last night, but I don't see it. Apologies if
this is a dupe.

I've tried to implement the command pattern using generics, but have
some hangups. You can see my code at

http://code.google.com/p/gwt-command-pattern/

Hangups:

1) Too many parameters. It's just not pretty
2) I have to parameterize the RPCServiceAsync at the class level,
whereas I would like to parameterize at the method level. This is a
constraint of the compiler.
3) All my server-side code actually resides on the client side,
because of the aggressive nature of the GWT compiler. I would add my
voice again asking for a simple annotation or annotations like

on a class: @GWTIgnoreReference(ServerSideClass.class)
and/or a method: @GWTIgnoreMethod

I think there are many justifiable use cases for this type of thing,
and I can't think of any way it would decrease user experience. Does
anyone know if this is a planned feature? Any comments/suggestions on
how to remediate the problems above that I don't know of? Ray Ryan,
are you listening?

Thanks,

On Jun 25, 4:07 pm, Eric erjab...@gmail.com wrote:
 On Jun 25, 5:12 pm, Herme Garcia hgar...@peoplecall.com wrote:

  Hi,

  After listening carefully Google IO's session from Ray Ryan about
  Best Practices For Architecting Your GWT App :

 http://code.google.com/intl/es-ES/events/io/sessions/GoogleWebToolkit...

  He suggests acommandpatternimplementation for RPC calling (see
  slides 21-25) they are using in Wave.

 Ray,

 If you're reading this, can you tell us if the full code for your
 contact
 manager is available anywhere?  Also, the second of the Contact
 DIsplay UI
 slides has the line

     currentContactId = currentContactId;
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Ctrl + s keyboard event in GWT

2009-06-30 Thread Saeed Zarinfam

Hi

I want to add Ctrl + s or Ctrl + xxx short key to my GWT program.
please guide me.

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: GWT architecture MVP/EventBus (mentioned at Google I/O)

2009-06-30 Thread ClusterCougar

In my Display interface, I included a method like

Widget getWidgetView();

which (interestingly enough) returns a widget view of the display
object. this eliminates your casting problem, while still maintaining
a degree of anonymity for the Display interface.

On the command pattern thing, I created a project to work through what
I thought I was seeing. You can see it at

http://code.google.com/p/gwt-command-pattern/

Let me know if you have some suggestions on how to fix the issues I
describe there.

Thanks,

On Jun 29, 4:43 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 29 juin, 23:13, Daniel Jue teamp...@gmail.com wrote:





  Does anyone have a working MVP/Eventbus sample of something simple
  like the PhoneEditor?
  I don't think I'm doing it right.  The code from the IO presentation
  leaves out enough details so that I'm not sure what to do.
  For instance, in my Presenter.class,

  I have something like this:
  public class Presenter {
  ...
  private Display display;
          interface Display {
                  HasClickHandlers getSaveButton();
                  HasClickHandlers getCancelButton();
                  HasClickHandlers getNumberField();
                  HasClickHandlers getLabelPicker();
          }

 Slide 59 shows getNumberField and getLabelPicker as HasValueString,
 not HasClickHandler (and Ray says that ListBox doesn't actually
 implement HasValueString but it's quite easy to make a
 HasValueString for a ListBox).

          void editPhone(Phone phone) {
                  this.phone = Phone.from(phone);
                  display.getNumberField().setValue(phone.getNumber());
                  display.getLabelPicker().setValue(phone.getLabel());
          }
  ...}

  Obviously, a HasClickHandlers object doesn't have a setValue method.
  It doesn't feel like I should be casting to the widget here, since we
  went through all the trouble of using the Display interface.

 http://code.google.com/intl/fr-FR/events/io/sessions/GoogleWebToolkit...
--~--~-~--~~~---~--~~
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: Very large GWT app

2009-06-30 Thread lowecg2004

I know you've enquired about splitting the application, but are you
gzip'ing the js code when downloading from your web server?  That will
reduce the current code size by 70% or so.  Of course, this is
complimentary to any splitting that you do.

On Jun 29, 4:19 pm, Paul van Hoven paul.van.ho...@googlemail.com
wrote:
 I developped a gwt app over the last 3 months. But i found out that
 the compiled js file is too large. In total it has a size of 411KB.
 Therefore i thought it would be a good idea of splitting up my
 application and create some modules. My goal is to split the whole
 application up into parts of about 60K-100K. At least the start page
 should load very quickly. I have no experience in using modules in gwt
 and the google documentation seems to be very brief on this topic.

 What is the best approach for splitting up my application?
--~--~-~--~~~---~--~~
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 architecture MVP/EventBus (mentioned at Google I/O)

2009-06-30 Thread gscholt

On Jun 29, 11:13 pm, Daniel Jue teamp...@gmail.com wrote:
 Does anyone have a working MVP/Eventbus sample of something simple
 like the PhoneEditor?
 I don't think I'm doing it right.  The code from the IO presentation
 leaves out enough details so that I'm not sure what to do.
 For instance, in my Presenter.class,

 I have something like this:
 public class Presenter {
 ...
 private Display display;
         interface Display {
                 HasClickHandlers getSaveButton();
                 HasClickHandlers getCancelButton();
                 HasClickHandlers getNumberField();
                 HasClickHandlers getLabelPicker();
         }
         void editPhone(Phone phone) {
                 this.phone = Phone.from(phone);
                 display.getNumberField().setValue(phone.getNumber());
                 display.getLabelPicker().setValue(phone.getLabel());
         }
 ...}

 Obviously, a HasClickHandlers object doesn't have a setValue method.
 It doesn't feel like I should be casting to the widget here, since we
 went through all the trouble of using the Display interface.

 I started looking at Mvp4g, but it seems to go off on a tangent with a
 code generation class to wire up presenters and views via 
 xml.http://code.google.com/p/mvp4g/
 It's also intertwined with some mvc4g classes.

 I just want something basic that works, so I can seed my project from
 there.  A minimalist, working command style RPC example would be nice
 too.
 Anyone?  If you're in the DC area, I'll buy you a drink!

interface Display {
HasClickHandlers getSaveButton();
HasClickHandlers getCancelButton();
HasValueString getNumberField();
HasValueString getLabelPicker();
}

This will work for this example at least. If you want to bind events
AND set a value to those fields you'd need to combine the two
interfaces in a new one, or perhaps have two accessor methods.

Gert
--~--~-~--~~~---~--~~
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 load a url in a panel?

2009-06-30 Thread Sowjanya Yerramneni
I used the following code to make a call.
The html content was printed in the console where I can see the html code.
There is no dynamic content displayed in the html. The html if executed
individually will show a button.
But when i made a call to the same from another html nothing got displayed.

RequestBuilder builder = *new* RequestBuilder(RequestBuilder.*POST*, 
http://localhost:/com.myPack.FirstGridApp/FirstGridApp.html;);

*try* {

builder.sendRequest(, *new* RequestCallback() {

*public* *void* onResponseReceived(Request request, Response response) {

System.*out*.println(hey +response.getText()+ hz);

htmltext = response.getText();

}

*public* *void* onError(Request request, Throwable exception) {

System.*out*.println(failure);

}

});

} *catch* (RequestException e1) {

// *TODO* Auto-generated catch block

e1.printStackTrace();

}

formPanel.setHtml(htmltext);
Is this correct ??

Please suggest.
On Sat, Jun 27, 2009 at 7:13 PM, bmorsh bmo...@gmail.com wrote:


 You need to use RequestBuilder and make an actual ajax call to GET the
 contents of the URL.

 On Jun 24, 2:23 am, Sow y.sowja...@gmail.com wrote:
  Hi,
 
  I have two hmls in my module. How do I load one html content into a
  panel of another html?
  panel.load(First.html) doesnt work for me.
 
  Please help.
 



-- 
-Regards,
Sowjanya.

--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread Damien Picard
I think it is not possible, because if you don't specify a
VerticalAlignment, the default (top) is applied, with
style=vertical-alignment: top.
And there is no way in CSS to override it...

A way to cheat with it could be :

.my {
background: yellow;
}


.my div{
height: 100%;
vertical-align: bottom;
}

.big {
font-size: 15px;
font-weight: bold;
background: red;
}

.small {
font-size: xx-small;
background: blue;
}

But I'm not sure it will work



2009/6/30 hezjing hezj...@gmail.com

 I think I'm a bit slow here :-P
 Probably I should ask how can we achieve this effect by setting CSS,
 without setVerticalAlignment()?



 On Tue, Jun 30, 2009 at 5:19 PM, Damien Picard picard.dam...@gmail.comwrote:

 As you can see in the generated HTML code, the css class my is applied
 to the DOM element table.
 Nevertheless, each td node of this table is applied the css style
 vertical-align with the setted VerticalAlignment.
 And, in the XHTML/CSS definition, the style order applied is :
  - style attribute of the node
  - class attribute of the node
  - if there is no style or class attribute, inherits from parents

 Then, the style applied here is the one contained in the style attribute
 of td node, which override the one contained in the my class of table
 node.


 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi Damien
 Yes, it is working now and the following is what the HTML generated!

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: bottom;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: bottom;
  div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 Hmmm ... I thought I tried
 setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too!
 I don't know what was in my head at that time!


 But I'm still don't understand why my approach doesn't work?



 On Tue, Jun 30, 2009 at 4:38 PM, Damien Picard 
 picard.dam...@gmail.comwrote:

 Hi,

 Could you try something like :

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
  smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
  // this style will set vertical-align: bottom
 *panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
 *
  panel.setStyleName(my);//Probably not useful (cause the classe is
 applied to table DOM node instead of td DOM node)

 panel.add(bigTitle);
  panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }

 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi

 I have a big label and a small label, and I want to align-bottom
 these labels when added in HorizontalPanel:

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
 smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
 // this style will set vertical-align: bottom
  panel.setStyleName(my);

 panel.add(bigTitle);
 panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }


 and here is my CSS:

 .my {
 vertical-align: bottom;
 background: yellow;
 }

 .big {
 font-size: 15px;
 font-weight: bold;
 background: red;
 }

 .small {
 font-size: xx-small;
 background: blue;
 }


 The problem is the smallTitle is always top aligned.


 The following is what I observed in Firebug, and it seems that both
 labels are set to style=vertical-align: top

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: top;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: top;
 div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 It doesn't help if I
 panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).

 How can I align the labels to the bottom of HorizontalPanel?


 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm





 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm





 --

 Hez

 



-- 
Damien Picard
Open Source BPM : http://code.google.com/p/osbpm

--~--~-~--~~~---~--~~
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: Different button layout

2009-06-30 Thread Dariusz

I found the mistake I was doing... :( As usual, most errors are stupid
and made by the developer itself.

My module, which was calling my own css was overwritten by the default
one. When I changed the ordering it was working


module

!-- Inherit the core Web Toolkit stuff.  --
inherits name='com.google.gwt.user.User'/

!-- Specify the app entry point class.   --
entry-point class='com.module.client.HelloWorld'/

inherits name=com.google.gwt.user.theme.standard.Standard/
!-- inherits name=com.google.gwt.user.theme.chrome.Chrome/ --
!-- inherits name=com.google.gwt.user.theme.dark.Dark/ --


!-- Personal style: HAS TO BE AT THE END  --
stylesheet src='css/style.css' /
/module

Thanks to Ian for his effort! PushButton would do the job as well! :)

Cheers,
D.


On Jun 25, 3:36 pm, Dariusz darius...@gmail.com wrote:
 Thanks a lot! PushButton solves this issue!

 On Jun 25, 3:08 pm, Ian Bambury ianbamb...@gmail.com wrote:

  Buttons and alerts are OS/Browser dependent.
  You can get the size roughly the same but if you want the same look across
  all browsers you have to make your own with a label and images or use
  something like PushButton

  Ian

 http://examples.roughian.com

  2009/6/25 Dariusz darius...@gmail.com

   Guys, the issue with thebuttonlayoutis still not solved.

   Even if I do the complete example shown here:
  http://www.ibm.com/developerworks/library/j-ajax4/index.html

   Thebuttondoesn't look like on their screen shots. It's just the
   defaultlayout. I'm using 'gwt-windows-1.6.4' . Is it related to the
   version?

   Thanks!

   On Jun 17, 7:57 pm, Dariusz darius...@gmail.com wrote:
Oh, my email is 'dariusz.b[at]'

Thanks!

On Jun 17, 6:42 pm, Ian Bambury ianbamb...@gmail.com wrote:

 It may not be IE too big, it may be FF too small. You didn't change 
 the
defaultsize, did you? It should be Serif/Georgia/Arial 16 in Advanced
   Fonts
 (and Courier New 13), min font size:none, and you should be allowing
   pages
 to choose their own fonts.
 Also, I've put my test app up herehttp://
   test.roughian.com/20090617/soif
 you look at that and it's OK, I'll send you the whole project if you
   want.
 Ian

http://examples.roughian.com

 2009/6/17 Dariusz darius...@gmail.com

  Hey Ian!

  Thanks a lot for you effort and your test result. I copied you css
   but
  the font inside thebuttonin IE just for god sake doesn't want to
  change. I think I will live with it for now. :(

  Many thanks!!

  On Jun 17, 5:50 pm, Ian Bambury ianbamb...@gmail.com wrote:
   OK, this is what I got.
   Chrome/IE7/FF3/Hosted

   On the left is

   .gwt-Button{
  font-size: small;
  width:   100px;
  height   :   30px;
  margin   :   0;

   }

   On the right is the same thing but with my standard
   browser-levelling css
   and basic css to set it up again

   I don't know what the rules are for attaching images, so if you
   don't see
   it, let me know.

screenshots.png
   96KViewDownload
--~--~-~--~~~---~--~~
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: Why does HorizontalPanel cells defaults to vertical-align: top?

2009-06-30 Thread Ian Bambury
This is not what you said initially ('I want the textbox to be aligned at
the bottom') which I gave you the answer to (!important). It does work, and
it might have been more accurate for you to say that *you* can't get it to
work.
Also, a flowpanel *does* horizontally align the textbox with the other
elements, but now it appears that this is not what you want
('textbox(slightly above baseline)').

If you said what you wanted in the first place, you wouldn't have wasted my
time. This whole thing is just a simple css beginner's exercise, and
muttering 'doesn't work' when *you* can't get something to work isn't going
to inspire people to simplify and explain things even further in an attempt
to get to a point where you *can* understand.

Put everything in a flowpanel and adjust the margins until it looks like you
want it.

Ian

http://examples.roughian.com


2009/6/30 max3000 maxime.lar...@gmail.com


 On Jun 29, 7:37 pm, Ian Bambury ianbamb...@gmail.com wrote:
  Do you want
  the bottom of the image and the bottom of the textbox to be in line (this
 is
  what I am understanding from what you have said).

 Something like that. In effect, what I want is a lot like the search
 line in google docs:
 logo + textbox + button

 I have tried various combinations, including putting the textbox 
 button in their own horizontal panel. The reason I did this is because
 the button is taller than the textbox on IE. (In fact, on IE every
 component seems too big). I have this latter horizontal panel bottom-
 aligned, and the widget themselves middle-aligned. The overall effect
 is like this:

 |image|
 |image|  |textbox(slightly above baseline)|  |button (bottom on
 baseline and top slightly above textbox's top)|

 (Hoping I'm being clear...)

 Anyway, I lost a good 10 hours on this problem so far. True I'm new to
 all this, but it's a lot. I feel at this point it's more than enough
 time spent on a single (simple?) problem. Sure, I wanted to be a good
 boy and keep the code and presentation separated. However, I think
 I'll keep the setHorizontalAlignments in the code because it's the
 only thing that works.

 Unless you have a better idea... to which I'm very open, I want to
 learn.

 Thanks!
 Max
 


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



events of none visible widgets ?

2009-06-30 Thread Ed

I am trying to have a better understanding of the DOM Tree in relation
with events. A few questions about that:
Suppose I have a left menu that shows screen parts on the right side.
If I select a menu item, I will create the screen part and leave it
created during the whole application live cycle.

1)  If another menu item is created, where is the previous selected
screen parts located on the DOM?... How does that work...  It's a bit
unclear to me where something is located on the DOM..
Info: selecting a screen parts occurs by adding/removing a panel to
the RootPanel.

2) If another menu item is created, what happens with the events and
listeners that are used by  the widgets that are contained in the
previous selected screen part (that is unselected)...?
Does the widgets on the unselected screen parts still receive events?
Should I remove the widgets listeners in the onUnload and add them
again in the onLoad method to improve performance?.

Cheers,
Ed

--~--~-~--~~~---~--~~
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: trying to track GWT timers

2009-06-30 Thread Ian Bambury
Surely when you close the browser window (or navigate away) the timers are
gone.
Ian

http://examples.roughian.com


2009/6/30 davidroe roe.da...@gmail.com


 I have a situation where I need to ensure that _every_ timer launched
 is closed upon exit, meaning I track each timer I create and ensure
 that I cancel it when the application is about to close.

 is anyone aware of any timers that GWT launches that are, perhaps,
 allowed to self disintegrate, rather than actually being cancelled?

 thanks,
 /dave

 


--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread Ian Bambury
.my td
{
vertical-align: bottom !important;
}

Ian

http://examples.roughian.com


2009/6/30 Damien Picard picard.dam...@gmail.com

 I think it is not possible, because if you don't specify a
 VerticalAlignment, the default (top) is applied, with
 style=vertical-alignment: top.
 And there is no way in CSS to override it...

 A way to cheat with it could be :

 .my {
 background: yellow;
 }


 .my div{
 height: 100%;
 vertical-align: bottom;
 }

 .big {
 font-size: 15px;
  font-weight: bold;
 background: red;
 }

 .small {
  font-size: xx-small;
 background: blue;
 }

 But I'm not sure it will work



 2009/6/30 hezjing hezj...@gmail.com

 I think I'm a bit slow here :-P
 Probably I should ask how can we achieve this effect by setting CSS,
 without setVerticalAlignment()?



 On Tue, Jun 30, 2009 at 5:19 PM, Damien Picard 
 picard.dam...@gmail.comwrote:

 As you can see in the generated HTML code, the css class my is applied
 to the DOM element table.
 Nevertheless, each td node of this table is applied the css style
 vertical-align with the setted VerticalAlignment.
 And, in the XHTML/CSS definition, the style order applied is :
  - style attribute of the node
  - class attribute of the node
  - if there is no style or class attribute, inherits from parents

 Then, the style applied here is the one contained in the style
 attribute of td node, which override the one contained in the my class of
 table node.


 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi Damien
 Yes, it is working now and the following is what the HTML generated!

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: bottom;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: bottom;
  div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 Hmmm ... I thought I tried
 setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too!
 I don't know what was in my head at that time!


 But I'm still don't understand why my approach doesn't work?



 On Tue, Jun 30, 2009 at 4:38 PM, Damien Picard picard.dam...@gmail.com
  wrote:

 Hi,

 Could you try something like :

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
  smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
  // this style will set vertical-align: bottom
 *panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
 *
  panel.setStyleName(my);//Probably not useful (cause the classe is
 applied to table DOM node instead of td DOM node)

 panel.add(bigTitle);
  panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }

 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi

 I have a big label and a small label, and I want to align-bottom
 these labels when added in HorizontalPanel:

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
 smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
 // this style will set vertical-align: bottom
  panel.setStyleName(my);

 panel.add(bigTitle);
 panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }


 and here is my CSS:

 .my {
 vertical-align: bottom;
 background: yellow;
 }

 .big {
 font-size: 15px;
 font-weight: bold;
 background: red;
 }

 .small {
 font-size: xx-small;
 background: blue;
 }


 The problem is the smallTitle is always top aligned.


 The following is what I observed in Firebug, and it seems that both
 labels are set to style=vertical-align: top

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: top;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: top;
 div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 It doesn't help if I
 panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).

 How can I align the labels to the bottom of HorizontalPanel?


 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm





 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm





 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm

 


--~--~-~--~~~---~--~~
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 align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread Damien Picard
So simply...
I'm sorry hezjing to don't have think about !important.
(It permits to force the rule to apply instead of cascading mechanism...)



2009/6/30 Ian Bambury ianbamb...@gmail.com


 .my td
 {
 vertical-align: bottom !important;
 }

 Ian

 http://examples.roughian.com


 2009/6/30 Damien Picard picard.dam...@gmail.com

 I think it is not possible, because if you don't specify a
 VerticalAlignment, the default (top) is applied, with
 style=vertical-alignment: top.
 And there is no way in CSS to override it...

 A way to cheat with it could be :

 .my {
 background: yellow;
 }


 .my div{
 height: 100%;
 vertical-align: bottom;
 }

 .big {
 font-size: 15px;
  font-weight: bold;
 background: red;
 }

 .small {
  font-size: xx-small;
 background: blue;
 }

 But I'm not sure it will work



 2009/6/30 hezjing hezj...@gmail.com

 I think I'm a bit slow here :-P
 Probably I should ask how can we achieve this effect by setting CSS,
 without setVerticalAlignment()?



 On Tue, Jun 30, 2009 at 5:19 PM, Damien Picard 
 picard.dam...@gmail.comwrote:

 As you can see in the generated HTML code, the css class my is applied
 to the DOM element table.
 Nevertheless, each td node of this table is applied the css style
 vertical-align with the setted VerticalAlignment.
 And, in the XHTML/CSS definition, the style order applied is :
  - style attribute of the node
  - class attribute of the node
  - if there is no style or class attribute, inherits from parents

 Then, the style applied here is the one contained in the style
 attribute of td node, which override the one contained in the my class of
 table node.


 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi Damien
 Yes, it is working now and the following is what the HTML generated!

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: bottom;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: bottom;
  div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 Hmmm ... I thought I tried
 setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too!
 I don't know what was in my head at that time!


 But I'm still don't understand why my approach doesn't work?



 On Tue, Jun 30, 2009 at 4:38 PM, Damien Picard 
 picard.dam...@gmail.com wrote:

 Hi,

 Could you try something like :

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
  smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
  // this style will set vertical-align: bottom
 *panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
 *
  panel.setStyleName(my);//Probably not useful (cause the classe is
 applied to table DOM node instead of td DOM node)

 panel.add(bigTitle);
  panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }

 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi

 I have a big label and a small label, and I want to align-bottom
 these labels when added in HorizontalPanel:

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
 smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
 // this style will set vertical-align: bottom
  panel.setStyleName(my);

 panel.add(bigTitle);
 panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }


 and here is my CSS:

 .my {
 vertical-align: bottom;
 background: yellow;
 }

 .big {
 font-size: 15px;
 font-weight: bold;
 background: red;
 }

 .small {
 font-size: xx-small;
 background: blue;
 }


 The problem is the smallTitle is always top aligned.


 The following is what I observed in Firebug, and it seems that both
 labels are set to style=vertical-align: top

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: top;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: top;
 div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 It doesn't help if I
 panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).

 How can I align the labels to the bottom of HorizontalPanel?


 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm





 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm





 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm




 



-- 
Damien Picard
Open Source BPM : http://code.google.com/p/osbpm

--~--~-~--~~~---~--~~
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: connecting gwt with orbited

2009-06-30 Thread Nathaniel

I was able to use orbited with gwt by including the orbited.js file in
my project and then having orbited host the entry point html.  Look at
the help for the orbited configuration to see how you can set up
directories under the static setting.  I have a feeling you could also
get this working via gwt's cross site linker settings, but I have not
tried it yet.

On Jun 26, 9:39 am, Nathaniel nati...@gmail.com wrote:
 I am attempting to do the same thing.  So far I have been able to
 include theOrbited.js file into my project by putting it in my
 gwt.xml file.  This allows me to open sockets, but only if I do so
 from the entry point html page via javascript in script tags.  If I
 attempt to call theorbitedfunctions from within any java classes via
 JSNI it fails.

 On Jun 26, 1:08 am, Aljosa Mohorovic aljosa.mohoro...@gmail.com
 wrote:

  i'm usinghttp://orbited.org/toenable client/browser to communicate
  with some services and i was wondering if anybody is using gwt 
  withorbitedor if somebody can advise what's the best way to connect gwt
  withorbited?

  Aljosa Mohorovic
--~--~-~--~~~---~--~~
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: Why does HorizontalPanel cells defaults to vertical-align: top?

2009-06-30 Thread max3000

Wow, that's quite a strong reaction you're showing there.

1. What I said at first is exactly what I wanted. Then, after I added
the button, I realized bottom-aligning both the button and the textbox
looked ugly. It is understandable that I continued trying (and seeing
new things) after my initial post.

2. I tried adding !important as you said and it didn't work for me.
Sure *I* couldn't make it work and maybe someone else could (you, for
instance). Your post was followed by a question mark (?) so I taught
you were asking a question. I tried it, it didn't work and I replied
to your post (thinking it was a question).

3. The FlowPanel didn't work for *me* because the textbox ended below
the image, which is not what I want. Perhaps adjusting the margins
would make it work like you said. I will try that later on. I'm
unclear as the the difference margin would make in this case. I also
found that margin and padding work very differently between browsers
and I'm not found of using them.

Look pal, I appreciate your help, I really do. It's great experts like
you take the time to answer newbies. Keep in mind though that don't
know what I'm doing. I think it's obvious from my questions. Like you
said, it's a beginner's exercise. I'm trying hard (spent 10 hours like
I said) so maybe I'm obtuse but that no reason to jump at my throat
like you did. I've got 10+ years of programming experience but this is
my first time with GWT+CSS. I'm willing to spend the time to learn,
but don't expect me to be an expert right of the bat. Let's just say
that to someone accustomed to WYSIWYG editors, web development seems
like going back in time in terms of developer productivity...

Max





On Jun 30, 7:51 am, Ian Bambury ianbamb...@gmail.com wrote:
 This is not what you said initially ('I want the textbox to be aligned at
 the bottom') which I gave you the answer to (!important). It does work, and
 it might have been more accurate for you to say that *you* can't get it to
 work.
 Also, a flowpanel *does* horizontally align the textbox with the other
 elements, but now it appears that this is not what you want
 ('textbox(slightly above baseline)').

 If you said what you wanted in the first place, you wouldn't have wasted my
 time. This whole thing is just a simple css beginner's exercise, and
 muttering 'doesn't work' when *you* can't get something to work isn't going
 to inspire people to simplify and explain things even further in an attempt
 to get to a point where you *can* understand.

 Put everything in a flowpanel and adjust the margins until it looks like you
 want it.

 Ian

 http://examples.roughian.com

 2009/6/30 max3000 maxime.lar...@gmail.com



  On Jun 29, 7:37 pm, Ian Bambury ianbamb...@gmail.com wrote:
   Do you want
   the bottom of the image and the bottom of the textbox to be in line (this
  is
   what I am understanding from what you have said).

  Something like that. In effect, what I want is a lot like the search
  line in google docs:
  logo + textbox + button

  I have tried various combinations, including putting the textbox 
  button in their own horizontal panel. The reason I did this is because
  the button is taller than the textbox on IE. (In fact, on IE every
  component seems too big). I have this latter horizontal panel bottom-
  aligned, and the widget themselves middle-aligned. The overall effect
  is like this:

  |image|
  |image|  |textbox(slightly above baseline)|  |button (bottom on
  baseline and top slightly above textbox's top)|

  (Hoping I'm being clear...)

  Anyway, I lost a good 10 hours on this problem so far. True I'm new to
  all this, but it's a lot. I feel at this point it's more than enough
  time spent on a single (simple?) problem. Sure, I wanted to be a good
  boy and keep the code and presentation separated. However, I think
  I'll keep the setHorizontalAlignments in the code because it's the
  only thing that works.

  Unless you have a better idea... to which I'm very open, I want to
  learn.

  Thanks!
  Max
--~--~-~--~~~---~--~~
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: Why does HorizontalPanel cells defaults to vertical-align: top?

2009-06-30 Thread max3000

Yes! It works with a flow panel.

I really don't know why I couldn't get it to work before. Probably
interference with some other things.

Now if I can fix that damn button being too big in IE...

Thanks!
Max

--~--~-~--~~~---~--~~
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: Why does HorizontalPanel cells defaults to vertical-align: top?

2009-06-30 Thread Ian Bambury
Use a pushbutton - buttons are OS/browser dependent
Ian

http://examples.roughian.com


2009/6/30 max3000 maxime.lar...@gmail.com


 Yes! It works with a flow panel.

 I really don't know why I couldn't get it to work before. Probably
 interference with some other things.

 Now if I can fix that damn button being too big in IE...

 Thanks!
 Max

 


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



Send list box items to server

2009-06-30 Thread ArunDhaJ

Hi,
I've a GWT page with a list box and a button. Upon clicking the
button, I need to send the selected list item to a servlet. How can I
pass this list?by URL query string(GET)? or using POST ?

Regards,
ArunKumar.Dharuman
--~--~-~--~~~---~--~~
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: Why does HorizontalPanel cells defaults to vertical-align: top?

2009-06-30 Thread Ian Bambury
I do apologise. Put it down as being a strange and unreasonable reaction I
have when I take the time and trouble to give someone a tested solution to
their problem and then get told I'm talking bollocks.
Ian

http://examples.roughian.com


2009/6/30 max3000 maxime.lar...@gmail.com


 Wow, that's quite a strong reaction you're showing there.


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



Re: How to align the labels to the bottom of HorizontalPanel?

2009-06-30 Thread hezjing
Thanks Damien and Ian, you have been helping me a lot!

On Tue, Jun 30, 2009 at 8:45 PM, Damien Picard picard.dam...@gmail.comwrote:

 So simply...
 I'm sorry hezjing to don't have think about !important.
 (It permits to force the rule to apply instead of cascading mechanism...)



 2009/6/30 Ian Bambury ianbamb...@gmail.com


 .my td
 {
 vertical-align: bottom !important;
 }

 Ian

 http://examples.roughian.com


 2009/6/30 Damien Picard picard.dam...@gmail.com

 I think it is not possible, because if you don't specify a
 VerticalAlignment, the default (top) is applied, with
 style=vertical-alignment: top.
 And there is no way in CSS to override it...

 A way to cheat with it could be :

 .my {
 background: yellow;
 }


 .my div{
 height: 100%;
 vertical-align: bottom;
 }

 .big {
 font-size: 15px;
  font-weight: bold;
 background: red;
 }

 .small {
  font-size: xx-small;
 background: blue;
 }

 But I'm not sure it will work



 2009/6/30 hezjing hezj...@gmail.com

 I think I'm a bit slow here :-P
 Probably I should ask how can we achieve this effect by setting CSS,
 without setVerticalAlignment()?



 On Tue, Jun 30, 2009 at 5:19 PM, Damien Picard picard.dam...@gmail.com
  wrote:

 As you can see in the generated HTML code, the css class my is
 applied to the DOM element table.
 Nevertheless, each td node of this table is applied the css style
 vertical-align with the setted VerticalAlignment.
 And, in the XHTML/CSS definition, the style order applied is :
  - style attribute of the node
  - class attribute of the node
  - if there is no style or class attribute, inherits from parents

 Then, the style applied here is the one contained in the style
 attribute of td node, which override the one contained in the my class 
 of
 table node.


 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi Damien
 Yes, it is working now and the following is what the HTML generated!

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: bottom;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: bottom;
  div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 Hmmm ... I thought I tried
 setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM) too!
 I don't know what was in my head at that time!


 But I'm still don't understand why my approach doesn't work?



 On Tue, Jun 30, 2009 at 4:38 PM, Damien Picard 
 picard.dam...@gmail.com wrote:

 Hi,

 Could you try something like :

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
  smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
  // this style will set vertical-align: bottom
 *panel.setVerticalAlignment(HasVerticalAlignment.VerticalAlignmentConstant.ALIGN_BOTTOM);
 *
  panel.setStyleName(my);//Probably not useful (cause the classe is
 applied to table DOM node instead of td DOM node)

 panel.add(bigTitle);
  panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }

 Regards,

 2009/6/30 hezjing hezj...@gmail.com

 Hi

 I have a big label and a small label, and I want to align-bottom
 these labels when added in HorizontalPanel:

 public void onModuleLoad() {

  Label bigTitle = new Label(BIG);
 bigTitle.setStyleName(big);

 Label smallTitle = new Label(small);
 smallTitle.setStyleName(small);

 HorizontalPanel panel = new HorizontalPanel();
 // this style will set vertical-align: bottom
  panel.setStyleName(my);

 panel.add(bigTitle);
 panel.add(smallTitle);

  RootPanel root = RootPanel.get();
 root.add(panel);
 }


 and here is my CSS:

 .my {
 vertical-align: bottom;
 background: yellow;
 }

 .big {
 font-size: 15px;
 font-weight: bold;
 background: red;
 }

 .small {
 font-size: xx-small;
 background: blue;
 }


 The problem is the smallTitle is always top aligned.


 The following is what I observed in Firebug, and it seems that both
 labels are set to style=vertical-align: top

 table class=my cellspacing=0 cellpadding=0
 tbody
 tr
 td align=left style=vertical-align: top;
 div class=bigBIG/div
 /td
 td align=left style=vertical-align: top;
 div class=smallsmall/div
 /td
 /tr
 /tbody
 /table


 It doesn't help if I
 panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM).

 How can I align the labels to the bottom of HorizontalPanel?


 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm





 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm





 --

 Hez





 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm








 --
 Damien Picard
 Open Source BPM : http://code.google.com/p/osbpm

 



-- 

Hez

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

Re: GWT components too big in IE

2009-06-30 Thread Jason Essington

Or it could just be IE's wonderful (read broken) box model  
implementation.

-jason
On Jun 29, 2009, at 3:39 PM, max3000 wrote:


 Hi,

 GWT seems to render components too big in IE. This can be seen simply
 by navigating to the GWT showcase. Make sure the zoom is reset (100%).

 It is obvious this is a GWT thing as evidenced by looking at Google
 docs. The components in docs are fine.

 Is this a bug? (a feature??)

 Thanks,
 Max

 


--~--~-~--~~~---~--~~
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: Send list box items to server

2009-06-30 Thread Kamal Chandana Mettananda
Hi,

You can call your servlet as a service and send the data with a method call.

May be the following tutorial will help you to achieve this.

http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial.html

BR,
Kamal

---
Kamal Mettananda
http://lkamal.blogspot.com






On Tue, Jun 30, 2009 at 7:43 PM, ArunDhaJ arund...@gmail.com wrote:


 Hi,
 I've a GWT page with a list box and a button. Upon clicking the
 button, I need to send the selected list item to a servlet. How can I
 pass this list?by URL query string(GET)? or using POST ?

 Regards,
 ArunKumar.Dharuman
 


--~--~-~--~~~---~--~~
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: onModuleLoad is sometimes not called (Internet Explorer)

2009-06-30 Thread Hiedi

I have seen this alot with multiple GWT modules that my team has
built. The root of the problem is a timing issue between GWT
downloading and executing the moduleLoad and the page actually being
done downloading all its content and rendering the host page. I am not
surprised that disabling compression helped a few posters because
compression adds an additional step for IE to write the data to disk,
uncompress, and update the cache (index.dat) with the entry. The
additional compression sometimes wreaks havoc since there are bugs in
IE that hang threads when there is a lot of dynamic javascript loading
static content like gifs and css. If the resource requests are not
satsified from cache there are often many aborted http requests made
that tie up threads (you can see this with a tool like IEWatch). Alot
of times, the hang or issue with onmoduleload will go away when your
cache is primed because it avoids the additional aborted calls.

We solved this by doing a few things:

1) Make your onmoduleLoad re-entrant - meaning if its called twice, it
will only execute once and the second time won't fail.
2) Gwt will either call onModuleLoad or IE can call onModuleLoad in
its onload methods if Gwt hasn't done it yet. One of them will work!
3) Pre-load any static content on your page -- like CSS and GIFs so
that your cache is primed before your GWT app requests content. This
will reduce your exposure to timing issues and compression.

By doing this we avoided onModuleLoad never being called -- it always
works from at least one call b/c IE's body.onload won't fire until all
the non-deferred resources have been downloaded.
--~--~-~--~~~---~--~~
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: Send list box items to server

2009-06-30 Thread ArunDhaJ

It was a good tutorial on writing a servlets for GWT.
Actually in my case, I'm using our own webserver within which we add
servlets in it.

for me the only option to communicate to servlet is through GET or
POST request..



On Jun 30, 8:00 pm, Kamal Chandana Mettananda lka...@gmail.com
wrote:
 Hi,

 You can call your servlet as a service and send the data with a method call.

 May be the following tutorial will help you to achieve this.

 http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial...

 BR,
 Kamal

 ---
 Kamal Mettanandahttp://lkamal.blogspot.com



 On Tue, Jun 30, 2009 at 7:43 PM, ArunDhaJ arund...@gmail.com wrote:

  Hi,
  I've a GWT page with a list box and a button. Upon clicking the
  button, I need to send the selected list item to a servlet. How can I
  pass this list?by URL query string(GET)? or using POST ?

  Regards,
  ArunKumar.Dharuman- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Send list box items to server

2009-06-30 Thread Kamal Chandana Mettananda
So I guess you will need to create a link dynamically and open it using GWT;
it means you'll have to use a GET call with parameters.

---

http://lkamal.blogspot.com


On Tue, Jun 30, 2009 at 9:18 PM, ArunDhaJ arund...@gmail.com wrote:


 It was a good tutorial on writing a servlets for GWT.
 Actually in my case, I'm using our own webserver within which we add
 servlets in it.

 for me the only option to communicate to servlet is through GET or
 POST request..



 On Jun 30, 8:00 pm, Kamal Chandana Mettananda lka...@gmail.com
 wrote:
  Hi,
 
  You can call your servlet as a service and send the data with a method
 call.
 
  May be the following tutorial will help you to achieve this.
 
  http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial...
 
  BR,
  Kamal
 
  ---
  Kamal Mettanandahttp://lkamal.blogspot.com
 
 
 
  On Tue, Jun 30, 2009 at 7:43 PM, ArunDhaJ arund...@gmail.com wrote:
 
   Hi,
   I've a GWT page with a list box and a button. Upon clicking the
   button, I need to send the selected list item to a servlet. How can I
   pass this list?by URL query string(GET)? or using POST ?
 
   Regards,
   ArunKumar.Dharuman- Hide quoted text -
 
  - Show quoted text -
 


--~--~-~--~~~---~--~~
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: trying to track GWT timers

2009-06-30 Thread davidRoe

I had thought the same.

I am running GWT code under MobileSafari on the iPhone and am seeing
occasional program crashes on exit.  the stack trace seems to indicate
that a timer is being fired, and I believe that perhaps the UIWebView
has disappeared by the time it runs code expecting it to be there.

#0  0x312e5e60 in KJS::FunctionExecState::FunctionExecState ()
#1  0x312e5b98 in KJS::FunctionImp::callAsFunction ()
#2  0x312df0f4 in KJS::FunctionCallDotNode::evaluate ()
#3  0x312e5a78 in KJS::ExprStatementNode::execute ()
#4  0x312e61c4 in KJS::FunctionBodyNode::execute ()
#5  0x312e5bac in KJS::FunctionImp::callAsFunction ()
#6  0x31326ae8 in KJS::JSObject::call ()
#7  0x328296d4 in WebCore::ScheduledAction::execute ()
#8  0x32829350 in KJS::Window::timerFired ()
#9  0x32829208 in KJS::DOMWindowTimer::fired ()
#10 0x32824c84 in WebCore::TimerBase::fireTimers ()
#11 0x328249ac in WebCore::TimerBase::sharedTimerFired ()
#12 0x3282490c in WebCore::timerFired ()
#13 0x30269d8e in CFRunLoopRunSpecific ()
#14 0x30269326 in CFRunLoopRunInMode ()
#15 0x32bc0748 in RunWebThread ()
#16 0x3146178c in _pthread_body ()
#17 0x in ?? ()

if I can figure out how to override setTimeout() and setInterval(), I
may be able to track what is going on.

/dave

On Jun 30, 5:12 am, Ian Bambury ianbamb...@gmail.com wrote:
 Surely when you close the browser window (or navigate away) the timers are
 gone.
 Ian

 http://examples.roughian.com

 2009/6/30 davidroe roe.da...@gmail.com



  I have a situation where I need to ensure that _every_ timer launched
  is closed upon exit, meaning I track each timer I create and ensure
  that I cancel it when the application is about to close.

  is anyone aware of any timers that GWT launches that are, perhaps,
  allowed to self disintegrate, rather than actually being cancelled?

  thanks,
  /dave
--~--~-~--~~~---~--~~
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: Why does HorizontalPanel cells defaults to vertical-align: top?

2009-06-30 Thread max3000

I understand, sorry if my responses sounded like that. Again, I really
appreciate the help.

Thanks,

Max

--~--~-~--~~~---~--~~
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: Why does HorizontalPanel cells defaults to vertical-align: top?

2009-06-30 Thread Joseph Arceneaux
Thanks much, but if you meant:
panel.setCellHeight (label, 100%);

that had 0 effect.

I have noticed that if I change my panel to not fill its container (it goes
into a dockpanel), then it's only the size of its two Label children, and
hence the labels are contiguous.  So I'm pretty sure I can get this by
placing the two Labels into another, unsized Vertical Panel and then placing
that panel into my original one.

But it seems to me that it should be much simpler - like setting vertical
alignment to TOP, like it says in the documentation.  This seems to me like
a bug in either the doc or the functionality...

Joe

On Mon, Jun 29, 2009 at 12:29 PM, Ian Bambury ianbamb...@gmail.com wrote:

 Set the cell height to 100%
 Ian

 http://examples.roughian.com


 2009/6/29 Joseph Arceneaux joe.arcene...@gmail.com

 This placement within a panel is very confusing.  I am trying to stack
 some labels contiguously in a vertical panel, starting at the top.  But the
 panel places the first label at the very top, and then the second label in
 the very middle.  I've tried changing the CSS style, and also various
 permutations of the following Java:
 panel.setVerticalAlignment (HasVerticalAlignment.ALIGN_TOP);
 panel.add (label_1);
 panel.setCellVerticalAlignment (label_1,
 HasVerticalAlignment.ALIGN_TOP);
 panel.add (label_2);
 panel.setCellVerticalAlignment (offset,
 HasVerticalAlignment.ALIGN_TOP);

 but nothing seems to change this behavior.

 Any suggestions?

 Thanks,
 Joe

 On Mon, Jun 29, 2009 at 5:09 AM, Ian Bambury ianbamb...@gmail.comwrote:

 vertical-align: bottom !important;
 ?

 Ian

 http://examples.roughian.com


 2009/6/29 alex.d alex.dukhov...@googlemail.com


 panel.setCellVerticalAlignment(textbox,
 HasVerticalAlignment.ALIGN_BOTTOM);

 On 27 Jun., 21:59, max3000 maxime.lar...@gmail.com wrote:
  Hi,
 
  I'm trying to align an image and a textbox in a HorizontalPanel using
  only CSS. I want the textbox to be aligned at the bottom.
 
  Doing the following works:
  panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
 
  However, no amount of CSS at the panel level works. It figures because
  GWT inserts an automatic vertical-align: top, like this:
 
  td align=left style=vertical-align: top;
  img class=search_logo src=/resources/logo.jpg/
  /td
 
  Why is that so? Am I missing something or is there no way to align
  cell content at the bottom using CSS?
 
  Thanks,
  Max









 


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



unable to find xml file

2009-06-30 Thread thesheff

I'm very new to the GWT and have been reading GWT in Action.  I'm
trying to follow the examples and I'm getthing this error:

[ERROR] Unable to find 'dashboard.gwt.xml' on your classpath; could be
a typo, or maybe you forgot to include a classpath entry for source?

I have Dashboard.gwt.xml file but I'm not sure where to even try to
fix this because of the case?  I'm guessing this is getting auto
generated by the:

script type=text/javascript language=javascript src=dashboard/
dashboard.nocache.js/script

but isn't this file auto generated by the GWT?  Please point me in the
right direction if possible.  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
-~--~~~~--~~--~--~---



Stop DialogBox expand outside the bounds of visible screen area

2009-06-30 Thread shahid

I am displaying a lengthy form inside a centered DialogBox. I cannot
see the top and bottom of the DialogBox because it extends outside the
visible screen area. Does anyone know how to get round this ?

--~--~-~--~~~---~--~~
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: Eclipse plugin for Eclipse 3.5 (Galileo)

2009-06-30 Thread Van

The sooner the better.  My team is developing a large GWT application
and need to move to Galileo ASAP.

Van


On Jun 25, 5:17 pm, Alex Rudnick a...@google.com wrote:
 If you enjoyed this thread, you may also like 
 these:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 We're working on it *right now*, rest assured!

 On Thu, Jun 25, 2009 at 4:31 PM, Rob Tannercaspersg...@gmail.com wrote:
  When will a version of the plugin be released for Eclipse 3.5 (or can
  I simply use the version for 3.4).  I would like to use the new
  Eclipse, but GWT has become one of my main tools.

  Thanks,
  Rob

 --
 Alex Rudnick
 swe, gwt, atl

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



Problem using junitCreator

2009-06-30 Thread Chris

Hi

I'm trying to add a JUnit test suite using the junitCreator script,
but am having problems. I have followed the instructions at (http://
code.google.com/webtoolkit/tutorials/1.6/JUnit.html).

Here's what I run from the project's directory (i.e., the one
containing the src and war directories):

junitCreator -junit /Applications/eclipse/plugins/
org.junit_3.8.2.v20080602-1318/junit.jar -module com.piconmat -
eclipse piconmat com.piconmat.client.PiconmatTest

The script runs and says:

Created directory /Users/cjr/Work/Eclipse Workspace/piconmat/test
Created directory /Users/cjr/Work/Eclipse Workspace/piconmat/test/com/
piconmat/client
Created file /Users/cjr/Work/Eclipse Workspace/piconmat/test/com/
piconmat/client/PiconmatTest.java
Created file /Users/cjr/Work/Eclipse Workspace/piconmat/PiconmatTest-
hosted.launch
Created file /Users/cjr/Work/Eclipse Workspace/piconmat/PiconmatTest-
web.launch
Created file /Users/cjr/Work/Eclipse Workspace/piconmat/PiconmatTest-
hosted
Created file /Users/cjr/Work/Eclipse Workspace/piconmat/PiconmatTest-
web

If I then refresh my project in Eclipse, I see the new test directory
at the same level as src, war etc., displayed as a hierarchy of
directories (rather than a package, as I'd imagine—and Eclipse is
obviously not compiling the test class for me, also as I'd expect); I
also see the various launch scripts etc.

If I run the PiconmatTest-hosted script, I get a Class not found
com.piconmat.client.PiconmatTest error—presumably because the java
file has not been compiled.

If I look at the Run Configurations, and select one of the generated
configurations, the Run button is greyed out.

If I run junitCreator within the src directory, as:

junitCreator -junit /Applications/eclipse/plugins/
org.junit_3.8.2.v20080602-1318/junit.jar -module com.piconmat -
eclipse piconmat com.piconmat.client.PiconmatTest

then after refreshing the project in Eclipse I get a new
test.com.piconmat.client package, but the following compile errors:

The project was not built since its build path is incomplete. Cannot
find the class file for junit.framework.TestCase. Fix the build path
then try building this project
The type junit.framework.TestCase cannot be resolved. It is indirectly
referenced from required .class files

I'm sure there's something simple that I'm not doing, and would really
appreciate someone telling me what that is!

Thanks in advance

Chris

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



IE Performance Problems

2009-06-30 Thread radcortez

Hi,

I'm currently developing a web application using GWT, and i'm having
some performance issues on IE 6 and IE 7. My main requirement is to
have a grid able to fulfill the following operations:
- Pagination
- Sort
- Column Resize
- Add / Remove / Edit rows
- Data Grouping
- Highlighting

I've looked to some existent solutions like Ext GWT and Smart GWT and
they performed poorly on IE, so i decided to make my own simpler
implementation.

I began with a simple grid with only data display and started from
that on, to implement those functionalities mentioned above. With each
new implementation, the performance started to degrade a lot, to a
point considered unacceptable to me.

I know about IE JS engine problems, but is it possible to have a high
performance grid with those features? If yes, do you think i should
stick with some sort of library like Ext GWT or Smart GWT? In my
opinion, the grids offered by those libraries are also slow. Does
anyone have any set of recommendations to develop high performance
widgets in GWT for IE?

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



GWT-generated Webpage fails to display on IE

2009-06-30 Thread snikrot

Hi all,

Since a few days I've been developing a GWT-Web application (so I'm
still pretty much a newbie). This application only (for now) runs only
client sided. After compiling and running under Firefox  Opera my
application just runs fine. When running under Internet Explorer I'm
getting an error though. I'm wondering if anyone knows the solution to
get rid of this error?

Thanks in advance.


 Error 
Line: 3
Char: 143
Error: 'Undefined' is null or not an object
Code: 0


When searching with grep -r undefined *, I get this result (check the
last line):

 Cause 
war/verenweb/59DC383528440B72ACE9B58545B6AA9A.cache.html:
_=DF.prototype=new b$();_.gC=eG;_.tI=0;function jG(){return function
(d,g){var
h=window,e=h.onbeforeunload,f=h.onunload;h.onbeforeunload=function(a)
{var c,b;try{c=d()}finally{b=ee(a)}if(c!=null){return c}if(b!=null)
{return b}};h.onunload=function(a){try{g()}finally{ff
(a);h.onresize=null;h.onscroll=null;h.onbeforeunload=null;h.onunload=null}};h.__gwt_initWindowCloseHandler=undefined}.toString
()}


Which shows undefined (textual) is used only once in all my files and
appears to be autogenerated.


My main-class (Entry-Point) is specified by:
 Entry-Point 
@Override
public void onModuleLoad() {
// TODO Auto-generated method stub
RootPanel.get(VerenWeb).add(mainPanel);

}

DocoPanel mainPanel = new DocoPanel();


DocoPanel is an AbsolutePanel, which contains other AbsolutePanels,
ListBoxes, TextBoxes and Labels.
I tried using a windowCloseHandler, but this failed as it did not
update h.__gwt_initWindowCloseHandler=undefined

My XML and WebPage are specified by:
 VerenWeb.html

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
!-- The HTML 4.01 Transitional DOCTYPE declaration--
!-- above set at the top of the file will set --
!-- the browser's rendering engine into   --
!-- Quirks Mode. Replacing this declaration --
!-- with a Standards Mode doctype is supported, --
!-- but may lead to some differences in layout.   --

html
  head
meta http-equiv=content-type content=text/html;
charset=UTF-8

!--
--
!-- Consider inlining CSS to reduce the number of requested files
--
!--
--
link type=text/css rel=stylesheet href=VerenWeb.css
titleDoco Web Project/title

!--   --
!-- This script loads your compiled module.   --
!-- If you add any GWT meta tags, they must   --
!-- be added before this line.--
!--   --
script type=text/javascript language=javascript src=verenweb/
verenweb.nocache.js/script
  /head

  !--   --
  !-- The body can have arbitrary html, or  --
  !-- you can leave the body empty if you want  --
  !-- to create a completely dynamic UI.--
  !--   --
  body

!-- OPTIONAL: include this if you want history support --
iframe src=javascript:'' id=__gwt_historyFrame tabIndex='-1'
style=position:absolute;width:0;height:0;border:0/iframe

h1Doco Web Project/h1

div id=VerenWeb/div

  /body
/html



 DocoMain.gwt.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.6.4//
EN http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-
source/core/src/gwt-module.dtd
module rename-to='verenweb'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/
  inherits name='snikrot.standard.debug'/
  inherits name='snikrot.standard.core.debug'/
  inherits name='snikrot.standard.core.observer'/
  inherits name='snikrot.standard.core.stdObjectCalculations'/
  inherits name='snikrot.standard.gwt.stdGUI'/
  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='veren.web.client.docoMain.DocoMain'/
/module


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to 

Excel and GWT

2009-06-30 Thread garshita

Hi,
I need to read data from my excel sheet and display it using GWT
dynamically...I am very new to the topic. Can u suugest me a base so
tht i can proceed... ?

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



creating your own GWT theme or a pluggable look and feel

2009-06-30 Thread hobbyist

I am new to GWT and I went through a couple of the tutorials on the
GWT website.  I've started using GWT to make a webapp just for fun,
and I one of the first things that I had difficulty with was styling
the application in its entirety.  I want to give the website a certain
look, but I also want it to be easy to change the style of the webapp
in the future, and maybe even dynamically while the app is running (so
that logged in users could each have their own personal style applied
to the website, for example).

I noticed on the UIObject javadoc it says By convention, GWT style
names are of the form [project]-[widget], so that, for example, the
default Button class name is gwt-Button.  Is there a way to change
the [project] part of this name, so that, for example, I could change
all Button class names to, say, my-Button without having to call
setStyleName() on every Button individually?  If there is no way to do
this dynamically, is there at least a way to create my own GWT theme
so that I can reference in the Project.gwt.xml file, so if I want to
change the look and feel of my webapp later, I can do it by creating a
new stylesheet and changing one line in Project.gwt.xml rather calling
setStyleName() on every widget?

--~--~-~--~~~---~--~~
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: Stop DialogBox expand outside the bounds of visible screen area

2009-06-30 Thread Isaac Truett

Well, yeah. Set the height of the DialogBox.

In CSS for example:

.gwt-DialogBox {
  height: 300px;
}


On Tue, Jun 30, 2009 at 5:27 AM, shahidshahidza...@gmail.com wrote:

 I am displaying a lengthy form inside a centered DialogBox. I cannot
 see the top and bottom of the DialogBox because it extends outside the
 visible screen area. Does anyone know how to get round this ?

 


--~--~-~--~~~---~--~~
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: WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

2009-06-30 Thread Chad

Yes. That's the same type of bug reports I found when I first saw this
error (when I installed Eclipse 3.4 on Windows Vista x64). I tried
creating the registry key the error complains about, but it didn't
resolve the problem, so I just ignore it. It doesn't appear to hurt
anything and after a short while, I stopped noticing it altogether. :)
I imagine it will be corrected sooner or later and one day with an
upgrade, the error will just go away the same way it came.

Chad

On Jun 29, 9:11 am, Miguel Méndez mmen...@google.com wrote:
 Thanks Chad.  I must admit that I have never encountered that one.
 However, I did find the following bug in Java's bug 
 tracker:http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4479451.





 On Mon, Jun 29, 2009 at 9:58 AM, Chad chad...@gmail.com wrote:

  Miguel,

  I get the same error. It's generated from Eclipse and shows in the
  Console of Eclipse. It appears every time I run or compile an
  application. I don't think it's a GWT issue. I searched around when I
  first saw and IIRC, it's an issue within Eclipse itself. Trying to
  write to the wrong registry root or something like that.

  HTH,
  Chad

  On Jun 29, 7:46 am, Miguel Méndez mmen...@google.com wrote:
   What was going on when the error was reported?  How was it reported?  Was
   there a stack trace?

   On Sat, Jun 27, 2009 at 3:03 PM, Farinha fari...@gmail.com wrote:

The subject has it all.

Eclipse 3.4.2
GWT Eclipse Plugin
Windows 7

Thanks in advance for the help.

   --
   Miguel

 --
 Miguel
--~--~-~--~~~---~--~~
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 load a url in a panel?

2009-06-30 Thread waf

Hi

This is not correct.

formPanel.setHtml(htmltext);

is called when the request is send and then htmltext is null or
whatever value it has.

It is set to the response text when the request is finished and
that's some time later. You should setHtml in onResponseReceived.

--
waf


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



Big RPC and long running script error

2009-06-30 Thread John Lonergan

Does the RPC mechanism take any steps to avoid the dreaded long
running script error for big serialisations and deserialisations?

If not then is there anything I can do on the client side to chunk the
serialisation/deserialisation.

I'm shunting 10,000 rows up from the server and back.

Surprisingly it seems to perform ok even in IE however I'd like to
understand the limitations of this RPC technology.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Native JSON parsing

2009-06-30 Thread Jason.Sadler

I've been searching around to see if anyone's brought this up already
- I haven't found anything (which surprises me) so my apologies if
this is a repeat.
Browsers are slowly starting to support native JSON - I know in
particular Firefox 3.5 (released today) supports it and I'm under the
impression (although I haven't really done my homework on this one)
that some others already support it, or are working towards it.  Are
there any plans to change the GWT JSONParser to use native JSON
parsing instead of the slower and less-safe eval function?  A very
simple check along the lines of

if (undefined != JSON)
{
JSON.parse(myString);
}
else
{
eval('(' + myString ' + ')');
}

ought to do it, right?
--~--~-~--~~~---~--~~
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: IE Performance Problems

2009-06-30 Thread John Lonergan

I am using the SmartGwt grid and stuffing 10K rows into it using their
DataSource api wrapped round an RPC.
The entire data set gets held client-side.

This grid seems to handle loading 10k rows reasonably well.
Group/Multiple select may cause the slow running script error on big
lists so smartgwt has a configurable 'turn off groupby' at 1000 rows.
I don't enable multi select on big lists - is this a really useful
feature on a grid with N thousand rows?
I haven't yet seen sorting as a problem.
Add/remove/edit work fine.


On Jun 30, 1:00 am, radcortez radcor...@yahoo.com wrote:
 Hi,

 I'm currently developing a web application using GWT, and i'm having
 some performance issues on IE 6 and IE 7. My main requirement is to
 have a grid able to fulfill the following operations:
 - Pagination
 - Sort
 - Column Resize
 - Add / Remove / Edit rows
 - Data Grouping
 - Highlighting

 I've looked to some existent solutions like Ext GWT and Smart GWT and
 they performed poorly on IE, so i decided to make my own simpler
 implementation.

 I began with a simple grid with only data display and started from
 that on, to implement those functionalities mentioned above. With each
 new implementation, the performance started to degrade a lot, to a
 point considered unacceptable to me.

 I know about IE JS engine problems, but is it possible to have a high
 performance grid with those features? If yes, do you think i should
 stick with some sort of library like Ext GWT or Smart GWT? In my
 opinion, the grids offered by those libraries are also slow. Does
 anyone have any set of recommendations to develop high performance
 widgets in GWT for IE?

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



FireFox 3.5

2009-06-30 Thread Scooter

I tested our gwt app today on FireFox 3.5 on OSX now that it has been
released. Lots of very nasty javascript errors related to DOM with a
copy and paste as an example. Using GWT 1.6.4. The application loads
and I don't get error messages until I execute a particular part of
the application. I am using GXT for GUI so it could be a GXT related
issue.

Is FireFox 3.5 formally supported?

[FATAL] Uncaught Exception:
com.google.gwt.core.client.JavaScriptException:
(NS_ERROR_DOM_NOT_SUPPORTED_ERR): Operation is not supported
code: 9
INDEX_SIZE_ERR: 1
DOMSTRING_SIZE_ERR: 2
HIERARCHY_REQUEST_ERR: 3
WRONG_DOCUMENT_ERR: 4
INVALID_CHARACTER_ERR: 5
NO_DATA_ALLOWED_ERR: 6
NO_MODIFICATION_ALLOWED_ERR: 7
NOT_FOUND_ERR: 8
NOT_SUPPORTED_ERR: 9
INUSE_ATTRIBUTE_ERR: 10
INVALID_STATE_ERR: 11
SYNTAX_ERR: 12
INVALID_MODIFICATION_ERR: 13
NAMESPACE_ERR: 14
INVALID_ACCESS_ERR: 15
VALIDATION_ERR: 16
TYPE_MISMATCH_ERR: 17
result: 2152923145
filename: 
http://localhost:8084/edu.scripps.hddesktop.Main/91F6113CB504FAA289B3017C98A2CE93.cache.html
lineNumber: 2403
columnNumber: 0
inner: null
data: null
[FATAL] Uncaught Exception:
com.google.gwt.core.client.JavaScriptException:
(NS_ERROR_DOM_NOT_SUPPORTED_ERR): Operation is not supported
code: 9
INDEX_SIZE_ERR: 1
DOMSTRING_SIZE_ERR: 2
HIERARCHY_REQUEST_ERR: 3
WRONG_DOCUMENT_ERR: 4
INVALID_CHARACTER_ERR: 5
NO_DATA_ALLOWED_ERR: 6
NO_MODIFICATION_ALLOWED_ERR: 7
NOT_FOUND_ERR: 8
NOT_SUPPORTED_ERR: 9
INUSE_ATTRIBUTE_ERR: 10
INVALID_STATE_ERR: 11
SYNTAX_ERR: 12
INVALID_MODIFICATION_ERR: 13
NAMESPACE_ERR: 14
INVALID_ACCESS_ERR: 15
VALIDATION_ERR: 16
TYPE_MISMATCH_ERR: 17
result: 2152923145
filename: 
http://localhost:8084/edu.scripps.hddesktop.Main/91F6113CB504FAA289B3017C98A2CE93.cache.html
lineNumber: 2403
columnNumber: 0
inner: null
data: null
--~--~-~--~~~---~--~~
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: FireFox 3.5

2009-06-30 Thread walrus

I am using GXT for GUI so it could be a GXT related issue.

It's not GXT related. We are not using GXT, but are facing the very
same issue.
--~--~-~--~~~---~--~~
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 get tab Widget in a TabPanel?

2009-06-30 Thread Memo Sanchez

I completely agree with bcottam :)


--~--~-~--~~~---~--~~
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: unable to find xml file

2009-06-30 Thread waf

Hi

The module XML file should be located at the parent of your client
package/directory, eg. if your client files are at org.gwtbook.client
then your module XML file should be located at org.gwtbook.

How was your project created, are you using any IDE?
Have you renamed the file after project was created?

--
waf

On 30 Cze, 18:23, thesheff dsheff...@gmail.com wrote:
 I'm very new to the GWT and have been reading GWT in Action.  I'm
 trying to follow the examples and I'm getthing this error:

 [ERROR] Unable to find 'dashboard.gwt.xml' on your classpath; could be
 a typo, or maybe you forgot to include a classpath entry for source?

 I have Dashboard.gwt.xml file but I'm not sure where to even try to
 fix this because of the case?  I'm guessing this is getting auto
 generated by the:

 script type=text/javascript language=javascript src=dashboard/
 dashboard.nocache.js/script

 but isn't this file auto generated by the GWT?  Please point me in the
 right direction if possible.  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: FireFox 3.5

2009-06-30 Thread Scooter

I was able to figure out how to trigger the error in my application.
It appears related to a mouse being moved in and out of a text boxes.
It could be tooltips related. If I move the mouse quickly across a
couple text fields in a form then I get the error. If I move in and
out of a single text field then no error. If I move the mouse slowly
across multiple text fields no error.


On Jun 30, 3:26 pm, walrus ask...@gmail.com wrote:
 I am using GXT for GUI so it could be a GXT related issue.

 It's not GXT related. We are not using GXT, but are facing the very
 same issue.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Survey - who's doing what

2009-06-30 Thread John Lonergan

Is there a survey anywhere showing who's using what components/
toolkits.

How many people are using just plain old GWT widgets / or some other
named toolkit (eg SmartGwt).
What folk are using 3rd party toolkits are they mixing basic GWT with
toolkit widgets, or just using the toolkit generally.
Are folk building new widgets (what/which) or just reusing/agregating
other's widgets.


Eg google wave - is this build on plain old GWT and/or to what extent
have the developers had to extend the basic GWT widget set (eg the GWT
grids are pretty basic).
--~--~-~--~~~---~--~~
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-generated Webpage fails to display on IE

2009-06-30 Thread waf

Hi there,

The problem is at some other place.
This 'undefined' property is correct javascript construct.
When trying to pinpoint a problem like this it is better to
compile with the output style 'Pretty'. This way you can
find more accurate location where the problem occured.

--
waf
--~--~-~--~~~---~--~~
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 architecture MVP/EventBus (mentioned at Google I/O)

2009-06-30 Thread Jason A. Beranek

I've struggled with the go(RootPanel.get()) function as well, but
discounted the idea of casting my Presenter.Display interface to a
Widget as it removes an amount of type safety from the presenter and
somewhat defeats the purpose of having a nice generic Display
interface for the Presenter to interact with. One solution I've tried,
which I think is promising, is to add a method to the Display
interface that accepts the Panel object presented to the go function.
For example,

class ContactViewer{
  interface Display {
...
void showDisplay( Panel panel );
  }
  ...
  public void go( Panel panel ) {
this.display.showDisplay(panel);
  }
}

Using this method, a Widget based ContactViewer.Display can add itself
to the supplied Panel object and Mocks can ignore the parameter for
testing purposes. As showing the Display object would be part of UI
testing anyway, this shouldn't effect test cases for the Presenter.

Cheers,

Jason

On Jun 29, 4:19 pm, mabogie mabo...@gmail.com wrote:
 check this out:

 http://www.webspin.be/

 I left out the model (Phone class here) and the command pattern, since
 I'm not using it yet.

 For your comment on the casting: I'm having trouble with that too.
 When I want to attach the widgets to the root panel or whatever other
 panel, I can't do anything but cast them. But nobody seems to have a
 good solution...

 On 29 jun, 23:13, Daniel Jue teamp...@gmail.com wrote:

  Does anyone have a working MVP/Eventbus sample of something simple
  like the PhoneEditor?
  I don't think I'm doing it right.  The code from the IO presentation
  leaves out enough details so that I'm not sure what to do.
  For instance, in my Presenter.class,

  I have something like this:
  public class Presenter {
  ...
  private Display display;
          interface Display {
                  HasClickHandlers getSaveButton();
                  HasClickHandlers getCancelButton();
                  HasClickHandlers getNumberField();
                  HasClickHandlers getLabelPicker();
          }
          void editPhone(Phone phone) {
                  this.phone = Phone.from(phone);
                  display.getNumberField().setValue(phone.getNumber());
                  display.getLabelPicker().setValue(phone.getLabel());
          }
  ...}

  Obviously, a HasClickHandlers object doesn't have a setValue method.
  It doesn't feel like I should be casting to the widget here, since we
  went through all the trouble of using the Display interface.

  I started looking at Mvp4g, but it seems to go off on a tangent with a
  code generation class to wire up presenters and views via 
  xml.http://code.google.com/p/mvp4g/
  It's also intertwined with some mvc4g classes.

  I just want something basic that works, so I can seed my project from
  there.  A minimalist, working command style RPC example would be nice
  too.
  Anyone?  If you're in the DC area, I'll buy you a drink!
--~--~-~--~~~---~--~~
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 architecture MVP/EventBus (mentioned at Google I/O)

2009-06-30 Thread Zheren

So if for a TextBox I need to bind both FocusHandler and BlurHandler,
I need to have two interfaces and combine them?

How does that work?

On Jun 30, 6:54 am, gscholt gsch...@gmail.com wrote:
 On Jun 29, 11:13 pm, Daniel Jue teamp...@gmail.com wrote:





  Does anyone have a working MVP/Eventbus sample of something simple
  like the PhoneEditor?
  I don't think I'm doing it right.  The code from the IO presentation
  leaves out enough details so that I'm not sure what to do.
  For instance, in my Presenter.class,

  I have something like this:
  public class Presenter {
  ...
  private Display display;
          interface Display {
                  HasClickHandlers getSaveButton();
                  HasClickHandlers getCancelButton();
                  HasClickHandlers getNumberField();
                  HasClickHandlers getLabelPicker();
          }
          void editPhone(Phone phone) {
                  this.phone = Phone.from(phone);
                  display.getNumberField().setValue(phone.getNumber());
                  display.getLabelPicker().setValue(phone.getLabel());
          }
  ...}

  Obviously, a HasClickHandlers object doesn't have a setValue method.
  It doesn't feel like I should be casting to the widget here, since we
  went through all the trouble of using the Display interface.

  I started looking at Mvp4g, but it seems to go off on a tangent with a
  code generation class to wire up presenters and views via 
  xml.http://code.google.com/p/mvp4g/
  It's also intertwined with some mvc4g classes.

  I just want something basic that works, so I can seed my project from
  there.  A minimalist, working command style RPC example would be nice
  too.
  Anyone?  If you're in the DC area, I'll buy you a drink!

 interface Display {
     HasClickHandlers getSaveButton();
     HasClickHandlers getCancelButton();
     HasValueString getNumberField();
     HasValueString getLabelPicker();

 }

 This will work for this example at least. If you want to bind events
 AND set a value to those fields you'd need to combine the two
 interfaces in a new one, or perhaps have two accessor methods.

 Gert
--~--~-~--~~~---~--~~
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: unable to find xml file

2009-06-30 Thread Dan Sheffner
This fixed the issue but.

module rename-to='dashboard'

The book I bought GWT in action expects GWT 1.4 and I'm trying to use GWT
1.6.4.  There are so many differences already within the 1.6.4 that this
book is almost useless.  I usually prefer to read text books and have a
physical book but I'm not sure this is possible with how fast things are
changing with GWT.  What would people suggest in my situation?  Examples are
nice on the google site but I'm new to this area of technology and want to
make sure I understanding the underlying concepts correctly.

also now I see GWT 2.0 already.  What would people suggest?  Thanks in
advance.



On Tue, Jun 30, 2009 at 2:38 PM, waf wlod...@gmail.com wrote:


 Hi

 The module XML file should be located at the parent of your client
 package/directory, eg. if your client files are at org.gwtbook.client
 then your module XML file should be located at org.gwtbook.

 How was your project created, are you using any IDE?
 Have you renamed the file after project was created?

 --
 waf

 On 30 Cze, 18:23, thesheff dsheff...@gmail.com wrote:
  I'm very new to the GWT and have been reading GWT in Action.  I'm
  trying to follow the examples and I'm getthing this error:
 
  [ERROR] Unable to find 'dashboard.gwt.xml' on your classpath; could be
  a typo, or maybe you forgot to include a classpath entry for source?
 
  I have Dashboard.gwt.xml file but I'm not sure where to even try to
  fix this because of the case?  I'm guessing this is getting auto
  generated by the:
 
  script type=text/javascript language=javascript src=dashboard/
  dashboard.nocache.js/script
 
  but isn't this file auto generated by the GWT?  Please point me in the
  right direction if possible.  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: unable to find xml file

2009-06-30 Thread Kwhit

I would really consider running through the Google getting started
tutorials. They are well structured and pretty complete in that they
also introduce you to the server side and App Spot which is frankly a
brilliant service.

Here's the three most used links I used whilst getting up to speed.

http://code.google.com/webtoolkit/gettingstarted.html
http://gwt.google.com/samples/Showcase/Showcase.html
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/index.html?overview-summary.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
-~--~~~~--~~--~--~---



New site created with GWT

2009-06-30 Thread Michael W

I am happy to announce that we launched beta version of holidayinn
website written with GWT this past weekend.
The new site http://www.holidayinn.com/hotels/us/en/reservation will
replace existing site http://www.ichotelsgroup.com/h/d/hi/1/en/home in
the future.

The existing site has over 2 million hit a day.

GWT is used in client side and Spring MVC is applied in server side

Following lists some of the features including the package we used:

--Multi-language (currently only support US English and Queen English)
--Spring SL
--JSON.
--RPC.encodeResponseForSuccess
--Suggest Box
--Client side logging
--Customized SEO
--RPC timed out
--Session backup, once refresh page, client side data is retrieved
from server again by using RPC
--Visual effect to display hotel images
--Integrated dynamic content management


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



Converting gwt project in Windows to Mac with eclipse gwt plugin

2009-06-30 Thread EricM

I am trying to convert a web-application project originally created in
the following environment-
- on a Windows installation of eclipse
   - using GWT 1.4.62,  installed separately from eclipse

into the following environment
  - a mac installation of eclipse
  - with gwt 1.6.4  installed as an eclipse plug in.

I ran into this problems on my mac installation:

* When I right-click on the project in eclipse and do GWT Compile, I
get the message that my project is not a GWT project

How should I configure my project  so as to compile successfully with
the google eclipse plugin?


Thanks,
Eric.



--~--~-~--~~~---~--~~
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: Excel and GWT

2009-06-30 Thread bradr

check out JExcelAPI:
http://jexcelapi.sourceforge.net/

You can create a Servlet / RPC method that reads the excel spreadsheet
and returns the contents to gwt to display in a FlexTable

On Jun 29, 10:41 pm, garshita grshtgu...@gmail.com wrote:
 Hi,
 I need to read data from my excel sheet and display it using GWT
 dynamically...I am very new to the topic. Can u suugest me a base so
 tht i can proceed... ?

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



Line Breaks in Labels Problems

2009-06-30 Thread il1019

I'm having some issues with line breaks. They work in the Hosted
Browser as well as IE8, however the don't work in Firefox or Opera.
For example, if the user enters code in a text area that has line
breaks (they pressed enter at some point), these line breaks will only
be displayed in IE. I'm wondering if I should just convert the text to
HTML and replace the \n with br, however that wouldn't be as clean.
Is this a GWT problem, or am I doing something wrong?

Here is some sample code that shows my problem. If you try anything
with a carriage return, it will work in IE but not in FF or Opera.

VerticalPanel mainPanel = new VerticalPanel();
final Label label = new Label();
final TextArea box = new TextArea();
mainPanel.add(label);
mainPanel.add(box);
Button switchView = new Button(Update Label);
switchView.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
label.setText(box.getText());
}});
mainPanel.add(switchView);
RootPanel.get().add(mainPanel);

For example, if you use the text:

asdf

asdf

asdf

in IE it will render correctly, however anywhere else will simply
show:

asdf asdf asdf

Thanks for your help!

--~--~-~--~~~---~--~~
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: Why does HorizontalPanel cells defaults to vertical-align: top?

2009-06-30 Thread Ian Bambury
It's not a bug, it's just how HTML works.
Put a border on the vp (vp.setBorder(1)) and give the labels a background
colour and you will see what you are doing more easily.

The VP is a table, and if you have two TDs and give the table a height, each
TD will be half that height (if the content is the same. Therefore your
label in the second cell will be at the top of the second cell, but still be
half way down the VP

You are probably using the wrong widget. Use a FlowPanel, give it a height
if you want, and put the labels in that if you want them together with space
underneath.

Ian

http://examples.roughian.com


2009/6/30 Joseph Arceneaux joe.arcene...@gmail.com

 Thanks much, but if you meant:
 panel.setCellHeight (label, 100%);

 that had 0 effect.

 I have noticed that if I change my panel to not fill its container (it goes
 into a dockpanel), then it's only the size of its two Label children, and
 hence the labels are contiguous.  So I'm pretty sure I can get this by
 placing the two Labels into another, unsized Vertical Panel and then placing
 that panel into my original one.

 But it seems to me that it should be much simpler - like setting vertical
 alignment to TOP, like it says in the documentation.  This seems to me like
 a bug in either the doc or the functionality...

 Joe


 On Mon, Jun 29, 2009 at 12:29 PM, Ian Bambury ianbamb...@gmail.comwrote:

 Set the cell height to 100%
 Ian

 http://examples.roughian.com


 2009/6/29 Joseph Arceneaux joe.arcene...@gmail.com

 This placement within a panel is very confusing.  I am trying to stack
 some labels contiguously in a vertical panel, starting at the top.  But the
 panel places the first label at the very top, and then the second label in
 the very middle.  I've tried changing the CSS style, and also various
 permutations of the following Java:
 panel.setVerticalAlignment (HasVerticalAlignment.ALIGN_TOP);
 panel.add (label_1);
 panel.setCellVerticalAlignment (label_1,
 HasVerticalAlignment.ALIGN_TOP);
 panel.add (label_2);
 panel.setCellVerticalAlignment (offset,
 HasVerticalAlignment.ALIGN_TOP);

 but nothing seems to change this behavior.

 Any suggestions?

 Thanks,
 Joe

 On Mon, Jun 29, 2009 at 5:09 AM, Ian Bambury ianbamb...@gmail.comwrote:

 vertical-align: bottom !important;
 ?

 Ian

 http://examples.roughian.com


 2009/6/29 alex.d alex.dukhov...@googlemail.com


 panel.setCellVerticalAlignment(textbox,
 HasVerticalAlignment.ALIGN_BOTTOM);

 On 27 Jun., 21:59, max3000 maxime.lar...@gmail.com wrote:
  Hi,
 
  I'm trying to align an image and a textbox in a HorizontalPanel using
  only CSS. I want the textbox to be aligned at the bottom.
 
  Doing the following works:
  panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_BOTTOM);
 
  However, no amount of CSS at the panel level works. It figures
 because
  GWT inserts an automatic vertical-align: top, like this:
 
  td align=left style=vertical-align: top;
  img class=search_logo src=/resources/logo.jpg/
  /td
 
  Why is that so? Am I missing something or is there no way to align
  cell content at the bottom using CSS?
 
  Thanks,
  Max












 


--~--~-~--~~~---~--~~
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: Invoke oracle from suggestbox on key

2009-06-30 Thread Isaac Truett

Are you looking for the showSuggestionList() method of SuggestBox?


On Mon, Jun 29, 2009 at 10:16 AM, CMBschrepf...@gmail.com wrote:

 I would like to add a key handler to the suggestbox so that on a
 keydown it would ask the oracle for suggestion from the server, no
 matter if there is text or not in the input box.
 Is it possible, as I can't find a way to do this (adding the handler
 is easy, it's the requestSuggestions bit that I can't figure out)?
 


--~--~-~--~~~---~--~~
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 using junitCreator

2009-06-30 Thread Isaac Truett

 If I run the PiconmatTest-hosted script, I get a Class not found
 com.piconmat.client.PiconmatTest error—presumably because the java
 file has not been compiled.

Exactly. It's not compiled. Add test as a source folder
(ProjectPropertiesJava Build PathSource).

 The project was not built since its build path is incomplete. Cannot
 find the class file for junit.framework.TestCase. Fix the build path
 then try building this project
 The type junit.framework.TestCase cannot be resolved. It is indirectly
 referenced from required .class files


You need to add junit.jar to your classpath (ProjectPropertiesJava
Build PathLibraries).


On Tue, Jun 30, 2009 at 11:19 AM, Chrisuk.org.micros...@googlemail.com wrote:

 Hi

 I'm trying to add a JUnit test suite using the junitCreator script,
 but am having problems. I have followed the instructions at (http://
 code.google.com/webtoolkit/tutorials/1.6/JUnit.html).

 Here's what I run from the project's directory (i.e., the one
 containing the src and war directories):

 junitCreator -junit /Applications/eclipse/plugins/
 org.junit_3.8.2.v20080602-1318/junit.jar -module com.piconmat -
 eclipse piconmat com.piconmat.client.PiconmatTest

 The script runs and says:

 Created directory /Users/cjr/Work/Eclipse Workspace/piconmat/test
 Created directory /Users/cjr/Work/Eclipse Workspace/piconmat/test/com/
 piconmat/client
 Created file /Users/cjr/Work/Eclipse Workspace/piconmat/test/com/
 piconmat/client/PiconmatTest.java
 Created file /Users/cjr/Work/Eclipse Workspace/piconmat/PiconmatTest-
 hosted.launch
 Created file /Users/cjr/Work/Eclipse Workspace/piconmat/PiconmatTest-
 web.launch
 Created file /Users/cjr/Work/Eclipse Workspace/piconmat/PiconmatTest-
 hosted
 Created file /Users/cjr/Work/Eclipse Workspace/piconmat/PiconmatTest-
 web

 If I then refresh my project in Eclipse, I see the new test directory
 at the same level as src, war etc., displayed as a hierarchy of
 directories (rather than a package, as I'd imagine—and Eclipse is
 obviously not compiling the test class for me, also as I'd expect); I
 also see the various launch scripts etc.

 If I run the PiconmatTest-hosted script, I get a Class not found
 com.piconmat.client.PiconmatTest error—presumably because the java
 file has not been compiled.

 If I look at the Run Configurations, and select one of the generated
 configurations, the Run button is greyed out.

 If I run junitCreator within the src directory, as:

 junitCreator -junit /Applications/eclipse/plugins/
 org.junit_3.8.2.v20080602-1318/junit.jar -module com.piconmat -
 eclipse piconmat com.piconmat.client.PiconmatTest

 then after refreshing the project in Eclipse I get a new
 test.com.piconmat.client package, but the following compile errors:

 The project was not built since its build path is incomplete. Cannot
 find the class file for junit.framework.TestCase. Fix the build path
 then try building this project
 The type junit.framework.TestCase cannot be resolved. It is indirectly
 referenced from required .class files

 I'm sure there's something simple that I'm not doing, and would really
 appreciate someone telling me what that is!

 Thanks in advance

 Chris

 


--~--~-~--~~~---~--~~
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: CSS loads for 1 millisecond, then disappears

2009-06-30 Thread Isaac Truett

A code sample that reproduces the problem would be helpful. On the
surface, I don't see how this could be related to GWT. What happens if
you remove GWT from the scenario altogether?


On Fri, Jun 26, 2009 at 11:11 AM, DTrejotookie.tr...@gmail.com wrote:

 Hello,

 I am having a problem with my CSS.

 My hosted mode is a bit laggy, so when I first run my gwt app in
 hosted mode the css successfully loads for a few milliseconds, but
 when the lag stops and hosted mode settles down, my css disappears.

 When I compile/browse it, the css does not even show up for a few ms
 at the start, I suppose because modern browsers are so fast.

 This is how I access my css:
 link rel=stylesheet type=text/css href=test.css/

 I haven't been able to find anyone else who has had this problem.

 ** Can someone tell me why my css appears then disappears and how to
 fix it? **

 My project is very minimal, at the moment all it does is serve out
 the
 html page, with all the Java commented out in onModuleLoad()
 If it makes any difference, I am using gwt on appengine with the
 google plugin for eclipse.

 Any insight is appreciated,
 David Trejo

 (I posted this on the Google App Engine for Java group, and it was
 recommended that I ask this question here. Sister thread:
 http://groups.google.com/group/google-appengine-java/browse_thread/thread/9f3aa450a8e866ab?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: CSS loads for 1 millisecond, then disappears

2009-06-30 Thread Ian Bambury
Look in the module file (ends in *.gwt.xml)
Do you have the default GWT styles included?

I suspect you do and they are overwriting your styles in the HTML.

Ian

http://examples.roughian.com


2009/6/26 DTrejo tookie.tr...@gmail.com


 Hello,

 I am having a problem with my CSS.

 My hosted mode is a bit laggy, so when I first run my gwt app in
 hosted mode the css successfully loads for a few milliseconds, but
 when the lag stops and hosted mode settles down, my css disappears.

 When I compile/browse it, the css does not even show up for a few ms
 at the start, I suppose because modern browsers are so fast.

 This is how I access my css:
 link rel=stylesheet type=text/css href=test.css/

 I haven't been able to find anyone else who has had this problem.

 ** Can someone tell me why my css appears then disappears and how to
 fix it? **

 My project is very minimal, at the moment all it does is serve out
 the
 html page, with all the Java commented out in onModuleLoad()
 If it makes any difference, I am using gwt on appengine with the
 google plugin for eclipse.

 Any insight is appreciated,
 David Trejo

 (I posted this on the Google App Engine for Java group, and it was
 recommended that I ask this question here. Sister thread:

 http://groups.google.com/group/google-appengine-java/browse_thread/thread/9f3aa450a8e866ab?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
-~--~~~~--~~--~--~---



Client-side GChart 2.5: Faster, sharper, GWTCanvas-rendered, pie, line and area charts.

2009-06-30 Thread John Gunther

Client-side GChart lets you add charts to your GWT applications with
nothing more than its 3,000 or so lines of Apache 2.0 licensed Java.

GChart 2.5 adds a GWT canvas rendering option for better looking, more
quickly drawn, alpha-transparent, pie, line, and area charts.

Homepage (live-demo, downloads, docs): http://gchart.googlecode.com

Additional features include improved chart print-ability, inside/
outside/centered ticks, improved plot-area clipping, and faster single-
curve updates. For details, see the 2.5 release notes:

http://gchart.googlecode.com/svn/trunk/doc/com/googlecode/gchart/client/doc-files/gchart2p5features.html

Related links:

1) Maybe some Pie charts? eheheh - Ping

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

The above post predicted I'd need to use canvas for pie slices and
such well over a year ago. Thousands of banded-filled slices, aliased
lines, and one GWTCanvas later...I agree.

2) Many have mentioned GChart's graphical quality limitations:

I saw gchart but I need pie charts that are completely filled
- plcoirier, see:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/3cc6eb7516777ba0/c8564523c005d668?#c8564523c005d668

If you can live with somewhat not-so-sexy graphs (especially pie
charts), GChart (http://code.google.com/p/gchart/) is pretty easy to
integrate into a GWT app.
- Ravi Mundoli, see:
http://groups.google.com/group/Google-Web-Toolkit/msg/a4de63397dd71b7e

At http://yoxel.com GChart is only used for our burn-down chart
(during iteration tracking). I experimented quite a bit with GChart
for the dashboards but the pie charts still looked much better when
server-generated with our other package (also server generated version
was faster).
- Alexey, see:
http://code.google.com/p/gchart/issues/detail?id=11#c9

It's still not Flash, but at least it now has a decent pie slice.

3) The incubator's GWTCanvas: Valuable but buggy.

GWTCanvas: http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas

Without a library like GWTCanvas, the enhancements of this release
would never have been feasible, since implementing a cross-browser
vector graphics abstraction is way out of GChart's scope. Though very
useful as-is, I spent a few days (at least it felt like a few days)
just working around the following GWTCanvas bugs:

http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=241
http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=275
http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=278
http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=281
http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=282

A fully debugged GWTCanvas in the standard GWT distribution would also
greatly simplify GWT flowsheet modeling, games, etc. If you agree, you
can vote for (star) this issue in the GWT issue tracker:

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

John C. Gunther
http://gchart.googlecode.com

--~--~-~--~~~---~--~~
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: CSS loads for 1 millisecond, then disappears

2009-06-30 Thread David Trejo
How terribly ridiculous!
It seems that my css file started with a capital letter, I had it written
with a lowercase letter, and thus it was not working.
Now that I've corrected it, my css works:
link type=text/css rel=stylesheet href=Test.css/

I would have realized that much sooner if the css had not flashed before my
eyes before disappearing.

Sorry to waste your time guys. Thanks for trying to help, I appreciate it.

-David

On Tue, Jun 30, 2009 at 2:28 PM, Isaac Truett itru...@gmail.com wrote:


 A code sample that reproduces the problem would be helpful. On the
 surface, I don't see how this could be related to GWT. What happens if
 you remove GWT from the scenario altogether?


 On Fri, Jun 26, 2009 at 11:11 AM, DTrejotookie.tr...@gmail.com wrote:
 
  Hello,
 
  I am having a problem with my CSS.
 
  My hosted mode is a bit laggy, so when I first run my gwt app in
  hosted mode the css successfully loads for a few milliseconds, but
  when the lag stops and hosted mode settles down, my css disappears.
 
  When I compile/browse it, the css does not even show up for a few ms
  at the start, I suppose because modern browsers are so fast.
 
  This is how I access my css:
  link rel=stylesheet type=text/css href=test.css/
 
  I haven't been able to find anyone else who has had this problem.
 
  ** Can someone tell me why my css appears then disappears and how to
  fix it? **
 
  My project is very minimal, at the moment all it does is serve out
  the
  html page, with all the Java commented out in onModuleLoad()
  If it makes any difference, I am using gwt on appengine with the
  google plugin for eclipse.
 
  Any insight is appreciated,
  David Trejo
 
  (I posted this on the Google App Engine for Java group, and it was
  recommended that I ask this question here. Sister thread:
 
 http://groups.google.com/group/google-appengine-java/browse_thread/thread/9f3aa450a8e866ab?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: CSS loads for 1 millisecond, then disappears

2009-06-30 Thread David Trejo
Ian you were right, after I corrected the typo and commented out the gwt
styles, everything worked.
Thanks for helping,
David Trejo

On Tue, Jun 30, 2009 at 2:53 PM, David Trejo tookie.tr...@gmail.com wrote:

 How terribly ridiculous!
 It seems that my css file started with a capital letter, I had it written
 with a lowercase letter, and thus it was not working.
 Now that I've corrected it, my css works:
 link type=text/css rel=stylesheet href=Test.css/

 I would have realized that much sooner if the css had not flashed before my
 eyes before disappearing.

 Sorry to waste your time guys. Thanks for trying to help, I appreciate it.

 -David


 On Tue, Jun 30, 2009 at 2:28 PM, Isaac Truett itru...@gmail.com wrote:


 A code sample that reproduces the problem would be helpful. On the
 surface, I don't see how this could be related to GWT. What happens if
 you remove GWT from the scenario altogether?


 On Fri, Jun 26, 2009 at 11:11 AM, DTrejotookie.tr...@gmail.com wrote:
 
  Hello,
 
  I am having a problem with my CSS.
 
  My hosted mode is a bit laggy, so when I first run my gwt app in
  hosted mode the css successfully loads for a few milliseconds, but
  when the lag stops and hosted mode settles down, my css disappears.
 
  When I compile/browse it, the css does not even show up for a few ms
  at the start, I suppose because modern browsers are so fast.
 
  This is how I access my css:
  link rel=stylesheet type=text/css href=test.css/
 
  I haven't been able to find anyone else who has had this problem.
 
  ** Can someone tell me why my css appears then disappears and how to
  fix it? **
 
  My project is very minimal, at the moment all it does is serve out
  the
  html page, with all the Java commented out in onModuleLoad()
  If it makes any difference, I am using gwt on appengine with the
  google plugin for eclipse.
 
  Any insight is appreciated,
  David Trejo
 
  (I posted this on the Google App Engine for Java group, and it was
  recommended that I ask this question here. Sister thread:
 
 http://groups.google.com/group/google-appengine-java/browse_thread/thread/9f3aa450a8e866ab?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: Native JSON parsing

2009-06-30 Thread Thomas Broyer



On 30 juin, 21:16, Jason.Sadler jason.sad...@gmail.com wrote:
 I've been searching around to see if anyone's brought this up already
 - I haven't found anything (which surprises me) so my apologies if
 this is a repeat.
 Browsers are slowly starting to support native JSON - I know in
 particular Firefox 3.5 (released today) supports it and I'm under the
 impression (although I haven't really done my homework on this one)
 that some others already support it, or are working towards it.

IE8 does already support it. Next version of Safari will (4.1?), as
well as Chrome 3 (maybe some version of Chrome 2 already has it,
haven't checked). Don't know about the upcoming Opera 10.

 Are
 there any plans to change the GWT JSONParser to use native JSON
 parsing instead of the slower and less-safe eval function?

I think there are rather plans to replace the com.google.gwt.json.JSON
module with a better one (search the issue tracker and/or the group
archives). And when you're using JSO overlays, you already probably
have your own native method doing an eval(), that you can fix to use
native JSON parsing if supported.

 A very
 simple check along the lines of

 if (undefined != JSON)
 {
     JSON.parse(myString);}

 else
 {
     eval('(' + myString ' + ')');

 }

 ought to do it, right?

A better fix would be to store the function into a variable, so that
you only check for JSON != undefined once; but yes, it'd do it (and
for the user.agent=ie8 permutation, it could be set to using native
JSON, as it is know to be supported in this case)
--~--~-~--~~~---~--~~
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: FireFox 3.5

2009-06-30 Thread Thomas Broyer



On 30 juin, 21:26, walrus ask...@gmail.com wrote:
 I am using GXT for GUI so it could be a GXT related issue.

 It's not GXT related. We are not using GXT, but are facing the very
 same issue.

For those not following commits and/or the GWT-Contributors group,
this is a bug in FF3.5 (will be fixed in 3.5.1) and a workaround has
been committed earlier today and will be part of the upcoming GWT
1.6.5 (http://code.google.com/p/google-web-toolkit/source/detail?
r=5641 )
--~--~-~--~~~---~--~~
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-generated Webpage fails to display on IE

2009-06-30 Thread Thomas Broyer



On 30 juin, 12:24, snikrot ctenhoo...@gmail.com wrote:
 Hi all,

 Since a few days I've been developing a GWT-Web application (so I'm
 still pretty much a newbie). This application only (for now) runs only
 client sided. After compiling and running under Firefox  Opera my
 application just runs fine. When running under Internet Explorer I'm
 getting an error though. I'm wondering if anyone knows the solution to
 get rid of this error?

Are you using IE8? If so, until 1.6.5 is released and you make the
switch, you have to set IE8 in compat mode; e.g. by including the
following in your HTML:
meta http-equiv=X-UA-Compatible content=IE=EmulateIE7


--~--~-~--~~~---~--~~
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: Line Breaks in Labels Problems

2009-06-30 Thread Thomas Broyer



On 30 juin, 22:22, il1019 dean.mar...@gmail.com wrote:
 I'm having some issues with line breaks. They work in the Hosted
 Browser as well as IE8, however the don't work in Firefox or Opera.
 For example, if the user enters code in a text area that has line
 breaks (they pressed enter at some point), these line breaks will only
 be displayed in IE. I'm wondering if I should just convert the text to
 HTML and replace the \n with br, however that wouldn't be as clean.
 Is this a GWT problem, or am I doing something wrong?

See issues 314 and 960 (and there might be others)
http://code.google.com/p/google-web-toolkit/issues/detail?id=314
http://code.google.com/p/google-web-toolkit/issues/detail?id=960


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



Problems with gwt history in firefox after adding a frame........Urgent help needed

2009-06-30 Thread retro

Hi Guys,
   i am running into an issue with history getting wiped out after
i launch a popup with an iframe added to it as content.

The PopUpPanel has a content area which is a simple panel. I set the
Frame as the widget on the simple panel. After this popup is close i
remove Frame from parent.

This for some reason messes up the history in firefox. Everything
works just fine in IE. Anyone else has seen this ?Any help is greatly
appreciated.

I do have the history frame included on my host page.
--~--~-~--~~~---~--~~
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: Problems with gwt history in firefox after adding a frame........Urgent help needed

2009-06-30 Thread retro

This is the same behavior with firefox as well.
--~--~-~--~~~---~--~~
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: Problems with gwt history in firefox after adding a frame........Urgent help needed

2009-06-30 Thread retro

I meant Chrome.

On Jun 30, 7:00 pm, retro retrofit.br...@gmail.com wrote:
 This is the same behavior with firefox as well.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



HorizontalSplitPanel with DecoratorPanel in Firefox: how?

2009-06-30 Thread max3000

I'm trying to surround a HSP (height: 100%) with a DecoratorPanel. I
can get it to work in Hosted, IE and Chrome. Unfortunately, no
combination seems to work in Firefox.

The code is straightforward:

public void test(Panel parentPanel) {
HorizontalSplitPanel hSplitPanel = new HorizontalSplitPanel();
//  hSplitPanel.setHeight(100%);
//  hSplitPanel.setHeight(100px);

hSplitPanel.setLeftWidget(new Label(left));
hSplitPanel.setRightWidget(new Label(right));

DecoratorPanel decPanel = new DecoratorPanel();
decPanel.setHeight(100%);
decPanel.setWidget(hSplitPanel);

parentPanel.add(decPanel);
  }

(BTW, parentPanel in my case is a RootPanel.)

In firefox, the code above doesn't show neither the split line, left
or right.
Un-commenting the first line does nothing (same behavior).
Un-commenting the second line works (split line and texts are shown in
firefox) but the HSP is not 100% in height.

What am I missing?

Thanks,
Max

--~--~-~--~~~---~--~~
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 RichTextArea and double line spacing (paragraphs)

2009-06-30 Thread John Lonergan

When hitting the Return key in a richtextarea we get double line
spacing rather than single line spacing.

Looking at the generated HTML we find that each CarriageReturn causes
a pair of paragraph tags (Pmy text/P) to be wrapped around the
text.

Can paragraph insertion be turned off.

My users want single line spacing.

Suggestions?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



gwtjsonrpc

2009-06-30 Thread asianCoolz

i came across this project http://android.git.kernel.org/?p=tools/gwtjsonrpc.git
. is this just for android or i can use with any app using gwt?  any
overview article,tutorial on this?
--~--~-~--~~~---~--~~
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: gwtjsonrpc

2009-06-30 Thread Shawn Pearce

On Tue, Jun 30, 2009 at 18:49, asianCoolzsecond.co...@gmail.com wrote:

 i came across this project 
 http://android.git.kernel.org/?p=tools/gwtjsonrpc.git
 . is this just for android or i can use with any app using gwt?  any
 overview article,tutorial on this?

Actually, its not for Android, its for its code review system, Gerrit
Code Review (http://code.google.com/p/gerrit/).  But yes, its a
stand-alone module meant to be embedded into any GWT project, not just
Gerrit.  Actually, I know at least one other developer who uses it in
an unrelated project, Gert Scholten.  He has contributed a few patches
to gwtjsonrpc.

Best thing for a tutorial is probably the README in the top level of
the directory.  Its very, very similar to standard GWT RPC, only it
uses JSON encoding, and has built-in XSRF protection, if the server
knows how to demand/enforce it.

--~--~-~--~~~---~--~~
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: single-origin error, shouldn't be happening?

2009-06-30 Thread Brice

Created issue http://code.google.com/p/google-web-toolkit/issues/detail?id=3795
to track ...

On Jun 26, 9:29 am, Brice bdr...@gmail.com wrote:
 I was able to use the emulate IE7 hack to get IE8 to work, but
 that's nasty and I keep hoping there's going to be a way I can upgrade
 to a recent release of GWT.

 On Jun 25, 11:20 pm, Brice bdr...@gmail.com wrote:



  Good evening,

  I'm revisiting a project that I worked on a year back that ran into
  trouble when I tried to upgrade to 1.5.3 from 1.5.2.

  Here's a post that I made at that time:

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

  In a nutshell, the project uses GWT to provide a rich interface for
  a CD-ROM product, so it runs w/o any backend web-server. However, it
  *does* use RequestBuilder to load XML and JSON data from the CD - but
  the data is all local to where the GWT app is initialized from.

  This works fabulously in Safari, FireFox, and IE7 - yay. But, when I
  tried to upgrade last year to 1.5.3, I found that GWT was throwing an
  exception about violating single-origin-policy. This is *not* hosted
  mode, this is compiled-mode, loading the GWT app from the local file-
  system. I tried upgrading to 1.6.x a month back and found that I still
  get the same problem.

  With the recent release of IE8, I can't continue to use GWT 1.5.2 and
  hope to stay compatible in new browsers, so what can I do?! I'm
  assuming GWT is using some kind of internal logic to determine if an
  SOP violation would occur, without actually giving the browser the
  request, since the browser seems perfectly happy loading the XML and
  JSON from the local file-system in 1.5.2. Any way to dig into
  something and disable this check? Or change the way I'm loading?

  Thanks much!
  Brice
--~--~-~--~~~---~--~~
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: Excel and GWT

2009-06-30 Thread Rakesh

use jdbc on the server side to select and insert data into your excel
spread sheet. If you are using MS, try the ODBC-JDBC method. Or check
this project: https://xlsql.dev.java.net/

On Jun 30, 12:41 am, garshita grshtgu...@gmail.com wrote:
 Hi,
 I need to read data from my excel sheet and display it using GWT
 dynamically...I am very new to the topic. Can u suugest me a base so
 tht i can proceed... ?
--~--~-~--~~~---~--~~
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: Convert a Java Swing Application

2009-06-30 Thread koollx

You should check out AjaxSwing, which automatically converts Swing
application to web application at runtime. This requires virtually no
code changes and you'll actually have a dual client - GUI client with
Swing and AJAX client with AjaxSwing.

http://www.ajaxswing.com/

--~--~-~--~~~---~--~~
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: Help needed - Working with ClientBundle

2009-06-30 Thread uwfrog

The css resource needs to be injected manually.

public class HelloWorld implements EntryPoint {

/* (non-Javadoc)
 * @see com.google.gwt.core.client.EntryPoint#onModuleLoad()
 */
@Override
public void onModuleLoad() {
== StyleInjector.injectStylesheet(HelloWorldResources.INSTANCE.css
().getText());

HTML html = new HTML(Hello World!);
html.setStyleName(HelloWorldResources.INSTANCE.css().message());

RootPanel.get().add(html);
}

On Jun 28, 2:03 am, uwfrog alfred.qy...@gmail.com wrote:
 I have been trying to get ClientBundle working over the weekend. I got
 the css selector obfuscation working, however, the browser somehow is
 not showing what is specified in the css file. Is there someone could
 help me out? Here is what i did. It is a minimum hello world setup
 with a css selector to style the hello world text to color blue. I
 managed to get the following in the browser.

 htmlhead/head
 div id=_firebugConsole style=display: none;
 FirebugVersion=1.3.3/
 body
 iframe id=helloworld src=javascript: style=border: medium
 none ; position: absolute; width: 0pt; height: 0pt;
 tabindex=-1.../iframe
 div class=G1rue18xACHello World!/div
 /body
 script type=text/javascript.../script
 /html

 As you could see, the Hello World! is of a class with obfuscated
 name which is the same i see from the debug console. However, browser
 is not showing the text in blue.  Am i missing anything? (I am using
 ClientBundle code from trunk. Please see the source code attached.)

 com.aqy.lab.helloworld.gwt.xml
 =
 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.6.4//
 EN http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-
 source/core/src/gwt-module.dtd
 module rename-to=helloworld
         inherits name=com.google.gwt.user.User /
         inherits name='com.google.gwt.user.theme.standard.Standard' /
         inherits name=com.google.gwt.resources.Resources /
         entry-point class='com.aqy.lab.client.helloworld.HelloWorld' /
 /module

 com.aqy.lab.helloworld.HelloWorld
 ===
 public class HelloWorld implements EntryPoint {
         @Override
         public void onModuleLoad() {
                 HTML html = new HTML(Hello World!);
                 
 html.setStyleName(HelloWorldResources.INSTANCE.css().message());

                 RootPanel.get().add(html);
         }

 }

 com.aqy.lab.helloworld.HelloWorldCss
 
 public interface HelloWorldCss extends CssResource {
         String message();

 }

 com.aqy.lab.helloworld.HelloWorldResources
 =
 public interface HelloWorldResources extends ClientBundle {
         static final HelloWorldResources INSTANCE = GWT.create
 (HelloWorldResources.class);

         @Source(com/aqy/lab/client/helloworld/helloworld.css)
         HelloWorldCss css();

 }

 com.aqy.lab.client.helloworld/helloworld.css
 
 .message {
         color: blue;

 }

 helloworld.html
 ==
 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
 html
   head
     meta http-equiv=content-type content=text/html;
 charset=UTF-8
     titleHello World/title
     script type=text/javascript language=javascript
 src=helloworld/helloworld.nocache.js/script
   /head
   body
   /body
 /html

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



Problem with Firefox CSS rendering

2009-06-30 Thread Kevvy

I have a label which i want to look like a link. So i Altered the CSS
so it displays like one

.gwt-label {
display:block;
  color: blue;
  cursor: pointer;
  cursor: hand;
}

Some reason it works fine in IE but if i open it in Firefox, the color
remains grey and the cursor doesn't change...

any idea on a fix?
--~--~-~--~~~---~--~~
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: Allow detached JDO objects to be transferred via RPC

2009-06-30 Thread bruno

Hi Bod and Dan,

Very happy to see that this issue is on its way to be solved :)
Nevertheless, I think it would be useful if JDO management code and
RPC serialization can be separated : instead of having

for (Class iface : interfaces) {
if (javax.jdo.spi.Detachable.equals(iface.getName())) {
// JDO specific code
}
}

a code like this would be better :

for (Class iface : interfaces) {
if (this.serializationTransformer.isTransformable(iface)) {
serializationTransformer.transform(instanceClass);
}
}

where JDO specific code is encapsulated in a specific code.
As another side benefit, this mechanism could be used to enhance GWT
serialization process for any other persistence library.

HTH
Bruno

On 29 juin, 19:16, b...@google.com wrote:
 http://gwt-code-reviews.appspot.com/47807/diff/1/9
 File user/src/com/google/gwt/user/client/rpc/WeakMapping.java (right):

 http://gwt-code-reviews.appspot.com/47807/diff/1/9#newcode31
 Line 31: public static Object get(Object instance, String key) {
 On 2009/06/29 15:34:02, Dan Rice wrote: I'm not sure what can be said about 
 the namespace.  What do you have

 in mind?

 Note that the key space is module-wide, so some care should be taken to
 choose sufficiently unique identifiers.

 http://gwt-code-reviews.appspot.com/47807
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Misc JS problem cleanup

2009-06-30 Thread jgw

On 2009/06/19 17:30:23, jgw wrote:
 On 2009/06/19 01:37:23, scottb wrote:
 

 LGTM. Good catches, all.

BTW, Scott -- could you please go ahead and commit this when you have a
moment? I'd like to get these into the 1.6 maintenance release.

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

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



[gwt-contrib] Fix for Firefox 3.5 relatedTarget bug (https://bugzilla.mozilla.org/show_bug.cgi?id=497780)

2009-06-30 Thread jgw

Reviewers: jlabanca,



Please review this at http://gwt-code-reviews.appspot.com/49803

Affected files:
   M user/src/com/google/gwt/dom/client/DOMImplMozilla.java
   M user/src/com/google/gwt/user/client/impl/DOMImplStandard.java


Index: user/src/com/google/gwt/dom/client/DOMImplMozilla.java
===
--- user/src/com/google/gwt/dom/client/DOMImplMozilla.java  (revision 5638)
+++ user/src/com/google/gwt/dom/client/DOMImplMozilla.java  (working copy)
@@ -37,6 +37,20 @@
}-*/;

@Override
+  public native EventTarget eventGetRelatedTarget(NativeEvent evt) /*-{
+// Hack around Mozilla bug 497780 (relatedTarget sometimes returns XUL
+// elements). Trying to access relatedTarget.nodeName will throw an
+// exception if it's a XUL element.
+var relatedTarget = evt.relatedTarget;
+try {
+  var nodeName = relatedTarget.nodeName;
+  return relatedTarget;
+} catch (e) {
+  return null;
+}
+  }-*/;
+
+  @Override
public int getAbsoluteLeft(Element elem) {
  return  
getAbsoluteLeftImpl(elem.getOwnerDocument().getViewportElement(),
  elem);
Index: user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
===
--- user/src/com/google/gwt/user/client/impl/DOMImplStandard.java   
(revision  
5638)
+++ user/src/com/google/gwt/user/client/impl/DOMImplStandard.java   
(working  
copy)
@@ -39,22 +39,30 @@
private static JavaScriptObject dispatchEvent;

@Override
-  public native Element eventGetFromElement(Event evt) /*-{
-if (evt.type == mouseover)
-  return evt.relatedTarget;
-if (evt.type == mouseout)
-  return evt.target;
+  public Element eventGetFromElement(Event evt) {
+if (evt.getType().equals(mouseover)) {
+  return evt.getRelatedTarget().cast();
+}
+
+if (evt.getType().equals(mouseout)) {
+  return evt.getTarget().cast();
+}
+
  return null;
-  }-*/;
+  }

@Override
-  public native Element eventGetToElement(Event evt) /*-{
-if (evt.type == mouseover)
-  return evt.target;
-if (evt.type == mouseout)
-  return evt.relatedTarget;
+  public Element eventGetToElement(Event evt) {
+if (evt.getType().equals(mouseover)) {
+  return evt.getTarget().cast();
+}
+
+if (evt.getType().equals(mouseout)) {
+  return evt.getRelatedTarget().cast();
+}
+
  return null;
-  }-*/;
+  }

@Override
public native Element getChild(Element elem, int index) /*-{



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



[gwt-contrib] Re: Fix for Firefox 3.5 relatedTarget bug (https://bugzilla.mozilla.org/show_bug.cgi?id=497780)

2009-06-30 Thread jgw

Note that the referenced Firefox bug is marked as fixed/resolved, but it
didn't make it into the Firefox 3.5 release branch (they're expecting to
ship a fix in 3.5.1, which essentially means we're all going to be stuck
with this behavior for at least a year or so).

I've tested this patch on a large internal application that was throwing
exceptions because of the aforementioned bug, and it very clearly fixed
the issue.


http://gwt-code-reviews.appspot.com/49803/diff/1/3
File user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
(right):

http://gwt-code-reviews.appspot.com/49803/diff/1/3#newcode65
Line 65: }
Changing these methods to simply use the Java Event.getRelatedTarget()
methods ensures that relatedTarget will always be accessed through the
guarded method.

Also, don't worry about the .cast() calls -- these (old) methods have
always assumed that an Element would get returned (as opposed to an
EventTarget). So they're no more wrong than they ever were :)

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

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



[gwt-contrib] Re: Update RichTextAreaImplSafari

2009-06-30 Thread jgw

Looks good, modulo my comment about repeating method declarations in the
formatter interfaces.


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

http://gwt-code-reviews.appspot.com/49802/diff/1/5#newcode485
Line 485: void undo();
Is there any particular reason for copying all the basic and extended
formatter methods into this derived interface? Couldn't we just leave
them where they are until the deprecated interfaces are removed? I doubt
it makes a substantive difference, but it seems kind of smelly.

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

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



[gwt-contrib] Re: Fix for Firefox 3.5 relatedTarget bug (https://bugzilla.mozilla.org/show_bug.cgi?id=497780)

2009-06-30 Thread jlabanca

LGTM

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

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



  1   2   >