Re: Hosting GWT applications

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

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

S. Abraham
www.DataStoreGwt.com



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

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



Re: What's the version of Jetty in gwt-dev.jar ?

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

S. Abraham
www.DataStoreGwt.com

On Sep 8, 11:56 pm, Leonel Gayard  wrote:
> Title says it all.
>
> What version of Jetty is included in gwt-dev.jar ?
>
> Also, did it change over the latest versions of GWT ? From GWT 2.0 to
> bleeding-edge 2.4, which versions of Jetty are bundled in each ?
>
> Thanks,
> Leonel

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



GWT 2.4 Designer na split-view editing

2011-09-08 Thread maticpetek
Hello,
Question : how to switch to split-view editing in new GWT Designer? What 
should I press in Eclipse? Thank you

Environment :
Eclipse 3.7
OS X

Regards,
  Matic

-- 
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/-/ZIq1G5UNVpsJ.
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.



Anyone using Place/Activity feature in GWT?

2011-09-08 Thread Robin
I tried to adopt this feature which is available since 2.1. Basically
I followed the example from the following link:
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html

However, it seems not quite working well for me.

First it requires to create more java classes and interfaces  and very
easy to get lost among all the classes, although this will benefit the
project in the long run and is good for unit test.

Second, I don't want to create each Tokenizer for each Place.
According to the link above, I created a BasicPlace and subclass all
the places I don't want to have Tokenizer. By doing so, It seems I can
not have the right Place on the URL when i call goTo(SomePlace). The
url just has "...#Place:null"

Anyone has experienced the similar problems I had?

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



why does there have two groups of classes about json?

2011-09-08 Thread wahaha
the two packages "com.google.gwt.dev.json" and
"com.google.gwt.client.json",all have a group of classes about json of
there own,why?

i think i must hava some grammar mistakes,my english is very poor.

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



WebSQL with GWT

2011-09-08 Thread Hilario Perez Corona
Hi,

Doing some searches, i've not found any libraries for using WebSQL on GWT. 
Maybe i did my searches wrong and there are libraries for this...

Anyway, i've decided to write my first library on GWT, to use WebSQL.

Here it is:

https://github.com/hpcorona/gwt-websql

It's my first library, and pretty much my firsts steps on GWT... so, any 
feedback is really appreciated to improve my skills.

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/-/_3djz1Gd0IcJ.
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: Conditional CSS & Updates

2011-09-08 Thread Sanjay
Yes, I agree. Even if my proposed method worked, it is not meant for this. 
If anything, CSS3 Media Queries are meant for this. Alas, gwt doesnt support 
them yet.

My advice: as much as possible, build fluid layouts that scale to the amount 
of room on the screen. If you need a master/details view in landscape and a 
details view in portrait do that in code, with a view handling a custom 
OrientationChange event on the event bus.

Also, don't think you absolutely have to do this with CSS alone. You can 
swap out Views and keep the presenters the same. Only thing is make sure in 
the final implementation you handle the details, like persisting scroll 
location.

-- 
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/-/5quwFYzkhEQJ.
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: onModuleLoad() - what is it in javascript

2011-09-08 Thread dreamer
Just for proof of concept, save the below two code segments  as html
and js files
and launch html, it builds the body.

 test.html==


This is test page sas




===
===test.js===
function test(){
  alert("Hello");
  document.write("Hello");
}
test();
==


On Sep 8, 8:14 pm, dreamer  wrote:
> seems 1.6 documentation is old, it is assuming main script is in body.
>
> now it is in head tag.
>
> In detailed compile file, there is call for compile like
> "schooldistrict();".
>
> Which is bootstrap javascript function for all script lets.
>
> My guess is main script (function/object) is getting executed soon
> after loading, which
> in tern is injecting all script tags in body, which in tern rendering
> body.
>
> Global School Districthttp://schoolk12.appspot.com/
>
> On Sep 8, 11:56 am, Ernesto Oltra  wrote:
>
>
>
>
>
>
>
> > Oops, and try using the "Detailed" compilation mode, to be able to search
> > "onModuleLoad" in the javascript file and then track it better when compiled
> > in advance 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-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: onModuleLoad() - what is it in javascript

2011-09-08 Thread dreamer
seems 1.6 documentation is old, it is assuming main script is in body.

now it is in head tag.

In detailed compile file, there is call for compile like
"schooldistrict();".

Which is bootstrap javascript function for all script lets.

My guess is main script (function/object) is getting executed soon
after loading, which
in tern is injecting all script tags in body, which in tern rendering
body.

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



On Sep 8, 11:56 am, Ernesto Oltra  wrote:
> Oops, and try using the "Detailed" compilation mode, to be able to search
> "onModuleLoad" in the javascript file and then track it better when compiled
> in advance 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-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: try to parse a xml,errored

2011-09-08 Thread Jim Douglas
Add this to your *.gwt.xml file:

  

On Sep 8, 7:32 pm, wahaha  wrote:
> code:
>         public void onModuleLoad() {
>                 String str="333";
>                 Document doc= XMLParser.createDocument();
>                 Element top=doc.createElement("bbb");
>                 top.setAttribute("ddd", "3");
>                 top.setNodeValue("dd");
>                 Window.alert(doc.toString());
>         }
>
> error:
>                 [ERROR] [adafd] - Hint: Check the inheritance chain from your
> module; it may not be inheriting a required module or a module may not
> be adding its source path entries properly

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



try to parse a xml,errored

2011-09-08 Thread wahaha
code:
public void onModuleLoad() {
String str="333";
Document doc= XMLParser.createDocument();
Element top=doc.createElement("bbb");
top.setAttribute("ddd", "3");
top.setNodeValue("dd");
Window.alert(doc.toString());
}


error:
[ERROR] [adafd] - Hint: Check the inheritance chain from your
module; it may not be inheriting a required module or a module may not
be adding its source path entries properly

-- 
You received 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: File download with GWT

2011-09-08 Thread Jim Douglas
Window.open() is trapped by the popup blocker.

I posted a link to the complete set of steps.

On Sep 8, 5:26 pm, Kevin Jordan  wrote:
> Yeah, use an anchor which will automatically launch it through the
> built-in function in the browser or you can use the open method in the
> GWT Window class to open a new window pointing to your 
> servlet:http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl...,
> java.lang.String, java.lang.String)
>
> Window.open is handy if you want to do it automatically without user
> interaction or for different components that wouldn't automatically
> work through the browser to open it up, like a button.
>
> On Sep 8, 2:44 pm, Magno Machado  wrote:
>
>
>
>
>
>
>
> > I use to do this with an Anchor widget that points to the servlet that serve
> > the file

-- 
You received 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: File download with GWT

2011-09-08 Thread Kevin Jordan
Yeah, use an anchor which will automatically launch it through the
built-in function in the browser or you can use the open method in the
GWT Window class to open a new window pointing to your servlet:
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Window.html#open(java.lang.String,
java.lang.String, java.lang.String)

Window.open is handy if you want to do it automatically without user
interaction or for different components that wouldn't automatically
work through the browser to open it up, like a button.

On Sep 8, 2:44 pm, Magno Machado  wrote:
> I use to do this with an Anchor widget that points to the servlet that serve
> the file

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



Re: GWT 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Kevin Jordan
Looking further, it would probably be best though if a fix for
RequestFactoryModel was checked in that had a check against the type
being examined and the type it gets for the proxy type in the
@ExtraTypes array:
private List checkExtraTypes(JClassType type,
boolean addModelExtraTypes)
  throws UnableToCompleteException {
Set toReturn = new
LinkedHashSet();
if (addModelExtraTypes && extraTypes != null) {
  toReturn.addAll(extraTypes);
}
for (JClassType toExamine : type.getFlattenedSupertypeHierarchy())
{
  ExtraTypes proxyExtraTypes =
toExamine.getAnnotation(ExtraTypes.class);
  if (proxyExtraTypes != null) {
for (Class clazz :
proxyExtraTypes.value()) {
  JClassType proxy =
oracle.findType(clazz.getCanonicalName());
  if (proxy == null) {
poison("Unknown class %s in @%s",
clazz.getCanonicalName(), ExtraTypes.class
.getSimpleName());
  } else /*check added here*/ if (!toExamine.equals(proxy) /
*and possibly !proxy.isAssignableTo(toExamine)*/) {
toReturn.add(getEntityProxyType(proxy));
  }
}
  }
}
if (toReturn.isEmpty()) {
  return Collections.emptyList();
}
return new ArrayList(toReturn);
  }

Unfortunately due to their use of private a lot in both, neither
RequestFactoryGenerator nor RequestFactoryModel are very
extendable...seems you have to end up making a copy of both for this
fix...

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



Re: GWT 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Kevin Jordan
Also, after you put that in your copied RequestFactoryGenerator,
you'll need to put:



in your module's gwt.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.



Design mode and "Can't create SWT browser"

2011-09-08 Thread darrell pfeifer
I keep getting the "Can't create SWT browser" screen. This was
happening with 2.3 so I waited and updated to the 2.4 release but I
still can't get a designer screen.

I thought design mode was supposed to use webkit if it could. I've
also tried adding the command line option to enable webkit but it had
no effect.

Disclaimer: I'm running Fedora rawhide and a chrome dev.

Any debugging suggestions?

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



Re: GWT 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Kevin Jordan
Doesn't appear much has changed on the RequestFactoryGenerator in the
final release from RC1.  I ended up having to do a copy of
RequestFactoryGenerator and change AllReachableTypesVisitor to be:
private static class AllReachableTypesVisitor extends
RequestMethodTypesVisitor {

private final RequestFactoryModel model;

List visitedTypes = new 
ArrayList();

public AllReachableTypesVisitor(RequestFactoryModel model) {
this.model = model;
}

@Override void examineTypeOnce(JClassType type) {
// Need this to handle List, Map
JParameterizedType parameterized = 
type.isParameterized();
if (parameterized != null) {
for (JClassType arg : 
parameterized.getTypeArgs()) {
this.maybeVisit(arg);
}
}
JClassType base = ModelUtils.ensureBaseType(type);
EntityProxyModel peer = this.model.getPeer(base);
if (peer == null) {
return;
}
peer.accept(this);
}

@Override public boolean visit(ContextMethod x) {
if (!this.visitedTypes.contains(x)) {
this.visitedTypes.add(x);
System.out.println("Visiting extra types for: " 
+
x.getQualifiedSourceName());
this.visitExtraTypes(x);
}
return true;
}

@Override public boolean visit(EntityProxyModel x) {
if (!this.visitedTypes.contains(x)) {
this.visitedTypes.add(x);
System.out.println("Visiting extra types for: " 
+
x.getQualifiedSourceName());
this.visitExtraTypes(x);
}
return true;
}

@Override public boolean visit(RequestFactoryModel x) {
if (!this.visitedTypes.contains(x)) {
this.visitedTypes.add(x);
System.out.println("Visiting extra types for: " 
+
x.getFactoryType().getQualifiedSourceName());
this.visitExtraTypes(x);
}
return true;
}

void visitExtraTypes(HasExtraTypes x) {
if (x.getExtraTypes() != null) {
for (EntityProxyModel extra : 
x.getExtraTypes()) {
System.out.println("Accepting type: " +
extra.getQualifiedSourceName());
extra.accept(this);
}
}
}
}

The problem seems to be that somehow a type will get itself as an
extraType and so it gets into an infinite loop where it visits itself
when it's mentioned in an @ExtraTypes from a superclass.  To make it
not do that, I have it keep track of what ones it has already
visited.  Annotating the superclass seems to be the only way to make
its subclasses available, but it also causes the infinite loop by
default.  I have a few places in my code where I have proxies that
reference a superclass proxy that is for an abstract domain class and
will be assigned with a proxy subclass, but that failed until I added
them in @ExtraTypes to the superclass proxy.  It seems that
polymorphism in RequestFactory at the moment automatically takes care
of making sure superclass proxies are available, but it doesn't take
care of subclasses that are assignable to a proxy.

On Sep 8, 4:25 pm, Y2i  wrote:
> I also have @ExtraTypes on RF due to stack overflow in RC.  Haven't tried
> yet in the release.

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



Re: Scalability problem with Cell widgets and KeyboardPagingPolicy.INCREASE_RANGE

2011-09-08 Thread camerojo
I have had no feedback on this but I think it is a serious but fairly
easily resolved problem so I have reported it as an issue -
http://code.google.com/p/google-web-toolkit/issues/detail?id=6777

On Aug 16, 4:40 pm, camerojo  wrote:
> Cell widgets were a great step forward for GWT - enabling efficient
> client display of very large amounts of server data by means of
> RangeChangeEvents processed by AsyncDataProviders.
>
> However there is a serious problem with keyboard navigation as defined
> by KeyboardPagingPolicy.INCREASE_RANGE.
>
> Suppose you are viewing an underlying dataset (eg a database on the
> server) which has a million rows. This is normally perfectly practical
> using the new cell widget architecture.
>
> However, if you are currently displaying the first page of the data
> using KeyboardPagingPolicy.INCREASE_RANGEand your user presses the
> End key, the generated RangeChangeEvent that is fired will have a
> visible range of 0 to one million! In other words it will request the
> loading of the entire data set. Clearly, only the last page or screen
> full of data is all that is required to satisfy the user's request.
>
> This makes KeyboardPagingPolicy.INCREASE_RANGEcompletely unscalable
> in its current form.
>
> KeyboardPagingPolicy.CHANGE_PAGE does not have this problem. However
> the problem with KeyboardPagingPolicy.CHANGE_PAGE is that it always
> changes the visible range by a complete page when you press the up or
> down arrow at the edge of the current visible range. Often you just
> want the visible range to scroll forward a single row.INCREASE_RANGE
> does this but, as described above, is unusable for large datasets
> because of its Home/End handling.
>
> I suggest one of the following to make keyboard scrolling more usable:
>
> 1. RedefineINCREASE_RANGEbehaviour for Home/End keys, so that
> generated RangeChangeEvent is limited to what the user actually wants
> to see
>
> 2. Add a new enum - maybe called SLIDING_RANGE - which processes up/
> down arrow by changing the start of the visible range by just 1 when
> needed.
>
> 3. Allow for pluggable KeyboardPagingPolicy logic
> I suggest either redefining, creating a new enum, or allowing
> pluggable policies

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



Re: GWT 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Y2i
Brad, what if you place @ExtraTypes(FooProxy.class) on some RequestContext 
returned by methods of FooRequestFactory?

-- 
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/-/O2suz3xlfkgJ.
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 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Y2i
I also have @ExtraTypes on RF due to stack overflow in RC.  Haven't tried 
yet in the release.

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



Re: GWT designer keeps hanging!! going mental

2011-09-08 Thread Eric Clayberg (Google)
We are still unable to reproduce this. I think we need to see a complete 
test case project as well as your Eclipse preferences.

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



Re: why does it take a whole MINUTE for gwt designer to parse an empty class of splitLayoutPanel

2011-09-08 Thread Eric Clayberg (Google)
No idea. That works pretty fast on our end, but it would be helpful to see a 
complete test case project.

If you can profile Eclipse or take thread snapshots at various points during 
that minute, it would be very helpful.

-- 
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/-/0albIx_LFMoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Basic CSS question

2011-09-08 Thread Ernesto Oltra
Sorry, I meant if you use the CssResource to bundle your stylesheets
together with your app, it has a method ensureInjected(). The load process
would be something like that:

Host page -> GWT code -> standard.css -> Your code -> Your CSS file injected

So it's easier to overwrite styles in this way.

Sample code:

public interface Resources extends ClientBundle {

  public static final Resources INSTANCE = GWT.create(Resources.class);

  public interface Style extends CssResource {
String myCssClassHere();
String myCssClassHere2();
  }

  @ClientBundle.Source("Style.css")
  @CssResource.NotStrict // If a class is present in the css file,
  Style css();   //but not in the interface, don't
 // return any compiler errors


  ImageResource blahBlah();
  // Othere resources

}

public class MyApp implements EntryPoint {

  public void onModuleLoadSafe() {
Resources.INSTANCE.css().ensureInjected();
  }

}


2011/9/8 Tobias 

> I am currently also struggling with that issue, see:
>
> http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9e6d9651395c96a3/bddc3938127ba1b0
>
>
> On Sep 8, 9:29 pm, Mike Dee  wrote:
> > What does "injecting" mean in terms of CSS?  Sounds like this may
> > alter the way cascading works in a typical web site/app?
> >
> > On Sep 8, 11:47 am, Ernesto Oltra  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > Use Firebug or Chrome Dev Tools to see the cascade of styles, because I
> had
> > > some hard times with that. You define the font X for body, but then GWT
> > > loads and injects the standard.css file and you have sans-serif or
> whatever
> > > again.
> >
> > > You could:
> >
> > > 1) Load your stylesheet and inject it after GWT loads.
> >
> > > 2) Use your own version of standard.css (it's only a css file with some
> > > images, copy it and use it)
> >
> > > Hope it helps,
> >
> > > Ernesto
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



GWT and GPE 2.4 have arrived

2011-09-08 Thread Eric Clayberg (Google)
*Tools to help monetize and mobilize your development: Announcing the Google 
Plugin for Eclipse 
2.4
*
*
*
At this year’s Google I/O conference, we 
*announced*a
 beta version of the Google Plugin for Eclipse that added App Engine 
tooling for Android developers. A release aimed at removing the friction 
associated with building installable Android apps that rely on App Engine 
for server-side support. Since then we’ve not only been working on bug fixes 
and polish, but we’ve also added a couple of new features and today we’re 
excited to announce the GA release of GPE and GWT 2.4.

To jump right in, you can download this release *from our main GWT download 
page*. 

More info on this release (including the features that we've added) can be 
found within the 2.4 *blog 
post*
.

Enjoy!

-Eric

-- 
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/-/ZJF2a_6yVuwJ.
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: Converting dynamic Web project to GWT project

2011-09-08 Thread Perceval
Forget that ; I found my own answer. I needed the Instantiations
plugin : GWT Designer GUI Builder 8.0. Everything fine now...

On 8 sep, 14:41, Perceval  wrote:
> Hey everyone,
>
> First post here. I've been working with GWT for more than two years
> now, but I have almost always worked on already started project. In
> the last few months, I started a few and I was always comfortable with
> building a dynamic web project first, that was attached to an EAR an a
> Glassfish server. I then converted it to a GWT project using
> contextual menus. Now, I'm trying to do the same in Eclipse 3.5, using
> GWT 2.4, App Engine 1.5.3 and I can't. Am I missing something here?
> Aside from the Google plugin, Have I forgotten to install another
> plugin? Thanks a lot in advance for any reply!

-- 
You received 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: File download with GWT

2011-09-08 Thread Magno Machado
I use to do this with an Anchor widget that points to the servlet that serve
the file

On Thu, Sep 8, 2011 at 12:26 PM, Jim Douglas  wrote:

>
> http://groups.google.com/group/google-web-toolkit/browse_thread/thread/8c708ac2da186d17/ca92d9d8f78a0e19
>
> On Sep 8, 7:33 am, Aurita Moya  wrote:
> > I am new to GWT application and I need help downloading files using
> > servlet, I have the part that generates an excel file. xls, but I need
> > to display the window "save as"
> >
> >
> ---
> -
> >
> > import org.apache.poi.hssf.usermodel.HSSFWorkbook;
> > import org.apache.poi.ss.usermodel.Row;
> > import org.apache.poi.ss.usermodel.Sheet;
> > import ve.com.digitel.sorteo.servicios.to.GanadorTo;
> >
> > import javax.servlet.ServletConfig;
> > import javax.servlet.ServletException;
> > import javax.servlet.ServletOutputStream;
> > import javax.servlet.http.HttpServlet;
> > import javax.servlet.http.HttpServletRequest;
> > import javax.servlet.http.HttpServletResponse;
> > import java.io.File;
> > import java.io.FileOutputStream;
> > import java.text.SimpleDateFormat;
> > import java.util.ArrayList;
> > import java.util.Date;
> > import java.util.List;
> >
> > /**
> >  * Metodo para llamar al servlet que cargara un archivo Excel.
> >  */
> > public class FileUpdateExcel extends HttpServlet {
> > /**
> >  * Initializes the servlet.
> >  */
> > public void init(ServletConfig config) throws ServletException {
> > super.init(config);
> > }
> >
> > /**
> >  * Destroys the servlet.
> >  */
> > public void destroy() {
> > }
> >
> > /**
> >  * Crear un archivo Excel.
> >  * Realiza la conexion del servlet.
> >  * Metodo que atiende las peticiones que se realizan via Post.
> >  *
> >  * @param request  proporcionar la funcionalidad sobre las
> > peticiones HTTP.
> >  * @param response proporcionar la funcionalidad de respuesta
> > HTTP.
> >  * @throws ServletException
> >  * @throws java.io.IOException
> >  */
> > protected void doPost(HttpServletRequest request,
> > HttpServletResponse
> > response)
> > throws ServletException, java.io.IOException {
> > //processRequest(request, response);
> >
> > List ganadorTo = new ArrayList();
> > HSSFWorkbook wb = new HSSFWorkbook();
> > Sheet sheet = wb.createSheet();
> > for (int i = 0; i < ganadorTo.size(); i++) {
> > Row row = sheet.createRow(i);
> > short j = 0, k = 0;
> > row.createCell(j+
> > +).setCellValue(ganadorTo.get(i).getId());
> > sheet.autoSizeColumn(k++);
> > row.createCell(j+
> > +).setCellValue(ganadorTo.get(i).getParticipante().getNombre() + " " +
> > ganadorTo.get(i).getParticipante().getApellido());
> > sheet.autoSizeColumn(k++);
> > row.createCell(j+
> > +).setCellValue(ganadorTo.get(i).getPremio().getNombre());
> > sheet.autoSizeColumn(k++);
> > }
> >
> > SimpleDateFormat formato = new
> > SimpleDateFormat("MMddHHmmss");
> > Date date = new Date(System.currentTimeMillis());
> > String cadenaFecha = formato.format(date);
> >
> > String directorio = "C:\\Documents and Settings\\Aura\\Mis
> > documentos\\";
> > File directorioLocal = new File(directorio);//creando
> > directorio dinamico
> > if (!directorioLocal.mkdirs())
> > Window.alert("Error en la Creacion del Archivo de
> > Respaldo");
> > else {
> > String path = directorio + "RespaldoGanadores_" + cadenaFecha
> > + ".xls";
> > File pathFile = new File(path);
> > FileOutputStream fileOut = new FileOutputStream(pathFile);
> > ServletOutputStream out = response.getOutputStream();
> > response.setContentType("application/vnd.ms-excel");
> > response.setHeader("Content-Disposition", "attachment;
> > filename=" + pathFile);
> >
> > wb.write(fileOut);
> > out.flush();
> > out.close();
> > fileOut.close();
> > }
> > }
> >
> > }
> >
> > Can you give me an example to create it through a servlet file
> > download, please!
>
> --
> You received 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.
>
>


-- 
Magno Machado Paulo
http://blog.magnomachado.com.br
http://code.google.com/p/emballo/

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

What's the version of Jetty in gwt-dev.jar ?

2011-09-08 Thread Leonel Gayard
Title says it all.

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

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

Thanks,
Leonel

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



Re: Basic CSS question

2011-09-08 Thread Tobias
I am currently also struggling with that issue, see:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9e6d9651395c96a3/bddc3938127ba1b0


On Sep 8, 9:29 pm, Mike Dee  wrote:
> What does "injecting" mean in terms of CSS?  Sounds like this may
> alter the way cascading works in a typical web site/app?
>
> On Sep 8, 11:47 am, Ernesto Oltra  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > Use Firebug or Chrome Dev Tools to see the cascade of styles, because I had
> > some hard times with that. You define the font X for body, but then GWT
> > loads and injects the standard.css file and you have sans-serif or whatever
> > again.
>
> > You could:
>
> > 1) Load your stylesheet and inject it after GWT loads.
>
> > 2) Use your own version of standard.css (it's only a css file with some
> > images, copy it and use it)
>
> > Hope it helps,
>
> > Ernesto

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



Re: Basic CSS question

2011-09-08 Thread Mike Dee
What does "injecting" mean in terms of CSS?  Sounds like this may
alter the way cascading works in a typical web site/app?

On Sep 8, 11:47 am, Ernesto Oltra  wrote:
> Hi,
>
> Use Firebug or Chrome Dev Tools to see the cascade of styles, because I had
> some hard times with that. You define the font X for body, but then GWT
> loads and injects the standard.css file and you have sans-serif or whatever
> again.
>
> You could:
>
> 1) Load your stylesheet and inject it after GWT loads.
>
> 2) Use your own version of standard.css (it's only a css file with some
> images, copy it and use it)
>
> Hope it helps,
>
> Ernesto

-- 
You received 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: onModuleLoad() - what is it in javascript

2011-09-08 Thread Ernesto Oltra
Oops, and try using the "Detailed" compilation mode, to be able to search 
"onModuleLoad" in the javascript file and then track it better when compiled 
in advance mode.

-- 
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/-/l45pXlJ3oy0J.
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: onModuleLoad() - what is it in javascript

2011-09-08 Thread Ernesto Oltra
The latest one:
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideBootstrap


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



Re: Basic CSS question

2011-09-08 Thread Ernesto Oltra
Hi,

Use Firebug or Chrome Dev Tools to see the cascade of styles, because I had 
some hard times with that. You define the font X for body, but then GWT 
loads and injects the standard.css file and you have sans-serif or whatever 
again.

You could:

1) Load your stylesheet and inject it after GWT loads.

2) Use your own version of standard.css (it's only a css file with some 
images, copy it and use it)

Hope it helps,

Ernesto

-- 
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/-/rj0_6vrsLOcJ.
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.



Converting dynamic Web project to GWT project

2011-09-08 Thread Perceval
Hey everyone,

First post here. I've been working with GWT for more than two years
now, but I have almost always worked on already started project. In
the last few months, I started a few and I was always comfortable with
building a dynamic web project first, that was attached to an EAR an a
Glassfish server. I then converted it to a GWT project using
contextual menus. Now, I'm trying to do the same in Eclipse 3.5, using
GWT 2.4, App Engine 1.5.3 and I can't. Am I missing something here?
Aside from the Google plugin, Have I forgotten to install another
plugin? Thanks a lot in advance for any reply!

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



Re: Hosting GWT applications

2011-09-08 Thread Ernesto Oltra
In the website (http://gwt.google.com/) there are some tutorials about 
GWT/Appengine And check http://code.google.com/appengine too for tutorials 
on Java-Appengine.

-- 
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/-/hY-_wSEdrNsJ.
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.



Hosting GWT applications

2011-09-08 Thread sachin sreenivasan
Hi,

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

Regards,
sachin

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



Re: GWT and social networks

2011-09-08 Thread darkflame
Depends how much functionality you want.
If you just want a facebook share, you could have;

Window.open("http://www.facebook.com/sharer.php?u="+url,
"_blank","");

Where "url" is the link to be shared.
Then just trigger that on a button on your app. (which you could make
to look like a facebook link if you wished).
Many social sites provide simple url's for their sharing functions so
you dont technicaly need any special code to do that.

If you want more full intergration you probably need to inject their
script.
You can put it on the html page, but if it parses the page to add
stuff before you app loads it will probably go wrong.

You could instead do it like this;

//Google Plus
String s = "http://"+url+"\";>";
InlineHTML h = new InlineHTML(s);
this.add(h); // <--- where "this" is a container wiget that can
take the html above

   Document doc = Document.get();
   ScriptElement script = doc.createScriptElement();
  script.setSrc("https://apis.google.com/js/plusone.js";);  // <---
link to their script
  script.setType("text/javascript");
   script.setLang("javascript");
   doc.getBody().appendChild(script);




On Sep 8, 5:46 pm, Diego Places  wrote:
> Hello everyone,
> I started programming in GWT 1 month .. I need help . social
> networks like facebook, twitter, google + richiedeno to be used to
> import the javascript and then use the html simple addition of various
> buttons. Everything seems easy!. But I had big problems with GWT
> javascript injecting the fb 
> While the exploits twitter4j with twitter I can perform some
> operations (server side and use the gwt twitter4j realized the button
> and manage the connection to the server at the click ) but I can
> not manage in this way, the realization of all the buttons twitter.
> My question is: Is there a Methodology to integrate the functionality
> of social networks?
>
> thanks
> Diego (City Venice - Italy)

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



Re: GWT 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Brad Leupen
Hey Thomas,

Thanks for the reply. I think I actually tried that at one point on
the RC and ran into a stack overflow. Regardless, the design still
wont really work for me because the base Component proxy object really
has no idea what it's subclasses are or its subclasses' dependent
ValueProxies.

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



Re: GWT 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Thomas Broyer
Can't you put your @ExtraTypes on the proxies instead? I.e. if you have 
"FooProxy extends SuperFooProxy", then why not put 
@ExtraTypes(FooProxy.class) on the SuperFooProxy interface?

-- 
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/-/8-tsXn_A3JIJ.
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.



Basic CSS question

2011-09-08 Thread Mike Dee
I think this is a basic CSS question.  I am playing around with
styles.  I notice that in standard.css that body is defined to have a
sans-serif font family.

If I change the font-family to serif, I would expect all other
elements (labels, menus, buttons, etc) to be affected.  But I don't
see any change when I run my test app.  I basically copied the body
class from standard.css and pasted it into my app.css.  I only made
one change, which is to the font-family (from sans-serif to serif).

I would have expected to see serif used in all widgets. There are no
other mentions of "font-family" in standard.css.  My (probably faulty)
understanding of CSS is that the properties set in the body would be
inherited by other elements.

MIke

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



How (editor + requestfactory) can actually update a collection in a domain

2011-09-08 Thread Andy
Hi,

I have a entity e.g.

public class User{
  byte[] id;
  String name;
  List contact;
}

public class ContactDetail {
  byte[] id,
  String name,
  int privacyFlag,
.
}

The question is how can we wire the contactDetails to an editor and
send only the changes to the server, not the whole 500 contactDetails
the user domain have.
Is there an example of this? or is there any best practice/
recommendation on this?

Kind Regards
Andy

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



Re: Is there a GWT book covering version >= 2.1.1?

2011-09-08 Thread tom
Thank you, I'll have a look at it!

-- 
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/-/m8n1NNrPlI8J.
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 come my extended StackLayoutPanel does show headers correctly?

2011-09-08 Thread Eric Clayberg (Google)
StackLayoutPanel does not provide enough API to get the required design time 
information (such as the headers). We resort to hacks to get access to that 
info for StackLayoutPanel itself at design time.

It is unlikely that you can create a compatible sub-class of 
StackLayoutPanel, because there is no API to be compatible with. You would 
need to create specific design time support for your class much like we did 
for StackLayoutPanel. Unless we open source GWT Designer itself, that will 
be very difficult as the only design time models for you to look at are for 
SWT and Swing in the WindowBuilder open source project at Eclipse.

-- 
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/-/SKnXpZs8_w8J.
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 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Brad Leupen
I have these interfaces:

@ExtraTypes({FooProxy.class})
public interface FooRequestFactory extends RequestFactory
{
 ...
}

@ExtraTypes({BarProxy.class})
public interface BarRequestFactory extends FooRequestFactory
{
   ...
}

if i look at the generated BarRequestFactoryDeobfuscatorBuilder.java,
there is no withClientToDomainMapping() entry for FooProxy. This
worked in the RC (albeit at runtime) but fails in the final release.

Why not simply add FooProxy.class to BarRequestFactory's @ExtraTypes
annotation? I can, but it is extremely cumbersome for me. Long story
short, I have an RF-based library that is broken out into various
modules. Clients of my library can pick and choose which modules to
include by creating a request factory interface which extends RF
interfaces of the dependent modules. This was cleanest way i could
find to compartmentalize all the @ExtraType's.

Brad

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



How to change the displayed page in a CellTable

2011-09-08 Thread Vincau
Hi,

I would like to know if it's possible to manage the displayed page in
a CellTable.
I mean, I can use the setSelected() method to select a row, but how
can I tell the CellTable to change the currently displayed page in
order to see the selected row ?

Thanks in advance,
Vincent

-- 
You received 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 and social networks

2011-09-08 Thread Diego Places
Hello everyone,
I started programming in GWT 1 month .. I need help . social
networks like facebook, twitter, google + richiedeno to be used to
import the javascript and then use the html simple addition of various
buttons. Everything seems easy!. But I had big problems with GWT
javascript injecting the fb 
While the exploits twitter4j with twitter I can perform some
operations (server side and use the gwt twitter4j realized the button
and manage the connection to the server at the click ) but I can
not manage in this way, the realization of all the buttons twitter.
My question is: Is there a Methodology to integrate the functionality
of social networks?

thanks
Diego (City Venice - Italy)

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



Re: Why rpc requets calls arent operated independetly(concurrently) by methods in server-side code

2011-09-08 Thread Uemit
@Juan:
I don't think that the problem is related to Javascript being single 
threaded. You can have multiple XHTMLHttpRequests running in parallel (with 
modern browsers up to 6 per domain). 

@wasyl: Can you post some code on how you call the server requests ? Are you 
using RPC ? How are the emails downloaded into the server-side db? is that 
done entirely on the server side?


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



Re: Overriding themes

2011-09-08 Thread Tobias
Hi Sudhakar,

thanks for your reply. Yes, that is how you can assign a style to a
single button. I was wondering what is the best way to set a style for
ALL buttons in my application.

Tobias


On 8 Sep., 09:48, Sudhakar Abraham  wrote:
> To specify your own style in uibinder.xml file, edit   ui:style> tag as follows
>
> 
> 
>         .buttonSave
>         {
>         float: left;
>         background:#E8E8E8;
>         margin-left: 200px;
>         }
> 
>  height="600px">
> 
> 
> 
>
> S. Abrahamwww.DataStoreGwt.com
>
> On Sep 7, 6:53 pm, Tobias  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I am trying to customize the look of my application. My plan was to
> > keep one of the default themes and override just those styles that I
> > want to change.
>
> > My first attempt was to add the overridden styles to the CSS file that
> > I am including in my HTML host page using "". But
> > unfortunately this does not work because that CSS file is loaded
> > before the theme CSS file. And then the theme CSS takes precedence.
>
> > This blog [1] explains an alternative solution which includes a custom
> > CSS file located in a "public" folder using " > src=...>" (inside the "*.gwt.xml" file). Is this the intended approach
> > for overriding themes? I am a bit surprised because ""
> > is marked as deprecated and this "public" folder is not mentioned in
> > the documentation (?).
>
> > And I am not sure how I could use CssRessource/UiBinder, because I do
> > not want to apply my custom style just to e.g. one button but to all
> > buttons.
>
> > Any hint would be appreciated!
>
> > Thanks,
> > Tobias
>
> > [1]:http://www.jeanhsu.com/2010/04/29/overriding-gwts-default-stylesheet/
> > [2]:http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideUiCss...

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



Re: EntityProxy, AutoBeanVisitor and Hibernate lazy properties.

2011-09-08 Thread Thomas Broyer
I believe RF is not meant to be used with lazy-loading if you don't also use 
(and accept the consequences) "OpenSessionInView".

If you detach your objects "early", then you have to either remove the 
lazy-loading (best IMO, lazy-loading is appealing but the risks of loading 
much more than needed, generally in hard-to-debug places, and the 
hard-to-optimize –when possible, 'cause you'll generally design your 
services in such a way that lazy-loading is implied, with no hook to 
eager-load the things you need– requests are not worth it; I'd even go as 
far as saying that the benefits of JPQL are a lie, but that's another story) 
or "unproxy" your objects rather than simply detaching them.

See 
http://stackoverflow.com/questions/3642151/detach-jpa-objects-with-lazy-initialized-properties
 and 
http://stackoverflow.com/questions/5350485/how-can-i-determine-whether-hibernate-has-lazy-loaded-the-proxy-or-the-real-obj

-- 
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/-/dsdb2Y4yFTwJ.
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: Gwt4Titanium Mobile 1.1.0 Preview: Introducing DevMode

2011-09-08 Thread Alfredo Quiroga-Villamil
Hi Leandro:

We went in not being sure ourselves if it would be possible since we didn't
have a lot of luck finding documentation for how this whole process worked.

But to answer your question, yes we had to essentially write the equivalent
of a browser plugin. We have plans at some point to document the flow and
put it in a wiki so others can benefit from it and don't have to reverse
engineer things like we had to. As Alain said, it took a lot of work at
least for us to try to understand the entire process.

We are in a testing-improving phase, but so far we know it works and it's
really crazy cool and of course useful!

We truly appreciate the support.

Alfredo

On Thu, Sep 8, 2011 at 2:42 AM, leandro borbosa
wrote:

> I second Gal: great job Emitrom Team !
> With DevMode this is a totally different story
> .
> I wonder how this work ?
> Honeslty i doubted this could even be possible.
> Did you wrote a plugin for Titanium Mobile similar  to the browser plug in
> ?
> Most importantly  is the preview available somewhere to play with ?
> Thanks
>
> L Bbosa
>
> 2011/9/8 Gal Dolber 
>
>> now is a good deal!
>> Great job!
>>
>>
>> On Wed, Sep 7, 2011 at 7:26 PM, Alain Ekambi > > wrote:
>>
>>> Hello folks,
>>> Some days  ago we introduced *  Gwt4Titanium Mobile*, which aims to give
>>> developers the ability to write* native mobile applications* for Android
>>> and  IOS
>>> by leveraging  *GWT* and the* Appcelerator Titanium Platform*. Next to
>>> provide a *100% coverage of the Titanium API*, we added other features
>>>  like :
>>>
>>> - I18N Support.
>>> - GWT-RPC, RequestFactory as well as RequestBuilder
>>> - Dependency Injection support via GIN.
>>> - JSON and XML to POJOs support.
>>> - Event Bus support.
>>> - etc...
>>>
>>> But a really important part was missing: The ability to run and debug the
>>> Java code right frm the GWT project without compiling it to JavaScript.
>>> At Emitrom we have been working really hard to provide this missing part.
>>>
>>> With version 1.1 coming out soon we are glad to introduce* DevMode
>>> for Gwt4Titanium Mobile*.
>>> Please visit : http://www.youtube.com/watch?v=HYa_ctox6iw   to see it in
>>> action.
>>>
>>> We are looking forward to hearing your inputs.
>>>
>>> To find out more visit us at:
>>> http://www.emitrom.com/ 
>>> gwt4timobile 
>>>
>>>
>>> Happy Coding from the Emitrom 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-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.
>>>
>>
>>
>>
>> --
>> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>>
>> http://code.google.com/p/guit/
>>
>>
>>
>>
>>  --
>> You received 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.
>



-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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



Re: What about non Javascript sites?

2011-09-08 Thread Alisson Prestes
I heard (and someone here could confirm it or not) that Closure Templates,
another tool developed by Google, has the ability to generate the same page
either in server side or client side. Does anybody know if it is possible to
integrate it with GWT?

Alisson Prestes
www.google.com/profiles/javalisson



On Wed, Sep 7, 2011 at 12:22 PM, karim duran  wrote:

> Hi Raks & Alexandre,
>
> Absolutely. It is even recommended to have a standard behavior if
> javascript is disabled (which is rare these days).
> To do this, create web pages with a traditional business logic. They will
> be displayed without javascript  enabled.
> If javascript is on, it must dynamically replace the contents of pages.
> Many companies have this problem. But it requires more work to deal
> with
>
> Another way is to display a friendly message to the user. :
> "JavaScript should be enabled on your browser in order to this application
> to run normally" or something like that.
>
> I hope it helps.
>
> Regards.
>
> Karim Duran.
>
>
> 2011/9/7 Alexandre Dupriez 
>
>> Hello,
>>
>> Could you please tell us more about the tier application you would
>> have to maintain? Which technology is used, if not Javascript?
>>
>> On 6 sep, 15:43, raks  wrote:
>> > Hi,
>> >
>> > I am very taken with GWT and I believe will make maintaining my
>> company's
>> > site easier.
>> >
>> > However, they say they need to maintain a non JavaScript version of the
>> > site.
>> >
>> > Any ideas how we can do this? Would it have to be a seperate site? Can
>> the
>> > app be partitioned in some way?
>> >
>> > Thanks
>> >
>> > Raks
>>
>> --
>> You received 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: File download with GWT

2011-09-08 Thread Jim Douglas
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/8c708ac2da186d17/ca92d9d8f78a0e19

On Sep 8, 7:33 am, Aurita Moya  wrote:
> I am new to GWT application and I need help downloading files using
> servlet, I have the part that generates an excel file. xls, but I need
> to display the window "save as"
>
> --- 
> -
>
> import org.apache.poi.hssf.usermodel.HSSFWorkbook;
> import org.apache.poi.ss.usermodel.Row;
> import org.apache.poi.ss.usermodel.Sheet;
> import ve.com.digitel.sorteo.servicios.to.GanadorTo;
>
> import javax.servlet.ServletConfig;
> import javax.servlet.ServletException;
> import javax.servlet.ServletOutputStream;
> import javax.servlet.http.HttpServlet;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> import java.io.File;
> import java.io.FileOutputStream;
> import java.text.SimpleDateFormat;
> import java.util.ArrayList;
> import java.util.Date;
> import java.util.List;
>
> /**
>  * Metodo para llamar al servlet que cargara un archivo Excel.
>  */
> public class FileUpdateExcel extends HttpServlet {
>     /**
>      * Initializes the servlet.
>      */
>     public void init(ServletConfig config) throws ServletException {
>         super.init(config);
>     }
>
>     /**
>      * Destroys the servlet.
>      */
>     public void destroy() {
>     }
>
>     /**
>      * Crear un archivo Excel.
>      * Realiza la conexion del servlet.
>      * Metodo que atiende las peticiones que se realizan via Post.
>      *
>      * @param request  proporcionar la funcionalidad sobre las
> peticiones HTTP.
>      * @param response proporcionar la funcionalidad de respuesta
> HTTP.
>      * @throws ServletException
>      * @throws java.io.IOException
>      */
>     protected void doPost(HttpServletRequest request,
> HttpServletResponse
>             response)
>             throws ServletException, java.io.IOException {
>         //processRequest(request, response);
>
>         List ganadorTo = new ArrayList();
>         HSSFWorkbook wb = new HSSFWorkbook();
>         Sheet sheet = wb.createSheet();
>         for (int i = 0; i < ganadorTo.size(); i++) {
>             Row row = sheet.createRow(i);
>             short j = 0, k = 0;
>             row.createCell(j+
> +).setCellValue(ganadorTo.get(i).getId());
>             sheet.autoSizeColumn(k++);
>             row.createCell(j+
> +).setCellValue(ganadorTo.get(i).getParticipante().getNombre() + " " +
> ganadorTo.get(i).getParticipante().getApellido());
>             sheet.autoSizeColumn(k++);
>             row.createCell(j+
> +).setCellValue(ganadorTo.get(i).getPremio().getNombre());
>             sheet.autoSizeColumn(k++);
>         }
>
>         SimpleDateFormat formato = new
> SimpleDateFormat("MMddHHmmss");
>         Date date = new Date(System.currentTimeMillis());
>         String cadenaFecha = formato.format(date);
>
>         String directorio = "C:\\Documents and Settings\\Aura\\Mis
> documentos\\";
>         File directorioLocal = new File(directorio);//creando
> directorio dinamico
>         if (!directorioLocal.mkdirs())
>             Window.alert("Error en la Creacion del Archivo de
> Respaldo");
>         else {
>         String path = directorio + "RespaldoGanadores_" + cadenaFecha
> + ".xls";
>         File pathFile = new File(path);
>         FileOutputStream fileOut = new FileOutputStream(pathFile);
>         ServletOutputStream out = response.getOutputStream();
>         response.setContentType("application/vnd.ms-excel");
>         response.setHeader("Content-Disposition", "attachment;
> filename=" + pathFile);
>
>         wb.write(fileOut);
>         out.flush();
>         out.close();
>         fileOut.close();
>         }
>     }
>
> }
>
> Can you give me an example to create it through a servlet file
> download, please!

-- 
You received 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: Plugin for Eclipse vs GWT Designer

2011-09-08 Thread Eric Clayberg (Google)
The download page already states that you you should "Download this version 
for its extra features, or if you use GXT, GWT-Ext or SmartGWT". 

The 2.2 Release 
Notesalso discuss 
the differences and what you get by installing the full 
version.

-- 
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/-/4jvxG3N-QXkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Is there a GWT book covering version >= 2.1.1?

2011-09-08 Thread Ben Munge
Thanks for the tip BM!

On Sep 8, 9:57 am, BM  wrote:
> Have you checked the Manning's GWT in Action Second Edition book? They
> have it on MEAP program. This book is awesome. They cover the latest
> 2.3 version with extensive coverage on UIBinder, RPC, MVP, Activities
> and Places, RequestBuilder. They are in fact going to add chapter on
> RequestFactory also.
>
> This book is a must buy.
>
> On Sep 8, 8:18 am, tom  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > Does anybody know if there's a book (about to be published?) that covers the
> > new features since 2.1.1 (RequestFactory, Editor framework, ...)?
>
> > I'm working with GWT (v2.3) for a couple of weeks now, and I'm still getting
> > stuck for hours on simple problems day by day. I think it's mainly because
> > of a lack of thorough documentation/explanation of the mechanisms the
> > framework is built upon. The Getting started guides on the project page were
> > helpful to get some code together at first, but it turned out a lot of
> > things aren't just working as simple.
>
> > I have no doubt that the framework's great and that you can build great apps
> > with it, but learning how to use it is so frustrating at times...
>
> > Regards
>
> > 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Does the last Google Plugin for Eclipse update install the Maven plugin too?

2011-09-08 Thread David Chandler
GPE does not install the Maven binary or Eclipse plugin (m2eclipse/m2e), but
will work with Maven projects if those dependencies are available. Beginning
with Indigo, m2e (formerly Sonatype m2eclipse) is bundled with the Eclipse
Java IDE (but not Java EE IDE), which is what you may be seeing.

/dmc

On Thu, Sep 8, 2011 at 3:47 AM, "Ionuț G. Stan" wrote:

> I've just checked my Eclipse for plugin updates this morning, and this
> updated only the GPE plugin. After restart I noticed that I now have the
> Maven plugin installed too (actually, just a Maven section in the
> preferences pane, I can't find the plugin listed in the "What is already
> installed" panel).
>
> I'm not very fond on Maven and the plethora of things it does and other
> stuff (I think it's already an hour since it started updating some
> indexes...).
>
> Does GPE now install Maven too? Can we remove it?
>
> --
> Ionuț G. Stan  |  http://igstan.ro
>
> --
> You received 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
> **.
>
>


-- 
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Re: Server Side Call from a non presenter class

2011-09-08 Thread BM
What framework are you using? Do you have a client factory? Perhaps
you can define a singleton instance of the dispatchAsync in the client
factory object and getting it from anywhere as long as you are passing
the same instance of client factory.

Secondly why would you want to make a server side call from a class
which is not a presenter?

On Sep 8, 2:51 am, Sanjay Jain India  wrote:
> Hello all,
> I want to make server side to from a class which is not a
> presenter.As
> it is not a presenter it doesn't have dispatchasync instance.In this
> case I am not getting how to make a server side call.
> Here is my class which implements ValueChangeEvent.
> public class NameTokenHandler implements ValueChangeHandler {
>         @Inject
>         DispatchAsync dispatchAsync;
>         @Override
>         public void onValueChange(ValueChangeEvent event) {
>                 if (event != null) {
>                         String nameToken = event.getValue();
>                         if(dispatchAsync!=null)
>                         {
>                                 System.out.println("yes");
>                         }else {
>                                 System.out.println("No");
>                         }
>                         History.newItem(nameToken);
>                 }
>         }
>
> }
>
> I have putted a dispatchasync instance in this class, But I am not
> getting from where I initialize it.Basically I want to make a server
> call, if there is any other way then please let me know.
> Thanks in advance.

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



Re: Is there a GWT book covering version >= 2.1.1?

2011-09-08 Thread BM
Have you checked the Manning's GWT in Action Second Edition book? They
have it on MEAP program. This book is awesome. They cover the latest
2.3 version with extensive coverage on UIBinder, RPC, MVP, Activities
and Places, RequestBuilder. They are in fact going to add chapter on
RequestFactory also.

This book is a must buy.

On Sep 8, 8:18 am, tom  wrote:
> Hello,
>
> Does anybody know if there's a book (about to be published?) that covers the
> new features since 2.1.1 (RequestFactory, Editor framework, ...)?
>
> I'm working with GWT (v2.3) for a couple of weeks now, and I'm still getting
> stuck for hours on simple problems day by day. I think it's mainly because
> of a lack of thorough documentation/explanation of the mechanisms the
> framework is built upon. The Getting started guides on the project page were
> helpful to get some code together at first, but it turned out a lot of
> things aren't just working as simple.
>
> I have no doubt that the framework's great and that you can build great apps
> with it, but learning how to use it is so frustrating at times...
>
> Regards
>
> 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-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: No source code is available for type com.google.web.bindery.requestfactory.vm.impl.Deobfuscator.Builder; did you forget to inherit a required module?

2011-09-08 Thread Brad Leupen
I just wasted an hour on this. Turns out you no longer compile GWT 2.4
with the -strict option if you use request factory. Come on guys.

-- 
You received 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: AbstractCellTable is different in source and in 2.4 release.

2011-09-08 Thread Maero Polo
Thanks for your answer.
I will continue to use the trunk version..I hope that the features
I used will not be removed !

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



File download with GWT

2011-09-08 Thread Aurita Moya
I am new to GWT application and I need help downloading files using
servlet, I have the part that generates an excel file. xls, but I need
to display the window "save as"



import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import ve.com.digitel.sorteo.servicios.to.GanadorTo;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.File;
import java.io.FileOutputStream;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Metodo para llamar al servlet que cargara un archivo Excel.
 */
public class FileUpdateExcel extends HttpServlet {
/**
 * Initializes the servlet.
 */
public void init(ServletConfig config) throws ServletException {
super.init(config);
}

/**
 * Destroys the servlet.
 */
public void destroy() {
}

/**
 * Crear un archivo Excel.
 * Realiza la conexion del servlet.
 * Metodo que atiende las peticiones que se realizan via Post.
 *
 * @param request  proporcionar la funcionalidad sobre las
peticiones HTTP.
 * @param response proporcionar la funcionalidad de respuesta
HTTP.
 * @throws ServletException
 * @throws java.io.IOException
 */
protected void doPost(HttpServletRequest request,
HttpServletResponse
response)
throws ServletException, java.io.IOException {
//processRequest(request, response);

List ganadorTo = new ArrayList();
HSSFWorkbook wb = new HSSFWorkbook();
Sheet sheet = wb.createSheet();
for (int i = 0; i < ganadorTo.size(); i++) {
Row row = sheet.createRow(i);
short j = 0, k = 0;
row.createCell(j+
+).setCellValue(ganadorTo.get(i).getId());
sheet.autoSizeColumn(k++);
row.createCell(j+
+).setCellValue(ganadorTo.get(i).getParticipante().getNombre() + " " +
ganadorTo.get(i).getParticipante().getApellido());
sheet.autoSizeColumn(k++);
row.createCell(j+
+).setCellValue(ganadorTo.get(i).getPremio().getNombre());
sheet.autoSizeColumn(k++);
}

SimpleDateFormat formato = new
SimpleDateFormat("MMddHHmmss");
Date date = new Date(System.currentTimeMillis());
String cadenaFecha = formato.format(date);

String directorio = "C:\\Documents and Settings\\Aura\\Mis
documentos\\";
File directorioLocal = new File(directorio);//creando
directorio dinamico
if (!directorioLocal.mkdirs())
Window.alert("Error en la Creacion del Archivo de
Respaldo");
else {
String path = directorio + "RespaldoGanadores_" + cadenaFecha
+ ".xls";
File pathFile = new File(path);
FileOutputStream fileOut = new FileOutputStream(pathFile);
ServletOutputStream out = response.getOutputStream();
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition", "attachment;
filename=" + pathFile);

wb.write(fileOut);
out.flush();
out.close();
fileOut.close();
}
}
}

Can you give me an example to create it through a servlet file
download, please!

-- 
You received 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: Conditional CSS & Updates

2011-09-08 Thread Ben Munge
I don't think you can do this with conditional styles. I think you'd
be better off firing an event on the event bus when they orientation
changes and just change class/style through an event handler.

On Aug 29, 12:39 am, rth  wrote:
> Hi,
>
> I have a Conditional CSS block that calls isPortrait() at runtime and
> correctly renders the right rule based on its return value. My problem
> is that I cannot figure out how to get the condition to be reevaluated
> in the future (e.g., when the orientation changes, I would like to
> have the conditional CSS evaluated again and the page rendered with
> the new CSS). My sample CSS is below.
>
> @if (org.foo.Application.isPortrait()) {
>         .stats {
>                 border: 3px solid red;
>         }} @else {
>
>         .stats {
>                 border: 3px solid blue;
>         }
>
> }
>
> The docs (http://code.google.com/webtoolkit/doc/latest/
> DevGuideClientBundle.html#Conditional_CSS) states that these
> conditions are evaluated at runtime (which I can confirm), so I am
> hoping I can somehow force the re-evaluation to happen again.
>
> Any pointers would be greatly appreciated.
>
> --rth

-- 
You received 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: Searching for calendar library

2011-09-08 Thread Xavier NOPRE
Unless gwt-cal has options to have different display mode ? ...

Xavier

-- 
You received 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: Searching for calendar library

2011-09-08 Thread Xavier NOPRE
Hi,

2011/9/8 Juan Pablo Gardella 

> http://code.google.com/p/gwt-cal/


Thank you for your answer. I know (a little) this library, but seems to have
only hours in vertical axis. I need other criteria in vertical axis, like
resources or people. Take a look at my picture joined.

Thanks,

Xavier

-- 
You received 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: Conditional CSS & Updates

2011-09-08 Thread rth
Thanks for the tip Sanjay,

Looking into getText for the CssResource though it looks like only one
branch of the @if statement is contained in the CssResource.getText()
value. E.g., below you can see that only the @else block has been
included in the CssResource text (the correct block is always there on
initial load according to the value of isPortrait()).

/* @if (org.foo.Application.isPortrait()) { */
.GCP5JXACOJ-org-foo-
MainPaneTablet_MainPaneTabletUiBinderImpl_GenCss_style-stats {
  border : 3px solid blue;
}
/* } */
... rest of the styles

Because the alternate style has been compiled away even injecting it
again will not help in this case.

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



Re: Is there a GWT book covering version >= 2.1.1?

2011-09-08 Thread Ben Munge
There does seem to be a lack of valuable GWT books covering some of
the newer aspects of the language. Have you gone through all the
tutorials on the main site? I found the large scale application
development and MVP pattern w/ UIBinder tutorial extremely valuable
when learning the framework:

http://code.google.com/webtoolkit/articles/mvp-architecture-2.html

On Sep 8, 8:18 am, tom  wrote:
> Hello,
>
> Does anybody know if there's a book (about to be published?) that covers the
> new features since 2.1.1 (RequestFactory, Editor framework, ...)?
>
> I'm working with GWT (v2.3) for a couple of weeks now, and I'm still getting
> stuck for hours on simple problems day by day. I think it's mainly because
> of a lack of thorough documentation/explanation of the mechanisms the
> framework is built upon. The Getting started guides on the project page were
> helpful to get some code together at first, but it turned out a lot of
> things aren't just working as simple.
>
> I have no doubt that the framework's great and that you can build great apps
> with it, but learning how to use it is so frustrating at times...
>
> Regards
>
> 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: is there a Naming conventions of gwt?

2011-09-08 Thread Ben Munge
Could you be more specific? GWT does utilize convention over
configuration in several aspects. This is especially apparent in the
UIBinder model where naming conventions allow you to easily associate
Java elements and methods with the defined elements in your ui.xml.

On Sep 8, 5:26 am, wahaha  wrote:
> is there a Naming conventions of gwt?

-- 
You received 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: Plugin for Eclipse vs GWT Designer

2011-09-08 Thread Marcin Wiśnicki
On Sep 8, 3:45 pm, "Eric Clayberg (Google)" 
wrote:
> If you want everything, you should install the GPE first followed by the
> full version of GWT Designer. They can easily co-exist in the same Eclipse
> environment.

Thanks. This should be mentioned on downloads page.

-- 
You received 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: UiHandler and how to do it right?

2011-09-08 Thread Ben Munge
Do you have a corresponding field in your UIBinder ui.xml with the
same ui:field property?

For example, in your ui.xml you should have:

Click Me

In the corresponding Java class you should have:

@UiField
Button button;

@UiHandler("button")
void clickButton(ClickEvent e) {
Window.alert("Hello World");
}


As Steve said, the method name on the UiHandler can be anything. The
parameter to the method determines the event being handled. As long as
your ui:field property, the variable name on the UIField, and the
quoted text on the @UiHandler annotation match everything should work
fine.


On Sep 8, 6:55 am, Volker  wrote:
> I try to get a button working using UiBinder with UiHandler.
> Unfortunately the screen shows up fine but the button does not react
> on any clicks. While searching for some good examples how to use the
> UiHandler annotation I got confused.
>
> The tutorial on the official gwt site says:
> @UiHandler("button")
> void handleClick(ClickEvent e) {
>     Window.alert("Hello, AJAX");}
>
> http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideUiBin...
>
> The UiHandler Java doc point to some test code telling me:
> @UiHandler({"buttonClick", "labelClick"})
> void doClick(ClickEvent event) {
>     eventMessage(event);
>
> }
>
> http://code.google.com/p/google-web-toolkit/source/browse/releases/2
>
> Searching this group I got totaly lost, because it looks like some
> implicit naming convention:
> @UiHandler("lastName")
> void onLastNameBlur(BlurEvent event) {
>   // code from UpperCase goes here}
>
> http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> Thanks in advance for any clarification.

-- 
You received 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: UiHandler and how to do it right?

2011-09-08 Thread Steve Wall
The value to the @UiHandler annotation is the ui:field value in your 
UiBinder.  So in the first example, they Button must have been named 
"button".

There is no implicit naming convention on the method names.  The argument to 
that method is what determines when that method runs (e.g. on a ClickEvent, 
or on a BlurEvent, etc.).

-- 
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/-/nIs6EiXUWssJ.
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: TextShadow won't apply

2011-09-08 Thread Evan Ruff
ANNND as usual, I'm an idiot.

I was adding a semi-colon to the end of the statement. 

myLabel.getElement().getStyle().setProperty( "textShadow", "#000 5px 5px 
5px" );

works like a charm. 

myLabel.getElement().getStyle().setProperty( "textShadow", "#000 5px 5px 5px
*;*" );

Doesn't apply.

Rookie mistake, sorry guys.

E

-- 
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/-/0gWfbgCVclgJ.
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: EntityProxy, AutoBeanVisitor and Hibernate lazy properties.

2011-09-08 Thread Tiago
I'll post here a stack trace of the error I get, maybe it helps (I've
cut off everything before GWT classes, which were mostly
springframework and jetty stacks)

If I remove the List getter from ParentProxy, I don't have this
error anymore.

SEVERE: Unexpected error
org.hibernate.LazyInitializationException: failed to lazily initialize
a collection of role: [Parent.childs], no session or session was
closed
at
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:
383)
at
org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationExceptionIfNotConnected(AbstractPersistentCollection.java:
375)
at
org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:
368)
at
org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:
111)
at org.hibernate.collection.PersistentBag.iterator(PersistentBag.java:
272)
at
com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:
441)
at com.google.web.bindery.requestfactory.server.Resolver.access
$200(Resolver.java:49)
at com.google.web.bindery.requestfactory.server.Resolver
$1.visitReferenceProperty(Resolver.java:359)
at
com.google.web.bindery.autobean.shared.AutoBeanVisitor.visitCollectionProperty(AutoBeanVisitor.java:
229)
at
com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(ProxyAutoBean.java:
271)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:
166)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:
101)
at
com.google.web.bindery.requestfactory.server.Resolver.resolveClientProxy(Resolver.java:
323)
at
com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:
418)
at com.google.web.bindery.requestfactory.server.Resolver.access
$200(Resolver.java:49)
at com.google.web.bindery.requestfactory.server.Resolver
$1.visitReferenceProperty(Resolver.java:359)
at
com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(ProxyAutoBean.java:
295)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:
166)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:
101)
at
com.google.web.bindery.requestfactory.server.Resolver.resolveClientProxy(Resolver.java:
323)
at
com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:
418)
at com.google.web.bindery.requestfactory.server.Resolver.access
$200(Resolver.java:49)
at com.google.web.bindery.requestfactory.server.Resolver
$1.visitReferenceProperty(Resolver.java:359)
at
com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(ProxyAutoBean.java:
295)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:
166)
at
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:
101)
at
com.google.web.bindery.requestfactory.server.Resolver.resolveClientProxy(Resolver.java:
323)
at
com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:
418)
at
com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:
196)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:
451)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:
217)
at
com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:
125)
at
com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:
118)

On Sep 8, 10:22 am, StefanR  wrote:
> Hi Tiago,
>
> I just made a little test and it works as expected. Only those getters are
> called which are referenced in the with() statement.
>
> Maybe there's an issue with your entityProxies? Can you provide some details
> about your setup?
>
> Regards,
> Stefan.

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



No source code is available for type com.google.web.bindery.requestfactory.vm.impl.Deobfuscator.Builder; did you forget to inherit a required module?

2011-09-08 Thread Brad Leupen
Hello!

I just upgraded my GWT project from 2.4 rc1 to 2.4 GA and have
encountered a problem with the GWT compiler. Dev mode works now that i
have configured annotation processing on my project, by the compiler
gives me this:

Errors in 'file:/C:/myproject/.apt_generated/com/acme/project/client/
CoreRequestFactoryDeobfuscatorBuilder.java'
No source code is available for type
com.google.web.bindery.requestfactory.vm.impl.Deobfuscator.Builder;
did you forget to inherit a required module?

It's not clear to me what module (if any) I must inherit.

Has anyone else seen this?

Thanks,

Brad

-- 
You received 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: EntityProxy, AutoBeanVisitor and Hibernate lazy properties.

2011-09-08 Thread Tiago
Hello Stefan,

Here's a summary of a situation where I got the error:

I have a Child entity which has a link to its Parent. The parent
entity also has a collection of entities of the Child type.
I'm loading the child to display its values with the help of the GWT
Editor framework, in read-only mode. I need to display some data from
the parent entity as well, so when creating the request, I add
with("parentProperty") to it.

Doing that results in a LazyInitializationException. The exception
claims the proxy "parent.childs" has not been initialized, and indeed
it was not, since I'm displaying only one child. The AutoBeanVisitor
navigated child->parent->childs. The first step was ok, the second one
should not have happened.

Could it be related to the Editor framework, or with Collections, or
even a combination of both?

Thank you very much for you help.

On Sep 8, 10:22 am, StefanR  wrote:
> Hi Tiago,
>
> I just made a little test and it works as expected. Only those getters are
> called which are referenced in the with() statement.
>
> Maybe there's an issue with your entityProxies? Can you provide some details
> about your setup?
>
> Regards,
> Stefan.

-- 
You received 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: Searching for calendar library

2011-09-08 Thread Juan Pablo Gardella
http://code.google.com/p/gwt-cal/

2011/9/8 Xavier 

> Hi,
>
> I'm searching for a library for a grahical calendar (agenda) with :
> - time (days of week) on horizontal axis
> - and other ressource on vertical axis
>
> Exemple :
> https://lh4.googleusercontent.com/-w-Ke1HpiyEs/TmjBhw6vuPI/C5s/fd3Hzut4MHE/calendrier.gif
>
> Thanks
>
> Xavier
>
> --
> You received 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: Plugin for Eclipse vs GWT Designer

2011-09-08 Thread Eric Clayberg (Google)
If you want everything, you should install the GPE first followed by the 
full version of GWT Designer. They can easily co-exist in the same Eclipse 
environment.

-- 
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/-/N9wAgyACEeAJ.
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.



Searching for calendar library

2011-09-08 Thread Xavier
Hi,

I'm searching for a library for a grahical calendar (agenda) with :
- time (days of week) on horizontal axis
- and other ressource on vertical axis

Exemple : 
https://lh4.googleusercontent.com/-w-Ke1HpiyEs/TmjBhw6vuPI/C5s/fd3Hzut4MHE/calendrier.gif

Thanks

Xavier

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



Re: Why rpc requets calls arent operated independetly(concurrently) by methods in server-side code

2011-09-08 Thread Juan Pablo Gardella
There is one thread in client side. Javascript it's not multithread.

2011/9/8 wasyl 

> Hi. I've got below described problem:
>
> The  client-side code calls a request, which starts downloading emails
> into server-side database. It takes a lot of time.
>
> At the same time another request  is repeatedly getting already
> downloaded mails (it's being repeated every 5 sec.) to append them to
> mail list displayed in webbrowser.
>
> The problem is, that server starts to operate the first
> getAlreadyDownloadedMails(), just after all mails are downloaded.
>
> What do I have to do in order to make the server-side methods running
> in parallel? I mean, how to make the method that is responsible for
> fetching mails from database runnig independetly to method that is
> downloading mails from mail-server
>
> --
> You received 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: Validation Messages i18n Client/Server

2011-09-08 Thread Juan Pablo Gardella
See gwt-vl 

2011/9/8 Alex 

> Hey guys,
>
> I am using GWT on GAE and try to find a solution to write my
> validation classes only once. So far everything works very well
> besides some Regex-quirks.
>
> But now I struggle with my validation Messages. I want to output
> i18n'ed messages from validation. But I can of course not use
> GWT.create(AppConstants.class) when the code is supposed to run on the
> server as well;
> So I thought it might be a good idea to use messageKeys and retrieve
> the message on client side. But I dont understand how to retrieve
> Messages by key with com.google.gwt.i18n.client.Messages;
>
>
> How do you guys solve this problem with i18n'ed messages? If my
> attempt is bullocks, is there something else I can use? Some ideas?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-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.



Why rpc requets calls arent operated independetly(concurrently) by methods in server-side code

2011-09-08 Thread wasyl
Hi. I've got below described problem:

The  client-side code calls a request, which starts downloading emails
into server-side database. It takes a lot of time.

At the same time another request  is repeatedly getting already
downloaded mails (it's being repeated every 5 sec.) to append them to
mail list displayed in webbrowser.

The problem is, that server starts to operate the first
getAlreadyDownloadedMails(), just after all mails are downloaded.

What do I have to do in order to make the server-side methods running
in parallel? I mean, how to make the method that is responsible for
fetching mails from database runnig independetly to method that is
downloading mails from mail-server

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



UiHandler and how to do it right?

2011-09-08 Thread Volker
I try to get a button working using UiBinder with UiHandler.
Unfortunately the screen shows up fine but the button does not react
on any clicks. While searching for some good examples how to use the
UiHandler annotation I got confused.

The tutorial on the official gwt site says:
@UiHandler("button")
void handleClick(ClickEvent e) {
Window.alert("Hello, AJAX");
}
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideUiBinder.html

The UiHandler Java doc point to some test code telling me:
@UiHandler({"buttonClick", "labelClick"})
void doClick(ClickEvent event) {
eventMessage(event);
}

http://code.google.com/p/google-web-toolkit/source/browse/releases/2.0/user/test/com/google/gwt/uibinder/test/client/HandlerDemo.java?spec=svn6557&r=6557

Searching this group I got totaly lost, because it looks like some
implicit naming convention:
@UiHandler("lastName")
void onLastNameBlur(BlurEvent event) {
  // code from UpperCase goes here
}
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/d6e21d5b4c1b4f00?tvc=2&q=UiHandler

Thanks in advance for any clarification.

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



Validation Messages i18n Client/Server

2011-09-08 Thread Alex
Hey guys,

I am using GWT on GAE and try to find a solution to write my
validation classes only once. So far everything works very well
besides some Regex-quirks.

But now I struggle with my validation Messages. I want to output
i18n'ed messages from validation. But I can of course not use
GWT.create(AppConstants.class) when the code is supposed to run on the
server as well;
So I thought it might be a good idea to use messageKeys and retrieve
the message on client side. But I dont understand how to retrieve
Messages by key with com.google.gwt.i18n.client.Messages;


How do you guys solve this problem with i18n'ed messages? If my
attempt is bullocks, is there something else I can use? Some ideas?

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



Plugin for Eclipse vs GWT Designer

2011-09-08 Thread Marcin Wiśnicki
According to download page, GWT Plugin for Eclipse contains
lightweight version of GWT designer.

What should I install if I want full GWT Designer and still have
everything else from Plugin for Eclipse ?

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



Re: Centering text in a Label

2011-09-08 Thread skly
Try this:
height:24px;
line-height:24px;

2011/9/8 István Szoboszlai 

> This is a quiet big problem.
> It is very hard to center things verically in a browser independent way.
> You should try googling for it.
> There are a few not very straight forward solutions.
>
> This issue is not related to GWT.
>
> Üdvözlettel / Best Regards
> - István Szoboszlai
> istvan.szobosz...@inepex.com | inepex.com
>
>
>
> On Thu, Sep 8, 2011 at 12:33 PM, ph09  wrote:
>
>> Hello,
>>
>> I try to centering text in a Label with following CSS:
>> .gwt-Label-1 {
>>border: 1px solid;
>>font-size: 13px;
>>vertical-align: middle;
>>text-align: center;
>>background-color: lavender;
>> }
>>
>> It works all except of "vertical-align: middle". The text is always at
>> the top of the Label.
>> Does anyone know why?
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received 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.



is there a Naming conventions of gwt?

2011-09-08 Thread wahaha
is there a Naming conventions of gwt?

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



Re: Server Side Call from a non presenter class

2011-09-08 Thread Hardik Mishra
Hello Sanjay,

If its possible pass DispatchAsync from its parent from where you are
calling it.

Thanks & Regards
Hardik Mishra


On Sep 8, 12:51 pm, Sanjay Jain India  wrote:
> Hello all,
> I want to make server side to from a class which is not a
> presenter.As
> it is not a presenter it doesn't have dispatchasync instance.In this
> case I am not getting how to make a server side call.
> Here is my class which implements ValueChangeEvent.
> public class NameTokenHandler implements ValueChangeHandler {
>         @Inject
>         DispatchAsync dispatchAsync;
>         @Override
>         public void onValueChange(ValueChangeEvent event) {
>                 if (event != null) {
>                         String nameToken = event.getValue();
>                         if(dispatchAsync!=null)
>                         {
>                                 System.out.println("yes");
>                         }else {
>                                 System.out.println("No");
>                         }
>                         History.newItem(nameToken);
>                 }
>         }
>
> }
>
> I have putted a dispatchasync instance in this class, But I am not
> getting from where I initialize it.Basically I want to make a server
> call, if there is any other way then please let me know.
> Thanks in advance.

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



New group for Google Plugin for Eclipse (GPE)

2011-09-08 Thread Sriram Saroop
Hi folks,
We have created a new group for Google Plugin for Eclipse (GPE).

https://groups.google.com/group/google-plugin-eclipse
google-plugin-ecli...@googlegroups.com

Do join this group and feel free to post your queries/suggestions on GPE.


Cheers,

The GPE 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-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.



Is there a GWT book covering version >= 2.1.1?

2011-09-08 Thread tom
Hello,

Does anybody know if there's a book (about to be published?) that covers the 
new features since 2.1.1 (RequestFactory, Editor framework, ...)?

I'm working with GWT (v2.3) for a couple of weeks now, and I'm still getting 
stuck for hours on simple problems day by day. I think it's mainly because 
of a lack of thorough documentation/explanation of the mechanisms the 
framework is built upon. The Getting started guides on the project page were 
helpful to get some code together at first, but it turned out a lot of 
things aren't just working as simple. 

I have no doubt that the framework's great and that you can build great apps 
with it, but learning how to use it is so frustrating at times...

Regards 

Tom

-- 
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/-/ZEGAdebHy8AJ.
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: Support for Tablets

2011-09-08 Thread skippy
Well, I just wonder why our old JSP based applications work just fine.

iPad 2 work with all GWT components.  Blackbarry playbook and xoom
don't work at all.


On Aug 16, 11:23 am, Jim Douglas  wrote:
> I must have been unclear.  Android has various low level HTML/DOM/
> JavaScript bugs.  The specific development toolkit is irrelevant.
>
> On Aug 16, 9:10 am, Alain Ekambi  wrote:
>
>
>
> > I d simply recommand something lil Sencha Touch. It s better for  mobile
> > devices.
>
> > 2011/8/16 Jim Douglas 
>
> > > One more:
>
> > >http://code.google.com/p/android/issues/detail?id=2118
>
> > > On Aug 16, 8:57 am, Jim Douglas  wrote:
> > > > Al --
>
> > > > If you're testing on Android devices, you might want to note several
> > > > serious Android bugs that can affect the usability of GWT apps:
>
> > >http://code.google.com/p/android/issues/detail?id=6721http://code.goo
> > > ..
>
> > > > On Aug 16, 8:21 am, skippy  wrote:
>
> > > > > So, an addtional question.
>
> > > > > When GWT starts up, it looks at the User Agent so see what compiled JS
> > > > > to send the browser.
> > > > > What is the answer when its a tablet?
>
> > > > > Our initial testing shows that the iPad2 works pretty good.  A few
> > > > > differences/problems with popup windows.
> > > > > The Motorola xoom is in bad shape.  It is the first generation of the
> > > > > Android tablet however.
>
> > > > > Links dont click, drop downs dont open, the Tabs dont click.  We are
> > > > > going to see if there are some browser settings that may help.
>
> > > > > Does GWT 2.4 hold any added support for thetabletslike SmartGWT?
>
> > > > > Thanks
>
> > > > > On Aug 11, 8:20 am, skippy  wrote:
>
> > > > > > We have an browser based application build using gwt 2.3 (IE9
> > > > > > compatible).
>
> > > > > > We are going to try to test the application on some newtabletslike
> > > > > > the iPad2, xoom, and the BlackBerry Playbook.
>
> > > > > > Is there any informaiton on the compatibility of the GWT 2.3 on 
> > > > > > these
> > > > > > devices?
>
> > > > > > Thanks
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
>
> > GWT API for  non Java based 
> > platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/- 
> > Hide quoted text -
>
> - Show quoted text -

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



Re: AbstractCellTable is different in source and in 2.4 release.

2011-09-08 Thread Jeff Larsen
Those changes to AbstractCellTable were just committed within the last 
couple of weeks and has been going under some pretty heavy changes. They 
usually like to let things like that bake for a while before actually 
releasing them.

That being said, there is no reason to not use a version of trunk. Google 
does it for all their products and Ray Ryan said in this year's Fireside 
Chat that he would develop from a version of trunk and not wait for official 
releases. We're doing just that where I work, I'm in the process of 
upgrading my company to a pull of trunk from last week mainly for the exact 
reasons you specify the table and header builders. 

-- 
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/-/J2QDK2xoJUUJ.
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: onModuleLoad() - what is it in javascript

2011-09-08 Thread Alexandre Ardhuin
Hi,

Although I can not find an up-to-date version of this file in 2.4
documentation, some informations on the bootstrap sequence are available at
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideBootstrap

Alexandre.

2011/9/8 dreamer 

> Hi,
>
> I am trying to figureout, what "onModuleLoad()" becomes after gwt
> compilation.
> Basically to figure out the magic behind "onLoadModule".
>
> All is well, java script gets loaded in head. But how on the earth any
> function inside that script got
> executed, are there any events, that Browser fires once script is
> loaded?
>
> I checked compiled code, here there suspects. I am not javascript
> guru, can somebody throw some light on this.
> " schooldistrict.nocache.js" is the main java script name for my GWT
> app.
> = here are three suspects ===
>  schooldistrict.onInjectionDone = function(){
>scriptsDone = true;
>$stats && $stats({moduleName:$intern_1, sessionId:$sessionId,
> subSystem:$intern_2, evtGroup:$intern_51, millis:(new Date).getTime(),
> type:$intern_9});
>maybeStartModule();
>  }
> -
>  schooldistrict.onScriptLoad = function(){
>if (frameInjected) {
>  loadDone = true;
>  maybeStartModule();
>}
>  }
> -
>  var onBodyDoneTimerId = setInterval(function(){
>if (/loaded|complete/.test($doc.readyState)) {
>  maybeInjectFrame();
>  onBodyDone();
>}
>  }
>  , 50);
> --
>
> Global school district
> http://schoolk12.appspot.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



AbstractCellTable is different in source and in 2.4 release.

2011-09-08 Thread Maero Polo
Hello,

I am using GWT from sources.
When I am using these sources, the AbstractCellTable class has method
"setTableBuilder".
For me it is very interesting as I am using it as it is used in the
example from the showcase "Custom Data Grid".

This morning I have seen that GWT 2.4 has been released.
Sadly, the AbstractCellTable is slightly different from the version in
the GWT sources and does not contain this feature.

As I would like to take the official release (to calm down my
managers), I would like to know if I need to change my code or if I
have to wait for a next release?

Regards,

Marc.

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



Error build GWT

2011-09-08 Thread Fábio Marigo
I have a problem during the build of GWT. Could someone help me with
the error below:

Checking rule 
 Checking if all subconditions are true ()
Checking if all subconditions are true ()
   
  Property value is 'true'
  Yes, the property value matched
   
  [ERROR] Unable to find type
'br.com.insula.saltobandeirantes.client.Main'
 [ERROR] Hint: Previous compiler errors may have
made this type unavailable
 [ERROR] Hint: Check the inheritance chain from
your module; it may not be inheriting a required module or a module
may not be adding its source path entries properly
[ERROR] Build failed

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



Re: Centering text in a Label

2011-09-08 Thread kalpana anbalagan
CSS "line-height" property can be used to vertically align.
ex:
.gwtLabel{
 border: 1px solid red;
 font-size: 13px;
height: 300px;
line-height: 300px;
text-align: center;
background-color: lavender;
}

-Kalpana


On Thu, Sep 8, 2011 at 5:59 PM, Sudhakar Abraham  wrote:

> To adjust the properties  "padding-top","padding-bottom","padding-
> right","padding-left" in  Style Sheet, please see  the following code.
>
> .gwt-Label-1
> {
>border: 1px solid;
>font-size: 13px;
> padding-left:5px;
>padding-right:5px;
>padding-bottom:5px;
>padding-top:5px;
>background-color: lavender;
> }
>
> S. Abraham
> www.DataStoreGwt.com
>
> On Sep 8, 3:33 pm, ph09  wrote:
> > Hello,
> >
> > I try to centering text in a Label with following CSS:
> > .gwt-Label-1 {
> > border: 1px solid;
> > font-size: 13px;
> > vertical-align: middle;
> > text-align: center;
> > background-color: lavender;
> >
> > }
> >
> > It works all except of "vertical-align: middle". The text is always at
> > the top of the Label.
> > Does anyone know why?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received 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: multithreading in Jetty(not exactly what I mean)

2011-09-08 Thread J.Ganesan
Threading is already in place in servlet. I suggest you have a look at
java.util.concurrent.locks.ReentrantReadWriteLock for synchronization.

J.Ganesan
www.DataStoreGwt.com

On Sep 8, 3:25 am, wasyl  wrote:
> Hi. I'm a newbie in GWT and my JAVA skills aren't to good as well.
>
> In order to learn these technologies I'm trying to implement an e-mail
> client.
>
> Time needed to get all messages (say:  200) from mail-server is quite
> long (using pop3). My solution looks like that:
>
> User puts access data in configuration box, afterthat client requests
> server to download all messages to server-side database .
>
>                      mailAsync.getMailsSubjectsToDB(accessData ,
> toDBcallback);
>
> At the same time client sends another request in order to get already
> downloaded messages - client repeats this until all messages from mail-
> server  are in database (it's being stoped by toDBcallback's
> onSuccess() method).
>
>   refreshTimer = new Timer(){
>            @Override
>         public void run(){
>             AsyncCallback> callbackNewMails = new
> AsyncCallback>(){
>
>                         @Override
>                         public void onFailure(Throwable caught) {
>                         .
>                         }
>                         @Override
>                         public void onSuccess(ArrayList result) {
>                                 EmailItems.addNewMails(result);
>                                 update(result.size());
>                         }
>             };
>
>             mailAsync2.getMailsSubjects(callbackNewMails);
>         }
>       };  refreshTimer.scheduleRepeating(2500);
>
> However in practice, these two methods don't run concurrently. First
> mailAsync2.getMailsSubjects(callbackNewMails) call is oporeted just
> after all messages are loaded into database.
>
> So here's the question: Do I have to use threads in the server-side
> code, or is there any other server that's got built-in threads
> management?

-- 
You received 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: RequestFactory : Persisting List of Child EntityProxies : setting Child Properties to null.

2011-09-08 Thread tom
Hello Rayn,

I've run into a similar problem. (Only difference being that I'm not 
constructing the Child collection but re-sending one I fetched earlier 
through RequestFactory).


Did you figure out a solution?


Regards,

Tom

-- 
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/-/3ArvFML4AlwJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Centering text in a Label

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

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

S. Abraham
www.DataStoreGwt.com

On Sep 8, 3:33 pm, ph09  wrote:
> Hello,
>
> I try to centering text in a Label with following CSS:
> .gwt-Label-1 {
>         border: 1px solid;
>         font-size: 13px;
>         vertical-align: middle;
>         text-align: center;
>         background-color: lavender;
>
> }
>
> It works all except of "vertical-align: middle". The text is always at
> the top of the Label.
> Does anyone know why?

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



Re: Gwt4Titanium Mobile 1.1.0 Preview: Introducing DevMode

2011-09-08 Thread Juan Pablo Gardella
Great job Alain!! Congrats.

2011/9/8 leandro borbosa 

> I second Gal: great job Emitrom Team !
> With DevMode this is a totally different story
> .
> I wonder how this work ?
> Honeslty i doubted this could even be possible.
> Did you wrote a plugin for Titanium Mobile similar  to the browser plug in
> ?
> Most importantly  is the preview available somewhere to play with ?
> Thanks
>
> L Bbosa
>
> 2011/9/8 Gal Dolber 
>
>> now is a good deal!
>> Great job!
>>
>>
>> On Wed, Sep 7, 2011 at 7:26 PM, Alain Ekambi > > wrote:
>>
>>> Hello folks,
>>> Some days  ago we introduced *  Gwt4Titanium Mobile*, which aims to give
>>> developers the ability to write* native mobile applications* for Android
>>> and  IOS
>>> by leveraging  *GWT* and the* Appcelerator Titanium Platform*. Next to
>>> provide a *100% coverage of the Titanium API*, we added other features
>>>  like :
>>>
>>> - I18N Support.
>>> - GWT-RPC, RequestFactory as well as RequestBuilder
>>> - Dependency Injection support via GIN.
>>> - JSON and XML to POJOs support.
>>> - Event Bus support.
>>> - etc...
>>>
>>> But a really important part was missing: The ability to run and debug the
>>> Java code right frm the GWT project without compiling it to JavaScript.
>>> At Emitrom we have been working really hard to provide this missing part.
>>>
>>> With version 1.1 coming out soon we are glad to introduce* DevMode
>>> for Gwt4Titanium Mobile*.
>>> Please visit : http://www.youtube.com/watch?v=HYa_ctox6iw   to see it in
>>> action.
>>>
>>> We are looking forward to hearing your inputs.
>>>
>>> To find out more visit us at:
>>> http://www.emitrom.com/ 
>>> gwt4timobile 
>>>
>>>
>>> Happy Coding from the Emitrom 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-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.
>>>
>>
>>
>>
>> --
>> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>>
>> http://code.google.com/p/guit/
>>
>>
>>
>>
>>  --
>> You received 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: Centering text in a Label

2011-09-08 Thread István Szoboszlai
This is a quiet big problem.
It is very hard to center things verically in a browser independent way. You
should try googling for it.
There are a few not very straight forward solutions.

This issue is not related to GWT.

Üdvözlettel / Best Regards
- István Szoboszlai
istvan.szobosz...@inepex.com | inepex.com


On Thu, Sep 8, 2011 at 12:33 PM, ph09  wrote:

> Hello,
>
> I try to centering text in a Label with following CSS:
> .gwt-Label-1 {
>border: 1px solid;
>font-size: 13px;
>vertical-align: middle;
>text-align: center;
>background-color: lavender;
> }
>
> It works all except of "vertical-align: middle". The text is always at
> the top of the Label.
> Does anyone know why?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Centering text in a Label

2011-09-08 Thread ph09
Hello,

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

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

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



onModuleLoad() - what is it in javascript

2011-09-08 Thread dreamer
Hi,

I am trying to figureout, what "onModuleLoad()" becomes after gwt
compilation.
Basically to figure out the magic behind "onLoadModule".

All is well, java script gets loaded in head. But how on the earth any
function inside that script got
executed, are there any events, that Browser fires once script is
loaded?

I checked compiled code, here there suspects. I am not javascript
guru, can somebody throw some light on this.
" schooldistrict.nocache.js" is the main java script name for my GWT
app.
= here are three suspects ===
 schooldistrict.onInjectionDone = function(){
scriptsDone = true;
$stats && $stats({moduleName:$intern_1, sessionId:$sessionId,
subSystem:$intern_2, evtGroup:$intern_51, millis:(new Date).getTime(),
type:$intern_9});
maybeStartModule();
  }
-
 schooldistrict.onScriptLoad = function(){
if (frameInjected) {
  loadDone = true;
  maybeStartModule();
}
  }
-
 var onBodyDoneTimerId = setInterval(function(){
if (/loaded|complete/.test($doc.readyState)) {
  maybeInjectFrame();
  onBodyDone();
}
  }
  , 50);
--

Global school district
http://schoolk12.appspot.com/

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



gwt client session time out

2011-09-08 Thread Sanjay Jain India
I am using gwt 2.3 with gwtp framework.In this application I wan to
maintain a session time of 5 mins.This means if current user is not
doing up to 5 min and he comes after five min then on his first event/
action on screen a he should be be logged out. In gwt there is class
named Timer which can be used in this issues.But I am not getting how
to recognize action of user on the screen.I did google on it, & found
the code for gwt-ext.Below is the code of gwt-ext

Ext.get(“pagePanel”).addListener(“click”, new EventCallback() {
@Override public void execute(EventObject e) {
 MessageBox.alert(“On Mouse Click”); }
 }
);

Ext.get(“pagePanel”).addListener(“keydown”, new EventCallback() {

@Override public void execute(EventObject e) {
MessageBox.alert(“On Key Press Click”); }
});

In above code tag in working properly so I am attaching link from
where I got this code.here

Same type of code I am looking in gwt.If there any other better way to
do this then please let me 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-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.



  1   2   >