GWT MULTI MODULES WITH MAVEN PROFILE

2009-11-25 Thread Francesco Izzi
Hi all,

there is a way to set a multi gwt project with maven profiles?

For examples:

It should be nice have a way to activated profile with -Pmodule1.

in other words the ability to view a module or not depending on whether the
maven profile is activated.

Best Regard,


-- 
Francesco Izzi
CNR - IMAA
geoSDI - NSDI
Responsabile Sviluppo Software

C.da S. Loja
85050  Tito Scalo - POTENZA (PZ)
Italia

phone: +39 0971427305
fax:  +39 0971 427271
mob:+39 3402640314
mail: francesco.i...@geosdi.org
skype:  neofx8080

web: http://www.geosdi.org

--

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




Converting from MouseListeners to Mouse*Handlers

2009-11-25 Thread ky
I'm converting all the MouseListeners in an old hobby project into
Mouse*Handlers instead. My old MouseListeners were somewhat complex
and followed this form:

public class TooltipListener implements MouseListener {
some private variables declarations here

public void onMouseDown(Widget source, int x, int y) {}
public void onMouseMove(Widget source, int x, int y) {}
public void onMouseUp(Widget source, int x, int y) {}
public void onMouseEnter(Widget source) {}
public void onMouseLeave(Widget source) {}

private methods here
}

with some code in each onMouse* method. I then added these listeners
like this:

myCustomWidget.addMouseListener(new TooltipListener());


With the new Handler system, I have changed my class to look like the
following:

public class ToolTipHandler implements MouseMoveHandler,
MouseOverHandler, MouseDownHandler, MouseUpHandler, MouseOutHandler {
some private variables declarations here

public void onMouseMove(MouseMoveEvent event) {}
public void onMouseOver(MouseOverEvent event) {}
public void onMouseDown(MouseDownEvent event) {}
public void onMouseUp(MouseUpEvent event) {}
public void onMouseOut(MouseOutEvent event) {}

private methods here
}

Note that the ToolTipHandler class relies on shared private variables
between all the mouse methods. Each method has almost identical code
from before - the only difference are they use accessor methods from
the appropriate event object. I am adding this 5 part mouse handler
like this:

TooltipHandler handler = new TooltipHandler();
myCustomWidget.addMouseMoveHandler(handler);
myCustomWidget.addMouseOverHandler(handler);
myCustomWidget.addMouseDownHandler(handler);
myCustomWidget.addMouseUpHandler(handler);
myCustomWidget.addMouseOutHandler(handler);


Everything works great, but the code is a bit clunky and I suspect
there is a better way to do this. Is there? I'm using 1.7.1 right now,
but I'm happy to take suggestions pertaining to 2.0.

Thanks! =)

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: Serializing types that have only been included as a map generic in remote interface fails

2009-11-25 Thread krishna
Same issue here. Should this be raised as an issue? Good workarounds?

Regards,
Krishna

On Oct 16, 10:42 pm, Tercio  wrote:
> Same issue here
>
> com.google.gwt.user.client.rpc.SerializationException:
> com.test.action.BatchAction
>         at
> com.test.action.ActionService_TypeSerializer.raiseSerializationException
> (transient source for com.test.action.ActionService_TypeSerializer:
> 1017)
>         at com.test.action.ActionService_TypeSerializer.serialize(Native
> Method)
>         at
> com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.seriali ze
> (ClientSerializationStreamWriter.java:216)
>         at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
> Object
> (AbstractSerializationStreamWriter.java:129)
>         at com.test.action.ActionService_Proxy.executeAction(transient source
> for com.test.action.ActionService_Proxy:31)
>         at com.test.client.manager.impl.DefaultActionManager$1.execute
> (DefaultActionManager.java:64)
>         at com.google.gwt.user.client.CommandExecutor.doExecuteCommands
> (CommandExecutor.java:310)
>         at com.google.gwt.user.client.CommandExecutor$2.run
> (CommandExecutor.java:205)
>         at com.google.gwt.user.client.Timer.fireImpl(Timer.java:160)
>         at com.google.gwt.user.client.Timer.fireAndCatch(Timer.java:146)
>         at com.google.gwt.user.client.Timer.fire(Timer.java:138)
>
> On Oct 1, 12:56 pm, juggec  wrote:
>
>
>
> > I'm experiencing the same issues when having my signature defined as
> > void doIt(List>> list). Bar cannot be serialized. Any hints
> > on how to work around this apart from adding dummy methods just to get
> > the type whitelisted?
>
> > /J
>
> > On 14 Aug, 22:42, pgraham  wrote:
>
> > > Hi all,
>
> > > I believe I have encountered a bug with gwt serialization and Maps.
>
> > > I have created a service with a single method that has an AbstractMap
> > > as its only parameter.
>
> > > public interface DataService extends RemoteService {
>
> > >     public ChartData getChartData(AbstractMap > > List> filters);
>
> > > }
>
> > > When I invoke this method from the client side I get this error:
>
> > > org.sitebrand.report.gwt.dto.FilterTypeDto
> > >         at
> > > org.sitebrand.report.gwt.service.DataService_TypeSerializer.raiseSerializat
> > >  ­ionException
> > > (transient source for
> > > org.sitebrand.report.gwt.service.DataService_TypeSerializer:2403)
> > >         at
> > > org.sitebrand.report.gwt.service.DataService_TypeSerializer.serialize
> > > (Native Method)
> > >         at
> > > com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.seriali
> > >  ­ze
> > > (ClientSerializationStreamWriter.java:216)
> > >         at
> > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write
> > >  ­Object
> > > (AbstractSerializationStreamWriter.java:129)
> > >         at
> > > com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase
> > >  ­.serialize
> > > (Map_CustomFieldSerializerBase.java:49)
> > >         at
> > > com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer
> > >  ­.serialize
> > > (HashMap_CustomFieldSerializer.java:36)
> > >         at
> > > org.sitebrand.report.gwt.service.DataService_TypeSerializer.serialize
> > > (Native Method)
> > >         at
> > > com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.seriali
> > >  ­ze
> > > (ClientSerializationStreamWriter.java:216)
> > >         at
> > > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write
> > >  ­Object
> > > (AbstractSerializationStreamWriter.java:129)
> > >         at org.sitebrand.report.gwt.service.DataService_Proxy.getChartData
> > > (transient source for
> > > org.sitebrand.report.gwt.service.DataService_Proxy:31)
>
> > > If I add a dummy method to the service that defines the type that is
> > > failing to serialize as a parameter (see example) then calls to the
> > > getChartData() method work.
>
> > > public interface DataService extends RemoteService {
>
> > >     public void bleh(FilterTypeDto dto);
>
> > >     public void getChartData(AbstractMap>
> > > filters);
>
> > > }
>
> > > Has anyone else encountered this and found a solution that doesn't
> > > involve cluttering your service interface?
>
> > > Cheers,
> > > Philip

--

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




flextable getcellcount and clear issue...

2009-11-25 Thread golfdude

gwt 1.7...

I have a flextable in which I add a row, clear the table, and then add
another row. The getCellCount does not get reset during the second add
to zero. So the cells get added after the first col count.

Anybody else see this ? I see that this was reported as a bug in 2006
but I still see the issue.


gd

--

You received 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: Problem to structure GWT application (problème pour structurer l'application GWT)

2009-11-25 Thread Sripathi Krishnan
Approach 1 is the way to go with GWT.  See this discussion
thread.


GWT doesn't play all that well with Struts (or any other server side
web-framework). Use the approach if you are stuck with a legacy application
- but otherwise avoid it.

--Sri


2009/11/26 TalkinJive 

> Hi,
>
> I'm new with GWT. I've studied the StockWatcher tutorial. Now I want
> to do my application.
> But I can't understand how to organize it ???
>
> Which is right (1° or 2°) ?
>
> 1°) A GWT application is made of only one HTML page. I have to develop
> different Panel inside (for exemple).
>
> 2°) A GWT application can be made of a few HTML pages.
> In this case (which is right ?) :
> 1 HTML page = 1 EntryPoint = 1 module ===> I have to create a module
> for each HTML page ?
> or It's possible to have multiple EntryPoint en multiple HTML pages in
> the same module ?
>
> 3°) What about an application with GWT and Struts together ?
>
> Perhaps I'm wrong and no proposal (1° and 2°) is right.
> Thanx for your adivces.
> TalkinJive.
>
> --
>
> You received 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.




HMVP design pattern? Help!

2009-11-25 Thread Grary
Hi,

I'm new to GWT development, but the tutorials and project samples I've
inspected have impressed me with the value of using the MVP pattern
(and associated libraries for that.) Great. But now, as regards
planning the development of my GWT app, do I think about separate
parts of a given page each as having its own MVP structure and
coordinating via the singleton eventbus?

For example, imagine using several shopping carts on a page to shop
concurrently, but impose a rule that none of the carts may contain the
same item. Never having done MVP, I'd say that each shopping cart can
have its own MVP structure with item duplication prevented by checking
proposed additions to a shopping cart against all the others via the
event bus.

Any thoughts?

Thanks,

Grar

--

You received 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.center() not working in Firefox 3.5.5

2009-11-25 Thread David T
Hi All,

I'm trying to use the provided PopupPanel.center() method to center a
popup panel on the screen. This works fine on Opera and Safari
centering the popup relative to the browser window. In Firefox though
it centers the popup relative to the entire page.

I've tried to implement my own center method as follows:

private void center() {
popup.setPopupPositionAndShow(new PositionCallback() {

public void setPosition(int offsetWidth, int offsetHeight)
{
int[] winSize = windowSize();
int left = (winSize[0] - offsetWidth) >> 1;
int top = (winSize[1] - offsetHeight) >> 1;
popup.setPopupPosition(Window.getScrollLeft() + left,
Window.getScrollTop() + top);
}

});
}

public final native int[] windowSize() /*-{
var myWidth = 0, myHeight = 0;
if (typeof(window.innerWidth) == 'number') {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if (document.documentElement &&
(document.documentElement.clientWidth ||
document.documentElement.clientHeight)) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if (document.body && (document.body.clientWidth ||
document.body.clientHeight)) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
return [myWidth, myHeight];
}-*/;

But this doesn't work as the windowSize() method returns 0 for reasons
I don't know.

--

You received 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.center() not working in Firefox 3.5.5

2009-11-25 Thread David T
Hi All,

I'm trying to use the provided PopupPanel.center() method to center a
popup panel on the screen. This works fine on Opera and Safari
centering the popup relative to the browser window. In Firefox though
it centers the popup relative to the entire page.

I've tried to implement my own center method as follows:

private void center() {
popup.setPopupPositionAndShow(new PositionCallback() {

public void setPosition(int offsetWidth, int offsetHeight)
{
int[] winSize = windowSize();
int left = (winSize[0] - offsetWidth) >> 1;
int top = (winSize[1] - offsetHeight) >> 1;
popup.setPopupPosition(Window.getScrollLeft() + left,
Window.getScrollTop() + top);
}

});
}

public final native int[] windowSize() /*-{
var myWidth = 0, myHeight = 0;
if (typeof(window.innerWidth) == 'number') {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if (document.documentElement &&
(document.documentElement.clientWidth ||
document.documentElement.clientHeight)) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if (document.body && (document.body.clientWidth ||
document.body.clientHeight)) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
return [myWidth, myHeight];
}-*/;

But this doesn't work as the windowSize() method returns 0 for reasons
I don't know.

--

You received 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.center() not working in Firefox 3.5.5

2009-11-25 Thread David T
Hi All,

I'm trying to use the provided PopupPanel.center() method to center a
popup panel on the screen. This works fine on Opera and Safari
centering the popup relative to the browser window. In Firefox though
it centers the popup relative to the entire page.

I've tried to implement my own center method as follows:

private void center() {
popup.setPopupPositionAndShow(new PositionCallback() {

public void setPosition(int offsetWidth, int offsetHeight)
{
int[] winSize = windowSize();
int left = (winSize[0] - offsetWidth) >> 1;
int top = (winSize[1] - offsetHeight) >> 1;
popup.setPopupPosition(Window.getScrollLeft() + left,
Window.getScrollTop() + top);
}

});
}

public final native int[] windowSize() /*-{
var myWidth = 0, myHeight = 0;
if (typeof(window.innerWidth) == 'number') {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if (document.documentElement &&
(document.documentElement.clientWidth ||
document.documentElement.clientHeight)) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if (document.body && (document.body.clientWidth ||
document.body.clientHeight)) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
return [myWidth, myHeight];
}-*/;

But this doesn't work as the windowSize() method returns 0 for reasons
I don't know.

--

You received 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: Problems in sending http request manully by com.google.gwt.http.client.*

2009-11-25 Thread Yozons Support on Gmail
Javascript has no byte (or char) type, so I doubt it can do anything that
returns or processes bytes directly.

--

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




Problem to structure GWT application (problème pour structurer l'application GWT)

2009-11-25 Thread TalkinJive
Hi,

I'm new with GWT. I've studied the StockWatcher tutorial. Now I want
to do my application.
But I can't understand how to organize it ???

Which is right (1° or 2°) ?

1°) A GWT application is made of only one HTML page. I have to develop
different Panel inside (for exemple).

2°) A GWT application can be made of a few HTML pages.
In this case (which is right ?) :
1 HTML page = 1 EntryPoint = 1 module ===> I have to create a module
for each HTML page ?
or It's possible to have multiple EntryPoint en multiple HTML pages in
the same module ?

3°) What about an application with GWT and Struts together ?

Perhaps I'm wrong and no proposal (1° and 2°) is right.
Thanx for your adivces.
TalkinJive.

--

You received 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: Google Web Toolkit 2.0 RC2 Now Available

2009-11-25 Thread Open eSignForms
Thanks for RC2.  I'm giving a try right now and it so far so good.

Was there no change to the Firefox extension?  Just checking since it
was crashing FF pretty frequently under RC1.

--

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




Chrome extension with gwt

2009-11-25 Thread Gal Dolber
I'd like to share this project I made, is just proof of concept, but it has
some interesting things, Greetings!
http://code.google.com/p/gwt-gae-bookmarks/

--

You received 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 Developer Plugin works only sometimes

2009-11-25 Thread Gal Dolber
Hey, GWT 2.0 rc2 just got out! :)

2009/11/25 Yozons Support on Gmail 

> RC2?  That's not yet been announced as available.  Is it now?
>
>  --
> You received 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: CommandPattern vs Server side Event Bus?

2009-11-25 Thread hbraun
right, errai-bus might be what you are looking for. Is does server
push and has an easy to use programming model.

On Nov 17, 10:03 am, pedjak  wrote:
> > Sure by nature http does not support events instantiated on by the server.
> > But there are some workarounds. Try to google for http server push, or
> > comet.
>
>   Have you heard for Errai (http://jboss.org/errai) ? It seems that it
> does exactly what you need.
>
>   Best,
>
> Predrag

--

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




DialogBox not displaying correctly

2009-11-25 Thread TD
Hi,

I've edited the Starter Project to popup  a DialogBox when I click a
Label.  However, the DialogBox appears all garbled.  A screenshot can
be found here: http://files.ducbase.com/GWT.png .

This is the code I use:

Label configLabel = new Label("Setup");
RootPanel.get("config").add(configLabel);
configLabel.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
DialogBox config = new DialogBox(false);
config.setText("Title");
config.setAnimationEnabled(true);
config.setPixelSize(400, 300);
TabPanel tabPanel = new TabPanel();
tabPanel.add(new HTML("foo"), "Levels");
tabPanel.add(new HTML("bar"), "bar");
tabPanel.selectTab(0);
config.setWidget(tabPanel);
config.show();
}
});

Any ideas?

Thanks!
Tom.

--

You received 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 Developer Plugin works only sometimes

2009-11-25 Thread Gal Dolber
And you also need to update the eclipse plugin.
http://dl.google.com/eclipse/plugin/3.5/zips/gpe-e35-1.2rc1.zip :)

2009/11/25 Gal Dolber 

> Hey, GWT 2.0 rc2 just got out! :)
>
> 2009/11/25 Yozons Support on Gmail 
>
> RC2?  That's not yet been announced as available.  Is it now?
>>
>>  --
>> You received 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.




String problem

2009-11-25 Thread Gosia
Hi
I''ve got small problem. I've an GWT application in which I would like
do something like this

String myString = new String("something");
String otherString = new String(myString.getBytes(),"windows-1252");


I'm writting code in Eclipse, and in code there aren't any problems.
But when I'm trying to run application in Hosted Mode or compile it
show some problems

Line 462: The method getBytes() is undefined for the type String

I know , reason of that is JRE Emulation for lang which doesn't have
those methods.  Is anybody knows how do it in other way (the same
effect but possible in GWT).

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.




GWT 2 RC1 working for anyone?

2009-11-25 Thread Sekhar
I'm having a terrible time trying to get 2RC1 to work. Almost every
step is nightmare, like:

(1) Refuses to install on FF (3.5.5) or IE 8 (8.0.6001.18372) - it
says it's installed but complains that the plugin is missing when I
restart - installs only on Chrome (4.0.249.11) for me.
(2) I can create a GWT 2 project, but it fails 90% of the time (the
odd thing is, it does work occasionally) with a variety of errors (not
finding the module or package not matching or class not found)

I'm quite frustrated, but wonder it's just me or my setup. Does anyone
else have this working? I'm using Galileo and am on Vista 64 bit.
Please help.

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: dynamic Messages/ImageBundle possible?

2009-11-25 Thread kgeri
[Not sure if my previous post went through, so...
]


For dynamic (string-accessible) message support take a look at this:
http://code.google.com/p/gwt-dmesg



I wrote it because we've faced the same problem a million times now in
our GWT projects and it was annoying :)



Hope it helps, comments and ideas are welcome!


On nov. 24, 23:36, denis56  wrote:
> Oh, thanks for the hint.
>
> Are you aware of the similar class for Messages?
>
> On 23 Nov., 16:44, "Dean S. Jones"  wrote:
>
> > this might help a little
>
> >http://code.google.com/p/asmodaiosgwt/
>
> > On Nov 23, 10:40 am, denis56  wrote:
>
> > > Hi there,
>
> > > I wonder if it is possible to use Internationalization and
> > > ImageBundles in GWT in a more dynamic way. For instance, if there is a
> > > client method
>
> > > void createSportTitleAndImage(String sportId) {
>
> > > }
>
> > > is it somehow possible to have the  "sportId" argument  being
> > > dynamically plugged into the relevant ImageBundle/Messages method to
> > > return appropriate code without the if/else-jungle.
>
> > > So instead of:
>
> > > void createSportTitleAndImage(String sportId) {
> > >  if (sport.equals("basketball"))
> > >     ImageBundle.getBasketballImage();
> > >     Messages.getBasketballText();
> > >  else if (sport.equals("handball"))
> > >     ImageBundle.getHandballImage();
> > >     Messages.getHandballText();
> > >  else ...
>
> > > }
>
> > > to have something like :
>
> > > void createSportTitleAndImage(String sportId) {
> > >     ImageBundle.getSportImageById(sportId);
> > >     Messages.getSportTextById(sportId);
>
> > > }
>
> > > where getSportByName(sportId) would fetch resource for the key "base +
> > > sportId" ?
>
> > > That would really simplify things:)
> > > 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: Tool to convert HTML in GWT widgets

2009-11-25 Thread sridhar vennela
let me know. i can try. also attach some examples...

On Wed, Nov 25, 2009 at 12:52 AM, gwtfanb0y
wrote:

> This sounds very interesting to me, please open up the code for us.
>
>
> On 24 Nov., 22:32, Davi Pires  wrote:
> > Hi all,
> >
> > In my company, we have been working with GWT for almost a year,
> > developing a ridesharing application (http://www.bigoo.com.br). I
> > really can't overstate how much we enjoy developing in java, using
> > familiar tools, debugging in hosted mode, and so on. But one thing
> > that has really bothered us for a long time is the dificulty of
> > integrating the work of developers (who write the code that eventually
> > outputs the HTML) with the work of designers (who write CSS).
> >
> > Eventually we came up with a method where the designer gave the devs
> > an HTML fragment that worked as a 'contract' between their codes. The
> > devs had to write the GWT code that instantiated the widgets and set
> > ids and styles according to the spec. It worked, we did the job, but
> > there were lots of problems on the way:
> >
> > - every little change to the 'contract' (new id, new classes) had to
> > be implemented by the developer. Therefore, there was a significant
> > delay between the designer's writing of the css and it being reflected
> > on the system.
> > - the designer felt rather demotivated by not having control over
> > generation of the UI.
> >
> > Well, I guess some of these problems have already been mentioned here.
> > I won't dwell on it anymore.
> >
> > Recently we implemented a small tool to help us overcome this problem.
> > In short, the designer writes the specs in an extended subset of HTML,
> > outside of the java code, in a properties file. This file is processed
> > by a generator we wrote that outputs the java code needed to
> > instantiate the gwt widgets corresponding to that spec.
> >
> > In the GWT code we can retrieve each subnode of the tree (or
> > 'subwidget') by the id, and add to it the appropriate handlers, or set
> > any other property.
> >
> > We have automated the instantiation of the widgets, their addition the
> > the corresponding parents, the setting of a few properties such as
> > ids, classes, titles, value and enabled. It has allowed us to
> > reimplement complete pages, with all the interaction we had before,
> > significantly speeding up the development process, reducing the size
> > of the code, making it more readable, and increasing developer and
> > designer satisfaction.
> >
> > I'd like to ask the community if anyone is interested on such a tool.
> > We are planning on opening up this code, but it still needs some work.
> > If it's of anyone's interest we would gladly open it.
> >
> > Cheers,
> > Davi Pires
> >
> > --
> >
> > eco-blog:http://tarjaverde.wordpress.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: Google Web Toolkit 2.0 RC2 Now Available

2009-11-25 Thread Sekhar
That was quick, thanks! All the issues I had (error loading module, FF
not working, etc.) are gone; but I'm still having trouble with IE8: it
installs, but keeps saying the plugin isn't installed. I'd uninstalled
in Control Panel as suggested, and the new plugin is on the list now,
but IE keeps asking for a plugin. Anyone else?

On Nov 25, 12:52 pm, John LaBanca  wrote:
> Hi everyone,
>
> We're getting close! GWT 2.0 SDK RC2 and Google Plugin for
> Eclipse 1.2 RC2 are now available for you to try.
>
> Download the GWT 2.0 SDK RC2 
> here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=gw...
>
> The full documentation is still a work in progress, but you can find
> instructions for using the updated SDK and Eclipse plugin 
> here:http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC
>
> We've resolved several issues since RC1 and we feel pretty darn good
> about it, but as always, we caution you against using RC2 in production.
>
> Windows users who have previously installed the Google Web Toolkit Developer
> Plugin for IE will have to uninstall the old version and
> install the new version. This action is required because the file locations
> have changed. The RC1 installer required administrative
> privileges, but the new installer does not. Use the following steps:
> 1. Open Control Panel
> 2. Select Add/Remove Programs
> 3. Select Google Web Toolkit Developer Plugin for IE and click uninstall
> 4. During your next attempt to use GWT 2.0 development mode in IE, you will
> be prompted to install the GWT Developer Plugin, which will
> download an updated installer that does not require administrative
> privileges
>
> We are eager to get your feedback, both good and bad, in the Google Web
> Toolkit Developer Forum:http://groups.google.com/group/google-web-toolkit
>
> If you find specific bugs to report, please do so at the GWT Issue 
> Tracker:http://code.google.com/p/google-web-toolkit/issues
>
> Cheers,
> John LaBanca, on behalf of the GWT team

--

You received 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 Developer Plugin works only sometimes

2009-11-25 Thread Sekhar
Thanks for raising this, hope Google fixes this soon. Meanwhile,
here's a workaround that's working for me. Say you have a GWT2 module
under com.allurefx.gwt2 and you're trying the sample greet app, then:

(1) Remove the rename-to attribute for the module - when you run the
app, it will create a directory com.allurefx.gwt2.GWT2, with
com.allurefx.gwt2.GWT2.nocache.js
(2) Edit the HTML to load com.allurefx.gwt2.GWT2/
com.allurefx.gwt2.GWT2.nocache.js (rather than the default gwt2/
gwt2.nocache.js)
(3) Edit war/WEB-INF/web.xml to set url as /com.allurefx.gwt2.GWT2/
greet (rather than the default /gwt2/greet)

Not the prettiest way to do it, but something to get going while
Google fixes it.

On Nov 25, 7:36 am, Charlie M  wrote:
> Just in case any one is intersted. I have raised an issue for this:
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=4274
>
> Charlie M
>
> On Nov 25, 1:01 pm, Charlie M  wrote:
>
>
>
> > Hi have exactly the same experince.
>
> > I have followed it through with a debugger. Whats happening is for
> > whatever reason its assuming themodulename includes the package
> > path. This is the default unless you override it with therename-to
> > attribute in themoduleconfig. Since its just using themodulename
> > not the full package path, when it tries to convert it to a path
> > relative to the class path it won't work.So it ends up looking for 
> > themodulein the default package not the one you are actually using.
>
> > For me removing therename toand recompiling works, but it breaks the
> > RPCs since they uses themodulename as the root of their serverlets
> > url.
>
> > Did you open an issue on this?
>
> > Charlie M
>
> > On Nov 20, 8:58 am, cromoteca  wrote:
>
> > > Hi,
>
> > > yesterday I installed GWT 2.0 RC1 and it seems to work randomly.
> > > Before opening an issue, I'd like to know if I'm the only one to
> > > experience it. I was writing an application with 1.7 and I just
> > > replaced the GWT files without any change of code.
>
> > > When I run the new dev mode, everything starts as normal. I browse 
> > > tohttp://meshcms.dev:8887/meshcms/resources/host_page.mfm?mode=file_man...
> > > (mfm is mapped to FreeMarker, meshcms.dev points to localhost).
>
> > > In the development mode window, two elements are marked in red:
> > > 00:01:48,887 [INFO] Connection received from 127.0.0.1:50316
> > > 00:01:48,995 [ERROR] Failed to loadmodule'meshcms' from user agent
> > > 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.5) Gecko/
> > > 20091102 Firefox/3.5.5' at 127.0.0.1:50316
>
> > > In the host_page.mfm tab there is another red line:
> > > 00:01:48,995 [ERROR] Unable to find 'meshcms.gwt.xml' on your
> > > classpath; could be a typo, or maybe you forgot to include a classpath
> > > entry for source?
>
> > > There is no other error, even in the IDE.
>
> > > My setup is:
> > > Windows 7 64bit
> > > NetBeans 6.7 without GWT plugin (just an Ant task that launches dev
> > > mode)
> > > Firefox 3.5.5
> > > IE8
>
> > > I just have to restart dev mode until it works. It seems to work
> > > randomly, but when it works the application runs perfectly until I
> > > close dev mode.
>
> > > My gwt.xml file is com.cromoteca.meshcms.Client.gwt.xml and contains:
>
> > > 
> > >         
>
> > >         
> > >         
> > >         
> > >         
>
> > >         
>
> > >         
>
> > >         
> > > 
>
> > > So why is dev mode searching for meshcms.gwt.xml?
>
> > > My Ant task is:
>
> > >   
> > >     
> > >       
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >       
> > >     
> > >   

--

You received 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: Full GWT Website with MS SQL Server 2008

2009-11-25 Thread Pascal Gouel
love your work dude!!!

On Nov 24, 3:19 pm, Joe  wrote:
> Hello Everyone, Please check this website and any comments or reviews
> are welcomed!
>
> http://www.property.com.lb
>
> A Website fully developed in GWT and connected to MS SQL Server 2008

--

You received 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: Google Web Toolkit 2.0 RC2 Now Available

2009-11-25 Thread armogur
is it possible, that java.util.Date behaves differently in devmode
than production mode?

i am using hungarian locale, and the getTimezoneOffset() function
gives me different values on a Date object in devmode than production
mode!

On nov. 25, 21:52, John LaBanca  wrote:
> Hi everyone,
>
> We're getting close! GWT 2.0 SDK RC2 and Google Plugin for
> Eclipse 1.2 RC2 are now available for you to try.
>
> Download the GWT 2.0 SDK RC2 
> here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=gw...
>
> The full documentation is still a work in progress, but you can find
> instructions for using the updated SDK and Eclipse plugin 
> here:http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC
>
> We've resolved several issues since RC1 and we feel pretty darn good
> about it, but as always, we caution you against using RC2 in production.
>
> Windows users who have previously installed the Google Web Toolkit Developer
> Plugin for IE will have to uninstall the old version and
> install the new version. This action is required because the file locations
> have changed. The RC1 installer required administrative
> privileges, but the new installer does not. Use the following steps:
> 1. Open Control Panel
> 2. Select Add/Remove Programs
> 3. Select Google Web Toolkit Developer Plugin for IE and click uninstall
> 4. During your next attempt to use GWT 2.0 development mode in IE, you will
> be prompted to install the GWT Developer Plugin, which will
> download an updated installer that does not require administrative
> privileges
>
> We are eager to get your feedback, both good and bad, in the Google Web
> Toolkit Developer Forum:http://groups.google.com/group/google-web-toolkit
>
> If you find specific bugs to report, please do so at the GWT Issue 
> Tracker:http://code.google.com/p/google-web-toolkit/issues
>
> Cheers,
> John LaBanca, on behalf of the GWT team

--

You received 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: Making command pattern RPC look like traditional GWT RPC

2009-11-25 Thread Jamie Gennis
Another thing that I came across that other authors of generator libraries
may also have problems with is testing classes that interact with a
TypeOracle.  I spent a couple hours last night updating my
TypeOracleBuilder
while
moving from GWT 2.0.0-ms1 to 2.0.0-rc1.  I'm not sure what the right
solution is here.  The TypeOracleBuilder and MockJavaResource classes that
are used for GWT's internal tests could be included in gwt-dev.jar for
external libs to use.  Maybe they belong in a new GWT testing jar.  I could
also factor these out of gwt-remote-action and maintain a 3rd party lib in
lock-step with GWT versions.  Or maybe nobody other than me wants this
functionality and it's not worth spending any time on.

Anyone have any thoughts on this?

Jamie

On Mon, Nov 23, 2009 at 7:08 AM, Jamie Gennis  wrote:

> Hi all,
>
> I posted this on the GWT Contributors group last week hoping to start a
> discussion about the GWT internals that I'm using for the library I'm
> working on (and whether they all need to be internals), but I haven't gotten
> any responses about that so I'm reposting to the GWT developers group...
>
> I've been writing a GWT library to implement the command pattern for GWT
> RPC calls using the same interfaces that traditional GWT RPC uses.
>  Basically, when an app calls a method of the FooAsync action service
> interface, an action object is created from the method arguments, processed
> by some action filters on the client, then passed to the server.  The server
> then pulls the method arguments out of the action object and passes them as
> arguments to the appropriate method of the Foo interface implementation
> class.  The return value (or thrown Throwable) from that method then gets
> put into an action result object on the server and sent back to the client,
> where it gets processed by filters and eventually has the return value or
> throwable pulled out and passed to the onSuccess or onFailure methods of the
> async callback.
>
> I have a working (albeit not extensively tested) implementation at
> http://code.google.com/p/gwt-remote-action/, but the implementation relies
> on some GWT internals, so it's rather brittle at the moment. I'd like to get
> some feedback on how I can change my implementation to be more future-proof
> (or correct if it isn't), and which (if any) of the GWT internals that I'm
> using might be candidates for becoming a part of GWT's public interface.
>
> To get a better idea of how this library is intended to be used, check out
> the Usage 
> Guide(still a 
> work in progress).
>
> The tricky part of the implementation is the action result.  The purpose of
> an action result object is to encapsulate the result of executing an action
> in such a way that action filters can manipulate it without having any
> knowledge of what the action was.  It needs to contain an arbitrary return
> value object or an arbitrary Throwable object (as well as an indication that
> the Throwable was thrown rather than returned).  These objects are exposed
> via the 
> ActionResult
>  interface.
>  Simply having a general action result class that contains a return value
> field of type Object and an exception field of type Throwable is not
> desirable because it would cause deserialization code for every class that
> GWT knows about to be included in the compiled javascript.
>
> The current implementation works by generating one action result class for
> each RPC method.  Identical action result classes are generated by a GWT
> Generator at gwtc-time (for the client) and via Java byte code generation at
> run-time (for the server).  My original idea was that this method-specific
> action result class could have a result field of the specific return type of
> the method along with a field for each type in the method's throws list.
>  This turned out not to be necessary (at least for the cases I've tested),
> because when GWT calls the Generator for the 
> ActionExecutionService
>  (the
> traditional GWT RPC that sends the action objects to the server) it doesn't
> find any of the generated method-specific action result classes.  Because of
> this I simplified the action result classes to just have one field of type
> Throwable, and I verified that not all the Throwable classes get included in
> the deserializable classes list in the *.rpc.log files.  I'm not sure that
> this behavior doesn't depend on GWT.create being called in a specific order
> or something else I'm not aware of, but that should be solvable by splitting
> the t

GWT 2.0rc2 Date handling

2009-11-25 Thread armogur
is it possible, that java.util.Date behaves differently in devmode
than production mode?

i am using hungarian locale, and the getTimezoneOffset() function
gives me different values on a Date object in devmode than production
mode!

--

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




Problems in sending http request manully by com.google.gwt.http.client.*

2009-11-25 Thread wangfeng
Hi guys,

I am new in this field and this is a problem when I want to construct
a http request and send it.

Learn form GWT that I can send a request as follows:
   1. String url =
   2. RequestBuilder builder = new RequestBuilder
(RequestBuilder.POST,URL.encode(url));
   3. builder.setHeader("Content-Type", "application/x-www-form-
urlencoded");
   4. String form = "name=aaa&age=13";
   5. builder.sendRequest(form,newRequestCallback() {
   6. .
   7. });

So,what if there is a file input field and the contetn type is
multipart/form-data ? so according to the standard HTTP header format
when sending this kind of form,my solution is as follows :

public void onModuleLoad() {
final TextBox text = new TextBox();
final Button btn = new Button("Http Request Test");

final Label lbl = new Label("");

RootPanel.get().add(text);
RootPanel.get().add(btn);

RootPanel.get().add(lbl);

btn.addClickHandler(new ClickHandler()
{

public void onClick(ClickEvent event) {

btn.setEnabled(false);
String url = 
"http://export.writer.zoho.com/remotedoc.im?
apikey=e13ac14e4b7bd43f8bae584105d39318&output=editor";
String BOUNDARY = 
"---7d4a6d158c9";
url = URL.encode(url);
RequestBuilder builder = new 
RequestBuilder(RequestBuilder.POST,
url);
StringBuffer sb = new StringBuffer();


sb = sb.append("--");
sb = sb.append(BOUNDARY);
sb = sb.append("\r\n");
sb = sb.append("Content-Disposition: form-data; 
name=\"Edit\"\r\n\r
\n");
sb = sb.append(URL.encode("divbutton"));
sb = sb.append("\r\n");

sb = sb.append("--");
sb = sb.append(BOUNDARY);
sb = sb.append("\r\n");
sb = sb.append("Content-Disposition: form-data; 
name=\"content\";
filename=\"1.txt\"\r\n");
sb = sb.append("Content-Type: 
application/octet-stream\r\n\r\n");

byte[] data = sb.toString().getBytes();
byte[] end_data = ("\r\n--" + BOUNDARY + 
"--\r\n").getBytes();
byte[] fileContent=; // the file content

/*
//Logic to write the data to http header,it may 
like this but not
support by request builder:
output = builder.openOutputStream();
output.write(data);
output.write(fileContent);
output.write(end_data);
*/

builder.setHeader("Content-Type", 
"multipart/form-data;
charset=utf-8;boundary="+BOUNDARY);
builder.setHeader("Content-Length", 
String.valueOf(data.length +
fileContent.length + end_data.length));

try {
builder.send();
} catch (RequestException e) {
e.printStackTrace();
}
}

}
);


}

1. The code will fail in compilation ,ERROR:The method getBytes() is
undefined for the type String ? Why does this error happen?
2.How can I add the byte[] to the related field in the http header?

Thanks very much !!!

--

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




I18N Date problem

2009-11-25 Thread armogur
i just trying this new 2.0 rc1 gwit, and have a problem with the
handling of the date (it is actually java.util.Date).

using locale hu, with setting it in my Application.gwt.xml and in the
hosting html.

in my application, which is manages entities, and some entity have
Date type field, i am selecting the date with datepicker on the
frontend ui, and when persisting it in development mode everything is
ok, but when i compile it and deploy it to tomcat, and using this
application in production mode, the persisted date int the database is
one day before what is actually i selected in the browser!
the database in both cases are the same!

could this wrong behaviour is my mistake, or it is the fault of GWT?
can someone confirm 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.




Re: dynamic Messages/ImageBundle possible?

2009-11-25 Thread kgeri
Hi!

In our GWT projects we were faced with the dynamic message handling
problem for a long time, and just recently I had the free time to code
this module:

Dynamic Messages for GWT:
http://code.google.com/p/gwt-dmesg

It does exactly what you need :) Comments and ideas are of course
welcome.


On Nov 24, 11:36 pm, denis56  wrote:
> Oh, thanks for the hint.
>
> Are you aware of the similar class for Messages?
>
> On 23 Nov., 16:44, "Dean S. Jones"  wrote:
>
>
>
> > this might help a little
>
> >http://code.google.com/p/asmodaiosgwt/
>
> > On Nov 23, 10:40 am, denis56  wrote:
>
> > > Hi there,
>
> > > I wonder if it is possible to use Internationalization and
> > > ImageBundles in GWT in a more dynamic way. For instance, if there is a
> > > client method
>
> > > void createSportTitleAndImage(String sportId) {
>
> > > }
>
> > > is it somehow possible to have the  "sportId" argument  being
> > > dynamically plugged into the relevant ImageBundle/Messages method to
> > > return appropriate code without the if/else-jungle.
>
> > > So instead of:
>
> > > void createSportTitleAndImage(String sportId) {
> > >  if (sport.equals("basketball"))
> > >     ImageBundle.getBasketballImage();
> > >     Messages.getBasketballText();
> > >  else if (sport.equals("handball"))
> > >     ImageBundle.getHandballImage();
> > >     Messages.getHandballText();
> > >  else ...
>
> > > }
>
> > > to have something like :
>
> > > void createSportTitleAndImage(String sportId) {
> > >     ImageBundle.getSportImageById(sportId);
> > >     Messages.getSportTextById(sportId);
>
> > > }
>
> > > where getSportByName(sportId) would fetch resource for the key "base +
> > > sportId" ?
>
> > > That would really simplify things:)
> > > 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.




How to use "Add to client bundle" w/ GPE RC1 & RC2

2009-11-25 Thread Jeff Chimene
Hi,

How does this feature work? The child browse dialog is empty.

I've tried pasting the qualified name of a ClientBundle into the main dialog
box. This yields the error "Missing client bundle type
com.example.MainView$Resources"

FWIW, I've been using the ClientResource & CSSResource since the RC1 debut
w/ no problem.

Cheers,
jec

--

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




Widget support for "setUserObject" like TreeItem

2009-11-25 Thread Open eSignForms
Is there any plan to allow more widgets to support "user objects"
being tied to them so that when events occur on the widget, you can
easily access the object it's related to in the application domain?

I only see this in TreeItem, which is nice, since when a tree item is
selected you can take appropriate action based on the model object
that the tree item represents.

This would a really nice feature it seems to me and could be part of
all Widgets.  That way, even when a CheckBox is checked or unchecked,
it would be easy to access the domain object that knows about this
status so if I have lots of CheckBoxes on a page, I don't have to map
them myself.

If there's such a feature, or a better way to map between widgets and
domain objects, please let me know since I'd love to clean up my
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-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.




TabLayoutPanel css

2009-11-25 Thread P.G.Taboada
Hi,

I am test driving TabLayoutPanel, but I can't find any css in the
themes delivered by gwt rc1 | rc2 for this component.

Am I missing something?

brgds

Papick

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: Development Mode Firefox 64bit Linux Issue

2009-11-25 Thread andreit
Same here, I am on Firefox 64bit Linux too. It fails to recognize that
plugin already has been installed.
Today I've updated plugin to to a latest version
0.9.7135.20091123192202, but still facing the same issue.

On Nov 25, 10:16 am, alexmat  wrote:
> Dev mode starts up fine. Point firefox at the url, download and
> install plugin. Restart... and it asks me to install the plugin again.
> It is already installed though. Anyone else seeing this?
>
> Any advice?

--

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




Datepicker and week numbers

2009-11-25 Thread P.G.Taboada
Any plans to include week numbers to the calendar widget?

brgds,

Papick

--

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




Google Web Toolkit 2.0 RC2 Now Available

2009-11-25 Thread John LaBanca
Hi everyone,

We're getting close! GWT 2.0 SDK RC2 and Google Plugin for
Eclipse 1.2 RC2 are now available for you to try.

Download the GWT 2.0 SDK RC2 here:
http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=gwt-2.0.0-rc2

The full documentation is still a work in progress, but you can find
instructions for using the updated SDK and Eclipse plugin here:
http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC

We've resolved several issues since RC1 and we feel pretty darn good
about it, but as always, we caution you against using RC2 in production.

Windows users who have previously installed the Google Web Toolkit Developer
Plugin for IE will have to uninstall the old version and
install the new version. This action is required because the file locations
have changed. The RC1 installer required administrative
privileges, but the new installer does not. Use the following steps:
1. Open Control Panel
2. Select Add/Remove Programs
3. Select Google Web Toolkit Developer Plugin for IE and click uninstall
4. During your next attempt to use GWT 2.0 development mode in IE, you will
be prompted to install the GWT Developer Plugin, which will
download an updated installer that does not require administrative
privileges

We are eager to get your feedback, both good and bad, in the Google Web
Toolkit Developer Forum:
http://groups.google.com/group/google-web-toolkit

If you find specific bugs to report, please do so at the GWT Issue Tracker:
http://code.google.com/p/google-web-toolkit/issues

Cheers,
John LaBanca, on behalf of the GWT team

--

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




How to position a PopupPanel like google does with error popups in Gmail

2009-11-25 Thread Jaap
Hi

I'd like to have PopupPanel which I show at the top and in the centre
of the screen when an error occured with a red background, with a
small text like "Oops an error occured please try again"

How do I do this? I'm struggling with getting the right CSS for this.

Thanks

Jaap

--

You received 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: Too much is happening (the events are crowding the bus)?

2009-11-25 Thread Arthur Kalmenson
I agree with Matt here. We also followed the same principle of having
many smaller events, meaning a Presenter will get only the event it
wants to listen to. Using an enum in the event could work too, but
again as Matt pointed out you'll end up having if-then-else trees,
which is hard to read, test and maintain. We are able to reuse some
events by making them generic.

It's going to be up to you, you can either go with a hybrid bus
architecture where classes reach into each other and listen to events
directly, or you can go for a full bus architecture where _everything_
that happens is an event. The latter has the advantage of being highly
decoupled, while the former has the advantage of having fewer event
classes and maybe easier to understand the flow because there is some
coupling.

--
Arthur Kalmenson



On Tue, Nov 17, 2009 at 9:53 AM, Matt Bishop  wrote:
> Your simple, many-classes design is actually a Good Thing.  Event
> objects should really only do one specific step in the workflow of
> your application.  Lots of small, discrete and completely specific
> action classes is far preferrable to a smaller set of classes that
> contain if-then-else trees and switch statements.
>
> Don't be afraid of lots of small classes, it is usually a good thing.
> As Grady Booch once wrote, if your application code is too complicated
> to understand, break things down further with more classes.
>
> --
>
> You received 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=.
>
>
>

--

You received 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.i18n.client.Messages

2009-11-25 Thread Arthur Kalmenson
This document should help:
http://code.google.com/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html

--
Arthur Kalmenson



On Tue, Nov 10, 2009 at 12:57 PM, jianjun  wrote:
> I'm using the Messages.
> What's the rule(s) to modify an existed Message? Will the translator
> pick it up?
> 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=.
>
>
>

--

You received 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 Developer Plugin works only sometimes

2009-11-25 Thread Yozons Support on Gmail
RC2?  That's not yet been announced as available.  Is it now?

--

You received 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 Developer Plugin works only sometimes

2009-11-25 Thread cromoteca
Hi,

I'm happy to say that the loading issue seems to be completely solved
in RC2. I haven't seen any other crash yet, but yes, I'm using Firefox
3.5.5.

On 25 Nov, 17:58, Riley  wrote:
> After performing a clean install of Eclipse, GAE 1.2.6,  GWT 2 RC1,
> and the new plugin, I'm getting the same issue.  When I create a new
> GAE+GWT project with the  plugin and try to run it from dev mode in
> firefox, I get the following error:
>
> [ERROR] Failed to load module 'test' from user agent 'Mozilla/5.0
> (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316
> Firefox/3.0.10 (.NET CLR 3.5.30729)' at riley_dell1:1609
> com.google.gwt.core.ext.UnableToCompleteException: (see previous log
> entries)
> ...
>
> When I deploy the app to appspot, it works perfectly.  Argh!  Thanks
> for posting issue 4274, Charlie.  For me, removing the rename-to
> attribute from test.gwt.xml doesn't seem to change any behavior.
>
> On Nov 25, 7:01 am, Charlie M  wrote:
>
>
>
> > Hi have exactly the same experince.
>
> > I have followed it through with a debugger. Whats happening is for
> > whatever reason its assuming the module name includes the package
> > path. This is the default unless you override it with the rename-to
> > attribute in the module config. Since its just using the module name
> > not the full package path, when it tries to convert it to a path
> > relative to the class path it won't work.So it ends up looking for the
> > module in the default package not the one you are actually using.
>
> > For me removing the rename to and recompiling works, but it breaks the
> > RPCs since they uses the module name as the root of their serverlets
> > url.
>
> > Did you open an issue on this?
>
> > Charlie M
>
> > On Nov 20, 8:58 am, cromoteca  wrote:
>
> > > Hi,
>
> > > yesterday I installed GWT 2.0 RC1 and it seems to work randomly.
> > > Before opening an issue, I'd like to know if I'm the only one to
> > > experience it. I was writing an application with 1.7 and I just
> > > replaced the GWT files without any change of code.
>
> > > When I run the new dev mode, everything starts as normal. I browse 
> > > tohttp://meshcms.dev:8887/meshcms/resources/host_page.mfm?mode=file_man...
> > > (mfm is mapped to FreeMarker, meshcms.dev points to localhost).
>
> > > In the development mode window, two elements are marked in red:
> > > 00:01:48,887 [INFO] Connection received from 127.0.0.1:50316
> > > 00:01:48,995 [ERROR] Failed to loadmodule'meshcms' from user agent
> > > 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.5) Gecko/
> > > 20091102 Firefox/3.5.5' at 127.0.0.1:50316
>
> > > In the host_page.mfm tab there is another red line:
> > > 00:01:48,995 [ERROR] Unable to find 'meshcms.gwt.xml' on your
> > > classpath; could be a typo, or maybe you forgot to include a classpath
> > > entry for source?
>
> > > There is no other error, even in the IDE.
>
> > > My setup is:
> > > Windows 7 64bit
> > > NetBeans 6.7 without GWT plugin (just an Ant task that launches dev
> > > mode)
> > > Firefox 3.5.5
> > > IE8
>
> > > I just have to restart dev mode until it works. It seems to work
> > > randomly, but when it works the application runs perfectly until I
> > > close dev mode.
>
> > > My gwt.xml file is com.cromoteca.meshcms.Client.gwt.xml and contains:
>
> > > 
> > >         
>
> > >         
> > >         
> > >         
> > >         
>
> > >         
>
> > >         
>
> > >         
> > > 
>
> > > So why is dev mode searching for meshcms.gwt.xml?
>
> > > My Ant task is:
>
> > >   
> > >     
> > >       
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >         
> > >       
> > >     
> > >   

--

You received 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 Developer Plugin works only sometimes

2009-11-25 Thread Riley
After performing a clean install of Eclipse, GAE 1.2.6,  GWT 2 RC1,
and the new plugin, I'm getting the same issue.  When I create a new
GAE+GWT project with the  plugin and try to run it from dev mode in
firefox, I get the following error:

[ERROR] Failed to load module 'test' from user agent 'Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.0.10) Gecko/2009042316
Firefox/3.0.10 (.NET CLR 3.5.30729)' at riley_dell1:1609
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
...


When I deploy the app to appspot, it works perfectly.  Argh!  Thanks
for posting issue 4274, Charlie.  For me, removing the rename-to
attribute from test.gwt.xml doesn't seem to change any behavior.

On Nov 25, 7:01 am, Charlie M  wrote:
> Hi have exactly the same experince.
>
> I have followed it through with a debugger. Whats happening is for
> whatever reason its assuming the module name includes the package
> path. This is the default unless you override it with the rename-to
> attribute in the module config. Since its just using the module name
> not the full package path, when it tries to convert it to a path
> relative to the class path it won't work.So it ends up looking for the
> module in the default package not the one you are actually using.
>
> For me removing the rename to and recompiling works, but it breaks the
> RPCs since they uses the module name as the root of their serverlets
> url.
>
> Did you open an issue on this?
>
> Charlie M
>
> On Nov 20, 8:58 am, cromoteca  wrote:
>
>
>
> > Hi,
>
> > yesterday I installed GWT 2.0 RC1 and it seems to work randomly.
> > Before opening an issue, I'd like to know if I'm the only one to
> > experience it. I was writing an application with 1.7 and I just
> > replaced the GWT files without any change of code.
>
> > When I run the new dev mode, everything starts as normal. I browse 
> > tohttp://meshcms.dev:8887/meshcms/resources/host_page.mfm?mode=file_man...
> > (mfm is mapped to FreeMarker, meshcms.dev points to localhost).
>
> > In the development mode window, two elements are marked in red:
> > 00:01:48,887 [INFO] Connection received from 127.0.0.1:50316
> > 00:01:48,995 [ERROR] Failed to loadmodule'meshcms' from user agent
> > 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.5) Gecko/
> > 20091102 Firefox/3.5.5' at 127.0.0.1:50316
>
> > In the host_page.mfm tab there is another red line:
> > 00:01:48,995 [ERROR] Unable to find 'meshcms.gwt.xml' on your
> > classpath; could be a typo, or maybe you forgot to include a classpath
> > entry for source?
>
> > There is no other error, even in the IDE.
>
> > My setup is:
> > Windows 7 64bit
> > NetBeans 6.7 without GWT plugin (just an Ant task that launches dev
> > mode)
> > Firefox 3.5.5
> > IE8
>
> > I just have to restart dev mode until it works. It seems to work
> > randomly, but when it works the application runs perfectly until I
> > close dev mode.
>
> > My gwt.xml file is com.cromoteca.meshcms.Client.gwt.xml and contains:
>
> > 
> >         
>
> >         
> >         
> >         
> >         
>
> >         
>
> >         
>
> >         
> > 
>
> > So why is dev mode searching for meshcms.gwt.xml?
>
> > My Ant task is:
>
> >   
> >     
> >       
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >       
> >     
> >   

--

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




Am I in trouble?

2009-11-25 Thread Zé Vicente
Hello all,

I gonna ask a very simple question!

First an affirmation: I am using already the new features UiBinder,
ClientBundle in my GWT project. We did a lot of code using those
features.

Is there any change that the final version of GWT 2.0 will bring me
problems?

Regards,
José Vicente

--

You received 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 Developer Plugin works only sometimes

2009-11-25 Thread Charlie M
Just in case any one is intersted. I have raised an issue for this:

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

Charlie M

On Nov 25, 1:01 pm, Charlie M  wrote:
> Hi have exactly the same experince.
>
> I have followed it through with a debugger. Whats happening is for
> whatever reason its assuming themodulename includes the package
> path. This is the default unless you override it with therename-to
> attribute in themoduleconfig. Since its just using themodulename
> not the full package path, when it tries to convert it to a path
> relative to the class path it won't work.So it ends up looking for 
> themodulein the default package not the one you are actually using.
>
> For me removing therename toand recompiling works, but it breaks the
> RPCs since they uses themodulename as the root of their serverlets
> url.
>
> Did you open an issue on this?
>
> Charlie M
>
> On Nov 20, 8:58 am, cromoteca  wrote:
>
>
>
> > Hi,
>
> > yesterday I installed GWT 2.0 RC1 and it seems to work randomly.
> > Before opening an issue, I'd like to know if I'm the only one to
> > experience it. I was writing an application with 1.7 and I just
> > replaced the GWT files without any change of code.
>
> > When I run the new dev mode, everything starts as normal. I browse 
> > tohttp://meshcms.dev:8887/meshcms/resources/host_page.mfm?mode=file_man...
> > (mfm is mapped to FreeMarker, meshcms.dev points to localhost).
>
> > In the development mode window, two elements are marked in red:
> > 00:01:48,887 [INFO] Connection received from 127.0.0.1:50316
> > 00:01:48,995 [ERROR] Failed to loadmodule'meshcms' from user agent
> > 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.5) Gecko/
> > 20091102 Firefox/3.5.5' at 127.0.0.1:50316
>
> > In the host_page.mfm tab there is another red line:
> > 00:01:48,995 [ERROR] Unable to find 'meshcms.gwt.xml' on your
> > classpath; could be a typo, or maybe you forgot to include a classpath
> > entry for source?
>
> > There is no other error, even in the IDE.
>
> > My setup is:
> > Windows 7 64bit
> > NetBeans 6.7 without GWT plugin (just an Ant task that launches dev
> > mode)
> > Firefox 3.5.5
> > IE8
>
> > I just have to restart dev mode until it works. It seems to work
> > randomly, but when it works the application runs perfectly until I
> > close dev mode.
>
> > My gwt.xml file is com.cromoteca.meshcms.Client.gwt.xml and contains:
>
> > 
> >         
>
> >         
> >         
> >         
> >         
>
> >         
>
> >         
>
> >         
> > 
>
> > So why is dev mode searching for meshcms.gwt.xml?
>
> > My Ant task is:
>
> >   
> >     
> >       
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >         
> >       
> >     
> >   

--

You received 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: GPE debug error: ContentViewer must have a content provider when input is set

2009-11-25 Thread Rajeev Dayal
Hey Jeff,

Sorry it took me a while to get back to you.

On Wed, Nov 18, 2009 at 5:43 PM, Jeff Chimene  wrote:

>
>
> On Wed, Nov 18, 2009 at 3:12 PM, Rajeev Dayal  wrote:
>
>> Hi Jeff,
>>
>> This is a known bug that we'll have fixed for the next RC.
>>
>> To avoid this error, do not close the Web App Launch View once it has been
>> opened (minimization is okay, the problem occurs when you actually close the
>> view).
>>
>
> Hi Rajeev,
>
> That's probably the case. I do seem to recall closing the view, rather than
> minimizing same. The new view is extremely cool, btw.
>

Glad that you're finding it helpful :).


>
>
>>  If you do get into this state, restarting Eclipse will fix the problem.
>>
>
> I did cycle Eclipse, but it didn't resolve the issue. I normally exit
> Eclipse w/ one or more projects open.
>

That is definitely odd. Tell me, after you cycled Eclipse, did you ever
close the Web App Launch View, or once you restarted Eclipse, did you just
open the view and experience this problem?


> The "last gasp" was to close/reopen the project. That did seem to be the
> cure.
>
> I was quite surprised that cycling Eclipse didn't clear "whatever". That's
> why I resisted a post: I figured it was pilot error.
> I even checked ps -ax to be sure, for sure.
>
> If you have the fix, great. Just saying that closing/reopening the project
> was the only way to reset the state. Such action seems to force Eclipse into
> some kind of state rebuild?
>
> Congrats on the GPE: muy suave.
>
>
>
>> Sorry about this - I know it is an annoying bug.
>>
>>
>> Rajeev
>>
>> On Wed, Nov 18, 2009 at 4:52 PM, Jeff Chimene  wrote:
>>
>>> I received this error today after starting a debug session:
>>> "ContentViewer must have a content provider when input is set"
>>>
>>> I resisted writing this email, so did not copy more details.
>>>
>>> Restarting Eclipse did not resolve this error. I resolved this problem by
>>> closing/opening the project.
>>>
>>> I really don't know how to reproduce it. If it happens again, i will post
>>> the entire error log.
>>>
>>> Google Plugin for Eclipse 3.51.1.101.v200911161426
>>> com.google.gdt.eclipse.suite.e35.feature.feature.group
>>> Eclipse Web Developer Tools
>>> 3.1.1.v200908120400-7R77FSpEVw2xXR0CtKvX6bG6a2qU
>>> org.eclipse.wst.web_ui.feature.feature.group
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=.
>>>
>>
>>  --
>> You received 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=.
>>
>
>  --
> You received 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=.
>

--

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




Development Mode Firefox 64bit Linux Issue

2009-11-25 Thread alexmat
Dev mode starts up fine. Point firefox at the url, download and
install plugin. Restart... and it asks me to install the plugin again.
It is already installed though. Anyone else seeing this?

Any advice?

--

You received 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: ScrollPanel - how to alter scrolling behavior

2009-11-25 Thread jhulford
You might be able to add a key listener to the scroll panel and use
scrollTop to have it progressively jump down the elements inside the
scrollpanel when the user hits down/up.

On Nov 24, 9:33 am, Bruce Petro  wrote:
> I have a scroll panel that I fill with several lines of text, but I only
> display one line at a time.
> Currently if I click on the down arrow, it scrolls a pixel or two at a time
> requiring 8-10 clicks to get to the next text line.
>
> Is there a way to tie into the scrolling nature and have it scroll (either
> up or down) by the number of pixels (let's say 20 px) that equate to each
> line of 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-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: MenuBar in a Flextable cell

2009-11-25 Thread Brian
Ahh, that makes perfect sense. I'm glad there was a nice clean
solution. Thanks for following up with that.

-Brian

On Nov 24, 1:58 pm, Sudeep S  wrote:
> Thanks a lot for your inputs Brian.
>
> Yes I am using an absolute panel for positioning.
>
> There seems to be a simple way to deal with this.
>
> A menubar inside a menubar did the trick.
>
> A menu bar with the list of items is added to a parent menubar and that
> parent menubar is placed inside the cell.
>
> It works like a charm.
>
> thanks for ur suggestions once again
>
> Thanks
> Sudeep
>
>
>
> On Tue, Nov 24, 2009 at 10:26 PM, Brian  wrote:
> > I haven't had a need to be too picky about positioning, so I'm not
> > sure what the tricky conditions are (though I'm sure they're there).
> > You didn't mention how you're doing your positioning, but I can
> > imagine you're using either AbsolutePanel or PopupPanel. I had
> > suggested PopupPanel because it has a showRelativeTo(UIObject) method
> > that might be helpful. According to the docs, though:
>
> > from
>
> >http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...)
>
> > "Normally, the popup is positioned directly below the relative target,
> > with its left edge aligned with the left edge of the target. Depending
> > on the width and height of the popup and the distance from the target
> > to the bottom and right edges of the window, the popup may be
> > displayed directly above the target, and/or its right edge may be
> > aligned with the right edge of the target."
>
> > So it looks like the algorithm that it uses for positioning may be too
> > variable for your needs.
>
> > One final note is that, assuming you manage to cover up the link in
> > the table cell, you probably don't have to remove it, which might
> > cause the table to shift around.
>
> > -Brian
>
> > On Nov 23, 1:12 pm, Sudeep S  wrote:
> > > Thank you for your suggestion.
>
> > > i am trying a similar approach for this one.
>
> > > instead of having a menu bar in the cell i have placed a simple link in
> > the
> > > cell and when it is clicked, i capture the cell and the absolute position
> > of
> > > link that is clicked.
>
> > > With the absolute position of the link inhand i delete the link and place
> > my
> > > menubar at that position.
>
> > > having little trouble with positioning though.
>
> > > thanks
> > > Sudeep
>
> >  > On Mon, Nov 23, 2009 at 7:36 PM, Brian  wrote:
> > > > Sounds like a tricky problem. I haven't worked with menu bars so I'm
> > > > not sure this will work. What I'm thinking is that you could use a
> > > > placeholder menu bar in the table cell that doesn't have any menu
> > > > items. Then, when that is clicked on, display a PopupPanel with the
> > > > real menu bar and position it relative to the placeholder menu bar.
> > > > You may have to play with styling on the PopupPanel to remove any
> > > > decoration and/or margins to get the effect right. You'll also have to
> > > > capture which menu item (assuming there's more than one) was clicked
> > > > on the placeholder and simulate a click on the corresponding item in
> > > > the real menu bar.
>
> > > > Or maybe you can do away with the menu bar in the table cell
> > > > altogether and make your own drop-down menu using PopupPanels. It
> > > > depends on what you're looking for in terms of user interface feel.
>
> > > > -Brian
>
> > > > On Nov 22, 10:56 am, Sudeep S  wrote:
> > > > > Hi,
>
> > > > > I have a req wherein I have to add a menubar widget to every row in a
> > > > > flextable. When the menubar is clicked it opens but it also expands
> > the
> > > > > cell in which it is placed distorting the layout.
>
> > > > > Any ideas on this one.
>
> > > > > Thanks
> > > > > Sudeep
>
> > > >  --
>
> > > > You received 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 > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=.
>
> > --
>
> > You received 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 > cr...@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://gro

Re: GWT Developer Plugin works only sometimes

2009-11-25 Thread Charlie M
Hi have exactly the same experince.

I have followed it through with a debugger. Whats happening is for
whatever reason its assuming the module name includes the package
path. This is the default unless you override it with the rename-to
attribute in the module config. Since its just using the module name
not the full package path, when it tries to convert it to a path
relative to the class path it won't work.So it ends up looking for the
module in the default package not the one you are actually using.

For me removing the rename to and recompiling works, but it breaks the
RPCs since they uses the module name as the root of their serverlets
url.

Did you open an issue on this?

Charlie M

On Nov 20, 8:58 am, cromoteca  wrote:
> Hi,
>
> yesterday I installed GWT 2.0 RC1 and it seems to work randomly.
> Before opening an issue, I'd like to know if I'm the only one to
> experience it. I was writing an application with 1.7 and I just
> replaced the GWT files without any change of code.
>
> When I run the new dev mode, everything starts as normal. I browse 
> tohttp://meshcms.dev:8887/meshcms/resources/host_page.mfm?mode=file_man...
> (mfm is mapped to FreeMarker, meshcms.dev points to localhost).
>
> In the development mode window, two elements are marked in red:
> 00:01:48,887 [INFO] Connection received from 127.0.0.1:50316
> 00:01:48,995 [ERROR] Failed to loadmodule'meshcms' from user agent
> 'Mozilla/5.0 (Windows; U; Windows NT 6.1; it; rv:1.9.1.5) Gecko/
> 20091102 Firefox/3.5.5' at 127.0.0.1:50316
>
> In the host_page.mfm tab there is another red line:
> 00:01:48,995 [ERROR] Unable to find 'meshcms.gwt.xml' on your
> classpath; could be a typo, or maybe you forgot to include a classpath
> entry for source?
>
> There is no other error, even in the IDE.
>
> My setup is:
> Windows 7 64bit
> NetBeans 6.7 without GWT plugin (just an Ant task that launches dev
> mode)
> Firefox 3.5.5
> IE8
>
> I just have to restart dev mode until it works. It seems to work
> randomly, but when it works the application runs perfectly until I
> close dev mode.
>
> My gwt.xml file is com.cromoteca.meshcms.Client.gwt.xml and contains:
>
> 
>         
>
>         
>         
>         
>         
>
>         
>
>         
>
>         
> 
>
> So why is dev mode searching for meshcms.gwt.xml?
>
> My Ant task is:
>
>   
>     
>       
>         
>         
>         
>         
>         
>         
>         
>         
>         
>         
>         
>         
>       
>     
>   

--

You received 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: 500 - POST on hosted mode

2009-11-25 Thread Fon Vitale
Hi,

Finally, it works. I don't know why, but reducing the number of
attributes in the serializated class it works. But why?

On 24 nov, 17:03, Yozons Support on Gmail  wrote:
> Gotta look at all your logs, console, etc.  Most likely it's a null pointer
> exception or a some sort of serialization issue because you have an object
> without a zero-arg constructor.  Hard to tell with little info

--

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




Invitation à se connecter sur LinkedIn

2009-11-25 Thread Minh Le
LinkedIn


Minh Le requested to add you as a connection on LinkedIn:
--

anoop,

J'aimerais vous inviter à rejoindre mon réseau professionnel en ligne, sur le 
site LinkedIn.

Minh

Accept invitation from Minh Le
http://www.linkedin.com/e/0KTeTtbYtbm5JbSbinTxnAy06bq_5bwL3KeK8pLeUQ4N5xBBedsR/blk/I1613606973_2/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cBYPdPASc3oPcjoNiiZ4hRB4kBFMj2YNcz4TdPsTe3wLrCBxbOYWrSlI/EML_comm_afe/

View invitation from Minh Le
http://www.linkedin.com/e/0KTeTtbYtbm5JbSbinTxnAy06bq_5bwL3KeK8pLeUQ4N5xBBedsR/blk/I1613606973_2/39vcPsVdz0ScP4SckALqnpPbOYWrSlI/svi/


 
--
(c) 2009, LinkedIn Corporation

--

You received 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: return this; doesn't always work with overlay type

2009-11-25 Thread Thomas Broyer


On Nov 25, 1:59 am, Kevin  wrote:
> Hi,
>
> I have an overlay-type class that has fluent interface (http://
> en.wikipedia.org/wiki/Fluent_interface):
>
>   private static class JsMap extends JavaScriptObject {
>     public static final native JsMap create() /*-{ return {} }-*/;
>
>     protected JsMap() {}
>
>     public native final JsMap put(String key, String value) /*-{ this
> [key] = value; return this; }-*/;
>   }
>
> I create an instance of JsMap:
>
>     JsMap map = JsMap.create()
>                                   .put("a", "A")
>                                   .put("b", "B");
>
> I expected resulting map to be {'a': 'A', 'b': 'B' }, but instead I
> got: { 'b', 'B' }.
>
> This is what it looks like when I compiled to JavaScript in PRETTY
> mode:
>      map = $put(({}['a'] = 'A' , {}), 'b', 'B');
>      function $put(this$static, key, value){
>             this$static[key] = value;
>             return this$static;
>     }
>
> This looks like a bug in the GWT Compiler.

This looks like this bug: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=3568

--

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




how to integrate pentaho reports into my GWT application.

2009-11-25 Thread Satya
Hi,
I am new to GWT, currently I am developing a GWT application which has
to generate reports by taking user input. I wanted to make use of
pentaho reports for that purpose , but I dont know how to integrate
pentaho with GWT.

Please help me out with some useful information.
Thanks in advance.

Regards,
Satya Lakshminath.

--

You received 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: issue injecting gwt .js file from webserver to webpage

2009-11-25 Thread chewy
Thank you , thank you , thank you.

and bless your cotton socks!

C

On Nov 24, 6:05 pm, Thomas Broyer  wrote:
> On Nov 24, 5:37 pm, chewy  wrote:
>
>
>
>
>
> > Hi,
>
> > I have built my application in GWT and the resulting .js file, I want
> > to inject to my web page.
> > This works fine locally.
>
> > But when I put the GWT .js file on my webserver and use  > type="text/javascript" language="javascript" src="http://
> > mywebserver.com/myApp.nocache.js"> to call the .js file and
> > inject to my web page - firefox gives me security errors.
>
> > Now from reading the forums, there is a cross domain issue here - but
> > in reality there is no issue as I built the same javascript app
> > manually and located it on my webserver and called the .js file from
> > another webpage on another server - the app worked with out any error.
> > So why does the .js files produced by the GWT cause these security
> > errors.
>
> That's because GWT actually load your app in a hidden iframe; because
> the iframe isn't in the same domain ("origin" actually) as your "host
> page", they cannot communicate.
>
> > anybody have a work around?
>
> Let's rather call it a solution (*the* solution, at least the blessed
> one): add the following in your module:
>
>    
>
> (unfortunately, the documentation isn't up-to-date and still
> references the 1.4.x way of doing things)- 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-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: VerticalPanel insert and index

2009-11-25 Thread Ittai
Hi,
I tested and saw that when the verticalPanel is created it will
receive the index values of 0 and 1. and if you add by panel.add
(widget)
a label then you will be able to use 0,1,2
but still I have no way to manipulate the index myself
Please has anyone any idea?

On 24 נובמבר, 18:38, Ittai  wrote:
> Hello all,
> I have an array of strings which I divide unevenly between different
> columns of a grid (by some unrelated logic) and I need the string in
> the i place of the array to be inserted to the i place of the column.
> My grid holds one row and 6 columns and in each column I have a
> VerticalPanel which acts as my column, mainly because the columns are
> in different sizes and can change.
> What i wanted to do is something like this:
>
>  for (int i=0;i    Label labelWidget = new Label(array[i]);
>    getVerticalPanelColumn().insert(labelWidget,i); //where
> getVerticalPanelColumn() is my method
>  }
>
> Now I noticed that the API stated that IndexOutOfBounds will be thrown
> if the index passed to insert is out of range but the problem is that
> I couldn't, for the life of me, find any way to set the range'/size/
> capacity of the verticalPanel or to query it (and I don't mean
> widgetCount() I mean the index to which I can relate).
> So basically as a horibble workaround (which I won't use) I think I
> can add "i" null widgets to the VerticalPanel thus I believe I will
> increment the index and do my iteration but this hack is irrelevant
> for me due to the "cost" of all those null widgets addition to all my
> columns.
> Basically I would like the insert to just insert the widget at the
> closest point to i that is if i==5 and the panel holds only widget
> whose index is 1 4 7 then the insert should insert the widget between
> 4 and 7 if i==10 it should just insert it in the end and remeber its
> index is 10.
>
> Has anyone encountered this?
> Isn't this some sort of bug that you have no way to set or query an
> object about the index range but you can pass it an index variable?
>
> Thanks a million for any help
> Ittai

--

You received 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: Google Web Toolkit 2.0 RC1 Now Available

2009-11-25 Thread grandfatha
After compiling a trivial sample app with the new GWT 2.0RC1 I can see
a lot of functions with empty bodies in my compiled output.

It looks like the following:


function nh(){}
function $h(){}
function Zh(){}
function oi(){}
function wi(){}
function Fi(){}
function Ni(){}
function Vi(){}
function cj(){}
function mj(){}
function uj(){}
function Cj(){}
function Gj(){}
function Kj(){}


After that there is stuff like this:


function ZCb(){}
function mt(a){}
function Ot(a){}
function Pt(a){}
function Ut(a){}
function Zv(a){}
function RA(a){}
function SA(a){}
function TA(a){}
function UA(a){}
function VA(a){}
function WA(a){}
function XA(a){}
function dD(a){}
function eD(a){}


When GWT is all about reducing the compiled output and the initial
download and that stuff, why do those empty functions make sense?

--

You received 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: Tool to convert HTML in GWT widgets

2009-11-25 Thread gwtfanb0y
This sounds very interesting to me, please open up the code for us.


On 24 Nov., 22:32, Davi Pires  wrote:
> Hi all,
>
> In my company, we have been working with GWT for almost a year,
> developing a ridesharing application (http://www.bigoo.com.br). I
> really can't overstate how much we enjoy developing in java, using
> familiar tools, debugging in hosted mode, and so on. But one thing
> that has really bothered us for a long time is the dificulty of
> integrating the work of developers (who write the code that eventually
> outputs the HTML) with the work of designers (who write CSS).
>
> Eventually we came up with a method where the designer gave the devs
> an HTML fragment that worked as a 'contract' between their codes. The
> devs had to write the GWT code that instantiated the widgets and set
> ids and styles according to the spec. It worked, we did the job, but
> there were lots of problems on the way:
>
> - every little change to the 'contract' (new id, new classes) had to
> be implemented by the developer. Therefore, there was a significant
> delay between the designer's writing of the css and it being reflected
> on the system.
> - the designer felt rather demotivated by not having control over
> generation of the UI.
>
> Well, I guess some of these problems have already been mentioned here.
> I won't dwell on it anymore.
>
> Recently we implemented a small tool to help us overcome this problem.
> In short, the designer writes the specs in an extended subset of HTML,
> outside of the java code, in a properties file. This file is processed
> by a generator we wrote that outputs the java code needed to
> instantiate the gwt widgets corresponding to that spec.
>
> In the GWT code we can retrieve each subnode of the tree (or
> 'subwidget') by the id, and add to it the appropriate handlers, or set
> any other property.
>
> We have automated the instantiation of the widgets, their addition the
> the corresponding parents, the setting of a few properties such as
> ids, classes, titles, value and enabled. It has allowed us to
> reimplement complete pages, with all the interaction we had before,
> significantly speeding up the development process, reducing the size
> of the code, making it more readable, and increasing developer and
> designer satisfaction.
>
> I'd like to ask the community if anyone is interested on such a tool.
> We are planning on opening up this code, but it still needs some work.
> If it's of anyone's interest we would gladly open it.
>
> Cheers,
> Davi Pires
>
> --
>
> eco-blog:http://tarjaverde.wordpress.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.




Re: Using same RPC servlet by mutliple modules

2009-11-25 Thread smiletolead
Thanks for the reply Sripathi

On Nov 23, 12:13 pm, Sripathi Krishnan 
wrote:
> AFAIK - you can only specify a wild card at the end of the URL. A * in the
> middle is treated as a literal, and not a wild card.
>
> See -http://www.velocityreviews.com/forums/t133725-using-wildcard-characte...
>
> --Sri
>
> 2009/11/22 smiletolead 
>
>
>
> > I want know why it does not work without using Guice. Because
> > specifying a URL pattern with wild card is working for a normal
> > servlet but it is not working for a RPC servlet
>
> > On Nov 21, 7:07 am, Fabio  wrote:
> > > Maybe GuiceRemoteServiceServlet fits your needs. All the services are
> > > mapped to the same url, and GuiceRemoteServiceServlet uses Guice
> > > dependency injection to choose one appropriate service implementation,
> > > that serves the service interface on which the request was made.
>
> > > hope it helps
>
> > > On 20 nov, 11:28, Kamal Chandana Mettananda  wrote:
>
> > > > Hi,
>
> > > > When you specify the servlet url-pattern; you must specify the path you
> > > > expects without wild cards in the middle of the url-pattern. (wild card
> > > > character can be a suffix in a url pattern).
>
> > > > Cheers,
> > > > Kamalhttp://lkamal.blogspot.com
>
> > > > On Fri, Nov 20, 2009 at 6:50 PM, smiletolead  > >wrote:
>
> > > > > Hi all,
> > > > >   I have a project with 2 modules. The modules are sharing a RPC
> > > > > servlet. The idea is to use single RPC servlet for multiple Service
> > > > > interfaces. The interfaces reside in different modules. I am facing
> > > > > one problem when use * in the URL pattern. The servlet is not getting
> > > > > invoked when I use the URL patter as "/*/moduleA". It is expecting me
> > > > > to specify the exact URL.  Can anyone tell me what the problem is?
>
> > > > > Regards,
>
> > > > > --
>
> > > > > You received this message because you are subscribed to the Google
> > Groups
> > > > > "Google Web Toolkit" group.
> > > > > To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > > > To unsubscribe from this group, send email to
> > > > > google-web-toolkit+unsubscr...@googlegroups.com > > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=.
>
> > --
>
> > You received 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 > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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