Re: Mouse click not working on ListGrid

2011-11-02 Thread Sudhakar Abraham
You wrote the code as smartgwt. It is generally not good idea to mix
gwt widgets
with smartgwt widgets. Use corresponding widget in smartgwt.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine


On Nov 1, 5:40 pm, David Fernando fernando33...@gmail.com wrote:
 I have a strange problem and i am sure it is just simple mistake of
 some kind but i cant really find it and i dont really know what to
 search.
 I create a new window with VerticalPanel in it. Inside this Vertical
 Panel i put TabSet with SelectItem component. The problem is that
 clicking on drop down is not working. Same situation is when i put
 ListGrid inside, RecordClickHandler and RecordDoubleClickHandler are
 not working at all (but RowContextClickHandler works).

 public class Sample implements EntryPoint {
         public void onModuleLoad() {
         //Without verticalPanel - works !
         SelectItem s1 = new SelectItem();
         s1.setTitle(Test List);
         s1.setMultiple(true);
         s1.setMultipleAppearance(MultipleAppearance.PICKLIST);
         s1.setValueMap(a, b, c);
             DynamicForm c1 = new DynamicForm();
             c1.setItems(s1);
             TabSet topTabSet = new TabSet();
             topTabSet.setTabBarPosition(Side.TOP);
             topTabSet.setWidth(800);
             topTabSet.setHeight(150);
             Tab t1 = new Tab(Tab1);
             Tab t2 = new Tab(Tab2);
             t2.setPane(c1);
             topTabSet.addTab(t1);
             topTabSet.addTab(t2);
             Window window2 = new Window();
         window2.setAutoSize(true);
         window2.setTitle(Without VerticalPanel);
         window2.setWidth(640);
         window2.setHeight(480);
         window2.setCanDragReposition(true);
         window2.setCanDragResize(true);
         window2.addItem(topTabSet);
         window2.show();
         //With verticalPanel - not working !
         SelectItem s2 = new SelectItem();
         s2.setTitle(XXX);
         s2.setMultiple(true);
         s2.setMultipleAppearance(MultipleAppearance.PICKLIST);
         s2.setValueMap(d, e, f);
             DynamicForm c2 = new DynamicForm();
             c2.setItems(s2);
             TabSet topTabSet2 = new TabSet();
             topTabSet2.setTabBarPosition(Side.TOP);
             topTabSet2.setWidth(800);
             topTabSet2.setHeight(150);
             Tab t11 = new Tab(Tab1);
             Tab t22 = new Tab(Tab2);
             t22.setPane(c2);
             topTabSet2.addTab(t11);
             topTabSet2.addTab(t22);
         VerticalPanel vp = new VerticalPanel();
         vp.add(topTabSet2);
         Window window = new Window();
         window.setAutoSize(true);
             window.setTitle(With VerticalPanel);
             window.setWidth(640);
             window.setHeight(480);
             window.centerInPage();
             window.setCanDragReposition(true);
             window.setCanDragResize(true);
             window.addItem(vp);
         window.show();
         }
     }

-- 
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: Style individual cells on a VerticalPanel

2011-11-02 Thread Sudhakar Abraham
Create the id property on the global css file in your application.
Change the background-color of id property using  hover Selector .
Adds  style name to this object using addStyleName(). Each image is
added in individual veticalpanel  Try the below example

 .gwt-HorizontalPanel
{
   background-color: yellow;
   color: black;
   font-size: 24pt;
 }
.gwt-HorizontalPanel:hover
 {
 background-color: red;
 text-decoration: none;
}


S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Nov 1, 1:16 pm, gerry gtzoga...@gmail.com wrote:
 Hi all,

 I have laid some images vertically, using a VerticalPanel. I would
 like to use a rollover effect, changing the background of a cell
 whenever the user hovers it. Is this possible by using a
 VerticalPanel? I didn't find something similar to this in its
 documentation

 Thanks a lot

-- 
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: CellTable column and cell style

2011-11-01 Thread Sudhakar Abraham
You can do it entirely with CSS. Extend CellTable.Resource and
CellTable.Style to provide your own .cellTableHeader. Change the
property of .cellTableHeader in CellTableStyle css file.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

//CellTableStyle.css

.cellTableHeader
 {
height: 25px;
border-bottom: 2px solid #60a6bf;
padding: 3px 25px;
text-align:right;
color: blue;
text-shadow: #ddf 1px 1px 0;
overflow: hidden;
cursor:pointer;
margin-right:0px;
border:solid 1px red;
background-image: url(bollon.gif);
background-repeat:no-repeat;
background-position:80% 50%;

}

// in java class.

CellTableyour_domain_object studentTable = new
  CellTableyour_domain_object(15, GWT.TableResources
  create(TableResources.class));


On Oct 29, 8:25 am, divStar divs...@gmail.com wrote:
 Hi there,

 I'm using a cellTable to display items from a character. The table
 header consists of various columns such as Image, Name, Amount,
 Type and Character.
 Then I made a custom widget that acts like a dropdown listbox - using
 a toggle button and a celltable. It contains all the rows that can be
 hidden by checking/unchecking the checkboxes.

 See here for a screenshot:http://www.abload.de/img/odrop_v2_00036u4r.jpg

 While I managed to hide the rows upon checking/unchecking that
 checkbox in the dropdown menu, I can't seem to make the column headers
 disappear.
 I hide a cell in a row by getting the column index and writing
 something like this:

 cellTable.getRowElement(i).getCells().getItem(cellTable.getColumnIndex((ColumnItemDTO,
  ?

 ) event.getColumn())).addClassName(hiddenCell);

 .hiddenCell is defined in my css file and just contains display:
 none;.
 It works well on the cells, but how do I approach the column header
 cells? I'd like to be able to hide them too.

 I've read something about overwriting the render-method or the
 getCellStylesName() method of the column, but the latter doesn't work
 for me (the method get's called when the rows appear - not on checking/
 unchecking and I don't know what event to fire) and I don't know much
 about the former.

 Please help me find a way to assign a style to the header cell - or
 maybe a whole new (better?) way of hiding a whole column? (I'd like
 for the column to stay in tact so if I retry my data it gets pushed
 into the hidden columns as well - I just want to be able to display
 some of the columns and hide other columns)

 Thank you in advance!
 Igor.

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



Re: GWT Celltable: How to apply mouse enter event in celltable's cell

2011-10-31 Thread Sudhakar Abraham
Subclass the EditTextCell(), call the onBrowserEvent() method.  This
method handle a browser event that took place within the cell.
Capture the event using event.getType().

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 31, 1:28 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote:
 Hi,
 How to apply mouse enter event in celltables cell.

 If Mouse enter in cell for record edition then I want to set string to
 Record State column that record is edited Record modify
 On Mouse enter I will check cellvalaue is not equal old value then I will
 set Record modify value to related record for State column other wise
 empty.

 Is it possible to apply Mouse enter event in setFieldUpdater() of column?
 Or How to apply OnBrowseEvent on cell ?

 regards,
 Vaibhav

 http://about.me/vaibhavbhalke

-- 
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: LayoutPanel - how to set background image?

2011-10-31 Thread Sudhakar Abraham
In Uibinder specify your image on src attribute of  ui:image tag,
Inside the ui:style attribute specify your @sprite.backgroundPicture
tag.   Try the below example.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

?xml version=1.0 encoding=UTF-8?
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'

ui:image field='backgroundPicture' src='easyxbrl_logo_1.png' /

ui:style
@sprite .backgroundPicture {
gwt-image: 'backgroundPicture';
float: left;
margin-top:5px;
margin-bottom:5px;
margin-left: 50px;

}
/ui:style
g:LayoutPanel styleName={style.backgroundPicture}/
/ui:binder


-- 
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: Right click on CellList!

2011-10-24 Thread Sudhakar Abraham
Subclass the CompositeCell class, override the
getConsumedEvents(),onBrowserEvent() methods.  In getConsumedEvents
method  should return Collections.singleton(contextmenu).  Call the
preventDefault(),stopPropagation() methods inside the onBrowserEvent()
method.  Try the below code.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

//In client side

public Cell getYourCell()
  {
final List hasCellAL = new ArrayList();
hasCellAL.add(TextInputCell());

   class SampleCompositeCell extends CompositeCell
   {
   public SampleCompositeCell (ListHasCell hasCelList)
   {
super(hasCelList);
   }

  @Override
  public Set getConsumedEvents()
  {
printNative( getConsumedEvents() called );
return Collections.singleton(contextmenu);
  }

  @Override
  public void onBrowserEvent(Context context, Element parent,
Object value, NativeEvent event, ValueUpdater valueUpdater)
  {
event.preventDefault();
event.stopPropagation();
printNative( right click NativeEvent  + event);
printNative( holder object   + value);
  }

   }
return new SampleCompositeCell (hasCellAL);
  }

//add your cell in cellList
CellListString cellList = new CellListString(getYourCell());
 
cellList.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);


-- 
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: Hyperlinks in a celltable column

2011-10-24 Thread Sudhakar Abraham
Use SafeHtmlCell Cell used to render safe HTML markup.  Render your
anchor text in html markup.   Add your SafeHtmlCell object  to
cellTable.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 21, 10:34 pm, Ravi ravius2...@gmail.com wrote:
 How to get hyperlinks in a celltable column ??

 I mean in plain html we could do something like below (I want exact
 same result in gwt) -

 table
   tr
      td
          a href=something click me /a
     /td
 /tr
 /table

-- 
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: Right-align numbers?

2011-10-21 Thread Sudhakar Abraham
Create a CSS file (mystyles.css), put it side by side with your module
html
file, and include the CSS file using link/.  Change the property in
css file text-align:right.

//In module html file

link type=text/css rel=stylesheet href=mystyles.css


S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine





On Oct 21, 12:09 am, Christopher Piggott cpigg...@gmail.com wrote:
 I need to right-align numbers and it doesn't work as I thought:

 NumberFormat fmt = NumberFormat.getFormat(0);

 String value = fmt.format(10);

 What I expected was    10

 How should it 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: RPC problem?

2011-10-21 Thread Sudhakar Abraham
Your tomcat mapping may be incorrect as it cannot find the url mapping
for the RemoteServiceServlet you are calling. See the error on
Apache Software Foundation\Apache Tomcat 6.0.18\logs\catalina.
2011-01-21.log directory. Check your StatusCode  of Http response.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine


On Oct 21, 3:50 pm, Brito britoscho...@gmail.com wrote:
  RPC that is working fine in host mode but fails in web mode
 and I don't know what to do to troubleshoot it. On the client, I get a
 message box that says Failure:
 com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
 the server; see server log for details.

-- 
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: show [ERROR] Element may only contain a single child element in gwt 2.4.

2011-10-21 Thread Sudhakar Abraham
The DockLayoutPanel of g:center/g:center element having only one
Child. So wrap your panel1, panel2 inside panel3.  Try the below code.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

g:DockLayoutPanel ui:field=dock
 g:north size=25
 g:FlowPanel
   g:Button ui:field=saveLogin/ g:Button
 /g:FlowPanel
 /g:north
 g:center
   g:VerticalPanelui:field=panel3
  g:VerticalPanelui:field=panel1
  g:Button ui:field=button1sample1/g:Button
  g:Button ui:field=button2sample2/g:Button
  /g:VerticalPanel
  g:VerticalPanel ui:field=panel2
  g:TextArea ui:field=textArea /
  /g:VerticalPanel
  /g:VerticalPanel
/g:center
 /g:DockLayoutPanel
/ui:UiBinder

On Oct 21, 4:44 pm, David Fernando fernando33...@gmail.com wrote:
 I got error when I compile the project. Please give your suggestion.

 g:DockLayoutPanel ui:field=dock
                 g:north size=25
                      g:FlowPanel
                            g:Button ui:field=saveLogin/ g:Button
                      /g:FlowPanel
                 /g:north
                 g:center
                    g:VerticalPanelui:field=panel1
                                g:Button ui:field=button1sample1/
 g:Button
                                 g:Button ui:field=button2sample2/
 g:Button
                    /g:VerticalPanel
                   g:VerticalPanel ui:field=panel2
                                 g:TextArea ui:field=textArea /
                   /g:VerticalPanel
                 /g:center
         /g:DockLayoutPanel
 /ui:UiBinder

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



Re: Adding popup on CellTable header

2011-10-20 Thread Sudhakar Abraham
Try ClickableTextCell instead of TextInputCell.  Pass
ClickableTextCell as argument to Header class.  Override
onBrowserEvent() method.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

// sample code.

 HeaderString header = new HeaderString(new ClickableTextCell())
{

  @Override
  public String getValue()
  {
return Your_header;
  }

  @Override
  public void onBrowserEvent(Context context, Element parent,
NativeEvent event)
  {
   //add your popup
   PopupPanel popup = new PopupPanel();
   popup.setAnimationEnabled(true);
   popup.setAutoHideEnabled(true);
   popup.setSize(20ex, 15ex);
   popup.show();
  }
};

//add header in cellTable.
  CellTable cellTable = new CellTable();
  cellTable.addColumn(your_column, header , new TextHeader(f

On Oct 19, 3:29 pm, David Fernando fernando33...@gmail.com wrote:
 Add popup on cellTable header.  When I click on the header not
 recognize the event. I render TextInputCell in the header of CellTable.

-- 
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: column header problem

2011-10-20 Thread Sudhakar Abraham
This may be a solution for the first problem: You can set an image in
a
button. Another option is to just adjust the CSS of a specific button
to
have that image as a background.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 19, 9:09 pm, gwt-newbie w.imgr...@googlemail.com wrote:
 Hi

 How can i add a clickable icon in a column header without that after
 calling the column sorting?
 The column sorting i need too.
 I have tried with:
 - event.preventDefault();
 - event.stopPropagation();
 but to no avail:(

 Is there a workaround?
 Or must i wait for next GWT version?

 The class DefaultHeaderOrFooterBuilder is yet in trunk.

 Best Regards

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



Re: GWT Dialogbox Draggable icon not comes when mouse over to caption of dialogbox

2011-10-20 Thread Sudhakar Abraham
Add the property in global css of project.  Change the property
cursor:move in [gwt]-[Widget]

//css file.

.gwt-Dialogbox
{
cursor:move;
width:500px;
height:500px;
background-color:red;
}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 19, 1:44 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote:
 GWT Dialogbox not showing draggable icon when mouse over to caption of
 dialogbox.

 I followhttp://examples.roughian.com/index.htm#Widgets~DialogBox
 Example provided in above link. works fine + draggable icon comes when mouse
 over to caption of dialog-box

 dialog box's Drag gable property is working fine.default draggable icon not
 comes when mouse over to caption of dialog-box

 --
 Best Regards,
 Vaibhav

 http://about.me/vaibhavbhalke

-- 
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: widget's order

2011-10-19 Thread Sudhakar Abraham
Use different  Panel in ui.xml file like DockLayoutPanel,
VerticalPanel etc.. set the size of panel properly.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 19, 8:36 am, wahaha il...@yahoo.com.cn wrote:
 i declared a lots of widget in ui.xml,and they should show in the same
 place.
 how to detimine the order of them?

-- 
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 set stylesheet on a per page basis?

2011-10-19 Thread Sudhakar Abraham
There are two ways to add style sheet for one page

1. In ui.xml  specify the file name of css file Ex:ui:style
src=client-specific.css /
or Inline style sheet with in ui.xml file Ex: ui:style/
ui:style

2.Generate your css file.  The css file is referenced by CssResource
interface.  Specify your Css file in Source attribute of
ClientBundle.

interface MyCss extends CssResource
 {
  String YourCssName();
 }

interface MyResources extends ClientBundle {
  @Source(my.css)
  MyCss css();
}

MyResources resources = GWT.create(MyResources.class);
Button button = new Button(Some text);
button .addStyleName(resources.css().className());


S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine


On Oct 19, 12:37 am, Mike Dee mdichiapp...@gmail.com wrote:
 How can a stylesheet be applied for one page - not an entire module?
 Our app runs fine with a single stylesheet, but for a couple of pages
 a client specified look and feel (with CSS) are needed.  I'd like to
 apply (add) an additional stylesheet to just those.   How can that be
 done?

 Thanks,
 Mike

-- 
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: Using images as Background image which are defined in client bundle

2011-10-18 Thread Sudhakar Abraham
Add your image in project directory.  Add the .gwt-Button Property in
global css file.   Edit the property in background:url(your_image)
repeat-x;

.gwt-Button {
  margin: 0;
  padding: 5px 7px;
  text-decoration: none;
  cursor: pointer;
  cursor: hand;
  background: url(images/hborder.png) repeat-x ;
  -moz-border-radius: 3px;

}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine





On Oct 17, 3:22 pm, Kotuboy aliyu...@googlemail.com wrote:
 Hi
 I am trying to use an image as a background of a button. I defined the image
 as a resource in client bundle.

     @Source(image/hborder.png)
     ImageResource hBorder();

 In the css file, I tried to reference this image with the following code

 .gwt-Button {  
 margin: 0;
 padding: 3px 5px;
 text-decoration: none;
 font-size: small;
 cursor: pointer;
 cursor: hand;  
 gwt-image:'hBorder' ;
 background: repeat-x 0px -27px;
 border: 1px outset #ccc;

 }

 But the image is not shown. What should I change??

 Where is the problem..?

 Thanks

 kayser

-- 
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: plz,solve this error

2011-10-18 Thread Sudhakar Abraham
This problem usually happens when you have the Xerces classes bundled
along
with your application classes. You don't need to bundle Xerces, since
it is
already provided by the JRE.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 17, 12:01 am, patel mitesh pmitesh...@gmail.com wrote:
 16 Oct, 2011 6:40:22 PM com.google.apphosting.utils.jetty.JettyLogger
 info
 INFO: Logging to JettyLogger(null) via
 com.google.apphosting.utils.jetty.JettyLogger
 16 Oct, 2011 6:40:22 PM
 com.google.apphosting.utils.config.AppEngineWebXmlReader
 readAppEngineWebXml
 INFO: Successfully processed F:\mit\war\WEB-INF/appengine-web.xml
 16 Oct, 2011 6:40:22 PM
 com.google.apphosting.utils.config.AbstractConfigXmlReader
 readConfigXml
 INFO: Successfully processed F:\mit\war\WEB-INF/web.xml
 16 Oct, 2011 6:40:22 PM com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: failed
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext@e45076{/,F:
 \mit\war}: javax.xml.parsers.FactoryConfigurationError: Provider
 com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl could not
 be instantiated: java.lang.NullPointerException
 16 Oct, 2011 6:40:22 PM com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: failed JettyContainerService$ApiProxyHandler@15e9756:
 javax.xml.parsers.FactoryConfigurationError: Provider
 com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl could not
 be instantiated: java.lang.NullPointerException
 16 Oct, 2011 6:40:22 PM com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: Error starting handlers
 javax.xml.parsers.FactoryConfigurationError: Provider
 com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl could not
 be instantiated: java.lang.NullPointerException
         at
 javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:
 134)
         at org.mortbay.xml.XmlParser.init(XmlParser.java:69)
         at
 org.mortbay.jetty.webapp.WebXmlConfiguration.webXmlParser(WebXmlConfiguration.java:
 83)
         at
 org.mortbay.jetty.webapp.WebXmlConfiguration.init(WebXmlConfiguration.java:
 78)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
         at
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
 39)
         at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
 27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:506)
         at java.lang.Class.newInstance0(Class.java:355)
         at java.lang.Class.newInstance(Class.java:308)
         at
 org.mortbay.jetty.webapp.WebAppContext.loadConfigurations(WebAppContext.java:
 858)
         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 430)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 50)
         at
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
 130)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 50)
         at
 org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
 130)
         at org.mortbay.jetty.Server.doStart(Server.java:224)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 50)
         at
 com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:
 186)
         at
 com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:
 182)
         at
 com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:
 172)
         at com.google.appengine.tools.development.DevAppServerMain
 $StartAction.apply(DevAppServerMain.java:164)
         at com.google.appengine.tools.util.Parser
 $ParseResult.applyArgs(Parser.java:48)
         at
 com.google.appengine.tools.development.DevAppServerMain.init(DevAppServerMain.java:
 113)
         at
 com.google.appengine.tools.development.DevAppServerMain.main(DevAppServerMain.java:
 89)
 16 Oct, 2011 6:40:22 PM com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: Nested in javax.xml.parsers.FactoryConfigurationError:
 Provider com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
 could not be instantiated: java.lang.NullPointerException:
 java.lang.NullPointerException
         at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:
 103)
         at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:213)
         at
 javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:
 128)
         at org.mortbay.xml.XmlParser.init(XmlParser.java:69)
         at
 org.mortbay.jetty.webapp.WebXmlConfiguration.webXmlParser(WebXmlConfiguration.java:
 83)
         at
 org.mortbay.jetty.webapp.WebXmlConfiguration.init(WebXmlConfiguration.java:
 78)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
         at
 

Re: Compiler exception occured. Not able to compile GWT application

2011-10-15 Thread Sudhakar Abraham
Add your project.gwt.xml file in your project directory.  Inherit your
application entrypoint module with  inherits
name=com.google.gwt.json.JSON /

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine



On Oct 14, 2:52 pm, Raghul grazy...@gmail.com wrote:
 I getting the following error while compiling the GWT application.

 Any one please help resolve this issue.

 Validating newly compiled units
    Ignored 3 units with compilation errors in first pass.
 Compile with -strict or with -logLevel set to TRACE or DEBUG to see
 all errors.
 [ERROR] An internal compiler exception occurred
 com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
         at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140)
         at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
         at com.google.gwt.dev.jjs.impl.BuildTypeMap.getType(BuildTypeMap.java:
 730)
         at
 com.google.gwt.dev.jjs.impl.BuildTypeMap.createField(BuildTypeMap.java:
 570)
         at com.google.gwt.dev.jjs.impl.BuildTypeMap.access
 $300(BuildTypeMap.java:99)
         at com.google.gwt.dev.jjs.impl.BuildTypeMap
 $BuildDeclMapVisitor.visit(BuildTypeMap.java:180)
         at
 org.eclipse.jdt.internal.compiler.ast.FieldDeclaration.traverse(FieldDeclaration.java:
 285)
         at
 org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:
 1232)
         at
 org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:
 687)
         at
 com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTypeMap.java:
 637)
         at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
 514)
         at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
 523)
         at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
 599)
         at
 com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
 33)
         at com.google.gwt.dev.Precompile.validate(Precompile.java:187)
         at com.google.gwt.dev.Compiler.run(Compiler.java:222)
         at com.google.gwt.dev.Compiler.run(Compiler.java:198)
         at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
 88)
         at
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
 82)
         at com.google.gwt.dev.Compiler.main(Compiler.java:177)
    [ERROR] no source info: public class com.gwt.demo.User       extends
 java.lang.Object
 /*   fields   */
 private [unresolved] java.lang.String firstName
 private [unresolved] java.lang.String lastName
 /*   methods   */
 public void init(java.lang.String, java.lang.String) throws
 java.lang.Exception
 [unresolved] public void setLastName(java.lang.String)
 [unresolved] private void getLastName() throws java.lang.Exception

       org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
    [ERROR] at LoginDemo.java(18): public User user = null;
       org.eclipse.jdt.internal.compiler.ast.FieldDeclaration

-- 
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: Invisible DataGrid

2011-10-15 Thread Sudhakar Abraham
Add your DataGrid in  panels like HTMLPanel, HorizontalPanel etc..,.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 14, 8:41 pm, walker1c m...@chris-walker.co.uk wrote:
 Can anyone point me to a working example that uses
 com.google.gwt.user.cellview.client.DataGrid?

 The example code in the Javadoc relates to a different widget
 (CellTable).  The code in the GWT showcase is incomplete and seems to
 be full of dependencies related to the showcase infrastructure.

 I've pulled the complete showcase code for this widget from SVN and
 modified it to remove the dependencies.  What I get is a page with a
 pager at the bottom showing the correct number of records, but no
 DataGrid at all.  As far as I can tell from inspecting the page in
 Firebug, it never gets rendered.

-- 
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: Apply style to header, row, cell in cellTable

2011-10-14 Thread Sudhakar Abraham
Add style to cellTable using this  CellTable.Resources interface.
Pass the CellTable.Resources object into CellTable constructor.
Change the property in CellTableStyle.css file as you wish.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

//In Java class

interface TableResources extends CellTable.Resources
  {
@Source(value = { CellTable.Style.DEFAULT_CSS,
CellTableStyle.css })
CellTable.Style cellTableStyle();
  }

CellTable cellTable= new CellTableYour_Domain_class(15,
GWT.TableResources create(TableResources.class));

//add your cellTable column.
---
end java
class

//CellTableStyle.css file

.cellTableCell {
height: 25px;
padding-left: 2px;
padding-right: 2px;
background-color: red;
}

.cellTableHeader {
height: 25px;
border-bottom: 2px solid #60a6bf;
padding: 3px 25px;

}

.cellTableEvenRow {
background: #fffaf0;
border:solid 1px red;
}

.cellTableEvenRowCell {
border:solid 1px green;
}

.cellTableOddRow {
background: #fff8e8;
}

.cellTableOddRowCell {
 border:solid 1px red;
}

-- 
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: UiBinder CSS URL

2011-10-14 Thread Sudhakar Abraham
You can't access the css file from outside package within uibinder.
However, there are two ways to access the css file within uibinder.
1. Using inline style sheet within uibinder (ui:style.../ui:style)
2. Using ui:style src= 

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

On Oct 13, 7:00 pm, SigmaBlu sigmabl...@gmail.com wrote:
 Is there a way to use a URL to access CSS when using UiBinder? I
 already know that you can access this with in your package hierarchy.
 Unfortunately, I don't have any idea how i can reference outside of
 the package.

 Regards,
 Sigma

-- 
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: RPC fails with 404 after upgrade to 2.4

2011-10-13 Thread Sudhakar Abraham
It seems the servlet class file is not found in your war directory.
Check URL pattern in web.xml file, and also check servlet in Servlet-
class tag.


S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine


On Oct 13, 12:19 am, wytten dale.wyttenb...@gmail.com wrote:
 Yes, the project compiles and loads in chrome when I 'Launch default
 browser' but any subsequent async call fails with a 404 error.
 The request URI that fails is unchanged and matches the servlet-
 mapping in web.xml exactly:
 /org.wyttenbach.dale.projection.ProjectionApplication/
 DocumentRemoteService

 On Oct 12, 1:15 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:

  404 error?. Do the project compile?

  2011/10/12 wytten dale.wyttenb...@gmail.com

   I've got an old maven-based GWT project that is working with GWT 2.0.3
   and gwt-maven-plugin 1.2, but when I try to upgrade to GWT 2.4 and gwt-
   maven-plugin 2.4, all of the service calls fail with a 404 error.  Is
   there some other change I must make?

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



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



Re: DataGrid border styling

2011-10-13 Thread Sudhakar Abraham
Apply style to DataGrid Using  DataGrid.Resources interface.  Apply
style to widget using dataGridStyle() method.   Pass the style object
to DataGrid constructor.  Change the  property  in  DataGridCss file
as your wish.  Place your css file in your same directory of java
file.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

// java code

 interface DataGridResources extends DataGrid.Resources
  {
@Source(value = { DataGrid.Style.DEFAULT_CSS,
DataGridStyle.css })
 DataGrid.Style dataGridStyle();
  }

//pass the DataGridResources

 DataGridyour_Domain_Class dataGrid  = new
DataGridyour_Domain_Class(15, GWT.DataGridResources 
create(DataGridResources .class));

// DataGridCss .css

.dataGridWidget
{
border: solid 1px red;//   Applied to the table
}

.dataGridFooter {
  border-top: 2px solid #6f7277;
  padding: 3px 15px;
  text-align: left;
  color: #4b4a4a;
  text-shadow: #ddf 1px 1px 0;
  overflow: hidden;
  white-space: nowrap;
}

.dataGridHeader {
  border-bottom: 2px solid #6f7277;
  padding: 3px 15px;
  text-align: left;
  color: #4b4a4a;
  text-shadow: #ddf 1px 1px 0;
  overflow: hidden;
  white-space: nowrap;
}

.dataGridEvenRow {
  background: #ff;
}

.dataGridOddRow {
  background: #f3f7fb;
}


-- 
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: UiBinder and CSS located locally

2011-10-12 Thread Sudhakar Abraham
Gwt access css file from relative location. Place your css
file,uibinder, ui.xml file in same directory.  It  picks up the style
from inline style sheet within the ui.xml file.  Access the style
property using styleName={style.sample}.

//example
?xml version=1.0 encoding=UTF-8?
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
 ui:style src=xyz.css /
 g:DockLayoutPanel unit='EM'
   g:west size='10'
  g:HTMLPanel styleName={style.sample}
  ul
liListItem/li
liListItem1/li
liListItem2/li
  /ul
/g:HTMLPanel
  /g:west
/g:DockLayoutPanel
 /ui:UiBinder

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Oct 12, 1:29 am, SigmaBlu sigmabl...@gmail.com wrote:
 Is there a way to link a css file to the ui.xml file?

 For example, I am able to link it by doing the following:
 ui:style src=xyz.css /

 The css is located within the same directory as my UiBinder Class and
 my ui.xml file; so it picks up that css in its root directory.

 Lets say that the source of my css file is located..here C:\Program
 Files\Users\MyUserName\Desktop\Poject\CSS\xyz.css

 How can i let the ui.xml file know that its source (ui:style
 src=xyz.css /) is located in the above directory (C:\Program Files
 \Users\MyUserName\Desktop\Poject\CSS\xyz.css)?

 Regards,
 Sigma

-- 
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 remove a row from Flex Table

2011-10-12 Thread Sudhakar Abraham
First count the number of rows in FlexTable using getRowCount()
method.  Remove specific row from flex table using
removeRow( int row).

Ex:

  int count = myFlexTable.getRowCount();

  for (int i = 0; i  count; i++)
  {
  myFlexTable.removeRow(i);
  }

S. Abraham
www.DataStoreGwt.com
Persist objects directly in App Engine


On Oct 11, 3:01 pm, vikky vikky2...@gmail.com wrote:
 Hi ,

    I am using a Flex Table in which i want to Add and Remove the
 row, Add functionality working properly but in case of Remove, when i
 tried to remove more then one row from the table it thrown an
 exception IndexOutOfBound

 Please do the needful.
 Regards,
 Vikas verma

-- 
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: 10 MB increase of the size of the web app directory with the generated JS files

2011-10-12 Thread Sudhakar Abraham
In gwt 2.4.0 is having more additional functionality.  Gwt 2.0 had gwt-
dev.jar, gwt-servlet.jar, gwt-user.jar,  gwt-api-checker.jar, gwt-soyc-
vis.jar, gwt-servlet-deps.jar only. But  gwt 2.4.0 is having more
number of jars ( mainly requestfactory jars ).

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Oct 12, 4:56 pm, haluk halu...@gmail.com wrote:
 The size of my web app directory under the war file that contains
 the generated JavaScript files was 2 MB when I was using the GWT
 version 2.0, but recently increased to 12 MB when I switched to GWT
 version 2.4.

 The only external module that I included is local storage library (gwt-
 html5-storage.jar) that was necessary in order to get the Local
 Storage working with ie8. The rest is the standard GWT 2.4 stuff.

 Am I doing something wrong, or is it normal with GWT 2.4?

 Is there any way of reducing the size of this web app directory as I
 am not using any of the remote RPC or serialization modules?

-- 
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: Right click event on individual cell in cellList ?

2011-10-11 Thread Sudhakar Abraham
Subclass the CompositeCell class, override  getConsumedEvents(),
onBrowserEvent() methods.

//sample code

public Cell getSampleCompositeCell()
  {
final List hasCellAL = new ArrayList();
hasCellAL.add(getDummyTextAreaCell());
class YourCell extends CompositeCell
{

  @Override
  public Set getConsumedEvents()
  {
return Collections.singleton(contextmenu);
  }

  @Override
  public void onBrowserEvent(Context context, Element parent,
Object value, NativeEvent event, ValueUpdater valueUpdater)
  {
event.preventDefault();
event.stopPropagation();
Window.alert( right click NativeEvent  + event);
//place your menu
  }

  public YourCell (ListHasCell hasCelList)
  {
super(hasCelList);
  }
}

return new YourCell (hasCellAL);
  }

  protected HasCell getDummyTextAreaCell()
  {
return new HasCell()
  {

public Cell getCell()
{
  return new TextInputCell();
}

public FieldUpdater getFieldUpdater()
{
  return null;
}

@Override
public Object getValue(Object object)
{

  return  object.yourDomain_variable;
}

  };
  }

//add compositecell to cellList
 public void onModuleLoad()
 {
CellListString cellList = new
CellListString(getSampleCompositeCell());
cellList.setRowData(0, nameList_);
RootPanel.get().add(cellList);
}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

-- 
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: Custom UIBinder Widget, problem expecting only widgets

2011-10-10 Thread Sudhakar Abraham
There are two ways to add html tag inside the HTMLPanel. You can add
Unorder List / ListItem (UL/LI) directly to HTMLPanel,  or using HTML
class inside the HTMLPanel.  Try the below code.

//.xml file
?xml version=1.0 encoding=UTF-8?
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
 g:DockLayoutPanel unit='EM'
   g:west size='10'
  g:HTMLPanel
g:HTML
  ul
liListItem/li
liListItem1/li
liListItem2/li
  /ul
/g:HTML
/g:HTMLPanel
  /g:west
/g:DockLayoutPanel
 /ui:UiBinder

//.java
public class HtmlTest extends Composite
{
interface Binder extends UiBinderWidget, HtmlTest{}
Binder binder = GWT.create(Binder.class);

public HtmlTest()
{
initWidget(binder.createAndBindUi(this));
}

}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

-- 
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 Async Calls Timeouot

2011-10-10 Thread Sudhakar Abraham
You can explicitly set a timeout for Async calls in gwt.  Once a
RequestBuilder object  is created, you can add setTimeoutMillis()
method in RequestBuilder  header object.  Sets the number of
milliseconds to wait for a request to complete.  Should the request
timeout, the RequestCallback.onError(Request, Throwable) method will
be called in RequestCallback interface.  The callback method will
receive an instance of the RequestTimeoutException class as its
Throwable argument.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

-- 
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: multiple external link into samrtgwt tab

2011-10-10 Thread Sudhakar Abraham
Use Htmlpanel, you can add any number of external links inside the div
element in Htmlpanel.  Use the Anchor class for your external links,
anchor element having the href  attribute to specify your external
links.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Oct 10, 11:58 am, yashujn yashssha...@gmail.com wrote:
 hi,

 I created a tab bar in which 2 taba are present named Do's and
 Don'ts.

 i want to give few external links into each tab into the tab bar.

 can somebody please guide me.

 i used html flow and html panel option but nither if them able to show
 multiple external links.

 plz help me

-- 
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: GPE issue - erasing libs on Run As

2011-10-07 Thread Sudhakar Abraham
Google Plugin Eclipse (GPE) does not delete the library jar in WEB-INF/
lib directory by itself.  So manually copy /paste the Juice and shiro
jars in WEB-INF/lib directory.


 S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Oct 6, 10:59 pm, André Salvati andre.f.salv...@gmail.com wrote:
 Hi,

 strange behavior that started to happen on GPE after add guice and
 shiro jars.

 Step 1 - Package app (maven). All jars are on WEB-INF/lib as expected.

 Step 2 - Execute Run as - Web Application... gets
 java.lang.ClassNotFoundException:
 com.google.inject.servlet.GuiceServletContextListener. I noticed that
 guice and shiro jars disapeared from my WEB-INF/lib

 Note: When I execute gwt:run after 1, everything works fine.

 Does GPE make any validation before start to run? Why GPE is deleting
 some of my jars??

 Should I crosspost questions about GPE on GAE forum?

 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: Apply Style to CellList in gwt 2.4.0

2011-10-06 Thread Sudhakar Abraham
Use CellList.Resources interface.  Add your  CellList.css file in
Source attribute.   Override the cellListStyle method.   Construct a
new cellList and pass CellList.Resources as argument.  I send the code
segment of cellList.

//client side.

interface YourCellListResources extends CellList.Resources {
@Source({CellList.css})
@Override
public Style cellListStyle();
  }

//add CellList.Resources in CellList

 CellListString cellList = new
CellListString(your_cell,GWT.MyCellListResources
create(MyCellListResources.class));


//CellList.css file

cellListWidget
 {

}
.cellListEvenItem
 {
  cursor: pointer;
  zoom: 1;
  background:red;
}

.cellListOddItem
{
  cursor: pointer;
  zoom: 1;
   background:blue;
}

.cellListKeyboardSelectedItem
{
  background: #ffc;
}

@sprite .cellListSelectedItem
 {
  gwt-image: 'cellListSelectedBackground';
  background-color: green;
  color: white;
  height: auto;
  overflow: visible;
}


 S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE





-- 
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: CellTable custom header help.

2011-10-06 Thread Sudhakar Abraham
Create a cellTable using CellTable.Resources interface.  Add your
CellTableStyle.css file in your CellTable constructor.   Construct the
header using cell interface.

//client side code.

 interface TableResources extends CellTable.Resources
  {
@Source(value = { CellTable.Style.DEFAULT_CSS,
CellTableStyle.css })
CellTable.Style cellTableStyle();
  }

//construct the cellTable using cellTable Resources.

  CellTableYour_domain_class cellTable =   new
CellTableStudent(15, GWT.TableResources
create(TableResources.class));
 
cellTable .setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);

  //Instatiate a column

ColumnYour_domain_class, String Column_ = new TableColumn
();
cellTable .addColumn(Column,Department);
Column_.setFieldUpdater(new FieldUpdaterYour_domain_class,
String()
  {

@Override
public void update(int index, Your_domain_class object, String
value)
{
 //set value to Your_domain_class.

}
  });
cellTable .setColumnWidth(Column_, 25ex);

//Adding a header

 HeaderString header = new HeaderString(new ClickableTextCell())
{

  @Override
  public String getValue() {

return Header_title;
  }

  @Override
  public void onBrowserEvent(Context context, Element parent,
NativeEvent event)
  {
   Window.alert(Header is clicked);
  }
};
cellTable.addColumn(feesColumn, header , new
TextHeader(footer));


//your column on cellTable

 private class TableColumn extends Columnyour_domain_class, String
  {
public TableColumn ()
{
  super(new EditTextCell());
}

@Override
public String getValue(your_domain_class object)
{
  return object.your_member_variable;
}
  }

 S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

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



Re: GWT CELLTABLE : How to set descending icon to column on celltable header ?

2011-10-04 Thread Sudhakar Abraham
Edit  cellTableHeader property in cellTableStyle.css file.   Implement
the CellTable.Resources interface.  Add your header icon at background-
image(your_background_icon) tag  in CellTableStyle.css file.

//client side code.

interface TableResources extends CellTable.Resources
  {
@Source(value = { CellTable.Style.DEFAULT_CSS,
CellTableStyle.css })
CellTable.Style cellTableStyle();
  }

//Add your CellTableStyle.css in your cellTable

CellTableyour_domain_class result = new
CellTableyour_domain_class(15, GWT.TableResources
create(TableResources.class));


//CellTableStyle.css

.cellTableHeader
 {
height: 20px;
border-bottom: 2px solid #60a6bf;
padding: 3px 25px;
text-align: left;
color: blue;
text-shadow: #ddf 1px 1px 0;
overflow: hidden;
cursor:pointer;
background-image: url(your_icon.gif);
background-repeat:no-repeat;
background-position:80% 50%;
}

 S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

-- 
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: Using Multiple Panels

2011-10-04 Thread Sudhakar Abraham
Wrap  your VerticalPanel1, VerticalPanel 2  into  a
HorizontalPanel .   Finally, add your HorizontalPanel into your
RootLayoutPanel. Set the size for HorizontalPanel in gwt unit.

//example code.

public class MyProject implements EntryPoint
 {
  private Label firstNameLabel = new Label(First name:);
  private TextBox firstNameTextBox = new TextBox();
  private FlexTable dataFlexTable1 = new FlexTable();
  private VerticalPanel mainPanel1 = new VerticalPanel();
  private Label lastNameLabel = new Label(Last name:);
  private TextBox lastNameTextBox = new TextBox();
  private FlexTable dataFlexTable2 = new FlexTable();
  private VerticalPanel mainPanel2 = new VerticalPanel();
  private HorizontalPanel horizontalPanel = new HorizontalPanel();
  public void onModuleLoad() {
  //Assemble data table 1 and 2
  dataFlexTable1.setWidget(0, 0, firstNameLabel);
  dataFlexTable1.setWidget(0, 1, firstNameTextBox);
  dataFlexTable2.setWidget(0, 0, lastNameLabel);
  dataFlexTable2.setWidget(0, 1, lastNameTextBox);
  //Assemble main panel 1
  mainPanel1.add(dataFlexTable1);
  //Assemble main panel 2
  mainPanel2.add(dataFlexTable2);
  //Assemble two verticalPanel into HorizontalPanel
  horizontalPanel.add(mainPanel1);
  horizontalPanel.add(mainPanel2);
  horizontalPanel.setSize(500px, 400px);
  horizontalPanel.setVisible(true);
  RootLayoutPanel.get().add(horizontalPanel);
  }
}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

-- 
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 2 Servlet

2011-10-03 Thread Sudhakar Abraham
Build the RequestBuilder object in Client side. Implement the
RequestCallback interface in client side code, override the
onResponseReceived(), onError() method. Call the send() method in
RequestBuilder class, requestBuilder object call the service method in
servlet. Try the below code to talk to servlet.

//client side code

public class RequestBuilderTest implements RequestCallback
{
private RequestBuilder rb;
public RequestBuilderTest()
{
rb = new 
RequestBuilder(RequestBuilder.POST,Your_servlet_name);
rb.setCallback(this);
Button send = new Button(Mail);
   send.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
try
{
rb.send();
}
catch(RequestException e)
{

}

}
  });
RootLayoutPanel.get().add(send);
}

@Override
public void onError(Request request, Throwable exception)
{
Window.alert(Error received from servlet);
}
@Override
public void onResponseReceived(Request request, Response response)
{
Window.alert(Response received from servlet);
}

}

//server side code

public class TestServlet extends HttpServlet
 {
   private static final long serialVersionUID = 1L;
   public void doPost(HttpServletRequest req, HttpServletResponse
resp)
   {
 try
{
   int port =req.getRemotePort();
   System.out.println(port :+port);
}
 catch (AddressException e1)
{
  e1.printStackTrace();
}
}


// To edit web.xml in War directory

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
   !-- Servlets --
 servlet
 servlet-nameSampleServlet/servlet-name
 servlet-classcom.tan.server.TestServlet/servlet-class
/servlet
servlet-mapping
 servlet-nameSampleServlet/servlet-name
 url-pattern/Your_servlet_name/url-pattern
/servlet-mapping
  !-- Default page to serve --
 welcome-file-list
welcome-fileSampleGAE.html/welcome-file
 /welcome-file-list
/web-app

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

-- 
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 style to Hyperlink in UiBinder?

2011-10-03 Thread Sudhakar Abraham
Use the inline style sheet  ui:style/ui:style tag  in your ui.xml
file.  Edit the property in your uibinder.  In HyperLink class, set
the styleName property. Try the code below.

//ui.xml file

?xml version=1.0 encoding=UTF-8?
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
ui:style
   .lgLink
   {
color:green;
   }
   .lgLink:visited
   {
font:bold 20px arial, sans-serif;
color:#55;
cursor:pointer;
cursor:hand;
   }
  .lgLink:hover
  {
   font:bold 20px arial, sans-serif;
   color:red;
   cursor:pointer;
   cursor:hand;
  }
  /ui:style
 g:Hyperlink ui:field='linkName' width='500px'
styleName='{style.lgLink}'/
/UiBinder

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Oct 3, 11:14 am, powwow jimmy.w...@gmail.com wrote:
 I've looked and looked but I can't figure it out.

 I am doing this:

 g:Hyperlink ui:field='linkName' width='500px'
 styleName='{res.style.lgLink}'/

 In my css I am doing this:

 .lgLink{
         font:bold 20px arial, sans-serif;
         color:#55;
         cursor:pointer;
         cursor:hand;

 }

 In my ClientBundle I have this:

 public interface Style extends CssResource {
                 String lgLink();

 }

 But it doesn't work with I use UiBinder.  How do I get the link to
 change color?  On visited?  hover? etc?

 I tried this but it doesn't work either:

 .lgLink:visited{
         font:bold 20px arial, sans-serif;
         color:#55;
         cursor:pointer;
         cursor:hand;

 }

 I also tried:

 gwt-Hyperlink.lgLink:visited{
         font:bold 20px arial, sans-serif;
         color:#55;
         cursor:pointer;
         cursor:hand;

 }

 But the ClientBundle doesn't link that.  Any ideas?  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: Adding a context menu to DataGrid

2011-10-03 Thread Sudhakar Abraham
Subclass the TextInputCell, override the getConsumedEvents(),
onBrowserEvent() method. To edit the property in
Collections.singleton(contextmenu) in getConsumedEvents method.  Add
this as Column.

//.java

class TestTextInputCell extends TextInputCell
{
  public TestTextInputCell()
  {
super();
  }

  @Override
  public Set getConsumedEvents()
  {
return Collections.singleton(contextmenu);
  }

  public void onBrowserEvent(Cell.Context context, Element parent,
Object value, NativeEvent event)
  {
event.preventDefault();
event.stopPropagation();
  }
}



 S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Oct 3, 10:26 am, Karan Nih vlin...@gmail.com wrote:
 Can some one please tell me how to add a context menu to a DataGrid in
 GWT
 I am using GWT 2.4

 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: CellTable Formats Incorrectly on IE9

2011-09-30 Thread Sudhakar Abraham
The easiest way to fix this  will be to use specific styles to IE
browser. You append * before the style property, these styles become
specific to IE browser.

//.css

.cellTableEvenRowCell
{
  text-align:left
 *text-align:left  !-- only specific to IE browser --
}

.cellTableOddRowCell
 {
  text-align:left
 *text-align:left  !-- only specific to IE browser --
}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 30, 5:19 am, drtman drt...@gmail.com wrote:
 If I take the example code directly from the GWT API docs for
 CellTable (i.e. the code for an entry point module that creates and
 displays a contact table with a manual list), the table that is
 displayed has no formatting whatsoever on IE9.  It is just simple left-
 justified text with no styling and nothing is selectable.  If I
 replace the CellTable with a DataGrid, only the paging control
 displays.  On Chrome and Firefox these appear to work.  I have tried
 all combinations of styling, tried replacing the CellTable.Resources
 with my own styling, etc., etc. and it never works.

 Is there a trick to making the new data widgets style properly on IE9,
 or is there something I should be looking for that is specific to IE?
 I wish I could just forget about supporting IE with my app, but the
 real world won't let me do that.

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



Re: a problem with flow layout

2011-09-30 Thread Sudhakar Abraham
Set the size  to VerticalPanel using the  setSize(width, height) .

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 30, 6:19 am, wahaha il...@yahoo.com.cn wrote:
 i made a flowpanel,then put some verticalPanel in it.
 but the verticalPanel will not layout as flow,it just as a normal
 block element.
 how to solve this problem?

-- 
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: Add style for even row and add row in cellTable.

2011-09-30 Thread Sudhakar Abraham

There are three ways to add style to celltable
1. Global css
2. Inline Style sheet using UiBinder
3. Using CellTable.Resources

Extend the CellTable.Resources interface and specify the
CellTableStyle.css in source attribute.  I send the code segment of
CellTable.Resources used in CellTable.

// In  .java  file use the below code. CellTableStyle.css file in your
project directory.

interface TableResources extends CellTable.Resources
  {
@Source(value = { CellTable.Style.DEFAULT_CSS,
CellTableStyle.css })
CellTable.Style cellTableStyle();
  }

//add CellTableStyle.css in cellTable

CellTableYour_domain_class result = new CellTable(15,
GWT.TableResources create(TableResources.class));

//CellTableStyle.css

.cellTableCell
 {
height: 20px;
padding: 2px 25px;
}

.cellTableHeader
{
height: 20px;
border-bottom: 2px solid #60a6bf;
}

.cellTableEvenRow
 {
background: #fffaf0;
border:solid 1px red;
}

.cellTableEvenRowCell
{
border:solid 1px green;
}

.cellTableOddRow
{
background: #fff8e8;
}

.cellTableOddRowCell
{
 border:solid 1px red;
}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

-- 
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: com.google.gwt.i18n.client.impl.cldr.LocalizedNamesImpl_zh not found in GWT-2.4

2011-09-29 Thread Sudhakar Abraham
Eclipse plugins for gwt-2.4.0 have not been properly downloaded.
Download  gwt-2.4.0.zip sdk directly from the link  http://
code.google.com/p/google-web-toolkit/downloads/detail?
name=gwt-2.4.0.zip. Extract the zip file in your project directory.
In eclipse File--New--Web Application project--configure sdk to
point your extracted gwt-2.4.0 folder.  Now all the required gwt jars
should have been included in your project.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 28, 1:05 pm, corto bekk...@irisa.fr wrote:
 Here is the complete message

       Errors in 'jar:file:/local/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle_2.4.0.r36v201109211906/gwt-2.4.0/gwt-
 user.jar!/com/google/gwt/i18n/client/impl/cldr/
 LocalizedNamesImpl_zh_HK.java'
          Line 25: No source code is available for type
 com.google.gwt.i18n.client.impl.cldr.LocalizedNamesImpl_zh; did you
 forget to inherit a required module?

 I checked in gwt-user.jar and it is not present

 Yves

-- 
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: FlexTable border and TabPanel

2011-09-29 Thread Sudhakar Abraham
You didn't add the border property in .FlexTable-diffPrev
and .FlexTable-diffCurr.

Add your FlexTable style property in global css file. The global css
file name should be your_Project.css  in your project  /war
directory.  About your TabPanel problem, I send the edited  code
segment of your existing code.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

// Corrected code.

public void onModuleLoad() {

TabPanel tabPanel = new TabPanel();
FlowPanel flowPanel = new FlowPanel();

FlexTable flexTable1 = new FlexTable();
flexTable1.addStyleName(FlexTable);

HTMLTable.RowFormatter rf = flexTable1.getRowFormatter();
for(int i = 0; i  6; i+=2)
{
rf.addStyleName(i, FlexTable-PrevRow);
rf.addStyleName(i+1, FlexTable-CurrRow);
flexTable1.setText(i, 0, Text1+i);
flexTable1.setText(i, 1, Text2+i);
flexTable1.setText(i+1, 0, Text1+i);
flexTable1.setText(i+1, 1, Text4+i);
flexTable1.getCellFormatter().addStyleName(i,
1,FlexTable-diffPrev);
flexTable1.getCellFormatter().addStyleName(i+1,
1,FlexTable-diffCurr);
}

flowPanel.add(flexTable1);
tabPanel.add(flowPanel,FlexTable);
tabPanel.selectTab(0);
tabPanel.setSize(500px, 250px);
tabPanel.addStyleName(table-center);
RootPanel.get().add(tabPanel);
}

// Corrected css file.

.FlexTable
 {
  border-top: thin solid #44;
  border-left: thin solid #44;
  border-right: thin solid #11;
  border-bottom: thin solid #11;
}

.FlexTable-PrevRow
{
  border-bottom: solid 1px red;
}

.FlexTable-CurrRow
 {
  border-bottom: dashed 1px blue;
}

.FlexTable-diffPrev
{
  color: blue;
  border-bottom: solid 1px red;
}

.FlexTable-diffCurr
 {
  color:  red;
border-bottom: solid 1px green;
}


-- 
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: ScrollPanel not shoing up!

2011-09-29 Thread Sudhakar Abraham
Do not  set the size in percentage like(90%) for the widgets inside
ScrollPanel. Instead use unit in gwt like (PX, EM ect..).

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 29, 10:16 am, suvesh suvesh.triv...@gmail.com wrote:
 Greetings,

 I recently started learning GWT and have been facing an issue related
 to ScrollPanel as described below:
 I have got a DockLayoutPanel added to RootLayoutPanel and  at  the
 center of DockLayoutPanel I placed another DockLayoutPanel that I
 intend to use for diplaying various views by swapping them in-out via
 presenters as and when needed based upon the events on the gwt
 controlls.

 g:DockLayoutPanel unit='EM' 
     g:center
       g:DockLayoutPanel ui:field='mainPanel'
 styleName='{style.mainPanel}' /g:DockLayoutPanel
     /g:center
   /g:DockLayoutPanel

 The first view that I placed at mainPanel has got following structure

 g:HTMLPanel
         divg:FlexTable ui:field='header' styleName='{style.header}'
 cellSpacing='0' cellPadding='0'//div
         g:ScrollPanel
                     g:FlexTable ui:field='table'
 styleName='{style.table}' cellSpacing='0' cellPadding='0'/
               /g:ScrollPanel
  /g:HTMLPanel

 The scrollPanel on the FlexTable named 'table' would not shou up even
 if I had more rows of data in the 'table' enough to fill the
 'mainPanel' center.

 I could have used the ScrollPanel instead of the DockLayoutPanel
 mainPanel but that causes the 'header' and 'table' to scroll wheras
 the right thing to do is scroll only the data in FlexTable 'table'.

 Can someone please help or re-direct me to similar issue in the forum.

 Thanks in advance

 Suvesh

-- 
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: UiBinder using Element and appendChild(child) possible?

2011-09-28 Thread Sudhakar Abraham
No need to appendChild in GlassPanel.  In glassPanel constructor
specify the uiBinder.createAndBindUi(this), it binds the divelement
through UiBinder interface.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 27, 7:42 pm, benjamin_ma...@lavabit.com
benjamin_ma...@lavabit.com wrote:
 Hi,
 I wanted to create some lightweight Elements using UiBinder. I've
 created a 'root' Element called GlassPanel:

 (.ui.xml)
 ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
 xmlns:g=urn:import:com.google.gwt.user.client.ui

         div ui:field=panel
                 div style=someStyles... /
         /div
 /ui:UiBinder

 (.java)
 public class GlassPanel extends UiObject {
         interface GlassUiBinder extends UiBinderDivElement, GlassPanel {}
         private static GlassUiBinder uiBinder =
 GWT.create(GlassUiBinder.class);

         @UiField DivElement panel;

         public GlassPanel() {
                 setElement(uiBinder.createAndBindUi(this));
         }

 }

 There will now be several other Elements that should use this one as
 their 'root'. I want to do something like this:

 (.ui.xml)
 ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
 xmlns:g=urn:import:com.google.gwt.user.client.ui

         e:GlassPanel
                 span ui:field=messagePanel/
         /e:GlassPanel
 /ui:UiBinder

 It works if I say that GlassPanel.java implements HasHTML. But then
 UiBinder uses the setHTML method which kills the inner div in my
 GlassPanel panel. Instead it would be cool if it could call
 'appendChild()' on my GlassPanel panel and simply add the additional
 Element. Is it possible?
 Maybe somehow using @UiChild ?!

 I'm using Eclipse 3.7 and GWT 2.4.

-- 
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 set HorizontalPanel tag's id attribute in ui.xml?

2011-09-28 Thread Sudhakar Abraham
Use inline style sheet within uibinder tag.  Add styles attribute
inside ui:style../ui:style tag, and specify the style name at
styleName attribute in HorizontalPanel. Try the code.

//example code

?xml version=1.0 encoding=UTF-8?
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:xbrl='urn:import:com.tan.client'
ui:style
   .horizontalPanelStyle{
width: 100%;
height: 100px;
border: solid 1px blue;
background-color:red;
}
/ui:style
   g:HorizontalPanel ui:field='Assets'
styleName={style.horizontalPanelStyle}/
/ui:UiBinder

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

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

2011-09-28 Thread Sudhakar Abraham
DockLayoutPanel center element  holds only one panel.  Wrap your
veritcalpanels in another verticalpanel.  See the sample below.

//corrected code .xml file.

 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
g:DockLayoutPanel
g:north size=25
g:FlowPanel
  g:LabelGood/g:Label
/g:FlowPanel
/g:north
g:center
 g:VerticalPanel ui:field=v
g:VerticalPanel ui:field=panel1
g:Button ui:field=button1North/g:Button
g:Button ui:field=button2South/g:Button
/g:VerticalPanel
  g:VerticalPanel ui:field=panel2
 g:TextArea ui:field=greenText /
  /g:VerticalPanel
   /g:VerticalPanel
/g:center
/g:DockLayoutPanel
/ui:UiBinder

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Sep 28, 4:53 pm, Brito britoscho...@gmail.com wrote:
 Compile application shows the error. please help.

 //environment

 eclipse 3.5
 gwt 2.4.0
 app engine 1.5.3

 //error

 [ERROR] Element may only contain a single child element, but found
 g:VerticalPanel ui:field='panel1' and g:VerticalPanel
 ui:field='panel2'. Element g:center

 //.xml file

  ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
         xmlns:g='urn:import:com.google.gwt.user.client.ui'
         g:DockLayoutPanel
                 g:north size=25
                         g:FlowPanel
                           g:LabelGood/g:Label
                         /g:FlowPanel
                 /g:north
                 g:center
                         g:VerticalPanel ui:field=panel1
                                 g:Button ui:field=button1North/
 g:Button
                                 g:Button ui:field=button2South/
 g:Button
                         /g:VerticalPanel
                   g:VerticalPanel ui:field=panel2
                                 g:TextArea ui:field=greenText /
                         /g:VerticalPanel
                 /g:center
         /g:DockLayoutPanel
 /ui:UiBinder

-- 
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: UIBinder, HTMLPanel, and style interactions

2011-09-27 Thread Sudhakar Abraham
Wrap  div element in  a HTML panel. You don't need padding the content
of  the div element. Instead, you use the margin tag of css.

 S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 27, 2:04 am, Mike Dee mdichiapp...@gmail.com wrote:
 I'm noticing something weird.  It is my first attempt at using
 HTMLPanel.  The app is laid out with a DockLayoutPanel.  The south
 panel is a footer panel and simply has a piece of text in it, which is
 always there.  I want the text to be right justified with a bit of
 padding.

 g:HTMLPanel width=100% height=100% styleName=my-footer-panel-
 style
 div
   ui:msgSome Text Here/ui:msg
 /div
 /g:HTMLPanel

 The style, my-footer-panel, has a font, color, and padding.  The
 padding doesn't appear to work.

 When I look at the page in Firebug I seem some strange things (see
 below).  The style is in there (as a class), but the style attribute
 looks to be overriding the class with some inline styles.

 div style=position: absolute; overflow: hidden; left: 0px; right:
 0px; bottom: 0px; height: 24px;
 div class=my-footer-panel-style style=height: 100%; width: 100%;
 position: absolute; left: 0px; top: 0px; right: 0px; bottom: 0px;
 divSome Text Here/div
 /div
 /div

 Why does the DIV have both a class and a style?  Where does the style
 come from (the DockLayoutPanel)?

 Mike

-- 
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: is it possible to open menu on Header of celltable?

2011-09-27 Thread Sudhakar Abraham
Put a ClickableTextCell in Header. Override  onBrowserEvent() method
in Header class.  Try the code below.

//code segement

 HeaderString header = new HeaderString(new ClickableTextCell())
 {
  @Override
  public String getValue()
  {
return your_header_name;
  }

 Command command = new Command()
  {
  public void execute()
  {
  Window.alert(clicked);
  }
  };

  @Override
  public void onBrowserEvent(Context context, Element parent,
NativeEvent event)
  {
MenuBar menuBar = new MenuBar();
MenuItem fileName = new MenuItem(New,command);
menuBar.addItem(fileName);
menuBar.setSize(10px, 10ex);
  }

};

   //add your header to celltable
cellTable.addColumn(your_column_name, header);

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 27, 4:08 pm, Brito britoscho...@gmail.com wrote:
 I wana add menu on header of celltable.

-- 
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: XML parsing error when using Guice with servlets

2011-09-26 Thread Sudhakar Abraham
To solve the problem, inherit the required module in project.gwt.xml
file.
inherits name='com.google.gwt.user.User'/
inherits name='com.google.gwt.i18n.I18N'/

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 25, 10:57 pm, Nicklas nicklas_fo...@yahoo.com wrote:
 Hello,

 I'm setting up a web application I call WineCellar using GWT with Guice. I 
 have
 set up the Guice to use servlets as instructed 
 here:http://code.google.com/p/google-guice/wiki/Servlets. I am using Eclipse 
 3.5 with
 the GWT plugin.

 However, when I try to run the application in debug mode, I get the error
 message below.

 Loading modules
    winecellar.WineCellar
       Loading inherited module 'com.google.gwt.user.User'
          Loading inherited module 'com.google.gwt.i18n.I18N'
             [ERROR] Unexpected error while processing XML
 java.lang.NoClassDefFoundError:
 com/google/gwt/core/ext/linker/PropertyProviderGenerator
         at java.lang.ClassLoader.findBootstrapClass(Native Method)
         at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:900)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:314)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
         at
 com.google.gwt.dev.cfg.ModuleDefSchema$ClassAttrCvt.convertToArg(
 ModuleDefSchema.java:886)

         at 
 com.google.gwt.dev.util.xml.HandlerArgs.convertToArg(HandlerArgs.java:64)
         at 
 com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:221)
         at
 com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(
 ReflectiveParser.java:294)
         at
 com.sun.org.apache.xerces.internal.parsers.
 AbstractSAXParser.startElement(AbstractSAXParser.java:504)
         at
 com.sun.org.apache.xerces.internal.parsers.
 AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
         at
 com.sun.org.apache.xerces.internal.impl.
 XMLDocumentFragmentScannerImpl.scanStartElement(
 XMLDocumentFragmentScannerImpl.java:1320)
         at
 com.sun.org.apache.xerces.internal.impl.
 XMLDocumentFragmentScannerImpl$FragmentContentDriver.
 next(XMLDocumentFragmentScannerImpl.java:2732)
         at
 com.sun.org.apache.xerces.internal.impl.
 XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)

         at
 com.sun.org.apache.xerces.internal.impl.
 XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.
 java:488)

         at
 com.sun.org.apache.xerces.internal.parsers.
 XML11Configuration.parse(XML11Configuration.java:812)
         at
 com.sun.org.apache.xerces.internal.parsers.
 XML11Configuration.parse(XML11Configuration.java:741)
         at com.sun.org.apache.xerces.internal.parsers.
 XMLParser.parse(XMLParser.java:123)
         at
 com.sun.org.apache.xerces.internal.parsers.
 AbstractSAXParser.parse(AbstractSAXParser.java:1208)
         at
 com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.
 parse(SAXParserImpl.java:525)
         at
 com.google.gwt.dev.util.xml.ReflectiveParser$Impl.parse(ReflectiveParser.
 java:347)
         at
 com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access$200(
 ReflectiveParser.java:68)
         at com.google.gwt.dev.util.xml.ReflectiveParser.parse(
 ReflectiveParser.java:418)
         at 
 com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:296)
         at
 com.google.gwt.dev.cfg.ModuleDefSchema$BodySchema.__inherits_begin
 (ModuleDefSchema.java:495)
         at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
         at
 sun.reflect.DelegatingMethodAccessorImpl.invoke
 (DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:616)
         at 
 com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:230)
         at
 com.google.gwt.dev.util.xml.ReflectiveParser$Impl.startElement(
 ReflectiveParser.java:294)
         at
 com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(
 AbstractSAXParser.java:504)
         at
 com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.
 emptyElement(AbstractXMLDocumentParser.java:182)
         at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
 scanStartElement(XMLDocumentFragmentScannerImpl.java:1320)
         at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$
 FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2732)
         at
 com.sun.org.apache.xerces.internal.impl.
 XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
         at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.
 scanDocument(XMLDocumentFragmentScannerImpl.java:488)
         at
 com.sun.org.apache.xerces.internal.parsers.XML11Configuration.
 parse(XML11Configuration.java:812)
         at
 

Re: How to override default clean.css styles?

2011-09-26 Thread Sudhakar Abraham
For every Gwt project, Eclipse  generates a default css file in /war
directory. Edit it to override  body tag styling in the css. It will
be available to the entire project.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 24, 8:55 pm, bbaychev bayc...@gmail.com wrote:
 Hello,
 GWT seems to override some of the body tag styling I want to apply,
 how can I set styles in a way that they are not overriden or modify
 the clean.css file? I can't find the clean.css file anywhere in the
 project.

-- 
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: Custom cell, not responding to mouse clicks

2011-09-26 Thread Sudhakar Abraham
Override the  getConsumedEvents() in AbstractCellC, and specify
event type as click. You might also set preventDefault(),
stopPropagation() property in NativeEvent.


  @Override
public Set getConsumedEvents()
{
  printNative( getConsumedEvents() called );
  return Collections.singleton(click);
}

 public void onBrowserEvent(Cell.Context context, Element parent,
Object value, NativeEvent event)
  {

event.preventDefault();
event.stopPropagation();
printNative(click NativeEvent  + event);

  }

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Sep 25, 12:57 am, Jonas sark...@gmail.com wrote:
 I have a CellTable with a custom cell that extends AbstractCell and
 overrides the render method for displaying its data. The problem is that I
 can't click inside the actual cell to select it, I have to click somewhere
 outside the cell. The default color change on mouse hover also does not work
 within the actual cell. I am using a SingleSelectionModel to display a popup
 when I select something in the cell table. What do I need to do to make my
 cell respond to clicks and handle the mouse over effect?

-- 
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: TextCell in Cell Table

2011-09-26 Thread Sudhakar Abraham
Subclass the ColumnT,C class, and pass the TextCell in super class
constructor. Try the below code.

public class MyTextCellColumn extends ColumnYourDomainClass, String
 {
   public MyTextCellColumn ()
   {
 super(new TextCell());
   }

  @Override
  public String getValue(YourDomainClass object)
  {

return  object.getName();
  }

//add the column to your celltable

cellTable.addColumn(new MyTextCellColumn (),Col Name) ;

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 24, 9:20 pm, gangurg gangurg gang...@gmail.com wrote:
 Can I add Text Cell in Cell Table . I extended TextCellbut later realzied
 cant add cellTable.addColumn(MyTextCell,Col Name)

 public class MyTextCell extends TextCell
 {
 public MyTextCell () { super(); }
  public void render(Context context, SafeHtml value, SafeHtmlBuilder sb)
 {
 if (value != null) {
  //Ren der logic}

  }

 }

 I just realized

-- 
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: install problem help me thanks

2011-09-24 Thread Sudhakar Abraham
Download the latest gwt 2.4.0 sdk from the link http://
code.google.com/p/google-web-toolkit/downloads/detail?
name=gwt-2.4.0.zip.  Extract the gwt-2.4.0 zip file to the desired
directory.  In eclipse IDE configure your corresponding gwt sdk. File--
New-- WebApplication Project--configure sdk --Add --Installation
directory using Browse button.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Sep 23, 11:19 am, wisdom white pkmsys...@gmail.com wrote:
 when I install gwt the eclipse shows me a error  like:

 An error occurred while collecting items to be installed
 session context was:(profile=epp.package.jee,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
 action=).
 No repository found containing: osgi.bundle,com.springsource.javax.jms,
 1.1.0

 anyone can tell me what should i do 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: Change the fontsize, color of cellTable header ?

2011-09-23 Thread Sudhakar Abraham
To change the property of .cellTableHeader in CellTableStyle.css.  To
set font-size:14px, color:#4b4a4a.  I send the code segment try the
below code.

//CellTableStyle.css

.cellTableHeader {
font-size: 12px;
color: #4b4a4a;
height: 35px;
border-bottom: 2px solid #60a6bf;
padding: 3px 25px;
text-align: left;

text-shadow: #ddf 1px 1px 0;
overflow: hidden;
}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 21, 4:30 pm, samuel bhaskarsamue...@gmail.com wrote:
 I wana going to change the celltable header property of size, color.
 Give your suggestion for me.

-- 
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: Styling CellList?

2011-09-22 Thread Sudhakar Abraham
Override the cellListStyle() inside  MyCellListResources.  I have
added a sample CSS to test it out.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

//corrected code.

 interface MyCellListResources extends CellList.Resources {
@Source({CellList.css})
@Override
public Style cellListStyle();
  }

cellList = new CellListInboxModel(contactCell,
GWT.MyCellListResources create(MyCellListResources.class));

//CellList.css
.cellListWidget {

}

.cellListEvenItem {
  cursor: pointer;
  zoom: 1;
  background:red;
}

.cellListOddItem {
  cursor: pointer;
  zoom: 1;
   background:blue;
}

.cellListKeyboardSelectedItem {
  background: #ffc;
}

@sprite .cellListSelectedItem {
  gwt-image: 'cellListSelectedBackground';
  background-color: green;
  color: white;
  height: auto;
  overflow: visible;
}




On Sep 22, 12:15 am, nacho vela.igna...@gmail.com wrote:
 I am trying to apply styles to a CellList, and I have this in my Java:

 interface MyCellListResources extends CellList.Resources {
       @Source({CellList.css})
       MyCellListStyle cellTableStyle();
     }

     interface MyCellListStyle extends CellList.Style {

     }

 cellList = new CellListInboxModel(contactCell, resources);

 And my CellList.css is a copy of the GWT original where I online changed
 some colors.

 I have no error at all... but I am not seing my defined styles in my app.

 I am missing something?

-- 
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: Unexpected RPC trouble when moving up to GWT2.4

2011-09-22 Thread Sudhakar Abraham
You need to add gwt-servlet-deps.jar in your class path or copy gwt-
servlet-deps.jar to Your_Project/War/WEB-INF/lib/ gwt-servlet-
deps.jar.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 20, 10:06 am, John Howe jhowe...@gmail.com wrote:
  I thought this was going to be easy.

 I'm trying to move a working GAE java app up to GWT 2.4.

 But when I do, I see the following stack trace on the first RPC call to
 appengine.

 At least one other guy has seen this while doing same and posted a query 
 athttp://groups.google.com/group/google-appengine/browse_frm/thread/a78...mhtml:{0C37AFDA-6C2E-445E-872B-6CCA8884F9E5}mid:///

 Any help, suggestions, or insight would be most appreciated!

 Thanks.

 The server is running 
 athttp://localhost:/mhtml:{0C37AFDA-6C2E-445E-872B-6CCA8884F9E5}mid:///
 mozilla/5.0 (windows nt 6.0) applewebkit/535.1 (khtml, like gecko)
 chrome/14.0.835.163 safari/535.1
 [ERROR] javax.servlet.ServletContext log: Exception while dispatching
 incoming RPC call
 java.lang.NoClassDefFoundError: javax/validation/Path
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(Unknown Source)
 at java.security.SecureClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.defineClass(Unknown Source)
 at java.net.URLClassLoader.access$100(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at
 com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:176)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)
 at
 com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:196)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.loadSerializationPolicy(RemoteServiceServlet.java:90)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:293)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:157)
 at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:455)
 at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:237)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:206)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
 at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
 at
 com.sportzcasterbeta.server.ServiceFilterImpl.doFilter(ServiceFilterImpl.java:25)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 com.sportzcasterbeta.server.ServiceFilterImpl.doFilter(ServiceFilterImpl.java:25)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:35)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at
 com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:97)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
 at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
 at
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
 at 

Re: Is there a limitation with GWT2.4 plugin for Eclipse3.4

2011-09-21 Thread Sudhakar Abraham
There is no limitation with GWT2.4 plugin for Eclipse3.4.  Download
the gwt-2.4.0.zip from the link http://code.google.com/p/google-web-
toolkit/downloads/detail?name=gwt-2.4.0.zip.  To extract the
gwt-2.4.0.zip to your directory, in eclipse 3.4 (Ganymede) IDE try the
following, Project-- Properties --Google--Web Toolkit--Configure
SDks..--ADD--Installation directory using Browse button.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Sep 21, 7:57 am, Sai dhana@gmail.com wrote:
 I am trying to install latest GWT version 2.4 on eclipse 3.4.

 I read the document at following 
 URLhttp://code.google.com/eclipse/docs/getting_started.html,
 but this
 document does not state any URL for eclipse 3.4 (Ganymede).

 Question here:  Is there plug-in ready for eclipse 3.4 to download the
 latest version of GWT or eclipse has to be migrtaed to 3.5/3.6/3.7 to
 use GWT latest version(2.4)

 I have also seen at other places that there is also a Google Plugin
 for Eclipse3.4 URLhttp://dl.google.com/eclipse/plugin/3.4 this is giving me a 
 problem
 saying No Repository Found

 Please help me!

-- 
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: Cell Table Styling

2011-09-21 Thread Sudhakar Abraham
To change the property of  .cellTableEvenRow , .cellTableOddRow  in
CellTableStyle.css. Inject your CellTableStyle.css in client side
code.

//client side code
interface TableResources extends CellTable.Resources
  {
@Source(value = { CellTable.Style.DEFAULT_CSS,
CellTableStyle.css })
CellTable.Style cellTableStyle();
  }

CellTable table = new CellTableString(15, GWT.TableResources
create(TableResources.class));

//CellTableStyle.css

.cellTableCell {
height: 35px;
cursor: pointer;
padding: 2px 25px;
}
.cellTableEvenRow {
background: #fffaf0;
font-size:12px;
}

.cellTableOddRow {
background: #fff8e8;
}

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Sep 21, 7:04 am, gangurg gangurg gang...@gmail.com wrote:
 I am trying to come up with styling of Cell Table . However  not able to
 figure out how .

 Trying to achieve
 1. Should be able to Style any given row of a Cell table
 2, Any Column of a Cell table
 3. dynamically style any particular cell of a cell table .

 I tried to do the style sheet injection means by using resource , but its
 not helping me . I would appreciate any working example for the same .

-- 
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: Setting a style for a single cell of a celltable

2011-09-21 Thread Sudhakar Abraham
You can  set a style for individual cells  of a cell table . Override
the getCellStyleNames() in your ColumnT,C class.

 S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 20, 8:41 pm, Rike255 rgro...@gmail.com wrote:
 Hey all,

 So I have a celltable that contains a few textcolumns.  I want to be
 able to set a style for individual cells based on its contents.

 I can set a style for a specific column by calling something like:
 cellTable.getColumn(index).setStyleNames(style.disabled());

 The above works but I can't figure out how to only apply a style to
 one (or more) cells.

 Thanks in advance!
 Ryan

-- 
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 module 'gwtclient' may need to be (re)compiled

2011-09-20 Thread Sudhakar Abraham
I faced a similar problem. This is how I solved. Right click on
project configure your gwt sdk properly(Project--Google--web toolkit
settings). And check app engine settings. Compile your project to
check new compiled files in war directory.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE

On Sep 20, 4:32 am, Laura Bickle bickle.la...@gmail.com wrote:
 My app works in development mode, so it was time to run it in production.
 This webpage:

 http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html#D...

 made it sound like all I needed to do was wrap my files into a war file and
 drop the war file in the deploy directory of my server.

 So I:

 cd $MY_PROJECT/war
 jar -cvf $MY_PROJECT.war *
 cp $MY_PROJECT.war jboss-5.1.0.GA/server/web/deploy

 I got this in my server.log:

 2011-09-19 22:13:19,796 INFO
 [org.jboss.web.tomcat.service.deployers.TomcatDeployment]  (HDScanner)
 deploy, ctxPath=/$MY_PROJECT

 but when I go to $MY_WEBSITE/$MY_PROJECT, all I get is an alert saying:

 GWT module 'gwtclient' may need to be (re)compiled

 I googled it and the most common problems were
 - clear your cache (which I've done)
 - fix your pom.xml (I didn't use maven.)

 What am I doing wrong?  Any help is appreciated.
 Thanks,
 Laura

-- 
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 Binder error problem? show [ERROR] Element may only contain a single child element, but found g:VerticalPanel ui:field='panel1' and g:VerticalPanel ui:field='panel2'. Element g:center

2011-09-20 Thread Sudhakar Abraham
There can be one single widget inside the g:Center tag. You are
using two VerticalPanels inside the center tag. To solve the problem
use another verticalpanel wrap(v1+v2).

//Try the below code   corrected .xml file.

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
g:DockLayoutPanel ui:field=dock
 g:north size=25
  g:FlowPanel
  g:Button ui:field=saveSave/g:Button
  /g:FlowPanel
 /g:north
g:center
   g:VerticalPanel ui:field=V1
 g:VerticalPanel ui:field=panel1
   g:Button ui:field=button1print/
g:Button
   g:Button ui:field=button2clear/
g:Button
 /g:VerticalPanel
 g:VerticalPanel ui:field=panel2
   g:TextArea ui:field=textArea /
  /g:VerticalPanel
   /g:VerticalPanel
 /g:center
/g:DockLayoutPanel
/ui:UiBinder

S. Abraham
www.DataStoreGwt.com
Persist objects directly in GAE


On Sep 20, 4:38 pm, samuel bhaskarsamue...@gmail.com wrote:
 I got the problem when I compile my project. I write my error .xml
 file.

 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
         xmlns:g='urn:import:com.google.gwt.user.client.ui'
         g:DockLayoutPanel ui:field=dock
                 g:north size=25
                         g:FlowPanel
                                 g:Button ui:field=saveSave/
 g:Button
                         /g:FlowPanel
                 /g:north
                 g:center
                         g:VerticalPanel ui:field=panel1
                                 g:Button ui:field=button1print/
 g:Button
                                 g:Button ui:field=button2clear/
 g:Button
                         /g:VerticalPanel
                   g:VerticalPanel ui:field=panel2
                                 g:TextArea ui:field=textArea /
                         /g:VerticalPanel
                 /g:center
         /g:DockLayoutPanel
 /ui:UiBinder

-- 
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: Changing app from one gwt version to another version problem

2011-09-19 Thread Sudhakar Abraham
To migrate application from 2.3 to 2.4, please do  the following
steps.

S. Abraham
www.DataStoreGwt.com

1. Copy existing project  into a new destination directory.

2. Remove the gwt-servlet.jar from the directory  war\WEB-INF\lib\gwt-
servlet.jar

3. Import your existing project, File --Import--Existing projects
into your workspace

4. Point the directory of existing project

5. Right click project  Google--Web Tookit settings--configure sdk
settings(gwt-2.4.0).




On Sep 16, 12:31 pm, mallikarjun@gmail.com
mallikarjun@gmail.com wrote:
 Hi

 previously i am using GWT 2.3 now i am using GWT 2.4 i coppied my app
 from 2.3 to 2.4 it shows some errors like below. couls u plz help me
 when any body know.

 The file war\WEB-INF\lib\gwt-servlet.jar has a different size than GWT
 SDK library gwt-servlet.jar; perhaps it is a different version? gwt-
 servlet.jar     /Welcome/war/WEB-INF/lib        Unknown Google Web Toolkit
 Problem

 Thanks and Regards in advance

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



Re: GWT CellTable Add Widgets on The Footer

2011-09-19 Thread Sudhakar Abraham
Yes it is possible, you can add widget to the footer, override the
render() method in Header class. Try the below code.

HeaderStudent  footer = new HeaderStudent(new
ClickableTextCell())
{

  @Override
 public void render(Cell.Context context, SafeHtmlBuilder sb)
 {
   sb.appendEscaped(((Student)getValue()).getMark()) ;
 }
 }
//add footer to the cell table
celltable.addColumn(student , someHeader, footer);

S. Abraham
www.DataStoreGwt.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: what is the substitutes of DeferredCommand

2011-09-19 Thread Sudhakar Abraham
The response for rpc, httprequest etc is asynchrnous. You can put the
handleResponse() code inside Scheduler.get().scheduleDeferred(...).
This will protect the current event loop.

S. Abraham
www.DataStoreGwt.com

On Sep 19, 5:39 pm, wahaha il...@yahoo.com.cn wrote:
 thanks ,but how to use ?

 On 9月19日, 下午6时27分, Jens jens.nehlme...@gmail.com wrote:







  Scheduler.get().scheduleDeferred(...) is the replacement.

  -- J.

-- 
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: render image using clientbundle problem?

2011-09-14 Thread Sudhakar Abraham
I have written below a  code segment for  rendering image using
ClientBundle. Please try.

static interface Images extends ClientBundle {
@Source(yourImage.gif)
ImageResource contactsGroup();
  }

// call CategoryCell

public static Images images;
new CategoryCell(images.contactsGroup());

 private static class CategoryCell extends AbstractCellCategory {

private final String imageHtml;

public CategoryCell(ImageResource image) {
  this.imageHtml = AbstractImagePrototype.create(image).getHTML();
}

public void render(Context context, Category value,
SafeHtmlBuilder sb) {
 sb.appendHtmlConstant(imageHtml).appendEscaped( );
  }
}
  }

S. Abraham
www.DataStoreGwt.com


On Sep 13, 5:40 pm, Stephen Fleming m.naveenguru...@gmail.com wrote:
 I am unable to render image on my application  using clientbundle.
 Provide solution for me.

-- 
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 with multiple CellTables on one page

2011-09-14 Thread Sudhakar Abraham
To avoid this problem, use different resources (like different style
sheets ). I send the code segment.

S. Abraham
www.DataStoreGwt.com

public interface CellTableResources1 extends CellTable.Resources
 {
   @Source(your_css1.css)
   Style cellTableStyle();
}

public interface CellTableResources2 extends CellTable.Resources
 {
   @Source(Your_css2.css)
   Style cellTableStyle();
}

//cell table

CellTableResources  firstCss = GWT.create(CellTableResources1.class);
CellTableResources2 secondCss = GWT.create(CellTableResources2.class);
CellTablePerson table1 = new CellTablePerson(25, firstCss );
CellTablePerson table2 = new CellTablePerson(25, secondCss);


On Sep 14, 12:50 am, Pedro Perez guerr...@gmail.com wrote:
 Hello,

 I'm having an issue with 2 CellTables on the same page using the same
 CellTableResource. 1st table is defined like this:

 CellTableResource resource = GWT.create(CellTableResource.class);
 CellTableDataRecord table1 = new CellTableDataRecord(100,
 resource);

 where CellTableResource is an interface that extends
 CellTable.Resources that successfully maps to our custom css and
 styles our first table correctly.

 The issue is with table 2, which is defined like this:
 CellTable.Resources tableResources =
 GWT.create(CellTable.Resources.class);
 CellTableAddressRecord table2 = new CellTableAddressRecord(25,
 tableResources);

 table2 seems to inherit table1's styling. I was expecting in this case
 that table2 would use GWT's stock CellTable styling.

 Can someone perhaps show me where I'm wrong/correct my
 misunderstanding of how CellTables use Resources? Is there a way to
 have multiple cellTables on one page that use different stylings?

 One last thing, we are using GWT 2.2. It is difficult for us to
 upgrade 2.3 at this point.

 Thanks so much for your help,
 Pedro

-- 
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 import a css file in module.gwt.xml

2011-09-14 Thread Sudhakar Abraham
There are three ways to include css file.

1. you can add a link tag inside the head section of the host page
( you also need to create a file called   your_Stylesheet.css in the
public directory ).

Ex:
link type=text/css rel=stylesheet href=your_StyleSheet.css /

2. you can  include css on project.gwt.xml file.

Ex:
 stylesheet src='Your_StyleSheet.css' /

3. Using UI binder, specify the ui:style ...  /ui:style

Ex:
 ui:style
  .buttonSave {
float: left;
margin-top: 10px;
margin-left: 10px;
margin-bottom: 10px;
  }
/ui:style

S. Abraham
www.DataStoreGwt.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: IE keeps reloading the EntryPoint

2011-09-13 Thread Sudhakar Abraham
Your observation is independent of browser. To check, clear your
buffer cache of  Firefox or chrome  click  ctrl+F5.

S. Abrahma
www.DataStoreGwt.com


On Sep 12, 3:23 pm, Joey Jallorina joey.jallor...@gmail.com wrote:
 Hi Guys,

 I'm using GWT 2.3 implemented in MVP with AppController. Problem is
 when using IE7 or IE8 everytime I change the token (via hyperlink or
 typing directly in the address bar), the application reloads starting
 from the EntryPoint. This is not happening in Firefox or Chrome.
 Anybody who has the same experience?

 Appreciate any help.

 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: PLEASE HELP ME

2011-09-12 Thread Sudhakar Abraham
First install the Eclipse Indigo 3.7.  Download GWT SDK from the link
http://code.google.com/webtoolkit/
download.html. Extract the gwt-2.4.0.zip file to your own directory.
In eclipse IDE choose the Project -Properties--Google-- Web
Toolkit--configure sdk tab. Point to your extracted gwt-2.4.0

S. Abraham
www.DataStoreGwt.com

On Sep 10, 9:29 pm, velihasanov hasanovv...@gmail.com wrote:
 First of all, thanks a lot for reading my email.
 I installed gwt and plugged in it to Eclipse Indigo 3.7 .
 Then I met some mistakes, because of it I'd deleted all of files about
 eclipse, and gwt.
 Now I am trying to install GWT again. But it gives an error: Such that
 You are installing software that contains unsigned content. The
 validity if this software can not e established.
 How can I solve this problem?
 Please help me as fast as you can.
 Thanks again,

-- 
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: CellTables and css

2011-09-10 Thread Sudhakar Abraham
Change the default celltable properties  .cellTableEvenRow
,.cellTableOddRow of cellTableStyle.css file. Copy and paste
CellTableStyle.css  file in your project directory. Use the
CellTable.Resources interface and specify the @source of celltable in
your celltable class.

S. Abraham
www.DataStoreGwt.com

  interface TableResources extends CellTable.Resources
  {
@Source(value = { CellTable.Style.DEFAULT_CSS,
CellTableStyle.css })
CellTable.Style cellTableStyle();
  }
CellTable studentTable = new CellTableStudent(15,
GWT.TableResources create(TableResources.class));

CellTableStyle.css file.

.cellTableCell {
height: 25px;
padding: 2px 25px;
}

.cellTableHeader {
height: 25px;
border-bottom: 2px solid #60a6bf;
padding: 3px 25px;
text-align: left;
color: blue;
text-shadow: #ddf 1px 1px 0;
overflow: hidden;
cursor:pointer;
background-image: url(bollon.gif);
background-repeat:no-repeat;
background-position:80% 50%;

}

.cellTableEvenRow {
background: #fffaf0;
border:solid 1px red;
}

.cellTableEvenRowCell {
border:solid 1px green;
}

.cellTableOddRow {
background: #fff8e8;
}

.cellTableOddRowCell {
 border:solid 1px red;
}

On Sep 10, 5:33 am, Tony Kennah tonyken...@googlemail.com wrote:
 Hi

 Could someone help me in setting the background of a CellTable row
 please, I've been trying all night to do it and keep failing and it's
 driving me mad.  I tried using a call to setRowStyles() but that
 doesn't seem to be working and I've read that you can't change the
 style for a CellTable once  a style has been set - as the default one
 is being set.

 Then I tried constructing a CellTable with my own interface
 CellTableResources as seen on a post on this exact subject BUT that
 gave me error messages about unobfuscated ccs elements   which my
 css not being obfuscated is an obvious error message.

 Now I don't know what to try and I am officially STUCK.

 TonyK

-- 
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: Installation Problem: Eclipse HELIOS and the latest GWT Eclipse

2011-09-10 Thread Sudhakar Abraham
Download GWT SDK from the link http://code.google.com/webtoolkit/
download.html. Extract the gwt-2.4.0.zip file to your own
directory.  In eclipse IDE choose the Project --Properties--Google--
Web Toolkit--configure sdk tab. Point to your extracted gwt-2.4.0
directory.

S. Abraham
www.DataStoreGwt.com

On Sep 9, 11:28 pm, DavidPShaw wowkr...@gmail.com wrote:
 Hi,
   I had used GWT back in the 1.4 days, and recently had a project that
 I thought I could use it again.  I have had some difficulty
 installing, however.  As suggested here:

 http://code.google.com/webtoolkit/usingeclipse.html#eclipse

 I downloaded eclipse-java-helios-SR2-macosx-cocoa-x86_64.tar.gz for my
 Mac running OSX 10.7, extracted it, ran it, and added the plugin via
 Install new Software with the URL:  http://dl.google.com/eclipse/plugin/3.6

 When I go to add the plug-in, I get this error:

 An error occurred while collecting items to be installed
 session context was:(profile=epp.package.java,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
 action=).
 No repository found containing:
 osgi.bundle,org.eclipse.jst.common.project.facet.core,
 1.4.102.v201008182136
 No repository found containing: osgi.bundle,org.eclipse.wst.css.core,
 1.1.402.v201102031915
 No repository found containing: osgi.bundle,org.eclipse.wst.css.ui,
 1.0.502.v201101122002
 No repository found containing: osgi.bundle,org.eclipse.wst.html.core,
 1.1.404.v201101190004
 No repository found containing: osgi.bundle,org.eclipse.wst.jsdt.core,
 1.1.4.v201102102045
 No repository found containing: osgi.bundle,org.eclipse.wst.jsdt.ui,
 1.1.4.v201102160540

 I don't know how to proceed.  This is a fresh Eclipse and a fresh
 GWT.  Any suggestions?  Thanks for any help you can provide.

-- 
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: What's the version of Jetty in gwt-dev.jar ?

2011-09-09 Thread Sudhakar Abraham
Jetty 6.1.x version is included in gwt-dev jar.

S. Abraham
www.DataStoreGwt.com

On Sep 8, 11:56 pm, Leonel Gayard leonel.gay...@gmail.com wrote:
 Title says it all.

 What version of Jetty is included in gwt-dev.jar ?

 Also, did it change over the latest versions of GWT ? From GWT 2.0 to
 bleeding-edge 2.4, which versions of Jetty are bundled in each ?

 Thanks,
 Leonel

-- 
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: Hosting GWT applications

2011-09-09 Thread Sudhakar Abraham
Go to the build directory of project.  Copy the required jar from
your Project_Directory\build\web\WEB-INF\lib .  Go to the Google App
engine sdk directory through command prompt C:\Program Files
\GoogleAppEngine\appengine-java-sdk-1.5.0.1\bin.  Type   appcfg --
enable_jar_splitting update   war_directory of  your application. To
check type the url on browser.

Try the following command.
C:\Program Files\GoogleAppEngine\appengine-java-sdk-1.5.0.1\binappcfg
--enable_ jar_splitting update Project_Directory\build\web.

S. Abraham
www.DataStoreGwt.com



On Sep 8, 11:10 pm, sachin sreenivasan
sachin.sreenivasa...@gmail.com wrote:
 Hi,

    I am developing an application using GWT and I need to host it
 somewhere so that I can share it with my friend who is located
 elsewhere. Can someone tell me what would be the best option to host
 my application to make it available for him for testing purpose? I
 guess google app engine can be used, but I dont know how to have the
 database and all configured. Can someone help me with this?

 Regards,
 sachin

-- 
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 use a DialogBox

2011-09-09 Thread Sudhakar Abraham
Please see the  code segment below. Hope this  useful for you

S. Abraham
www.DataStoreGwt.com


public class Dialogbox implements EntryPoint
{
VerticalPanel panel;
DialogBox dialogbox;
PopupPanel glass;
VerticalPanel DialogBoxContents;
ClickListener listener;
HTML message;
Button button;
SimplePanel holder;
 public void onModuleLoad()
  {
// Create a panel and add it to the screen
panel = new VerticalPanel();
RootPanel.get(demo).add(panel);
panel.setStyleName(table-center);
// Create a DialogBox with a button to close it
dialogbox = new DialogBox(false);
dialogbox.setStyleName(demo-DialogBox);
DialogBoxContents = new VerticalPanel();
dialogbox.setText(DialogBox);
message = new HTML(Click 'Close' to close);
message.setStyleName(demo-DialogBox-message);
listener = new ClickListener()
{
public void onClick(Widget sender)
{
dialogbox.hide();
}
};
button = new Button(Close, listener);
holder = new SimplePanel();
holder.add(button);
holder.setStyleName(demo-DialogBox-footer);
DialogBoxContents.add(message);
DialogBoxContents.add(holder);
dialogbox.setWidget(DialogBoxContents);
//
// Add a button to the demo to show the above DialogBox
listener = new ClickListener()
{
public void onClick(Widget sender)
{
dialogbox.center();
}
};
button = new Button(Show DialogBox, listener);
panel.add(button);
  }


On Sep 9, 12:54 pm, Jean1979 amidi.j...@gmail.com wrote:
 Hi everyone

 I'm begginer in GWT so i have a question , how can i put a DialogBox
 on

 First, i create a DockLayoutPanel on my browser page

 then i put a SimplePanel on DockLayoutPanel (SimplePanelnorth,
 SimplePanelsouth, SimplePaneleast, SimplePanelwest, and
 SimplePanelcenter) , on SimplePanelcenter i put a picture. NOW i want
 a DialogBox with widget.

 I will be pleased for this help.

 Sorry my english is not good;

 Have a nice day

-- 
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: IE8 ListBox Height

2011-09-09 Thread Sudhakar Abraham
As far as my understanding goes, this is the default behaviour of IE
(Internet Explorer) browser, which can not be changed.

S. Abraham
www.DataStoreGwt.com

On Sep 7, 5:57 pm, Jeffrey Roe jefrey...@gmail.com wrote:
 Hello all,
 I am using a list box. It displays correctly in Firefox and chrome. In
 IE8 , the listbox starts from the top of the page and not from the
 start of the drop down.
 See attacthed screen shot. Any fix or work around ?
 Jeffrey Roe,

  dropdown.jpg
 58KViewDownload

-- 
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: Overriding themes

2011-09-08 Thread Sudhakar Abraham
To specify your own style in uibinder.xml file, edit  ui:style/
ui:style tag as follows

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
ui:style
.buttonSave
{
float: left;
background:#E8E8E8;
margin-left: 200px;
}
/ui:style
g:DockLayoutPanel ui:field=dock unit=PX width=700px
height=600px
g:Button ui:field=save styleName={style.buttonSave}
/g:DockLayoutPanel
/ui:UiBinder

S. Abraham
www.DataStoreGwt.com

On Sep 7, 6:53 pm, Tobias to.s...@gmail.com wrote:
 Hi,

 I am trying to customize the look of my application. My plan was to
 keep one of the default themes and override just those styles that I
 want to change.

 My first attempt was to add the overridden styles to the CSS file that
 I am including in my HTML host page using link ... But
 unfortunately this does not work because that CSS file is loaded
 before the theme CSS file. And then the theme CSS takes precedence.

 This blog [1] explains an alternative solution which includes a custom
 CSS file located in a public folder using stylesheet
 src=... (inside the *.gwt.xml file). Is this the intended approach
 for overriding themes? I am a bit surprised because stylesheet ..
 is marked as deprecated and this public folder is not mentioned in
 the documentation (?).

 And I am not sure how I could use CssRessource/UiBinder, because I do
 not want to apply my custom style just to e.g. one button but to all
 buttons.

 Any hint would be appreciated!

 Thanks,
 Tobias

 [1]:http://www.jeanhsu.com/2010/04/29/overriding-gwts-default-stylesheet/
 [2]:http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideUiCss...

-- 
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: Centering text in a Label

2011-09-08 Thread Sudhakar Abraham
To adjust the properties  padding-top,padding-bottom,padding-
right,padding-left in  Style Sheet, please see  the following code.

.gwt-Label-1
{
border: 1px solid;
font-size: 13px;
padding-left:5px;
padding-right:5px;
padding-bottom:5px;
padding-top:5px;
background-color: lavender;
}

S. Abraham
www.DataStoreGwt.com

On Sep 8, 3:33 pm, ph09 ph.hei...@googlemail.com wrote:
 Hello,

 I try to centering text in a Label with following CSS:
 .gwt-Label-1 {
         border: 1px solid;
         font-size: 13px;
         vertical-align: middle;
         text-align: center;
         background-color: lavender;

 }

 It works all except of vertical-align: middle. The text is always at
 the top of the Label.
 Does anyone know why?

-- 
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: Re : Developing GWT App using Tomcat

2011-09-07 Thread Sudhakar Abraham
To remove the GAE jars from the classpath, you uncheck GAE in the
project properties.

Step 1: Project -- Properties--Java Build path-- Libraries --
remove App Engine SDK  jars.
step 2 :Remove all jar from war\WEB-INF\lib  except  gwt-servlet, my-
sql jars.

S. Abraham
www.DataStoreGwt.com

On Sep 7, 9:37 am, Ashwani Sharma ashw.ku...@gmail.com wrote:
 Hi,

 I will also prefer to run on embedded server i.e. jetty and i can not use
 GAE, because it prevent connecting to data bases.
 Hence,
 - I disabled GAE by going to project properties and disabling checkbox Use
 Google App Engine
 - In debug configuration the App Engine tab is hence have all empty
 un-editable fields.

 Now when i launch the conf i get following error:
 java.lang.NoSuchMethodError:
 org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V
  at
 org.mortbay.io.nio.SelectorManager$SelectSet.init(SelectorManager.java:306)
 at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:223)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
 at
 org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:303)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
 at org.mortbay.jetty.Server.doStart(Server.java:233)
  at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
 at
 com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:667)
  at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
 at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
  at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
 at com.google.gwt.dev.DevMode.main(DevMode.java:309)

 How to fix this ?

 Thanks and Regards,
 Ashwani Kr Sharma

 On Wed, Sep 7, 2011 at 9:58 AM, dreamer venugopal.vasire...@gmail.comwrote:







  My short answer is develop in dev mode as is and deploy in any servlet
  container you prefer.

  If you go to debug configuration, in server tab, you only see
  embedded server which is nothing but jetty dev mode.
  In short there may not be any easy way to debug in other servers.

  But you should be able to develop in DEV mode and deploy in any
  servlet container.
  Once you make war file, there is nothing specific to jetty.

  I just have three jars in my web/lib -  gwt_servlet.jar,appengine-
  api-1.0-sdk-1.5.2.jar,appengine-api-labs-1.5.2.jar -
  If you want to run on tomcat you may or may not need any of these.

  Global School District
 http://schoolk12.appspot.com/

  On Sep 6, 7:19 pm, Ashwani ashw.ku...@gmail.com wrote:
   Hi,

   For Option 1: I tried to remove the app engine by doing following
   steps:
   1) In project - properties go to Google-App Engine
   2) Unselect the option Use Google App Engine

   I get following error when running the Application as Web Application

   Exception in thread main java.lang.NoSuchMethodError:
   org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V
           at org.mortbay.io.nio.SelectorManager
   $SelectSet.init(SelectorManager.java:306)
           at
  org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java:
   223)
           at
   org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
   39)
           at

  org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector
  .java:
   303)
           at
   org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
   39)
           at org.mortbay.jetty.Server.doStart(Server.java:233)
           at
   org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
   39)
           at
   com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
   667)
           at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500)
           at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055)
           at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804)
           at com.google.gwt.dev.DevMode.main(DevMode.java:309)

   If i use Google App Engine, i get following error when i tried to
   access the DB:

   java.sql.SQLException: URL is not in the correct format: jdbc:mysql://
   localhost:3306/upskillingdb
           at

  com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(E
  xceptions.java:
   103)
           at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47)
           at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24)
           at java.sql.DriverManager.getConnection(Unknown Source)
           at java.sql.DriverManager.getConnection(Unknown Source)
           at

  com.sap.upskillingmanager.server.DataBaseConnector.getConnection(DataBaseCo
  nnector.java:
   54)
           at

  com.sap.upskillingmanager.server.DataBaseServicesImpl.addTraining(DataBaseS
  ervicesImpl.java:
   17)

   Any hints on how i can remove GAE from my project and use jetty server
   for development ?

   Thanks and Regards,
   Ashwani Kr Sharma

   On Sep 6, 8:22 pm, Jeanpylone jeanpyl...@gmail.com wrote:


Re: GWT CELLTABLE column's cell value updation

2011-09-06 Thread Sudhakar Abraham
Try Column.setFieldUpdater(FieldUpdaterT,C fieldUpdater). Override
the method update(int index, T object, C value) to
update all the objects forming your table model.

S. Abraham
www.DataStoreGwt.com



On Sep 5, 6:32 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote:
 I am using gwt2.3

 My celltable contains 10 rows, 5 columns.

 All cells in 1st row is empty,editable.

 Whenever user clicks on column cell lets say 1st row X 3rd column then user
 will edit that cell say xyz. after that when user click on button: update
 column cell then xyz value set to all cell present in that column.

 I am using different celltype in celltable.

 How to set/update all cell value in that particular column/page whose 1st
 cell is edited

 Any help or guidance in this matter would be appreciated

 --
 Best Regards,
 Vaibhav

 http://about.me/vaibhavbhalke

-- 
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 designer keeps hanging!! going mental

2011-09-05 Thread Sudhakar Abraham
Change the eclipse.ini file configuration in eclipse installed
directory.
 -Xms512m
-Xmx1024m
-XX:PermSize=128m
-XX:MaxPermSize=512m

S. Abraham
www.DataStoreGwt.com



On Sep 2, 8:40 pm, Elhanan elh.maa...@gmail.com wrote:
 i'm sorry, but is way too much, i'm trying to use SplitLayoutPanel,and
 i've added a few buttons, after pressing save, the designer completely
 hangs, i have no idea what's going on. i have 6 gb ram, i7 core, java 6 (64
 bit, could this be 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: when would the onBrowserEvent method of Widget be triggered ?

2011-09-05 Thread Sudhakar Abraham
Register the  events by calling the following method in the
constructor of your widget.
sinkEvents(Event.ONMOUSEDOWN | Event.ONMOUSEUP | Event.ONMOUSEOVER |
Event.ONMOUSEOUT);

// override in your widget class
public void onBrowserEvent(Event event)
{
  switch (DOM.eventGetType(event))
  {
case Event.ONMOUSEDOWN:
{
 // write your logic here.
 Window.alert( ONMOUSEDOWN);
 break;
   }
   case Event.ONMOUSEUP:
   {
   Window.alert( ONMOUSEUP);
   break;
   }
   case Event.ONMOUSEOVER:
   {
   Window.alert( ONMOUSEOVER);
   break;
   }
   case Event.ONMOUSEOUT:
   {
   Window.alert( ONMOUSEOUT);
   break;
   }
 }
}

S. Abraham
www.DataStoregwt.com

On Sep 5, 6:57 am, wahaha il...@yahoo.com.cn wrote:
 when and in what situation would the onBrowserEvent method of Widget
 be triggered ?

 sorry for my poor english,i hope you can understand what i say.

-- 
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: Locking bottom panel of SplitLayoutPanel to bottom of viewing area

2011-09-02 Thread Sudhakar Abraham
Set the size of north,center attribute of SplitLayoutPanel at Unit
PX in uibinder.xml file as follows.

g:SplitLayoutPanel ui:field=splitLayoutPanel
 g:north size=600 unit=px
g:TabLayoutPanel ui:field=tabLayoutPanel
styleName={style.tabPanel} barUnit='PX' barHeight='3'
/g:TabLayoutPanel
/g:north
g:center
g:HorizontalPanel ui:field=horizontalPanel
styleName={style.horizontalPanel}
/g:HorizontalPanel
/g:center
/g:SplitLayoutPanel

S. Abraham
www.DataStoreGwt.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: New Windows and panels

2011-08-30 Thread Sudhakar Abraham
Use native method to open a new window. Try the following code.

S. Abraham
www.DataStoreGwt.com

Example code :

package com.college.client;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.Widget;
public class OpenNewWindow
{
  public OpenNewWindow()
  {
OpenWindow();
  }
  private void OpenWindow()
  {
Button button = new Button(OpenNewWindow);
button.addClickListener(new ButtonAction());
RootLayoutPanel.get().add(button);
  }
  private class ButtonAction implements ClickListener
  {
@Override
public void onClick(Widget sender)
{
  openWindow();
}
  }
  public static void sayHello()
  {
Window.alert(hello);
  }

private native void openWindow() /*-{
var window = $wnd.open(, _blank);
if (window.opener == null)
window.opener = self;
window.document.createElement(body);
window.document.body.innerHTML = a href=
\javascript:window.opener.sayHello();\say hello/a;
$wnd.sayHello = function () {
 @com.college.client.OpenNewWindow::sayHello()()
 };
  }-*/;
}

On Aug 29, 8:07 pm, jose felix estevez josefel...@gmail.com wrote:
 good friends, will be possible to open a new window and create panels in
 that window.

 --
 Jose F.Estevez H.
 T.S.U. en Analisis y Diseño de Sistemas
 Consultor Staff I
 Tecnology Consulting Solutions - TCS

-- 
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 doesn't my custom widget work in chrome but perfectly in firefox?

2011-08-30 Thread Sudhakar Abraham
Use MouseMoveHander and MouseOutHandler  instead of
MouseOverHandler,MouseOutHandler. See the following code. Hover the
cursor to the div, the text  responds  to mouse over. Remove the
cursor from div to get bye mouse.

S. Abraham
www.DataStoreGwt.com

package com.college.client;
import com.google.gwt.event.dom.client.MouseMoveEvent;
import com.google.gwt.event.dom.client.MouseMoveHandler;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.dom.client.MouseOutHandler;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.RootLayoutPanel;
  public class MyWidget
  {
   private final HTML widget;
   public MyWidget() {
   widget = new HTML(divHello/div);
   widget.addMouseMoveHandler(new MouseMoveHandler()
{
   @Override
public void onMouseMove(MouseMoveEvent event)
{
 widget.setHTML(divMouse over/div);
}
   });
widget.addMouseOutHandler(new MouseOutHandler()
{
@Override
public void onMouseOut(MouseOutEvent event)
{
 widget.setHTML(divBye mouse!/div);
}
});
 RootLayoutPanel.get().add(widget);
}

  }

On Aug 30, 3:08 am, Ingert Doe inge...@gmail.com wrote:
 Hello, Today I ran into some problems with a custom widget. I created
 a new GWT project and made a small test widget to narrow down the
 problem. Here is the test widget I wrote:

 public class MyWidget extends Composite implements MouseOverHandler,
 MouseOutHandler {
         private final HTML widget;

         public MyWidget() {
                 widget = new HTML(divHello/div);
                 widget.addDomHandler(this, MouseOverEvent.getType());
                 widget.addDomHandler(this, MouseOutEvent.getType());
                 initWidget(widget);
         }

         @Override
         public void onMouseOver(MouseOverEvent event) {
                 widget.setHTML(divMouse over/div);
         }

         @Override
         public void onMouseOut(MouseOutEvent event) {
                 widget.setHTML(divBye mouse!/div);
         }

 }

 In firefox, this code works as expected. When I hover the cursor over
 the div, the text changes to Mouse over, when I remove the cursor
 from the div, the text changes to Bye mouse!.

 In Chrome, only the onMouseOver handler is executed. To be perfectly
 clear: When I hover the cursor over the div, the text changes to
 Mouse over, but when I remove the cursor from the div, the text does
 Not change to Bye mouse!.
 If I comment out the addDomHandler for MouseOver, the MouseOut works.

 I have also tried (as suggested on different forums) to only implement
 the HasMouseOverHandlers and HasMouseOutHanders on my widget,
 overriding the addMouse*Handler and using a separate class for
 implementing the MouseOverHander/MouseOutHandler but I get the same
 results here. Works perfectly in ff but only one handler works in
 chrome.

 Am I doing anything wrong in the code above? Is there another way I
 can write the code to get the it more cross-browser compliant?

 Thank you!

-- 
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: CellTable needs overflow set

2011-08-29 Thread Sudhakar Abraham


On Aug 26, 2:26 pm, Al Forbes forbes...@googlemail.com wrote:
 Hi,

 I have a pretty standard CellTable setup with the center of a
 DockLayoutPanel, but the table is never visible. I can fix it by setting if
 set the DockLayout properties overflowX and overflowY to visible.

 The sample
 (com/google/gwt/sample/dynatablerf/client/widgets/SummaryWidget.java) shipped
 with GWT 2.3 also sets the property:
  dock.getWidgetContainerElement(table).getStyle().setProperty(overflowY,
 visible);

 Is this a problem with my layout/CSS, a GWT bug, or something else? Any
 hints appreciated...

 The generated html looks like this:

 div style=position: absolute;   left: 0ex; top: 6ex; right: 0ex; bottom:
 0ex; 
 table __gwtcellbasedwidgetimpldispatchingfocus=true
 __gwtcellbasedwidgetimpldispatchingblur=true cellspacing=0 .

 The style (as shown in firebug)
 element.style {
 position: absolute;
 *overflow-x: hidden;*
 *overflow-y: hidden;*
 left: 0ex;
 top: 6ex;
 right: 0ex;
 bottom: 0ex;

 }

 With the overflow set and table displaying correctly:
 div style=position: absolute; overflow-x: visible; overflow-y: visible;
 left: 0ex; top: 6ex; right: 0ex; bottom: 0ex; 
 table __gwtcellbasedwidgetimpldispatchingfocus=true
 __gwtcellbasedwidgetimpldispatchingblur=true cellspacing=0 .

 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: CellTable needs overflow set

2011-08-29 Thread Sudhakar Abraham
Do not set overflow in CSS for DockLayoutPanel. Instead,  add your
celltable in ScrollPanel and set your scrollPanel object in DockLayout
panel . Try the following code.

Example code

ScrollPanel scrollPanel = new ScrollPanel();
scrollPanel.add(cellTable);
DockLayoutPanel dock = new DockLayoutPanel(Unit.PX);
dock.add(scrollPanel);

S. Abraham
www.DataStoreGwt.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: Can't display wide HTML in Dialog

2011-08-29 Thread Sudhakar Abraham
 Add your HTML contents in VerticalPanel and add VerticalPanel to
DialogBox. For Dialogbox, set the size attribute in CSS .
Hope it solves your problem.

S. Abraham
www.DataStoreGwt.com

On Aug 27, 5:55 am, dhoffer dhoff...@gmail.com wrote:
 I'm starting with the sample GWT 2.3.0 app that just shows a dialog
 after making an RPC call, I've added more wide content to the
 VerticalPanel but it gets truncated, i.e. the right side of the dialog
 is missing...so is the Close button.  Why can't I show wide content as
 HTML here?

-- 
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 while add a widget to absolute panel

2011-08-23 Thread Sudhakar Abraham

In AbsolutePanel object set the size, add the widget to the
absolutepanel object.
Try the following code.

S, Abraham
www.DataStoreGwt.com

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Style.Position;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootLayoutPanel;
public class CollegeEntry implements EntryPoint
{
  @Override
  public void onModuleLoad()
  {
initGuI();
  }
  private void initGuI()
  {
AbsolutePanel absolutePanel = new AbsolutePanel();
absolutePanel.setSize(20ex, 20ex);
 
absolutePanel.getElement().getStyle().setPosition(Position.RELATIVE);
absolutePanel.add(new Button(ADD));
absolutePanel.add(new Button(MUL));
RootLayoutPanel.get().add(absolutePanel);
  }


On Aug 23, 10:23 am, Charan s.chara...@gmail.com wrote:
 Warning: com.google.gwt.user.client.ui.AbsolutePanel descendants will
 be incorrectly positioned, i.e. not relative to their parent element,
 when 'position:static', which is the CSS default, is in effect. One
 possible fix is to call
 'panel.getElement().getStyle().setPosition(Position.RELATIVE)'.

-- 
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: (perplexing + frustrating) CSS image not found

2011-08-23 Thread Sudhakar Abraham
I had a similar problem and I solved it in the following way.

S. Abraham
www.DataStoreGwt.com

Create the package in War directory name as images and put all the gif
files.

uploaded directory structure like

/war/images/bottom.gif

In css chage the background-image property like this.

 .panelEnterBottom{
  padding-left:20px;
  padding-right:20px;
  padding-top:20px;
  background-image: url(images/bottom.gif);
}

On Aug 23, 10:20 am, Shawn Brown big.coffee.lo...@gmail.com wrote:
 Hi,

 I have a compiled project deployed on AppEngine.

 Some .gif files are not found by GWT.

 I am perplexed.

 The CSS file is found.
 Other .gif images used by the CSS file are found.

 Looking at DevTools in Chrome, I see which ones are not found.
 Clicking on the link, the server finds them and shows them in my
 browser.

 Why can I directly access them using the url that it is being reported
 GWT can not find them at.

 I mean:

 /images/panel/top.gif  --- is found
 /images/panel/bottom.gif -- is not found by gwt but can be accessed
 by using the link DevTools says GWT says it's not at.

 Dev mode shows the same things.

 It's just beyond crazy.

 If client bundle is the only way to use things, the docs should say that.

 Shawn

-- 
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: Remove ALL CSS from GWT

2011-08-22 Thread Sudhakar Abraham

Change the property in gwt.xml file as follows.

In the Project.gwt.xml file do not inherit the css  file.
comment as follows !-- inherits
name='com.google.gwt.user.theme.standard.Standard'/ --

Hope it helps.

S. Abraham
www.DataStoreGwt.com

On Aug 19, 7:57 pm, Alexander Orlov alexander.or...@loxal.net wrote:
 Even if you don't specify any specific theme in the *.gwt.xml some CSS
 directives are always inserted into the app. How can I specify that GWT
 should not insert any single line of CSS into the app?

-- 
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: Basic CellTree tutorial not working

2011-08-22 Thread Sudhakar Abraham

In  Entrypoint,  add  CellTreeExample  object into RootLayoutPanel. It
binds the CellTree Widget with uiBinder.
Try the following example.

S. Abraham
www.DataStoreGwt.com

package com.college.client;
import com.google.gwt.cell.client.TextCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.cellview.client.CellTree;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.view.client.ListDataProvider;
import com.google.gwt.view.client.TreeViewModel;

public class CellTreeExample extends Composite {
  interface Binder extends UiBinderWidget, CellTreeExample{}
  @UiField(provided = true)
  CellTree cellTree;
  public CellTreeExample()
  {
TreeViewModel model = new CustomTreeModel();
cellTree = new CellTree(model, Tree 1);
initWidget(GWT.Binder
create(Binder.class).createAndBindUi(this));
  }
  public class CustomTreeModel implements TreeViewModel
  {
@Override
public T NodeInfo? getNodeInfo(T value)
{
  // TODO Auto-generated method stub
  ListDataProviderString dataProvider = new
ListDataProviderString();
  for (int i = 0; i  2; i++) {
dataProvider.getList().add(value + . + String.valueOf(i));
  }
  // Return a node info that pairs the data with a cell.
  return new DefaultNodeInfoString(dataProvider, new
TextCell());
}
@Override
public boolean isLeaf(Object value)
{
  // TODO Auto-generated method stub
  return value.toString().length()  10;
}
  }
}

On Aug 21, 10:12 pm, fabio.bozzo fabio.bo...@gmail.com wrote:
 Trying to copy and paste the most basic celltree 
 example:http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideUiCel...

 But it only shows two blocks, without tree look and feel. Here's my
 code:

 public class CategorieTreeViewModel implements TreeViewModel {

         @Override
         public T NodeInfo? getNodeInfo(T value) {
                 ListDataProviderString dataProvider = new
 ListDataProviderString();
                 for (int i = 0; i  2; i++) {
                     dataProvider.getList().add(value + . + 
 String.valueOf(i));
                   }

                   // Return a node info that pairs the data with a cell.
                   return new DefaultNodeInfoString(dataProvider, new 
 TextCell());
         }

         @Override
         public boolean isLeaf(Object value) {
                 // The maximum length of a value is ten characters.
               return value.toString().length()  10;
         }

 }

 public class Categorie extends Composite implements Constructable {

         private static CategorieUiBinder uiBinder =
 GWT.create(CategorieUiBinder.class);
         interface CategorieUiBinder extends UiBinderWidget, Categorie {}

         @UiField(provided=true)
         CellTree cellTree;

         public Categorie() {

                 // Create a model for the tree.
             TreeViewModel model = new CategorieTreeViewModel();

             // Create the tree using the model. We specify the default value
 of the
             // hidden root node as Item 1.
             cellTree = new CellTree(model, Elemento 1);

                 initWidget(uiBinder.createAndBindUi(this));
         }

 }

The corresponding .xml file CellTreeExample

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:cv='urn:import:com.google.gwt.user.cellview.client'

g:DockLayoutPanel ui:field=dock unit=PX
g:center
cv:CellTree ui:field=cellTree/
/g:center
/g:DockLayoutPanel
/ui:UiBinder



 Is there something wrong? What do you think?

-- 
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: Using a CellTable with individual Cell selection

2011-08-19 Thread Sudhakar Abraham

In celltable css change the properties of cellTableOddRowCell:hover
and cellTableEventRowCell:hover set the border properties.

Here is a sample code.

package com.college.client;
import java.util.Arrays;
import java.util.List;
import com.college.client.StudentListEditor.TableResources;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.TextColumn;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.view.client.ListDataProvider;
public class CellTableExample implements EntryPoint
{
  interface TableResources extends CellTable.Resources
  {
@Source(value = { CellTable.Style.DEFAULT_CSS,
CellTableStyle.css })
CellTable.Style cellTableStyle();
  }
   @Override
  public void onModuleLoad()
  {
CellTableContact table = new CellTableContact(15,
GWT.TableResources create(TableResources.class));
TextColumnContact nameColumn = new TextColumnContact() {
  @Override
  public String getValue(Contact contact) {
return contact.name;
  }
};
TextColumnContact addressColumn = new TextColumnContact() {
  @Override
  public String getValue(Contact contact) {
return contact.address;
  }
};
table.addColumn(nameColumn, Name);
table.addColumn(addressColumn, Address);
ListDataProviderContact dataProvider = new
ListDataProviderContact();
dataProvider.addDataDisplay(table);
ListContact list = dataProvider.getList();
for (Contact contact : CONTACTS) {
  list.add(contact);
}
RootPanel.get().add(table);
  }
  private static class Contact {
private final String address;
private final String name;

public Contact(String name, String address) {
  this.name = name;
  this.address = address;
}
  }
  private static ListContact CONTACTS = Arrays.asList(new
Contact(John,
  123 Fourth Road), new Contact(Mary, 222 Lancer Lane), new
Contact(
  Zander, 94 Road Street));
}

CellTableStyle.css

.cellTableCell {
height: 25px;
cursor: pointer;
padding: 2px 25px;
}
.cellTableHeader {
height: 25px;
padding: 3px 25px;
text-align: left;
color: #4b4a4a;
text-shadow: #ddf 1px 1px 0;
overflow: hidden;
background: #BAC2CD;
}
.cellTableEvenRow {
background: #fffaf0;
}
.cellTableEvenRow:hover{
   color: black;
}
.cellTableEvenRowCell {
border: 2px solid #fffaf0;
}
.cellTableOddRowCell {
border: 0px solid red;
}
.cellTableEvenRowCell{
 border: 0px solid blue;
}
.cellTableOddRowCell:hover {
border: 2px solid red;
}
.cellTableEvenRowCell:hover{
 border: 2px solid blue;
}


S. Abraham
www.DataStoreGwt.com




On Aug 18, 6:12 am, Sander Smith smit...@sericontech.com wrote:
 I need to create a table of records where each row in the table is
 selectable. I'm using a CellTable which works very nice, and allows me
 to select and act on rows.

 However, there's a cosmetic side-effect that I don't like. When
 anything in the table is clicked on, it seems like the cell that was
 clicked on is being selected. It does this by highlighting the text in
 the cell and putting a frame around that cell.

 How do I retain the functionality of this widget, but avoid this
 cosmetic behavior?

-- 
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: Editor returns null values for empty strings after flush?

2011-08-19 Thread Sudhakar Abraham

When You click the save button bean value should be set. It is
important that  Bean class domain variable name should be same as
ui:field name in Editor class.

I have given below  a simple program.
Hope it helps.

S.Abraham
www.DataStoreGwt.com

--- sample program
--

   Editor class
public class MyEditorWorkFlow extends Composite {
interface Binder extends UiBinderWidget, MyEditorWorkFlow{}
Binder binder = GWT.create(Binder.class);
interface Driver extends SimpleBeanEditorDriverMyData,MyEditor
{}
private Driver driver = GWT.create(Driver.class);
@UiField (provided = true)
MyEditor editor;
MyData myData_ = null;
public MyEditorWorkFlow(MyData myData)
{
  this.myData_ = myData;
  editor = new MyEditor(myData_);
  initWidget(binder.createAndBindUi(this));
  edit(myData_);
}
@UiHandler(save)
void onSave(ClickEvent event)
{
  MyData myData = driver.flush();
  Window.alert(Name= + myData.getName() );
}
public void edit(MyData myData)
{
  driver.initialize(editor);
  driver.edit(myData);
}
  }

Bean class
public class MyData implements Serializable
{
public String name;

public String getName()
{
  return name;
}
public void setName(String name)
{
  this.name = name;
}
}

ui.xml
!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
g:FlowPanel
 g:TextBox ui:field=name/
/g:FlowPanel
/ui:UiBinder

On Aug 18, 4:27 am, P.G.Taboada pgtabo...@googlemail.com wrote:
 hi,

 Not sure what I am doing wrong.

 I did build a form with uibinder and I am populating a few TextBoxes
 with an editor:

 mydriver.initialize( this );
 mydriver.edit( somebean );

 ... User edits data ...

 changedBean = myeditor.flush();

 When I look at the changedBean, all empty string properties became
 null. Not what I or the database did expect.

 I am using gwt build from trunk.

 Brgds,

 Papick

-- 
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: Strange eclipse problem

2011-08-18 Thread Sudhakar Abraham
Download the  MVP Contacts  and extract into local drive.
In eclipse IDE,   File--Import--Existing projects into your
workspace and select  your  contacts file from   your directory. Then
follow the options like like finish, next...


S.Abraham
www.DataStoreGwt.com

On Aug 18, 5:42 am, Russ Abbott russ.abb...@gmail.com wrote:
 I'm trying to run the MVP Contacts
 examplehttp://code.google.com/webtoolkit/articles/mvp-architecture.html.
 (But the same problem occurred in a completely different context.)

 I created a Contacts project. But I declared the package as *
 com.google.gwt.samples.contacts.*
 *
 *
 I then copied the src and war files onto that project. (Other ways of
 creating the project and then using the Tutorial-Contacts.zip file didn't
 work.) When I ran it I got this error message in the Console window.

 Loading modules
    com.google.gwt.sample*s*.contacts.Contacts
       [ERROR] Unable to find
 'com/google/gwt/samples/contacts/Contacts.gwt.xml' on your classpath; could
 be a typo, or maybe you forgot to include a classpath entry for source?
 [ERROR] shell failed in doStartup method

 My mistake was that I wrote *samples *instead of *sample *in the package
 name.

 So I deleted the project and the code and tried again.  Even though I typed
 the name correctly this time, eclipse still tried to load the wrong file. I
 even restarted eclipse--and still the same thing happened. Somehow eclipse
 seems to have become obsessed with my original wrong spelling of *samples*.
 How can I get it to forget that?

 (As I said, the same thing happened when I did something similar in a
 different project.)

 Thanks.

 -- Russ

-- 
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 can I create a widget add it to a CellTable and perform some action when it's clicked?

2011-08-18 Thread Sudhakar Abraham
Here is what I did for a  similar problem. I added a ClickableTextCell
in the Column Header.

CellTable studentTable = new CellTableStudent();
ColumnStudent, String feesColumn = new FeesColumn();
HeaderString header = new HeaderString(new
ClickableTextCell())
{
  @Override
  public String getValue() {
return MyHeader;
  }
  @Override
  public void onBrowserEvent(Context context, Element parent,
NativeEvent event) {
PopuppanelDemo popup = new PopuppanelDemo();
int left = parent.getAbsoluteLeft();
Console.print(left+left);
int top = parent.getAbsoluteTop();
Console.print(top+left);
popup.setAnimationEnabled(true);
popup.setAutoHideEnabled(true);
popup.setSize(20ex, 15ex);
TextArea area = new TextArea();
area.setSize(20ex, 15ex);
area.setText(Searchterrain ,
DocAtwill,Datastoregwt,Linebalance,ecutplan);
area.setVisible(true);
popup.add(area);
popup.setPopupPosition(left+20, top+30);
popup.show();
  }
};
  studentTable.addColumn(feesColumn, header , new
TextHeader(footer));

  private class FeesColumn extends ColumnStudent, String
   {
   public FeesColumn()
   {
super(new EditTextCellforNumber());
   }
  @Override
  public String getValue(Student object)
  {
// TODO Auto-generated method stub
  }
}

S.Abraham
www.DataStoreGwt.com

On Aug 18, 1:29 am, nacho vela.igna...@gmail.com wrote:
 I need to put some kind of Button in a CellTable column.

 I created a class that extends AbstractCell:

 public class AnchorCell extends AbstractCellAnchor {

     @Override
     public void onBrowserEvent(com.google.gwt.cell.client.Cell.Context
 context,
             Element parent, Anchor value, NativeEvent event,
             ValueUpdaterAnchor valueUpdater) {

         Window.alert(hello);

     }

     @Override
     public void render(com.google.gwt.cell.client.Cell.Context context,
 Anchor h, SafeHtmlBuilder sb) {
         sb.append(SafeHtmlUtils.fromTrustedString(h.toString()));
     }

 }

 And then, when I am working with my CellTable, I create a column in this
 way:

 ColumnCompanyModel, Anchor actionsColumn = new ColumnCompanyModel,
 Anchor(new AnchorCell()) {

             @Override
             public Anchor getValue(CompanyModel company) {
                 Anchor h = new ActionsButton(company.getCompanyId(),
 Acciones  + company.getCompanyId());
                 return h;
             }

         };

 But I can't get the browser events.. How can I perform some action when my
 widget is clicked?

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