Re: GWT & Spring

2012-03-08 Thread Akram Moncer
think you very much

Le 9 mars 2012 04:33, Xybrek  a écrit :

> On 3/8/2012 11:33 PM, Akram Moncer wrote:
>
>> hello everybody;
>>
>> can some one help me and give me how can i create webapp with spring
>> framwork on back-end and GWT on front-end ?
>>
>> --
>> Akram MONCER
>> Personne
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Google Web Toolkit" group.
>> To post to this group, send email to
>> google-web-toolkit@**googlegroups.com
>> .
>> To unsubscribe from this group, send email to
>> google-web-toolkit+**unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/**group/google-web-toolkit?hl=en
>> **.
>>
>
> In most cases, Spring code is in the GWT RPC (server-side code). Best
> approach would be through maven, also you might want to use Spring STS
> Plugin if you are using Eclipse.
>
> If you are able to have your GWT project a "Spring nature" then on your
> GWT RPC code, you can apply the standard Spring codes, i.e
> in your ServiceImpl code you can override:
>
> @Override
> public void init() ...
> {
>  super.init();
>  WebApplicationContext ctx = WebApplicationContextUtils.**
> getWebApplicationContext(**getServletContext());
>  // Beans
>  dao = (MyDao)ctx.getBean("myDao");
> }
>
> @Override
> public void doSomething() {
>  String something = dao.getSomething(...);
> }
>
> From here, you can use the beans to do something your app need to
> accomplish.
>
> Of course you should fix your applicationContext.xml and web.xml which you
> can easily search the web on how to do this.
>
> This is just the basic way to integrate GWT and Spring, as the topic is
> very broad, you can integrate other complex things like Spring
> authentication etc.
>
> Hope this helps.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to 
> google-web-toolkit@**googlegroups.com
> .
> To unsubscribe from this group, send email to google-web-toolkit+**
> unsubscr...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/**
> group/google-web-toolkit?hl=en
> **.
>
>


-- 
Akram MONCER
Personne

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

2012-03-08 Thread Xybrek

On 3/8/2012 11:33 PM, Akram Moncer wrote:

hello everybody;

can some one help me and give me how can i create webapp with spring
framwork on back-end and GWT on front-end ?

--
Akram MONCER
Personne

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


In most cases, Spring code is in the GWT RPC (server-side code). Best 
approach would be through maven, also you might want to use Spring STS 
Plugin if you are using Eclipse.


If you are able to have your GWT project a "Spring nature" then on your 
GWT RPC code, you can apply the standard Spring codes, i.e

in your ServiceImpl code you can override:

@Override
public void init() ...
{
 super.init();
 WebApplicationContext ctx = 
WebApplicationContextUtils.getWebApplicationContext(getServletContext());

 // Beans
 dao = (MyDao)ctx.getBean("myDao");
}

@Override
public void doSomething() {
 String something = dao.getSomething(...);
}

From here, you can use the beans to do something your app need to 
accomplish.


Of course you should fix your applicationContext.xml and web.xml which 
you can easily search the web on how to do this.


This is just the basic way to integrate GWT and Spring, as the topic is 
very broad, you can integrate other complex things like Spring 
authentication etc.


Hope this helps.

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



Integrating GWT with "Google Docs"

2012-03-08 Thread Edwin Salguero
Hello

I want to embed api "Google Docs" with my application GWT

On my server I have loaded many files *. xls and *. xlsx but now my client
wants to read those files directly from my GWT web-based system without
downloading the files, My idea is to integrate APIs "Google Docs" in a
DialogBox so that there can be read and modified from any machine using the
browser.

If you have any other idea to read and write excel file from my GWT
application, I am very grateful.


-- 
Edwin Salguero C.
70738223

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

2012-03-08 Thread Akram Moncer
hello everybody;

can some one help me and give me how can i create webapp with spring
framwork on back-end and GWT on front-end ?

-- 
Akram MONCER
Personne

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

2012-03-08 Thread Jesse Hutton
When using Activities and Places, you don't get rid of the notion of
presenters. In fact, I often pass presenters to my activities, which
can of course have nested presenters. IMO, activities and places
mostly applies to pages and page flow (and encapsulating page specific
application data and mapping that easily to url tokens).

For handling multiple regions of the page, all you need to do is
instantiate multiple ActivityManager instances and set their display
properties to the page region (ActivityManager#setDisplay() registers
the manager as a PlaceChangeEvent handler on the given event bus).

Jesse

On Thu, Mar 8, 2012 at 11:34 AM, Adolfo Panizo Touzon
 wrote:
> Hi all,
>
> I'm going to start a new app and I'm interested in using activities and
> places.
>
> I've read the articles of the official page of gwt devguide, the Thomas
> Broyer's posts, some questions in Stack Overflow, and I think I have a
> general idea.
>
> I'm sure when I start to coding I'll understand better/completely all the
> concepts, but before to start I think is better to ask some questions that I
> don't understand enough well.
>
> In the last apps that I've worked we were using the GWTP plugin, and now is
> difficult to me understand one architecture that doesn't have presenters
> that contains others presenters (activities that contains other activities).
>
> For example, in my app I'll have two regions that need all the screen
> (general section and blog section). Each section has different regions and
> different behaviour in  each region. With gwtp I should create a
> GeneralPresenter (with the generalFoo1PresenterWidget,
> generalFoo2PResenterWidget inside) and BlogPresenter  (with other Presenters
> and PresentersWidgets Inside), but with Activities is different...
>
> Any ideas or comments? I think there are some solutions, but I don't know
> what the best way to solve this.
>
> Thank you in advance.
>
> Adolfo.
>
> --
> El precio es lo que pagas. El valor es lo que recibes.
> Warren Buffet
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.

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



Chrome not properly rendering HeaderPanel as of yesterday's update?

2012-03-08 Thread Eric Andresen
My application has a HeaderPanel that has suddenly stopped working in 
Chrome (32-bit XP version 19.0.1061.1).  The GWT code hasn't changed, and 
IE8 and FireFox both still work.

The symptom is that the header and footer appear properly, but the content 
has its height set to 0px so it doesn't show up.  Sometimes if I wait or 
inspect the element it will appear, sometimes it never appears.  This 
problem just appeared yesterday, on three separate people's PCs. 

Has anyone else seen any issues with HeaderPanel rendering in the last 
couple days?

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



Using Anchor/Hyperlink in Cell Widget constructs

2012-03-08 Thread Shaun Tarves
It looks like Anchors/Hyperlinks are the most full-featured and "link" like 
way to provide user navigation (right-click context menu support, etc.) Is 
there a way to integrate these with the notion of CellLists or CellTrees? 
For example, if I wanted each cell to be a GWT Anchor (or at least wrapped 
in one), what's the best way to implement that?

Can there be Anchors in the cell render() method, or would it be best to 
use the result of the render() method as the HTML for the Anchor?

Has anyone done this? I haven't seen any examples like this out there, so 
maybe they're mutually exclusive (i.e., what would the cell object's 
selection handler actually do?)

Thanks!

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



Re: GWT 2.4 ERROR WITH IE8

2012-03-08 Thread bond
Someone can help me?

Thanks

Il giorno mercoledì 7 marzo 2012 18:19:21 UTC+1, bond ha scritto:
>
> Hi,
> I wrote a web application, some like an ecommerce. It works fine with 
> FF,Chrome,IE9,Safari but with IE8 I've several errors :-(
>
> For example when I load a page (see attachment) I have this error:
>
> 18:00:18.812 [ERROR] [ztlstore] Errore
> com.google.gwt.core.client.JavaScriptException: (Error): Errore di 
> run-time sconosciuto
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248)
> at 
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
> at 
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
> at 
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
> at 
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
> at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
> at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
> at sun.reflect.GeneratedMethodAccessor56.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at 
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> at 
> com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
> at 
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
> at 
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
> at java.lang.Thread.run(Unknown Source)
>
> I cant' find where is the error; I suppose it is a problem of GWT with 
> IE8. Someone can help me?
>
> Thanks
>
> best regards
>

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



ListEditor Help

2012-03-08 Thread Lars
So trying to wrap my head around the Editor Framework and ListEditor in 
particular...

I have a class that basically has 1 property, an ArrayList:

public class ArticlePaginator implements Iterable {

ArrayList articlePages = new ArrayList();

public ArticlePaginator(ThriftWidget tw) {

for (ThriftWidget subTw : tw.getSubWidgets()) {
articlePages.add(new ArticlePage(subTw));
}

}

@Override
public Iterator iterator() {
Iterator iterator = articlePages.iterator();
return iterator;
}

public void setArticlePages(ArrayList articlePages) {
this.articlePages = articlePages;
}

public ArrayList getArticlePages() {
return articlePages;
}

}

Since I'd like my users to be able to add/remove the sub-widgets (in this case 
"ArticlePage" objects which have their own standard editor 
"ArticlePageEditor") I figured (correctly?) I needed to use the ListEditor 
adaptor class as my Editor.  I'm not sure if I have this correct 
conceptually, b/c when I try to run in dev mode I get the following error:
*Caused by: java.lang.Error: Unresolved compilation problem: Type mismatch: 
cannot convert from ArticlePaginator to List
*
Why is it trying to convert my ArticlePaginator to a List???

Any insight would be greatly appreciated.

Here's my attempted implementation of the ListEditor: 

public class ArticlePaginatorEditor extends Composite implements 
IsEditor> {

private static ArticlePaginatorEditorUiBinder uiBinder = 
GWT.create(ArticlePaginatorEditorUiBinder.class);

interface ArticlePaginatorEditorUiBinder extends UiBinder {}


@UiField
VerticalPanel container;

private class ArticlePageEditorSource extends 
EditorSource {

@Override
public ArticlePageEditor create(int index) {
ArticlePageEditor subEditor = new ArticlePageEditor();
container.add(subEditor);
return subEditor;
}

@Override
public void dispose(ArticlePageEditor subEditor) {
  subEditor.removeFromParent();
  
}

@Override
public void setIndex(ArticlePageEditor subEditor, int index) {
container.insert(subEditor, index);
}

}


private ListEditor editor = 
ListEditor.of(new ArticlePageEditorSource());

public ArticlePaginatorEditor() {

initWidget(uiBinder.createAndBindUi(this));

}

@Override
public ListEditor asEditor() {
return editor;
}



@UiHandler("add")
void onClickAdd(ClickEvent e) {

ThriftWidget newMeta = new ThriftWidget(29, new String[]{}, null, 
new int[]{1, 2, 3});
newMeta.subwidgets = new ThriftWidget[] {
new ThriftWidget(41, new String[]{"huh?"}, null, null),
new ThriftWidget(41, new String[]{""}, null, null),
new ThriftWidget(41, new String[]{""}, null, null)
};

ThriftWidget newPage = new ThriftWidget(1, null, null, new 
int[]{1});
newPage.subwidgets = new ThriftWidget[] { newMeta };

ArticlePage ap = new ArticlePage(newPage);

editor.getList().add(ap);


}


}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/7S5Vxu-kIuIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Supported Browser Versions

2012-03-08 Thread Thomas Broyer


On Thursday, March 8, 2012 5:25:40 PM UTC+1, Tony Edgin wrote:
>
> Your right.  The list is out of date.  AFAIK, in works with the latest
> version of every browser.
>
> I think Google is making a mistake by not keep at least this
> documentation up to date.  A software team probably won't use a GWT if
> the members don't think it supports their target web browsers.  This
> decreases market share and threatens the longevity of the product.
>
I agree the list should be kept up-to-date, but on the other hand, the fact 
Google uses GWT on products like AdSense, Groups, Orkut or Checkout is a 
sign it supports a fairly large range of browsers: ads is how Google makes 
money, AdSense is a "critical" product for Google, the Checkout Gadget that 
you can embed into your sites is also built with GWT, and again Google 
makes money with it, it *has* to Just Work™.

>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Z_Y1NI8cQaAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 CssResource @def inside some css property with parenthesis not working

2012-03-08 Thread Shaun Tarves
But using them without the constant definitions works fine. If I put in
explicit colors everywhere, my gradients show up.

- Shaun

On Mar 8, 2012, at 12:25 PM, Thomas Broyer  wrote:

This is because the gradient "functions" are not valid CSS2, and GWT uses a
CSS2 parser for CssResources.
See http://code.google.com/p/google-web-toolkit/issues/detail?id=5771

On Thursday, March 8, 2012 4:43:52 PM UTC+1, Shaun Tarves wrote:
>
> Hi -
>
> I'm having trouble using a defined constant inside of a css property that
> has its own parenthetical reference. What I mean is:
>
> @def HEADER_ROW_BACKGROUND_COLOR #b2bbc9;
> This works:
>
> background: HEADER_ROW_BACKGROUND_COLOR;
>
> This does not work.
> background-image: linear-gradient(top, HEADER_ROW_BACKGROUND_COLOR literal("
> 0%"), HEADER_ROW_BACKGROUND_COLOR literal(" 97%"), #7a808a literal("
> 100%"));
>
> The property shows up in web inspector totally fine, EXCEPT that the 2
> references to the constant are never translated. They just appear as is,
> strings in all caps. (see attachment)
>
> Is this a known bug of some kind?
>
 --
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/hd3CACzUzPsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Using CssResource @def inside some css property with parenthesis not working

2012-03-08 Thread Thomas Broyer
This is because the gradient "functions" are not valid CSS2, and GWT uses a 
CSS2 parser for CssResources.
See http://code.google.com/p/google-web-toolkit/issues/detail?id=5771

On Thursday, March 8, 2012 4:43:52 PM UTC+1, Shaun Tarves wrote:
>
> Hi -
>
> I'm having trouble using a defined constant inside of a css property that 
> has its own parenthetical reference. What I mean is:
>
> @def HEADER_ROW_BACKGROUND_COLOR #b2bbc9;
> This works:
>
> background: HEADER_ROW_BACKGROUND_COLOR;
>
> This does not work.
> background-image: linear-gradient(top, HEADER_ROW_BACKGROUND_COLOR literal(" 
> 0%"), HEADER_ROW_BACKGROUND_COLOR literal(" 97%"), #7a808a literal(" 
> 100%"));
>
> The property shows up in web inspector totally fine, EXCEPT that the 2 
> references to the constant are never translated. They just appear as is, 
> strings in all caps. (see attachment)
>
> Is this a known bug of some kind?
>

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



I need some clarification on servlets and modules

2012-03-08 Thread Bucky
I'm trying to created several urls for different types of users to
access my app. For example, I'd like to break my app into the
following urls:

myapp.appspot.com/admin
myapp.appspot.com/instructor
myapp.appspot.com/student

I have portions of the app running (i.e. admin) which I created by
modifying the starter app created by the eclipse plugin, but not using
the url above. Now I'm struggling with servlets and/or modules -- how
to create and test them. I haven't found any instructions yet on "How
to add your second servlet (and/or module) to an app."

Any help would be appreciated.

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



Activity Places | Nested activities

2012-03-08 Thread Adolfo Panizo Touzon
Hi all,

I'm going to start a new app and I'm interested in using activities and
places.

I've read the articles of the official page of gwt devguide, the Thomas
Broyer's posts, some questions in Stack Overflow, and I think I have a
general idea.

I'm sure when I start to coding I'll understand better/completely all the
concepts, but before to start I think is better to ask some questions that
I don't understand enough well.

In the last apps that I've worked we were using the GWTP plugin, and now is
difficult to me understand one architecture that doesn't have presenters
that contains others presenters (activities that contains other activities).

For example, in my app I'll have two regions that need all the screen
(general section and blog section). Each section has different regions and
different behaviour in  each region. With gwtp I should create a
GeneralPresenter (with the generalFoo1PresenterWidget,
generalFoo2PResenterWidget inside) and BlogPresenter  (with other
Presenters and PresentersWidgets Inside), but with Activities is
different...

Any ideas or comments? I think there are some solutions, but I don't know
what the best way to solve this.

Thank you in advance.

Adolfo.

-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

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

2012-03-08 Thread Tony Edgin
Your right.  The list is out of date.  AFAIK, in works with the latest
version of every browser.

I think Google is making a mistake by not keep at least this
documentation up to date.  A software team probably won't use a GWT if
the members don't think it supports their target web browsers.  This
decreases market share and threatens the longevity of the product.

Cheers,
Tony

On Wed, Mar 7, 2012 at 14:31, David Self  wrote:
> The only place I've seen supported browsers listed is in the FAQ
> (http://code.google.com/webtoolkit/doc/latest/FAQ_GettingStarted.html#What_browsers_does_GWT_support),
> but this list seems to be out of date (e.g., Firefox support for GWT 2.4 is
> listed as 1.0, 1.5, 2.0, 3.0, and 3.5).  Are the currently supported browser
> versions for each version of GWT specified anywhere?
>
> My company needs to understand which browser versions each version of GWT
> supports in order to make decisions as to our officially supported browser
> list.  What is Google's strategy for this?  Is a list of supported browsers
> maintained anywhere?  If so, is this list revised for all GWT versions when
> new browser versions are released or is it a static list of browser versions
> that were available at the time that specific GWT version was released?
>
> Thanks,
> David
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/jnLEPGV5NE4J.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
Tony Edgin
Software Architecture and Design Leader
LBT Observatory
933 N. Cherry Ave., Tucson AZ 85721-0065
p:520-626-8951, c:520-419-8821, f:520-626-9333

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



Using CssResource @def inside some css property with parenthesis not working

2012-03-08 Thread Shaun Tarves
Hi -

I'm having trouble using a defined constant inside of a css property that 
has its own parenthetical reference. What I mean is:

@def HEADER_ROW_BACKGROUND_COLOR #b2bbc9;
This works:

background: HEADER_ROW_BACKGROUND_COLOR;

This does not work.
background-image: linear-gradient(top, HEADER_ROW_BACKGROUND_COLOR literal(" 
0%"), HEADER_ROW_BACKGROUND_COLOR literal(" 97%"), #7a808a literal(" 100%"))
;

The property shows up in web inspector totally fine, EXCEPT that the 2 
references to the constant are never translated. They just appear as is, 
strings in all caps. (see attachment)

Is this a known bug of some kind?

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

<>

Re: How to hide a column in the GWT DataGrid Widget

2012-03-08 Thread Patrick Tucker
Maybe try setting the columns value to empty when the width is 0?

Something like this?
  Column<...> itemColumn = new Column<...>(new TheCell()) {
 @Override
 public Object getValue (Object object) {
if (theDataGrid.getColumnWidth(this) == 0) {
   return "";
}

return object.toString();
 }
  };

On Mar 7, 3:06 pm, Bill M  wrote:
> Hi,
>
> Is there a way to hide a column in the GWT DataGrid widget?  I was
> using someone's suggestion of setting the columnWidth of the column I
> want to hide to 0.  However, with that approach the String data seems
> to be "wrapping" in the hidden column, causing some rows to have a
> larger height.
>
> Is there another way to hide a column?  Or, do I need to implement my
> own data structure to handle this?
>
> Thanks,
> Bill M

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Implementing Places that share all but have different prefix

2012-03-08 Thread tanteanni
thx again - didn't know about that.
(i can't shake the feeling that google has some good engineers)

On Thursday, 8 March 2012 15:50:01 UTC+1, Thomas Broyer wrote:
>
>
> On Thursday, March 8, 2012 3:28:18 PM UTC+1, tanteanni wrote:
>>
>> thx thomas (you seem to answer all "a&p" questions of the world)
>>
>> so you mean i have to provide an implementation (rather then an 
>> extension) of "PlaceHistoryMapper"? will @WithTokenizers work on that? Or 
>> do i have to implement all stuff for all places? or to make it simple (at 
>> least for me ;-)) could you probably  give me a draft of " 
>> PlaceHistoryMapperWithFactory".
>
>
> I meant using that one: 
> http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/place/shared/PlaceHistoryMapperWithFactory.html
>
> You use it the exact same way as PlaceHistoryMapper (you can use 
> @WithTokenizers too) except you have to provide a factory via setFactory() 
> before you can use it. the generated implementation will call methods of 
> the factory instead of instantiating tokenizers, when needed. This is 
> mostly useful when you have to somehow inject dependencies into your 
> tokenizers (and note that the factory could be your Ginjector; the 
> generator only looks at zero-arg methods returning subtypes of 
> PlaceTokenizer)
>

On Thursday, 8 March 2012 15:50:01 UTC+1, Thomas Broyer wrote:
>
>
> On Thursday, March 8, 2012 3:28:18 PM UTC+1, tanteanni wrote:
>>
>> thx thomas (you seem to answer all "a&p" questions of the world)
>>
>> so you mean i have to provide an implementation (rather then an 
>> extension) of "PlaceHistoryMapper"? will @WithTokenizers work on that? Or 
>> do i have to implement all stuff for all places? or to make it simple (at 
>> least for me ;-)) could you probably  give me a draft of " 
>> PlaceHistoryMapperWithFactory".
>
>
> I meant using that one: 
> http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/place/shared/PlaceHistoryMapperWithFactory.html
>
> You use it the exact same way as PlaceHistoryMapper (you can use 
> @WithTokenizers too) except you have to provide a factory via setFactory() 
> before you can use it. the generated implementation will call methods of 
> the factory instead of instantiating tokenizers, when needed. This is 
> mostly useful when you have to somehow inject dependencies into your 
> tokenizers (and note that the factory could be your Ginjector; the 
> generator only looks at zero-arg methods returning subtypes of 
> PlaceTokenizer)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/RVHA7szPoE4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Hibernate ClassCastException in GWT hosted mode only

2012-03-08 Thread Lukasz Plotnicki
Does anybody know a workaround (other then rollback to and old hibernate 
version) for this issue?

Am Montag, 20. Februar 2012 07:58:57 UTC+1 schrieb Artem V. Navrotskiy:
>
> This is Hibernate 4.0.0+ bug:
> https://hibernate.onjira.com/browse/HHH-7084
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/1XPMPUNjLYIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Implementing Places that share all but have different prefix

2012-03-08 Thread Thomas Broyer

On Thursday, March 8, 2012 3:28:18 PM UTC+1, tanteanni wrote:
>
> thx thomas (you seem to answer all "a&p" questions of the world)
>
> so you mean i have to provide an implementation (rather then an extension) 
> of "PlaceHistoryMapper"? will @WithTokenizers work on that? Or do i have to 
> implement all stuff for all places? or to make it simple (at least for me 
> ;-)) could you probably  give me a draft of " 
> PlaceHistoryMapperWithFactory".


I meant using that one: 
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/place/shared/PlaceHistoryMapperWithFactory.html

You use it the exact same way as PlaceHistoryMapper (you can use 
@WithTokenizers too) except you have to provide a factory via setFactory() 
before you can use it. the generated implementation will call methods of 
the factory instead of instantiating tokenizers, when needed. This is 
mostly useful when you have to somehow inject dependencies into your 
tokenizers (and note that the factory could be your Ginjector; the 
generator only looks at zero-arg methods returning subtypes of 
PlaceTokenizer)

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

2012-03-08 Thread Williame
Google apps api's.  Client libs for Java, .NET, etc..

http://code.google.com/googleapps/



On Thursday, March 8, 2012 4:29:11 AM UTC-6, Wayne Rademeyer wrote:
>
> Is it possible to manage Google groups from GWT or do i need to use some 
> or other API

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/tkuqNVXryokJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Implementing Places that share all but have different prefix

2012-03-08 Thread tanteanni
thx thomas (you seem to answer all "a&p" questions of the world)

so you mean i have to provide an implementation (rather then an extension) 
of "PlaceHistoryMapper"? will @WithTokenizers work on that? Or do i have to 
implement all stuff for all places? or to make it simple (at least for me 
;-)) could you probably  give me a draft of " 
PlaceHistoryMapperWithFactory".

On Thursday, 8 March 2012 13:10:09 UTC+1, Thomas Broyer wrote:
>
>
>
> On Thursday, March 8, 2012 12:37:19 PM UTC+1, tanteanni wrote:
>>
>> Sometimes i have two places that differ only in thier prefix. For example 
>> a "SelectionPlace" and a "ResultOfSelectionPlace". So both places share all 
>> code but differ in @Prefix(value"..."). At the moment i implemented this by 
>> using an abstract class but i have to copy the code of the tokenizer to get 
>> tokenizers with different prefixes.
>>
>> Is there a way to let the concrete class only set the prefix of a shared 
>> tokenizer class? Or is there probably a complete different way to achieve 
>> this?
>>
>
> I believe it's possible using a parameterized tokenizer, a 
> PlaceHistoryMapperWithFactory and using the @Prefix on the factory methods 
> rather than on the tokenizer class:
>
> class FooPlace extends AbstractMyPlace { }
> class BarPlace extends AbstractMyPlace { }
> abstract class AbstractMyPlace extends Place {
> static class Tokenizer extends 
> PlaceTokenizer { … }
> …
> }
>
> class MyFactory {
>   @Prefix("foo")
>   public PlaceTokenizer foo() { return new 
> AbstractMyPlace.Tokenizer(); }
>   @Prefix("bar")
>   public PlaceTokenizer bar() { return new 
> AbstractMyPlace.Tokenizer(); }
> }
>
>

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

2012-03-08 Thread kim young ill
anyone know how to handle a cancel-upload case ?
i guess if the client just cut the line. server will get IOException & can
handle that. what about clientside with FileUpload widget (or i guess
Formpanel should do sth here )?

thanx


On Wed, Feb 15, 2012 at 5:56 AM, Amith K Bharathan <
amithkbharat...@gmail.com> wrote:

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

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



Unable to follow instructions on http://code.google.com/webtoolkit/doc/latest/tutorial/roo-sts.html

2012-03-08 Thread fortm
I installed latest 2.9 STS and updated it, then I created a directory
in Spring-Roo installation directory by name expenses.
Started ROO and then ran the script from samples/expenses.roo from
command line.
When I run mvn - version, it shows latest path which I set in
environment same as Maven-directory/bin

Apache Maven 3.0.3 (r1075438; 2011-02-28 23:01:09+0530)
Maven home: C:\latestSTS\springsource\apache-maven-3.0.3\bin\..
Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_31\jre
Default locale: en_IN, platform encoding: Cp1252
OS name: "windows vista", version: "6.0", arch: "x86", family:
"windows"

Then i quit roo and typed "mvn gwt:run" and it is failing -

C:\latestSTS\springsource\spring-roo-1.2.1.RELEASE\expenses>mvn
gwt:run
[INFO] Scanning for projects...
[INFO]
[INFO]

[INFO] Building extrack 0.1.0.BUILD-SNAPSHOT
[INFO]

[INFO]
[INFO] >>> gwt-maven-plugin:2.2.0:run (default-cli) @ extrack >>>
[INFO]
[INFO] --- aspectj-maven-plugin:1.2:compile (default) @ extrack ---
[ERROR] The import
org.apache.commons.lang3.builder.ReflectionToStringBuilder cannot be
resolved
[ERROR] The import org.apache.commons.lang3.builder.ToStringStyle
cannot be resolved
[ERROR] ReflectionToStringBuilder cannot be resolved
[ERROR] ToStringStyle cannot be resolved
[ERROR] The import
org.apache.commons.lang3.builder.ReflectionToStringBuilder cannot be
resolved
[ERROR] The import org.apache.commons.lang3.builder.ToStringStyle
cannot be resolved
[ERROR] ReflectionToStringBuilder cannot be resolved
[ERROR] ToStringStyle cannot be resolved
[ERROR] The import
org.apache.commons.lang3.builder.ReflectionToStringBuilder cannot be
resolved
[ERROR] The import org.apache.commons.lang3.builder.ToStringStyle
cannot be resolved
[ERROR] ReflectionToStringBuilder cannot be resolved
[ERROR] ToStringStyle cannot be resolved
[WARNING] advice defined in
org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has
not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in
org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl
has not been applied [Xlint:adviceDidNotMatch][WARNING] advice defined
in org.springframework.mock.staticmock.AbstractMethodMockingControl
has not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in
org.springframework.mock.staticmock.AbstractMethodMockingControl has
not been applied [Xlint:adviceDidNotMatch]
[WARNING] advice defined in
org.springframework.scheduling.aspectj.AbstractAsync
ExecutionAspect has not been applied [Xlint:adviceDidNotMatch]
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 7.359s
[INFO] Finished at: Thu Mar 08 15:21:02 IST 2012
[INFO] Final Memory: 7M/34M
[INFO]

[ERROR] Failed to execute goal org.codehaus.mojo:aspectj-maven-plugin:
1.2:compile (default) on project extrack: Compiler errors :
[ERROR] error at import
org.apache.commons.lang3.builder.ReflectionToStringBuilder;
[ERROR] ^
[ERROR] C:\latestSTS\springsource\spring-roo-1.2.1.RELEASE\expenses\src
\main\java\org\springsource\roo\extrack\server\domain
\Employee_Roo_ToString.aj:6:0::0 The
 import org.apache.commons.lang3.builder.ReflectionToStringBuilder
cannot be resolved
[ERROR] error at import
org.apache.commons.lang3.builder.ToStringStyle;
[ERROR] ^
[ERROR] C:\latestSTS\springsource\spring-roo-1.2.1.RELEASE\expenses\src
\main\java\org\springsource\roo\extrack\server\domain
\Employee_Roo_ToString.aj:7:0::0 The
 import org.apache.commons.lang3.builder.ToStringStyle cannot be
resolved
[ERROR] error at return ReflectionToStringBuilder.toString(this,
ToStringStyle.S
HORT_PREFIX_STYLE);
[ERROR] 
[ERROR] C:\latestSTS\springsource\spring-roo-1.2.1.RELEASE\expenses\src
\main\java\org\springsource\roo\extrack\server\domain
\Employee_Roo_ToString.aj:13:0::0 ReflectionToStringBuilder cannot be
resolved
[ERROR] error at return ReflectionToStringBuilder.toString(this,
ToStringStyle.SHORT_PREFIX_STYLE);
[ERROR] 
[ERROR] C:\latestSTS\springsource\spring-roo-1.2.1.RELEASE\expenses\src
\main\java\org\springsource\roo\extrack\server\domain
\Employee_Roo_ToString.aj:13:0::0 ToStringStyle cannot be resolved
[ERROR] error at import
org.apache.commons.lang3.builder.ReflectionToStringBuilder;
[ERROR] ^
[ERROR] C:\latestSTS\springsource\spring-roo-1.2.1.RELEASE\expenses\src
\main\jaa\org\springsource\roo\extrack\server\domain
\Report_Roo_ToString.aj:6:0::0 The import
org.apache.commons.lang3.builder.ReflectionToStringBuilder cann

Google Groups Management IN GWT

2012-03-08 Thread Wayne Rademeyer
Is it possible to manage Google groups from GWT or do i need to use some or 
other API

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



About GWT RPC Serializable object

2012-03-08 Thread HeyHei
if i create a service which return a Serializable object.
Is the Serializable object only will load when client side
(javascript) request a call and then receive response(include the
Serializable object)?
thanks

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



Using EMF Model in GWT Client Side

2012-03-08 Thread Soeren B
Hi,
I'm currently working with EMF and GWT. I created my own EMF Model  and 
generated the model code (Runtime Platform: GWT is set). This Project got 
exported as JAR File and imported into my GWT Project. The Building Path 
configuration was made. Now I am trying to use this model on server- and 
client-side of my GWT Application. Therefore I included into my .gwt.xml 
file the following inherit:  
This file got generated by my EMF Model generation. In this file, there is 
a reference to the following: 
But the problem is, this file does not exist and was not generated by emf. 
So I am getting the following error message by running my application:
Loading inherited module 'org.eclipse.emf.ecore.Ecore' - [ERROR] Unable to 
find 'org/eclipse/emf/ecore/Ecore.gwt.xml' on your classpath; could be a 
typo, or maybe you forgot to include a classpath entry for source?

Did anyone of you already us an own emf model on client-side in gwt? How 
did you solve this issue? Did you have any emf library which us useable for 
gwt on client side?`

Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/_EIAp9_kPJUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Implementing Places that share all but have different prefix

2012-03-08 Thread Thomas Broyer


On Thursday, March 8, 2012 12:37:19 PM UTC+1, tanteanni wrote:
>
> Sometimes i have two places that differ only in thier prefix. For example 
> a "SelectionPlace" and a "ResultOfSelectionPlace". So both places share all 
> code but differ in @Prefix(value"..."). At the moment i implemented this by 
> using an abstract class but i have to copy the code of the tokenizer to get 
> tokenizers with different prefixes.
>
> Is there a way to let the concrete class only set the prefix of a shared 
> tokenizer class? Or is there probably a complete different way to achieve 
> this?
>

I believe it's possible using a parameterized tokenizer, a 
PlaceHistoryMapperWithFactory and using the @Prefix on the factory methods 
rather than on the tokenizer class:

class FooPlace extends AbstractMyPlace { }
class BarPlace extends AbstractMyPlace { }
abstract class AbstractMyPlace extends Place {
static class Tokenizer extends 
PlaceTokenizer { … }
…
}

class MyFactory {
  @Prefix("foo")
  public PlaceTokenizer foo() { return new 
AbstractMyPlace.Tokenizer(); }
  @Prefix("bar")
  public PlaceTokenizer bar() { return new 
AbstractMyPlace.Tokenizer(); }
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/UTFNVG8BuL4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: RequestFactory and offline clients

2012-03-08 Thread Thomas Broyer
Throwing out ideas:

   - you can tell network errors from server errors at the RequestTransport 
   level: server errors go through response received, while network errors go 
   through onError. If you can work offline thogh, I'm not sure you should 
   differentiate them: Receiver#onFailure should be enough to turn to using 
   the localStorage.
   - you could use offline events (use RootPanel.get().addBitlessDomHandler 
   to subscribe) and/or navigator.onLine() (use JSNI) to detect when you're 
   offline (on supported browsers); see 
   
http://www.html5rocks.com/en/tutorials/offline/whats-offline/#toc-detect-offline
   - there are good advice for architecturing your app for offline use on 
   the now-defunct Gears doc: 
   http://code.google.com/apis/gears/architecture.html (not sure if they're 
   still valid, double-check with HTML5Rocks)
   - You should abstract your storage and use IndexedDB (through JSNI for 
   now) if available (and possibly WebSQL), as localStorage has performance 
   concerns: 
   
http://hacks.mozilla.org/2012/03/there-is-no-simple-solution-for-local-storage/


On Thursday, March 8, 2012 11:21:02 AM UTC+1, Gilad Egozi wrote:
>
> Hello,
>
> I'm trying to create an application which is able to work even when 
> network is down.
> The idea is to store data returned from RequestFactory on the 
> localStorage, and to use localStorage when network isn't available.
> My problem - I'm not sure exactly how to differentiate between server 
> errors(5XX, 4XX, ...) and network errors.
> (I assume that on both cases my Receiver.onFailure() would be called, but 
> I still don't know how to identify this situation)
>
> Any help would be appreciated,
>
>
> Thanks,
> Gilad.
>

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



Implementing Places that share all but have different prefix

2012-03-08 Thread tanteanni
Sometimes i have two places that differ only in thier prefix. For example a 
"SelectionPlace" and a "ResultOfSelectionPlace". So both places share all 
code but differ in @Prefix(value"..."). At the moment i implemented this by 
using an abstract class but i have to copy the code of the tokenizer to get 
tokenizers with different prefixes.

Is there a way to let the concrete class only set the prefix of a shared 
tokenizer class? Or is there probably a complete different way to achieve 
this?

thx in advance

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



RequestFactory and offline clients

2012-03-08 Thread Gilad Egozi
Hello,

I'm trying to create an application which is able to work even when network 
is down.
The idea is to store data returned from RequestFactory on the localStorage, 
and to use localStorage when network isn't available.
My problem - I'm not sure exactly how to differentiate between server 
errors(5XX, 4XX, ...) and network errors.
(I assume that on both cases my Receiver.onFailure() would be called, but I 
still don't know how to identify this situation)

Any help would be appreciated,


Thanks,
Gilad.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NEsiZwiO4lUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Uploading a file >1MB

2012-03-08 Thread learning coding
Hi Kim

I am very new to GWT .

I have to make a web application which uploads the file.
The file can be of type .doc , .txt
The file size can be more then 1 MB.

I dont know how to do it.
Some body suggested me to use BolbStore. After suggesting he didnt replied
once also.

files used for BlobStore
*

import* javax.servlet.ServletException;

*import* javax.servlet.http.HttpServlet;
*

import* javax.servlet.http.HttpServletRequest;
*

import* javax.servlet.http.HttpServletResponse;

*import* com.google.appengine.api.blobstore.BlobKey;
*

import* com.google.appengine.api.blobstore.BlobstoreService;
*

import* com.google.appengine.api.blobstore.BlobstoreServiceFactory;

Plz help me . i am stuggling with this from a very long time.

On Thu, Mar 8, 2012 at 9:29 AM, kim young ill  wrote:

> need to be more specific what your BlobstoreService is doing/used library
>
>
>  On Wed, Mar 7, 2012 at 4:01 PM, learning coding <
> learning.codin...@gmail.com> wrote:
>
>>  Hi all ,
>>
>> I have to make webapplication using java,
>> I have to upload a file which is bigger then 1MB .
>> Actually i need the contentStream of the file and the value of the
>> textBox which is on the FormPanel ,on the myProject.server side .
>>
>> The file can be of .txt and .doc type.
>>
>> Somebody suggested me to use BolbStore.
>>
>>
>> My Code :
>>
>> Code
>>  client
>>  // Get The URL
>>  public void onClick(ClickEvent event) {
>>  System.out.println("blob" +blobServices);
>>blobServices
>>.getBlobStoreUploadUrl(callback) ;
>>  }
>>});
>>
>> //
>> ..Some more code
>>
>> public void onSubmitComplete(SubmitCompleteEvent event) {
>>
>>  Window.alert(event.getResults());
>>  }
>>
>>});
>>
>> The above RPC call is working fine i am able get the URL.
>> Now i have to use this URL with servlet which is used to upload a
>> file.
>>
>>   AsyncCallback callback = new AsyncCallback() {
>>
>>public void onFailure(Throwable caught) {
>>// TODO Auto-generated method stub
>>caught.printStackTrace();
>>}
>>
>>public void onSuccess(Object result) {
>>String tmp = result.toString();
>>uploadForm.setAction(tmp);
>>
>>// Submit the form to complete the upload
>>uploadForm.submit();
>>uploadForm.reset();
>>}
>>};
>>
>> On server Side
>>
>> public class UploadServiceImpl extends HttpServlet {
>>
>>   BlobstoreService blobstoreService =
>> BlobstoreServiceFactory.getBlobstoreService();
>>
>> public void doPost(HttpServletRequest req, HttpServletResponse
>> res)
>>  throws ServletException, IOException {
>>
>>Map blobs =
>> blobstoreService.getUploadedBlobs(req);
>>BlobKey blobKey = blobs.get("upload");
>>
>>if(blobKey == null){
>>res.sendRedirect("/");
>>}else{
>>res.sendRedirect("/serve?blob-key="
>> +blobKey.getKeyString());
>>}
>>  }
>>
>> }
>>
>> With this Code I am able to view only the .txt file on
>> Window.alert(event.getResults());
>> and also the size of .txt file is greater then 2 MB.
>>
>> But when i submit the xyz.doc file it gives option to save file and
>> also the name of the file xyz.doc is changed to serve.doc
>> the size of the file is 130 KB.
>>
>> Plz tell me what to do. file can be of type .txt or .doc with size
>> greater then 1 MB.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Uploading a file >1MB

2012-03-08 Thread kim young ill
need to be more specific what your BlobstoreService is doing/used library


On Wed, Mar 7, 2012 at 4:01 PM, learning coding  wrote:

> Hi all ,
>
> I have to make webapplication using java,
> I have to upload a file which is bigger then 1MB .
> Actually i need the contentStream of the file and the value of the
> textBox which is on the FormPanel ,on the myProject.server side .
>
> The file can be of .txt and .doc type.
>
> Somebody suggested me to use BolbStore.
>
>
> My Code :
>
> Code
>  client
>  // Get The URL
>  public void onClick(ClickEvent event) {
>  System.out.println("blob" +blobServices);
>blobServices
>.getBlobStoreUploadUrl(callback) ;
>  }
>});
>
> //
> ..Some more code
>
> public void onSubmitComplete(SubmitCompleteEvent event) {
>
>  Window.alert(event.getResults());
>  }
>
>});
>
> The above RPC call is working fine i am able get the URL.
> Now i have to use this URL with servlet which is used to upload a
> file.
>
>   AsyncCallback callback = new AsyncCallback() {
>
>public void onFailure(Throwable caught) {
>// TODO Auto-generated method stub
>caught.printStackTrace();
>}
>
>public void onSuccess(Object result) {
>String tmp = result.toString();
>uploadForm.setAction(tmp);
>
>// Submit the form to complete the upload
>uploadForm.submit();
>uploadForm.reset();
>}
>};
>
> On server Side
>
> public class UploadServiceImpl extends HttpServlet {
>
>   BlobstoreService blobstoreService =
> BlobstoreServiceFactory.getBlobstoreService();
>
> public void doPost(HttpServletRequest req, HttpServletResponse
> res)
>  throws ServletException, IOException {
>
>Map blobs =
> blobstoreService.getUploadedBlobs(req);
>BlobKey blobKey = blobs.get("upload");
>
>if(blobKey == null){
>res.sendRedirect("/");
>}else{
>res.sendRedirect("/serve?blob-key="
> +blobKey.getKeyString());
>}
>  }
>
> }
>
> With this Code I am able to view only the .txt file on
> Window.alert(event.getResults());
> and also the size of .txt file is greater then 2 MB.
>
> But when i submit the xyz.doc file it gives option to save file and
> also the name of the file xyz.doc is changed to serve.doc
> the size of the file is 130 KB.
>
> Plz tell me what to do. file can be of type .txt or .doc with size
> greater then 1 MB.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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