Re: Help: Development of large App with GWT

2010-10-06 Thread Thomas Broyer


On Oct 6, 5:42 am, Noor  wrote:
> Thus, if we resume, GWT helps more in the development phase of
> software development. The end result is similar to the client as
> development with any other framework.

Well, to sum up, yes.
There are 2 main differences though:

 - GWT generates a bunch of scripts, each one dedicated to a single
"configuration", including the kind of browser (there'll be a script
dedicated to Firefox with all the constants for the US English locale,
another dedicated to Firefox for the French locale, another dedicated
to Safari/Chrome for the US English locale, etc.) and a "selection
script" (the *.nocache.js) evaluates the "environment" (which browser?
which locale?) to load the appropriate dedicated script. This makes
the scripts smaller (because they don't include the code needed for
another browser and/or locale and/or etc.) and more performant
(because they don't include if/else checks everywhere to determine the
browser/locale/etc. to know which code branch to run); but the
drawback is that it's based on browser sniffing, not capability
detection, so only some browsers are supported (the 5 main browsers,
in their not-too-old versions), and when a new browser or browser
version comes in, your app might very well break, until you recompile
it with a newer version of GWT that cope for the new browser/browser
version. This is what happened with IE8, and what happens now with
IE9: it'll work OK but only if you ensure it runs in the "emulate the
previous version" mode. Firefox 3.6 broke some apps too at the time
(but it broke as much GWT apps as other pure JS apps).

 - GWT heavily optimizes the generated code. There are "JS compilers"
the optimize JS code (Google Closure Compiler, Yahoo! YUI Compressor,
etc.) but because of JS dynamic nature, the optimizations cannot be as
good as with a statically typed language like Java. The drawback is
that because GWT has to emulate some parts of the Java runtime, it
will also generate more code than you'd have written if you coded
directly in JS (for instance, you'll likely use an ArrayList and a
for(:) loop, ArrayList generates code to wrap a javascript array and a
for(:) loop will instantiate an Iterator for the ArrayList, yet a bit
more code, and all this code costs some bytes, and has to run in the
browser). And the GWT compiler still has room for improvement re.
optimizations.

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



Re: Help for testing GWT.UncaughtExceptionHandler within a JUnit GWTTestCase

2010-10-06 Thread Thomas Broyer

On Oct 6, 11:02 am, Didier DURAND  wrote:
> Hello,
>
> To improve the coverage of my automated tests, I'd like to test my own
> GWT.UncaughtExceptionHandler within a GWTTestCase to see if it
> functions correctly.
>
> I can't do it for now: the JUnit test always fails.
>
> Can you help me an let me know what's wrong in my code below ? (I
> tried to use an asynchronous test to make sure that I am going through
> the ExceptionHandler)

You're not testing your exception handler here, you're testing whether
GWT will call the registered exception handler. This kind of test
should be in GWT itself; you shouldn't test in your own code whether
GWT functions the way it's supposed to.
To test your handler, you should instantiate it and directly call
onUncaughtException to see if it behaves the way you want. What's left
is to ensure your handler is correctly registered as the uncaught
exception handler; but I wonder if this is something to test in a
GWTTestCase... (FYI GWTTestCase *controls* the uncaught exception
handler)

> thanks
> didier
>
> public class TestExceptionHandler extends GWTTestCase {
>
>         public void testWithHandler() {
>                 ExceptionHandler handler = new
> ExceptionHandler(GWT.getUncaughtExceptionHandler());
>                 GWT.setUncaughtExceptionHandler(handler);
>                 this.delayTestFinish(1000);
>                 throw new ClientException("test");
>         }
>
>         private class ExceptionHandler implements
> GWT.UncaughtExceptionHandler {
>
>                 private GWT.UncaughtExceptionHandler handler;
>
>                 public ExceptionHandler(GWT.UncaughtExceptionHandler h) {
>                         this.handler = h;
>                 }
>
>                 @Override
>                 public void onUncaughtException(Throwable e) {
>                         System.out.println("Exception handler called!");
>                         TestExceptionHandler.this.finishTest();
>                         this.handler.onUncaughtException(e);
>                 }
>         }
>
>       �...@override
>         public String getModuleName() {
>                 return "MyModule";
>         }
>
>
>
>
>
>
>
> }

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



Help for testing GWT.UncaughtExceptionHandler within a JUnit GWTTestCase

2010-10-06 Thread Didier DURAND
Hello,

To improve the coverage of my automated tests, I'd like to test my own
GWT.UncaughtExceptionHandler within a GWTTestCase to see if it
functions correctly.

I can't do it for now: the JUnit test always fails.

Can you help me an let me know what's wrong in my code below ? (I
tried to use an asynchronous test to make sure that I am going through
the ExceptionHandler)

thanks
didier

public class TestExceptionHandler extends GWTTestCase {

public void testWithHandler() {
ExceptionHandler handler = new
ExceptionHandler(GWT.getUncaughtExceptionHandler());
GWT.setUncaughtExceptionHandler(handler);
this.delayTestFinish(1000);
throw new ClientException("test");
}

private class ExceptionHandler implements
GWT.UncaughtExceptionHandler {

private GWT.UncaughtExceptionHandler handler;

public ExceptionHandler(GWT.UncaughtExceptionHandler h) {
this.handler = h;
}

@Override
public void onUncaughtException(Throwable e) {
System.out.println("Exception handler called!");
TestExceptionHandler.this.finishTest();
this.handler.onUncaughtException(e);
}
}

   @Override
public String getModuleName() {
return "MyModule";
}

}

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



Re: Help: Development of large App with GWT

2010-10-06 Thread Noor
Yes, if someone can help me then it would be great!!

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



Re: Comet help about code

2010-10-06 Thread Cristiano
Hi All,
this is my pattern of how I implement comet.
I may change how I handle the ArrayList or use a timestamp as
parameter of "get" method, but basically I always start from this
simple snippet of code.

It's for GWT but I've basically used it also in a Web Service and in a
REST service.
hope it's useful:

---
- GWT RPC Service interface   -

package net.cristcost.test.comet.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;

public interface MessageBus extends RemoteService {

public void publish(Message msg);

public List get(int last);

}


---
- GWT RPC Service Implementation  -

package net.cristcost.test.comet.server;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import net.cristcost.test.comet.client.Message;
import net.cristcost.test.comet.client.MessageBus;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@SuppressWarnings("serial")
public class MessageBusImpl extends RemoteServiceServlet implements
MessageBus {

private ArrayList messages;

public MessageBusImpl() {
messages = new ArrayList();
}

@Override
synchronized public List get(int lastIndex) {
try {
int lastMessage = messages.size() - 1;
if (lastIndex >= lastMessage) {
// wait for new message to arrive
wait(3);
}

ArrayList ret = new ArrayList();
for (int i = lastIndex + 1; i < messages.size(); i++) {
ret.add(messages.get(i));
}
return ret;
}
catch (InterruptedException e) {
return null;
}
}

@Override
synchronized public void publish(Message msg) {
msg.setTime(new SimpleDateFormat("h:mm:ss.SSS").format(new
Date()));
messages.add(msg);
notifyAll();
}
}



---
- Publish sample usage (in UiBinder)  -

@UiHandler("msgBtn")
void handleClick(ClickEvent e) {

mb.publish(new Message(msgTextBox.getText(),
DateTimeFormat.getFormat("h:mm:ss.SSS").format(new Date())),new
AsyncCallback(){

@Override
public void onFailure(Throwable arg0) {
Window.alert("Message publication failed");
}

@Override
public void onSuccess(Void arg0) {
// nothing to do
}});
}


---
- Consumer example (in UiBinder)  -


package net.cristcost.test.comet.client;

import java.util.Date;
import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Widget;

public class Subscribe extends Composite {

interface SubscribeUiBinder extends UiBinder {
}

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

@UiField
Label endPoint;

@UiField
FlowPanel list;

@UiField
Button startStopBtn;

private int lastUpdate;

private boolean isSubscribed;

private MessageBusAsync mb = GWT.create(MessageBus.class);

public Subscribe() {
initWidget(uiBinder.createAndBindUi(this));

lastUpdate = -1;
isSubscribed = false;
}

private void getUpdates() {
mb.get(lastUpdate, new AsyncCallback>() {
@Override
public void onFailure(Throwable arg) {
startStopBtn.setText("wait");
startStopBtn.setEnabled(false);
isSubscribed = false;
handleUpdates(null);
}

@Override
public void onSuccess(List newMessages) {
handleUpdates(newMessages);
}
});
}

private void handleUpdates(List msgList) {
if (msgList != null) {
String displayTime =
DateTimeFormat.getFormat("h:mm:ss.SSS").format(new Date());

for (Message m : msgList) {
list.add(new Label("Msg: '" + m.getMsg() + "',
published at " + m.getPubTime()
+ ", stored on server at " + m.getTime() + ",
displayed at " + displayTime +
" of " + msgList.size() + " messages"));
}
lastUpdate += msgList.size();
}
if (isSubscribed) {
getUpdates();
} else {
startStopBtn.setEnabled(true

Re: Comet help about code

2010-10-05 Thread Y2i
This code is not specific to Commet, it simply uses Java foreach loop
to iterate through Map's key-value entries.  For each entry it takes a
value and calls one of its methods.

http://download.oracle.com/javase/1.5.0/docs/guide/language/foreach.html
http://download.oracle.com/javase/6/docs/api/java/util/Map.html

On Oct 5, 8:10 pm, Yudji  wrote:
> I read the comet 
> inhttp://code.google.com/p/gwt-comet/source/browse/trunk/src/net/zschec...
>
> Can explain to me about the code, because i dont undestand:
>
>  public void send(String message) throws ChatException {
>
>                       .
>                       .
>                       .
>
>                 for (Map.Entry entry :
> users.entrySet()) {
>                         entry.getValue().enqueue(chatMessage);
>                 }
>         }
>
>  thaks

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



Re: Help: Development of large App with GWT

2010-10-05 Thread 007Prog

Hi Noor,
to reply this question, we need someone who has been using GWT for
quite long. About the application you are trying to implement, I'm
still trying to figure out what type of application of recommend you.

I think you can try real time web application. What do you think 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Help: Development of large App with GWT

2010-10-05 Thread Noor
Thus, if we resume, GWT helps more in the development phase of
software development. The end result is similar to the client as
development with any other framework.

Is it that?

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



Comet help about code

2010-10-05 Thread Yudji
I read the comet in
http://code.google.com/p/gwt-comet/source/browse/trunk/src/net/zschech/gwt/chat/server/ChatServiceImpl.java?r=98

Can explain to me about the code, because i dont undestand:

 public void send(String message) throws ChatException {

  .
  .
  .

for (Map.Entry entry :
users.entrySet()) {
entry.getValue().enqueue(chatMessage);
}
}

 thaks

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



Comet help about code

2010-10-05 Thread Yudji
I read the comet in
http://code.google.com/p/gwt-comet/source/browse/trunk/src/net/zschech/gwt/chat/server/ChatServiceImpl.java?r=98

Can explain to me about the code, because i dont undestand:

 public void send(String message) throws ChatException {

  .
  .
  .

for (Map.Entry entry :
users.entrySet()) {
entry.getValue().enqueue(chatMessage);
}
}

 thaks

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



Re: Need help with "[ERROR] Annotation error: " while doing GWT compile

2010-10-05 Thread Sanjeev
You are right sir, absolutely! I had not compiled the code (&^%$), I
know :-).

Thank you for helping out!

Regards
Sanjeev

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



Re: Need help with "[ERROR] Annotation error: " while doing GWT compile

2010-10-05 Thread Thomas Broyer


On Oct 5, 5:31 am, Sanjeev  wrote:
> Hi:
>
> GWT newbie here, using gwt 2.04 with Guice 2.0, Gin 1.0 and
> mvp4g-1.2.0. I am getting the below error when trying to run
> “com.google.gwt.dev.Compiler” on my GWT project. Feeling very lost
> right now, so please help. Please ask for more information if needed –
> quick help will be very appreciated.
>
> Buildfile: C:\workspace\basel2-gwt\build.xml
> prepare:
> compile.gwt:
>      [java] Oct 4, 2010 11:15:08 PM java.util.prefs.WindowsPreferences
> 
>      [java] WARNING: Could not open/create prefs root node Software
> \JavaSoft\Prefs at root 0x8002. Windows RegCreateKeyEx(...)
> returned error code 5.
>      [java] Compiling module com.boa.basel2.precalc.PreCalcAdjustment
>      [java]    Resolving
> com.boa.basel2.precalc.client.presenter.WorkflowPresenter
>      [java]       Found type
> 'com.boa.basel2.precalc.client.presenter.WorkflowPresenter'
>      [java]          [ERROR] Annotation error: cannot resolve
> com.boa.basel2.precalc.client.view.WorkflowView
>      [java] java.lang.ClassNotFoundException:
> com.boa.basel2.precalc.client.view.WorkflowView

Have you compiled you code with "javac"? Is the compiled *.class in
the classpath?
It's a necessary step, even if the *.class won't be run in the JVM
because they're only client-side code to be compiled by GWT into
JavaScript.

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



Re: Help: Development of large App with GWT

2010-10-05 Thread Thomas Broyer


On Oct 5, 3:02 pm, 007Prog  wrote:
> I am also thinking about this. Google provide us with a toolkit. So,
> what type of application can we create with this one that we cannot or
> would be difficult with another framework.  Because Now Noor must
> choose a proper application that clearly shows that yes,
>
> THIS APPLICATION WOULD HAVE BEEN DIFFICULT OR IMPOSSIBLE WITHOUT GWT.

There cannot be a single such app; because GWT is JavaScript in the
end, so anything you can do in a browser you can do in GWT, and vice
versa (GWT is, before all, a Java-to-JavaScript compiler, everything
else is extensible and even replaceable; yes, even the Java Runtime
Emulation!)

Where GWT is good is in taking advantage of the static typing of Java,
to do static analysis of the code at compile time and automatically
generate code based on this.
The best example is GWT-RPC, but even better are, in the upcoming 2.1
release, RequestFactory and Editor.
This is something that you just cannot do in "pure JS", but it doesn't
make GWT able to create apps that would have been "diffucult or
impossible" without it; you'd just have approached them differently
(and of course have done much more work either upfront –by hand– or at
runtime –using some kind of reflection–)

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



Re: Help: Development of large App with GWT

2010-10-05 Thread 007Prog
I am also thinking about this. Google provide us with a toolkit. So,
what type of application can we create with this one that we cannot or
would be difficult with another framework.  Because Now Noor must
choose a proper application that clearly shows that yes,

THIS APPLICATION WOULD HAVE BEEN DIFFICULT OR IMPOSSIBLE WITHOUT GWT.

So guys, what type of application can we recommend Noor, this is a
great question which lies in our experience?

Can someone has good suggestion

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



Re: Help: Development of large App with GWT

2010-10-05 Thread Noor
Yes, I think that you r right lalit. That's the confusing part, which
app can i develop, what where i am blocked??

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



Re: Help: Development of large App with GWT

2010-10-04 Thread lalit
With ability to bid on multiple bidding at the same time I think what
you are leveraging is the ability to do multiple AJAX calls to server
simultaneously which is GWT strength but is not unique to GWT. There
are many AJAX engines out there.

I feel where GWT stands out is to able to push a lot of logic
processing code on client side which would be hard to write in plain
Java script.

I would suggest to think of something where you are doing a lot of
processing on client side and providing a fast response to the end
user.

On Oct 4, 10:38 pm, Noor  wrote:
> Thanks Mig,
>
> As I stated above, I am trying to implement a bidding system and above
> I described some its potential features such simultaneously bidding on
> the several items

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



Re: Help: Development of large App with GWT

2010-10-04 Thread Noor
Thanks Mig,

As I stated above, I am trying to implement a bidding system and above
I described some its potential features such simultaneously bidding on
the several items

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



Re: Help: Development of large App with GWT

2010-10-04 Thread mig
It very much depends on what are you trying to do - what the
application should do. Technologically, GWT is unlike any other java
webframework. You don't prepare pages to display on the server and
send them to the browser as plain HTML code, you mostly send only data
and leave the presentation to GWT. This can end up in various ways. I
have seen perfectly efficient web pages and CMS systems go up with
plain GWT. On the other side, I have seen financial applications go up
in flames due to excesive use of GWT in heavy BigDecimal computations,
dynamic HTML table rendering and of course - Internet Explorer (7, 8).
So in general, it's about finding the right balance between server
side and client side rendering. GWT is good, GWT is nice but you
probably don't want to become too obsessed with it or you might end up
with a ton of untracable generator aspect rules and/or GWT services,
that generate HTML instead of sending data to the client for rendering
coz of miserable IE performance.
Good luck.

On 3. Okt, 18:10 h., Noor  wrote:
> Hi to all, I want some help from u. Many times, I have posted this
> topic on google discussion and many have helped me. Thanks for this.
>
> The fact is that I got a dissertation in which I have to demonstrate
> the power of GWT. To demonstrate this, I must create an application.
> So the question, which part of GWT should I exploit the most to show
> this?? Because on the market, there are many other frameworks for
> developing rich internet application. How can I make GWT standout of
> these existing frameworks.
>
> Please, if u've got any idea, just place it on the discussion, this
> would greatly help me
>
> Regards to all
> Noor

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



Re: Help: Development of large App with GWT

2010-10-04 Thread Noor
Hi to all of you, thanks a lot for responding.

If we consider GWT architecture, then we can say that this framework
targets application which has got to communicate with the server a
lot. Then through GWT RPC, the asynchronous calls are made to enhance
interactivity.

Like Lalit said, Stock Market charts which is potential application
and very good idea because information needs to be updated on a real
time basis.

My idea was a bidding system. So when the bidding is going to end,
many people will try to bid. Also, a client might want to place
several bids on after the other based on the highest bid in case he is
outbid.
Now, this is for one bidding

Now, if several bidding are going to end at the same time (even if a
slack of 1 or 2 min), then a bidder will be able to concentrate on may
be 1 or at most 2 or lets say 3.

Then again come the beauty of GWT, several biddings can shown in which
the user is registered in. Then, user can bid on may be 10 bidding if
the user interface is designed correctly

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



Re: Help: Development of large App with GWT

2010-10-04 Thread abhiram wuntakal
Hey create a project which by itself acts as a GWT designer (Someone has
already done a similar thing actually!!, with the DND options and all), Then
u can have modules for server interaction which by itself can be automated
so that all u need to do is indicate the table name and u get the data
automatically!! This will be like a complete package for developing web
application and u can claim that people who use this project just need to do
some customizations rather than coding!! This will definitely turn out to be
a really interesting project!!

  (P.S. : Later u can share the code with the GWT community even so that it
can make the work of developers really really easy!! :-) )

Regards,
Abhiram


On Mon, Oct 4, 2010 at 2:09 PM, Noor  wrote:

> This is persuading but examiners can tell if even i didn't write ant
> javascript, i did write it in java
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Help: Development of large App with GWT

2010-10-04 Thread Thomas Broyer


On Oct 4, 6:37 am, Noor  wrote:
> Thanks Craigo,
> what u said is true. However, I need some features which I can place
> in my applications to show how GWT makes things easy and speedy and

Java tooling (auto-complete & refactoring made easier because Java is
a static language; unit testing –possibly in "pure Java", without the
need to launch a browser or browser-simulator, and/or with mock
toolkits such as Mockito–, debugging –with breakpoints et al.,
including easy debugging of unit tests–, code coverage, code analysis:
checkstyle/PMD and the like, etc.)
Java means possibility to use the same code (such as validation
routines) on both the client and the server (if the server runs Java);
now with Node.js it's possible to easily run JS on the server and
share code the same, so it depends which constraints you have or can
give on the server's environment.

> most important what makes it different when it is finally deployed on
> the server.

GWT-RPC helps you develop AJAX apps in a breath: no need to think
about serialization (at least not too much), your code is shared with
the server so you don't have to keep the client and server code in
sync (you still have to update both at the same time, but it's made
much easier).

Code-splitting made easy (GWT.runAsync and
com.google.gwt.user.client.AsyncProxy).

You can go deeper in your analysis by talking about Cell data
presentation widgets, the App framework (MVP, event bus, activities,
places for history management, etc.), etc. coming in 2.1.


But in the end, it also depends which "other framework" you're
comparing GWT (which BTW isn't a framework but "just" a toolkit)
against: Silverlight? (it's kind of dead: http://www.riagenic.com/archives/363
; FWIW we're having a bad experience with it –couldn't tell you which
issues, but I can ask the other team if you want–, and closed-source
software doesn't really help when debugging weird issues) JavaFX?
(born-dead, and Oracle is turning so evil that I wouldn't recommend
it, not even judging the product quality) or rather JS toolkits such
as jQuery, ExtJS, Google Closure Library, etc. ?

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



Re: Help: Development of large App with GWT

2010-10-04 Thread Sebastian Rothbucher
Hi noor,

actually we're using GWT to develop business applications and that
works extremely well. Maybe defining a scenario /process and building
an application for this is helpful.

Best Regards
 Sebastian Rothbucher

On 3 Okt., 18:10, Noor  wrote:
> Hi to all, I want some help from u. Many times, I have posted this
> topic on google discussion and many have helped me. Thanks for this.
>
> The fact is that I got a dissertation in which I have to demonstrate
> the power of GWT. To demonstrate this, I must create an application.
> So the question, which part of GWT should I exploit the most to show
> this?? Because on the market, there are many other frameworks for
> developing rich internet application. How can I make GWT standout of
> these existing frameworks.
>
> Please, if u've got any idea, just place it on the discussion, this
> would greatly help me
>
> Regards to all
> Noor

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



Re: Help: Development of large App with GWT

2010-10-04 Thread Craigo
AJAX!  Make a whole bunch of client / server calls, and tell people
you didn't write a single line of JavaScript.  It was all generated!

On Oct 3, 11:37 pm, Noor  wrote:
> Thanks Craigo,
> what u said is true. However, I need some features which I can place
> in my applications to show how GWT makes things easy and speedy and
> most important what makes it different when it is finally deployed on
> the 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Help: Development of large App with GWT

2010-10-04 Thread lalit
GWT strength is the ability to build rich client side code. If you can
show some data analytics/crunching kind of application and show that
how it can be supported in web application also.

For example showing stock market charts with feedback and may be
calculate technical indicators.

Just an idea.

On Oct 4, 3:45 pm, abhiram wuntakal  wrote:
> Hey create a project which by itself acts as a GWT designer (Someone has
> already done a similar thing actually!!, with the DND options and all), Then
> u can have modules for server interaction which by itself can be automated
> so that all u need to do is indicate the table name and u get the data
> automatically!! This will be like a complete package for developing web
> application and u can claim that people who use this project just need to do
> some customizations rather than coding!! This will definitely turn out to be
> a really interesting project!!
>
>   (P.S. : Later u can share the code with the GWT community even so that it
> can make the work of developers really really easy!! :-) )
>
> Regards,
> Abhiram
>
>
>
>
>
>
>
> On Mon, Oct 4, 2010 at 2:09 PM, Noor  wrote:
> > This is persuading but examiners can tell if even i didn't write ant
> > javascript, i did write it in java
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Help: Development of large App with GWT

2010-10-04 Thread Noor
This is persuading but examiners can tell if even i didn't write ant
javascript, i did write it in java

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



Re: Help: Development of large App with GWT

2010-10-03 Thread Noor

Thanks Craigo,
what u said is true. However, I need some features which I can place
in my applications to show how GWT makes things easy and speedy and
most important what makes it different when it is finally deployed on
the 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Help: Development of large App with GWT

2010-10-03 Thread Craigo
This sums it up nicely:  http://code.google.com/webtoolkit/overview.html

...with an emphasis on not needing to know JavaScript (in particular
AJAX).  GWT = Awesome!


On Oct 3, 11:10 am, Noor  wrote:
> Hi to all, I want some help from u. Many times, I have posted this
> topic on google discussion and many have helped me. Thanks for this.
>
> The fact is that I got a dissertation in which I have to demonstrate
> the power of GWT. To demonstrate this, I must create an application.
> So the question, which part of GWT should I exploit the most to show
> this?? Because on the market, there are many other frameworks for
> developing rich internet application. How can I make GWT standout of
> these existing frameworks.
>
> Please, if u've got any idea, just place it on the discussion, this
> would greatly help me
>
> Regards to all
> Noor

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



Help: Development of large App with GWT

2010-10-03 Thread Noor
Hi to all, I want some help from u. Many times, I have posted this
topic on google discussion and many have helped me. Thanks for this.

The fact is that I got a dissertation in which I have to demonstrate
the power of GWT. To demonstrate this, I must create an application.
So the question, which part of GWT should I exploit the most to show
this?? Because on the market, there are many other frameworks for
developing rich internet application. How can I make GWT standout of
these existing frameworks.

Please, if u've got any idea, just place it on the discussion, this
would greatly help me

Regards to all
Noor

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



Re: Help with XML Parsing, element with text content contains #text as child

2010-10-01 Thread Thomas Broyer


On Oct 1, 12:17 am, 12ock  wrote:
> Hi,
>
> I am writing a generic xml reader using XMLParser, below is a sample
> xml file i am trying to parse:
>
> 
>      
>           E-001
>      
> 
>
> And here is the code:
>
> public void onSuccess(String xml_)      {
>                                 Document doc_ = XMLParser.parse(xml_);
>
>                                 if (doc_.hasChildNodes()) {
>                                         NodeList parentNodes = 
> doc_.getChildNodes();
>                                         for (int i=0; 
> i                                                 TreeItem parent =
> tree.addItem(parentNodes.item(i).getNodeName());
>                                                 parseXml(parentNodes.item(i), 
> parent);
>                                         }
>                                 }
>                         }
>
> private void parseXml(Node node_, TreeItem parent_) {
>                 if (node_.hasChildNodes()) {
>                         NodeList list_ = node_.getChildNodes();
>                         System.out.println(list_.getLength());
>                         for (int i=0; i                                 
> System.out.println(list_.item(i).getNodeName());
>                                 TreeItem child_ = 
> parent_.addItem(list_.item(i).getNodeName());
>                                 parseXml(list_.item(i), child_);
>                         }
>                 } else {
>                         parent_.addItem("Value: " + node_.getNodeValue());
>                 }
>         }
>
> What is happening is that when iterate to the last level, which is
> Emp_id, node_.hasChildNodes() still returns true and returns #test as
> its child node. I omitted all carriage or white spaces.
>
> Please help!

That's just how the DOM works: in E-001 you have two
nodes: an Element node (Emp_Id) and a child Text node.
You'd want to check node_.getNodeType() == Node.ELEMENT_NODE rather
than (or in addition to) node_.hasChildNodes().
http://www.w3.org/TR/DOM-Level-3-Core/core.html

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



Help with XML Parsing, element with text content contains #text as child

2010-10-01 Thread 12ock
Hi,

I am writing a generic xml reader using XMLParser, below is a sample
xml file i am trying to parse:


 
  E-001
 



And here is the code:


public void onSuccess(String xml_)  {
Document doc_ = XMLParser.parse(xml_);

if (doc_.hasChildNodes()) {
NodeList parentNodes = 
doc_.getChildNodes();
for (int i=0; 
ihttp://groups.google.com/group/google-web-toolkit?hl=en.



Help With LoadHandler

2010-09-27 Thread rjcarr
I have an application where an Image object gets an updated url quite
often from the result of a user action.  I'm running into problems
where if the image is updated (i.e., the setUrl() method is called)
more than once before the image is actually loaded, then the image
doesn't load correctly.

So I'm looking into using LoadHandler and I can't seem to make it
work, nor can I find any examples of its use.  I figured setting a
loading flag when the setUrl() is called and only allowing the call to
complete if we're not loading.  For example:

if(!loading) {
  loading = true;
  super.setUrl(url);
}

And then when the load event comes in (from what I can tell, the only
event type is 'load'), then so something like this:

public void onLoad(LoadEvent event) {
  loading = false;
}

But this isn't working.  It's hard to track down why this isn't
working because I have a few hundred images that can get changed very
rapidly.

I'm not really looking for help with my specific example but more
looking for general examples using the LoadHandler.

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



help with pagingscrolltable

2010-09-22 Thread Nauman Badar
Hi

Can someone help me in using pagingscrolltable/scrolltable cause I cannot
find much help even on the google code for using them with UI-binder?


Thanks in advance.

*Best Regards
Nauman Badar*

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



Re: Require Help to have multiple HTML Pages with one Entrypoint in my GWT App

2010-09-07 Thread suersh babu
Use Window.Location.assign("url") inside the gwt Entry point module so that
you can redirect to different page

Regards
Suresh Babu G

On Wed, Sep 8, 2010 at 12:19 AM, Deepak Singh wrote:

> Hi Nirav
>
> Just right click on project(Eclipse IDE) and create new html. It
> auotomatically configures this new html. Now u can put  element here
> and then
> RootPanel.get(div id).add() will work.
>
> Regards
> Deepak
>
> On Sun, Sep 5, 2010 at 9:08 PM, Nirav Joshi wrote:
>
>> Hi all
>> i am new user of the GWT app.
>> I want help from you guys to guide me for having multiple html/jsp
>> page with one entry point.,
>>
>
>
>> Let us i want to have two pages page1.html,page2.html.
>> page1.html is a login page.
>> when i logged in then it should redirect to page2.html.
>>
>> How will i do it with the help of GWT ?
>>
>> Thanks and Regards
>> Nirav Joshi
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Regards

Suresh Babu G

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



Re: Require Help to have multiple HTML Pages with one Entrypoint in my GWT App

2010-09-07 Thread Deepak Singh
Hi Nirav

Just right click on project(Eclipse IDE) and create new html. It
auotomatically configures this new html. Now u can put  element here
and then
RootPanel.get(div id).add() will work.

Regards
Deepak

On Sun, Sep 5, 2010 at 9:08 PM, Nirav Joshi  wrote:

> Hi all
> i am new user of the GWT app.
> I want help from you guys to guide me for having multiple html/jsp
> page with one entry point.,
>


> Let us i want to have two pages page1.html,page2.html.
> page1.html is a login page.
> when i logged in then it should redirect to page2.html.
>
> How will i do it with the help of GWT ?
>
> Thanks and Regards
> Nirav Joshi
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Require Help to have multiple HTML Pages with one Entrypoint in my GWT App

2010-09-07 Thread Nirav Joshi
Hi all
i am new user of the GWT app.
I want help from you guys to guide me for having multiple html/jsp
page with one entry point.
Let us i want to have two pages page1.html,page2.html.
page1.html is a login page.
when i logged in then it should redirect to page2.html.

How will i do it with the help of GWT ?

Thanks and Regards
Nirav Joshi

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



Re: Please help

2010-09-03 Thread mikedshaf...@gmail.com
Hello,

You've managed to hit the most common problem that new GWT developers
run into.  Here's the deal:  GWT is written in the Java syntax (which
is really cool) and then the GWT compiler converts it into Javascript
(since it is running in a browser).  So here's the common mistake:
not all of Java's huge library base is convertible by the GWT compiler
into Javascript.  What that error is really saying is "you are
importing a Java library that GWT can't convert into Javascript".
java.io is one of those libraries that everyone wants to work in GWT,
but I don't think will ever happen (I'm not affiliated with GWT in any
way..)  If you think of what java.io can do, it is completely
contradictory to what the browser is allowed to do to the native file
system.  Said another way:  there are many things that the browser is
explicitly not allowed to do, and reading the local file system is one
of them.  So if you are going to absolutely need this functionality,
you'll have to do it another way using another technology

Does this make sense?

Later,

Shaffer

On Sep 2, 2:47 am, Albs  wrote:
> Hi...I am new to GWT and i'm trying to develop a small
> application...but here i need to open a directory and count the no.of
> files in it...I'm doing it as follows:
>
> File dir = new File(file);
> String[] pages = dir.list();
> int count = pages.length;
>
> I have imported java.io.File but the GWT compiler gives me the
> following error.plz help
>
> No source code is available for type java.io.File; did
> you forget to inherit a required module?

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



Please help

2010-09-03 Thread Albs
Hi...I am new to GWT and i'm trying to develop a small
application...but here i need to open a directory and count the no.of
files in it...I'm doing it as follows:

File dir = new File(file);
String[] pages = dir.list();
int count = pages.length;

I have imported java.io.File but the GWT compiler gives me the
following error.....plz help

No source code is available for type java.io.File; did
you forget to inherit a required module?

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



Re: Deploy simple app on jetty: Please help

2010-09-01 Thread SZK
You probably need to configure serverlets in your web.xml to match
your @RemoteServiceRelativePath

e.g look at contacts example
 
contactsServiceServlet
com.google.gwt.sample.contacts.server.ContactsServiceImpl
  

  
contactsServiceServlet
/contacts/contactsService
  

error or warning in your console will have a 503 error or 404 not sure
but you can see where it is sending the request you to and that will
give you correct URL-Pattern .

if you post your application in zip I can have a look.

On Sep 2, 12:12 pm, andrewjmccann  wrote:
> Hi Folks,
>
> I which to deploy my new GWT application on a local server running
> jetty-6.1.22 on ubuntu 10.04.
>
> Before I tried that I tried to host the MyWebApp (Web Application
> Starter Project).
> I cannot get it to work.
>
> In eclipse I click Google -> GWT compile. It seems to compile fine.
>
> Then I copy the MyWebApp dir to /usr/share/jetty/webapps dir.
>
> Then I start or restart the jetty server from within /usr/share/jetty
> with
> java -jar start.jar etc/jetty.xml
>
> I point my browser tohttp://127.0.0.1:8080/MyWebApp/war/MyWebApp.html
>
> There I see the nice "log in" page:
> Please enter your name:
>
> When I do I get the error dialog
> An error occurred while attempting to contact the server. Please check
> your network connection and try again.
>
> I have read so many post about "what to do"but in many cases I
> just don't understand what they're saying. Try to follow the 
> manual:http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html#D...
>
> But it doesn't work. I don't know what I'm doing wrong.
>
> Ideas?
>
> Cheers
>
> Andrew

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



Deploy simple app on jetty: Please help

2010-09-01 Thread andrewjmccann
Hi Folks,

I which to deploy my new GWT application on a local server running
jetty-6.1.22 on ubuntu 10.04.

Before I tried that I tried to host the MyWebApp (Web Application
Starter Project).
I cannot get it to work.

In eclipse I click Google -> GWT compile. It seems to compile fine.

Then I copy the MyWebApp dir to /usr/share/jetty/webapps dir.

Then I start or restart the jetty server from within /usr/share/jetty
with
java -jar start.jar etc/jetty.xml

I point my browser to
http://127.0.0.1:8080/MyWebApp/war/MyWebApp.html

There I see the nice "log in" page:
Please enter your name:

When I do I get the error dialog
An error occurred while attempting to contact the server. Please check
your network connection and try again.

I have read so many post about "what to do"but in many cases I
just don't understand what they're saying. Try to follow the manual:
http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html#DevGuideDeployingServletContainerUsingRPC

But it doesn't work. I don't know what I'm doing wrong.

Ideas?

Cheers

Andrew

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



Re: I need help custom querying blobs. Can anybody get JDO BlobInfo query to to work?

2010-08-30 Thread branflake2267
Here is what I came up with so far. This works, but not sure if it is
the best way yet. I can now return the blobinfo entities.

http://code.google.com/p/gwt-examples/source/browse/trunk/DemoUpload/src/org/gonevertical/upload/server/BlobInfoJdo.java
- see the source
public class BlobInfoJdo {

  private PersistenceManager pm = PMF.get().getPersistenceManager();

  public BlobData[] getBlobs(BlobDataFilter filter) {

Entity[] entities = null;
try {
  DatastoreService datastore =
DatastoreServiceFactory.getDatastoreService();
  PreparedQuery pq = datastore.prepare(new Query("__BlobInfo__"));
  List entList =
pq.asList(FetchOptions.Builder.withLimit((int)
filter.getRangeFinish()).offset((int) filter.getRangeStart()));

  entities = new Entity[entList.size()];
  entList.toArray(entities);

} finally {
  pm.close();
}

BlobData[] blobData = convert(entities);

return blobData;
  }

  private BlobData[] convert(Entity[] es) {
if (es == null || es.length == 0) {
  return null;
}

BlobData[] b = new BlobData[es.length];
for (int i=0; i < es.length; i++) {

  Map p = es[i].getProperties();

  long id = es[i].getKey().getId();
  Key key = es[i].getKey();
  String ct = (String) es[i].getProperty("content_type");
  String fn = (String) es[i].getProperty("filename");
  Long size = (Long) es[i].getProperty("size");
  Date creation = (Date) es[i].getProperty("creation");

  b[i] = new BlobData();
  b[i].setKey(key.getName());
  b[i].setContentType(ct);
  b[i].setFilename(fn);
  b[i].setSize(size);
  b[i].setCreation(creation);

}

return b;
  }

}

Also worth noting how to count the blobinfo entities.
  private void test() {

DatastoreService datastore =
DatastoreServiceFactory.getDatastoreService();
PreparedQuery pq = datastore.prepare(new Query("__BlobInfo__"));
int ce = pq.countEntities();

System.out.println("countEntities: " + ce);
  }


On Aug 29, 4:08 pm, branflake2267  wrote:
> Can anybody get a custom BlobInfo JDO query to work?
>
> I can't figure out how to do a custom query on the 
> Blobs?http://code.google.com/p/gwt-examples/source/browse/trunk/DemoUpload/...
>
> This GQL works to query blobs: "SELECT * FROM 
> __BlobInfo__"http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
> - api reference to custom querying
>
> Reference:http://demofileuploadgae.appspot.com/- This is my demo where someone
> can test uploading a file to the 
> blobstore.http://gwt-examples.googlecode.com- my gwt examples
>
> Thanks for looking,
> Brandon

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



I need help custom querying blobs. Can anybody get JDO BlobInfo query to to work?

2010-08-29 Thread branflake2267
Can anybody get a custom BlobInfo JDO query to work?

I can't figure out how to do a custom query on the Blobs?
http://code.google.com/p/gwt-examples/source/browse/trunk/DemoUpload/src/org/gonevertical/upload/server/BlobInfoJdo.java

This GQL works to query blobs: "SELECT * FROM __BlobInfo__"
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/blobstore/BlobInfoFactory.html
- api reference to custom querying

Reference:
http://demofileuploadgae.appspot.com/ - This is my demo where someone
can test uploading a file to the blobstore.
http://gwt-examples.googlecode.com - my gwt examples


Thanks for looking,
Brandon

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



Re: Help With Eclipse Development ??

2010-08-29 Thread Sebastian Rothbucher
Hi Jalu,

what I'd try is a.) put all required libs in WEB-INF/lib and then b.)
add all of WEB-INF/lib to the java build path of the eclipse
project...

Hope this helps!

Best Regards
Sebastian

P.S.: You can safely ignore the WARN] Server class
'net.sf.gilead.gwt.PersistentRemoteService' could
not be found in the web app, but was found on the system classpath

On 26 Aug., 18:36, chalu  wrote:
> Hello folks, I am moving my GWT/GXT development from Netbeans to
> Eclipse (Helios), but I am still struggling to find my way around. I
> have read some tutorials and watched some videos on eclipse but I
> still have issues in some areas, for example the SLF4J docs says we
> have to add an implementation binding e.g Log4J, this however does not
> stop the java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
> from been thrown. After some fiddling, I made the SLF4J library a
> "system library" (it will be added to the boot path ... , see the
> attached thumbnail) and that solved it for org.slf4j.LoggerFactory,
> but now I have others, coming out one after the other, first it was
> Log4J, and now this from the Gilead library I am using :
>
> java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer
> .
> Caused by: java.lang.ClassNotFoundException:
> net.sf.cglib.proxy.Enhancer
>
> Do I have to make all my user libraries be a "system library" ?? Also,
> looking at my eclipse "console" view, I see stuff like this :
>
> WARN] Server class 'net.sf.gilead.gwt.PersistentRemoteService' could
> not be found in the web app, but was found on the system classpath
>    [WARN] Adding classpath entry 'file:/C:/Java/javalibs/gilead/
> gilead4gwt-1.3.0.1169.jar' to the web app classpath for this session
>    For additional info see: file:/C:/eclipse/plugins/
> com.google.gwt.eclipse.sdkbundle.2.0.4_2.0.4.v201006301309/gwt-2.0.4/
> doc/helpInfo/webAppClassPath.html
>
> The page indicated by /webAppClassPath.html just simply says it is
> recommended I put libraries into WEB-INF/lib folder and gives the
> following tip :
>
> "The most common reason to encounter this problem with a new project
> is using RPC, which tries to load
> com.google.gwt.user.client.rpc.RemoteService. The solution to is copy
> gwt-servlet.jar from the GWT install directory into your web app's war/
> WEB-INF/lib/ directory.
> Fortunately, my app's war/WEB-INF/lib/ folder already has the said gwt-
> servlet.jar file."
>
> One would expect that after adding a library to a project, the
> library's jars should be in the project's "path".
> In an attempt to force the libraries jars into the project's lib/
> folder I decided to compile the app, but nothing changed within the
> lib/ folder, it still only contained gwt-servlet.jar.
>
> Now I am stuck, I am trying to run it in the default hosted mode
> (after compiling it) and nothing works from the browser anymore,
> instead I get a page sating thus :
>
> HTTP ERROR: 404
>
> NOT_FOUND
>
> RequestURI=/DiSCS.html
>
> How do I handle these 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Help With Eclipse Development ??

2010-08-27 Thread chalu
Hello folks, I am moving my GWT/GXT development from Netbeans to
Eclipse (Helios), but I am still struggling to find my way around. I
have read some tutorials and watched some videos on eclipse but I
still have issues in some areas, for example the SLF4J docs says we
have to add an implementation binding e.g Log4J, this however does not
stop the java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
from been thrown. After some fiddling, I made the SLF4J library a
"system library" (it will be added to the boot path ... , see the
attached thumbnail) and that solved it for org.slf4j.LoggerFactory,
but now I have others, coming out one after the other, first it was
Log4J, and now this from the Gilead library I am using :

java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer
.
Caused by: java.lang.ClassNotFoundException:
net.sf.cglib.proxy.Enhancer

Do I have to make all my user libraries be a "system library" ?? Also,
looking at my eclipse "console" view, I see stuff like this :

WARN] Server class 'net.sf.gilead.gwt.PersistentRemoteService' could
not be found in the web app, but was found on the system classpath
   [WARN] Adding classpath entry 'file:/C:/Java/javalibs/gilead/
gilead4gwt-1.3.0.1169.jar' to the web app classpath for this session
   For additional info see: file:/C:/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.2.0.4_2.0.4.v201006301309/gwt-2.0.4/
doc/helpInfo/webAppClassPath.html


The page indicated by /webAppClassPath.html just simply says it is
recommended I put libraries into WEB-INF/lib folder and gives the
following tip :

"The most common reason to encounter this problem with a new project
is using RPC, which tries to load
com.google.gwt.user.client.rpc.RemoteService. The solution to is copy
gwt-servlet.jar from the GWT install directory into your web app's war/
WEB-INF/lib/ directory.
Fortunately, my app's war/WEB-INF/lib/ folder already has the said gwt-
servlet.jar file."

One would expect that after adding a library to a project, the
library's jars should be in the project's "path".
In an attempt to force the libraries jars into the project's lib/
folder I decided to compile the app, but nothing changed within the
lib/ folder, it still only contained gwt-servlet.jar.

Now I am stuck, I am trying to run it in the default hosted mode
(after compiling it) and nothing works from the browser anymore,
instead I get a page sating thus :

HTTP ERROR: 404

NOT_FOUND

RequestURI=/DiSCS.html


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



Re: I need a little help with request builder

2010-08-16 Thread nacho
Yes, i thought to do in that way.

But the trouble is that i need to work with 3 files, and i need to
execute more than one method over the file contents, so that was that
i was wondering some how to make sure that the content was loaded and
then work with it.

On 16 ago, 14:45, André Moraes  wrote:
> If i get it correct:
>
> 1- Your file as a file that your server will serve when you make a GET
> request.
> 2- You are using RequestBuilder to open a connection to your server and
> fetch the file
> 3- If all of this is true, you should do:
> 3.1 -> create the requestbuilder and point it to your file
> 3.2 -> you created your request passing a RequestCallback 
> (see:http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...
> )
> 3.3 -> Inside the onResponseReceived of that call, you write the logic to
> load and process your file.
>
> This approach is much more complex but this have the advantage of not
> blocking the browser.
>
> Hope it helps,
>
> --
> André Moraes
> Analista de Desenvolvimento de Sistemas
> andr...@gmail.comhttp://andredevchannel.blogspot.com/

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



Re: I need a little help with request builder

2010-08-16 Thread André Moraes
If i get it correct:

1- Your file as a file that your server will serve when you make a GET
request.
2- You are using RequestBuilder to open a connection to your server and
fetch the file
3- If all of this is true, you should do:
3.1 -> create the requestbuilder and point it to your file
3.2 -> you created your request passing a RequestCallback (see:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/http/client/RequestCallback.html
)
3.3 -> Inside the onResponseReceived of that call, you write the logic to
load and process your file.

This approach is much more complex but this have the advantage of not
blocking the browser.

Hope it helps,

-- 
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://andredevchannel.blogspot.com/

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



I need a little help with request builder

2010-08-16 Thread nacho
Well, the trouble is not exactly with request builder. The thing is
like this.

I have a class BinFileReader that in the constructor receives an url
an read it address file contents. And the class haves some methods,
like readString(), readInt, readByte, etc.

But, obviusly, first at all, to execute those methods, i need to have
the file readed using RequestBuilder, so when i execute this for
example:

BinFileReader fileReader = new BinFileReader("/mytext.txt");
String result = fileReader.readString(0, 10); // 0 = from, 10 = to

Could happen, and it happens, that the file is not allready readed,
and i don't have file contents, so readString method is not usefull.

My question, is, how could i build my BinFileReader so i dont have
this issue? Do i have to check if the file is readed, if don't put a
timer and try again, and over and over again till the file was readed?

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



Re: UiBinder xml definition reference: HELP...

2010-08-14 Thread Thomas Broyer


On 14 août, 14:39, Thamizharasu S  wrote:
> Hi,
> I was supposed to use SuggestionBox widget with UiBinder. How could I
> mention the data provider as a property from xml or the code?

http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_a_widget

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



Re: UiBinder xml definition reference: HELP...

2010-08-14 Thread Thamizharasu S
Hi,
I was supposed to use SuggestionBox widget with UiBinder. How could I
mention the data provider as a property from xml or the code?

- Thamizharasu S

On 14 Aug, 15:17, Thomas Broyer  wrote:
> On 13 août, 20:04, Thamizharasu S  wrote:
>
> > Hi All,
>
> > Where can I find the full list of property reference for UiBinder
> > controls in xml file?
>
> > For example, any GWT elements can be bind with UiBinder. Sometimes it
> > is confusing to identify the correct property name and some available
> > values.
>
> > Can any one point to identify it for my reference?
>
> From the doc:
> """See how the g:ListBox element has a visibleItemCount='1' attribute?
> That becomes a call to ListBox#setVisibleItemCount(int). Every one of
> the widget's methods that follow JavaBean-style conventions for
> setting a property can be used this 
> way."""http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#He...
>
> Widgets with special parsers have a "Use in UiBinder Templates"
> section in their respective JavaDoc.
> For 
> instance:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...

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



Re: UiBinder xml definition reference: HELP...

2010-08-14 Thread Thomas Broyer


On 13 août, 20:04, Thamizharasu S  wrote:
> Hi All,
>
> Where can I find the full list of property reference for UiBinder
> controls in xml file?
>
> For example, any GWT elements can be bind with UiBinder. Sometimes it
> is confusing to identify the correct property name and some available
> values.
>
> Can any one point to identify it for my reference?

>From the doc:
"""See how the g:ListBox element has a visibleItemCount='1' attribute?
That becomes a call to ListBox#setVisibleItemCount(int). Every one of
the widget's methods that follow JavaBean-style conventions for
setting a property can be used this way."""
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Widget_World

Widgets with special parsers have a "Use in UiBinder Templates"
section in their respective JavaDoc.
For instance:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/DisclosurePanel.html
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/DockLayoutPanel.html
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/LayoutPanel.html

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



Re: UiBinder xml definition reference: HELP...

2010-08-13 Thread Prashant Hegde
 Not sure if there is such a documentation, however, one rule is that 
whenever a widget has a method say "setName" ( set methods), you can use 
name="" in the UIBinder XML file for that widget.


May be someone else can give a better answer.

Prashant

On 13-08-2010 23:34, Thamizharasu S wrote:

Hi All,

Where can I find the full list of property reference for UiBinder
controls in xml file?

For example, any GWT elements can be bind with UiBinder. Sometimes it
is confusing to identify the correct property name and some available
values.

Can any one point to identify it for my reference?

- Thamizharasu S



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



UiBinder xml definition reference: HELP...

2010-08-13 Thread Thamizharasu S
Hi All,

Where can I find the full list of property reference for UiBinder
controls in xml file?

For example, any GWT elements can be bind with UiBinder. Sometimes it
is confusing to identify the correct property name and some available
values.

Can any one point to identify it for my reference?

- Thamizharasu S

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



help...

2010-08-12 Thread Diego Venuzka
Hello guys!
My project, on compilation, show that message: "[WARN]
jar:file:/C:/projetos/RaceTech/lib/gxt.jar!/com/extjs/gxt/ui/client/data/BeanModelFactory.java
[WARN] Compilation unit
'jar:file:/C:/projetos/RaceTech/lib/gxt.jar!/com/extjs/gxt/ui/client/store/StoreListener.java'
is removed due to invalid reference(s):"

And show that error: " Checking rule 
[ERROR] Unable to find type
'br.com.site.racetech.client.MainEntryPoint'
   [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
C:\projetos\RaceTech\nbproject\build-gwt.xml:262: The following error
occurred while executing this line:
C:\projetos\RaceTech\nbproject\build-gwt.xml:411: Java returned: 1
FALHA NA CONSTRUÇÃO (tempo total: 21 segundos)

Anyone can help me to solve this? I'm working on that more than 3 hours and
i don't solve that errors

Thanks!!

-- 
Diego Venuzka

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



Re: help with css bundles and background image sprites

2010-08-10 Thread Joe Hudson
Thanks Gal for the feedback.  It's appreciated!

Joe

On Aug 10, 2:18 pm, Gal Dolber  wrote:
> That solution wont work on IE7 and IE6.
> Because in all browser but IE7/IE7 gwt will inline the images as base64.
> The only browsers that really use sprites are those and the nature of
> sprites require you to put the real width and height to work.
> If you use width:auto; height:auto you will break it.
>
> Best
>
> 2010/8/10 Joe Hudson 
>
> > Figured this one out as well - posting it for completeness of this
> > thread.
>
> > you need to add height: auto; width: auto css properties (or different
> > values based on your needs)
>
> > Joe
>
> > On Aug 9, 11:40 pm, Joe Hudson  wrote:
> > > Hi,
>
> > > I'm trying to use a css bundle with a background image reference and I
> > > am getting an error in the Development Mode Eclipse view:  Fix by
> > > adding String accessor method(s) to the CssResource interface for
> > > obfuscated classes, or using an @external declaration for unobfuscated
> > > classes.
>
> > > When I add an @external at-rule I no longer receive the error but the
> > > background image doesn't show up.  More specifically, I do see all
> > > other css attributes when inspecting the DOM but just not the
> > > background-image attribute.
>
> > > Here is my code (snipped for readability)
>
> > > --- CSS file
> > > @sprite .error {
> > >   gwt-image: 'error';
>
> > > }
>
> > > .errorMessage {
> > >     background-color: #FEEFB3;
> > >     gwt-image: 'warn';
>
> > > }
>
> > > -- Client Bundle
> > > public interface MessagePanelClientBundle extends ClientBundle {
>
> > >         @Source("message-panel.css")
> > >         MessagePanelCSS css();
>
> > >         @Source("error.png")
> > >         ImageResource error();
>
> > > }
>
> > > -- Css Bundle
> > > public interface MessagePanelCSS extends CssResource {
>
> > >         String errorMessage();
>
> > > }
>
> > > Does anyone have any ideas as to why this might happen?  Any help
> > > would be appreciated.  Thanks.
>
> > > Joe
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: help with css bundles and background image sprites

2010-08-10 Thread Gal Dolber
That solution wont work on IE7 and IE6.
Because in all browser but IE7/IE7 gwt will inline the images as base64.
The only browsers that really use sprites are those and the nature of
sprites require you to put the real width and height to work.
If you use width:auto; height:auto you will break it.

Best

2010/8/10 Joe Hudson 

> Figured this one out as well - posting it for completeness of this
> thread.
>
> you need to add height: auto; width: auto css properties (or different
> values based on your needs)
>
> Joe
>
> On Aug 9, 11:40 pm, Joe Hudson  wrote:
> > Hi,
> >
> > I'm trying to use a css bundle with a background image reference and I
> > am getting an error in the Development Mode Eclipse view:  Fix by
> > adding String accessor method(s) to the CssResource interface for
> > obfuscated classes, or using an @external declaration for unobfuscated
> > classes.
> >
> > When I add an @external at-rule I no longer receive the error but the
> > background image doesn't show up.  More specifically, I do see all
> > other css attributes when inspecting the DOM but just not the
> > background-image attribute.
> >
> > Here is my code (snipped for readability)
> >
> > --- CSS file
> > @sprite .error {
> >   gwt-image: 'error';
> >
> > }
> >
> > .errorMessage {
> > background-color: #FEEFB3;
> > gwt-image: 'warn';
> >
> > }
> >
> > -- Client Bundle
> > public interface MessagePanelClientBundle extends ClientBundle {
> >
> > @Source("message-panel.css")
> > MessagePanelCSS css();
> >
> >     @Source("error.png")
> > ImageResource error();
> >
> > }
> >
> > -- Css Bundle
> > public interface MessagePanelCSS extends CssResource {
> >
> > String errorMessage();
> >
> > }
> >
> > Does anyone have any ideas as to why this might happen?  Any help
> > would be appreciated.  Thanks.
> >
> > Joe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: help with css bundles and background image sprites

2010-08-10 Thread Joe Hudson
Figured this one out as well - posting it for completeness of this
thread.

you need to add height: auto; width: auto css properties (or different
values based on your needs)

Joe

On Aug 9, 11:40 pm, Joe Hudson  wrote:
> Hi,
>
> I'm trying to use a css bundle with a background image reference and I
> am getting an error in the Development Mode Eclipse view:  Fix by
> adding String accessor method(s) to the CssResource interface for
> obfuscated classes, or using an @external declaration for unobfuscated
> classes.
>
> When I add an @external at-rule I no longer receive the error but the
> background image doesn't show up.  More specifically, I do see all
> other css attributes when inspecting the DOM but just not the
> background-image attribute.
>
> Here is my code (snipped for readability)
>
> --- CSS file
> @sprite .error {
>   gwt-image: 'error';
>
> }
>
> .errorMessage {
>     background-color: #FEEFB3;
>     gwt-image: 'warn';
>
> }
>
> -- Client Bundle
> public interface MessagePanelClientBundle extends ClientBundle {
>
>         @Source("message-panel.css")
>         MessagePanelCSS css();
>
>         @Source("error.png")
>         ImageResource error();
>
> }
>
> -- Css Bundle
> public interface MessagePanelCSS extends CssResource {
>
>         String errorMessage();
>
> }
>
> Does anyone have any ideas as to why this might happen?  Any help
> would be appreciated.  Thanks.
>
> Joe

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



Re: help with css bundles and background image sprites

2010-08-10 Thread Gal Dolber
public interface MessagePanelClientBundle extends ClientBundle {

   @Source("message-panel.css")
   MessagePanelCSS css();

   @Source("error.png")
   DataResource error();
}

css:
@url errorUrl error;
.error {
 background-image: 'errorUrl';
}

2010/8/10 Joe Hudson 

> It turns out I was just being dumb :)
>
> I'll post the fix below but I've also got another question.  I want
> the component to have a background image but I do not want the size to
> be restricted to the width and height of the background image.  Can
> anyone tell me how to do this?
>
> I'm looking here:
> http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResource
> but don't see any reference to that.  Thanks.
>
> Joe
>
> And the fix is that the @sprite is declared on the css style
> definition where an image is used.  I was thinking that the @sprite
> create an image definition to be used in other styles later.
>
> --- CSS file
> @sprite .errorMessage {
>background-color: #FEEFB3;
>gwt-image: 'error';
>
> }
>
>
> On Aug 9, 11:40 pm, Joe Hudson  wrote:
> > Hi,
> >
> > I'm trying to use a css bundle with a background image reference and I
> > am getting an error in the Development Mode Eclipse view:  Fix by
> > adding String accessor method(s) to the CssResource interface for
> > obfuscated classes, or using an @external declaration for unobfuscated
> > classes.
> >
> > When I add an @external at-rule I no longer receive the error but the
> > background image doesn't show up.  More specifically, I do see all
> > other css attributes when inspecting the DOM but just not the
> > background-image attribute.
> >
> > Here is my code (snipped for readability)
> >
> > --- CSS file
> > @sprite .error {
> >   gwt-image: 'error';
> >
> > }
> >
> > .errorMessage {
> > background-color: #FEEFB3;
> > gwt-image: 'warn';
> >
> > }
> >
> > -- Client Bundle
> > public interface MessagePanelClientBundle extends ClientBundle {
> >
> > @Source("message-panel.css")
> > MessagePanelCSS css();
> >
> > @Source("error.png")
> > ImageResource error();
> >
> > }
> >
> > -- Css Bundle
> > public interface MessagePanelCSS extends CssResource {
> >
> > String errorMessage();
> >
> > }
> >
> > Does anyone have any ideas as to why this might happen?  Any help
> > would be appreciated.  Thanks.
> >
> > Joe
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: help with css bundles and background image sprites

2010-08-10 Thread Joe Hudson
It turns out I was just being dumb :)

I'll post the fix below but I've also got another question.  I want
the component to have a background image but I do not want the size to
be restricted to the width and height of the background image.  Can
anyone tell me how to do this?

I'm looking here: 
http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResource
but don't see any reference to that.  Thanks.

Joe

And the fix is that the @sprite is declared on the css style
definition where an image is used.  I was thinking that the @sprite
create an image definition to be used in other styles later.

--- CSS file
@sprite .errorMessage {
background-color: #FEEFB3;
gwt-image: 'error';

}


On Aug 9, 11:40 pm, Joe Hudson  wrote:
> Hi,
>
> I'm trying to use a css bundle with a background image reference and I
> am getting an error in the Development Mode Eclipse view:  Fix by
> adding String accessor method(s) to the CssResource interface for
> obfuscated classes, or using an @external declaration for unobfuscated
> classes.
>
> When I add an @external at-rule I no longer receive the error but the
> background image doesn't show up.  More specifically, I do see all
> other css attributes when inspecting the DOM but just not the
> background-image attribute.
>
> Here is my code (snipped for readability)
>
> --- CSS file
> @sprite .error {
>   gwt-image: 'error';
>
> }
>
> .errorMessage {
>     background-color: #FEEFB3;
>     gwt-image: 'warn';
>
> }
>
> -- Client Bundle
> public interface MessagePanelClientBundle extends ClientBundle {
>
>         @Source("message-panel.css")
>         MessagePanelCSS css();
>
>         @Source("error.png")
>         ImageResource error();
>
> }
>
> -- Css Bundle
> public interface MessagePanelCSS extends CssResource {
>
>         String errorMessage();
>
> }
>
> Does anyone have any ideas as to why this might happen?  Any help
> would be appreciated.  Thanks.
>
> Joe

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



help with css bundles and background image sprites

2010-08-09 Thread Joe Hudson
Hi,

I'm trying to use a css bundle with a background image reference and I
am getting an error in the Development Mode Eclipse view:  Fix by
adding String accessor method(s) to the CssResource interface for
obfuscated classes, or using an @external declaration for unobfuscated
classes.

When I add an @external at-rule I no longer receive the error but the
background image doesn't show up.  More specifically, I do see all
other css attributes when inspecting the DOM but just not the
background-image attribute.

Here is my code (snipped for readability)

--- CSS file
@sprite .error {
  gwt-image: 'error';
}

.errorMessage {
background-color: #FEEFB3;
gwt-image: 'warn';
}


-- Client Bundle
public interface MessagePanelClientBundle extends ClientBundle {

@Source("message-panel.css")
MessagePanelCSS css();

@Source("error.png")
ImageResource error();
}

-- Css Bundle
public interface MessagePanelCSS extends CssResource {

String errorMessage();
}


Does anyone have any ideas as to why this might happen?  Any help
would be appreciated.  Thanks.

Joe

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



broken image in help! Bug?

2010-08-09 Thread Sree ...
Is this a bug?? am seeing a broken image in eclipse.
Type:  final *Button* b = new Button(); and then mouseover to *Button.*

[image: broken Image.png]

-- 
-Thanks
-Srikanth.G
-Hyderabad

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

<>

Re: Need help on generating session id

2010-08-09 Thread Mani P
Thank you all guys for your responses.

But when i try to do the same thing in Java using servlets i am getting
different sesssion id's if i open a new same browser. But where as in using
GWT i am getting same session even if i use different browser (same
browser). So my requirement is to generate different session id when ever
there is a different browser instance like how i am getting in java.

On Mon, Aug 2, 2010 at 1:49 AM, eluminous chaitu  wrote:

> Hello Mani,
>
> when Firefox generates a session id for one process, it is shared within
> all the instances of Firefox, as all the instances of Firefox is a single
> process and not different instances.
> All the instances of Firefox share a common process area which causes to
> retain a session id for all instances within that process area. This is same
> for IE too.
>
> Thanks & Regards
> eluminous Chaitu
>
>
>
>
>
> On Sat, Jul 31, 2010 at 5:22 AM, Mani  wrote:
>
>> Hi, when i try to get session id by using following piece of code
>> every time i am getting same session id if i try from same browser
>> (with two instance browsers) like Firefox or IE.
>>
>> getThreadLocalRequest().getSession().getId()
>>
>> Can any one tell me why it is giving same session id.
>>
>> Thanks
>> Mani
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>
>
> --
> Website for 
> Mobiles| Organic
> SEO 
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Please help - GWT application will not load in IE!

2010-08-09 Thread Manuel Carrasco Moñino
 work in another browser. Typically I just find a more common
>> > way of going through something.
>>
>> > What I'd recommend is (although it's time consuming), is to comment
>> > out the method that builds your entry GUI, and start adding stuff back
>> > slowly until you get the issue. Try to get it down and figure out
>> > exactly what isn't able to load in I.E. The fact that nothing is
>> > loading makes me think it might be one of the outside layers, perhaps
>> > try some inner layers of the GUI and see what works and what doesn't.
>>
>> > If I got your code, that's what I'd end up doing any ways. Errors like
>> > this can just happen for random reasons, and to my knowledge there
>> > isn't a "well this works in all the other browsers, but not I.E."
>> > error. Google has been good about fixing those if I'm not mistaken.
>>
>> > On Aug 6, 7:41 am,Xandel wrote:
>>
>> > > Alright, so I tried RootLayoutPanel.get() instead of RootPanel.get()
>> > > and something interesting... The site still does not load up at all
>> > > but there is no "Exception thrown and not caught" compilation error
>> > > anymore...
>>
>> > > Not sure if that helps... Will keep looking for answers - but please,
>> > > if you require any more information to try and help me solve this just
>> > > ask away!
>>
>> > > Other information I can give you is I am using the MVP design pattern
>> > > as suggested by the GWT team based off their contacts example. So
>> > > while I don't necessarily call
>> > > RootLayoutPanel.get().add(myMainLayoutPanel)) directly I do set
>> > > RootLayoutPanel.get() as a container and then later add the
>> > > "myMainLayoutPanel" to it. Comes to the same thing I suppose. Just
>> > > trying to think of anything that may help!
>>
>> > > Thanks!
>>
>> > >Xandel
>>
>> > > On Aug 5, 7:15 pm, Katharina Probst  wrote:
>>
>> > > > Maybe it's just me, but it's kind of hard to tell from your 
>> > > > description what
>> > > > could be wrong.
>>
>> > > > I do see that you're using RootPanel mixed with LayoutPanel.  Try 
>> > > > adding the
>> > > > LayoutPanels to the RootLayoutPanel (something like
>> > > > RootLayoutPanel.get().add(myMainLayoutPanel)).
>>
>> > > > Also, I assume you compiled your app for the IE permutation(s)?
>>
>> > > > kathrin
>>
>> > > > On Thu, Aug 5, 2010 at 11:43 AM,Xandel wrote:
>> > > > > Hi there,
>>
>> > > > > Can somebody please assist me - I have spent the last 3 months 
>> > > > > writing
>> > > > > a GWT application and I cannot get it to work in Internet Explorer.
>> > > > > It's my first GWT application. It works fine in Firefox and Chrome. 
>> > > > > In
>> > > > > internet explorer it just doesn't load up.
>>
>> > > > > Here are some details:
>>
>> > > > > I am using GWT 2.0.3 developed on Ubuntu 9.03 using Eclipse. At first
>> > > > > my application was loading from a div tag deep within the DOM's body
>> > > > > tag - it was like this because I was making use of html and css to
>> > > > > build a "friendly" border around the app. All that would happen was
>> > > > > that the html and images would all load - but my app wouldn't show. I
>> > > > > have now since moved the application to use the RootPanel.get() so
>> > > > > that it loads straight from the body tag - no luck, nothing loads up
>> > > > > at all.
>>
>> > > > > While my app is simple, it contains a lot of panels within each other
>> > > > > to build the layout, the main panel being a LayoutPanel. I have tried
>> > > > > it in quirks-mode and standards-mode and both don't seem to work.
>>
>> > > > > Another problem I was having which seems to have gone away I 
>> > > > > described
>> > > > > on this post on StackOverflow:
>>
>> > > > >http://stackoverflow.com/questions/3033073/gwt-in-ie8-exception-throw...
>>
>> > > > > Please can somebody help me. I have already posted on this forum and
>> > > > > received no help. If anyone has any ideas, or suggestions - I really
>> > > > > will be appreciative! I can also provide the link to the site on
>> > > > > request.
>>
>> > > > > Thanks in advance - if anyone actually sees this.
>>
>> > > > >Xandel
>>
>> > > > > --
>> > > > > You received this message because you are subscribed to the Google 
>> > > > > Groups
>> > > > > "Google Web Toolkit" group.
>> > > > > To post to this group, send email to 
>> > > > > google-web-tool...@googlegroups.com.
>> > > > > To unsubscribe from this group, send email to
>> > > > > google-web-toolkit+unsubscr...@googlegroups.com> > > > >  cr...@googlegroups.com>
>> > > > > .
>> > > > > For more options, visit this group at
>> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Please help - GWT application will not load in IE!

2010-08-06 Thread Xandel
Hey guys,

Thanks for your feedback. Trevor, trying the Window.alert() to see if
even that gets fired off. When I say the app doesn't load up at all I
mean literally nothing from my application loads up. When I initially
had it running from withing a div tag deep in the documents body, the
surrounding images and text etc would load up but my app wouldn't.
There would just be a white space where the application should be...
Now that I am literally attaching it to the root panel (directly to
the body) the site comes up, the title is there but there is just
white. Looking at the source doesn't show anything resembling my code.

On that point tho - I would like to note that the html does have some
"extra" stuff added in there that I obviously didn't put myself:

Before the body tag within two script tags is

function SymError()

{

  return true;

}



window.onerror = SymError;



var SymRealWinOpen = window.open;



function SymWinOpen(url, name, attributes)

{

  return (new Object());

}



window.open = SymWinOpen;

And within the body tag also between two script tags is:

var SymRealOnLoad;

var SymRealOnUnload;



function SymOnUnload()

{

  window.open = SymWinOpen;

  if(SymRealOnUnload != null)

 SymRealOnUnload();

}



function SymOnLoad()

{

  if(SymRealOnLoad != null)

 SymRealOnLoad();

  window.open = SymRealWinOpen;

  SymRealOnUnload = window.onunload;

  window.onunload = SymOnUnload;

}



SymRealOnLoad = window.onload;

window.onload = SymOnLoad;

I'm not sure if this helps... This is taking me a while to get right,
because I am developing on Linux, the process of testing each change
(as it works perfectly everytime in firefox) is literally - Make the
change - > Upload the war to my server -> Open on my windows box ->
Find the Exception Not Caught cache.html file line number -> Add the
catch block on my linux machine in that file -> upload the file ->
Check again on my windows box.

That syntax error is still there - I thought it had gone away but that
was a caching refreshing mistake on my side. I need to literally
change the line:

function Vn(a,b,c){var d;d=Qn++==0;try{return a.apply(b,c)}
finally{d&&io((fo(),eo));--Qn}}

to

function Vn(a,b,c){var d;d=Qn++==0;try{return a.apply(b,c)}catch(a){}
finally{d&&io((fo(),eo));--Qn}}

to satisfy IE. Once again, if anyone has any ideas on that error I've
put more details on StackOverflow (the -PRETTY version of the code),
the link is in the previous messages.

Sigh, will come back to you regarding the Window.alert() idea to see
how much of the code is loading. And to spierce7, I think you're right
- thats the best idea to find the problem, will try that after a few
attempts at minor changes ;)

Thanks guys,

Xandel

On Aug 6, 4:22 pm, Trevor Skaife  wrote:
> And when you say the site doesn't load up at all do you mean you just
> don't see it? Or that you put a Window.alert() in the onModuleLoad and
> you even that doesn't work? If it's the first where for whatever
> reason IE is having issues rendering the page I would suggest using
> the developer tools in IE8 and see if there is a problem with your css
> and the way you create the page. I'm guessing it's your css thats
> thats causing issues. When I have issues where things don't look right
> in IE I usually just play around with the styles using the developer
> tools in IE8 until it looks right.
>
> On Aug 6, 8:17 am, spierce7  wrote:
>
> > I hate issues like this. Unfortunately, particularly since GWT is
> > young, I've gotten something working in one browser, only to find it
> > doesn't work in another browser. Typically I just find a more common
> > way of going through something.
>
> > What I'd recommend is (although it's time consuming), is to comment
> > out the method that builds your entry GUI, and start adding stuff back
> > slowly until you get the issue. Try to get it down and figure out
> > exactly what isn't able to load in I.E. The fact that nothing is
> > loading makes me think it might be one of the outside layers, perhaps
> > try some inner layers of the GUI and see what works and what doesn't.
>
> > If I got your code, that's what I'd end up doing any ways. Errors like
> > this can just happen for random reasons, and to my knowledge there
> > isn't a "well this works in all the other browsers, but not I.E."
> > error. Google has been good about fixing those if I'm not mistaken.
>
> > On Aug 6, 7:41 am,Xandel wrote:
>
> > > Alright, so I tried RootLayoutPanel.get() instead of RootPanel.get()
> > > and something interesting... The site still does not load up at all
> > > but there is no "Exception thrown and not caught" co

Re: Please help - GWT application will not load in IE!

2010-08-06 Thread Trevor Skaife
And when you say the site doesn't load up at all do you mean you just
don't see it? Or that you put a Window.alert() in the onModuleLoad and
you even that doesn't work? If it's the first where for whatever
reason IE is having issues rendering the page I would suggest using
the developer tools in IE8 and see if there is a problem with your css
and the way you create the page. I'm guessing it's your css thats
thats causing issues. When I have issues where things don't look right
in IE I usually just play around with the styles using the developer
tools in IE8 until it looks right.

On Aug 6, 8:17 am, spierce7  wrote:
> I hate issues like this. Unfortunately, particularly since GWT is
> young, I've gotten something working in one browser, only to find it
> doesn't work in another browser. Typically I just find a more common
> way of going through something.
>
> What I'd recommend is (although it's time consuming), is to comment
> out the method that builds your entry GUI, and start adding stuff back
> slowly until you get the issue. Try to get it down and figure out
> exactly what isn't able to load in I.E. The fact that nothing is
> loading makes me think it might be one of the outside layers, perhaps
> try some inner layers of the GUI and see what works and what doesn't.
>
> If I got your code, that's what I'd end up doing any ways. Errors like
> this can just happen for random reasons, and to my knowledge there
> isn't a "well this works in all the other browsers, but not I.E."
> error. Google has been good about fixing those if I'm not mistaken.
>
> On Aug 6, 7:41 am, Xandel  wrote:
>
>
>
> > Alright, so I tried RootLayoutPanel.get() instead of RootPanel.get()
> > and something interesting... The site still does not load up at all
> > but there is no "Exception thrown and not caught" compilation error
> > anymore...
>
> > Not sure if that helps... Will keep looking for answers - but please,
> > if you require any more information to try and help me solve this just
> > ask away!
>
> > Other information I can give you is I am using the MVP design pattern
> > as suggested by the GWT team based off their contacts example. So
> > while I don't necessarily call
> > RootLayoutPanel.get().add(myMainLayoutPanel)) directly I do set
> > RootLayoutPanel.get() as a container and then later add the
> > "myMainLayoutPanel" to it. Comes to the same thing I suppose. Just
> > trying to think of anything that may help!
>
> > Thanks!
>
> > Xandel
>
> > On Aug 5, 7:15 pm, Katharina Probst  wrote:
>
> > > Maybe it's just me, but it's kind of hard to tell from your description 
> > > what
> > > could be wrong.
>
> > > I do see that you're using RootPanel mixed with LayoutPanel.  Try adding 
> > > the
> > > LayoutPanels to the RootLayoutPanel (something like
> > > RootLayoutPanel.get().add(myMainLayoutPanel)).
>
> > > Also, I assume you compiled your app for the IE permutation(s)?
>
> > > kathrin
>
> > > On Thu, Aug 5, 2010 at 11:43 AM, Xandel  wrote:
> > > > Hi there,
>
> > > > Can somebody please assist me - I have spent the last 3 months writing
> > > > a GWT application and I cannot get it to work in Internet Explorer.
> > > > It's my first GWT application. It works fine in Firefox and Chrome. In
> > > > internet explorer it just doesn't load up.
>
> > > > Here are some details:
>
> > > > I am using GWT 2.0.3 developed on Ubuntu 9.03 using Eclipse. At first
> > > > my application was loading from a div tag deep within the DOM's body
> > > > tag - it was like this because I was making use of html and css to
> > > > build a "friendly" border around the app. All that would happen was
> > > > that the html and images would all load - but my app wouldn't show. I
> > > > have now since moved the application to use the RootPanel.get() so
> > > > that it loads straight from the body tag - no luck, nothing loads up
> > > > at all.
>
> > > > While my app is simple, it contains a lot of panels within each other
> > > > to build the layout, the main panel being a LayoutPanel. I have tried
> > > > it in quirks-mode and standards-mode and both don't seem to work.
>
> > > > Another problem I was having which seems to have gone away I described
> > > > on this post on StackOverflow:
>
> > > >http://stackoverflow.com/question

Re: Please help - GWT application will not load in IE!

2010-08-06 Thread spierce7
I hate issues like this. Unfortunately, particularly since GWT is
young, I've gotten something working in one browser, only to find it
doesn't work in another browser. Typically I just find a more common
way of going through something.

What I'd recommend is (although it's time consuming), is to comment
out the method that builds your entry GUI, and start adding stuff back
slowly until you get the issue. Try to get it down and figure out
exactly what isn't able to load in I.E. The fact that nothing is
loading makes me think it might be one of the outside layers, perhaps
try some inner layers of the GUI and see what works and what doesn't.

If I got your code, that's what I'd end up doing any ways. Errors like
this can just happen for random reasons, and to my knowledge there
isn't a "well this works in all the other browsers, but not I.E."
error. Google has been good about fixing those if I'm not mistaken.

On Aug 6, 7:41 am, Xandel  wrote:
> Alright, so I tried RootLayoutPanel.get() instead of RootPanel.get()
> and something interesting... The site still does not load up at all
> but there is no "Exception thrown and not caught" compilation error
> anymore...
>
> Not sure if that helps... Will keep looking for answers - but please,
> if you require any more information to try and help me solve this just
> ask away!
>
> Other information I can give you is I am using the MVP design pattern
> as suggested by the GWT team based off their contacts example. So
> while I don't necessarily call
> RootLayoutPanel.get().add(myMainLayoutPanel)) directly I do set
> RootLayoutPanel.get() as a container and then later add the
> "myMainLayoutPanel" to it. Comes to the same thing I suppose. Just
> trying to think of anything that may help!
>
> Thanks!
>
> Xandel
>
> On Aug 5, 7:15 pm, Katharina Probst  wrote:
>
> > Maybe it's just me, but it's kind of hard to tell from your description what
> > could be wrong.
>
> > I do see that you're using RootPanel mixed with LayoutPanel.  Try adding the
> > LayoutPanels to the RootLayoutPanel (something like
> > RootLayoutPanel.get().add(myMainLayoutPanel)).
>
> > Also, I assume you compiled your app for the IE permutation(s)?
>
> > kathrin
>
> > On Thu, Aug 5, 2010 at 11:43 AM, Xandel  wrote:
> > > Hi there,
>
> > > Can somebody please assist me - I have spent the last 3 months writing
> > > a GWT application and I cannot get it to work in Internet Explorer.
> > > It's my first GWT application. It works fine in Firefox and Chrome. In
> > > internet explorer it just doesn't load up.
>
> > > Here are some details:
>
> > > I am using GWT 2.0.3 developed on Ubuntu 9.03 using Eclipse. At first
> > > my application was loading from a div tag deep within the DOM's body
> > > tag - it was like this because I was making use of html and css to
> > > build a "friendly" border around the app. All that would happen was
> > > that the html and images would all load - but my app wouldn't show. I
> > > have now since moved the application to use the RootPanel.get() so
> > > that it loads straight from the body tag - no luck, nothing loads up
> > > at all.
>
> > > While my app is simple, it contains a lot of panels within each other
> > > to build the layout, the main panel being a LayoutPanel. I have tried
> > > it in quirks-mode and standards-mode and both don't seem to work.
>
> > > Another problem I was having which seems to have gone away I described
> > > on this post on StackOverflow:
>
> > >http://stackoverflow.com/questions/3033073/gwt-in-ie8-exception-throw...
>
> > > Please can somebody help me. I have already posted on this forum and
> > > received no help. If anyone has any ideas, or suggestions - I really
> > > will be appreciative! I can also provide the link to the site on
> > > request.
>
> > > Thanks in advance - if anyone actually sees this.
>
> > > Xandel
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Please help - GWT application will not load in IE!

2010-08-06 Thread Xandel
Alright, so I tried RootLayoutPanel.get() instead of RootPanel.get()
and something interesting... The site still does not load up at all
but there is no "Exception thrown and not caught" compilation error
anymore...

Not sure if that helps... Will keep looking for answers - but please,
if you require any more information to try and help me solve this just
ask away!

Other information I can give you is I am using the MVP design pattern
as suggested by the GWT team based off their contacts example. So
while I don't necessarily call
RootLayoutPanel.get().add(myMainLayoutPanel)) directly I do set
RootLayoutPanel.get() as a container and then later add the
"myMainLayoutPanel" to it. Comes to the same thing I suppose. Just
trying to think of anything that may help!

Thanks!

Xandel

On Aug 5, 7:15 pm, Katharina Probst  wrote:
> Maybe it's just me, but it's kind of hard to tell from your description what
> could be wrong.
>
> I do see that you're using RootPanel mixed with LayoutPanel.  Try adding the
> LayoutPanels to the RootLayoutPanel (something like
> RootLayoutPanel.get().add(myMainLayoutPanel)).
>
> Also, I assume you compiled your app for the IE permutation(s)?
>
> kathrin
>
> On Thu, Aug 5, 2010 at 11:43 AM, Xandel  wrote:
> > Hi there,
>
> > Can somebody please assist me - I have spent the last 3 months writing
> > a GWT application and I cannot get it to work in Internet Explorer.
> > It's my first GWT application. It works fine in Firefox and Chrome. In
> > internet explorer it just doesn't load up.
>
> > Here are some details:
>
> > I am using GWT 2.0.3 developed on Ubuntu 9.03 using Eclipse. At first
> > my application was loading from a div tag deep within the DOM's body
> > tag - it was like this because I was making use of html and css to
> > build a "friendly" border around the app. All that would happen was
> > that the html and images would all load - but my app wouldn't show. I
> > have now since moved the application to use the RootPanel.get() so
> > that it loads straight from the body tag - no luck, nothing loads up
> > at all.
>
> > While my app is simple, it contains a lot of panels within each other
> > to build the layout, the main panel being a LayoutPanel. I have tried
> > it in quirks-mode and standards-mode and both don't seem to work.
>
> > Another problem I was having which seems to have gone away I described
> > on this post on StackOverflow:
>
> >http://stackoverflow.com/questions/3033073/gwt-in-ie8-exception-throw...
>
> > Please can somebody help me. I have already posted on this forum and
> > received no help. If anyone has any ideas, or suggestions - I really
> > will be appreciative! I can also provide the link to the site on
> > request.
>
> > Thanks in advance - if anyone actually sees this.
>
> > Xandel
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Please help - GWT application will not load in IE!

2010-08-06 Thread Xandel
Oh yes, sorry, I didn't answer your question about the perutations -
yup compiling all 6 for the browsers, the error is definately in the
IE one. Thanks!

On Aug 5, 7:15 pm, Katharina Probst  wrote:
> Maybe it's just me, but it's kind of hard to tell from your description what
> could be wrong.
>
> I do see that you're using RootPanel mixed with LayoutPanel.  Try adding the
> LayoutPanels to the RootLayoutPanel (something like
> RootLayoutPanel.get().add(myMainLayoutPanel)).
>
> Also, I assume you compiled your app for the IE permutation(s)?
>
> kathrin
>
> On Thu, Aug 5, 2010 at 11:43 AM, Xandel  wrote:
> > Hi there,
>
> > Can somebody please assist me - I have spent the last 3 months writing
> > a GWT application and I cannot get it to work in Internet Explorer.
> > It's my first GWT application. It works fine in Firefox and Chrome. In
> > internet explorer it just doesn't load up.
>
> > Here are some details:
>
> > I am using GWT 2.0.3 developed on Ubuntu 9.03 using Eclipse. At first
> > my application was loading from a div tag deep within the DOM's body
> > tag - it was like this because I was making use of html and css to
> > build a "friendly" border around the app. All that would happen was
> > that the html and images would all load - but my app wouldn't show. I
> > have now since moved the application to use the RootPanel.get() so
> > that it loads straight from the body tag - no luck, nothing loads up
> > at all.
>
> > While my app is simple, it contains a lot of panels within each other
> > to build the layout, the main panel being a LayoutPanel. I have tried
> > it in quirks-mode and standards-mode and both don't seem to work.
>
> > Another problem I was having which seems to have gone away I described
> > on this post on StackOverflow:
>
> >http://stackoverflow.com/questions/3033073/gwt-in-ie8-exception-throw...
>
> > Please can somebody help me. I have already posted on this forum and
> > received no help. If anyone has any ideas, or suggestions - I really
> > will be appreciative! I can also provide the link to the site on
> > request.
>
> > Thanks in advance - if anyone actually sees this.
>
> > Xandel
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Please help - GWT application will not load in IE!

2010-08-06 Thread Xandel
Thank you for your response!

It seems there is a two fold problem - on the one hand I might be
doing something incorrect with the panels as you've described and will
try what you've suggested right now. Thanks for that. But something
which worries me more is that the compiled javascript actually has a
compilation error in IE... I thought the problem had gone away but
alas it hasn't... I described the problem in detail on StackOverflow
here: 
http://stackoverflow.com/questions/3033073/gwt-in-ie8-exception-thrown-and-not-caught.

This problem really worries me because the error comes from the
compiled javascript generated by GWT - and the actual code itself
doesn't look like mine, it seems to be GWT's own generated code.
Everybody keeps saying that they need to know what the exception is,
but I think what they are missing is that there is no exception - its
a compilation error - the actual syntax is incorrect...

So with all that said, I will try the RootLayoutPanel instead, and
keep adding an empty catch block to satisfy IE... lets see if that
works...

Thanks again Kathrin, will post shortly with what I find!

Xandel

On Aug 5, 7:15 pm, Katharina Probst  wrote:
> Maybe it's just me, but it's kind of hard to tell from your description what
> could be wrong.
>
> I do see that you're using RootPanel mixed with LayoutPanel.  Try adding the
> LayoutPanels to the RootLayoutPanel (something like
> RootLayoutPanel.get().add(myMainLayoutPanel)).
>
> Also, I assume you compiled your app for the IE permutation(s)?
>
> kathrin
>
> On Thu, Aug 5, 2010 at 11:43 AM, Xandel  wrote:
> > Hi there,
>
> > Can somebody please assist me - I have spent the last 3 months writing
> > a GWT application and I cannot get it to work in Internet Explorer.
> > It's my first GWT application. It works fine in Firefox and Chrome. In
> > internet explorer it just doesn't load up.
>
> > Here are some details:
>
> > I am using GWT 2.0.3 developed on Ubuntu 9.03 using Eclipse. At first
> > my application was loading from a div tag deep within the DOM's body
> > tag - it was like this because I was making use of html and css to
> > build a "friendly" border around the app. All that would happen was
> > that the html and images would all load - but my app wouldn't show. I
> > have now since moved the application to use the RootPanel.get() so
> > that it loads straight from the body tag - no luck, nothing loads up
> > at all.
>
> > While my app is simple, it contains a lot of panels within each other
> > to build the layout, the main panel being a LayoutPanel. I have tried
> > it in quirks-mode and standards-mode and both don't seem to work.
>
> > Another problem I was having which seems to have gone away I described
> > on this post on StackOverflow:
>
> >http://stackoverflow.com/questions/3033073/gwt-in-ie8-exception-throw...
>
> > Please can somebody help me. I have already posted on this forum and
> > received no help. If anyone has any ideas, or suggestions - I really
> > will be appreciative! I can also provide the link to the site on
> > request.
>
> > Thanks in advance - if anyone actually sees this.
>
> > Xandel
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Please help - GWT application will not load in IE!

2010-08-05 Thread Katharina Probst
Maybe it's just me, but it's kind of hard to tell from your description what
could be wrong.

I do see that you're using RootPanel mixed with LayoutPanel.  Try adding the
LayoutPanels to the RootLayoutPanel (something like
RootLayoutPanel.get().add(myMainLayoutPanel)).

Also, I assume you compiled your app for the IE permutation(s)?

kathrin


On Thu, Aug 5, 2010 at 11:43 AM, Xandel  wrote:

> Hi there,
>
> Can somebody please assist me - I have spent the last 3 months writing
> a GWT application and I cannot get it to work in Internet Explorer.
> It's my first GWT application. It works fine in Firefox and Chrome. In
> internet explorer it just doesn't load up.
>
> Here are some details:
>
> I am using GWT 2.0.3 developed on Ubuntu 9.03 using Eclipse. At first
> my application was loading from a div tag deep within the DOM's body
> tag - it was like this because I was making use of html and css to
> build a "friendly" border around the app. All that would happen was
> that the html and images would all load - but my app wouldn't show. I
> have now since moved the application to use the RootPanel.get() so
> that it loads straight from the body tag - no luck, nothing loads up
> at all.
>
> While my app is simple, it contains a lot of panels within each other
> to build the layout, the main panel being a LayoutPanel. I have tried
> it in quirks-mode and standards-mode and both don't seem to work.
>
> Another problem I was having which seems to have gone away I described
> on this post on StackOverflow:
>
>
> http://stackoverflow.com/questions/3033073/gwt-in-ie8-exception-thrown-and-not-caught
>
> Please can somebody help me. I have already posted on this forum and
> received no help. If anyone has any ideas, or suggestions - I really
> will be appreciative! I can also provide the link to the site on
> request.
>
> Thanks in advance - if anyone actually sees this.
>
> Xandel
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Need Help!!!About the difference between smartgwt and gwt for component "Window"

2010-08-05 Thread lineman78
You need to enable modality in the smartGwt window:

winModal.setIsModal(true);
winModal.setShowModalMask(true);

On Aug 4, 8:41 pm, JIE SUN  wrote:
> Hi guys:
>
> I had difficult to set up a smartgwt window as sam functionality as
> the one in gwt.
> Basically, I just need to click a button, and a panel pops up,
> meanwhile all other components at background will be greyed out.
> However, when I use the component "window" in smartgwt, it looks like
> does not have that functionality and i still can edit the background
> components.
> I have tried just create the window from gwt, it does not work since
> all the background component created from smartgwt, and the window
> created from gwt even pops up, but u cannnot edit it and even click
> it.
>
> Any ideas? or suggestions?
>
> Many thinks 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Please help - GWT application will not load in IE!

2010-08-05 Thread Xandel
Hi there,

Can somebody please assist me - I have spent the last 3 months writing
a GWT application and I cannot get it to work in Internet Explorer.
It's my first GWT application. It works fine in Firefox and Chrome. In
internet explorer it just doesn't load up.

Here are some details:

I am using GWT 2.0.3 developed on Ubuntu 9.03 using Eclipse. At first
my application was loading from a div tag deep within the DOM's body
tag - it was like this because I was making use of html and css to
build a "friendly" border around the app. All that would happen was
that the html and images would all load - but my app wouldn't show. I
have now since moved the application to use the RootPanel.get() so
that it loads straight from the body tag - no luck, nothing loads up
at all.

While my app is simple, it contains a lot of panels within each other
to build the layout, the main panel being a LayoutPanel. I have tried
it in quirks-mode and standards-mode and both don't seem to work.

Another problem I was having which seems to have gone away I described
on this post on StackOverflow:

http://stackoverflow.com/questions/3033073/gwt-in-ie8-exception-thrown-and-not-caught

Please can somebody help me. I have already posted on this forum and
received no help. If anyone has any ideas, or suggestions - I really
will be appreciative! I can also provide the link to the site on
request.

Thanks in advance - if anyone actually sees this.

Xandel

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



Need Help!!!About the difference between smartgwt and gwt for component "Window"

2010-08-05 Thread JIE SUN
Hi guys:

I had difficult to set up a smartgwt window as sam functionality as
the one in gwt.
Basically, I just need to click a button, and a panel pops up,
meanwhile all other components at background will be greyed out.
However, when I use the component "window" in smartgwt, it looks like
does not have that functionality and i still can edit the background
components.
I have tried just create the window from gwt, it does not work since
all the background component created from smartgwt, and the window
created from gwt even pops up, but u cannnot edit it and even click
it.

Any ideas? or suggestions?

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



which permutation which user.agent HTML5 manifest help!!!

2010-08-04 Thread Shawn Brown
How can I know which which permutation (exactly which files) are for
which user.agent?

I assume that information is available if I look for it during compile
time by extending an AbstractLinker, adding it my xxx.gwt.xml config
file.

I need to know because in order to make a cache.manifest for offline
HTML5 storage, I need to know which files go in there.

I can make a manifest now but it has files for my 12 permutations.
Try using that on your Android phone.  While it works, it seems to
take like 5-10 minutes to pull the files from cache.  I'm not exactly
sure here but wouldn't you suspect having all 12 version in the
manifest file is the culprit.  It seems all files for all versions are
downloaded, cached and retrieved.

How then can I make a separate manifest file for each user.agent?  I
can just specify a generic  in my
base page and then in a servlet filter detect user.agent and return an
appropriate manifest.

My problem is that I don't know what files are for which user.agent.

Anyone?

Does anyone know which GWT class is responsible for writing the
xxx.nocache.js file.  Whatever is writing that file has the
information I need but how to get it?

I'll start wading through GWT src but does anyone know?

I can watch Cache event in chrome and I know the manifest is causing
all versions of all user.agents to be downloaded and stored.  Well
that is what I told it to do because I don't know which files are used
by which user agent.

Should I file a bug?  Is there one already?  I GWT just inherently
HTML5 unfriendly?  Shouldn't be.

Shawn

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



Need help on Richtext editor formatting.

2010-08-04 Thread Rajeshwari P.
Hi,

GWT(version  2.0.3) Richtext editor has been used , from where users
enter data and they format it through the formatting toolbar in
Richtext editor.PDF reports are generated (Using Jasper report)
once user enters data in RT editor.

The problem is , few of the formattings (like : Bold,
Italics,Justification, Indentation,HR,create link, remove link) used
are reflecting only in rich text editor , but the same  formatting is
not shown in PDF reports.Only underline is reflecting in PDF report.

I have tried below things, still problem exists.:
1) I have explicitly provided true type fonts (along with Bold and
Italics) as font extensions to Jasper.
2) I have observed that Bold and Italics are saved as  and
 respectively.
  If I change  and  to  and  from database , then
Bold, Italics formatting reflects in PDF reports.


So, would like to know :

1) Is rich text editor formatting compatible with Jasper report
(version 3.7.3)?
2) Where exactly the entered text getting converted to HTML?
3) Is there any file where the meanings of formattings mentioned?
means , where exactly Bold to be considered as  is mentioed?
4) Please suggest how this issue can be fixed.


Thanks&Regards,
Rajeshwari

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



[Help Needed] GwtCreateResource -- how do I get this working for me?

2010-08-03 Thread Xlorep DarkHelm
Ok, here's the example code:

---

public class Settings {

/**
 * The size of the blocks to draw on the client-side, in pixels.
 */
public static final int PIXEL_SIZE = 5;
/**
 * The length of the array to draw on the client-side.
 */
public static final int MAX = 100;
/**
 * The HTML ID for the canvas that is drawn.
 */
public static final String CANVAS_ID = "drawingCanvas";
public static final String APP_ID = "appPanel";
public static final String CLIENTID = "clientId";
public static final String FUNCNAME = "funcName";
public static final String CODE = "code";

public static final int LIST_SIZE = 200;

public int listSize() {
return LIST_SIZE;
}

public int mainSize() {
return canvasSize() + LIST_SIZE;
}

public int canvasSize() {
return PIXEL_SIZE * MAX;
}
}


public interface Resources extends ClientBundle {

@Source("ShowSort.css")
Style style();

GwtCreateResource settings();

public interface Style extends CssResource {

public String customFlowPanel();

public String algobutton();

public String notlive();
}
}










---

The problem I am having, is it is failing to provide access to the
methods in my Settings class, I have three defined, with zero-args. I
am trying to access the canvasSize() method within the above uibinder
XML file, and compilation is failing with the following:

---

   Scanning for additional dependencies: file:/E:/Documents/NetBeans/
ShowSort/src/java/org/darkhelm/showsort/client/display/Display.java
  Computing all possible rebind results for
'org.darkhelm.showsort.client.display.Display.DisplayUiBinder'
 Rebinding
org.darkhelm.showsort.client.display.Display.DisplayUiBinder
Invoking
com.google.gwt.dev.javac.standardgeneratorcont...@1ebd825
   validating {res.settings.canvasSize}
  [ERROR] Could not find no-arg method named
canvasSize in type com.google.gwt.resources.client.GwtCreateResource
   [ERROR] Errors in 'file:/E:/Documents/NetBeans/ShowSort/src/java/
org/darkhelm/showsort/client/display/Display.java'
  [ERROR] Line 49:  Failed to resolve
'org.darkhelm.showsort.client.display.Display.DisplayUiBinder' via
deferred binding
   Scanning for additional dependencies:
generated://51C155C0C4847D2F0E6091D0115F8667/org/darkhelm/showsort/client/org_darkhelm_showsort_client_Resources_default_StaticClientBundleGenerator.java
  [WARN] For the following type(s), generated source was never
committed (did you forget to call commit()?)
 [WARN]
org.darkhelm.showsort.client.display.Display_DisplayUiBinderImpl
   [ERROR] Cannot proceed due to previous errors

---

I'm at a loss, it says there is no "no-arg" method named canvasSize in
the GwtCreateResource type. I must be doing something wrong here.


What I am trying to do, is have the parameters I define in
Settings.java to be able to be accessed through the ClientBundle,
eventually so then I can use them within my own defined CssResource
(the ShowSort.css resource in Resources.java above), through the use
of the value() function in CSS, as defined here:
http://code.google.com/p/google-web-toolkit/wiki/CssResource#Value_function

I want to programattically be able to define/set some of the
parameters used in the CSS code, with the same Settings class I have
being used for my server & client code currently. But for me to be
able to make this work, I need to be able to have the Settings values
be available in the ClientBundle that contains the CssResource, from
my understanding. This doesn't seem to be working... I thought
GwtCreateResource<> was the correct thing to use, but it is failing.
Please help :)

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



Re: Need help on generating session id

2010-08-02 Thread eluminous chaitu
Hello Mani,

when Firefox generates a session id for one process, it is shared within all
the instances of Firefox, as all the instances of Firefox is a single
process and not different instances.
All the instances of Firefox share a common process area which causes to
retain a session id for all instances within that process area. This is same
for IE too.

Thanks & Regards
eluminous Chaitu




On Sat, Jul 31, 2010 at 5:22 AM, Mani  wrote:

> Hi, when i try to get session id by using following piece of code
> every time i am getting same session id if i try from same browser
> (with two instance browsers) like Firefox or IE.
>
> getThreadLocalRequest().getSession().getId()
>
> Can any one tell me why it is giving same session id.
>
> Thanks
> Mani
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Website for 
Mobiles|
Organic
SEO 

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



Re: A little help

2010-08-01 Thread Diego Venuzka
Thanks for all the anwsers, but i'm still "slow" on the program. Anyone have
a example, a project that can be used for consulting for my work ? I'm
getting worried about it :(
thanks!

2010/7/28 RPB 

> Just start with the google tutorials and go from there:
> http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html
>
> If you can write Java, you'll be surprised how far you can go!
>
> -Rob
>
> Diego Venuzka wrote:
> > Hello guys!
> > I'm going to do a work for my course, and i will use GWT+Ajax on Eclipse
> > Helios. I never used GWT, and i need build a system to control a machine
> > shop. My question is, somebody have a template, or guide to use GWT/Ajax
> on
> > Eclipse? I saw a site that use GWT and Ajax:
> > http://www.geoleite.com.br/site/index.html (i like so much this template
> :D)
> > If anybody can help me, i really thank :D
> >
> > Thank all!
> > --
> > Diego Venuzka
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Diego Venuzka

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



Re: Need help on generating session id

2010-08-01 Thread Sebastian Rothbucher
Hi,
I think you have to remember the fact that firefox (or as far as I
know IE as well) are always just ONE instance). So if you have two
Firefox windows, they belong to the same process (just one entry in
ps / the Task Manager). As Firefox has one session per process, all
windows will always use the same session ID. There is a way to open
two firefox processes (Selenium for instance does that), but I'd have
to do more research on that myself.

If you truly want two session IDs, you could open one Firefox and one
Safari (or one Firefox and one IE, etc.) but that's surely not what
you're aiming for, right? One possibility could be to generate a
suffix on the client in the GWT entry point class, store it statically
to a well-known place, and pass it with every service request. then
you could replace
getThreadLocalRequest().getSession().getAttribute("someting") with
((Map)getThreadLocalRequest().getSession().getAttribute(suffix)).get("something")
and thus have different values for different windows (assuming you
open the app in two Firefox windows for instance).

Hope this helps - best Regards
   Sebastian Rothbucher

On 1 Aug., 03:24, mP  wrote:
> Hi Mani
>
> You are getting the same ID for the same browser because you are still
> in the same session. Start up a different browser and it will get a
> different session and thus id.
>
> hth

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



Re: Need help on generating session id

2010-07-31 Thread mP
Hi Mani

You are getting the same ID for the same browser because you are still
in the same session. Start up a different browser and it will get a
different session and thus id.

hth

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



Need help on generating session id

2010-07-31 Thread Mani
Hi, when i try to get session id by using following piece of code
every time i am getting same session id if i try from same browser
(with two instance browsers) like Firefox or IE.

getThreadLocalRequest().getSession().getId()

Can any one tell me why it is giving same session id.

Thanks
Mani

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



Re: A little help

2010-07-28 Thread RPB
Just start with the google tutorials and go from there:
http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html

If you can write Java, you'll be surprised how far you can go!

-Rob

Diego Venuzka wrote:
> Hello guys!
> I'm going to do a work for my course, and i will use GWT+Ajax on Eclipse
> Helios. I never used GWT, and i need build a system to control a machine
> shop. My question is, somebody have a template, or guide to use GWT/Ajax on
> Eclipse? I saw a site that use GWT and Ajax:
> http://www.geoleite.com.br/site/index.html (i like so much this template :D)
> If anybody can help me, i really thank :D
>
> Thank all!
> --
> Diego Venuzka

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



Re: A little help

2010-07-28 Thread Rob Coops
Hi Diego,

I think the template you like comes form the book:

GWT in Action
Easy Ajax with the Google Web Toolkit
Robert Hanson and Adam Tacy
ISBN: 1-933988-23-1


At least a large part of the interface seems to work very similar to what is
build as an example app in that book. The book by now is a little dated and
I would advise you to wait for the new edition of the book which should also
include things like the declarative UI and other recent additions to the
toolkit.

Other then that if you are on a course to learn how to write GWT application
should you not practice a little your self :-) Asking other will not help
you much in understanding why you are doing certain parts and why you would
not do things in a slightly different way.

Regards,

Rob

On Tue, Jul 27, 2010 at 11:57 PM, Diego Venuzka  wrote:

> Hello guys!
> I'm going to do a work for my course, and i will use GWT+Ajax on Eclipse
> Helios. I never used GWT, and i need build a system to control a machine
> shop. My question is, somebody have a template, or guide to use GWT/Ajax on
> Eclipse? I saw a site that use GWT and Ajax:
> http://www.geoleite.com.br/site/index.html (i like so much this template
> :D)
> If anybody can help me, i really thank :D
>
> Thank all!
> --
> Diego Venuzka
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: A little help

2010-07-28 Thread Christian Goudreau
I don't really understand your question since Ajax is part of Gwt and that
Gwt handle all the asynchronous work for you as soon as you use
RequestBuilder or RPC.

Every application build on top of GWT are Ajax application. And Btw, it's
awesome that you have a course where you have to use Gwt ! I'm studying at
Laval university and I don't think I'll ever study something like this ! LOL

BTW, you can have a look at our great framework to help you grasp the full
potential of GWT and use the best practice that are loud to use :
www.gwtplatform.com

Cheers,

On Tue, Jul 27, 2010 at 5:57 PM, Diego Venuzka  wrote:

> Hello guys!
> I'm going to do a work for my course, and i will use GWT+Ajax on Eclipse
> Helios. I never used GWT, and i need build a system to control a machine
> shop. My question is, somebody have a template, or guide to use GWT/Ajax on
> Eclipse? I saw a site that use GWT and Ajax:
> http://www.geoleite.com.br/site/index.html (i like so much this template
> :D)
> If anybody can help me, i really thank :D
>
> Thank all!
> --
> Diego Venuzka
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Christian Goudreau

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



A little help

2010-07-28 Thread Diego Venuzka
Hello guys!
I'm going to do a work for my course, and i will use GWT+Ajax on Eclipse
Helios. I never used GWT, and i need build a system to control a machine
shop. My question is, somebody have a template, or guide to use GWT/Ajax on
Eclipse? I saw a site that use GWT and Ajax:
http://www.geoleite.com.br/site/index.html (i like so much this template :D)
If anybody can help me, i really thank :D

Thank all!
-- 
Diego Venuzka

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



Re: Needing help, building a Login

2010-07-23 Thread AlexG
Hi Ladislav,

thanks for the link, looks good.

Greets Alex


On 22 Jul., 10:44, Ladislav Gazo  wrote:
> Hi Alex,
>
> maybe you would be interested in integrating security with login on
> the client and server side. If so you can check acris-security module
> at -http://acris.googlecode.com/
>
> BR,
> Laco
>
> On 21. Júl, 16:41 h., AlexG 
> wrote:
>
> > Hi @ all,
>
> > I want to build a Suer-Management System, where Users can Login und
> > persist personal Data.
> > I found this article below, as a little how-to-guide.
>
> >http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
>
> > What I want, is to save a session id on the client, recieved from the
> > server when logging in. Then for
> > future RPC´s I want to automatically send the session-Id whit it, to
> > identify the users.
> > In the tutorial they say, send the session-Id within the payload of
> > future RPC.
>
> > My question is, how can I do this? How can I modify the payload, to
> > send the session-Id with the RPC?
> > The following question will be, how can I read this Id from the
> > payload on the server?
>
> > It would be nice if someone can help me.
>
> > Greets
> > Alex
>
>

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



Re: problem accessing one composite from another - Urgent help needed if possible

2010-07-23 Thread dlynch
Ok will do,

Thanks for the help

Kind Regards
David

On Jul 22, 6:44 pm, cokol  wrote:
> hi.from architectonical perspective,the response IS A  part of your
> wrapping composite therefore ur maininterface should also manage
> it.just put the response widget inside
>
> On Jul 22, 6:20 pm, dlynch  wrote:
>
>
>
> > Hi Everybody,
>
> > I am learning GWT just and am really stuck on a problem.
>
> > I have created a new composite which contains several panels. In some
> > of the panels I have other seperate composites of which one is a
> > search which contains a TextBox and a Button.
>
> > So basically i have a mainInterface.java which is a composite
> > containing my panels for layout. I also have a search.java which is a
> > composite containing just a TextBox and a button which calls my server
> > and gets a response. I want to display the response inside one of the
> > panels in my mainInterface but I cannot see how I can do that as it is
> > a sepperate class.
>
> > Am I thinking about this all wrong? Should my mainInterface not call a
> > sepperate Search composite but rather just have the button and textbox
> > directly there?
>
> > Kind Regards
> > David

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



Re: problem accessing one composite from another - Urgent help needed if possible

2010-07-22 Thread cokol
hi.from architectonical perspective,the response IS A  part of your
wrapping composite therefore ur maininterface should also manage
it.just put the response widget inside

On Jul 22, 6:20 pm, dlynch  wrote:
> Hi Everybody,
>
> I am learning GWT just and am really stuck on a problem.
>
> I have created a new composite which contains several panels. In some
> of the panels I have other seperate composites of which one is a
> search which contains a TextBox and a Button.
>
> So basically i have a mainInterface.java which is a composite
> containing my panels for layout. I also have a search.java which is a
> composite containing just a TextBox and a button which calls my server
> and gets a response. I want to display the response inside one of the
> panels in my mainInterface but I cannot see how I can do that as it is
> a sepperate class.
>
> Am I thinking about this all wrong? Should my mainInterface not call a
> sepperate Search composite but rather just have the button and textbox
> directly there?
>
> Kind Regards
> David

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



problem accessing one composite from another - Urgent help needed if possible

2010-07-22 Thread dlynch
Hi Everybody,

I am learning GWT just and am really stuck on a problem.

I have created a new composite which contains several panels. In some
of the panels I have other seperate composites of which one is a
search which contains a TextBox and a Button.

So basically i have a mainInterface.java which is a composite
containing my panels for layout. I also have a search.java which is a
composite containing just a TextBox and a button which calls my server
and gets a response. I want to display the response inside one of the
panels in my mainInterface but I cannot see how I can do that as it is
a sepperate class.

Am I thinking about this all wrong? Should my mainInterface not call a
sepperate Search composite but rather just have the button and textbox
directly there?

Kind Regards
David

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



Re: Needing help, building a Login

2010-07-22 Thread Ladislav Gazo
Hi Alex,

maybe you would be interested in integrating security with login on
the client and server side. If so you can check acris-security module
at - http://acris.googlecode.com/

BR,
Laco

On 21. Júl, 16:41 h., AlexG 
wrote:
> Hi @ all,
>
> I want to build a Suer-Management System, where Users can Login und
> persist personal Data.
> I found this article below, as a little how-to-guide.
>
> http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
>
> What I want, is to save a session id on the client, recieved from the
> server when logging in. Then for
> future RPC´s I want to automatically send the session-Id whit it, to
> identify the users.
> In the tutorial they say, send the session-Id within the payload of
> future RPC.
>
> My question is, how can I do this? How can I modify the payload, to
> send the session-Id with the RPC?
> The following question will be, how can I read this Id from the
> payload on the server?
>
> It would be nice if someone can help me.
>
> Greets
> Alex

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



Re: Needing help, building a Login

2010-07-22 Thread AlexG
Thank you cokol,

I think I got, what I needed.
Thanks for your help!

Greets Alex


On 21 Jul., 22:11, cokol  wrote:
> hi, you dont need to care for session ids, unless cookies are
> disabled, since almost every servlet container (tomcat, appengine,etc)
> creates a new sessionid for every request it does not recognize and
> this sessionid is sent back with a cookie. from now on, the browser
> automatically sends a cookie for EVERY request from the page,
> including RPC calls - so you just save whatever you want on the
> serverside via request.getSession().setAttribute("USER",user); it will
> work out
>
> if you want to support users with cookies disabled, this would be a
> bit tricky and needs some conventions
>
> On 21 Jul., 16:41, AlexG  wrote:
>
> > Hi @ all,
>
> > I want to build a Suer-Management System, where Users can Login und
> > persist personal Data.
> > I found this article below, as a little how-to-guide.
>
> >http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
>
> > What I want, is to save a session id on the client, recieved from the
> > server when logging in. Then for
> > future RPC´s I want to automatically send the session-Id whit it, to
> > identify the users.
> > In the tutorial they say, send the session-Id within the payload of
> > future RPC.
>
> > My question is, how can I do this? How can I modify the payload, to
> > send the session-Id with the RPC?
> > The following question will be, how can I read this Id from the
> > payload on the server?
>
> > It would be nice if someone can help me.
>
> > Greets
> > Alex
>
>

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



Re: Needing help, building a Login

2010-07-21 Thread cokol
hi, you dont need to care for session ids, unless cookies are
disabled, since almost every servlet container (tomcat, appengine,etc)
creates a new sessionid for every request it does not recognize and
this sessionid is sent back with a cookie. from now on, the browser
automatically sends a cookie for EVERY request from the page,
including RPC calls - so you just save whatever you want on the
serverside via request.getSession().setAttribute("USER",user); it will
work out

if you want to support users with cookies disabled, this would be a
bit tricky and needs some conventions

On 21 Jul., 16:41, AlexG  wrote:
> Hi @ all,
>
> I want to build a Suer-Management System, where Users can Login und
> persist personal Data.
> I found this article below, as a little how-to-guide.
>
> http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
>
> What I want, is to save a session id on the client, recieved from the
> server when logging in. Then for
> future RPC´s I want to automatically send the session-Id whit it, to
> identify the users.
> In the tutorial they say, send the session-Id within the payload of
> future RPC.
>
> My question is, how can I do this? How can I modify the payload, to
> send the session-Id with the RPC?
> The following question will be, how can I read this Id from the
> payload on the server?
>
> It would be nice if someone can help me.
>
> Greets
> Alex

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



Needing help, building a Login

2010-07-21 Thread AlexG
Hi @ all,

I want to build a Suer-Management System, where Users can Login und
persist personal Data.
I found this article below, as a little how-to-guide.

http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ

What I want, is to save a session id on the client, recieved from the
server when logging in. Then for
future RPC´s I want to automatically send the session-Id whit it, to
identify the users.
In the tutorial they say, send the session-Id within the payload of
future RPC.

My question is, how can I do this? How can I modify the payload, to
send the session-Id with the RPC?
The following question will be, how can I read this Id from the
payload on the server?

It would be nice if someone can help me.

Greets
Alex

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



Re: Used to be a C++ developer, want to move the front end client to GWT, need a step by step example/tutorial for GWT and mysql database. Appreciate for your help!

2010-07-20 Thread Paul Robinson
GWT is a browser client-side technology and cannot access a mysql
database directly. Your GWT code can be given data by your server, and
it's your server that connects to mysql. GWT is server-technology
agnostic, though it includes some tools to be used with java based servers.

So, how you do your mysql access depends on what technology you want to
use for your server. If you use java, then you might like to look at
hibernate (and then possibly Gilead). Alternatively, quite a few people
here use php.

Paul

Allen wrote:
> Hi:
> I am experienced C++ developer and want to migrate UI client
> (using for app configuration and control) to GWT. Currently, finished
> the stock price tutorial. Need a similar detail oriented tutorial for
> working with mysql DB. Please help.
>
> Thanks lot,
>
>
> Allen
>
>   

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



Used to be a C++ developer, want to move the front end client to GWT, need a step by step example/tutorial for GWT and mysql database. Appreciate for your help!

2010-07-20 Thread Allen
Hi:
I am experienced C++ developer and want to migrate UI client
(using for app configuration and control) to GWT. Currently, finished
the stock price tutorial. Need a similar detail oriented tutorial for
working with mysql DB. Please help.

Thanks lot,


Allen

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



Re: Help with openid spring security and GWT

2010-07-18 Thread giannisdag
Why the access exception is not an unexpectedFailure of the
remoteServiceServlet;

this is my log
SEVERE: [1279499963707000] javax.servlet.ServletContext log:
dispatcher: Exception while executing
com.example.test.shared.model.command.GetUsers: Access is denied
org.springframework.security.access.AccessDeniedException: Access is
denied
at
org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:
71)
at
org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:
203)
at
org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:
64)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:
172)
at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:
202)
at $Proxy10.execute(Unknown Source)

this is the code of the remoteserviceservlet


@Override
protected void doUnexpectedFailure(Throwable e) {
if (e.getCause() instanceof AccessDeniedException) {
AccessDeniedException ade = (AccessDeniedException) 
e.getCause();
throw ade;
} else {
super.doUnexpectedFailure(e);
}
}

I would appreciate any help

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



Re: Help with openid spring security and GWT

2010-07-17 Thread giannisdag
I see you handle this in GwtRPCController

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



Help with layout

2010-07-16 Thread julien
Hi all,
I'm new to gwt layouts and I don't figure out how to realize the
following layout:

The layout panel is composed of a top toolbar and a tabpanel

The toolbar height is not hardcoded (it is sized by its content)
The tabpanel (under the toolbar) take all the free space left by the
top toolbar.

Something like that, where the tabpanel appears exactly after the
toolbar :
http://dl.google.com/gwt/DTD/xhtml.ent";>



 

Test

 

  
Tab
  


  




  

Thanks for your help !
Regards,
Julien

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



GWT-Swing Help

2010-07-16 Thread nirav patani
Hi,
I am coding in swing and would like to know if swing supports
feature of flextable..i have to dynamically choose compnents like
JtextArea, jTextBox etc and set them to a jDialogBox. Somthing like a
flexTable in GWT would be helpful

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



Re: Help with openid spring security and GWT

2010-07-16 Thread giannisdag
Matias, thank you very much, your guides are very helpful, I am
working on it for the moment. I followed your paradigm changing at
first my code of using spring security, because I followed See Wah
Cheng's approach. The first problem I had is that, after implementing
your configuration I was getting an AccessDeniedException, even though
I had to get an AuthenticationException. Because of this,
http401UnauthorizedEntryPoint wasn't called. So I added in application
context the  directive, in order to have an AuthenticationException. So it
worked. But I am wondering how you get an AuthenticationException at
the first place. The only difference I see, is that I am not using


spring
org.springframework.web.servlet.DispatcherServlet
1

Spring MVC DispatcherServlet.

On 15 Ιούλ, 00:26, Mattias  wrote:
> Check 
> outhttp://technowobble.blogspot.com/2010/07/gwt-and-open-id-using-spring
>
> On Jul 14, 5:04 pm, giannisdag  wrote:
>
> > Hi I am using spring security, and I would like to enable andopenid
> > login and MVP. I am using spring security at the method level access,
> > not at the page level. Simply, when the user requests an action that
> > it is not allowed, he is redirected to the login view, where he gets
> > two form logins, one with site checking which is done, and one with
> >openid. Spring security is used to catch the method access denial. As
> > I read, generallyopenidworks like this:
> > the user is redirected to anopenidprovider, logins, and then is
> > redirected back to the url page. This is done automatically with
> > spring security, but with GWT it needs a new approach, implementing
> > both spring security and GWT. Does anybody has a demo code?
> > Also I found an interesting solution GWT +Openidwithout spring
> > security.
> >  http://armelnene.blogspot.com/2009/12/dummies-guide-to-gwt-and-openid...
> > What do you think?

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



Re: Help with openid spring security and GWT

2010-07-14 Thread Mattias
Check out 
http://technowobble.blogspot.com/2010/07/gwt-and-open-id-using-spring-security.html.


On Jul 14, 5:04 pm, giannisdag  wrote:
> Hi I am using spring security, and I would like to enable and openid
> login and MVP. I am using spring security at the method level access,
> not at the page level. Simply, when the user requests an action that
> it is not allowed, he is redirected to the login view, where he gets
> two form logins, one with site checking which is done, and one with
> openid. Spring security is used to catch the method access denial. As
> I read, generally openid works like this:
> the user is redirected to an openid provider, logins, and then is
> redirected back to the url page. This is done automatically with
> spring security, but with GWT it needs a new approach, implementing
> both spring security and GWT. Does anybody has a demo code?
> Also I found an interesting solution GWT + Openid without spring
> security.
>  http://armelnene.blogspot.com/2009/12/dummies-guide-to-gwt-and-openid...
> What do you think?

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



Help with openid spring security and GWT

2010-07-14 Thread giannisdag
Hi I am using spring security, and I would like to enable and openid
login and MVP. I am using spring security at the method level access,
not at the page level. Simply, when the user requests an action that
it is not allowed, he is redirected to the login view, where he gets
two form logins, one with site checking which is done, and one with
openid. Spring security is used to catch the method access denial. As
I read, generally openid works like this:
the user is redirected to an openid provider, logins, and then is
redirected back to the url page. This is done automatically with
spring security, but with GWT it needs a new approach, implementing
both spring security and GWT. Does anybody has a demo code?
Also I found an interesting solution GWT + Openid without spring
security.
 http://armelnene.blogspot.com/2009/12/dummies-guide-to-gwt-and-openid-with.html
What do you think?

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



<    4   5   6   7   8   9   10   11   12   13   >