Re: Portlet Layout - Similar to iGoogle

2008-12-02 Thread StrongSteve

Thanks a lot! Exactly what I was searching for.
Will give it a try!

Greetings
Stefan

On 2 Dez., 15:53, rakesh wagh <[EMAIL PROTECTED]> wrote:
> Check demo #3, #5 and #7 of gwt-dnd demo.
> demo 
> link:http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/Drag...
>
> You will require the "draggable and resizable Iframe" from demo7. And
> place those widgets in a layout similar to that of demo 5.
>
> Here is the project link:http://code.google.com/p/gwt-dnd/
>
> Hope that helps.
> Rakesh Wagh
>
> On Nov 28, 4:58 am,StrongSteve<[EMAIL PROTECTED]> wrote:
>
> > Hi Everybody!
>
> > I have a very basic question and you hope you can provide me an
> > answer! ;)
>
> > So basically I have an existing web-application consisting of several
> > JSP/HTML pages that provide different "simple" tasks.
>
> > What I want to do now, is change the user interface in a way, that it
> > looks like the main screen of iGoogle.
>
> > So that I have a wide area with different widgets, that can be dragged
> > around, hidden, ...
> > Within each widget I want to display one of my existing Java Server
> > Pages.
>
> > Is this possible with GWT? Or do I need additional libraries to
> > support this behaviour.
>
> > Can you please point me out the major steps that would be necessary to
> > reach this goal?
>
> > Thanks in Advance for both your time and your knowledge!
>
> > Greetings
> > Stefan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Easiest way to open a new window with some text in it?

2008-12-02 Thread alex.d

In good old javascript time i've done this like:
var popup = $wnd.open('scripts/display.php', '_blank', null);
popup.getElementById('idShowText')... // Hier get a div or smth. and
show/insert your text


On 2 Dez., 19:48, darkflame <[EMAIL PROTECTED]> wrote:
> nope..apperently I cant use a form panel to post data to a new
> window :-/
>
> I'm happy to use any combination of php and gwt, but I cant seem to
> find a neat way to get a string (of decent length) into a new window.
>
> I could save to cookie or something, but that seems a very messy
> method to use :-/
>
> On Nov 21, 8:10 pm, darkflame <[EMAIL PROTECTED]> wrote:
>
> > Just thinking outloud here...it could be done with a form right? Just
> > hidden somewhere.
> > dosnt seem very neat though.
>
> > On Nov 21, 1:50 pm, darkflame <[EMAIL PROTECTED]> wrote:
>
> > > Thats still using the string by the URL though/"get method", which
> > > limits the charecfters to about  100  :-/
>
> > > Is it possible to do the same thing but not have the data in the url,
> > > so it could be picked up by the php'spostvariable instead?
> > > (which you can do with RequestBuilder by using  new RequestBuilder
> > > (RequestBuilder.POST) but that dosnt open a newwindow.)
>
> > > On Nov 21, 8:13 am, "Danny Schimke" <[EMAIL PROTECTED]> wrote:
>
> > > > You could try to use JSNI to open a newwindowas you've already done:
>
> > > > It should look something like this:
>
> > > > native JavaScriptObject openWindow(String param) /*-{
> > > >         $wnd.open('scripts/display.php' + '?text=' + 
> > > > messageslist.getText(),
> > > > '_blank', null);
> > > >         return true;}-*/;
>
> > > > I hpe it's what you searched for...
>
> > > > Danny
>
> > > > 2008/11/20 darkflame <[EMAIL PROTECTED]>
>
> > > > > Any ideas?
> > > > > The text is dynamic, so I thought at first I'd just use;
>
> > > > >Window.open("scripts/display.php"+"?text="+messageslist.getText(),
> > > > > "_blank", null);
>
> > > > > Where display.php simply gets the text variable in the url and echo's
> > > > > it back.
>
> > > > > However, this has a very short limit on the text that can be
> > > > > displayed.
> > > > > Is it possible to do a simerla function with RequestBuilder? SoPost
> > > > > can be used correctly?
> > > > > I have no idea if its possible to use RequestBuilder to open a php in
> > > > > a newwindow, so if it isn't I would welcome workarounds if its not.
>
> > > > > Cheers,
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: viewport resize listener

2008-12-02 Thread alex.d

Basically you have to listen to browser "change size" events (not sure
how reliable this is in all supported browsers) and forward new size
to your widgets. Ext GWT (and probably GWT Ext) for example, already
has ViewPort implementation.

On 3 Dez., 05:11, Litty Preeth <[EMAIL PROTECTED]> wrote:
> Hi friends,
>
> Anybody has any ideas on this?
>
> Thanks and Regards,
> Litty Preeth
>
> On Dec 2, 4:42 pm, "Litty Preeth" <[EMAIL PROTECTED]> wrote:
>
> > Hi All,
>
> > Anybody know how to implement a viewport resize listener? Basically I have a
> > glass panel (light box effect). I want to notify this glass panel whenever
> > my RootPanel size gets changed so that I can resize my glass panel to fillup
> > the area.
>
> > Regards,
> > Litty Preeth
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Change Browser Address Dynamically

2008-12-02 Thread alex.d

Not really. With ajax your URL typically doesn't change. But with
HistoryListener you can implement smth. like:

http://www.mysite.com/mycompany/myproj.html#HOME
http://www.mysite.com/mycompany/myproj.html#ABOUTUS

For more info - read help on HistoryListener.

On 3 Dez., 07:35, Ryan <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> Is there a provision to change the browser address dynamically.
> For e.g if my current browser address ishttp://www.mysite.com/home
> When i click a hyperlink lets say "about us"
> then the browser address should change tohttp://www.mysite.com/aboutus
>
> regards,
> cherian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: XML to UI Forms

2008-12-02 Thread Startworld67

Thanks for your note, Charlie.

Is there something I can draw on the fly. I was looking for some
generic tool which can build a UI from the xml which can be provided
dynamically.

Eg: a drag and drop node can be added automatically from a remote xml.
This xml will have definition of properties (UI) for user's input when
the node is dragged.

Is it available in any tools (not necessarily gwt)?

Thanks.

On Nov 29, 5:53 pm, Charlie Collins <[EMAIL PROTECTED]> wrote:
> I don't think this is exactly what you are asking, but the GWT
> "declarative UI" track is aiming to make UI building a bit easier by
> making it, well, declarative. You might find some more ideas, or
> clarification, at least regardingXMLto UI widgets, in those
> threads.
>
> http://code.google.com/p/google-web-toolkit-incubator/wiki/DeclarativeUihttp://code.google.com/p/google-web-toolkit-incubator/wiki/UiBinder
>
> On Nov 28, 2:15 pm, Startworld67 <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > Maybe, I am too lazy but is there a way for gwt to convert whats in
> >XML(formatted according to gwt requirements) which can parse and
> > construct the form and allow the users to edit and once done, saves to
> > thexmlagain for future processing.
>
> > I am trying to avoid learning GWT specific UI elements and gain
> > control from some wrappers which load fromxmland save toxml.
>
> > Something close would 
> > behttp://extjs.com/examples/grid/editable.htmlhttp://extjs.com/examples...
>
> > but they should be read fromxmland built upon.
>
> > Sure, I can write the wrappers but I was checking if someone has done
> > this before. A UI-xmlframework?
>
> > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



WHY USE a NON-JAVA BACKEND if client side is in GWT(JAVA)

2008-12-02 Thread programmerajay

Hi All


I know the answer of the question is based on our requirements and
depends on the project that you are doing.

but why do u have to a non-java backend at all for say medium sized
application if the server side is not something like a google app
engine which provides special services in addition to just a hosting
enviroment which is accesible through a non-java language(python).

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



Change Browser Address Dynamically

2008-12-02 Thread Ryan

Hi everybody,

Is there a provision to change the browser address dynamically.
For e.g if my current browser address is http://www.mysite.com/home
When i click a hyperlink lets say "about us"
then the browser address should change to http://www.mysite.com/aboutus

regards,
cherian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Implement a Calender to the Navigation on the left side

2008-12-02 Thread mon3y

http://psthapar.googlepages.com/simpledatepicker

On Dec 2, 7:10 pm, King <[EMAIL PROTECTED]> wrote:
> hello everybody,
>
> I start to programming with GWT Designer yesterday... My Question is,
> if anybody knows how i can implement a small calender to the left
> panel! I didnt do it before in java or something else... Is there a
> easy way ???
>
> Thank you very much!!!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem updating image URL

2008-12-02 Thread mon3y

Might it have something to do with the word "final" when declaring
image?

On Dec 2, 9:23 pm, dhoffer <[EMAIL PROTECTED]> wrote:
> I have a custom button that has a couple of images as well as text.
> My code is like this:
>
> public class SplitButton extends Button
> {
>     private IGWTImageBundle gwtImageBundle;
>     private final DockPanel dockPanel = new DockPanel();
>     private MenuBar menuBar;
>     private final Image image = new Image();
>     private final Label textLabel = new Label();
>     private PopupPanel popupPanel;
>
>     public SplitButton(IGWTImageBundle gwtImageBundle)
>     {
>         this(null, null, gwtImageBundle);
>     }
>
>     public SplitButton(String imageURL, String text, IGWTImageBundle
> gwtImageBundle)
>     {
>         super();
>
>         this.gwtImageBundle = gwtImageBundle;
>
>         if (imageURL != null)
>         {
>             setImage(imageURL);
>         }
>         if (text != null)
>         {
>             setText(text);
>         }
>
>         initDockPanel();
>     }
>
>     private void initDockPanel()
>     {
>         dockPanel.add(image, DockPanel.WEST);
>         dockPanel.add(textLabel, DockPanel.CENTER);
>         dockPanel.add(gwtImageBundle.smallDownArrowIcon().createImage
> (), DockPanel.EAST);
>
>         setHTML();
>     }
>
>     @Override
>     public void setText(String text)
>     {
>         textLabel.setText(text);
>
>         setHTML();
>     }
>
>     public void setImage(String imageURL)
>     {
>         image.setUrl(imageURL);
>
>         setHTML();
>     }
>
>     private void setHTML()
>     {
>         SimplePanel sp = new SimplePanel();
>         sp.add(dockPanel);
>         String test = DOM.getInnerHTML(sp.getElement());
>         this.setHTML(test);
>     }
>
> }
>
> The problem is calls to setImage(String imageURL) do not get updated
> in the UI.  That is, although the URL set is valid the image is not
> shown in the button.  The static image is shown in the UI however.
>
> What am I doing wrong to set the image?
>
> -Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Client did not send nnn bytes as expected

2008-12-02 Thread Amit Kasher

Hi and thanks again for your responses.

A few more subtle observations and insights:
1. It's probably not the server. There are several reasons that lead
us to believe that the server is not the cause of this issue: (a) We
switched hosting providers. (b) These providers reside in completely
different geographical locations - countries. (c) We have always been
using JBoss on CentOS, but this issue occurs both when we work with
Apache as a front end using mod_jk to tomcat, as well as when
eliminating this tier and having clients go directly to tomcat - using
it as an HTTP server. (d) tcpdump sniffer explicitly shows that the
server receives ALWAYS EXACTLY 80% of the request payload. Unless this
is something even lower level in that machine (the VPS software used -
virtuozzo, the network card/driver, etc.), these observations pretty
much provides an alibi for the server... I think we'd better focus on
other places.
2. There are indications that this is not inside the browser as well:
(a) It happens in several GWT versions. (b) It happens "to" all
browsers, which provides a strong clue, since this code is completely
different from browser to browser - GWT uses MsXMLHTTP activeX in IE,
while using completely other objects in other browsers. Since this is
the underlying mechanism used to perform RPC, it seems that if it
happens for more than one of them, low chances that this is the cause.
Still it seems that this MUST be the GWT/client code, since these
clients, to whom this issue occurs much more often, don't have
problems in any other websites (we managed to talk to several of
them).
One thing that comes to mind is perhaps the GWT serialization code? I
don't know...

Therefore, currently, aside from the possibility that there's a bug in
the GWT serialization code, there's also the possibility that it's
something in the network, even though these clients are from various
ISPs, and geographical locations. Yes, I notice the dead end as
well...

These observations somewhat reduce the anticipated benefit (let alone
the feasibility...) of several of your (MUCH APPRECIATED, THOUGH)
suggestions:
1. ping from the lab
2. perl HTTP server

Despite that, we ARE happy about any suggestion and willing to put the
required effort, so we'll try to make progress in these direction.

Our situation now is that we assume that the data arrives corrupted to
the server, and we should see how this data comes out of the client.
Therefore we will also try to install a sniffer in a client computer
in which this occurs (though we have been trying to do that for quite
a long time now).

On Dec 2, 10:29 pm, jchimene <[EMAIL PROTECTED]> wrote:
> Hi Amit,
>
> One other thing:
>
> I'm getting the impression that you also have a custom server. If it's
> an identical configuration across all server instances, than you also
> have to prove that it's not the server. Again, I'd code a simple HTTP
> server in Perl (because there's no problem so intractable that it
> can't be made worse with a Perl application) and use it to test
> against your application.
>
> Cheers,
> jec
>
> On Dec 2, 9:11 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > Thanks for your reply. Answers are inline.
>
> > On Dec 2, 5:50 pm, jchimene <[EMAIL PROTECTED]> wrote:> Hi,
>
> > > A few questions:
>
> > > o Are all packets sent to the server the same size?
>
> > No, they are not.
>
> > > o What is that size?
>
> > This depends on the service call - somewhere between 150 and 2000
> > bytes.
> > I will mention again that by using a sniffer (tcpdump), it seems that
> > EVERY time this issue occurs, the actual packets the server receives
> > are ALWAYS EXACTLY 80% of what it should have received. This, again,
> > was very encouraging to find as a clue, but unfortunately led me
> > nowhere.
>
> > > o Have you checked for other types of congestion?
>
> > Congestion? Unfortunately, I don't have any control over the client's
> > environment since this is an internet application and I can't
> > reproduce it.
>
> > > o Is this entirely TCP/IP? Have you checked maxrss?
>
> > maxrss? I'm not sure I understood the relevance... TCP/IP is obviously
> > used, it is the underlying protocol of HTTP...
>
> > > o Have you enabled logging on intermediate nodes to see if there are
> > > congestion issues?
>
> > I wish I could... I don't have any control over any node before the
> > server. It is a CentOS VPS hosted internet application. I will state
> > that this occurred in several hosting providers, in several countries
> > and geographical locations.
>
> > > o Is this related to a specific time of day (although it probably
> > > happens between 10:00 and 14:00...)
>
> > I didn't find any correlation between the time of day and the
> > occurrence of this. Obviously, this is normalized to the usage load,
> > as you implied.
>
> > > o Do you have a world-wide net? If so, does the problem travel across
> > > time zones?
>
> > My users are not from around the world, but as I stated - thi

servlet mapping, captcha and image...

2008-12-02 Thread [EMAIL PROTECTED]


I have a kaptcha which i have to define in my web.xml as


   Kaptcha
   /kaptcha.jpg



In hosted mode where the module is inherited ( no explicit web.xml
definition ), code like

Image img = new Image("/kaptcha.jpg");

works fine. But when i deploy my app, the code will not work, but code
below works...

Image img = new Image("kaptcha.jpg");

I dont want to change code just for the app server build alone.  Can
anybody help why this would happen ? Something to do with how the url
pattern is formed in hosted mode...any ideas ?

Thx

-- pady


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



Re: JDBC/MySQL Driver error

2008-12-02 Thread Pradeep

Modify your eclipse launch script to add one more line for the jar you
desire to include. Also add the jar file name in the cmd files that
launch and compile your project.

On Dec 2, 11:58 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Thanks for your reply.
>
> My project structure does not have a lib directory. I have the mysql-
> connector-java-5.1.7-bin.jar in the project directory and it is
> already installed in my buildpath. Is this what you meant? Does anyone
> else have any ideas?
>
> Regards,
> Jack
>
> On Dec 2, 9:33 am, eggsy84 <[EMAIL PROTECTED]> wrote:
>
> > Hi there
>
> > Do you load an external JAR using Eclipse? If so try copying the JAR
> > into your lib directory add add it to your buildpath there so that it
> > is within your project.
>
> > This is what I have done with the PostgreSQL project and had no
> > problems?
>
> > Eggsy
>
> > On Dec 1, 10:30 pm, "[EMAIL PROTECTED]"
>
> > <[EMAIL PROTECTED]> wrote:
> > > Hi,
>
> > > I am receiving the following error when i run GWT in hosted mode:
>
> > > SQLException: No suitable driver found for jdbc:mysql://localhost:3306/
> > > catering
> > > SQLState: 08001
> > > VendorError: 0
>
> > > I connect to my database fine when I run in eclipse so I am guessing I
> > > am missing some sort of JAR or XML file in TomCat.
>
> > > Please can someone point out where I am going wrong. I will be
> > > grateful for any advice!
>
> > > Regards,
> > > Jack
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: viewport resize listener

2008-12-02 Thread Litty Preeth

Hi friends,

Anybody has any ideas on this?

Thanks and Regards,
Litty Preeth

On Dec 2, 4:42 pm, "Litty Preeth" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Anybody know how to implement a viewport resize listener? Basically I have a
> glass panel (light box effect). I want to notify this glass panel whenever
> my RootPanel size gets changed so that I can resize my glass panel to fillup
> the area.
>
> Regards,
> Litty Preeth
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: ListBox + FlexTable + How to maintain value in ListBox

2008-12-02 Thread Litty Preeth

Basically when the second time you click the list box, the
onCellClicked of tablelistener is also getting executed, which re-
initializes the listbox. So may be you should first check if the
listbox is already initialized and then only proceed for the RPC call
to get the listbox items n re-construct the listbox.

-Litty Preeth

On Dec 3, 8:14 am, Suri <[EMAIL PROTECTED]> wrote:
> Hey all,
>  - I've got a ListBox added to a cell in a FlexTable.
> - The FlexTable has a TableListener, and when the cell contain the
> ListBox is clicked, an RPC call is made that returns a collection of
> data used to populate the ListBox.
> - The ListBox has a ChangeListener, so that when the value is updated
> another ListBox in an adjacent cell is populated.
>
> The problem here is that after populating the first ListBox, when I
> select a value from it, the value immediately resets to the first
> value in the box. Any ideas what might be going on?
>
> Thanks
> Suri
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Shell Error: The development shell servlet received a request for 'null' in module...

2008-12-02 Thread dhoffer

When I run in hosted mode I see this message in the log:

[TRACE] The development shell servlet received a request for 'null' in
module 'ipt.tas.collab.ui.gwt.CollaborationGWT.gwt.xml'
[WARN] Resource not found: null; (could a file be missing from the
public path or a  tag misconfigured in module
ipt.tas.collab.ui.gwt.CollaborationGWT.gwt.xml ?)

What might be the cause of this?


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



ListBox + FlexTable + How to maintain value in ListBox

2008-12-02 Thread Suri

Hey all,
 - I've got a ListBox added to a cell in a FlexTable.
- The FlexTable has a TableListener, and when the cell contain the
ListBox is clicked, an RPC call is made that returns a collection of
data used to populate the ListBox.
- The ListBox has a ChangeListener, so that when the value is updated
another ListBox in an adjacent cell is populated.

The problem here is that after populating the first ListBox, when I
select a value from it, the value immediately resets to the first
value in the box. Any ideas what might be going on?

Thanks
Suri

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



Re: Is Run Time Annotation Possible?

2008-12-02 Thread Au Lai Seong
Actually i am running your code gwtent-sample and other also but none
of the testcase work. I want to see how you make the annotation work
in runtime.

On Wed, Dec 3, 2008 at 8:37 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> What's the error message? Have you append " name="com.gwtent.GwtEnt"/>" to your Moudle.gwt.xml?
>
> On Dec 3, 3:47 am, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> I do not know how the testannotation 
>> inhttp://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>> work.
>> Can you explain?
>>
>> I get error in hosted mode when i try to run...
>> public class Application implements EntryPoint {
>>
>>   public void testReflection(){
>>   ClassType classType2 =
>> TypeOracle.Instance.getClassType(TestReflection.class);
>> //Class Annotations
>>
>>   
>> System.out.println(classType2.getAnnotation(Entity.class).getValue("name").equals("TestReflection"));
>> ..
>>
>> On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED]
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > No, any annotations
>>
>> > On Dec 2, 1:00 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> Is it it only support your annotation ? 
>> >> ->com.gwtent.client.test.annotations.
>>
>> >> On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED]
>>
>> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> > You can have a look the Wiki page 
>> >> > :http://code.google.com/p/gwt-ent/wiki/UseReflection
>> >> > need include GWT-ENT module into your project.
>> >> > then include "Reflection" flag interface into your class
>> >> > ClassType classType = TypeOracle.Instance.getClassType
>> >> > (YourClass.class);
>>
>> >> > done :)
>>
>> >> > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> >> Do you want to configure anything in order to make class the following
>> >> >> code work?
>> >> >> Test.class.getAnnotation(Id.class);
>>
>> >> >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>>
>> >> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> >> > Sorry, what do you mean? My English is not so good, but If you got 
>> >> >> > any
>> >> >> > question, please welcome to ask me :D
>> >> >> > James
>>
>> >> >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> >> >> How do you make the com.gwtent.client.test.annotations.Id to be
>> >> >> >> understandable by GWT?
>>
>> >> >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>>
>> >> >> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> >> >> > Hi, zujee,
>>
>> >> >> >> >  I have a reflection implement for GWT client code, and it support
>> >> >> >> > get Annotation's value at runtime.
>>
>> >> >> >> >  http://code.google.com/p/gwt-ent/
>> >> >> >> >  The test case:
>> >> >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>>
>> >> >> >> >  Hope that helps :)
>> >> >> >> > James
>>
>> >> >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
>> >> >> >> >> Hi experts,
>> >> >> >> >> I have an interface which extends ImmutableResourceBundle
>>
>> >> >> >> >> and inside that
>> >> >> >> >> @Resource("com/MyPath/MyConstants.properties")
>> >> >> >> >> public abstract TextResource properties();
>>
>> >> >> >> >> and its working fine.
>> >> >> >> >> but I need to change the filename after reading the XML file .
>> >> >> >> >> eg:
>> >> >> >> >> 
>> >> >> >> >> > >> >> >> >> TYPE="STRING">MyConstants_C1.properties
>> >> >> >> >> 
>>
>> >> >> >> >> from that I need to set the reosuece path as
>> >> >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. 
>> >> >> >> >> is
>> >> >> >> >> that possible?
>>
>> >> >> >> >> thanks and regards
>> >> >> >> >> Zujee
> >
>

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



gwt-dnd and more help needed...

2008-12-02 Thread [EMAIL PROTECTED]


Hi,

I have contacted the gwt-dnd group already. I am developing a web 2.0
product and I use gwt-dnd extensively. I am the only developer and I
have a lot on my plate. The DnD section of the code works fine, but
needs to be made better for a professional look. I am looking for a
strong java/GWT developer with gwt-dnd experience ( or willing to
learn - there is not much to it ) who likes doing the UI side of
things ( not plain vanilla ui stuff - this stuff can be tricky ).

I can explain compensation offline. This neednt be a full time job. It
can be a long term relationship based on the work and interest.

If interested, please send me an email at [EMAIL PROTECTED]

Thanks

-- pady

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



Re: SecureRemoteService and Servlet. The battle against XSRF.

2008-12-02 Thread Reinier Zwitserloot

quentin:

URLs aren't designed to be protected. At all. Cookies aren't exactly
locked away in Fort Knox on your harddrive, but browsers at least have
the good sense to understand that they shouldn't send arbitrary pieces
in the cookiefile to arbitrary servers. Not so for URLs.

To wit:

1) 'aggregator' websites such as Digg, Reddit, stumbleupon, and even
just del.ico.us or just mailing a link around because you want to show
'something cool' to a friend, always grab the entire URL and spill
this out to the world at large. This is obviously really really bad.
One 'fix' is to make these sessions time out fast, but this annoys
users, and having your account accessible by anyone following a story
on an aggregator for 'just half an hour' is still pretty bad.

2) Referral. When browsing to another domain, your browser will add a
Referrer: header which contains the URL that the user came from. This
is handy for analysis flow on your own site, and to figure out where
people are coming from when visiting your site. If you run a website
and you're using google analytics or some other traffic analyser, you
may have noticed a '% of traffic from google' indicator. This thing
works by checking how many incoming requests have a Referrer: (www\.)?
google\.com.* - this referrer system does not discriminate and will
happily toss over the ENTIRE URL, which would include your session. I
could -easily- make a webserver that'll check if it looks like there's
a session ID in a URL, then report it and the website via chat to me,
so I can quickly see if I can log in as this person.

3) Bookmarks. web-based bookmarking was covered in #1, but even a
local bookmark is relatively bad, because in general bookmarks are far
easier to leak to another person than your cookiefile. sharing
bookmarks is actively encouraged by many browsers. No user except a
real geek would cut his URL down to eliminate the session ID from it
(and even more pathetic, if this geek does do that, using the bookmark
is near useless because he'll have to log in again. d'oh).

4) It's a giant sore thumb that both says: Geez, I'm ugly, and: OMG, I
have absolutely zip squat idea about web security, so whatever info
you give to me, consider it yelled from the rooftops. Boy, my
webmaster is a thick headed clot. Most other security leaks aren't
nearly as visible, which isn't much comfort, but it does count for a
little that this one is so obvious. Just look at the address bar.

NB: Yes, yes, the official java servlet spec, even the very latest
version, officially declares that URL rewriting is amongst the
strategies. Sun evidently considers background compatibility with
dangerous code more important than security, which, to say it mildly, /
annoys/ me just a tad.

On Dec 2, 2:21 pm, quentin <[EMAIL PROTECTED]> wrote:
> Reiner,
>
> Thanks for the reply. Call me naive/ignorant/stupid/whatever but what
> are the security risks associated with using ";jsessionid"? The reason
> i ask is because GWT cookie support in safari 4 appears completely
> broken. (It's actually not GWT's fault. in safari 4, the js statement
> "document.cookie = " doesn't seem to work).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Your opinion sought: Jetty or Tomcat?

2008-12-02 Thread Reinier Zwitserloot

Not Ken Shabby:

Imagine here your -exact- reply, except swap 'tomcat' (note: it's not
an acronym, you don't need to capitalize it. Jetty isn't either) with
'jetty' and vice versa.

In other words, your argument is only relevant for you. It makes for
an excellent reason to switch for those running the end result on
jetty.

On Nov 26, 3:55 am, Not Ken Shabby <[EMAIL PROTECTED]> wrote:
> I will be using TOMCAT as the target server for the foreseeable
> future.
>
> My concern with switching to JETTY within the development environment
> is that bugs / issues with the interaction of GWT and TOMCAT may not
> be seen / address as quickly as they might otherwise be.
>
> There may also be some "psychological / political" effect --- "oh, GWT
> is something that works with Jetty, it used to work with Tomcat but
> they changed it"
>
> On Oct 20, 10:46 am, John <[EMAIL PROTECTED]> wrote:
>
> > Manuel Carrasco wrote:The most annoying issue with GWT is performance in 
> > development mode. I mean, compiling, startng hosted mode and running GWT 
> > Unit tests. So any action that improves these is welcome.
> > So my vote if for jetty
> > +1
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-12-02 Thread [EMAIL PROTECTED]

What's the error message? Have you append "" to your Moudle.gwt.xml?

On Dec 3, 3:47 am, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> I do not know how the testannotation 
> inhttp://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
> work.
> Can you explain?
>
> I get error in hosted mode when i try to run...
> public class Application implements EntryPoint {
>
>   public void testReflection(){
>   ClassType classType2 =
> TypeOracle.Instance.getClassType(TestReflection.class);
> //Class Annotations
>
>   
> System.out.println(classType2.getAnnotation(Entity.class).getValue("name").equals("TestReflection"));
> ..
>
> On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED]
>
> <[EMAIL PROTECTED]> wrote:
>
> > No, any annotations
>
> > On Dec 2, 1:00 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> Is it it only support your annotation ? 
> >> ->com.gwtent.client.test.annotations.
>
> >> On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED]
>
> >> <[EMAIL PROTECTED]> wrote:
>
> >> > You can have a look the Wiki page 
> >> > :http://code.google.com/p/gwt-ent/wiki/UseReflection
> >> > need include GWT-ENT module into your project.
> >> > then include "Reflection" flag interface into your class
> >> > ClassType classType = TypeOracle.Instance.getClassType
> >> > (YourClass.class);
>
> >> > done :)
>
> >> > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> >> Do you want to configure anything in order to make class the following
> >> >> code work?
> >> >> Test.class.getAnnotation(Id.class);
>
> >> >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>
> >> >> <[EMAIL PROTECTED]> wrote:
>
> >> >> > Sorry, what do you mean? My English is not so good, but If you got any
> >> >> > question, please welcome to ask me :D
> >> >> > James
>
> >> >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
> >> >> >> How do you make the com.gwtent.client.test.annotations.Id to be
> >> >> >> understandable by GWT?
>
> >> >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>
> >> >> >> <[EMAIL PROTECTED]> wrote:
>
> >> >> >> > Hi, zujee,
>
> >> >> >> >  I have a reflection implement for GWT client code, and it support
> >> >> >> > get Annotation's value at runtime.
>
> >> >> >> >  http://code.google.com/p/gwt-ent/
> >> >> >> >  The test case:
> >> >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>
> >> >> >> >  Hope that helps :)
> >> >> >> > James
>
> >> >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
> >> >> >> >> Hi experts,
> >> >> >> >> I have an interface which extends ImmutableResourceBundle
>
> >> >> >> >> and inside that
> >> >> >> >> @Resource("com/MyPath/MyConstants.properties")
> >> >> >> >> public abstract TextResource properties();
>
> >> >> >> >> and its working fine.
> >> >> >> >> but I need to change the filename after reading the XML file .
> >> >> >> >> eg:
> >> >> >> >> 
> >> >> >> >>  >> >> >> >> TYPE="STRING">MyConstants_C1.properties
> >> >> >> >> 
>
> >> >> >> >> from that I need to set the reosuece path as
> >> >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
> >> >> >> >> that possible?
>
> >> >> >> >> thanks and regards
> >> >> >> >> Zujee
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Problem with JSON response, in --"Get JSON via HTTP"-- example

2008-12-02 Thread Andres

Hi, I'm doing the Get JSON via HTTP example, and I have a problem

I'm using XAMPP, to test the WEB MODE, and Firefox with firebug
extension.

When I receive the JSON Object from the PHP, the Firebug show me this:

[{"symbol":"AMD","price":1.08718204481,"change":0.00708920080279}]


But, the web page said that "Couldn't retrieve JSON"


I don't know what to do. : (

help...
and thanks

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



Re: Deferred binding based on annotation

2008-12-02 Thread Sumit Chandel
Hi Ronald,
It currently isn't possible to trigger a generator based on an annotation,
but that is soon to change (see Issue #1206 linked below). The current way
you could implement the functionality you're looking for would be to use a
marker interface and an assignable-based generator to generate the given
class.

You can read about this on the GWT Developer Guide at the link below:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideDeferredBindingGenerators

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

Hope that helps,
-Sumit Chandel

On Thu, Nov 27, 2008 at 2:04 PM, rmuller <[EMAIL PROTECTED]> wrote:

>
> Hallo,
>
> Is it possible to trigger deferred binding based on an annotation, so:
>
> 
>  
> 
>
> So you can use it like this:
> Foo foo = GWT.create(class annotated by Baz)
>
> Regards,
>
> Ronald
>
> >
>

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



Unit Testing Generators - Best Practices?

2008-12-02 Thread Brian Ferris

I'm writing some unit tests for a Generator.  The standard practice
for handling errors in Generators seems to be to log an error message
to the logger and then throw an UnableToCompleteException.  Unit
testing the proper handling of errors like these seems tricky for a
couple reasons.

Catching the UnableToCompleteException doesn't actually tell you
anything about what error occured.  Assuming multiple
UnableToCompleteExceptions can be thrown in response to various error
handling cases, some method is needed to verify that the proper error
case was handled.

My first reaction was just to subclass UnableToCompleteException with
a specific exception type, but the documentation for
UnableToCompleteException seems to imply that all error context should
sent to the logger.  Additionally, it seems likely that a higher-level
error handler might consume any underlying exception thrown, log the
high-level error and throw a new UnableToCompleteException, throwing
awaythe underlying context.

Any ideas?  Best practices?

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



Eclipse issues

2008-12-02 Thread Wualla

Hi

I have some issues with Eclipse.

1. I downloaded GWT; I played around with it in Eclipse; I decided to
move the GWT directory to another location on my disk and did that;
Now Eclipse shouts for missing references:

The archive: /gwt-linux-1.5.3/gwt-dev-linux.jar
which is referenced by the classpash, does not exist.

2. When I workaround this by moving back the GWT directory, I get
this:

** Unable to find a usable Mozilla install **
You may specify one in mozilla-hosted-browser.conf, see comments in
the file for details.

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



Re: Client did not send nnn bytes as expected

2008-12-02 Thread jchimene

Hi Amit,

One other thing:

I'm getting the impression that you also have a custom server. If it's
an identical configuration across all server instances, than you also
have to prove that it's not the server. Again, I'd code a simple HTTP
server in Perl (because there's no problem so intractable that it
can't be made worse with a Perl application) and use it to test
against your application.

Cheers,
jec

On Dec 2, 9:11 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
> Hi,
> Thanks for your reply. Answers are inline.
>
> On Dec 2, 5:50 pm, jchimene <[EMAIL PROTECTED]> wrote:> Hi,
>
> > A few questions:
>
> > o Are all packets sent to the server the same size?
>
> No, they are not.
>
> > o What is that size?
>
> This depends on the service call - somewhere between 150 and 2000
> bytes.
> I will mention again that by using a sniffer (tcpdump), it seems that
> EVERY time this issue occurs, the actual packets the server receives
> are ALWAYS EXACTLY 80% of what it should have received. This, again,
> was very encouraging to find as a clue, but unfortunately led me
> nowhere.
>
> > o Have you checked for other types of congestion?
>
> Congestion? Unfortunately, I don't have any control over the client's
> environment since this is an internet application and I can't
> reproduce it.
>
> > o Is this entirely TCP/IP? Have you checked maxrss?
>
> maxrss? I'm not sure I understood the relevance... TCP/IP is obviously
> used, it is the underlying protocol of HTTP...
>
> > o Have you enabled logging on intermediate nodes to see if there are
> > congestion issues?
>
> I wish I could... I don't have any control over any node before the
> server. It is a CentOS VPS hosted internet application. I will state
> that this occurred in several hosting providers, in several countries
> and geographical locations.
>
> > o Is this related to a specific time of day (although it probably
> > happens between 10:00 and 14:00...)
>
> I didn't find any correlation between the time of day and the
> occurrence of this. Obviously, this is normalized to the usage load,
> as you implied.
>
> > o Do you have a world-wide net? If so, does the problem travel across
> > time zones?
>
> My users are not from around the world, but as I stated - this issue
> occurred when using hosting providers around the world.
>
>
>
> > Cheers,
> > jec
>
> > On Dec 2, 2:13 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
> > > Does anyone has any new insights about this issue? We've been
> > > investigating for over a year(!), and we seem to not be the only
> > > ones...
>
> > >http://tinyurl.com/5rqfp5
>
> > > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Client did not send nnn bytes as expected

2008-12-02 Thread jchimene



On Dec 2, 9:11 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
> Hi,
> Thanks for your reply. Answers are inline.
>
> On Dec 2, 5:50 pm, jchimene <[EMAIL PROTECTED]> wrote:> Hi,
>
> > A few questions:
>
> > o Are all packets sent to the server the same size?
>
> No, they are not.
>
> > o What is that size?
>
> This depends on the service call - somewhere between 150 and 2000
> bytes.
> I will mention again that by using a sniffer (tcpdump), it seems that
> EVERY time this issue occurs, the actual packets the server receives
> are ALWAYS EXACTLY 80% of what it should have received. This, again,
> was very encouraging to find as a clue, but unfortunately led me
> nowhere.

At this point, I'd write a ping script and start generating packets of
a certain size. Hammer the server to see if you can reproduce on
demand. If you can reproduce w/ ping, it's not a browser/server issue.

> > o Have you checked for other types of congestion?
>
> Congestion? Unfortunately, I don't have any control over the client's
> environment since this is an internet application and I can't
> reproduce it.

I don't mean the client congestion, I mean congestion en route, i.e.
the cloud between the client and the server. Your later answers seem
to eliminate The Cloud.

> > o Is this entirely TCP/IP? Have you checked maxrss?
>
> maxrss? I'm not sure I understood the relevance... TCP/IP is obviously
> used, it is the underlying protocol of HTTP...

My bad. I meant MTU. But that doesn't sound like it's relevant.

> > o Have you enabled logging on intermediate nodes to see if there are
> > congestion issues?
>
> I wish I could... I don't have any control over any node before the
> server. It is a CentOS VPS hosted internet application. I will state
> that this occurred in several hosting providers, in several countries
> and geographical locations.

So it's sounding more and more like the app. If it's several hosting
providers in several locations, that's pretty much A Clue.

> > o Is this related to a specific time of day (although it probably
> > happens between 10:00 and 14:00...)
>
> I didn't find any correlation between the time of day and the
> occurrence of this. Obviously, this is normalized to the usage load,
> as you implied.
>
> > o Do you have a world-wide net? If so, does the problem travel across
> > time zones?
>
> My users are not from around the world, but as I stated - this issue
> occurred when using hosting providers around the world.
>

OK, so we're down to the app. I'd try constructing a reproducer using
ping with specific packet sizes. Record the output stats and run them
through a formatting routine that will make it easier to check for
problems. The goal here is to check end-to-end transmission w/o using
application layer code. If this transmission failure happens every
day, you should see something happen within 24 hours.

If nothing untoward happens, it's (probably) the app. In that case,
I'd grab a copy of Perl (or whatever you want) to write a client-side
app that faithfully simulates your app's transmission profile. Point
it at one of your servers and stress test that server/client circuit.

Send PCs to several locations if you have to, but get something in the
field that can reproduce this independently of your app and over which
you have complete control. If that's not realistic, you'll need a
"lab" environment, i.e. a machine that isn't a developer box, can be
wiped clean and conveniently set to a known state.

Bueno Suerte,
jec

>
> > On Dec 2, 2:13 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
> > > Does anyone has any new insights about this issue? We've been
> > > investigating for over a year(!), and we seem to not be the only
> > > ones...
>
> > >http://tinyurl.com/5rqfp5
>
> > > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



dao and GWT

2008-12-02 Thread rizla

Hi to everyone
..how I can see a code example of an implementation of GWT with DAO
pattern?
many thanks to all :D
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: JDBC/MySQL Driver error

2008-12-02 Thread [EMAIL PROTECTED]

Thanks for your reply.

My project structure does not have a lib directory. I have the mysql-
connector-java-5.1.7-bin.jar in the project directory and it is
already installed in my buildpath. Is this what you meant? Does anyone
else have any ideas?

Regards,
Jack


On Dec 2, 9:33 am, eggsy84 <[EMAIL PROTECTED]> wrote:
> Hi there
>
> Do you load an external JAR using Eclipse? If so try copying the JAR
> into your lib directory add add it to your buildpath there so that it
> is within your project.
>
> This is what I have done with the PostgreSQL project and had no
> problems?
>
> Eggsy
>
> On Dec 1, 10:30 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi,
>
> > I am receiving the following error when i run GWT in hosted mode:
>
> > SQLException: No suitable driver found for jdbc:mysql://localhost:3306/
> > catering
> > SQLState: 08001
> > VendorError: 0
>
> > I connect to my database fine when I run in eclipse so I am guessing I
> > am missing some sort of JAR or XML file in TomCat.
>
> > Please can someone point out where I am going wrong. I will be
> > grateful for any advice!
>
> > Regards,
> > Jack
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Help with Remote Services

2008-12-02 Thread SANAULLAH
Hi,
I wanted to learn how to use Remote Services in GWT? Any link to the
tutorials? I am using Eclipse 3.3 with JDK 1.6 u10.


-- 
Mohamed Sanaulla
Sun CA, NITK Surathkal
Editor, Let Me Know
http://sanaulla.wordpress.com/

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



Re: Your opinion sought: Jetty or Tomcat?

2008-12-02 Thread Alex Epshteyn

I've been mulling this over the past couple of weeks, and now I want
to retract my initial objection about Jetty :)  Mainly because, as
Arthur and others pointed out, it's expected to speed up unit tests
(which would be a huge win).  And you don't need -noserver for most of
the unit tests you might want to run - the default settings should be
sufficient.  Therefore this is one area where even the "-noserver"
crowd can benefit from a faster embedded server.

On Tue, Nov 25, 2008 at 11:51 PM, AB <[EMAIL PROTECTED]> wrote:
>
> I am using -noserver so it doesnt matter and even if I wasnt, i could
> live with either.
> >
>

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



Problem updating image URL

2008-12-02 Thread dhoffer

I have a custom button that has a couple of images as well as text.
My code is like this:

public class SplitButton extends Button
{
private IGWTImageBundle gwtImageBundle;
private final DockPanel dockPanel = new DockPanel();
private MenuBar menuBar;
private final Image image = new Image();
private final Label textLabel = new Label();
private PopupPanel popupPanel;

public SplitButton(IGWTImageBundle gwtImageBundle)
{
this(null, null, gwtImageBundle);
}

public SplitButton(String imageURL, String text, IGWTImageBundle
gwtImageBundle)
{
super();

this.gwtImageBundle = gwtImageBundle;

if (imageURL != null)
{
setImage(imageURL);
}
if (text != null)
{
setText(text);
}

initDockPanel();
}

private void initDockPanel()
{
dockPanel.add(image, DockPanel.WEST);
dockPanel.add(textLabel, DockPanel.CENTER);
dockPanel.add(gwtImageBundle.smallDownArrowIcon().createImage
(), DockPanel.EAST);

setHTML();
}

@Override
public void setText(String text)
{
textLabel.setText(text);

setHTML();
}

public void setImage(String imageURL)
{
image.setUrl(imageURL);

setHTML();
}

private void setHTML()
{
SimplePanel sp = new SimplePanel();
sp.add(dockPanel);
String test = DOM.getInnerHTML(sp.getElement());
this.setHTML(test);
}
}


The problem is calls to setImage(String imageURL) do not get updated
in the UI.  That is, although the URL set is valid the image is not
shown in the button.  The static image is shown in the UI however.

What am I doing wrong to set the image?

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



Re: How to configure GWT in existing application

2008-12-02 Thread gregor

Hi Arul,

What are you attempting?

If you want to replace your entire existing Struts/JSP based UI with
GWT in one iteration but retain existing server-side services, then
perhaps the easiest way is to replace your Action classes with GWT RPC
servlet methods and just copy most of your Action.perform(..) code to
these GWT RemoteServiceServlet methods (minus the JSP redirect and
bean binding bits, plus preparing the beans for return to GWT client).
Your application UI would then load and run from a single HTML file
(which is optimal for GWT) and you can throw the old Struts stuff
away.

If on the other hand you want to (or must) either a) embed a bit of
GWT sparkle into individual existing JSPs or b) incrementally replace
JSPs over time,  then the situation is more complicated. You need to
explain your constraints and what you need to do.

regards
gregor


On Dec 2, 1:56 pm, Arul <[EMAIL PROTECTED]> wrote:
> Hi,
>    Want to replace existing presentaion layer alone by GWT.
> Current application stores session value in servlet for processing in
> JSP.
>
> The same way , How a GWT tool will be used to diplay those values
> stored in session(servlet)?
>
> Thanks
> Arul
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Exception while using Remote Services

2008-12-02 Thread SANAULLAH
Hi,

I am very new to GWT and have been followiung the GWT book by Packt
Publications. When ever i try to execute programs on Remote Services i get
exception- "Failed to load com.packtpub.gwtbook.samples.Sample"

I have the following in my project:

PrimesClient- Entry Point Class present in package
com.packtpub.gwtbook.samples.client
PrimeServiceImpl- Implementation for the Remote Service  present in package
com.packtpub.gwtbook.samples.server
PrimesService- Synchronous Service class present in package
com.packtpub.gwtbook.samples.client
PrimeServiceAsync- Asnyncrhonous Service class present in package
com.packtpub.gwtbook.samples.client

And i have Samples.html

These are the series of error messages i get:
[ERROR] Could not find an asynchronous version for the service interface
com.packtpub.gwtbook.samples.client.PrimesService

[ERROR]
package com.packtpub.gwtbook.samples.client;

public interface PrimesServiceAsync {
void isPrimeNumber(int numberToVerify,
com.google.gwt.user.client.rpc.AsyncCallback arg2);
}

[ERROR] Deferred binding failed for
'com.packtpub.gwtbook.samples.client.PrimesService'; expect subsequent
failures

[ERROR] Unable to load module entry point class
com.packtpub.gwtbook.samples.client.PrimesClient (see associated exception
for details)


[ERROR] Failure to load module 'com.packtpub.gwtbook.samples.Samples'

How to go about the remote Services in GWT?

I am using Eclipse and JDK 1.6.10
-- 
Mohamed Sanaulla
Sun CA, NITK Surathkal
Editor, Let Me Know
http://sanaulla.wordpress.com/

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



Implement a Calender to the Navigation on the left side

2008-12-02 Thread King

hello everybody,

I start to programming with GWT Designer yesterday... My Question is,
if anybody knows how i can implement a small calender to the left
panel! I didnt do it before in java or something else... Is there a
easy way ???

Thank you very much!!!

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



Re: How do I separate static files?

2008-12-02 Thread thitoh

Hi, Essington.
but rpc isn't working...
I'm having an exception:
com.google.gwt.user.client.rpc.StatusCodeException

On 1 dez, 15:55, Jason Essington <[EMAIL PROTECTED]> wrote:
> The simplest thing to do would be to put your module files in your
> war, that way the module and your service implementation are in the
> same context, and you can do
>
>GWT.getModuleBaseURL()+"Ctrl";
>
> to build your url.
>
> by placing your gwt files in IIS (using the paths you supplied) you'd
> have to do
>
> GWT.getModuleBaseURL()+"Apl/Ctrl";
>
> -jason
>
> On Dec 1, 2008, at 11:43 AM, thitoh wrote:
>
>
>
> > But gregor.. The problem is with my GWT configuration...
> > Look...
> > I've already configurated IIS and JBoss. They are working together.
> > So.. I've splited the Applicatoin in static and dinamic.
> > The static is on IIS (www folder), and can be acessed onhttp://apl/
> > The dinamic is a war file on JBoss and can be acessed onhttp://apl/
> > Apl
> > So... I acesshttp://apl/index.htmlthat has an GWT interface, and use
> > a RPC (the remote service module is called "Ctrl")
> > So... Ctrl is provided by JBoss, onhttp://apl/Apl/Ctrl
> > But, when I try to execute RPC, It returns an 404 error, on exception
> > com.google.gwt.user.client.rpc.StatusCodeException.
> > I belive I need to do something to say that the url isn'thttp://apl/Ctrl
> > .
> > The right ishttp://apl/Apl/Ctrl.
> > I think this config is on GWT application. But I don't know what I
> > have to do.
>
> > On 27 nov, 19:34, gregor <[EMAIL PROTECTED]> wrote:
> >> Hi thitoh,
>
> >> this is off topic for this group, but it possible to do. Google
> >> "deploy JBoss IIS" for information, e.g.
>
> >>http://www.itshastra.com/know_bank/IIS_Jboss.pdf
>
> >> Also check the JBoss forums. This link might be useful:
>
> >>http://www.jboss.org/community/docs/DOC-12526
>
> >> regards
> >> gregor
>
> >> On Nov 27, 6:01 pm, thitoh <[EMAIL PROTECTED]> wrote:
>
> >>> Hi... I have a Dinamic Web Project using GWT with Cypal Studio.
> >>> I generate a .war file and deploy on JBoss.
> >>> But now I configured my machine with 2 servers: IIS and JBoss.
> >>> I want to put static files on IIS and the others in JBoss.
> >>> How do I do it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Stack overflow at line: 0

2008-12-02 Thread David Hoffer

Looks like there is no known fix yet.

Can I switch to Firefox in hosted mode?  I don't know why it is using
Windows Internet Explorer, is that something that I can specify?

-Dave

On Tue, Dec 2, 2008 at 11:56 AM, markmccall <[EMAIL PROTECTED]> wrote:
>
> See this thread:
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e45c50aac66e5c49/9e7f222c0516cf7b?lnk=gst&q=stack+overflow
>
> On Dec 2, 1:28 pm, dhoffer <[EMAIL PROTECTED]> wrote:
>> In debugging my app in hosted mode I see an error with the title of
>> Windows Internet Explorer and having an error of Stack overflow at
>> line: 0.
>>
>> What does this mean?  Why Windows Internet Explorer?
>>
>> -Dave
> >
>

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



Re: Stack overflow at line: 0

2008-12-02 Thread markmccall

See this thread:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e45c50aac66e5c49/9e7f222c0516cf7b?lnk=gst&q=stack+overflow

On Dec 2, 1:28 pm, dhoffer <[EMAIL PROTECTED]> wrote:
> In debugging my app in hosted mode I see an error with the title of
> Windows Internet Explorer and having an error of Stack overflow at
> line: 0.
>
> What does this mean?  Why Windows Internet Explorer?
>
> -Dave
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Easiest way to open a new window with some text in it?

2008-12-02 Thread darkflame

nope..apperently I cant use a form panel to post data to a new
window :-/

I'm happy to use any combination of php and gwt, but I cant seem to
find a neat way to get a string (of decent length) into a new window.

I could save to cookie or something, but that seems a very messy
method to use :-/

On Nov 21, 8:10 pm, darkflame <[EMAIL PROTECTED]> wrote:
> Just thinking outloud here...it could be done with a form right? Just
> hidden somewhere.
> dosnt seem very neat though.
>
> On Nov 21, 1:50 pm, darkflame <[EMAIL PROTECTED]> wrote:
>
> > Thats still using the string by the URL though/"get method", which
> > limits the charecfters to about  100  :-/
>
> > Is it possible to do the same thing but not have the data in the url,
> > so it could be picked up by the php'spostvariable instead?
> > (which you can do with RequestBuilder by using  new RequestBuilder
> > (RequestBuilder.POST) but that dosnt open a newwindow.)
>
> > On Nov 21, 8:13 am, "Danny Schimke" <[EMAIL PROTECTED]> wrote:
>
> > > You could try to use JSNI to open a newwindowas you've already done:
>
> > > It should look something like this:
>
> > > native JavaScriptObject openWindow(String param) /*-{
> > >         $wnd.open('scripts/display.php' + '?text=' + 
> > > messageslist.getText(),
> > > '_blank', null);
> > >         return true;}-*/;
>
> > > I hpe it's what you searched for...
>
> > > Danny
>
> > > 2008/11/20 darkflame <[EMAIL PROTECTED]>
>
> > > > Any ideas?
> > > > The text is dynamic, so I thought at first I'd just use;
>
> > > >Window.open("scripts/display.php"+"?text="+messageslist.getText(),
> > > > "_blank", null);
>
> > > > Where display.php simply gets the text variable in the url and echo's
> > > > it back.
>
> > > > However, this has a very short limit on the text that can be
> > > > displayed.
> > > > Is it possible to do a simerla function with RequestBuilder? SoPost
> > > > can be used correctly?
> > > > I have no idea if its possible to use RequestBuilder to open a php in
> > > > a newwindow, so if it isn't I would welcome workarounds if its not.
>
> > > > Cheers,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to design async widget

2008-12-02 Thread gregor

Hi Rexalo,

My 2c. What you seem to asking is if there is a standard "right" way
to do Model-View-Controller with GWT and/or what is the "best" way to,
as you put, "separate this transport/business layer from widget.". IMO
the answer is that there isn't a standard one, rather several options
or approaches. But I would search the group for "MVC" to get a flavour
of how many different opinions there are about this. Check this
discussion, for example, which is top of the list:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/6588acb2e9afe9d9/23f6dda583eaa44f?lnk=gst&q=MVC#23f6dda583eaa44f

IMO the difficulty is that both "Controller" and "Model" are slippery
concepts in an AJAX web application, whereas "View" is a straight
forward concept - it's a widget of some kind. Some reasons are:

1) The real "Controller" in an AJAX application is the browser -
anything involving a change to the DOM ultimately runs through its
event queue (and it also handles request dispatches and fields the
responses as well), therefore it is natural for Widget (i.e. view)
classes to interact with the browser event queue directly, and this is
what GWT does. Because GWT widgets catch, process and sink events
routinely anyway it is difficult (but not impossible) to separate them
from a separate "Controller" in a clean or meaningful way.

2) What might we mean when we refer to a "Model" maintained client-
side in a GWT application? Is it the "real" domain model for the
application, some sub-set of it, or maybe a snapshot of some some sub-
set of it? If you think about it, the "real" domain model resides on
the server and ultimately whatever sub-set of this is transported to
the GWT client must at some point be reconciled with the "real" server
model (i.e. the one actually persisted to backing store) always
bearing in mind that another client might have changed the "real"
model independently in the meantime.

Both these issues can introduce significant complexity. This is not to
say that there are not sometimes good reasons to introduce
"Controllers" and "Models" client side. An example might be a chat
application that uses blocking requests (i.e. comet style) to pick up
new messages. But it does imply that doing so introduces layers of
complexity to a GWT application that may be unnecessary.

For these reasons I don't think it is automatically the case that "i
want to separate this transport/business layer from widget" is a
necessarily a good design/engineering decision in a GWT app. What
works simplest usually works best. However, sometimes it is and there
are several approaches to doing it - it depends on what you are
actually trying to achieve, not on a matter of (MVC) principle.

regards
gregor



On Dec 2, 1:01 pm, raxelo <[EMAIL PROTECTED]> wrote:
> Hi, Gregor!
> Thanks forreply.
>
> I understand that i can't simply use rpc call right in widget event
> handler,
> but i want to separate this transport/business layer from widget.
>
> My widget simply shows list of items of some class(Group) and provide
> control elements
> to manupulate them: edit, delete, add etc.
>
> I am simply interested in a approach. maybe there is some standart way
> advices
>
> For now - i provide two methods for widget client -
> void add(Group)
> void onAdd/onSuccessAdd(Group)
>
> maybe there is some more cultural way ? =)
>
> On 2 дек, 13:37, gregor <[EMAIL PROTECTED]> wrote:
>
> > Hi Relaxo,
>
> > The simplest way is to make your RPC call from addBtn.onClick() using
> > an anonymous Callback where this callback's onSuccess(..) method adds
> > the new Group List groups and changes the view as required.
> > There may be reasons why this would not meet your requirements, but it
> > is not possible to say from your example, i.e. on the face of it you
> > do not need the controller interface. There isn't a single "right" way
> > to do asynchronous RPC - it is possible to over-engineer it and
> > equally it's possible to under-engineer it.
>
> > If in fact your situation is more complicated than the example
> > (leading to a motivation for using this controller interface),
> > probably best to give some idea of the overall problem to get further
> > advice and options (of which there are several).
>
> > regards
> > gregor
>
> > On Dec 2, 8:15 am, raxelo <[EMAIL PROTECTED]> wrote:
>
> > > First of all sorry for my english.
>
> > > I want to write simple GUIwidgetthat will help me to add and delete
> > > some business groops
> > > like this.
>
> > > public class GroupWidget extends Composite implements ClickListener {
> > >           private Controller controller;
> > >           private List groups;
>
> > >           public GroupWidget(List groups, Controller
> > > controller) {
> > >                    this.controller = controller;
> > >                    //buildwidgetskeleton
> > >                    //init structures
> > >           }
>
> > >           public void onClick(Widgetsender) {
> > >                    if(sender == addBtn) {

Stack overflow at line: 0

2008-12-02 Thread dhoffer

In debugging my app in hosted mode I see an error with the title of
Windows Internet Explorer and having an error of Stack overflow at
line: 0.

What does this mean?  Why Windows Internet Explorer?

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



Re: JSON Mashups

2008-12-02 Thread Miroslav Genov

This is a good solution. I like it.

Thanks for the support.

Regards,
  Miroslav

Shawn Pearce wrote:
> How about doing your setName like this:
>
>   public void setFirstName(String firstName) {
> String old = getFirstName();
> setFirstNameImpl(firstName);
> changes.firePropertyChange("firstName", old, firstName);
>   }
>   private final native void setFirstNameImpl(String fn)/*-{ 
> this.firstName = fn; }-*/;
>
> ?  Yes, it take an extra method to jump into the JSNI, but the 
> compiler will erase that indirection anyway when it builds the 
> JavaScript.  Your only penalty is the slightly longer code to write 
> for each bound property method.
>
>
> On Tue, Dec 2, 2008 at 09:45, Miroslav Genov <[EMAIL PROTECTED] 
> > wrote:
>
>
> Hello guys,
>  Currently I'm trying to use JSON  mashups in my application, but I'm
> falling on an issue with the binding and validation of the data
> objects.
> In another web project I was used simple POJO objects and the binding
> was implemented in this way:
>
> public void setFirstName(String firstName) {
>String old = this.firstName;
>this.firstName = firstName;
>changes.firePropertyChange("firstName", old, firstName);
> }
>
>
> And here is the question, how can I do this with JavaScriptObjects
> when
> my method stubs are looking like:
>  public final native String getName() /*-{ return this.name
> ; }-*/;
>  public final native void setName(String name) /*-{ this.name
>  = name; }-*/;
>
>
> Probably I have to use some JSNI magic :).
>
> Does anyone have an idea how to do this ?. Or some better solution for
> binding and validation of such an objects.
>
> Thanks in advance
>
>
> Regards,
>  Miroslav
>
>
>
>
> >


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



Couple of questions regarding getModuleBaseURL()

2008-12-02 Thread dhoffer

How can I determine what GWT.getModuleBaseURL() will return on the
server?  I want to build a URL, on the server, and send it to the
client.  I would prefer this URL to be complete and not rely on the
client making this method call.  Is this possible?

Also is it possible to know what file system path getModuleBaseURL()
refers to?  I need to copy some dynamically created images to a folder
under the HTTP root folder.  How can I know where the root folder is?

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



Re: JSON Mashups

2008-12-02 Thread Shawn Pearce
How about doing your setName like this:

  public void setFirstName(String firstName) {
String old = getFirstName();
setFirstNameImpl(firstName);
changes.firePropertyChange("firstName", old, firstName);
  }
  private final native void setFirstNameImpl(String fn)/*-{ this.firstName =
fn; }-*/;

?  Yes, it take an extra method to jump into the JSNI, but the compiler will
erase that indirection anyway when it builds the JavaScript.  Your only
penalty is the slightly longer code to write for each bound property method.


On Tue, Dec 2, 2008 at 09:45, Miroslav Genov <[EMAIL PROTECTED]> wrote:

>
> Hello guys,
>  Currently I'm trying to use JSON  mashups in my application, but I'm
> falling on an issue with the binding and validation of the data objects.
> In another web project I was used simple POJO objects and the binding
> was implemented in this way:
>
> public void setFirstName(String firstName) {
>String old = this.firstName;
>this.firstName = firstName;
>changes.firePropertyChange("firstName", old, firstName);
> }
>
>
> And here is the question, how can I do this with JavaScriptObjects when
> my method stubs are looking like:
>  public final native String getName() /*-{ return this.name; }-*/;
>  public final native void setName(String name) /*-{ this.name = name;
> }-*/;
>
>
> Probably I have to use some JSNI magic :).
>
> Does anyone have an idea how to do this ?. Or some better solution for
> binding and validation of such an objects.
>
> Thanks in advance
>
>
> Regards,
>  Miroslav
>
> >
>

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



JSON Mashups

2008-12-02 Thread Miroslav Genov

Hello guys,
 Currently I'm trying to use JSON  mashups in my application, but I'm 
falling on an issue with the binding and validation of the data objects. 
In another web project I was used simple POJO objects and the binding 
was implemented in this way:

public void setFirstName(String firstName) {
String old = this.firstName;
this.firstName = firstName;
changes.firePropertyChange("firstName", old, firstName);
}


And here is the question, how can I do this with JavaScriptObjects when 
my method stubs are looking like:
 public final native String getName() /*-{ return this.name; }-*/;
 public final native void setName(String name) /*-{ this.name = name; }-*/;


Probably I have to use some JSNI magic :).

Does anyone have an idea how to do this ?. Or some better solution for 
binding and validation of such an objects.

Thanks in advance


Regards,
  Miroslav

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



Re: make my site visible to others

2008-12-02 Thread Goo

Can I use "Google Sites" to host my gwt webpages?

Thx,
Goo.

On Nov 28, 8:33 pm, Patrick Ratelband <[EMAIL PROTECTED]> wrote:
> What do you mean with this question? It is a web page, this means that
> if you put it somewhere where other people can download it, they can
> see it.
>
> If you do not use fancy client-server connection things but only work
> client side, a free website hoster should do the trick.
>
> Look on your fav search engine to find a free webhoster and see their
> manual on how to upload files.
>
> Patrick
>
> On Nov 27, 11:41 pm, mskart <[EMAIL PROTECTED]> wrote:
>
> > Hello everyone!
>
> > Can anyone answer my question:
>
> > How can i make the web page that i created with GWT visible to
> > others???
>
> > Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is Run Time Annotation Possible?

2008-12-02 Thread Au Lai Seong
I do not know how the testannotation in
http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/gwtent/client/test/ReflectionTestCase.java
work.
Can you explain?

I get error in hosted mode when i try to run...
public class Application implements EntryPoint {

  public void testReflection(){
  ClassType classType2 =
TypeOracle.Instance.getClassType(TestReflection.class);
//Class Annotations

  
System.out.println(classType2.getAnnotation(Entity.class).getValue("name").equals("TestReflection"));
..

On Tue, Dec 2, 2008 at 10:24 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> No, any annotations
>
> On Dec 2, 1:00 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> Is it it only support your annotation ? ->com.gwtent.client.test.annotations.
>>
>> On Mon, Dec 1, 2008 at 6:22 PM, [EMAIL PROTECTED]
>>
>> <[EMAIL PROTECTED]> wrote:
>>
>> > You can have a look the Wiki page 
>> > :http://code.google.com/p/gwt-ent/wiki/UseReflection
>> > need include GWT-ENT module into your project.
>> > then include "Reflection" flag interface into your class
>> > ClassType classType = TypeOracle.Instance.getClassType
>> > (YourClass.class);
>>
>> > done :)
>>
>> > On 12月1日, 下午1时33分, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> Do you want to configure anything in order to make class the following
>> >> code work?
>> >> Test.class.getAnnotation(Id.class);
>>
>> >> On Fri, Nov 28, 2008 at 6:30 AM, [EMAIL PROTECTED]
>>
>> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> > Sorry, what do you mean? My English is not so good, but If you got any
>> >> > question, please welcome to ask me :D
>> >> > James
>>
>> >> > On Nov 27, 1:26 pm, "Au Lai Seong" <[EMAIL PROTECTED]> wrote:
>> >> >> How do you make the com.gwtent.client.test.annotations.Id to be
>> >> >> understandable by GWT?
>>
>> >> >> On Thu, Nov 27, 2008 at 6:57 AM, [EMAIL PROTECTED]
>>
>> >> >> <[EMAIL PROTECTED]> wrote:
>>
>> >> >> > Hi, zujee,
>>
>> >> >> >  I have a reflection implement for GWT client code, and it support
>> >> >> > get Annotation's value at runtime.
>>
>> >> >> >  http://code.google.com/p/gwt-ent/
>> >> >> >  The test case:
>> >> >> >http://code.google.com/p/gwt-ent/source/browse/trunk/gwtent/test/com/...
>>
>> >> >> >  Hope that helps :)
>> >> >> > James
>>
>> >> >> > On Nov 26, 5:46 pm, zujee <[EMAIL PROTECTED]> wrote:
>> >> >> >> Hi experts,
>> >> >> >> I have an interface which extends ImmutableResourceBundle
>>
>> >> >> >> and inside that
>> >> >> >> @Resource("com/MyPath/MyConstants.properties")
>> >> >> >> public abstract TextResource properties();
>>
>> >> >> >> and its working fine.
>> >> >> >> but I need to change the filename after reading the XML file .
>> >> >> >> eg:
>> >> >> >> 
>> >> >> >> MyConstants_C1.properties
>> >> >> >> 
>>
>> >> >> >> from that I need to set the reosuece path as
>> >> >> >> @Resource("com/MyPath/MyConstants_C1.properties") in run time.. is
>> >> >> >> that possible?
>>
>> >> >> >> thanks and regards
>> >> >> >> Zujee
> >
>

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



how to clear the panel and new panel

2008-12-02 Thread rajasekhar

Hi All,

I have a probelm with borderlayout panel, panel is divided
into three parts  header,left and center parts,When I click button in
center ,center have to replace with some other content .
Please let me know how to achieve this.


Regards,
Rajasekhar


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



Acrobat JAVASCRIPT generated by GWT

2008-12-02 Thread Timo

Hi Team,

is there a way to generate a JAVASCRIPT Application (like a gadget)
that is executed in a PDF?
( http://www.adobe.com/devnet/acrobat/javascript.html )

Thx for input

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



Re: Client did not send nnn bytes as expected

2008-12-02 Thread Amit Kasher

Hi,
Thanks for your reply. Answers are inline.

On Dec 2, 5:50 pm, jchimene <[EMAIL PROTECTED]> wrote:
> Hi,
>
> A few questions:
>
> o Are all packets sent to the server the same size?
No, they are not.

> o What is that size?
This depends on the service call - somewhere between 150 and 2000
bytes.
I will mention again that by using a sniffer (tcpdump), it seems that
EVERY time this issue occurs, the actual packets the server receives
are ALWAYS EXACTLY 80% of what it should have received. This, again,
was very encouraging to find as a clue, but unfortunately led me
nowhere.

> o Have you checked for other types of congestion?
Congestion? Unfortunately, I don't have any control over the client's
environment since this is an internet application and I can't
reproduce it.

> o Is this entirely TCP/IP? Have you checked maxrss?
maxrss? I'm not sure I understood the relevance... TCP/IP is obviously
used, it is the underlying protocol of HTTP...

> o Have you enabled logging on intermediate nodes to see if there are
> congestion issues?
I wish I could... I don't have any control over any node before the
server. It is a CentOS VPS hosted internet application. I will state
that this occurred in several hosting providers, in several countries
and geographical locations.

> o Is this related to a specific time of day (although it probably
> happens between 10:00 and 14:00...)
I didn't find any correlation between the time of day and the
occurrence of this. Obviously, this is normalized to the usage load,
as you implied.

> o Do you have a world-wide net? If so, does the problem travel across
> time zones?
My users are not from around the world, but as I stated - this issue
occurred when using hosting providers around the world.

>
> Cheers,
> jec
>
> On Dec 2, 2:13 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > Does anyone has any new insights about this issue? We've been
> > investigating for over a year(!), and we seem to not be the only
> > ones...
>
> >http://tinyurl.com/5rqfp5
>
> > Thanks.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: hibernate4gwt

2008-12-02 Thread noon

The hibernate4gwt.jar is missing from classpath.

Regards
Bruno

On 2 déc, 10:43, Dessorry <[EMAIL PROTECTED]> wrote:
> Hi, i'm creating my first gwt application.
> I would display in my page an interrogation to my database.
> I've download hibernate4gwt library and i've included it in my
> project.
> I created HelloGWT.gwt.xml in mypackage folder with this code:
> [code]
>
>         
>         
>         
>
>         
>         
>
>         
>         
>         
>
>                 
>         
>         
>
> [/code]
> I created the subfolder domain and client in mypackage and i wrote
> helloGWT:
> [code]package mypackage.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.user.client.Window;
> import com.google.gwt.user.client.ui.Button;
> import com.google.gwt.user.client.ui.ClickListener;
> import com.google.gwt.user.client.ui.Label;
> import com.google.gwt.user.client.ui.RootPanel;
> import com.google.gwt.user.client.ui.Widget;
>
> import java.util.List;
>
> public class HelloGWT implements EntryPoint {
>
>         public void onModuleLoad() {
>                 // TODO Auto-generated method stub
>                 Label label = new Label("Hello GWT !!!");
>                 label.setStyleName("label");
>
>                 Button button = new Button("Say something");
>                 button.addClickListener(new ClickListener() {
>                         public void onClick(Widget sender) {
>                                 Window.alert("Hello, again");
>                         }
>                 });
>
>                 RootPanel.get().add(label);
>                 RootPanel.get().add(button);
>
>                 MyServiceAsync ws = (MyServiceAsync) 
> GWT.create(MyService.class);
>                 List a=ws.getStudents(null);
>
>         }
>
> }[/code]
>
> MyService
> [code]package mypackage.client;
>
> import java.util.ArrayList;
> import java.util.List;
> import net.sf.hibernate4gwt.core.HibernateBeanManager;
> import net.sf.hibernate4gwt.gwt.HibernateRemoteService;
>
> import org.hibernate.Session;
> import org.hibernate.SessionFactory;
> import org.hibernate.cfg.Configuration;
>
> import com.google.gwt.user.client.rpc.RemoteService;
>
> import mypackage.domain.Giocatore;
>
> public class MyService extends HibernateRemoteService{
>         public List getStudents() {
>                 Session session=null;
>                 SessionFactory sessionFactory = new Configuration().configure
> ().buildSessionFactory();
>                 HibernateBeanManager.getInstance().setSessionFactory
> (sessionFactory);
>         session = sessionFactory.openSession();
>         List gwtStudents = new ArrayList();
>         List players = session.createCriteria
> (Giocatore.class).list();
>         return players;
>     }}[/code]
>
> and Eclipse automatic generates MyServiceAsync
> i put Giocatore.class Giocatore.hbm.xml and hibernate.cfg.xml in
> domain folder
> server folder is empty.
> When i try ti run my application i read a lot of error all about
> inherit  method, like this:
> [ERROR] Line 16: No source code is available for type
> net.sf.hibernate4gwt.gwt.HibernateRemoteService; did you forget to
> inherit a required module?
>
> thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: fundamental design question on font size

2008-12-02 Thread jchimene

Hi,

GWT can only do so much w/r/t/ these kinds of design issues. Do you
use fixed font metrics (pt, px) or do you use %? The latter will
handle different font sizes, but it does require that you avoid
"complex" screen layouts.  Getting font metrics isn't hard, but if you
want to get "fancy" you have to be quite aware of widget layout.

It may also be that GWT is wrong tool to use, and you need more
control over the display (i.e. Flash)

On Dec 2, 6:17 am, mryilauer <[EMAIL PROTECTED]> wrote:
> What am I doing wrong? I am building widgets for use throughout the
> organization, and when I try to generalize everything, it always seems
> like I always need access to the font metrics so I can adjust
> positions of widgets based on the user's font size.
>
> I have read the posts about font metrics, but I am not asking how to
> do this as much as I am asking:
>
> if getting the font metrics is hard to do, what should I change in my
> approach to design so that I don't need them?
>
> Apparently, gwt itself must be getting along without this if an easy
> way to get it isn't built in, so there must be something wrong in my
> approach that always leads me to the place where I think I need to
> know the 'm' size of the current font.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Integrating draw2d with Gwt

2008-12-02 Thread kilkenny

There are many JavaScript libraries out there that have been wrapped
into third party GWT libraries. Alas the draw2d is not one of them, as
far as I know... Although you can do this yourself using GWT's
JavaScript Native Interface functionality. Have a look at the
documentation for more information:

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideInterop

Regards, Adrian
--
http://traceurl.com

On 2 Dez., 08:25, Sridhar Gande <[EMAIL PROTECTED]> wrote:
> Hello
>
> Iam new to Gwt and draw2d Apis.
> I want to integrate draw2d api which gives us 2d graphic  widgets and
> enables us to  build our own applications. It was developed on
> javascript.  My Question  is how can I integrate Gwt with draw2d so
> that I can use all the features of draw2d in my Gwt application.
>
> Please reply me as soon as possible, as I struck at this point.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Client did not send nnn bytes as expected

2008-12-02 Thread jchimene

Hi,

A few questions:

o Are all packets sent to the server the same size?
o What is that size?
o Have you checked for other types of congestion?
o Is this entirely TCP/IP? Have you checked maxrss?
o Have you enabled logging on intermediate nodes to see if there are
congestion issues?
o Is this related to a specific time of day (although it probably
happens between 10:00 and 14:00...)
o Do you have a world-wide net? If so, does the problem travel across
time zones?

Cheers,
jec

On Dec 2, 2:13 am, Amit Kasher <[EMAIL PROTECTED]> wrote:
> Hi,
> Does anyone has any new insights about this issue? We've been
> investigating for over a year(!), and we seem to not be the only
> ones...
>
> http://tinyurl.com/5rqfp5
>
> Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to run a signed java applet in hosted mode of gwt??

2008-12-02 Thread kilkenny

The previous poster is right, the shell can not handle embedded things
like Flash or Applets. There are some restrictions in the SWT
component used to run the browser inside of the shell. A bug report
has been associated with this issue, you may want to keep an eye on it
for future updates:

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

Regards, Adrian
--
http://code.google.com/p/gwtai/

On 2 Dez., 11:22, ship <[EMAIL PROTECTED]> wrote:
> hi,
>
> In my application, i want to run a signed java applet in hosted mode,
> this signed java applet is running succesfully in browser mode but
> when i run it on hosted mode it gives errors.
> Currently i am using gwt-1.4.62.
>
> Pl try to resolve this problem
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Interesting question:how can I get the rownumber of a cell that contain a button when I click this ?

2008-12-02 Thread rakesh wagh

Are you quizzing us or asking for help? I would go with alex.d 's
solution.

Other method(which I personally hate) is to write a for loop in the
onClick event of the button that will read the widget in each r,c and
match it with the "sender" or button instance itself.

Rakesh Wagh

On Dec 1, 7:24 pm, Alex Luya <[EMAIL PROTECTED]> wrote:
>          Remember: no pre-condition,no external variable that defined
> the location of this button.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to add Tree listener for single, double & right click mouse events?

2008-12-02 Thread dhoffer

I see that GWT's Tree control only provides single click
notification.   How can I add support for double & right click
events?  I see that I need to add sink events such as Event.ONDBLCLICK
and I see that I get
notified via the onBrowseEvent() method.

The question is, how can I convert the event object passed into
onBrowseEvent() into a TreeItem object?  It seems what is passed back
is a lower level DOM object and what is needed is the TreeItem this
represents.

How can I convert Event object type?

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



How binding of java objects with GWT tools

2008-12-02 Thread Arul

Hi,
 Could any one tell me where I can find information ralting to binding
of GWT components and Java Objects

Thanks
Arul
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Portlet Layout - Similar to iGoogle

2008-12-02 Thread rakesh wagh

Check demo #3, #5 and #7 of gwt-dnd demo.
demo link:
http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html#WindowExample

You will require the "draggable and resizable Iframe" from demo7. And
place those widgets in a layout similar to that of demo 5.

Here is the project link: http://code.google.com/p/gwt-dnd/

Hope that helps.
Rakesh Wagh




On Nov 28, 4:58 am, StrongSteve <[EMAIL PROTECTED]> wrote:
> Hi Everybody!
>
> I have a very basic question and you hope you can provide me an
> answer! ;)
>
> So basically I have an existing web-application consisting of several
> JSP/HTML pages that provide different "simple" tasks.
>
> What I want to do now, is change the user interface in a way, that it
> looks like the main screen of iGoogle.
>
> So that I have a wide area with different widgets, that can be dragged
> around, hidden, ...
> Within each widget I want to display one of my existing Java Server
> Pages.
>
> Is this possible with GWT? Or do I need additional libraries to
> support this behaviour.
>
> Can you please point me out the major steps that would be necessary to
> reach this goal?
>
> Thanks in Advance for both your time and your knowledge!
>
> Greetings
> Stefan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: SecureRemoteService and Servlet. The battle against XSRF.

2008-12-02 Thread jhulford

Yes, you could definitely do that to merely access your session but
that doesn't do anything to help prevent XSRF.  Here's a great article
all about this which includes what I mentioned earlier about sending
the identifier as a header.  
http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gwt-applications
The article is a little dated since you can now get at the Request or
RequestBuilder objects for the GWT-RPC requests and set the headers.
This page explains how to get at the Async's underlying Request and
RequestBuilder objects 
http://vinaytech.wordpress.com/2008/09/28/google-web-toolkit-and-client-server-communications/.

On Dec 1, 5:26 pm, jossey <[EMAIL PROTECTED]> wrote:
> Hmm.. I ve a stupid question now..
> Can't we use RemoteServiceServlet.getThreadLocalRequest().getSession()
> to get the current session?
> I found 'using the session' working in GWT 1.5.
>
> On Dec 1, 9:31 am, jhulford <[EMAIL PROTECTED]> wrote:
>
> > Another thing you can do in order to always send your session
> > identifier as part of your request is use the RequestBuilder and add
> > the identifier as a request header.
>
> > RequestBuilder requestBuilder = new RequestBuilder("POST", "/
> > myServletUrl");
> > RequestBuilder.setHeader("X-Session-Id", mySessionIdFromCookie);
>
> > On Dec 1, 8:31 am, gregor <[EMAIL PROTECTED]> wrote:
>
> > > Hi Patrick,
>
> > > I think you probably want to call the static async instance according
> > > to usual RPC protocol, i.e. in this case SecureRemoteServiceAsync,
> > > otherwise you might get confused as to what's going on
>
> > > > --- Code, I hope this formats reasonably in the post. ---
> > > > public interface SecureRemoteService extends RemoteService {
>
> > > > /**
> > > >  * Utility/Convenience class.
> > > >  * Use SecureRemoteService.Async.getInstance() to access static
> > > > instance of IpsvRmapServiceAsync
> > > >  */
> > > > public static class SecureRemoteServiceAsync {
> > > > private static Async ourInstance = null;
>
> > > > public static synchronized SecureRemoteServiceAsync 
> > > > getInstance() {
> > > > if (ourInstance == null) {
> > > > ourInstance = 
> > > > (SecureRemoteServiceAsync) GWT.create(SecureRemoteService.class);
> > > > }
> > > > return ourInstance;
> > > > }
>
> > > > public void setServiceEntryPoint(String entryPoint) {
> > > > // This is where the magic happens.
> > > > ((ServiceDefTarget) 
> > > > ourInstance).setServiceEntryPoint
> > > > (GWT.getModuleBaseURL() + entryPoint + "?sessionID=" + getSessionID
> > > > ());
> > > > }
>
> > > > private String getSessionID() {
> > > > // Do stuff to get sessionID
> > > > return "SessionID";
> > > > }
> > > > }}
>
> > > > --- End of code ---
>
> > > Then you use it like so in code:
>
> > > SecureRemoteServiceAsync async
> > >  = SecureRemoteServiceAsync.App.getInstance(); //
> > > the URL will now have the SessionID param
> > > async.someMethod(param, new secureRemoteServiceCallback());
>
> > > Note that this does not work across the board, you have to do this
> > > once for each RPC service separately (i.e. once per RPC service
> > > interface declared), but if you extend RemoteServiceServlet and
> > > override the processCall() method to grab and check sesionID
> > > parameter, then use this extended RemoteServiceServlet this for all
> > > your RPC services, they will all validate the sessionID.
>
> > > I guess it's a matter of taste and situation, but I think I prefer the
> > > second method (the Command pattern variation) becasue a) if you want
> > > to change the way you handle this session thing, you just do it the
> > > Payload base class and the extended RemoteServiceServlet.processCall
> > > (), you do not have to change all your RPC Async interfaces and b)
> > > this Payload pattern is useful for a lot of other reasons in handling
> > > objects over the wire. I think it deals with the XSRF issue too (but
> > > I'm sure Reinier will nail me to wall again if wrong!)
>
> > > regards
> > > gregor
>
> > > > From what I can see, this should work if the interface extends the
> > > > SecureRemoteService instead of the normal one. However, to properly
> > > > create an instance of this class, the programmer now has to do
> > > > something different from the normal procedure. Instead of calling the
> > > > normal GWT.create(someService.class) and casting it to the Async
> > > > version, he has to call on GWT.create(someService.Async.class). This
> > > > means he has to modify all of his proxy creation statements as well.
>
> > > > Is there any way to get around this?
>
> > > > Thanks, Patrick
>
> > > > PS

How to add Tree listener for single, double & right click mouse events?

2008-12-02 Thread David Hoffer

I see that GWT's Tree control only provides single click notification.
 How can I add support for double & right click events?  I see that I
need to add sink events such as Event.ONDBLCLICK and I see that I get
notified via the onBrowseEvent() method.

The question is, how can I convert the event object passed into
onBrowseEvent() into a TreeItem object?  It seems what is passed back
is a lower level DOM object and what is needed is the TreeItem this
represents.

How can I convert Event object type?

-Dave

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



Is GWT is good alternative for replacing presentaion layer alone?

2008-12-02 Thread Arul

Hi,
  In order to add GWT component into existing web page (JSP) need the
following import


Also it need to copy lots of files like
com.example.foo.Foo.nocache.js  ( Converted Java to JS, which is ok)
2B33C4B83AD91930A72E45D14175220D.cache.html
2DF0A6AF4E29204E9AECB33685D38187.cache.html
etc..

-
Here my clarification is, suppose if you want to plug in struts into
existing application we will be doing descriptor changes and copule of
files for storing action mappings.

Is above kind of mechanism is not there in GWT?

Thanks
Arul





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



No Sample application found for displaying server side values

2008-12-02 Thread Arul

Hi,
   I am unable to find any sample which explains displaying of back-
end values in GWT tools(tree,list etc).

   Could anyone help me how to display database value which is stored
in session in servlet after calling delegate to DAO.
 From Servlet usually redirects to JSP where stored value is
displayed.

  Anticipating valuable reply.

Thanks
Arul

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



How to configure GWT in existing application

2008-12-02 Thread Arul

Hi,
   Want to replace existing presentaion layer alone by GWT.
Current application stores session value in servlet for processing in
JSP.

The same way , How a GWT tool will be used to diplay those values
stored in session(servlet)?


Thanks
Arul
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Interesting question:how can I get the rownumber of a cell that contain a button when I click this ?

2008-12-02 Thread alex.d

I think i can imagine what Alex meant: the answer is - the easiest way
is to extend Button-class to save the row number while initialising
the table. Not sure if this falls under "no pre-condition".

On 2 Dez., 13:22, mon3y <[EMAIL PROTECTED]> wrote:
> Clap your hands if you think we need more info!!!
>
> On Dec 2, 3:24 am, Alex Luya <[EMAIL PROTECTED]> wrote:
>
> >          Remember: no pre-condition,no external variable that defined
> > the location of this button.
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: SecureRemoteService and Servlet. The battle against XSRF.

2008-12-02 Thread quentin

Reiner,

Thanks for the reply. Call me naive/ignorant/stupid/whatever but what
are the security risks associated with using ";jsessionid"? The reason
i ask is because GWT cookie support in safari 4 appears completely
broken. (It's actually not GWT's fault. in safari 4, the js statement
"document.cookie = " doesn't seem to work).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



fundamental design question on font size

2008-12-02 Thread mryilauer

What am I doing wrong? I am building widgets for use throughout the
organization, and when I try to generalize everything, it always seems
like I always need access to the font metrics so I can adjust
positions of widgets based on the user's font size.

I have read the posts about font metrics, but I am not asking how to
do this as much as I am asking:

if getting the font metrics is hard to do, what should I change in my
approach to design so that I don't need them?

Apparently, gwt itself must be getting along without this if an easy
way to get it isn't built in, so there must be something wrong in my
approach that always leads me to the place where I think I need to
know the 'm' size of the current font.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Server Push with GWTEventService

2008-12-02 Thread Miles T.

Quote from the annoucement :
The first public version is v0.9. All features for version v1.0 are
contained and I hope many developers are interested and will use and
test the framework in their applications, so that v1.0 can be reached
soon. GWTEventService is an event-based client-server communication
framework. The client side offers a high-level API with opportunities
to register listeners to the remote server like to a GUI component.
GWTEventService can be used to resolve "old-style" polling calls in
GWT applications with a clean and extensible architecture.

It looks nice, easy to use and well documented : 
http://code.google.com/p/gwteventservice/

Did someone try it ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to design async widget

2008-12-02 Thread raxelo

Hi, Gregor!
Thanks forreply.

I understand that i can't simply use rpc call right in widget event
handler,
but i want to separate this transport/business layer from widget.

My widget simply shows list of items of some class(Group) and provide
control elements
to manupulate them: edit, delete, add etc.

I am simply interested in a approach. maybe there is some standart way
advices

For now - i provide two methods for widget client -
void add(Group)
void onAdd/onSuccessAdd(Group)

maybe there is some more cultural way ? =)

On 2 дек, 13:37, gregor <[EMAIL PROTECTED]> wrote:
> Hi Relaxo,
>
> The simplest way is to make your RPC call from addBtn.onClick() using
> an anonymous Callback where this callback's onSuccess(..) method adds
> the new Group List groups and changes the view as required.
> There may be reasons why this would not meet your requirements, but it
> is not possible to say from your example, i.e. on the face of it you
> do not need the controller interface. There isn't a single "right" way
> to do asynchronous RPC - it is possible to over-engineer it and
> equally it's possible to under-engineer it.
>
> If in fact your situation is more complicated than the example
> (leading to a motivation for using this controller interface),
> probably best to give some idea of the overall problem to get further
> advice and options (of which there are several).
>
> regards
> gregor
>
> On Dec 2, 8:15 am, raxelo <[EMAIL PROTECTED]> wrote:
>
>
>
> > First of all sorry for my english.
>
> > I want to write simple GUIwidgetthat will help me to add and delete
> > some business groops
> > like this.
>
> > public class GroupWidget extends Composite implements ClickListener {
> >           private Controller controller;
> >           private List groups;
>
> >           public GroupWidget(List groups, Controller
> > controller) {
> >                    this.controller = controller;
> >                    //buildwidgetskeleton
> >                    //init structures
> >           }
>
> >           public void onClick(Widgetsender) {
> >                    if(sender == addBtn) {
> >                          //creating group object using entered date
> > such as name, picture etc...
> >                          this.controller.add(group);
> >                    }
> >           }
>
> >           static interface Controller  {
> >                Group add(Group group);
> >                void delete(Group group);
> >           }
>
> > }
>
> > but, i can't understand how it must work with async requests
>
> > Application that will use thiswidgetwill use async requests, so
> > methods in controller must have void as
> > a return type, but how can i notifywidgetthat  group is created ?
> > Should i add  such methods towidget
> > onAdd(Group newlyCreatedGroup) and
> > onDelete() , that controller implementor have to call after receiving
> > a response or maybe there is some
> > approach or pattern.
>
> > Thanks a lot
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to overcome this warning (upgrading issue)?

2008-12-02 Thread LoneWolf

Hey,
I want to upgrade my GWT application from GWT 1.4.6 to GWT 1.5.3
What I'm facing is this warning:

[WARN] 'mydomain.UsersList' is not a generic type; only generic types
can be parameterized
com.google.gwt.core.ext.typeinfo.BadTypeArgsException:
'mydomain.UsersList' is not a generic type; only generic types can be
parameterized

Here is my code:


//In the RPC interface
/**
 * * @gwt.typeArgs 
 */
public UsersList loadUsers(int start);

public class UsersList implements IsSerializable {
  private List users;


Would you please tell me how to overcome this?
Thanks for your time.


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



Re: Who can read chinese?

2008-12-02 Thread mon3y

http://babelfish.yahoo.com/

On Nov 28, 3:29 pm, Adam T <[EMAIL PROTECTED]> wrote:
> http://translate.google.com/translate_t#
>
> Above link might help
> //A
>
> On 28 Nov, 05:16, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
> > I need help ,  i hava some API of YI language  , but all words is
> > china words ,  who can help me?ASAP , thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Aspect-Oriented Programming for GWT, GWTENT-0.5 now available for downloa

2008-12-02 Thread elninio

Hi everyone,

I see that GWTENT-ACEGI is being forgotten.
I can't find any thread on it.
Actually I'm trying to use acegi in my GWT App, but I got errors like:

No source code is available for type
com.gwtent.acegi.client.UserLoginRpcAsync; did you forget to inherit a
required module?

No source code is available for type
com.gwtent.acegi.client.UserLoginRpc; did you forget to inherit a
required module?

THanks in advance.

Regards.


On 24 nov, 11:15, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi, Ping,
>   Thank you. the implement is using plain java and generators. AspectJ
> expression request AspectJ jars, but this just request in Compile
> time.
> James
>
> On 11月24日, 下午9时51分, Ping <[EMAIL PROTECTED]> wrote:
>
> > Hi James,
>
> > Great Work!
>
> > I'll try it as soon as I can.
>
> > Some questions: you implemented it using plain java and generators, or
> > are you using some javascript to the mix?
>
> > On Nov 24, 8:26 am, Ananda <[EMAIL PROTECTED]> wrote:
>
> > > Thanks James,
>
> > > Is there a way to implement without using third party jar files?
>
> > > I am using GWT 1.5.3 version..is it possible to implement the same in GWT
> > > alone?
>
> > > Ananda
>
> > > -Original Message-
> > > From: Google-Web-Toolkit@googlegroups.com
>
> > > [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> > > com
> > > Sent: Monday, November 24, 2008 1:38 PM
> > > To: Google Web Toolkit
> > > Subject: Re: Is they a way to create minimise buttons?
>
> > > Hi, Ananda
>
> > >   May you asked at wrong place? If you don't mind import thirdparty
> > > project, you can have a look gwt-ext or mywidget project, it's very
> > > easy to implement your require.
>
> > > James
>
> > > On 11月24日, 下午6时42分, Ananda <[EMAIL PROTECTED]> wrote:
> > > > Hi Every one
>
> > > > Greeting to everyone..
>
> > > > I want to create a popup like a screens in windows.
>
> > > > More precisely I am require to create a popup having close , minimize,
> > > > maximize buttons.
>
> > > > Is there any way to create these? Can any give me a hint so that I can
> > > work
> > > > on that?
>
> > > > Regards
> > > > Ananda
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Interesting question:how can I get the rownumber of a cell that contain a button when I click this ?

2008-12-02 Thread mon3y

Clap your hands if you think we need more info!!!

On Dec 2, 3:24 am, Alex Luya <[EMAIL PROTECTED]> wrote:
>          Remember: no pre-condition,no external variable that defined
> the location of this button.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to run a signed java applet in hosted mode of gwt??

2008-12-02 Thread mon3y

ah a quick one..

not going to happen, :).

I'm running a signed applet myself and believe when i saynot going
to happen(unless, someone posts after this...with "No...it is possible
all you have to do is hack the crap out of eclipse and modify some
lines in the GWT compiler while doing a double tuck, reverse
somersault with a half twist."then maybe)

HTH, ; )

On Dec 2, 12:22 pm, ship <[EMAIL PROTECTED]> wrote:
> hi,
>
> In my application, i want to run a signed java applet in hosted mode,
> this signed java applet is running succesfully in browser mode but
> when i run it on hosted mode it gives errors.
> Currently i am using gwt-1.4.62.
>
> Pl try to resolve this problem
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: SecureRemoteService and Servlet. The battle against XSRF.

2008-12-02 Thread Reinier Zwitserloot

Answers to gregor, Patrick, and quentin in this post.

Hey  gregor -

some coward has probably taken exception to some light hearted ribbing
and instead of either playing ball or doing something vaguely
constructive, such as asking Sumit to protect his honour for him, he
instead did a search for my name to vote everything I've recently
written a 1-star, presumably because this act of revenge makes him or
her feel better. Chances are these posts were voted on without even
reading them. I therefore doubt it's got anything to do with my
security advice itself. Possibly the way I've been expressing it.

This certainly isn't the first time it happened.


Patrick:

Mea culpa - for some reason I was thinking that the objects tossed
across the wire had to wrapped in RPC interfaces and '-Async' classes.
Its actually the servlets that have to be. I don't see an easy way to
generify this. Seems like adding 'sessionID' as a parameter to -every-
-single- RFC-accessible method is required to make this work right. I
would at least make an easy method to fish the sessionID out of a
cookie+cache it on the client, and I'd make an easy method on the
server side to check it.

Client:

public class XSRF {
private static String sessionId;
public static String getSessionId() {
if ( sessionId == null ) sessionId = Cookies.getCookie
("jsessionid");
//the actual name of the cookie depends on your web stack.
//Just get all cookies and print their names to figure this
out, then hardcode it.
}
}

and on the server, add a method that does what I'm going to answer to
quentin:

quentin:

There's a slight risk you forget to check. It would certainly be an
excellent plan if your webstack supports plugging into it, adding that
check. (or if it doesn't, just hack it in - all hail Open Source as
the one true way for libraries). For reasons that aren't too
interesting, the apps I've written so far had other session
constraints which meant I re-invented the wheel anyway. However, I did
some checking and it turns out your strategy seems easiest - the
latest servlet spec makes it rather hard to query the session system
with a given ID.

To be a bit more verbose:

HttpSession session = request.getSession();
if ( !session.isNew() ) {
if ( !session.getId().equals
(sessionIDPassedInExplicitlyBySender) ) {
//XSRF detected.
response.sendError(response.SC_FORBIDDEN, "Whups. If you're
seeing this, please contact us.");
return;
}
}

jossey: Reread the entire thread. The servlet spec's own session
system is spectacularly stupid. It is either XSRF-unsafe and uses
cookies, or it is blatantly unsafe and stuffs session IDs in the URL
(I *STILL* see this in modern webapps - check for ;jessionid appended
to the URL, bizarre considering that security gurus have explained the
problem with this approach for over 5 years now). If it does use
cookies, it won't protect against XSRF, basically because you can't do
that without relying on javascript. Fortunately, using GWT means
you've already accepted that your users MUST have javascript up, so we
GWT users can solve XSRF the easy way, with javascript.



On Dec 1, 6:22 pm, gregor <[EMAIL PROTECTED]> wrote:
> Someone seems to disapprove of Reinier's views here and appears to
> have awarded a "poor" rating to each of his contributions to this
> thread. This is presumably calculated to deter the community from
> taking what he says seriously. For my part, especially in the light of
> the many other contributions he has made to this group on the subject
> of security, I would comment Reinier has almost certainly forgotten
> more than I have ever known about web security.
>
> Now one thing I could do is add an excellent rating here to each of
> his posts to balance things up, but that's just playing silly buggers,
> isn't it. Teenage/crank YouTube stuff.
>
> So whoever you are, why don't you state your case openly? I'd guess
> Reinier himself doesn't give two hoots about this (and probably
> wouldn't admit it if he did) but I do not think the community is best
> served by this sort of shenanigans. For the little I myself know about
> web and network security, Reinier's posts chime right in with it. If
> you think he's wrong, off the wall or something, then explain - oh,
> and at something even half approaching the detail.
>
> On Dec 1, 2:31 pm, jhulford <[EMAIL PROTECTED]> wrote:
>
> > Another thing you can do in order to always send your session
> > identifier as part of your request is use the RequestBuilder and add
> > the identifier as a request header.
>
> > RequestBuilder requestBuilder = new RequestBuilder("POST", "/
> > myServletUrl");
> > RequestBuilder.setHeader("X-Session-Id", mySessionIdFromCookie);
>
> > On Dec 1, 8:31 am, gregor <[EMAIL PROTECTED]> wrote:
>
> > > Hi Patrick,
>
> > > I think you probably want to call the static async instance according
> > > to usual RPC protocol, i.e. in this case SecureRemoteServiceAsync,
> > > otherwise yo

Re: Client did not send nnn bytes as expected

2008-12-02 Thread Lothar Kimmeringer

Amit Kasher schrieb:

> However, the disruption seems to occur somewhere
> lower level in the server OS, or more likely before the server machine
> altogether - some network equipment or client side code / browser.

I doubt that there is a bug in the lower levels of an OS that lead
to the truncation of TCP-packets only when they come from a GWT-
application being executed inside an Internet Explorer.

With the sniffed packets I was hoping to see a pattern (if the
application is calling function x, y and z the effect starts
to be observed, etc.) With that you might be able to reproduce
the effect on a local machine allowing you to initiate further
actions like installing a sniffer on that box to see if the
packets are sent truncated or why the IE is getting a hickup.


Regards, Lothar

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



viewport resize listener

2008-12-02 Thread Litty Preeth
Hi All,

Anybody know how to implement a viewport resize listener? Basically I have a
glass panel (light box effect). I want to notify this glass panel whenever
my RootPanel size gets changed so that I can resize my glass panel to fillup
the area.

Regards,
Litty Preeth

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



Re: How to design async widget

2008-12-02 Thread gregor

Hi Relaxo,

The simplest way is to make your RPC call from addBtn.onClick() using
an anonymous Callback where this callback's onSuccess(..) method adds
the new Group List groups and changes the view as required.
There may be reasons why this would not meet your requirements, but it
is not possible to say from your example, i.e. on the face of it you
do not need the controller interface. There isn't a single "right" way
to do asynchronous RPC - it is possible to over-engineer it and
equally it's possible to under-engineer it.

If in fact your situation is more complicated than the example
(leading to a motivation for using this controller interface),
probably best to give some idea of the overall problem to get further
advice and options (of which there are several).

regards
gregor

On Dec 2, 8:15 am, raxelo <[EMAIL PROTECTED]> wrote:
> First of all sorry for my english.
>
> I want to write simple GUI widget that will help me to add and delete
> some business groops
> like this.
>
> public class GroupWidget extends Composite implements ClickListener {
>           private Controller controller;
>           private List groups;
>
>           public GroupWidget(List groups, Controller
> controller) {
>                    this.controller = controller;
>                    //build widget skeleton
>                    //init structures
>           }
>
>           public void onClick(Widget sender) {
>                    if(sender == addBtn) {
>                          //creating group object using entered date
> such as name, picture etc...
>                          this.controller.add(group);
>                    }
>           }
>
>           static interface Controller  {
>                Group add(Group group);
>                void delete(Group group);
>           }
>
> }
>
> but, i can't understand how it must work with async requests
>
> Application that will use this widget will use async requests, so
> methods in controller must have void as
> a return type, but how can i notify widget that  group is created ?
> Should i add  such methods to widget
> onAdd(Group newlyCreatedGroup) and
> onDelete() , that controller implementor have to call after receiving
> a response or maybe there is some
> approach or pattern.
>
> Thanks a lot
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: LiveGrid problem

2008-12-02 Thread elninio

Thank you angushirose for your answer.

I've solved the problem by doing what you told me.

so, whenever I get this error, I figure out that there is a problem in
accessing the javaScript Files.

Thank you so much.

Regards.

On 25 nov, 09:01, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
> I think you have to update your gwt.xml file AND the entry page
> e.g. MyApp.html with references to the javascript for the
> BufferedReaders etc. I've pasted mine below:
>
> From gwt.xml:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> From .html
>
>  script>
>