a Way to differentiate between User and Code Events

2011-05-26 Thread SVR
Is there a Way to differentiate between User and Code Events? I want to do
certain actions only when the user blurs out of a field but not when the
code does (the blur event is generated when the code sets focus on a
different field).
Has anybody done anything like this?
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: MouseMove Events for CellTable / FlexTable

2011-05-12 Thread SVR
I actually ended up using addCellPreviewHandler of the celltable to add
a CellPreviewEvent.Handler for the table.
thanks

On Thu, May 12, 2011 at 11:21 AM, Boris Lenzinger  wrote:

> Hi,
>
> I had found something like about this on the internet. The following code
> is some hint on how to do this.
>
> Boris
>
> class Table extends FlexTable {
>   private String headerStyle = "nostyle";
>
>   public Table(TableDataSource source, String stylePrefix) {
>   super();
>   this.setCellPadding(1);
>   this.setCellSpacing(0);
>   this.setWidth("100%");
>   this.setSource( source );
>
>   sinkEvents(Event.ONMOUSEOVER |
>   Event.ONMOUSEOUT);
>   }
>
>
>   //
> ==
>   public void onBrowserEvent(Event event) {
>   Element td = getEventTargetCell(event);
>   if (td == null) return;
>   Element tr = DOM.getParent(td);
>   switch (DOM.eventGetType(event)) {
>   case Event.ONMOUSEOVER: {
>   DOM.setStyleAttribute(tr, "backgroundColor",
> "#ffce00");
>   onRowRollover(tr);
>   break;
>   }
>   case Event.ONMOUSEOUT: {
>   DOM.setStyleAttribute(tr,
> "backgroundColor","#ff");
>   break;
>
>   }
>   }
>
>   }
> }
>
> 2011/5/12 matttai 
>
>> Maybe attach the handler to the table and get the cell source when the
>> event is triggered.
>>
>> Get the row index from the returned cell, remove all highlight style
>> from the table and add a highlight style to the row.
>>
>> Not sure how efficient this would be though given the event would need
>> to be handled every time the cursor moves a pixel :)
>>
>> Would be interested to hear other ideas. Perhaps experimenting with
>> mouseOver will yield better results though I am not whether mouseOver
>> events continuously fire if the cursor is left in the handling area. I
>> don't think they do but thats just a guess :P
>>
>> Cheers,
>>
>> Matt
>>
>> On May 7, 4:41 am, SVR  wrote:
>> > Has anybody tried implementing MouseMove to highlight rows of the table?
>> If
>> > so, can you please share your 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.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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: Dropdowns closing unexpectedly in IE

2011-05-11 Thread SVR
Can somebody please tell me how to go about finding whats happening here?

On Tue, May 10, 2011 at 12:16 PM, SVR  wrote:

> I have Focus, ValueChange and Change Handlers on some dropdowns. It appears
> like while the user is still working/changing the value of a ListBox, the
> dropdown closes unexpectedly. This happens only in IE (using 8).
> Has anybody experienced this and if so is there a solution / workaround?
> 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.



Dropdowns closing unexpectedly in IE

2011-05-10 Thread SVR
I have Focus, ValueChange and Change Handlers on some dropdowns. It appears
like while the user is still working/changing the value of a ListBox, the
dropdown closes unexpectedly. This happens only in IE (using 8).
Has anybody experienced this and if so is there a solution / workaround?
thanks

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



Re: GWT TextBox.getCursorPos() Issue in IE

2011-05-10 Thread SVR
I see the same problem too and only in IE. Would be great to hear a
workaround / soln.
thanks

On Tue, May 10, 2011 at 7:02 AM, Raphael  wrote:

> Hi,
>
> I have a Problem while trying to get the Cursor position of an GWT
> TextBox in IE.
> It everytime returns 0. Do someone knows a workaround for this?
> In Firefox/Chrome/Safari it works fine.
>
> Here is the Code snippet:
>
> //global declaration
> @UiField TextBox number;
>
> //use of the number variable in a method
> int pos = this.number.getCursorPos();
>
> Raphael
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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.



MouseMove Events for CellTable / FlexTable

2011-05-06 Thread SVR
Has anybody tried implementing MouseMove to highlight rows of the table? If
so, can you please share your 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.



Set Focus to a New Window opened by Window.open

2011-05-06 Thread SVR
How to set focus to a new Window opened by Window.open?
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: Redirect log to Eclipse console ?

2011-05-05 Thread SVR
Look for Remote Logging here:

http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Remote_Logging


http://code.google.com/p/gwt-log/wiki/GettingStarted

On Thu, May 5, 2011 at 12:13 PM, Celinio  wrote:

> Hi,
> how do i redirect my logs to the Eclipse console ?
> I can display the logs in the DevMode console (when i add &logLevel=SEVERE
> to the URL) but not in the Eclipse console.
> Here is my XML module configuration :
>
> 
> 
> 
> 
> 
> 
>  />
> 
>  />
>
> And in my Java entrypoint class, i import the java.util classes :
> import java.util.logging.Level;
> import java.util.logging.Logger;
>
> And i create a Logger :
> private static  Logger logger = Logger.getLogger("GwtApplication");
>
> and the call is :
> logger.log(Level.ALL, "Here we are");
>
>
> What do i need to do to display the logs in the Eclipse console ?
> Am i missing or disabling a parameter ?
> Thanks for helping.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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: PopupPanel greyed by setGlassEnabled

2011-04-26 Thread SVR
You could try setting your own style (a different background etc) with:
http://code.google.com/googleapps/appsscript/class_decoratedpopuppanel.html#setGlassStyleName

On Tue, Apr 26, 2011 at 4:05 PM, Micha Roon  wrote:

> I have a LoginView which is displayed in a PopupPanel on which I set
> setGlassEnabled(true)
>
> The issue is, that the content of the panel itself are grayed out too.
> Everything works, it is just gray.
>
> I would be thankful to know what I am doing wrong.
>
> There are two files involved: LoginView.ui.xml and LoginView.java
>
> this is LoginView.ui.xml:
> SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent";
>>
>  xmlns:g='urn:import:com.google.gwt.user.client.ui'>
>   
> 
>
>   
>  Tenant
>   
>   
>   ui:field="tenant"/>
>   
>
>
>   
>  User Name
>   
>   
>  
>   
>
>
>   
>  Password
>   
>   
>   ui:field="password"/>
>   
>
> 
> Login
>   
> 
>
> and this is the LoginView.java
>
>
> package ch.sertal.vision.client.view;
>
> import ch.sertal.vision.client.i18n.LoginConstants;
> import ch.sertal.vision.client.model.ClientTenant;
> import ch.sertal.vision.client.view.interfaces.ILoginView;
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.event.dom.client.*;
> import com.google.gwt.uibinder.client.UiBinder;
> import com.google.gwt.uibinder.client.UiField;
> import com.google.gwt.user.client.ui.*;
> import com.google.inject.Inject;
> import com.google.inject.Singleton;
>
> import java.util.ArrayList;
> import java.util.List;
> import java.util.TreeSet;
>
> /**
>  * Created by IntelliJ IDEA.
>  * User: micharoon
>  * Date: 3/20/11
>  * Time: 5:50 PM
>  * To change this template use File | Settings | File Templates.
>  */
> @Singleton
> public class LoginView extends Composite implements ILoginView {
>   private static LoginConstants c = GWT.create(LoginConstants.class);
>
>   @UiField
>   TextBox userName;
>   @UiField
>   TextBox password;
>   @UiField
>   ListBox tenant;
>   @UiField
>   Button submit;
>   @UiField
>   Label lblPassword;
>   @UiField
>   Label lblUserName;
>   @UiField
>   Label lblTenant;
>
>   DecoratedPopupPanel popupPanel;
>
>   private int selectedTenant = -1;
>
>   private ArrayList tenants;
>
>   private Presenter presenter;
>
>   interface LoginViewUiBinder extends UiBinder {}
>
>   private static final LoginViewUiBinder binder =
> GWT.create( LoginViewUiBinder.class );
>
>   @Inject
>   public LoginView() {
>  initWidget(binder.createAndBindUi(this));
>  tenant.addChangeHandler(new ChangeHandler() {
> @Override
> public void onChange(ChangeEvent changeEvent) {
>selectedTenant = tenant.getSelectedIndex();
> }
>  });
>  popupPanel = new DecoratedPopupPanel(false, true);
>  popupPanel.add(this);
>   }
>
>   public TextBox getUserName() {
>  return userName;
>   }
>
>   public TextBox getPassword() {
>  return password;
>   }
>
>   public String getTenant() {
>  return tenants.get(tenant.getSelectedIndex()).getTechName();
>   }
>
>   public void setTenant(String tenantName){
>  for(ClientTenant tenant : tenants) {
> if(tenant.getTechName().equals(tenantName)){
>this.tenant.setSelectedIndex(tenants.indexOf(tenant));
>selectedTenant = tenants.indexOf(tenant);
>this.tenant.setEnabled(false);
>return;
> }
>  }
>  this.tenant.setEnabled(true);
>   }
>
>   public void setTenants(ArrayList tenants) {
>  this.tenants = tenants;
>
>  if(tenant != null)
> for(int i=tenant.getItemCount()-1; i >= 0; i--){
>tenant.removeItem(i);
> }
>
>  for(ClientTenant t : tenants) {
> tenant.addItem(t.getName(c.locale()));
>  }
>
>  if(selectedTenant > -1){
> tenant.setSelectedIndex(selectedTenant);
>  }
>   }
>
>   public Button getSubmit() {
>  return submit;
>   }
>
>   @Override
>   public void setPresenter(Presenter presenter) {
>  this.presenter = presenter;
>   }
>
>   @Override
>   public void show() {
>  lblPassword.setText(c.password());
>  lblTenant.setText(c.tenant());
>  lblUserName.setText(c.userName());
>
>  getSubmit().addClickHandler(new ClickHandler() {
> @Override
> public void onClick(ClickEvent clickEvent) {
>presenter.doLogin();
> }
>  });
>
>  KeyPressHandler loginOnReturn = new KeyPressHandler() {
> @Override
> public void onKeyPress(KeyPressEvent event) {
>if(event.getCharCode() == 10 | event.getCharCode() == 13){
>   presenter.doLogin();
>}
> }
>  

Re: CellTable sorting : sorting several columns ?

2011-04-25 Thread SVR
I didnt go through your code :-), but you can create a new class that
implements
ColumnSortEvent.Handler and add it using addColumnSortHandler().
You can pass the columns to the class constructor and onColumnSort
you can check the column being sorted like so:
if (event.getColumn().equals(column1)) {
}
else if (event.getColumn().equals(column2)) {
}
and so on.
Hope this helps.


On Fri, Apr 22, 2011 at 1:36 PM, Celinio  wrote:

> Hi,
> I am using GWT 2.2 and the new CellTable sorting features, as described
> here :
>
> http://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideUiCellTable.html
>
> There is a strange error (Umbrella exception, nothing else) when I use the
> columnSortHandler.setComparator(...) method.
> I commented it out.
>
> If i use the addColumnSortHandler(new ColumnSortEvent.Handler() {  ...}
> method, it works.
>
> However on one column only. I want to be able to sort the table, on
> whichever column i click on.
>
> So i'm stuck :
> either i figure out what's wrong with the setComparator(..) method
> or i use the addColumnSortHandler(...) and in that case i need to figure
> out how to retrieve the name of the column
> that is currently sorted.
> Does anyone know what could be wrong ?
> Thanks
>
> Here is the code :
> package
> com.francetelecom.voltage.gestion.presentation.client.mvp.view.impl;
>
> import java.util.ArrayList;
> import java.util.Collections;
> import java.util.Comparator;
> import java.util.List;
>
> import com.ft.v.g.presentation.client.GwtApplication;
> import com.ft.v.g.presentation.client.mvp.presenter.ListPresenter;
> import com.ft.v.g.presentation.client.mvp.view.ListView;
> import com.ft.v.g.presentation.client.ui.RecherchePanel;
> import com.ft.v.g.presentation.client.ui.SimpleHasFeedback;
> import com.ft.v.model.DemandeBean;
> import com.google.gwt.cell.client.ClickableTextCell;
> import com.google.gwt.cell.client.FieldUpdater;
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.safehtml.shared.SafeHtml;
> import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
> import com.google.gwt.text.shared.AbstractSafeHtmlRenderer;
> import com.google.gwt.text.shared.SafeHtmlRenderer;
> import com.google.gwt.user.cellview.client.CellTable;
> import com.google.gwt.user.cellview.client.Column;
> import com.google.gwt.user.cellview.client.ColumnSortEvent;
> import com.google.gwt.user.cellview.client.SimplePager;
> import com.google.gwt.user.cellview.client.TextColumn;
> import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler;
> import com.google.gwt.user.cellview.client.SimplePager.TextLocation;
> import com.google.gwt.user.client.ui.Composite;
> import com.google.gwt.user.client.ui.FlowPanel;
> import com.google.gwt.user.client.ui.HTML;
> import com.google.gwt.user.client.ui.Widget;
> import com.google.gwt.view.client.Range;
> import com.google.gwt.view.client.RangeChangeEvent;
> import com.google.gwt.view.client.RangeChangeEvent.Handler;
>
>
> public class DemandesListViewImpl extends Composite implements
> ListView {
>
>
> private RecherchePanel rp = new RecherchePanel();
>
> private final CellTable demandeTable;
> private final SimplePager pager;
> private final static int PAGE_SIZE = 7;
> private List demandes;
> private SimpleHasFeedback feedback;
>
> private ListPresenter presenter;
>
> public DemandesListViewImpl() {
>
>
>
> feedback = new SimpleHasFeedback();
> // Create a CellTable.
> demandeTable = new CellTable();
> demandeTable.getElement().setId("marketlist");
> demandeTable.setPageSize(PAGE_SIZE);
> demandeTable.setRowCount(0, true);
>
> demandeTable.addRangeChangeHandler(new Handler() {
>
> public void onRangeChange(RangeChangeEvent event) {
>
> Range range = demandeTable.getVisibleRange();
> int start = range.getStart();
> int length = range.getLength();
> List toSet = new
> ArrayList(length);
> for (int i = start; i < start + length && i <
> demandes.size(); i++)
> toSet.add(demandes.get(i));
> demandeTable.setRowData(start, toSet);
>
> }
> });
>
> // Create a Pager to control the table.
> SimplePager.Resources pagerResources = GWT
> .create(SimplePager.Resources.class);
> pager = new SimplePager(TextLocation.CENTER, pagerResources, false,
> 0,
> true);
> pager.setDisplay(demandeTable);
>
> // Create id column.
> TextColumn idColumn = new TextColumn() {
>
> @Override
> public String getValue(DemandeBean demande) {
> //return demande.getId().toString();
> return String.valueOf(demande.getIdDemande());
> }
>
> };
>
> // renderer for nameColumn
> SafeHtmlRenderer nameColumnRenderer = new
> AbstractSafeHtmlRenderer() {
>
>  

Re: CellTable Sort in 2.2

2011-04-21 Thread SVR
You are right, but since I did push 2 columns, the arrow to sort was
appearing in only the Column that was pushed last.
I was thinking (assuming! after using the Flex widgets) that this was a sort
within a sort. But I understand now that the table can be sorted atmost on
One Column at a time.
thanks

On Thu, Apr 21, 2011 at 7:22 AM, jgranie  wrote:

> Hi,
> Can't you give a predefined order like this :
>table.getColumnSortList().push(nameColumn);
>
> This cause the arrow to appear. I think that arrow isn't displayed
> since no sort order have been selected.
>
> On 20 avr, 15:55, SVR  wrote:
> > Yes I do provide one, but what I notice is that once I click on any of
> the
> > rows, the arrows show up. But until then there is no clue that sorting
> has
> > been enabled.
> >
> > On Wed, Apr 20, 2011 at 9:36 AM, Soon Fatt Hoo  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Are you using ListDataProvider or AsyncDataProvider? Either way, you
> > > will have to add ListHandler or AsyncHandler to your cellTable.
> >
> > > Take a look at
> > >http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html.
> >
> > > On Apr 19, 12:47 pm, SVR  wrote:
> > > > I am using
> > > > payerColumn.setSortable(true);
> >
> > > > where payerColumn is of type:
> > > > private class PayerNameColumn extends Column String>
> >
> > > > the document just tells to use the api, but I dont get the up/down
> arrow
> > > to
> > > > do the sorting? What else needs to be done?
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Nobody is using Struts1 with GWT successfully?

2011-04-21 Thread SVR
It depends on what you want to do. We are using GWT with Struts2. Your GWT
UI can be part/whole of a page (this could become the host page of your GWT
app) generated by a Struts action and so on.


On Thu, Apr 21, 2011 at 9:23 AM, Jak  wrote:

> I've been search the entire internet about samples or tutorial on how
> to build GWT with Struts. It seems nobody has done it successfully. So
> the two frameworks combined is not a common practice. Can somebody
> help enlighten this topic? The only thing I've found is this plugin:
> http://code.google.com/p/struts2gwtplugin/
> The example/demo is a bit outdated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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: Navigation between different html pages

2011-04-21 Thread SVR
you mean your hard-coded url isnt working?
If it cant find the url,  try accessing the page using  :

*getHostPageBaseURL*(), according to GWT:

  Gets the URL prefix of the hosting page, useful for prepending to
relative paths of resources which may be relative to the host page.


http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/core/client/GWT.html

On Thu, Apr 21, 2011 at 3:58 AM, Carlos  wrote:

> am using Window.open(.) specifying the url of the new html page
> which contains a link to a new module but it's not working.
> it can't find the specified url
>
> On Apr 20, 6:18 pm, SVR  wrote:
> > On Success of the RPC, you could open a new Window with Window.open.
> > depending on what the other part of your application is, for eg., a
> struts
> > action could be reached like so:
> >
> > Window.open("../gwt/sample_load.action);
> >
> >
> >
> > On Wed, Apr 20, 2011 at 8:51 AM, Carlos  wrote:
> > > hello,
> >
> > > sorry being so annoying :)
> >
> > > i have another problem concerning navigation from the html host page
> > > to another html page.
> > > first i created a new module with a new entry point.
> > > then i created a new html page and added the script tag which point to
> > > the new module
> >
> > > what i want is the following:
> > > i want after success of an rpc with the server to open a new window or
> > > tab(would be better) which is the html page.
> >
> > > i don't realy konw how if certain configurations concernig previous
> > > modules should be done.
> > > So any suggestions would be great and so helpful for me.
> >
> > > thanks.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted
> text -
> >
> > - Show quoted text -
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: App Layout

2011-04-20 Thread SVR
You should first look at the samples that come with the toolkit:
http://code.google.com/webtoolkit/examples/

On Wed, Apr 20, 2011 at 12:55 PM, levan  wrote:

> Hi, I'm a GWT starter,
>
> I need to create an app structure with a main menu on the left side
> and a main area where i can execute the program selected by the user
> from the main menu, it's just that, I have no idea on how to
> accomplish this.
>
> ¿Is there any tutorial or any example you guys can provide me in order
> to get this done?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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: Navigation between different html pages

2011-04-20 Thread SVR
On Success of the RPC, you could open a new Window with Window.open.
depending on what the other part of your application is, for eg., a struts
action could be reached like so:

Window.open("../gwt/sample_load.action);

On Wed, Apr 20, 2011 at 8:51 AM, Carlos  wrote:

> hello,
>
> sorry being so annoying :)
>
> i have another problem concerning navigation from the html host page
> to another html page.
> first i created a new module with a new entry point.
> then i created a new html page and added the script tag which point to
> the new module
>
> what i want is the following:
> i want after success of an rpc with the server to open a new window or
> tab(would be better) which is the html page.
>
> i don't realy konw how if certain configurations concernig previous
> modules should be done.
> So any suggestions would be great and so helpful for me.
>
> thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: UmbrellaException

2011-04-20 Thread SVR
During the debugging process, you could set the following properties in your
config file, which will spit the stack trace to your sever console.
I found this very helpful, however the emulated stackmode should be disabled
otherwise (for performance and other reasons).
Check out Ryan's talk about emulated stack mode.

   

   
  
  




On Wed, Apr 20, 2011 at 11:40 AM, tjmcc18  wrote:

> When an unexpected error occurs on the client side, such as a
> NullPointerException, the result is that an UmbrellaException is
> thrown and that generally ends up being interpreted as a javascript
> error by the browser.  Those javascript errors are usually less than
> helpful in determining what the actual problem was.  Does anyone have
> any suggestions on how to handle the case of unexpected errors?
>
> Can you put a try catch block at the top level of you app as kind of a
> catch all?  If so, what should be done with these exceptions?  Should
> they be sent back to the server to be logged somehow?  If not, how can
> you try to provide some useful information to help with the debugging
> process?
>
> -TJ
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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: CellTable Sort in 2.2

2011-04-20 Thread SVR
Yes I do provide one, but what I notice is that once I click on any of the
rows, the arrows show up. But until then there is no clue that sorting has
been enabled.

On Wed, Apr 20, 2011 at 9:36 AM, Soon Fatt Hoo  wrote:

> Are you using ListDataProvider or AsyncDataProvider? Either way, you
> will have to add ListHandler or AsyncHandler to your cellTable.
>
> Take a look at
> http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellTable.html.
>
> On Apr 19, 12:47 pm, SVR  wrote:
> > I am using
> > payerColumn.setSortable(true);
> >
> > where payerColumn is of type:
> > private class PayerNameColumn extends Column
> >
> > the document just tells to use the api, but I dont get the up/down arrow
> to
> > do the sorting? What else needs to be done?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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.



CellTable Sort in 2.2

2011-04-19 Thread SVR
I am using
payerColumn.setSortable(true);

where payerColumn is of type:
private class PayerNameColumn extends Column

the document just tells to use the api, but I dont get the up/down arrow to
do the sorting? What else needs to be done?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 Date Serialization problem

2011-03-31 Thread SVR
Simplifying my use case:

I have a Text box from which I read the value from:

Sender is a shared datastore between the client and the server and is of the
form:
Sender{
   java.util.date dateOfBirth;
 }

GWT Client Side:

TextBox birthDate;
String medDateFormat =
locale.getDateTimeFormatInfo().dateFormatMedium();
String dateString = birthDate.getText();
Date  date = DateTimeFormat.getFormat(medDateFormat).parse(dateString);
sender.setDateOfBirth(date);


This date is being passed to an RPC and stored in the DB.

RPC save:
java.sql.Date birthDate = null;
if (sender.getDateOfBirth() != null) {
SimpleDateFormat sqlformat = new SimpleDateFormat( "-MM-dd"
);
birthDate =
java.sql.Date.valueOf(sqlformat.format(sender.getDateOfBirth()));
}
and birthDate is stored in the DB.

So far its fine.

When I read back the data:
RPC read method:
java.sql.date date1
 sender.setDateOfBirth(date1.getTime());

GWT Client:
if (sender.getDateOfBirth() != null)

this.birthDate.setText(DateTimeFormat.getFormat(medDateFormat).format(
sender.getDateOfBirth()));
else
birthDate.setText("");


Now I see the value on the textBox has changed, is off by a day!



On Thu, Mar 31, 2011 at 3:27 PM, Juan Pablo Gardella <
gardellajuanpa...@gmail.com> wrote:

> You sent the date to client via a asynchCall. So you receive onSuccesfull
> or onFailure. You are update in onSuccesful the date of the simple text
> with which value? Can you share the relevant code?
>
> Are you use DateBox?
>
> Juan
>
> 2011/3/31 SVR 
>
>> Serialization from Client to Server is OK, but Server to Client fails.
>> I enter say Jan 31, 1979 (a simple Text with DatePicker) and it get saved
>> to the Database as such, but when I get back the value from the server, I
>> can see the correct value in the server (RPC Impl) as Jan 31, 1979, but when
>> it comes back to the client after the RPC call, the value is Jan 30, 1979.
>>
>>
>>
>> On Thu, Mar 31, 2011 at 3:08 PM, Juan Pablo Gardella <
>> gardellajuanpa...@gmail.com> wrote:
>>
>>> How are you do "when I set the Date field on the client"?
>>>
>>> The serialization to server->client is Ok, but to client->server fail?
>>>
>>> Juan
>>>
>>>
>>>  2011/3/31 SVR 
>>>
>>>> Has anybody noticed a problem with dates and RPC. Basically I receive a
>>>> date from the backend and able to see the correct date in the RPC Impl in
>>>> the debugger but when I set the Date field on the client (after the the
>>>> results are serialized), I see that the date is offset by a day.
>>>> I havnt tested extensively for what dates cause this problem, but I do
>>>> see this randomly. Yes the Client and the Server are in different time
>>>> zones, but I am not setting the time component (using sql.date on the 
>>>> server
>>>> side, which essentially has no time component).
>>>>
>>>> Anybody has encountered this before? I can work aound this (by passing
>>>> the DD, MM,  components separately), but want to understand the problem
>>>> better.
>>>> Thanks
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Google Web Toolkit" group.
>>>> To post to this group, send email to
>>>> google-web-toolkit@googlegroups.com.
>>>> To unsubscribe from this group, send email to
>>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/gro

Re: GWT Date Serialization problem

2011-03-31 Thread SVR
Serialization from Client to Server is OK, but Server to Client fails.
I enter say Jan 31, 1979 (a simple Text with DatePicker) and it get saved to
the Database as such, but when I get back the value from the server, I can
see the correct value in the server (RPC Impl) as Jan 31, 1979, but when it
comes back to the client after the RPC call, the value is Jan 30, 1979.


On Thu, Mar 31, 2011 at 3:08 PM, Juan Pablo Gardella <
gardellajuanpa...@gmail.com> wrote:

> How are you do "when I set the Date field on the client"?
>
> The serialization to server->client is Ok, but to client->server fail?
>
> Juan
>
>
>  2011/3/31 SVR 
>
>> Has anybody noticed a problem with dates and RPC. Basically I receive a
>> date from the backend and able to see the correct date in the RPC Impl in
>> the debugger but when I set the Date field on the client (after the the
>> results are serialized), I see that the date is offset by a day.
>> I havnt tested extensively for what dates cause this problem, but I do see
>> this randomly. Yes the Client and the Server are in different time zones,
>> but I am not setting the time component (using sql.date on the server side,
>> which essentially has no time component).
>>
>> Anybody has encountered this before? I can work aound this (by passing the
>> DD, MM,  components separately), but want to understand the problem
>> better.
>> Thanks
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



GWT Date Serialization problem

2011-03-31 Thread SVR
Has anybody noticed a problem with dates and RPC. Basically I receive a date
from the backend and able to see the correct date in the RPC Impl in the
debugger but when I set the Date field on the client (after the the results
are serialized), I see that the date is offset by a day.
I havnt tested extensively for what dates cause this problem, but I do see
this randomly. Yes the Client and the Server are in different time zones,
but I am not setting the time component (using sql.date on the server side,
which essentially has no time component).

Anybody has encountered this before? I can work aound this (by passing the
DD, MM,  components separately), but want to understand the problem
better.
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.



Hint Text

2011-03-31 Thread SVR
Ho to display hint text (like a date format, currency symbol etc) to a text
field. Is there any built in feature to do this in GWT?
I am not using Smart GWT or anything else.
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.



frequent exception

2011-03-25 Thread SVR
I frequently see this in my server logs when I run the GWT application,
though I am not able to say which call throws this exception.
Can anybody tell me how to track this down?

Exception while dispatching incoming RPC call: java.io.IOException:
SRVE0080E: Invalid content length

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.



Logging client exceptions to a file

2011-03-23 Thread SVR
Is this possible, I know GWT is client side, but is this possible at all?
The debug/log window (client side) is pretty lame and doesnt even allow
copy/paste. I know there is an exception thrown, but can hardly scan the
window without search facility or copy/paste to notepad and search?
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: GWT module not loading

2011-02-28 Thread SVR
Check your module gwt.xml file, or copy it here

On Sat, Feb 26, 2011 at 3:52 PM, Krishna  wrote:

> Hi All,
>
> I am new to GWT and using the GWT eclipse plugin to run my GWT module.
> I am getting the following error while running the module using Run
> As> Webapplication (on an external server) option in eclipse.
>
> I am using Eclipse 3.4 with GWT2.2.0.
>
> Loading inherited module 'com.google.gwt.user.User'
> Loading inherited module 'com.google.gwt.i18n.I18N'
>[ERROR] Element 'property-provider' beginning on line 75
> contains unexpected attribute 'generator'
>[ERROR] Failure while parsing XML
> com.google.gwt.core.ext.UnableToCompleteException: (see previous log
> entries)
>at
>
> com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedAttribute(DefaultSchema.java:
> 72)
>at
> com.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java:
> 80)
>at
> com.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java:
> 80)
>at com.google.gwt.dev.util.xml.ReflectiveParser
> $Impl.startElement(ReflectiveParser.java:228)
>at
>
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
> 501)
>
>
> Could somebody explain whats wrong with it?
>
> Thank you,
> Krishna.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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: user agent property

2011-02-17 Thread SVR
thanks. I was wondering how it works by default.

On Thu, Feb 17, 2011 at 3:10 PM, Philippe Beaudoin <
philippe.beaud...@gmail.com> wrote:

> Only the last line is taken into account here. If you want to support more
> than one browser, specify a comma-separated list in the "value" property,
> for example:
>   
>
> The default supported values are defined in UserAgent.gwt.xml to:
>values="ie6,ie8,gecko,gecko1_8,safari,opera"/>
>
> I guess the reason it works when you remove it is because GWT defaults to
> "value = values".
>
> Cheers,
>
>Philippe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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.



user agent property

2011-02-17 Thread SVR
What does it mean to do this in your module defn file:

   
   
   

I did this and my module was crashing in either of the browsers,  depending
on which was declared later and it gave a javascript exception: action not
defined for the object when a Button element was being created!
When I remove all of the above, the code works fine in both IE and FF.

I was going by this property after reading many blogs to speed up
compilation!!

Can somebody throw light on how this actually works??
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: IE problems anybody?

2011-02-16 Thread SVR
Has anybody come across this kind of error? If so can you please share what
the problem was?
thanks
V

On Tue, Feb 15, 2011 at 12:35 PM, SVR  wrote:

> Hi
> On Debugging I found the problem occurs in
>
> initWidget(binder.createAndBindUi(this));
>
> (I am using uibinder). The code works in firefox, however in IE I get the
> following exception:
>
> Failed to create an instance of 'com.google.gwt.user.client.ui.Button' via
> deferred binding -- exception: JavaScriptException
>
> java.lang.RuntimeException: Deferred binding failed for
> 'com.google.gwt.user.client.ui.Button' (did you forget to inherit a required
> module?)
>
> Here are my gwt.xml and ui.xml files:
>
> 
>   
>   
>   
>   
>   
>   
>   
>   
>
> 
>
>xmlns:ui='urn:ui:com.google.gwt.uibinder'
>   xmlns:g='urn:import:com.google.gwt.user.client.ui'
>   xmlns:dp='urn:import:com.google.gwt.user.datepicker.client'
>   ui:generateFormat='com.google.gwt.i18n.rebind.format.PropertiesFormat'
>   ui:generateKeys="com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator"
>   ui:generateLocales="default">
> ..
>  styleName="{style.button}" tabIndex="-1">Date
> ......
> ..
> 
>
> Any idea on how to resolve this IE problem?
>
> Thanks
>
>
>
>
>
> On Mon, Feb 14, 2011 at 5:39 PM, Sebastian Rothbucher <
> sebastian.rothbuc...@clarities.de> wrote:
>
>> Hi SVR,
>>
>> that's indeed a challenge - if nothing else does help any more, try
>> pinning down the problem by inserting debug statements (e.g. alerts)
>> closely (and even more closely as you move along) around the spot
>> where you fail. Maybe it helps to look into the source but most
>> probably you won't see so much - probably you recognize the problem...
>>
>> Hope this helps a little - good luck!
>>
>>   Sebastian Rothbucher
>>
>> On 14 Feb., 19:34, SVR  wrote:
>> > Hi
>> > I have my GWT module working in FF, I am trying to launch the same in IE
>> and
>> > get the following error:
>> > In general, I would like to know how to approach/debug problems of this
>> > nature in IE?
>> > Thanks
>> >
>> > Webpage error details
>> >
>> > User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
>> Trident/4.0;
>> > GTB6.6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152;
>> .NET
>> > CLR 3.5.30729)
>> > Timestamp:
>> >
>> > Message: Object doesn't support this property or method
>> > Line: 714
>> > Char: 3
>> > Code: 0
>> > URI:
>> http://localhost:9080/DashboardWeb/gwt/51F5EB69C1BCD1B2A8D104D2BCD28C...
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email 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: IE problems

2011-02-15 Thread SVR
Hi
On Debugging I found the problem occurs in

initWidget(binder.createAndBindUi(this));

(I am using uibinder). The code works in firefox, however in IE I get the
following exception:

Failed to create an instance of 'com.google.gwt.user.client.ui.Button' via
deferred binding -- exception: JavaScriptException

java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.user.client.ui.Button' (did you forget to inherit a required
module?)

Here are my gwt.xml and ui.xml files:


  
  
  
  
  
  
  
  




..
Date
..
..


Any idea on how to resolve this IE problem?

Thanks




On Mon, Feb 14, 2011 at 5:39 PM, Sebastian Rothbucher <
sebastian.rothbuc...@clarities.de> wrote:

> Hi SVR,
>
> that's indeed a challenge - if nothing else does help any more, try
> pinning down the problem by inserting debug statements (e.g. alerts)
> closely (and even more closely as you move along) around the spot
> where you fail. Maybe it helps to look into the source but most
> probably you won't see so much - probably you recognize the problem...
>
> Hope this helps a little - good luck!
>
>   Sebastian Rothbucher
>
> On 14 Feb., 19:34, SVR  wrote:
> > Hi
> > I have my GWT module working in FF, I am trying to launch the same in IE
> and
> > get the following error:
> > In general, I would like to know how to approach/debug problems of this
> > nature in IE?
> > Thanks
> >
> > Webpage error details
> >
> > User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
> Trident/4.0;
> > GTB6.6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152;
> .NET
> > CLR 3.5.30729)
> > Timestamp:
> >
> > Message: Object doesn't support this property or method
> > Line: 714
> > Char: 3
> > Code: 0
> > URI:
> http://localhost:9080/DashboardWeb/gwt/51F5EB69C1BCD1B2A8D104D2BCD28C...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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.



Does GWTTestCase work in noserver mode?

2011-02-15 Thread SVR
Does GWTTestcase work while not using the embedded server, that is while
using the noserver option. If so, can somebody please share how to do this?
thanks
Vidhya

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



IE problems

2011-02-14 Thread SVR
Hi
I have my GWT module working in FF, I am trying to launch the same in IE and
get the following error:
In general, I would like to know how to approach/debug problems of this
nature in IE?
Thanks

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;
GTB6.6; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET
CLR 3.5.30729)
Timestamp:


Message: Object doesn't support this property or method
Line: 714
Char: 3
Code: 0
URI:
http://localhost:9080/DashboardWeb/gwt/51F5EB69C1BCD1B2A8D104D2BCD28C76.cache.html

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



Re: UIBinder Localization anyone?

2011-02-11 Thread SVR
Thanks again. That should work for now!

On Fri, Feb 11, 2011 at 3:13 PM, Jeff Larsen  wrote:

> out of the box, you have
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/i18n/client/ConstantsWithLookup.html
>
> Messages is a bit more difficult because messages can have N parameters
> where as constants have 1. You're going to need to pass keys back and forth
> from the BE to client along with parameters.
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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: UIBinder Localization anyone?

2011-02-11 Thread SVR
How do I dynamically invoke the message for a key (key not known in
advance). I have messages (or rather message keys) coming from the BE.
I want to look up the way you do in other frameworks: message(key).
How can I use messages to do this?
thanks

On Fri, Feb 11, 2011 at 2:35 PM, SVR  wrote:

> Sorry, I didn't realize it was case-sensitive!
> Once I changed it to "fr" in  content='locale=FR'>, it worked.
> Thanks a lot.
>
>
>
> On Fri, Feb 11, 2011 at 2:21 PM, Jeff Larsen  wrote:
>
>> have you tried adding locale=fr to your url params to make sure that it is
>> being picked up? This is how I've tested my i18n stuff.
>>
>> http://localhost:/Foo.html?locale=fr&cod
>>
>> If that doesn't work (and I don't expect it to) can you post your
>> ui:binder and java code?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email 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: UIBinder Localization anyone?

2011-02-11 Thread SVR
Sorry, I didn't realize it was case-sensitive!
Once I changed it to "fr" in ,
it worked.
Thanks a lot.


On Fri, Feb 11, 2011 at 2:21 PM, Jeff Larsen  wrote:

> have you tried adding locale=fr to your url params to make sure that it is
> being picked up? This is how I've tested my i18n stuff.
>
> http://localhost:/Foo.html?locale=fr&cod
>
> If that doesn't work (and I don't expect it to) can you post your ui:binder
> and java code?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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: UIBinder Localization anyone?

2011-02-11 Thread SVR
I followed this:
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinderI18n.html

I think I have followed all the instructions according to this link above.
I do use messages interface for showing say error messages. The
xyzMessages.properties and xyzMessages_fr.properties etc are in my project
structure. However even after the locale has been set successfully, these
messages say from the _fr properties file are not displayed!

Appreciate all the help.



On Fri, Feb 11, 2011 at 2:06 PM, Jeff Larsen  wrote:

> Have you created your constants/messages interface for your properties
> files? You shouldn't need to put your LocalizableResource.properties into a
> gwt specific namespace you should have it inside your project structure.
>
> I don't know if you've found this page, but here is some more info on how
> to setup your i18n with GWT.
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html
>
> 
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



UIBinder Localization anyone?

2011-02-11 Thread SVR
Hi
I am trying to localize the labels in the uibinder. I am passing the locale
value through meta tag like: 

and do find that it is correctly set by checking the value of:

 LocaleInfo.getCurrentLocale().getLocaleName()


However even though I have LocalizableResource_fr.properties along with
LocalizableResource.properties in com\google\gwt\i18n\client directory, I
see that the values are not being picked up.
Also my gwt.xml has

  
  

Any idea what is that I am doing wrong?

thanks in advance

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



Re: Testing GWT services

2011-02-01 Thread SVR
Selenium

On Tue, Feb 1, 2011 at 7:24 AM, Amol12  wrote:

> Hello Ezequiel,
>
> Junit will involve is much coding to which I am not too much familiar,
> is there any tool through which we can send request and get the
> desired response?
>
> Regards,
> Amol
>
> On Feb 1, 10:16 am, Ezequiel Palumbo  wrote:
> > Hi Amol,
> >
> > If you are talking about remote services implementations, it seems
> > that you need something like JUnit; didn't you try it yet?
> > Salud!
> >
> > Ezequiel.-
> >
> > On 31 ene, 05:36, Amol12  wrote:
> >
> > > Hello,
> >
> > > Can someone guide which tool should be used for testing GWT services?
> > > I dont have UI and testing the services directly. I need a tool
> > > through which I can invoke the services and get the response.
> >
> > > Regards,
> > > Amol
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email 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.



GWTTestCase

2011-01-31 Thread SVR
I am trying to write my first unit test to test a server side (RPC) method.
Say I have:

  public void testSubmitWord() throws Exception {
  final Hello module = new Hello();
  module.onModuleLoad();
  module.submitWord();
  Timer timer = new Timer() {
  public void run() {
  String control = "show now:";
  System.out.println(module.getLabelValue());
  System.out.println("In Run method..");
  assertFalse(control.equals(module.getLabelValue()));
 finishTest();
}
  };
  // Set a delay period significantly longer than the
  // event is expected to take.
  delayTestFinish(2000);

  // Schedule the event and return control to the test system.
  timer.schedule(100);
  }

The submitWord() method of Hello module changes the labelvalue (got from
getLabelValue()) to some value got from the server side. I am testing if the
default (value of "show now:") is no longer shown by the label.
Now this unit test fails, there is no timeout exception ( though the label
value is set properly by the appln).

Testcase: testSubmitWord took 21.261 sec
FAILED
Remote test failed at x.y.z.a / Mozilla/5.0 (Windows; U; Windows NT 5.1;
en-US; rv:1.9.0.19) Gecko/2010031422 Firefox/3.0.19
junit.framework.AssertionFailedError: Remote test failed at x.y.z.a /
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.19)
Gecko/2010031422 Firefox/3.0.19
at com.google.gwt.sample.hello.client.HelloTest$1.run(HelloTest.java:35)


Should I increase the delay? What is the problem?
Can anybody tell me please?
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.



PopupPanel

2011-01-28 Thread SVR
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/PopupPanel.html

Can somebody please tell me from the above doc, which sample project does
the PopupPanel image correspond to? (I mean the sample code for the example
"Richard Feynman" popup).
I want the exact same functionality, but sizing and placement of popup has
been a big issue and I would like to look at this sample code.
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.



GWT extension libraries

2011-01-18 Thread SVR
Hi
I would like to know (and probably many others) if your GWT project is using
an extension library like EXT GWT or Smart GWT. If so, which one and is it
for anything more than better widgets?
I am trying to evaluate the necessity for one in my GWT project.
Appreciate your inputs.
Thanks

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



Re: GWT Validation Framework

2011-01-17 Thread SVR
This is not part of any released code? Is it planned to be part of ver x.y?
Is http://code.google.com/p/gwt-validation/ a different project?

thanks

On Mon, Jan 17, 2011 at 2:47 PM, Nick Chalko  wrote:

>
>
> On Mon, Jan 17, 2011 at 7:43 AM, SVR  wrote:
>
>> Has anybody used the  GWT Validation Framework based on the 
>> JSR-303<http://code.google.com/p/gwt-validation/>
>>
>> Can you please provide your thoughts on its usefulness and can you please
>> point to some useful links on its usage with examples.
>> thanks
>>
>> --
>
>
> JSR-303 of course already works on the server side, DynatableRf should show
> that.   I am working on getting the client side working.
> See http://code.google.com/p/google-web-toolkit/wiki/BeanValidation.
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: GWT Validation Framework

2011-01-17 Thread SVR
I dont see it using the gwt validation framework.
do u mean a later version / beta?

On Mon, Jan 17, 2011 at 1:57 PM, Miroslav Genov  wrote:

> You can take a look into DynatableRf example that comes with the SDK.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



GWT Validation Framework

2011-01-17 Thread SVR
Has anybody used the  GWT Validation Framework based on the
JSR-303

Can you please provide your thoughts on its usefulness and can you please
point to some useful links on its usage with examples.
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: Server Log

2011-01-13 Thread SVR
true, I don't see the ability to configure server side log anywhere.
I would try this:
Enable gwt.logging.firebugHandler and see atleast the umbrella exception...

On Thu, Jan 13, 2011 at 6:32 AM, pete  wrote:

> Yes, but what about RPC-exceptions, that actually don't arrive
> anywhere? (I think that is the case, where I'm stuck, but I have no
> access to the deployed production webapp, and I'm told, that the logs
> show nothing...)
> I mean, if I actually arrive in the correct function on the server,
> yes, then I could just do the logging as I'm used to.
> I just think, I changed the return-value of an existing function and
> somehow there is a problem somewhere, that I don't arrive in that
> function anymore, or that the answer doesn't arrive back. If I look at
> the firebug console, I see that my post-request fails, but I
> surrounded the whole method, which is in question with try{..}catch()
> {log} and still nothing... Which makes me think, I never arrive in
> that method, and something goes wrong earlier... Or later, I don't
> know...
> But I would need a stacktrace to be logged like "method bla doesn't
> support correct return type - TargetInvocationExcaption: Stacktrace"
> in such a case. But I don't know how to log those things.
> In development mode, yes, then I see any stacktrace like this. But
> unfortunately there it works and I need to know what goes wrong with
> the deployed version, and then there is no log at all (even though it
> says "check server log")
> Is there any way to configure log4j to log those exceptions?
>
>
> On Jan 12, 11:23 pm, SVR  wrote:
> > You could catch and throw the same way you would do in any java appln.
> >
> > On Wed, Jan 12, 2011 at 5:16 PM, pete  wrote:
> > > Hallo,
> >
> > > is there a way to show stacktraces of UnexpectedExceptions after the
> > > webapp is deployed? I have logging enabled in general, if I manually
> > > use my logger, like LOG.debug("blah"), I can see my logs...
> > > If RPC fails, I just get an unexpected exception saying "the call
> > > failed on the server, see server logs for details", however, there is
> > > no stacktrace or exception logging anywhere, not even in System.out,
> > > etc.
> > > How can I enable this? Or where does GWT save those server logs
> > > mentioned? Is it possible to configure log4j to log those exceptions?
> > > Help would really be appreciated, since googling hasn't really shown
> > > up anything I could use...
> >
> > > Regards,
> > > Peter
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Server Log

2011-01-12 Thread SVR
You could catch and throw the same way you would do in any java appln.

On Wed, Jan 12, 2011 at 5:16 PM, pete  wrote:

> Hallo,
>
> is there a way to show stacktraces of UnexpectedExceptions after the
> webapp is deployed? I have logging enabled in general, if I manually
> use my logger, like LOG.debug("blah"), I can see my logs...
> If RPC fails, I just get an unexpected exception saying "the call
> failed on the server, see server logs for details", however, there is
> no stacktrace or exception logging anywhere, not even in System.out,
> etc.
> How can I enable this? Or where does GWT save those server logs
> mentioned? Is it possible to configure log4j to log those exceptions?
> Help would really be appreciated, since googling hasn't really shown
> up anything I could use...
>
> Regards,
> Peter
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



PopupPanel position

2011-01-12 Thread SVR
I am trying to position a popuppanel right next to a TextBox Element.  The
textbox element is way down in the bottom of the page with scrollbar.
While trying to position the popup using setPopupPosition(), I am not able
to get the relative left and relative top of the TextBox element. I tried
all these combinations unsuccessfully:
getAbsoluteLeft(), getAbsoluteTop(), Window.getScrollTop() &
Window.getScrollLeft()

Has anyone know how to get this right?
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Element position

2011-01-10 Thread SVR
 I have a poppanel which I want to position like a tooltip to a
 textbox. I am using textbox's getAbsoluteTop and getAbsoluteLeft to
 position the popup. However I get the following exception when doing a

 txtBox.getElement().getAbsoluteLeft()

 What is wrong or is there any other way to achieve this?
 thanks


 com.google.gwt.core.client.JavaScriptException: (TypeError):
> doc.getBoxObjectFor is not a function
>  fileName: http://localhost:9080
>  lineNumber: 4
>  stack: ([object HTMLHtmlElement],[object
> HTMLInputElement])@http://localhost:9080:4
> @:0
> (null,459230,[object MouseEvent],[object HTMLInputElement],[object
> GWTJavaObject])@
http://localhost:9080/DashboardWeb/gwt/hosted.html?dashboardprototype:56
> ([object MouseEvent])@http://localhost:9080:108
> ((function (evt) {var listener, curElem = this;while (curElem &&
> !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if
> (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if
> (__gwt_makeJavaInvoke(1)(null, 393266, listener))
> {__gwt_makeJavaInvoke(3)(null, 459230, evt, curElem,
> listener);}}}),[object HTMLInputElement],[object
> Object])@http://localhost:9080:65
> @:0
> (null,98,(function (evt) {var listener, curElem = this;while (curElem
> && !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if
> (curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if
> (__gwt_makeJavaInvoke(1)(null, 393266, listener))
> {__gwt_makeJavaInvoke(3)(null, 459230, evt, curElem,
> listener);}}}),[object HTMLInputElement],[object
> Object])@
http://localhost:9080/DashboardWeb/gwt/hosted.html?dashboardprototype:56
> ([object MouseEvent])@http://localhost:9080:49
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: 2.1.1 Documentation Please

2011-01-10 Thread SVR
I have a poppanel which I want to position like a tooltip to a
textbox. I am using textbox's getAbsoluteTop and getAbsoluteLeft to
position the popup. However I get the following exception when doing a

txtBox.getElement().getAbsoluteLeft()

What is wrong or is there any other way to achieve this?
thanks


com.google.gwt.core.client.JavaScriptException: (TypeError):
doc.getBoxObjectFor is not a function
 fileName: http://localhost:9080
 lineNumber: 4
 stack: ([object HTMLHtmlElement],[object
HTMLInputElement])@http://localhost:9080:4
@:0
(null,459230,[object MouseEvent],[object HTMLInputElement],[object
GWTJavaObject])@http://localhost:9080/DashboardWeb/gwt/hosted.html?dashboardprototype:56
([object MouseEvent])@http://localhost:9080:108
((function (evt) {var listener, curElem = this;while (curElem &&
!(listener = curElem.__listener)) {curElem = curElem.parentNode;}if
(curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if
(__gwt_makeJavaInvoke(1)(null, 393266, listener))
{__gwt_makeJavaInvoke(3)(null, 459230, evt, curElem,
listener);}}}),[object HTMLInputElement],[object
Object])@http://localhost:9080:65
@:0
(null,98,(function (evt) {var listener, curElem = this;while (curElem
&& !(listener = curElem.__listener)) {curElem = curElem.parentNode;}if
(curElem && curElem.nodeType != 1) {curElem = null;}if (listener) {if
(__gwt_makeJavaInvoke(1)(null, 393266, listener))
{__gwt_makeJavaInvoke(3)(null, 459230, evt, curElem,
listener);}}}),[object HTMLInputElement],[object
Object])@http://localhost:9080/DashboardWeb/gwt/hosted.html?dashboardprototype:56
([object MouseEvent])@http://localhost:9080:49




On Mon, Jan 10, 2011 at 12:31 PM, David Chandler  wrote:
> Hi Lisa, I've created a small sample project using RF with App Engine +
> Objectify that wires in a custom ServiceLayerDecorator, but it doesn't yet
> demo Editors. Once I get those pieces in place, I plan to publish some more
> docs. Community contributions welcome, of course :-)
> http://code.google.com/p/listwidget
> In the mean time, the DynaTableRF sample that ships with GWT is probably
> your best source for RF + Editor example code.
> Thanks,
> /dmc
>
>
> On Mon, Jan 10, 2011 at 12:22 PM, Lisa D  wrote:
>>
>> Hi David Chandler
>>
>> Any update on documentation on the new Service layer with some code
>> examples?your other articles on the GWT site are excellent and
>> easy to understand so hoping you'll get this done soon, so I'll better
>> be able to understand this
>>
>>
>> LD
>>
>> On Dec 30 2010, 11:49 am, Y2i  wrote:
>> > The links do not mention Service Layer but for using JPA or JDO the
>> > documents implicitly describe the integration between RF, service
>> > layer, editors and auto beans.
>> >
>> > RequestFactoryServlet uses ServiceLayer internally, but knowing its
>> > existence is not necessary for using RequestFactory.  Generated Entity
>> > Proxies are AutoBeans, but you would not use them explicitly and would
>> > only see them in the debugger.  Entity Proxies are integrated with the
>> > Editor Framework through RequestFactoryEditorDriver.
>> >
>> > On Dec 30, 11:21 am, Simon Majou  wrote:
>> >
>> > > Where do you find Service Layer into those 2 links ?
>> >
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> w: http://code.google.com/
> b: http://googlewebtoolkit.blogspot.com/
> t: @googledevtools
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Popup closes on clicking outside

2011-01-07 Thread SVR
Are you setting the auto-hide property of the PopupPanel to true?
check out the constructor parameters:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/PopupPanel.html

On Fri, Jan 7, 2011 at 10:49 AM, Vik  wrote:
> Hie
> I am using a gwt popup component and had set the property setModel(true) but
> it still closes when i click outside.
> any idea?
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.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-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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.1 compiler option : -noserver

2011-01-07 Thread SVR
Hi
I solved the problem by creating a Debug Config in RAD/Eclipse instead
of as an Ant Target. Though, I still dont know why the ant target
(devmode) with the same options (-noserver etc) would still not break
at a break point.
Also the prev error was due to me not incl. the proper src path (I had
only set the path to the compiled classes).
Thank you everybody for your help.


On Fri, Jan 7, 2011 at 9:47 AM, nacho  wrote:
> Is this package com.xyz.dashboard.prototype.gwt.widget translatable to js?
>
> You should insert a line in your MyModule.gwt.xml like this
>
> 
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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.1 compiler option : -noserver

2011-01-06 Thread SVR
Hi Agi,
When use the -noserver from eclipse, I am getting the following error
on the GWT development mode window:

00:00:49.531 [TRACE] Finding entry point classes
00:00:49.531 [ERROR] Unable to find type
'com.xyz.dashboard.prototype.gwt.widget.TxnTopLevelWidget'
00:00:49.531 [ERROR] Hint: Check that the type name
'com.xyz.dashboard.prototype.gwt.widget.TxnTopLevelWidget' is really
what you meant
00:00:49.531 [ERROR] Hint: Check that your classpath includes all
required source roots
00:00:49.531 [ERROR] Failed to load module 'prototype' from user agent
'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13)
Gecko/20101203 Firefox/3.6.13' at localhost:1027

I have set all the classpaths correctly, to give a background, I have
a struts application running on websphere (is it ok to run the
websphere appln from the same eclipse instance?).

thanks




On Tue, Jan 4, 2011 at 4:55 AM, agi  wrote:
> and how do you exactly run your application? can you paste whole
> command?
>
> I am using -noserver argument from eclipse and it works just fine..
>
> On Jan 4, 2:44 am, Srividhya Ramachandran  wrote:
>> I want to run the appln in Websphere server and trying to explore the
>> -noserver option. However I get the following error:
>>
>> gwtc:
>>      [java] Unknown argument: -noserver
>>      [java] Google Web Toolkit 2.1.0
>>
>> has anybody tried this successfully?
>>
>> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.