Transpile plain Java project WITHOUT references to any UI, DOM, or any other web/framework features

2017-06-29 Thread Igor
Hi all,

I have a Java project which performs scientific calculations. It does not 
have any dependencies and it does not reference any UI, DOM, or any other 
web environment features. It is basically a few custom data structures and 
algorithms. I wish to expose one class in this project using JsInterop and 
consume it in a React Native and React app.

I've successfully transpiled the Java into Javascript, but I am unable to 
use it my React Native app because the resulting Javascript seems to 
reference UI elements (there's always "var $wnd = $wnd || window.parent..." 
at the top of the cache.js file which React Native chokes on). Is there a 
way to achieve my goal and, if so, how?

Thanks,

Igor

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT dev plugin stopped working on Chrome 39

2014-11-28 Thread Igor Zubchenok
Nice plugin! Do you know if there is something similar for IntelliJ IDEA?

On Wednesday, 26 November 2014 00:12:32 UTC+3, Slava Pankov wrote:

 SuperDevMode debugging is not so convenient as DevMode, but with SDBG 
 https://github.com/sdbg/sdbg it's almost OK for me. 
 Also with new GPE it's very easy to switch between SuperDevMode and 
 DevMode debugging, so I use both of them now.

 On Tuesday, November 25, 2014 5:49:40 AM UTC-8, jonl wrote:

 Search Portable Chrome, make sure it's the 32 bit version.

 Since its another year away, I wonder what the possibility of getting one 
 more build of the browser DevMode plugin?  Maybe plug some memory leaks and 
 recompile it so it will work with 64 bit Chrome, where possible?

 On Tuesday, November 25, 2014 3:21:28 AM UTC-7, Igor Zubchenok wrote:

 Thank you Jens, this make a sense!

 SuperDevMode has ugly debugging. Unforutnately...
 Do you know where Chrome 38 OSX can be downloaded?

 Chrome is now 64 bit on OS X and the plugin is only 32 bit.

 So you have to use a different/older browser or use SuperDevMode.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT dev plugin stopped working on Chrome 39

2014-11-28 Thread Igor Zubchenok
This could probably work, but I don't see such option.
Check the screenshot:
https://www.dropbox.com/s/sgeh7ao6r9572tp/Screenshot%202014-11-28%2013.07.38.png?dl=0

On Friday, 28 November 2014 13:02:10 UTC+3, Frank Hossfeld wrote:

 Assuming you are using Intellij 14 ultimate: check the JavaScript 
 debugging option inside the GWT running configuration. 

 Am Freitag, 28. November 2014 10:55:23 UTC+1 schrieb Igor Zubchenok:

 Nice plugin! Do you know if there is something similar for IntelliJ IDEA?

 On Wednesday, 26 November 2014 00:12:32 UTC+3, Slava Pankov wrote:

 SuperDevMode debugging is not so convenient as DevMode, but with SDBG 
 https://github.com/sdbg/sdbg it's almost OK for me. 
 Also with new GPE it's very easy to switch between SuperDevMode and 
 DevMode debugging, so I use both of them now.

 On Tuesday, November 25, 2014 5:49:40 AM UTC-8, jonl wrote:

 Search Portable Chrome, make sure it's the 32 bit version.

 Since its another year away, I wonder what the possibility of getting 
 one more build of the browser DevMode plugin?  Maybe plug some memory 
 leaks 
 and recompile it so it will work with 64 bit Chrome, where possible?

 On Tuesday, November 25, 2014 3:21:28 AM UTC-7, Igor Zubchenok wrote:

 Thank you Jens, this make a sense!

 SuperDevMode has ugly debugging. Unforutnately...
 Do you know where Chrome 38 OSX can be downloaded?

 Chrome is now 64 bit on OS X and the plugin is only 32 bit.

 So you have to use a different/older browser or use SuperDevMode.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT dev plugin stopped working on Chrome 39

2014-11-28 Thread Igor Zubchenok
I tired, no results. There is still no check for JS debugging options.
IDEA 14.

https://www.dropbox.com/s/woz02oiblw14qi4/Screenshot%202014-11-28%2017.03.36.png?dl=0

On Friday, 28 November 2014 14:34:56 UTC+3, Frank Hossfeld wrote:

 Have you tried to create a new GWT running configuration?   

 Am Freitag, 28. November 2014 11:09:25 UTC+1 schrieb Igor Zubchenok:

 This could probably work, but I don't see such option.
 Check the screenshot:

 https://www.dropbox.com/s/sgeh7ao6r9572tp/Screenshot%202014-11-28%2013.07.38.png?dl=0

 On Friday, 28 November 2014 13:02:10 UTC+3, Frank Hossfeld wrote:

 Assuming you are using Intellij 14 ultimate: check the JavaScript 
 debugging option inside the GWT running configuration. 

 Am Freitag, 28. November 2014 10:55:23 UTC+1 schrieb Igor Zubchenok:

 Nice plugin! Do you know if there is something similar for IntelliJ 
 IDEA?

 On Wednesday, 26 November 2014 00:12:32 UTC+3, Slava Pankov wrote:

 SuperDevMode debugging is not so convenient as DevMode, but with SDBG 
 https://github.com/sdbg/sdbg it's almost OK for me. 
 Also with new GPE it's very easy to switch between SuperDevMode and 
 DevMode debugging, so I use both of them now.

 On Tuesday, November 25, 2014 5:49:40 AM UTC-8, jonl wrote:

 Search Portable Chrome, make sure it's the 32 bit version.

 Since its another year away, I wonder what the possibility of getting 
 one more build of the browser DevMode plugin?  Maybe plug some memory 
 leaks 
 and recompile it so it will work with 64 bit Chrome, where possible?

 On Tuesday, November 25, 2014 3:21:28 AM UTC-7, Igor Zubchenok wrote:

 Thank you Jens, this make a sense!

 SuperDevMode has ugly debugging. Unforutnately...
 Do you know where Chrome 38 OSX can be downloaded?

 Chrome is now 64 bit on OS X and the plugin is only 32 bit.

 So you have to use a different/older browser or use SuperDevMode.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT dev plugin stopped working on Chrome 39

2014-11-28 Thread Igor Zubchenok
GWT Support plugin v1.0

https://www.dropbox.com/s/bvxuh5hel8goj59/Screenshot%202014-11-28%2017.05.00.png?dl=0

On Friday, 28 November 2014 17:04:19 UTC+3, Igor Zubchenok wrote:

 I tired, no results. There is still no check for JS debugging options.
 IDEA 14.


 https://www.dropbox.com/s/woz02oiblw14qi4/Screenshot%202014-11-28%2017.03.36.png?dl=0

 On Friday, 28 November 2014 14:34:56 UTC+3, Frank Hossfeld wrote:

 Have you tried to create a new GWT running configuration?   

 Am Freitag, 28. November 2014 11:09:25 UTC+1 schrieb Igor Zubchenok:

 This could probably work, but I don't see such option.
 Check the screenshot:

 https://www.dropbox.com/s/sgeh7ao6r9572tp/Screenshot%202014-11-28%2013.07.38.png?dl=0

 On Friday, 28 November 2014 13:02:10 UTC+3, Frank Hossfeld wrote:

 Assuming you are using Intellij 14 ultimate: check the JavaScript 
 debugging option inside the GWT running configuration. 

 Am Freitag, 28. November 2014 10:55:23 UTC+1 schrieb Igor Zubchenok:

 Nice plugin! Do you know if there is something similar for IntelliJ 
 IDEA?

 On Wednesday, 26 November 2014 00:12:32 UTC+3, Slava Pankov wrote:

 SuperDevMode debugging is not so convenient as DevMode, but with SDBG 
 https://github.com/sdbg/sdbg it's almost OK for me. 
 Also with new GPE it's very easy to switch between SuperDevMode and 
 DevMode debugging, so I use both of them now.

 On Tuesday, November 25, 2014 5:49:40 AM UTC-8, jonl wrote:

 Search Portable Chrome, make sure it's the 32 bit version.

 Since its another year away, I wonder what the possibility of 
 getting one more build of the browser DevMode plugin?  Maybe plug some 
 memory leaks and recompile it so it will work with 64 bit Chrome, where 
 possible?

 On Tuesday, November 25, 2014 3:21:28 AM UTC-7, Igor Zubchenok wrote:

 Thank you Jens, this make a sense!

 SuperDevMode has ugly debugging. Unforutnately...
 Do you know where Chrome 38 OSX can be downloaded?

 Chrome is now 64 bit on OS X and the plugin is only 32 bit.

 So you have to use a different/older browser or use SuperDevMode.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT dev plugin stopped working on Chrome 39

2014-11-28 Thread Igor Zubchenok
Thanks everyone! Issue is solved! I just had to enable JavaScript debugger 
plugin! :-) hehe

On Friday, 28 November 2014 17:05:41 UTC+3, Igor Zubchenok wrote:

 GWT Support plugin v1.0


 https://www.dropbox.com/s/bvxuh5hel8goj59/Screenshot%202014-11-28%2017.05.00.png?dl=0

 On Friday, 28 November 2014 17:04:19 UTC+3, Igor Zubchenok wrote:

 I tired, no results. There is still no check for JS debugging options.
 IDEA 14.


 https://www.dropbox.com/s/woz02oiblw14qi4/Screenshot%202014-11-28%2017.03.36.png?dl=0

 On Friday, 28 November 2014 14:34:56 UTC+3, Frank Hossfeld wrote:

 Have you tried to create a new GWT running configuration?   

 Am Freitag, 28. November 2014 11:09:25 UTC+1 schrieb Igor Zubchenok:

 This could probably work, but I don't see such option.
 Check the screenshot:

 https://www.dropbox.com/s/sgeh7ao6r9572tp/Screenshot%202014-11-28%2013.07.38.png?dl=0

 On Friday, 28 November 2014 13:02:10 UTC+3, Frank Hossfeld wrote:

 Assuming you are using Intellij 14 ultimate: check the JavaScript 
 debugging option inside the GWT running configuration. 

 Am Freitag, 28. November 2014 10:55:23 UTC+1 schrieb Igor Zubchenok:

 Nice plugin! Do you know if there is something similar for IntelliJ 
 IDEA?

 On Wednesday, 26 November 2014 00:12:32 UTC+3, Slava Pankov wrote:

 SuperDevMode debugging is not so convenient as DevMode, but with 
 SDBG https://github.com/sdbg/sdbg it's almost OK for me. 
 Also with new GPE it's very easy to switch between SuperDevMode and 
 DevMode debugging, so I use both of them now.

 On Tuesday, November 25, 2014 5:49:40 AM UTC-8, jonl wrote:

 Search Portable Chrome, make sure it's the 32 bit version.

 Since its another year away, I wonder what the possibility of 
 getting one more build of the browser DevMode plugin?  Maybe plug some 
 memory leaks and recompile it so it will work with 64 bit Chrome, 
 where 
 possible?

 On Tuesday, November 25, 2014 3:21:28 AM UTC-7, Igor Zubchenok 
 wrote:

 Thank you Jens, this make a sense!

 SuperDevMode has ugly debugging. Unforutnately...
 Do you know where Chrome 38 OSX can be downloaded?

 Chrome is now 64 bit on OS X and the plugin is only 32 bit.

 So you have to use a different/older browser or use SuperDevMode.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT dev plugin stopped working on Chrome 39

2014-11-25 Thread Igor Zubchenok
Thank you Jens, this make a sense!

SuperDevMode has ugly debugging. Unforutnately...
Do you know where Chrome 38 OSX can be downloaded?

Chrome is now 64 bit on OS X and the plugin is only 32 bit.

 So you have to use a different/older browser or use SuperDevMode.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT dev plugin stopped working on Chrome 39

2014-11-24 Thread Igor Zubchenok
GWT Development Plugin does not work with just updated Chrome 39.0.2171.65 
(64bit) OSX
Any ideas how to solve this?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT Timer and TabPanel bug

2014-07-22 Thread Igor Dmitriev
I have a report tab, when I click on this tab my Timer is started, this 
timer upload reports from data base every 5 sec. But now I have a bug in 
IE8 (only in this browser). When I am trying to write some text into input 
text focus on it is lost. Example : I try to write JAVA, I've just written 
JA and then focus is lost.
Maybe someone has encountered with problem like my, or smth like that ?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: TabLayoutPanel with scroll buttons

2014-04-16 Thread Igor
I experienced the challenge to make GWT TabLayoutPanel to act as the Smart 
GWT one 
(http://www.smartclient.com/smartgwt/showcase/#layout_tabs_add_remove). I 
took PhiLho code as the starting point, big thanks to him. So, my 
improvements and changes are:

   1. Both scroll buttons are in the right corner now, next to each other 
   and wrapped in HorizontalPanel.
   2. The third button added, for showing the popup menu with the list of 
   all tabs for selecting.
   3. Scrolling value now is not fixed rather equal the width of next tab 
   to show
   4. Scrolling is animated
   5. Widget reacts now not only on browser window resize, but on widget 
   itself resize too (i replace window on resize handler with overriding 
   widget onResize() method)
   6. selectTab() method is also overrided for automatic scrolling if new 
   selected tab is not in visible area

The code is in attachment. Hope, someone else find it useful.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
package gwt_widgets_test.client.widgets;

import com.google.gwt.animation.client.Animation;
import com.google.gwt.cell.client.SafeHtmlCell;
import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.dom.client.Style;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeHtmlUtils;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.Column;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.*;
import com.google.gwt.view.client.SelectionChangeEvent;
import com.google.gwt.view.client.SingleSelectionModel;

import java.util.ArrayList;
import java.util.List;

/**
 * A {@link TabLayoutPanel} that shows scroll buttons if necessary.
 * https://groups.google.com/forum/?fromgroups=#!topic/google-web-toolkit/wN8lLU23wPA
 */
public class ScrollableTabLayoutPanel extends TabLayoutPanel {
private static final String SCROLL_BUTTON_STYLE = gwt-TabLayoutPanelScrollButton;
private static final String SCROLL_PANEL_STYLE = gwt-TabLayoutPanelScrollPanel;

private final double barHeight;
private final Unit barUnit;
private final Resources resources;

//tabLayoutPanel root widget
private LayoutPanel panel;
private FlowPanel tabBar;
private HorizontalPanel scrollPanel;

private static Resources DEFAULT_RESOURCES;

public ScrollableTabLayoutPanel() {
this(30, Unit.PX);
}

public ScrollableTabLayoutPanel(double barHeight, Unit barUnit) {
this(barHeight, barUnit, getDefaultResources());
}

public ScrollableTabLayoutPanel(double barHeight, Unit barUnit, Resources resources) {
super(barHeight, barUnit);

this.barUnit = barUnit;
this.barHeight = barHeight;
this.resources = resources;

// The main widget wrapped by this composite, which is a LayoutPanel with the tab bar  the tab content
panel = (LayoutPanel) getWidget();

// Find the tab bar, which is the first flow panel in the LayoutPanel
for(int i = 0; i  panel.getWidgetCount(); i++) {
Widget widget = panel.getWidget(i);
if(widget instanceof FlowPanel) {
tabBar = (FlowPanel) widget;
break;
}
}

initScrollButtons();
}

@Override
public void onResize() {
super.onResize();
showScrollButtonsIfNecessary();
}

@Override
public void insert(Widget child, Widget tab, int beforeIndex) {
super.insert(child, tab, beforeIndex);
showScrollButtonsIfNecessary();
}

@Override
public boolean remove(int index) {
boolean b = super.remove(index);
showScrollButtonsIfNecessary();
return b;
}

@Override
public void selectTab(int index, boolean fireEvents) {
super.selectTab(index, fireEvents);

//all the code below is for automatic scrolling if selected tab is out of visible area
Widget selectedTab = tabBar.getWidget(getSelectedIndex());

int visibleAreaLeftBorder = Math.abs(getCurrentShift());
int visibleAreaRightBorder = visibleAreaLeftBorder + getTabBarWidth();
int halfVisibleAreaWidth = getTabBarWidth() / 2;
int halfTabWidth = (getRightPosition(selectedTab) - 

if you start a new project...

2013-03-21 Thread Igor Zubchenok
Hi!

If I start a new enterprise project from a scratch. The project will have 
both server and browser app with a lot of common code in java, would you 
recommend to use GWT for reusing the common code in browser app? Or may be 
another solution?

Thank in advance,
Igor

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




Re: Chrome GWT plugin 1.0.11357

2013-03-18 Thread Igor Zubchenok
Anyone, could you help me to download/install latest GWT develop plugin for 
Chrome?

On Thursday, March 14, 2013 1:06:01 PM UTC+3, Igor Zubchenok wrote:

 Hi!

 Where can I download the plugin .crx file for manual installation?


 https://chrome.google.com/webstore/detail/gwt-developer-plugin/jpjpnpmbddbjkfaccnmhnkdgjideieim?hl=en-US
 Chome Web Store does not allow to install the plugin and shows the error: 
 This 
 application is not supported on this computer. Installation has been 
 disabled.

 Thanks
 Igor


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




Re: Chrome GWT plugin 1.0.11357

2013-03-18 Thread Igor Zubchenok
Thank you very much Thomas!
Based on your idea I cloned the repository and packed GWT plugin manually.

Everyone who has an issue with GWT plugin for Chrome in Windows 8 can 
download packed by me plugin here: 
https://www.dropbox.com/s/ldtpxuuh9ovof12/gwt-dev-plugin.crx
version 1.0.11357

To install drag and drop it to to Chrome when Extensions page is open 
chrome://extensions/

On Monday, March 18, 2013 12:47:59 PM UTC+3, Thomas Broyer wrote:

 AFAICT, this file is the extension: 
 https://gwt.googlesource.com/gwt-plugins/+/master/npapi/prebuilt/gwt-dev-plugin.zip
  (or 
 at least what's needed to publish it to the Chrome Web Store)
 You're lucky enough that the latest revision was made before the complete 
 move to Git for the plugins, so it can be downloaded from the SVN at 
 https://code.google.com/p/google-web-toolkit/source/browse/trunk/plugins/npapi/prebuilt/gwt-dev-plugin.zip?r=11364
  (otherwise 
 you'd have had to clone the Git repo)

 HTH

 (BTW, are you using Windows 8? that must be the issue: 
 https://code.google.com/p/google-web-toolkit/issues/detail?id=7778)

 On Thursday, March 14, 2013 11:06:01 AM UTC+1, Igor Zubchenok wrote:

 Hi!

 Where can I download the plugin .crx file for manual installation?


 https://chrome.google.com/webstore/detail/gwt-developer-plugin/jpjpnpmbddbjkfaccnmhnkdgjideieim?hl=en-US
 Chome Web Store does not allow to install the plugin and shows the error: 
 This 
 application is not supported on this computer. Installation has been 
 disabled.

 Thanks
 Igor



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




Chrome GWT plugin 1.0.11357

2013-03-15 Thread Igor Zubchenok
Hi!

Where can I download the plugin .crx file for manual installation?

https://chrome.google.com/webstore/detail/gwt-developer-plugin/jpjpnpmbddbjkfaccnmhnkdgjideieim?hl=en-US
Chome Web Store does not allow to install the plugin and shows the error: This 
application is not supported on this computer. Installation has been 
disabled.

Thanks
Igor

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




Overriding CSS styles in ResourceBundle

2013-02-20 Thread Igor Cherednichenko
I have try to find good solution to  partially override css styles of 
CssResources in ResourceBundle. 

In generally, I create my UI components and use simple components (like 
ValueBox) for constructing more complicated components (like 
DatePickerBox). 

From begin, I use ResourceBundle instances for manage style of simple 
components. So, when they should be aggregated into complicated one, I have 
problem with fine styles adjusting.  

As posible decision, simple components has alternative constructor with 
ResourceBundle parameter. Using it, is possible to extend default 
ResourceBundle and override required styles. 

And now the problem in that I dont want reimplement all styles in my 
CssResource (where can be a lot of CSS classes). Usually, I need fine only 
several CSS classes.  

I found one solution, it work, but I cannot find confirmation for this 
trick in official documentation. I use @Import and @ImportedWithPrefix 
annotation for same scope and  override some css styles using prefix. 

The ClientBundle for simple component. 

 *public interface* TestResources *extends* ClientBundle

 {

 @Source(TestCss.DEFAULT_CSS)

 TestCss css();


 @CssResource.ImportedWithPrefix(tr)

 *interface* TestCss *extends* CssResource

 {

 String DEFAULT_CSS = /client/test/test.css;


 String imgStyle();


 String frameStyle();


 String textStyle();

 }

 }


Default CSS clases are stored in default file /client/test/test.css.

 .frameStyle {

 border: 1px solid #00;

 margin: 10px;

 }


 .textStyle {

 font-size: 15px;

 color: red;

 background-color: #ffd700;

 }


 .imgStyle {

 border: 2px dashed green;

 }


Override default styles, CHANGE ONLY IMAGE BORDER STYLE

 *public interface* OverriddenTestResource *extends* TestResources

 {

 @CssResource.Import(TestCss.class)

 @Source({TestCss.DEFAULT_CSS, changedtest.css})

 TestCss css();

 }


The style changes is stored in additional file changedtest.css. 

 .tr-imgStyle {

 border: 1px solid red;

 }

  

Can some one confirm that it done in right way or just post link to related 
docs?

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




Re: Change size of an image resource (ImageBundle)?

2012-12-11 Thread Igor Knyazev
Try this.

public interface Test extends ImageBundle {
@Resource(image.png)
@ImageResource.ImageOptions(width = 100, height = 200)
AbstractImagePrototype selectionAll();}



On Sunday, December 9, 2012 12:34:18 PM UTC-8, membersound wrote:

 Hello,

 how can I change the size of an image resource that is used in the 
 following way?

  public static interface SelectionImages extends ImageBundle {
 @Resource(image.png)
 AbstractImagePrototype selectionAll();
 }

 Thank you!



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



Re: TextBox with pre-filled suggestion

2012-12-04 Thread Igor Knyazev
You can use HTML 5 input placeholder attribute to achive that.

TextBox textBox = new TextBox();
textBox.getElement().setAttribute(placeholder, some text);


check browser support of this attribute here 
http://www.w3schools.com/html5/att_input_placeholder.asp

For rounded borders just add styleName to TextBox with 
border-radiushttp://www.w3schools.com/css3/css3_borders.aspproperty

On Wednesday, December 5, 2012 2:35:58 AM UTC+4, dcheeky77 wrote:

 Hello!

 I need to use a TextBox to enter some data, but the label which explains 
 the field's purpose must be of the kind inside the TextBox itself, which 
 disappears when the user clicks on the field (I hope I've let you 
 understand what I'm talking about ;) )
 I'm using GWT 2.4: is there any such component or a common method to 
 achieve the result?

 Since I also need to customize the look of the TextBox (rounded corners), 
 I was thinking of implementing my own TextBox, but should it extend 
 Composite? Or is there some other way for basic components?

 Thank you very much for your help!


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/294CFzSw4J4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 Dev plug-in for Firefox 11

2012-03-19 Thread Igor Lysak
Hello Alan. Could you please build plugin for Windows?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Sf1E6EntjTIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 Developer Plugin for Firefox 8

2011-11-10 Thread Igor Lysak
Thanks a lot, Alan! Good work!

On Nov 10, 12:11 pm, Alan Leung acle...@google.com wrote:
 Alright I have built and tested it for all platforms

 Have fun!

 http://www.fileswap.com/dl/1OVPVHwWEp/gwt-dev-plugin.xpi.html

 -Alan







 On Wed, Nov 9, 2011 at 5:31 PM, David Guo angel243...@gmail.com wrote:
  I'll try it in Win7 64 bit to see if it works or not.
  If not,maybe i CAN rebuild it on my own.

   --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Yp5Y2pWEV2gJ.

  To post to this group, send email to google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email 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: instance of Servlet in web.xml

2010-08-05 Thread igor mejia
Well you can use spring to configure the queues and in that way you can have
comunications whit the server

i make something like that whit WAS  i have 2 queues and i meke the
conections throw jndi and when i run my app in devmode i use i connection
standalone and it works very well
this is my appcontext.xml


?xml version=*1.0* encoding=*UTF-8*?

beans xmlns=*http://www.springframework.org/schema/beans;
*

xmlns:xsi=*http://www.w3.org/2001/XMLSchema-instance;
*

xsi:schemaLocation=*http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd*

 bean id=*mq.client
*

class=*com.hildebrando.mq.adapters.standalone.impl.MQStandaloneAdapter
*

init-method=*initialize* abstract=*true* destroy-method=*finalize*

property name=*channel* value=*CAPITALES.CHANNEL* /

property name=*queueManager* value=*NBC.QUEUE.MANAGER* /

property name=*host* value=*10.30.0.18* /

property name=*port* value=*1414* /

property name=*timeout* value=*30* /

 /bean

 !-- *Cliente* *de* *escritura* *al* MQ --

bean id=*writer.adapter.engine* parent=*mq.client*

property name=*destinationName* value=*QUEUE.REQUEST.ENGINE* /

property name=*replyDestinationName* value=*QUEUE.RESPONSE.ENGINE* /

property name=*queue* value=*true* /

/bean

!-- *Cliente* *de* *Lectura* *al* MQ --

bean id=*reader.adapter.engine* parent=*mq.client*

property name=*destinationName* value=*QUEUE.RESPONSE.ENGINE* /

property name=*queue* value=*true* /

property name=*filterName* value=*JMSCorrelationID* /

/bean

/beans
this is my interface---
*

public* *interface* IEngineService {

*public* String (String msg);
}

and the implementacion

*

public* *class* EngineServiceImpl *implements* IEngineService {

*private* IWMQAdapter writerAdapter;

*private* IWMQAdapter readerAdapter;

*public* *void* setWriterAdapter(IWMQAdapter writerAdapter) {

*this*.writerAdapter = writerAdapter;

}

*public* *void* setReaderAdapter(IWMQAdapter readerAdapter) {

*this*.readerAdapter = readerAdapter;

}

@Override

*public* String (String msg) {

MapString, Object property = MessageHeaderBuilder

.*fillHeader*(MessageHeaderBuilder.*ALTA_ORDEN*);

writerAdapter.setProperty(property);

String messageId = writerAdapter.sendSync(msg);

String resultado = readerAdapter.receiveSync(messageId);

*try* {

JsonErrors errores = JsonConverter.*fromJson*(resultado,

JsonErrors.*class*);

*if* (errores.getErrors().size() != 0) {

resultado = No se proceso la orden.  + Error: 

+ errores.getErrors().get(0).getMessage();

} *else* {

resultado = ;

}

} *catch* (IOException e) {

e.printStackTrace();

}

System.*out*.println(%Resultado

+ resultado);

*return* resultado;

}
i hope this help you

2010/8/5 lam lama.gh...@gmail.com

 I need to fill a queue on the server.
 I wanted to do it in two ways, 1) what I asked about
 2) have the main start the server and fill the queue from that
 instance(I don't know how to do this -- working on it)
 What should I do??

 I am calling the devMode.main from a main class, not launching as
 normal. The queue-filling class is in the main.
 This is what I meant by the same JVM.

 Thank you

 On Aug 5, 12:05 pm, lam lama.gh...@gmail.com wrote:
  How would I do it if I was running on a different server, Jetty or
  Tomcat?
  Thank you for answering
 
  On Aug 5, 11:18 am, Shawn Brown big.coffee.lo...@gmail.com wrote:
 
I need to get and instance of the servlet specified in web.xml. I
 have
a main running in the same JVM as the servlet.
 
   I think you need to understand GAE.  I don't think you know what JVM
   you are running in GAE and that it can be killed at any time and that
   what your client sends may be handled by any JVM.  See if java.rmi is
   supported in GAE whitelisted classes if you want to try.
 
   GAE instances come and GAE instances go.  Even sessions get persisted
   to BigTable (the database) for this reason.

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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: instance of Servlet in web.xml

2010-08-04 Thread igor mejia
what server have you have?

2010/8/4 lam lama.gh...@gmail.com

 Hi,
 I need to get and instance of the servlet specified in web.xml. I have
 a main running in the same JVM as the servlet. I need to be able to
 fill a queue in the server. How can I do this???
 Any help is appreciated.
 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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: Can't download eclipse plugin

2010-08-04 Thread igor mejia
you can try with this path   http://dl.google.com/eclipse/plugin/3.5

2010/8/4 JKelly qc.jke...@gmail.com

 I'm getting repeated timeout errors trying to download the eclipse 3.6
 plugin:

 An error occurred while collecting items to be installed
 session context was:(profile=SDKProfile,
 phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
 action=).
 Unable to read repository at

 http://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclipse.oophm_1.3.3.v201006111317.jar
 .
 connect timed out

 Is something down on the server side?

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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: i18n translations

2010-08-04 Thread igor mejia
if you can i can help you with spanish

2010/8/4 ale aleee...@gmail.com

 Hi everybody,

 I'm finishing to develop a web application with GWT + GAE, and I want
 to publish in multiple languages.

 The application is about sport, and the message file is about 400
 lines mostly consist of one word.

 Is there anyone who can  translate it into his native language?
 In return he will receive my infinite gratitude, I will write his/her
 name in the thanks page of my  site with a link to what he wants.
 And of course I will be happy to return the favor by translating into
 Italian!
 Any language is OK, even English, (I'n not speak wery well, so will be
 full of errors!)

 Thank you, thank you!

 Alessandro

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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 module may need to be (re)compiled

2010-07-29 Thread igor mejia
tou can use mvn gwt:clean gwt:compile

2010/7/29 Yau kvle...@gmail.com

 I encountered the same problem 2 times before

 1) I forgot to add a new jar in the build path into WEB-INF/lib
 folder.
 2) the mapping in proxy_ajp was incorrect (but it doesn't apply if you
 are debugging in hosted mode).

 On Jul 29, 4:18 pm, Thomas Van Driessche
 thomas.van.driessch...@gmail.com wrote:
  Hi all,
 
  I have developed for a while now on a gwt 2.0.0 and maven project.
  But recently i did a maven clean install on the project to generate
  the war file in the target folder.
 
  Now when i tried to do a mvn gwt:run again it sais that the module may
  need to be (re)compiled...
  I can't get it fixed.
 
  I even checked out an older version of the project out of the
  repository in an new workspace, but still i get the error.
  And i am sure that that version was working when i checked in the
  changes...
 
  Any idea pls??
 
  I'm really stuck here
 
  kind regards,
  Thomas

 --
 You received 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.comgoogle-web-toolkit%2bunsubscr...@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.x maven linux support

2010-07-28 Thread igor mejia
i don´t think you need linux libraries if you use webapp instance of war you
can find the pluging information in
http://mojo.codehaus.org/gwt-maven-plugin/

or if you use war i have this pom


project xmlns=*http://maven.apache.org/POM/4.0.0* xmlns:xsi=*
http://www.w3.org/2001/XMLSchema-instance;
*

xsi:schemaLocation=*http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd*

modelVersion4.0.0/modelVersion

parent

artifactIdxxx/artifactId

groupIdxxx/groupId

version1.0-SNAPSHOT/version

/parent

groupIdxxx/groupId

artifactIdxxx/artifactId

packagingwar/packaging

version1.0-SNAPSHOT/version

namexxx/name

urlhttp://maven.apache.org/url

properties

!-- convenience to define GWT version in one place --

gwt.version2.0.4/gwt.version

spring.version3.0.0.RELEASE/spring.version

maven.compiler.source1.6/maven.compiler.source

maven.compiler.target1.6/maven.compiler.target

jstl.version1.1.2/jstl.version

gwtHomeC:/*Actinver*/*gwt*-2.0.4/gwtHome

/properties

dependencies

!-- GWT dependencies (from central *repo*) --

dependency

groupIdcom.google.gwt/groupId

artifactId*gwt*-*servlet*/artifactId

version${gwt.version}/version

scoperuntime/scope

/dependency

dependency

groupIdcom.google.gwt/groupId

artifactId*gwt*-user/artifactId

version${gwt.version}/version

scopeprovided/scope

/dependency

dependency

groupIdcom.smartgwt/groupId

artifactId*smartgwt*/artifactId

version2.2/version

/dependency

 /dependencies

build

finalName*Capitales*-web/finalName

outputDirectorywar/WEB-INF/classes/outputDirectory

plugins

plugin

groupIdorg.codehaus.mojo/groupId

artifactId*gwt*-*maven*-*plugin*/artifactId

version1.2/version

executions

execution

goals

goalcompile/goal

goaltest/goal

/goals

/execution

/executions

configuration

!--gwtHome${gwtHome}/gwtHome--

runTargetCapitalesWeb.jsp/runTarget

/configuration

/plugin

plugin

groupIdorg.apache.maven.plugins/groupId

artifactId*maven*-compiler-*plugin*/artifactId

version2.0.2/version

configuration

source${maven.compiler.source}/source

target${maven.compiler.target}/target

/configuration

/plugin

plugin

artifactId*maven*-war-*plugin*/artifactId

version2.1-beta-1/version

configuration

warSourceDirectorywar/warSourceDirectory

/configuration

/plugin

/plugins

/build

/project


2010/7/28 Ovidiu Drumia ovidiu.dru...@gmail.com

 Hey,

 I've started using gwt. I'm currently trying to integrate my new
 project within a maven module suite, using the codehaus gwt-maven
 plugin. My pom.xml file contains gwt dependencies. All is well until I
 try to go beyond the 1.x gwt version. The pom.xml contains the
 following code:
 ...
properties
   gwt-versionx.x.x/gwt-version
 /properties
 ...
   dependencies
 ...
   dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-servlet/artifactId
version${gwt-version}/version
scopecompile/scope
/dependency
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-user/artifactId
version${gwt-version}/version
scopeprovided/scope
/dependency
/dependencies
build
plugins
plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
version1.1/version
executions
execution
goals
goalclean/goal
goalcompile/goal
goaleclipse/goal
/goals
/execution
/executions
/plugin
/plugins
/build

 Now until after version 1.7.1 the project compiles. When I try to go
 beyond it, it first tells me to manually download the gwt-
 dev-2.0.4.jar and then install it. I've done that, but afterwards it
 tells me to do the same thing with gwt-dev-2.0.4-linux-lib.zip, but
 the maven2 repo does not contain such a file.
 Will the gwt team publish the remaining needed libraries onto the mvn
 repo?
 Is there any way to use the gwt-maven-plugin and gwt 2.0.4?
 Should I stick to gwt 1.7.1 until the gwt team provides the needed
 linux libraries?

 --
 You received 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
 

Re: GWT 2.0: Debug with Firefox and Eclipse

2010-01-06 Thread Igor Ganapolsky
Did you try relaunching your application and Firefox after you
installed the plugin?

On Jan 5, 8:52 pm, y y...@cs.washington.edu wrote:
 Anyone managed to debug with GWT 2.0? I don't get a prompt to install
 the developer plugin. Even when I installed it manually, nothing
 happens. Breakpoints just don't halt the running.

 Mac 10.6 (updated to the latest), Eclipse 3.5.1, Java 1.6.0
 Tried with the latest stable Firefox and Chrome

 On Jan 5, 10:45 am, y y...@cs.washington.edu wrote:



  When GWT was working with its internal browser, debugging from Eclipse
  was simple. I just marked the breakpoints and ran as debug. However,
  it doesn't seem to work with GWT 2.0 and Firefox. Any idea what am I
  missing?

  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.




Re: GWT 2.0: Debug with Firefox and Eclipse

2010-01-06 Thread Igor Ganapolsky
Actually, I just relaunched the debugger and switched to debug mode,
and am now able to hit the breakpoints.

On Jan 5, 1:45 pm, y y...@cs.washington.edu wrote:
 When GWT was working with its internal browser, debugging from Eclipse
 was simple. I just marked the breakpoints and ran as debug. However,
 it doesn't seem to work with GWT 2.0 and Firefox. Any idea what am I
 missing?

 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.




Re: GWT 2.0: Debug with Firefox and Eclipse

2010-01-06 Thread Igor Ganapolsky
It doesn't seem to hit breakpoints for me either.  Is it supposed to
debug with an external Firefox browser?


On Jan 5, 1:45 pm, y y...@cs.washington.edu wrote:
 When GWT was working with its internal browser, debugging from Eclipse
 was simple. I just marked the breakpoints and ran as debug. However,
 it doesn't seem to work with GWT 2.0 and Firefox. Any idea what am I
 missing?

 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.




Shortcuts.java missing code

2010-01-06 Thread Igor Ganapolsky
I am following the GWT Getting Started guide at:
http://code.google.com/webtoolkit/doc/1.6/gettingstarted.html#Install
It states about Shortcuts.java:
Line 54 of the file is the line that constructs the Mail tab.
add(images, new Mailboxes(images), images.mailgroup(), Mail);

However, Shortcuts.java doesn't have this code.  In fact, here is the
entire class definition:
public class Shortcuts extends ResizeComposite {
  interface Binder extends UiBinderStackLayoutPanel, Shortcuts { }
  private static final Binder binder = GWT.create(Binder.class);
  @UiField Mailboxes mailboxes;
  @UiField Tasks tasks;
  @UiField Contacts contacts;
  /**
   * Constructs a new shortcuts widget using the specified images.
   *
   * @param images a bundle that provides the images for this widget
   */
  public Shortcuts() {
initWidget(binder.createAndBindUi(this));
  }
}

Any ideas??
-- 
You received 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.




Error with mail.jar and Gwt

2009-09-30 Thread Igor Schkrab

Hello There!
I'm having a strange problema wich i've not found a solution.
Im running a code to send e-mail and it works when i run into a Java
Project. But when i copy the code to the server side on Gwt
Application it show the succesfull message, but the email don't
arrive. Someone knows whats the problema? I'm copying below the code
i've used the send the email.

public static boolean sendEmail(String email){
final String d_email = em...@email.com.br;
final String d_password = password here;
final String d_host = the smtp here;
final String d_port  = port number here;
final String m_to = email;
final String m_subject = Testing;
final String m_text = Hey, this is the testing email.;

Properties props = new Properties();
props.put(mail.smtp.user, d_email);
props.put(mail.smtp.host, d_host);
props.put(mail.smtp.port, d_port);
props.put(mail.smtp.auth, true);

try
{
class SMTPAuthenticator extends javax.mail.Authenticator {
public PasswordAuthentication getPasswordAuthentication()
{
return new PasswordAuthentication(d_email,
d_password);
}
}

Authenticator auth = new SMTPAuthenticator();
Session session = Session.getInstance(props, auth);
session.setDebug(true);

MimeMessage msg = new MimeMessage(session);
msg.setText(m_text);
msg.setSubject(m_subject);
msg.setFrom(new InternetAddress(d_email));
msg.addRecipient(Message.RecipientType.TO, new
InternetAddress(m_to));
Transport.send(msg);
System.out.println(Message has been sent succesfully.);
return true;

}
catch (Exception mex)
{
mex.printStackTrace();
return false;
}
}

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



Cross site requests (Ape

2009-08-25 Thread Igor Klimer

Hi all,
I wanted to use the Ape Server (http://www.ape-project.org/ an Ajax
Push/Comet/Call-It-How-You-Want server) in my app, but I've run into
some troubles - mainly the server communicates with subdomains of my
main domain:

example.com - main site (communicates with [0-9].ape.example.com)
ape.example.com - ape server
[0-9].ape.example.com - subdomains for the ape server (multiple, to
enable multitabbing the app)

As far as I can tell, this kind of setup (any other is not possible,
I'm afraid) doesn't work with the standard linker for GWT (IFrame) -
it causes errors like Permission denied on [insert some code
here ;)]. After many attempts at fixing this, I ran into the cross-
site linker (xs). And voila - I recompiled and it works, but only the
compiled output - it turns out xs linker is not available for Hosted
Mode (BTW, I'm using OOPHM and there's no alert about that -
thankfully I browsed through the js code for the hosted mode and found
a comment there..).

So my question is: if I want to use cross-site (domain?) requests I'm
stuck in the compile (using xs linker) - test - modify code -
compile, etc. cycle? Or am I missing something? I'm sure that everyone
agrees that using (OOP)HM is essential during development in GWT and I
would like to keep using it :)

Some additional info:
GWT trunk (r5998-ish)
Using OOPHM + Firefox 3.0.12 (iirc)

Best regards,
Igor Klimer

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

2009-08-19 Thread Igor

Just for the record, I've found a workaround: downgrading Tomcat to
version 6.0.18 made the problem go away.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



RemoteServiceServlet throws NoClassDefFoundError on Tomcat6

2009-08-12 Thread Igor

Hi,

I'm deploying a GWT (1.7) application on Tomcat (6.0.20-5). The
problem is that when the RPC call is made an NoClassDefFoundError
exception is thrown:

java.lang.NoClassDefFoundError: com/google/gwt/user/server/rpc/
RPCServletUtils
  at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doUnexpectedFailure
(RemoteServiceServlet.java:285)
  at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:99)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:597)
  ...supressed...

The gwt-servlet.jar is present inside WEB-INF/lib otherwise
RemoteServiceServlet wouldn't be found. Enabling Tomcat's remote debug
and following the execution, the exception is thrown at
RemoteServiceServlet.java:343.

341  protected String readContent(HttpServletRequest request)
342  throws ServletException, IOException {
343return RPCServletUtils.readContentAsUtf8(request, true);
344  }

The class RPCServletUtils has a private constructor and only static
methods. Is there a chance that Tomcat's class loader is getting
confused with that?

Using the hosted mode's server it runs just fine.

Any ideas?

Regards,
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: Eclipse is not stopping on breakpoints in GWTTest. Why?

2009-06-19 Thread Igor Moochnick

Wow.  I spent all this time and endless hours debugging because
Eclipse doesn't work correctly with Java 6.14???

When I've downgraded the Java from 6.14 to 6.13 - the breakpoint
worked perfectly.

  Thanks!!!

On Jun 15, 3:41 am, Paul Robinson ukcue...@gmail.com wrote:
 Check your version of the 
 JDK:http://code.google.com/p/google-web-toolkit/issues/detail?id=3724



 Igor Moochnick wrote:
  Can;t figure out why Eclipse (during debug) is not stopping on
  breakpoints both in hosted and web modes.

  I've checked that I have all the reqired configuration, all the source
  folders are included on the class path.

  Any suggestions?

  BTW: Eclipse stopping on all the breakpoints during normal debug of
  the module/project itself.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Eclipse is not stopping on breakpoints in GWTTest. Why?

2009-06-14 Thread Igor Moochnick

Can;t figure out why Eclipse (during debug) is not stopping on
breakpoints both in hosted and web modes.

I've checked that I have all the reqired configuration, all the source
folders are included on the class path.

Any suggestions?

BTW: Eclipse stopping on all the breakpoints during normal debug of
the module/project itself.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: @Resource path is OS-gnostic ( \ or / depending on the Win/Linux). What is a workaround?

2009-06-07 Thread Igor Moochnick

Issue 3729 was opened.

On Jun 4, 11:13 am, Rajeev Dayal rda...@google.com wrote:
 It would be great if you could file the RFE :).

 On Tue, Jun 2, 2009 at 3:07 PM, Igor Moochnick 
 igor.moochn...@gmail.comwrote:





  Guilty as charged.  I was on the road for some time and had no chance
  to file the RFE.

  Should I still do it?

  On May 29, 6:11 pm, Rajeev Dayal rda...@google.com wrote:
   Hi Abby,
   No, I don't think that an RFE has been filed for this. Would you mind
  filing
   one?

   Yes, the best workaround right now would be to place the images in the
  same
   package as the Bundle interface (or the Bundle interface in the same
  package
   as the images).

   Rajeev

   On Wed, May 27, 2009 at 2:32 PM, abby misra.a...@gmail.com wrote:

Did anyone open a RFE for this?

Also, is the best workaround now having the images in same package as
the Bundle interface?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: Does the JS code from GWT run fine on Explorer 8 ? Or stick with Explorer 7?

2009-06-07 Thread Igor Moochnick

I'm using GWT 1.6  - works perfectly in my IE 8 (both on WinXP and
Win7)

On Jun 5, 3:18 pm, Thomas Broyer t.bro...@gmail.com wrote:
 All released versions of GWT won't run in IE8 unless you put it in
 compatibility mode, e.g. using

     meta http-equiv=X-UA-Compatible content=IE=EmulateIE7

 IE8 super standards mode will be supported starting with the next
 GWT 1.6.x release.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



delayTestFinish is not delaying the test

2009-06-03 Thread Igor Moochnick

I'm using the GWT Eclipse plugin with the latest GWT 1.6. My test
looks like this:

public class MyTests extends GWTTestCase {
public String getModuleName() { ... }

   public void testAddAction()
   {
  MyServiceProxy proxy = new MyServiceProxy(
 new MyServiceCallback()
 {
 public void OnData(Data data)
 {
   finishTest();
 }
 });

   proxy.GetData();   // Execute Web Service (REST) call

   delayTestFinish(6000); // Delay for 1 minute
   }
}

I'm running this test with Rght-Click/Run As/GWT Junit test on the
function.  The test running successfully, and the call to the remote
service is executed, but there is not enough time to get the callback
since the delayTestFinish is not waiting for the specified delay.  In
fact it's not waiting at all - it just jumps through.

When I check the source code for the delayTestFinish function I see
something like this:

public abstract class GWTTestCase extends TestCase { ...
  protected final void delayTestFinish(int timeoutMillis) {
// implemented in the translatable version of this class
  }
...
}

What is the translatable version of the class. How can I see what is
the generated result?  What am I doing wrong?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: @Resource path is OS-gnostic ( \ or / depending on the Win/Linux). What is a workaround?

2009-06-02 Thread Igor Moochnick

Guilty as charged.  I was on the road for some time and had no chance
to file the RFE.

Should I still do it?

On May 29, 6:11 pm, Rajeev Dayal rda...@google.com wrote:
 Hi Abby,
 No, I don't think that an RFE has been filed for this. Would you mind filing
 one?

 Yes, the best workaround right now would be to place the images in the same
 package as the Bundle interface (or the Bundle interface in the same package
 as the images).

 Rajeev



 On Wed, May 27, 2009 at 2:32 PM, abby misra.a...@gmail.com wrote:

  Did anyone open a RFE for this?

  Also, is the best workaround now having the images in same package as
  the Bundle interface?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



delayTestFinish is not delaying the test

2009-06-02 Thread Igor Moochnick

I'm using the GWT Eclipse plugin with the latest GWT 1.6. My test
looks like this:

public class MyTests extends GWTTestCase
{
public String getModuleName() { ... }

   public void testAddAction()
   {
  MyServiceProxy proxy = new MyServiceProxy(
 new MyServiceCallback()
 {
 public void OnData(Data data)
 {
   finishTest();
 }
 });

   proxy.GetData();   // Execute Web Service (REST) call

   delayTestFinish(6000); // Delay for 1 minute
   }
}

I'm running this test with Rght-Click/Run As/GWT Junit test on the
function.  The test running successfully, and the call to the remote
service is executed, but there is not enough time to get the callback
since the delayTestFinish is not waiting for the specified delay.  In
fact it's not waiting at all - it just jumps through.

When I check the source code for the delayTestFinish function I see
something like this:

public abstract class GWTTestCase extends TestCase {
...
  protected final void delayTestFinish(int timeoutMillis) {
// implemented in the translatable version of this class
  }
...
}

What is the translatable version of the class. How can I see what is
the generated result?  What am I doing wrong?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email 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: @Resource path is OS-gnostic ( \ or / depending on the Win/Linux). What is a workaround?

2009-05-18 Thread Igor Moochnick

I like the fallback idea (I forgot about the back compatibility ;-)

One other approach may be by creating another annotation (that
inherits from the original one) so the ImageBundle compiler can
differentiate between them.

On May 15, 5:20 pm, Rajeev Dayal rda...@google.com wrote:
 This would work, except for backwards compatibility. If we put in this
 change, then all of those people that were using fully-qualified names
 without the leading slash would run into problems. Another way to handle
 this might be to add another piece data to the annotation to indicate that
 the path is relative as opposed to absolute.

 Or, we could maybe go with your suggestion, but then have a fallback
 algorithm - if there is no leading slash, assume that the path is relative
 to the package. If no resource can be found, assume that it's absolute.

 On Fri, May 15, 2009 at 4:11 PM, Igor Moochnick 
 igor.moochn...@gmail.comwrote:



  It does, actually, makes scene.

  If I may, I'd like to suggest the way to fix it. Usually when the path
  starts with / (slash) it considered to be an ABSOLUTE path, but, if
  it does't, it considered to be a RELATIVE one.  So the code can be
  changed like this  [pseudocode]:

     if (imgFileName.starts_with(/))
     {
         // USE THE PATH AS AN ABSOLUTE ONE
     }
     else
     // RELATIVE PATH IN ANY OTHER CASE
      {
       String pkgName = method.getPackageName();
       if (!.equals(pkgName)) {
         imgFileName = pkgName.replace('.', '/') + / + imgFileName;
       }
     }

    How about this?

  On May 15, 4:03 pm, Rajeev Dayal rda...@google.com wrote:
   Hi Igor,

   Responses inline:

   On Fri, May 15, 2009 at 3:47 PM, Igor Moochnick 
  igor.moochn...@gmail.comwrote:

You mean PACKAGE or MODULE?   In fact I do use PACKAGEs.

   I mean package.

Because I'm actually using packages for my widgets and, in fact,
that's what broken.

This is how I've structured my code:

com.myserver.client                  - all the usual client code
com.myserver.client.widgets          - here I put our custom widgets
(and all the images related to them)
com.myserver.client.widgets.images   - this is where I WANT to put all
the images so the upper level folder will be free

Since, in Java, packages are directly related to the folder structure,
the @Resource(images/Dialogue_Corner.gif)  is broken and not working
consistently across the OSes.

   I know that if you use a backslash, that this works on Windows. However,
   have you tested to see if this would work as-is in its current
  formulation
   on Mac or Linux? The reason that I ask is that I suspect it would not.
  Even
   though changing the forward slash to a backslash appears to fix the
  problem
   on windows, it is an accident of the implementation of
  ImageBundleGenerator.
   Here is the relevant chunk of code in ImageBundleGenerator:

     // If the name has no slashes (that is, it isn't a fully-qualified
   resource
       // name), then prepend the enclosing package name automatically,
  being
       // careful about the default package.
       if (imgFileName.indexOf(/) == -1) {
         String pkgName = method.getPackageName();
         if (!.equals(pkgName)) {
           imgFileName = pkgName.replace('.', '/') + / + imgFileName;
         }
       }

   So, you see, the code basically assumes that if there are any forward
   slashes in the image name (where the image name is taken verbatim as the
   value of the resource annotation), then it is assumed to be an absolute
   reference. When you changed the slash to a backslash, the code here
   determined that there were no forward slashes in the resource name, and
   pre-pended the package name to the image file name. So, the fact that a
   relative reference worked was accidental. Does that make sense?

  Thanks.

On May 15, 3:30 pm, Rajeev Dayal rda...@google.com wrote:
 You are correct - if you end up refactoring, you'll have to change
  the
 references in the @Resource annotation. The only other way around
  this is
to
 place the images themselves in the same package as your ImageBundle,
  and
 then you can use relative references.

 You can file a Request for Enhancement to support relative paths in
 ImageBundle @Resource annotatios, if you'd like

 On Fri, May 15, 2009 at 1:53 PM, Igor Moochnick 
igor.moochn...@gmail.comwrote:

  Interesting ... In fact I was actually trying to use the relative
  path.

  The goal was to put the images (part of the application
  ImageBundles)
  with the classes/widgets that are using them and then extra
  /images
  folder (relative to the widget folder).

  Then, if I put a full path, what are the best practices in
  refactoring? When I move the whole folder - all the full pathes
  will
  be broken.

   Thanks for your responses.

  On May 15, 1:45 pm, Rajeev Dayal rda...@google.com wrote:
   Hi Igor

Re: @Resource path is OS-gnostic ( \ or / depending on the Win/Linux). What is a workaround?

2009-05-15 Thread Igor Moochnick

Interesting ... In fact I was actually trying to use the relative
path.

The goal was to put the images (part of the application ImageBundles)
with the classes/widgets that are using them and then extra /images
folder (relative to the widget folder).

Then, if I put a full path, what are the best practices in
refactoring? When I move the whole folder - all the full pathes will
be broken.

  Thanks for your responses.


On May 15, 1:45 pm, Rajeev Dayal rda...@google.com wrote:
 Hi Igor,

 The problem is that the resource annotation will only understand either:

 1) A file name relative to the package. This must only be a file name, not a
 path
 2) A fully qualified path

 The problem is that you're using a relative path for the file, which will
 not work. You have to use the fully-qualified form, with forward slashes.

 The fact that it works for Windows when using backslashes is an accident of
 the implementation.

 Rajeev

 On Thu, May 14, 2009 at 12:46 PM, Igor Moochnick
 igor.moochn...@gmail.comwrote:



  This is the error I'm getting on the Jetty (hosted) server when
  opening my application:

  [DEBUG] Loading an instance of module 'mymodule'
  [DEBUG] Rebinding com.mymodule.Myclient.Images
  [DEBUG] Invoking generate-with
  class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
  [DEBUG] Analyzing method 'TopLeft' in type
  com.mymodule.Myclient.Images
  [ERROR] Unable to find image resource 'images/Dialogue_Corner.gif'
  [ERROR] Unable to load module entry point class com.mymodule.Myclient
  (see associated exception for details)
  [ERROR] Failure to load module 'mymodule'
  [ERROR] Deferred binding failed for 'com.mymodule.Myclient.Images';
  expect subsequent failures

  On May 4, 5:21 pm, Rajeev Dayal rda...@google.com wrote:
   Actually, the documentation says that GWT uses
  ClassLoader.getResource(..)
   to locate images. As a result, the syntax that you use in the annotation
   *should* be OS-agnostic. You should always use forward slashes ( / ) to
   separate path components.

   Is that not working for you?

   On Fri, May 1, 2009 at 6:20 PM, Igor Moochnick igor.moochn...@gmail.com
  wrote:

I have a relative path use in the @Resource attribute on my image
bundle. Apparently the direction of the slashes are important and
depend on what OS I'm building my project.

On Windows it has to be \  and on Linux - /.

       public interface Images extends ImageBundle
       {
              �...@resource(images/Dialogue_Corner.gif)
               AbstractImagePrototype TopLeft();
       }

The documentation mentions that the GWT uses System.getResource method
to locate the images.

Any idea how to make it OS independent?

BWT: if the application written correctly on the Windows, it should
pick the Linux slash / with no problem, but, apparently, Java
getResource is not the case.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: @Resource path is OS-gnostic ( \ or / depending on the Win/Linux). What is a workaround?

2009-05-15 Thread Igor Moochnick

You mean PACKAGE or MODULE?   In fact I do use PACKAGEs.

Because I'm actually using packages for my widgets and, in fact,
that's what broken.

This is how I've structured my code:

com.myserver.client  - all the usual client code
com.myserver.client.widgets  - here I put our custom widgets
(and all the images related to them)
com.myserver.client.widgets.images   - this is where I WANT to put all
the images so the upper level folder will be free

Since, in Java, packages are directly related to the folder structure,
the @Resource(images/Dialogue_Corner.gif)  is broken and not working
consistently across the OSes.

   Thanks.

On May 15, 3:30 pm, Rajeev Dayal rda...@google.com wrote:
 You are correct - if you end up refactoring, you'll have to change the
 references in the @Resource annotation. The only other way around this is to
 place the images themselves in the same package as your ImageBundle, and
 then you can use relative references.

 You can file a Request for Enhancement to support relative paths in
 ImageBundle @Resource annotatios, if you'd like

 On Fri, May 15, 2009 at 1:53 PM, Igor Moochnick 
 igor.moochn...@gmail.comwrote:



  Interesting ... In fact I was actually trying to use the relative
  path.

  The goal was to put the images (part of the application ImageBundles)
  with the classes/widgets that are using them and then extra /images
  folder (relative to the widget folder).

  Then, if I put a full path, what are the best practices in
  refactoring? When I move the whole folder - all the full pathes will
  be broken.

   Thanks for your responses.

  On May 15, 1:45 pm, Rajeev Dayal rda...@google.com wrote:
   Hi Igor,

   The problem is that the resource annotation will only understand either:

   1) A file name relative to the package. This must only be a file name,
  not a
   path
   2) A fully qualified path

   The problem is that you're using a relative path for the file, which will
   not work. You have to use the fully-qualified form, with forward slashes.

   The fact that it works for Windows when using backslashes is an accident
  of
   the implementation.

   Rajeev

   On Thu, May 14, 2009 at 12:46 PM, Igor Moochnick
   igor.moochn...@gmail.comwrote:

This is the error I'm getting on the Jetty (hosted) server when
opening my application:

[DEBUG] Loading an instance of module 'mymodule'
[DEBUG] Rebinding com.mymodule.Myclient.Images
[DEBUG] Invoking generate-with
class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
[DEBUG] Analyzing method 'TopLeft' in type
com.mymodule.Myclient.Images
[ERROR] Unable to find image resource 'images/Dialogue_Corner.gif'
[ERROR] Unable to load module entry point class com.mymodule.Myclient
(see associated exception for details)
[ERROR] Failure to load module 'mymodule'
[ERROR] Deferred binding failed for 'com.mymodule.Myclient.Images';
expect subsequent failures

On May 4, 5:21 pm, Rajeev Dayal rda...@google.com wrote:
 Actually, the documentation says that GWT uses
ClassLoader.getResource(..)
 to locate images. As a result, the syntax that you use in the
  annotation
 *should* be OS-agnostic. You should always use forward slashes ( / )
  to
 separate path components.

 Is that not working for you?

 On Fri, May 1, 2009 at 6:20 PM, Igor Moochnick 
  igor.moochn...@gmail.com
wrote:

  I have a relative path use in the @Resource attribute on my image
  bundle. Apparently the direction of the slashes are important and
  depend on what OS I'm building my project.

  On Windows it has to be \  and on Linux - /.

         public interface Images extends ImageBundle
         {
                �...@resource(images/Dialogue_Corner.gif)
                 AbstractImagePrototype TopLeft();
         }

  The documentation mentions that the GWT uses System.getResource
  method
  to locate the images.

  Any idea how to make it OS independent?

  BWT: if the application written correctly on the Windows, it should
  pick the Linux slash / with no problem, but, apparently, Java
  getResource is not the case.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: @Resource path is OS-gnostic ( \ or / depending on the Win/Linux). What is a workaround?

2009-05-14 Thread Igor Moochnick

The forward slash (/) doesn't work on Windows.

On May 4, 5:21 pm, Rajeev Dayal rda...@google.com wrote:
 Actually, the documentation says that GWT uses ClassLoader.getResource(..)
 to locate images. As a result, the syntax that you use in the annotation
 *should* be OS-agnostic. You should always use forward slashes ( / ) to
 separate path components.

 Is that not working for you?

 On Fri, May 1, 2009 at 6:20 PM, Igor Moochnick 
 igor.moochn...@gmail.comwrote:



  I have a relative path use in the @Resource attribute on my image
  bundle. Apparently the direction of the slashes are important and
  depend on what OS I'm building my project.

  On Windows it has to be \  and on Linux - /.

         public interface Images extends ImageBundle
         {
                �...@resource(images/Dialogue_Corner.gif)
                 AbstractImagePrototype TopLeft();
         }

  The documentation mentions that the GWT uses System.getResource method
  to locate the images.

  Any idea how to make it OS independent?

  BWT: if the application written correctly on the Windows, it should
  pick the Linux slash / with no problem, but, apparently, Java
  getResource is not the case.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: @Resource path is OS-gnostic ( \ or / depending on the Win/Linux). What is a workaround?

2009-05-14 Thread Igor Moochnick

This is the error I'm getting on the Jetty (hosted) server when
opening my application:

[DEBUG] Loading an instance of module 'mymodule'
[DEBUG] Rebinding com.mymodule.Myclient.Images
[DEBUG] Invoking generate-with
class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
[DEBUG] Analyzing method 'TopLeft' in type
com.mymodule.Myclient.Images
[ERROR] Unable to find image resource 'images/Dialogue_Corner.gif'
[ERROR] Unable to load module entry point class com.mymodule.Myclient
(see associated exception for details)
[ERROR] Failure to load module 'mymodule'
[ERROR] Deferred binding failed for 'com.mymodule.Myclient.Images';
expect subsequent failures

On May 4, 5:21 pm, Rajeev Dayal rda...@google.com wrote:
 Actually, the documentation says that GWT uses ClassLoader.getResource(..)
 to locate images. As a result, the syntax that you use in the annotation
 *should* be OS-agnostic. You should always use forward slashes ( / ) to
 separate path components.

 Is that not working for you?

 On Fri, May 1, 2009 at 6:20 PM, Igor Moochnick 
 igor.moochn...@gmail.comwrote:



  I have a relative path use in the @Resource attribute on my image
  bundle. Apparently the direction of the slashes are important and
  depend on what OS I'm building my project.

  On Windows it has to be \  and on Linux - /.

         public interface Images extends ImageBundle
         {
                �...@resource(images/Dialogue_Corner.gif)
                 AbstractImagePrototype TopLeft();
         }

  The documentation mentions that the GWT uses System.getResource method
  to locate the images.

  Any idea how to make it OS independent?

  BWT: if the application written correctly on the Windows, it should
  pick the Linux slash / with no problem, but, apparently, Java
  getResource is not the case.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



@Resource path is OS-gnostic ( \ or / depending on the Win/Linux). What is a workaround?

2009-05-01 Thread Igor Moochnick

I have a relative path use in the @Resource attribute on my image
bundle. Apparently the direction of the slashes are important and
depend on what OS I'm building my project.

On Windows it has to be \  and on Linux - /.

public interface Images extends ImageBundle
{
@Resource(images/Dialogue_Corner.gif)
AbstractImagePrototype TopLeft();
}

The documentation mentions that the GWT uses System.getResource method
to locate the images.

Any idea how to make it OS independent?

BWT: if the application written correctly on the Windows, it should
pick the Linux slash / with no problem, but, apparently, Java
getResource is not the case.

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