Re: novice question

2008-10-26 Thread Ian Bambury
Hi Shaul,
Generally, GWT has only one html page. Everything is done by showing and
hiding stuff.

For example, you have a menu panel on the left and a display area on the
right. When you click a menu item, your program swaps out the current
display and swaps in the new one. The actual html file is the same one and
is not reloaded, but you hide the 'home page' widget and show the 'about us'
widget.

If by 'two modules' you mean two entrypoint classes, then all the entrypoint
classes get run when you start the application. If you mean something else,
then yuo'll have to explain a bit more about what you have done.

Ian

http://examples.roughian.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
-~--~~~~--~~--~--~---



How to submit my gadget to igoogle page

2008-10-26 Thread zujee

Hi all,
Iam trying to load HelloGadgets example avilable in gwt-gadgets.jar.
But iam not able to run in eclipse.

Iam confused with the URL which I want to upload also.

i tried like com.myapp.gadget.HelloGadgets.nocache.js. but error
returns.

Can somebody please help me how can I run the sample appliation in
eclispe as well as upload in  igoogle

thanks in advance
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
-~--~~~~--~~--~--~---



Re: Does panel has border?

2008-10-26 Thread hezjing
To add the borders to a panel, we will create a style in CSS:

.test {
  background-color: red;
  border: thin solid #00;
  margin: 10px;
}

Then set the style to a panel like this:

FlowPanel panel = new FlowPanel();
panel.setWidth("100%");
panel.setHeight("100%");
// panel.addStyleDependentName("test") does not work?
panel.setStyleName("test");


Why the above code works with setStyleName() but nothing happen when calling
addStyleDependentName()?


On Mon, Oct 27, 2008 at 12:43 AM, hezjing <[EMAIL PROTECTED]> wrote:

> Hi
> How can I draw a border, and set the background color of a FlowPanel?
>
> I think this should be done via CSS (right?) but unfortunately, I don't
> find the CSS style rules from the API doc.
>
>
> --
>
> Hez
>



-- 

Hez

--~--~-~--~~~---~--~~
You received 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: RPC + Serializable objects

2008-10-26 Thread Ravi M

Suri,

No, I don't have any experience with GWT + Struts or indeed Struts
itself. I'm fairly new to the whole web application development domain
itself, sorry I can't help out more. Although if you search the group
archives and the web you'll probably find lots of information on GWT +
Struts, maybe even what you're looking for.

Regards
Ravi

On Oct 27, 1:27 am, Suri <[EMAIL PROTECTED]> wrote:
> Hey Ravi,
> Thanks for the detailed input. I should have updated this for
> everyone's benefit and I'll try to get into that habit. Much like you
> mentioned, I found that XmlBeans would not be a viable approach with
> the GWT/RPC mechanism. Although, without thinking deeper about the
> datatypes, I attributed it to the fact that the source that's
> generated extends from XmlObject and others, which I'm sure are
> contained in jars of their own and ultimately identifying and
> downloading the source for each of these items would probably be a
> really bad idea :). Thus, I'm doing exactly what you're doing at the
> moment i.e creating Transfer Objects to contain the bean data.
>
> As for the Serializable issue, you could be right but isn't it also
> that GWT is trying to deprecate isSerializable so, ideally they do
> want to be able to support as much of the Standard java serializable
> classes if not all? So, not sure if we should or should not be using
> the interface. I guess that's a personal decision though.
>
> Since you're doing somewhat similar stuff, a question for you now.
> Have you had any experience in trying to integrate GWT into any
> framework? I ask because I currently have a Struts framework for the
> application that's being enhanced by adding this GWT module. And
> "ideally" I'd like not to move too far from the Struts framework so
> any incoming requests should be rerouted from the custom
> RemoteServiceServlet to be then defined at the struts-config so that
> the Action-Delegate-DAO structural integrity is maintained. i.e
>
> Browser <---> GWT (Client) <---> GWT (Server - RPC)  <>
> SomeAction
>
> Thanks for any info.
>
> Suri
> On Oct 25, 12:05 pm, Ravi M <[EMAIL PROTECTED]> wrote:
>
> > Suri
>
> > I strongly suspect (but cannot confirm!) that you won't be able to use
> > XML Beans classes directly in your RPC. As Ian mentioned in one of his
> > posts, classes such as BigDecimal, BigInteger etc. are not GWT
> > serializable out of the box. The generated Java type for XML schema
> > "integer" and "decimal" members are respectively BigInteger and
> > BigDecimal. Further, XML schema "dateTime" and "time" are
> > java.util.Calendar and "duration" is an XML Beans specific type called
> > org.apache.xmlbeans.GDuration which is also probably not GWT
> > serializable. Apart from all this there is the fact that the code
> > artifacts generated by XML Beans form a pretty hairy bunch of
> > interfaces, implementations and inner classes, and I am not sure GWT
> > will be able to serialize them easily.
>
> > Am working on an app which uses XML Beans generated data model objects
> > on the server, and had to unfortunately create "bean like" data
> > transfer objects for RPC, not to mention ugly code to convert from one
> > to the other. In hindsight, XML Beans was probably a bad decision, and
> > am considering using something like JibX which might work better in
> > terms of performance, GWT serializability etc.
>
> > That being said, if you _do_ get XML Beans GWT serialization to work I
> > will be very very interested :-)
>
> > A final tangential but related point that has already made an
> > appearance in this thread: It _may_ be better to continue marking GWT
> > serializable objects with IsSerializable rather than Serializable,
> > just to be very clear that the serializability in question is GWT
> > serializability. There's a slight danger that if Serializable becomes
> > the marker interface of choice widely, people might start assuming
> > that all java.io.Serializable objects are GWT serializable.
>
> > Ravi
>
> > Apart from this, XML Beans generated code for XML schema "d
>
> > On Oct 17, 6:44 am, Suri <[EMAIL PROTECTED]> wrote:
>
> > > Hey Ian,
> > > Thanks again.
>
> > > 1) XmlBeans are an apache open source technology whereby we can define
> > > the bean in an XML format (called a xml schema) and have the class
> > > files be generated at compile time. Thus we can go ahead and use them
> > > like regular beans without having the hassle of having to painfully
> > > create mundane code for beans each time. And that the code is
> > > automatically generated for them makes maintaining them (deleting/
> > > adding/modifying properties) easy.
>
> > > Anyway, back to the issue. I see the xml beans jar as one viable
> > > option. Since you said that the source is what is required, i presume
> > > I don't need to worry about the compiled class files, so what i can do
> > > then is possibly, create the xmlbeans.gwt.xml and add the xml beans
> > > source folder to the classpath of the GWT compiler i

Re: SetAccesskey question...

2008-10-26 Thread jhpark

thank for your answer..

But I don't understand your answer. May be my question is strange...
( english problem.. )

I know keyboard event. ( keyPress, keyDown etc )

I want know is that setAccessKey()...

setAccessKey event is static.. ( => mouse focus not need )

btn.addKeyEvent( ~~ ) is local.. ( => mouse focus need )

example))
short cut :  Ctrl + F

I want CTRL + F => alt + f  + c

thank... I need your help.






On 10월24일, 오후6시36분, bc <[EMAIL PROTECTED]> wrote:
> you will need to add a keyboard listener to the button.  Check out the
> doc 
> here:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g
>
> Button will source the keyboard events - the modifiers will be passed
> to you via a combination of the bits defined by MODIFIER_SHIFT,
> MODIFIER_CTRL...
>
> On Oct 23, 11:52 pm, jhpark <[EMAIL PROTECTED]> wrote:
>
> > Sorry I can't write english well...
>
> > Button btn = new Button();
>
> > btn.setAccessKey('r');  <- only 'r';
>
> > alt + r --> button work...
>
> > but I want 'r' and ' t'
> > alt + r + t ==> button work..
>
> > and
> > alt + ctrl + r ==> button work...
>
> > It is posibble ?
>
> > thank...
--~--~-~--~~~---~--~~
You received 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: novice question

2008-10-26 Thread ajay jetti
lets say i've added a button and when push on it i want to link to
other page - can i do it ?)

yes you can do it, type gwt examples in google and go for "listeners"  in
search results

another question is why when i've two modules both are appear in the
same page (their widgets)

What do u mean by " Two Modules"

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
-~--~~~~--~~--~--~---



Re: PureMVC

2008-10-26 Thread Sammi

Hi Thomas,

I've seen some widgets be injected other widgets but not a single
event listener (or I missed something).

It's true that for my project I only injected some widgets on a main
panel.  That's the project specific choice. Because it's more easy to
do that.

I'am not very clear your use case now. Let me have a guess for the use
case:

1. We have two widgets w1 and w2, both of them would fire Event
clickEvent.

2. We need one Event Listener named CommonEventListener, we expect it
can be used to process clickEvent fired from both w1 and w2.

3. We hope the container, that is Gin to inject when system
initialize. So refractor the code like.
W1 w1 = new W1();
w1.addClickEventListener(new CommonEventListener(p1,p2){});

W2 w2 = new W2();
w2.addClickEventListener(new CommonEventListener(p1,p2){});
by:

  CommonEventListener aCommonEventListener =
injector.getCommonEventListener();
  W1 w1 = injector.getW1();
  w1.addClickEventListener(aCommonEventListener);
  W2 w2 = injector.getW2();
  w2.addClickEventListener(aCommonEventListener);

Because polymorphism is not usable in GWT, we can not use W1 or W2's
common interface or base class as CommonEventListener. My suggestion
is:

private W1 w1;
private W2 w2;
@inject
public CommonEventListener(W1 w1,W2 w2){
   //w1 and w2 should be created by ginmodule as singleton instance.
   this.w1 = w1;
   this.w2 = w2;
}

public void onClick(Event e){
   if(e.getSource() == w1){
  //w1.update();
   }else if(e.getSource() == w2){
  //w2.update();
   }
}

I don't think it's an perfect solution(you must change the parameter,
as you said, use List is same like ). But it should be able to
manage the listener and ui creation by container and unit test could
be implemented easily.

Hope that is not confusing.

Sammi
http://code.google.com/p/openorg

On Oct 26, 8:33 pm, "yunhui song" <[EMAIL PROTECTED]> wrote:
> Hi Thomas,
>
> >     I've seen some widgets be injected other widgets but not a single
>
> event listener (or I missed something).
>
> It's true that for my project I only injected some widgets on a main panel.
>  That's the project specific choice. Because it's more easy to do that.
>
> I'am not very clear your use case now. Let me have a guess for the use case:
>
> 1. We have two widgets w1 and w2, both of them would fire Event clickEvent.
>
> 2. We need one Event Listener named CommonEventListener, we expect it can be
> used to process clickEvent fired from both w1 and w2.
>
> 3. We hope the container, that is Gin to inject when system initialize. So
> refractor the code like.
>     W1 w1 = new W1();
>     w1.addClickEventListener(new CommonEventListener(p1,p2){});
>
>     W2 w2 = new W2();
>     w2.addClickEventListener(new CommonEventListener(p1,p2){});
> by:
>
>   CommonEventListener aCommonEventListener =
> injector.getCommonEventListener();
>   W1 w1 = injector.getW1();
>   w1.addClickEventListener(aCommonEventListener);
>   W2 w2 = injector.getW2();
>   w2.addClickEventListener(aCommonEventListener);
>
> Because polymorphism is not usable in GWT, we can not use W1 or W2's common
> interface or base class as CommonEventListener. My suggestion is:
>
> private W1 w1;
> private W2 w2;
> @inject
> public CommonEventListener(W1 w1,W2 w2){
>    //w1 and w2 should be created by ginmodule as singleton instance.
>    this.w1 = w1;
>    this.w2 = w2;
>
> }
>
> public void onClick(Event e){
>    if(e.getSource() == w1){
>       //w1.update();
>    }else if(e.getSource() == w2){
>       //w2.update();
>    }
>
> }
>
> I don't think it's an perfect solution(you must change the parameter, as you
> said, use List is same like ). But it should be able to manage the
> listener and ui creation by container and unit test could be implemented
> easily.
>
> Hope that is not confusing.
>
> Sammi
--~--~-~--~~~---~--~~
You received 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: PureMVC

2008-10-26 Thread yunhui song
Hi Thomas,

> I've seen some widgets be injected other widgets but not a single
>
event listener (or I missed something).


It's true that for my project I only injected some widgets on a main panel.
 That's the project specific choice. Because it's more easy to do that.

I'am not very clear your use case now. Let me have a guess for the use case:

1. We have two widgets w1 and w2, both of them would fire Event clickEvent.

2. We need one Event Listener named CommonEventListener, we expect it can be
used to process clickEvent fired from both w1 and w2.

3. We hope the container, that is Gin to inject when system initialize. So
refractor the code like.
W1 w1 = new W1();
w1.addClickEventListener(new CommonEventListener(p1,p2){});

W2 w2 = new W2();
w2.addClickEventListener(new CommonEventListener(p1,p2){});
by:

  CommonEventListener aCommonEventListener =
injector.getCommonEventListener();
  W1 w1 = injector.getW1();
  w1.addClickEventListener(aCommonEventListener);
  W2 w2 = injector.getW2();
  w2.addClickEventListener(aCommonEventListener);

Because polymorphism is not usable in GWT, we can not use W1 or W2's common
interface or base class as CommonEventListener. My suggestion is:

private W1 w1;
private W2 w2;
@inject
public CommonEventListener(W1 w1,W2 w2){
   //w1 and w2 should be created by ginmodule as singleton instance.
   this.w1 = w1;
   this.w2 = w2;
}

public void onClick(Event e){
   if(e.getSource() == w1){
  //w1.update();
   }else if(e.getSource() == w2){
  //w2.update();
   }
}

I don't think it's an perfect solution(you must change the parameter, as you
said, use List is same like ). But it should be able to manage the
listener and ui creation by container and unit test could be implemented
easily.

Hope that is not confusing.

Sammi

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



Fwd: PureMVC

2008-10-26 Thread yunhui song
-- Forwarded message --
From: yunhui song <[EMAIL PROTECTED]>
Date: Sun, Oct 26, 2008 at 8:26 PM
Subject: Re: PureMVC
To: Google-Web-Toolkit@googlegroups.com


Hi Thomas,

> I've seen some widgets be injected other widgets but not a single
>
event listener (or I missed something).


It's true that for my project I only injected some widgets on a main panel.
 That's the project specific choice. Because it's more easy to do that.

I'am not very clear your use case now. Let me have a guess for the use case:

1. We have two widgets w1 and w2, both of them would fire Event clickEvent.

2. We need one Event Listener named CommonEventListener, we expect it can be
used to process clickEvent fired from both w1 and w2.

3. We hope the container, that is Gin to inject when system initialize. So
refractor the code like.
W1 w1 = new W1();
w1.addClickEventListener(new CommonEventListener(p1,p2){});

W2 w2 = new W2();
w2.addClickEventListener(new CommonEventListener(p1,p2){});
by:

  CommonEventListener aCommonEventListener =
injector.getCommonEventListener();
  W1 w1 = injector.getW1();
  w1.addClickEventListener(aCommonEventListener);
  W2 w2 = injector.getW2();
  w2.addClickEventListener(aCommonEventListener);

Because polymorphism is not usable in GWT, we can not use W1 or W2's common
interface or base class as CommonEventListener. My suggestion is:

private W1 w1;
private W2 w2;
@inject
public CommonEventListener(W1 w1,W2 w2){
   //w1 and w2 should be created by ginmodule as singleton instance.
   this.w1 = w1;
   this.w2 = w2;
}

public void onClick(Event e){
   if(e.getSource() == w1){
  //w1.update();
   }else if(e.getSource() == w2){
  //w2.update();
   }
}

I don't think it's an perfect solution(you must change the parameter, as you
said, use List is same like ). But it should be able to manage the
listener and ui creation by container and unit test could be implemented
easily.

Hope that is not confusing.

Sammi










On Sun, Oct 26, 2008 at 6:50 PM, Thomas Broyer <[EMAIL PROTECTED]> wrote:

>
>
> On 27 oct, 00:09, "yunhui song" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >   Actually, Gin is used to implements Ioc Container. It can bind
> everything
> > not only event Listener.
> >
> >   Guice or Spring can do that naturally, but because GWT can not support
> > Java reflection, such as forClass("className").getInstance. So Gin use
> > generic and annotation to do that.
>
> Sorry, I should have been clearer: I know what Guice (and Gin) and
> Spring are. Just that they cannot AFAIK inject listeners (i.e. call
> some addXListener method, eventually several times on a single
> instance). Of course you can use method injection with a
> setXListeners(List) method (should be supported by Gin as
> of today) but I wouldn't call it "injecting event listeners"; or
> inject event sources or event targets but that's not flexible at all
> (why having "event listeners" in this case, just keep references to
> the injected widgets and call the appropriate methods on them)
>
> >   I have a open source project to do that.  GinModule and GindInjector
> are
> > key players for that.
> >   please check out here, that's a real world project.
> >http://openorg.googlecode.com/svn/trunk/magpie
>
> I've seen some widgets be injected other widgets but not a single
> event listener (or I missed something).
> >
>


-- 
Sammi
http://code.google.com/p/openorg



-- 
Sammi
http://code.google.com/p/openorg

--~--~-~--~~~---~--~~
You received 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: PureMVC

2008-10-26 Thread yunhui song
Hi Thomas,

> I've seen some widgets be injected other widgets but not a single
>
event listener (or I missed something).


It's true that for my project I only injected some widgets on a main panel.
 That's the project specific choice. Because it's more easy to do that.

I'am not very clear your use case now. Let me have a guess for the use case:

1. We have two widgets w1 and w2, both of them would fire Event clickEvent.

2. We need one Event Listener named CommonEventListener, we expect it can be
used to process clickEvent fired from both w1 and w2.

3. We hope the container, that is Gin to inject when system initialize. So
refractor the code like.
W1 w1 = new W1();
w1.addClickEventListener(new CommonEventListener(p1,p2){});

W2 w2 = new W2();
w2.addClickEventListener(new CommonEventListener(p1,p2){});
by:

  CommonEventListener aCommonEventListener =
injector.getCommonEventListener();
  W1 w1 = injector.getW1();
  w1.addClickEventListener(aCommonEventListener);
  W2 w2 = injector.getW2();
  w2.addClickEventListener(aCommonEventListener);

Because polymorphism is not usable in GWT, we can not use W1 or W2's common
interface or base class as CommonEventListener. My suggestion is:

private W1 w1;
private W2 w2;
@inject
public CommonEventListener(W1 w1,W2 w2){
   //w1 and w2 should be created by ginmodule as singleton instance.
   this.w1 = w1;
   this.w2 = w2;
}

public void onClick(Event e){
   if(e.getSource() == w1){
  //w1.update();
   }else if(e.getSource() == w2){
  //w2.update();
   }
}

I don't think it's an perfect solution(you must change the parameter, as you
said, use List is same like ). But it should be able to manage the
listener and ui creation by container and unit test could be implemented
easily.

Hope that is not confusing.

Sammi










On Sun, Oct 26, 2008 at 6:50 PM, Thomas Broyer <[EMAIL PROTECTED]> wrote:

>
>
> On 27 oct, 00:09, "yunhui song" <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >   Actually, Gin is used to implements Ioc Container. It can bind
> everything
> > not only event Listener.
> >
> >   Guice or Spring can do that naturally, but because GWT can not support
> > Java reflection, such as forClass("className").getInstance. So Gin use
> > generic and annotation to do that.
>
> Sorry, I should have been clearer: I know what Guice (and Gin) and
> Spring are. Just that they cannot AFAIK inject listeners (i.e. call
> some addXListener method, eventually several times on a single
> instance). Of course you can use method injection with a
> setXListeners(List) method (should be supported by Gin as
> of today) but I wouldn't call it "injecting event listeners"; or
> inject event sources or event targets but that's not flexible at all
> (why having "event listeners" in this case, just keep references to
> the injected widgets and call the appropriate methods on them)
>
> >   I have a open source project to do that.  GinModule and GindInjector
> are
> > key players for that.
> >   please check out here, that's a real world project.
> >http://openorg.googlecode.com/svn/trunk/magpie
>
> I've seen some widgets be injected other widgets but not a single
> event listener (or I missed something).
> >
>


-- 
Sammi
http://code.google.com/p/openorg

--~--~-~--~~~---~--~~
You received 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: Suggestion: GWT port to Desktop

2008-10-26 Thread Ian Bambury
If you gave a practical example it might help people understand the benefits

Ian

http://examples.roughian.com


2008/10/27 Guy Rouillier <[EMAIL PROTECTED]>

>
> ross wrote:
>
> > Limiting your
> > desktop application to run on a JRE equivalent to that which is
> > emulated by the GWT will by quite funny.  Let's do the time warp baby
> >
>
> Ross, you are thinking too narrowly.  Think of a single code base.  When
> it runs on the desktop, it has access to local file system and other OS
> facilities.  When it runs in a browser like GWT does today, it degrades
> nicely and only loses minimal functionality.  Write once, run anywhere.
>
> But if you'd rather not expand your horizons, that's fine.  Different
> strokes for different folks, as they say.
>
> --
> Guy Rouillier
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Suggestion: GWT port to Desktop

2008-10-26 Thread Guy Rouillier

ross wrote:

> Limiting your
> desktop application to run on a JRE equivalent to that which is
> emulated by the GWT will by quite funny.  Let's do the time warp baby
> 

Ross, you are thinking too narrowly.  Think of a single code base.  When 
it runs on the desktop, it has access to local file system and other OS 
facilities.  When it runs in a browser like GWT does today, it degrades 
nicely and only loses minimal functionality.  Write once, run anywhere.

But if you'd rather not expand your horizons, that's fine.  Different 
strokes for different folks, as they say.

-- 
Guy Rouillier

--~--~-~--~~~---~--~~
You received 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: Deploy RPC on WAMP5 Server

2008-10-26 Thread Jason Essington

GWT-RPC uses Java Servlets on the server side. apache + mod_php  
doesn't directly support servlets, so you'd have to install a servlet  
container as well (tomcat or jetty for instance). however, the better  
option, if the rest of your application is written in PHP would be to  
just forgo GWT-RPC and instead use RequestBuilder and JSON to  
communicate with your server.

-jason


On Oct 26, 2008, at 7:29 AM, Muhannad wrote:

>
> Hi,
>
> I'm building a website using PHP, MYSQL, and Apache (WAMP5 server). In
> addition, I used GWT to create some widgets that access the server
> through RPC. Would you please help me how to deploy my GWT-RPC on the
> WAMP5 server? Do I need to use Apache Tomcat instead of WAMP5?
>
> Thank you.
> >


--~--~-~--~~~---~--~~
You received 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 with the G1

2008-10-26 Thread Aaron

Has anyone ran into any issues with the browser on the G1?  Our site
is pretty much all GWT and the G1 browser seems to not be able to make
RPC calls.  I'm still trying to figure out what is going on, but there
is something bizarre going on.

Like I said the browser on the G1 is behaving like the RPC servlets
are not configured correctly.  However I'm not getting any logging
coming through on the server side.  If anyone has any thoughts let me
know, I just tested out the GWT Kitchen Sink and all of the client
side seems to work, as on my site.  It's just the RPC calls that are
failing.


-Aaron O'Brien
Shawnee Kansas
--~--~-~--~~~---~--~~
You received 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: Enumerating Javascript Overlay Types

2008-10-26 Thread Thomas Broyer


On 26 oct, 16:08, mat <[EMAIL PROTECTED]> wrote:
>
> In Javascript its possible to enumerate Javascript Objects:
>
> e.g:
>
> var my obj = {"key1": "value 1","key2":"value 2", "key3","value3"};
>
> for (var key in obj)
> {
>   var currentValue = obj[key];
>
> };
>
> I would like to know how to do this with Javascript Overlay Types in
> GWT.

Use the same code within a JSNI method.

Eventually you could instanciate a JSONObject to wrap your overlay,
but it has a cost.
--~--~-~--~~~---~--~~
You received 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: PureMVC

2008-10-26 Thread Thomas Broyer


On 27 oct, 00:09, "yunhui song" <[EMAIL PROTECTED]> wrote:
> Hi,
>
>   Actually, Gin is used to implements Ioc Container. It can bind everything
> not only event Listener.
>
>   Guice or Spring can do that naturally, but because GWT can not support
> Java reflection, such as forClass("className").getInstance. So Gin use
> generic and annotation to do that.

Sorry, I should have been clearer: I know what Guice (and Gin) and
Spring are. Just that they cannot AFAIK inject listeners (i.e. call
some addXListener method, eventually several times on a single
instance). Of course you can use method injection with a
setXListeners(List) method (should be supported by Gin as
of today) but I wouldn't call it "injecting event listeners"; or
inject event sources or event targets but that's not flexible at all
(why having "event listeners" in this case, just keep references to
the injected widgets and call the appropriate methods on them)

>   I have a open source project to do that.  GinModule and GindInjector are
> key players for that.
>   please check out here, that's a real world project.
>    http://openorg.googlecode.com/svn/trunk/magpie

I've seen some widgets be injected other widgets but not a single
event listener (or I missed something).
--~--~-~--~~~---~--~~
You received 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: Suggestion: GWT port to Desktop

2008-10-26 Thread ross

this thread makes me laugh :)

I will continue to :

-use pyjamas only in bed
-use GWT for building my sizzling new web app
-use J2SE to write desktop applications

but i'm curious to see where you guys head with this :)  Limiting your
desktop application to run on a JRE equivalent to that which is
emulated by the GWT will by quite funny.  Let's do the time warp baby



On Oct 26, 10:29 pm, "L Frohman" <[EMAIL PROTECTED]> wrote:
> We have a similar requirement, to have part of our GWT app also run
> standalone
> on someone's desktop. We haven't done anything yet, except for designing our
> app using MVC. We have an GWT view and a batch testing view and will add
> other views later.
> I saw some posts on PureMVC and PureMVC4GWT (or something like that)
> but I haven't had time to look into them.
>
> --
> From: "lkcl" <[EMAIL PROTECTED]>
> Sent: Sunday, October 26, 2008 12:12 PM
> To: "Google Web Toolkit" 
> Subject: Re: Suggestion: GWT port to Desktop
>
>
>
> > On Oct 26, 4:18 am, GWBasic <[EMAIL PROTECTED]> wrote:
> >> I don't see the point.  GWT is designed to run in a browser;
>
> > it's designed to run in a browser - and with a little bit of work,
> > can be turned into a _desktop_ widget-set with an *identical*
> > interface.
>
> >> if you
> >> want to do a true desktop application, there are plenty of desktop
> >> development systems that are much better.
>
> > do such desktop development systems also allow you to compile the
> > same source code into javascript - unmodified - for running the same
> > application - unmodified - in all major web browsers?
>
> >>  C#, Java, Objective C...
> >> They're a dime a dozen.
>
> > i repeat: do these dime-a-dozen [desktop] development systems also
> > allow the same apps to run in web browsers, unmodified?
>
> >> If all you're looking to do is get rid of the browser chrome and give
> >> a GWT application full-control of the window,
>
> > no.  i'm not looking to _get rid_ of the browser, i'm looking to make
> > the GWT widget API a cross-browser AND cross-desktop AND cross-widget
> > set framework.
>
> >> it's trivial to write a
> >> C# (Windows) and Objective C (Mac) application that will do that.
> >> Both C# and Objective C have browser widgets.
>
> >>  You can make the
> >> browser widget fill up the window and then programmatically direct it
> >> to a URL.  If you're ambitious, you can capture new window events, add
> >> drop-down menus, ect.
>
> > will the application so developed work on linux, MacOSX, windows,
> > embedded ARM-based smartphones, google android, solaris and freebsd?
>
> >> Something to consider is that all of GWT's I/O needs to go to a web
> >> server.
>
> > yes.
>
> >> If you're trying to use GWT for something that will save
> >> files to disk, use a local database, burn CDs, ect, you'll need to use
> >> an embedded web server.  This is much more complicated then using a
> >> true desktop development environment.
>
> > not really, although it is an extremely good point.
>
> > however, you _should_ be designing your app around an MVC concept of
> > some kind _anyway_.
>
> > installing a mini web server on loopback, and using JSONRPC or other
> > XMLHTTPRequest-based communications mechanism is a tiny price to pay
> > for being able to have your app run - unmodified - on every major web
> > browser _and_ on every major desktop platform and several embedded
> > ones, too [that can handle java and can handle webkit].
>
> > l.
--~--~-~--~~~---~--~~
You received 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: gwt-docs-20081026.zip (Google Web Toolkit Documentation)

2008-10-26 Thread GeekyCoder

 Davide ,
thank

On Oct 27, 5:44 am, "Davide Rognoni" <[EMAIL PROTECTED]> wrote:
> Hi All,
> I built an archive of the "Google Web Toolkit" documentation to keep
> on your computer and read while not connected to the Internet.
>
> See the attached file.
>
>  gwt-docs-20081026.zip
> 3246KViewDownload
--~--~-~--~~~---~--~~
You received 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: PureMVC

2008-10-26 Thread yunhui song
Hi,

  Actually, Gin is used to implements Ioc Container. It can bind everything
not only event Listener.

  Guice or Spring can do that naturally, but because GWT can not support
Java reflection, such as forClass("className").getInstance. So Gin use
generic and annotation to do that.

  I have a open source project to do that.  GinModule and GindInjector are
key players for that.
  please check out here, that's a real world project.
http://openorg.googlecode.com/svn/trunk/magpie

Enjoys,
Sammi


On Fri, Oct 24, 2008 at 3:39 AM, Thomas Broyer <[EMAIL PROTECTED]> wrote:

>
>
> On 23 oct, 19:09, "yunhui song" <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> >I have used Guice and Gin to implements MVC framework(like backend
> spring
> > framework). By this way view(ui), event Listener and data
> > access(xmlHttpReqeust wrapped by REST-GWT) can be seperated by three
> layers.
> >
> >Gin module used to initialize and couple all the instance used in the
> GWT
> > module. It's a typicall Ioc container. I found it is rocking by this way
> in
> > my project.
>
> I'm curious how you're binding event listeners using Gin.
> Would you mind sharing some code?
> >
>


-- 
Sammi
http://code.google.com/p/openorg

--~--~-~--~~~---~--~~
You received 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: Suggestion: GWT port to Desktop

2008-10-26 Thread L Frohman

We have a similar requirement, to have part of our GWT app also run 
standalone
on someone's desktop. We haven't done anything yet, except for designing our
app using MVC. We have an GWT view and a batch testing view and will add
other views later.
I saw some posts on PureMVC and PureMVC4GWT (or something like that)
but I haven't had time to look into them.

--
From: "lkcl" <[EMAIL PROTECTED]>
Sent: Sunday, October 26, 2008 12:12 PM
To: "Google Web Toolkit" 
Subject: Re: Suggestion: GWT port to Desktop

>
>
>
> On Oct 26, 4:18 am, GWBasic <[EMAIL PROTECTED]> wrote:
>> I don't see the point.  GWT is designed to run in a browser;
>
> it's designed to run in a browser - and with a little bit of work,
> can be turned into a _desktop_ widget-set with an *identical*
> interface.
>
>> if you
>> want to do a true desktop application, there are plenty of desktop
>> development systems that are much better.
>
> do such desktop development systems also allow you to compile the
> same source code into javascript - unmodified - for running the same
> application - unmodified - in all major web browsers?
>
>>  C#, Java, Objective C...
>> They're a dime a dozen.
>
> i repeat: do these dime-a-dozen [desktop] development systems also
> allow the same apps to run in web browsers, unmodified?
>
>> If all you're looking to do is get rid of the browser chrome and give
>> a GWT application full-control of the window,
>
> no.  i'm not looking to _get rid_ of the browser, i'm looking to make
> the GWT widget API a cross-browser AND cross-desktop AND cross-widget
> set framework.
>
>> it's trivial to write a
>> C# (Windows) and Objective C (Mac) application that will do that.
>> Both C# and Objective C have browser widgets.
>
>
>>  You can make the
>> browser widget fill up the window and then programmatically direct it
>> to a URL.  If you're ambitious, you can capture new window events, add
>> drop-down menus, ect.
>
> will the application so developed work on linux, MacOSX, windows,
> embedded ARM-based smartphones, google android, solaris and freebsd?
>
>
>> Something to consider is that all of GWT's I/O needs to go to a web
>> server.
>
> yes.
>
>> If you're trying to use GWT for something that will save
>> files to disk, use a local database, burn CDs, ect, you'll need to use
>> an embedded web server.  This is much more complicated then using a
>> true desktop development environment.
>
> not really, although it is an extremely good point.
>
> however, you _should_ be designing your app around an MVC concept of
> some kind _anyway_.
>
> installing a mini web server on loopback, and using JSONRPC or other
> XMLHTTPRequest-based communications mechanism is a tiny price to pay
> for being able to have your app run - unmodified - on every major web
> browser _and_ on every major desktop platform and several embedded
> ones, too [that can handle java and can handle webkit].
>
> l.
> > 

--~--~-~--~~~---~--~~
You received 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: RPC + Serializable objects

2008-10-26 Thread Suri

Hey Ravi,
Thanks for the detailed input. I should have updated this for
everyone's benefit and I'll try to get into that habit. Much like you
mentioned, I found that XmlBeans would not be a viable approach with
the GWT/RPC mechanism. Although, without thinking deeper about the
datatypes, I attributed it to the fact that the source that's
generated extends from XmlObject and others, which I'm sure are
contained in jars of their own and ultimately identifying and
downloading the source for each of these items would probably be a
really bad idea :). Thus, I'm doing exactly what you're doing at the
moment i.e creating Transfer Objects to contain the bean data.

As for the Serializable issue, you could be right but isn't it also
that GWT is trying to deprecate isSerializable so, ideally they do
want to be able to support as much of the Standard java serializable
classes if not all? So, not sure if we should or should not be using
the interface. I guess that's a personal decision though.

Since you're doing somewhat similar stuff, a question for you now.
Have you had any experience in trying to integrate GWT into any
framework? I ask because I currently have a Struts framework for the
application that's being enhanced by adding this GWT module. And
"ideally" I'd like not to move too far from the Struts framework so
any incoming requests should be rerouted from the custom
RemoteServiceServlet to be then defined at the struts-config so that
the Action-Delegate-DAO structural integrity is maintained. i.e

Browser <---> GWT (Client) <---> GWT (Server - RPC)  <>
SomeAction

Thanks for any info.

Suri
On Oct 25, 12:05 pm, Ravi M <[EMAIL PROTECTED]> wrote:
> Suri
>
> I strongly suspect (but cannot confirm!) that you won't be able to use
> XML Beans classes directly in your RPC. As Ian mentioned in one of his
> posts, classes such as BigDecimal, BigInteger etc. are not GWT
> serializable out of the box. The generated Java type for XML schema
> "integer" and "decimal" members are respectively BigInteger and
> BigDecimal. Further, XML schema "dateTime" and "time" are
> java.util.Calendar and "duration" is an XML Beans specific type called
> org.apache.xmlbeans.GDuration which is also probably not GWT
> serializable. Apart from all this there is the fact that the code
> artifacts generated by XML Beans form a pretty hairy bunch of
> interfaces, implementations and inner classes, and I am not sure GWT
> will be able to serialize them easily.
>
> Am working on an app which uses XML Beans generated data model objects
> on the server, and had to unfortunately create "bean like" data
> transfer objects for RPC, not to mention ugly code to convert from one
> to the other. In hindsight, XML Beans was probably a bad decision, and
> am considering using something like JibX which might work better in
> terms of performance, GWT serializability etc.
>
> That being said, if you _do_ get XML Beans GWT serialization to work I
> will be very very interested :-)
>
> A final tangential but related point that has already made an
> appearance in this thread: It _may_ be better to continue marking GWT
> serializable objects with IsSerializable rather than Serializable,
> just to be very clear that the serializability in question is GWT
> serializability. There's a slight danger that if Serializable becomes
> the marker interface of choice widely, people might start assuming
> that all java.io.Serializable objects are GWT serializable.
>
> Ravi
>
> Apart from this, XML Beans generated code for XML schema "d
>
> On Oct 17, 6:44 am, Suri <[EMAIL PROTECTED]> wrote:
>
> > Hey Ian,
> > Thanks again.
>
> > 1) XmlBeans are an apache open source technology whereby we can define
> > the bean in an XML format (called a xml schema) and have the class
> > files be generated at compile time. Thus we can go ahead and use them
> > like regular beans without having the hassle of having to painfully
> > create mundane code for beans each time. And that the code is
> > automatically generated for them makes maintaining them (deleting/
> > adding/modifying properties) easy.
>
> > Anyway, back to the issue. I see the xml beans jar as one viable
> > option. Since you said that the source is what is required, i presume
> > I don't need to worry about the compiled class files, so what i can do
> > then is possibly, create the xmlbeans.gwt.xml and add the xml beans
> > source folder to the classpath of the GWT compiler instead of
> > bothering to create and copy a jar right?
>
> > I'll try it and let you know how it goes. Thanks
>
> > Suri
>
> > On Oct 16, 5:07 pm, "Ian Petersen" <[EMAIL PROTECTED]> wrote:
>
> > > On Thu, Oct 16, 2008 at 3:00 PM, Suri <[EMAIL PROTECTED]> wrote:
> > > > In my current application to which I'm trying to
> > > > integrate GWT, we use XmlBeans for passing data along. I do believe
> > > > xml beans are serializable. So, then
> > > > 1) Can i use these beans just as well to communicate via the GWT-RPC
> > > > to my client now?
>
> > > 

Re: Suggestion: GWT port to Desktop

2008-10-26 Thread Ian Bambury
>
>  however, you _should_ be designing your app around an MVC concept of
> some kind _anyway_.
>

Is everything else officially politically incorrect now, then?

--~--~-~--~~~---~--~~
You received 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: Suggestion: GWT port to Desktop

2008-10-26 Thread lkcl



On Oct 26, 4:18 am, GWBasic <[EMAIL PROTECTED]> wrote:
> I don't see the point.  GWT is designed to run in a browser;

 it's designed to run in a browser - and with a little bit of work,
can be turned into a _desktop_ widget-set with an *identical*
interface.

> if you
> want to do a true desktop application, there are plenty of desktop
> development systems that are much better.

 do such desktop development systems also allow you to compile the
same source code into javascript - unmodified - for running the same
application - unmodified - in all major web browsers?

>  C#, Java, Objective C...
> They're a dime a dozen.

 i repeat: do these dime-a-dozen [desktop] development systems also
allow the same apps to run in web browsers, unmodified?

> If all you're looking to do is get rid of the browser chrome and give
> a GWT application full-control of the window,

 no.  i'm not looking to _get rid_ of the browser, i'm looking to make
the GWT widget API a cross-browser AND cross-desktop AND cross-widget
set framework.

> it's trivial to write a
> C# (Windows) and Objective C (Mac) application that will do that.
> Both C# and Objective C have browser widgets.


>  You can make the
> browser widget fill up the window and then programmatically direct it
> to a URL.  If you're ambitious, you can capture new window events, add
> drop-down menus, ect.

 will the application so developed work on linux, MacOSX, windows,
embedded ARM-based smartphones, google android, solaris and freebsd?


> Something to consider is that all of GWT's I/O needs to go to a web
> server.

 yes.

> If you're trying to use GWT for something that will save
> files to disk, use a local database, burn CDs, ect, you'll need to use
> an embedded web server.  This is much more complicated then using a
> true desktop development environment.

 not really, although it is an extremely good point.

 however, you _should_ be designing your app around an MVC concept of
some kind _anyway_.

 installing a mini web server on loopback, and using JSONRPC or other
XMLHTTPRequest-based communications mechanism is a tiny price to pay
for being able to have your app run - unmodified - on every major web
browser _and_ on every major desktop platform and several embedded
ones, too [that can handle java and can handle webkit].

l.
--~--~-~--~~~---~--~~
You received 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 you actually use MVC?

2008-10-26 Thread jbdhl

Thanks for your very elaborate answer!
I spend some time googling around to see what other peoble do. I think
a nice way of separating the three entities is implementing the
Observer/Observable interfaces. Possibly the PropertyChangeSupport
interfaces. However, these are not directly available in GWT (yet) and
the later requires GWTx.

Are many of you, out there, using PropertyChangeSupport or similar on-
change events?

--~--~-~--~~~---~--~~
You received 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: GWT 1.5 Now Available

2008-10-26 Thread RIAgallery

I've the offline docs :-)

On Aug 29, 9:48 pm, GeekyCoder <[EMAIL PROTECTED]> wrote:
> Hi Bruce,
> GWT documentation is great and informative. Is there a plan to access
> doc offline instead of keep accessing the web ? It will be good if the
> doc comes in download ?
> Browsing document offline is very useful in place where internet
> access is not available etc in plane, in customer's site where  public
> internet access is prohibited.
>
> Although I think that the main reason why information is kept online
> is to facilitate information update, I'm sure developers will rather
> have quick access to offline documentation. When I read through the
> doc, I find that the current information is good and current enough
> for developer, so I wonder if the current documentation can be made
> available for offline browsing.
>
> thx...

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



can i use java libs

2008-10-26 Thread tapan

Hi guys

can i use the java jre with gwt.
please help.
some of them which i require are

Class.forName
java.sql.DriverManager
java.sql.Statement

etc.

Please help


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



text editor for XML text

2008-10-26 Thread [EMAIL PROTECTED]

Hi All,

for my project  I would like to add a text editor that show whit
different colors the words of an XML text.

there are any library that help me ?

Any ideas are welcome.

Thanks very much,
Mardock.



--~--~-~--~~~---~--~~
You received 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: MapWidget only partially rendering

2008-10-26 Thread Clement

Hi,

I've also faced a similar problem as yours when using it in a
tabPanel.
My solution is try not to put the map in that container. I use
VerticalPanel instead.

On Oct 24, 10:28 am, Jim Alateras <[EMAIL PROTECTED]> wrote:
> Eric,
>
> Tried using mapWidget.checkResize but unfortunately i still need to
> resize the actual window to get to render completely.
>
> On Oct 24, 1:02 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
>
> > Stupid maps trick #183: try mapWidget.checkResize() after filling out your
> > map.  Sometimes, changing the type of panel the map is contained in also
> > makes a difference (I usually use a VerticalPanel)
>
> > On Thu, Oct 23, 2008 at 9:33 PM, Jim Alateras <[EMAIL PROTECTED]> wrote:
>
> > > I am only getting a part of the map widget rendering when I run my gwt
> > > application. This happens both in hosted and non-hosted mode. I need
> > > to resize the window before i get a complete map.
>
> > > Here is my code
>
> > >                mapWidget = new MapWidget(initialPoint, zoomLevel);
> > >                mapWidget.setSize(width, height);
> > >                initWidget(mapWidget);
> > >                mapWidget.addControl(new SmallMapControl());
> > >                mapWidget.addControl(new MapTypeControl());
>
> > > I am using GWT 1.5.2 on a mac
>
> > --
> > Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/

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



Offline Developer's Guide

2008-10-26 Thread RIAgallery

Hi All,
where is the offline doc?
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5

Inside "gwt-windows-1.5.2\doc" I see only:
- helpInfo
- javadoc

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



novice question

2008-10-26 Thread shaulch

Hi,

Today Its my first day using GWT.
i still don't understand , how can i create another HTML page ?
(lets say i've added a button and when push on it i want to link to
other page - can i do it ?)
another question is why when i've two modules both are appear in the
same page (their widgets)

Thanks in advance,
Shaul.

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



module source path element

2008-10-26 Thread [EMAIL PROTECTED]

hello folks,

i've got following source structure in my project (j2ee):

~/project/java: //all the common sources which gonna be compiled to ~/
webapp/WEB-INF/classes
~/project/java/c.d.e.UserProfileBean //common bean used to store the
user profile data
~/project/client: //the client code which gonna be translated to
javascript
~/project/client/a.b.c/MyUI.gwt.xml //module description for MyUI
~/project/client/a.b.c.client.MyUI //class which implements EntryPoint

now, when running the compiler,I get the message "No source code is
available for type c.d.e.UserProfileBean; did you forget to inherit a
required module?" which is referenced by MyUI class.

I've tested any possible combination in the module's source element:
like , but I either get a "non-canonical-path" or
"relative-"-whatever path which, however does not allow me to compile
the code until I put everything under the a.b.c.client package

please, show me the way to get out of this nightmare, thanx!!


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



Tor: Awesome.

2008-10-26 Thread Reinier Zwitserloot

Just downloaded the beta python for netbeans. -awesome-. One thing
that is seriously borked in this install, though: whitespace.
Backspacing to go back to previous levels is all screwed up and tends
to jump in steps of 4, right in the middle of indents. So, if for
example I have a method indented 2 spaces, and inside it, a for loop,
with the body of the for loop indented 6, and I hit backspace, it'll
first go back to 4 spaces in, which is not an indent at all, and
another backspace will then go to 0, which isn't where I wanted to be
either. Manually lining up spaces is getting old. Am I doing something
wrong, or should I just take the plunge and swap to the nightly/hg
trunk?
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Does panel has border?

2008-10-26 Thread hezjing
Hi
How can I draw a border, and set the background color of a FlowPanel?

I think this should be done via CSS (right?) but unfortunately, I don't find
the CSS style rules from the API doc.


-- 

Hez

--~--~-~--~~~---~--~~
You received 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: applicationCreator to generate Ant tasks

2008-10-26 Thread Isaac Truett
The projectCreator does generate an Ant build file. I actually submitted a
patch a while back that adds a little more zing to that build file. It's
been marked low priority, but you can add your star to the issue if you want
to see it included. Here's the issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=2315

For compiling to JS you can also try out the GwtCompilerTask, which is
available in the GWT Incubator project. I wrote about the custom Ant task
here:

http://publicint.blogspot.com/2008/10/introducing-gwtcompilertask.html

I've thought about a GwtHostedModeTask, but personally I prefer starting
hosted mode using Eclipse since it handles the debug hooks for me.




On Sun, Oct 26, 2008 at 11:08 AM, hezjing <[EMAIL PROTECTED]> wrote:

> Hi
> The applicationCreator generates scripts to allow us to start application
> in hosted mode, translates the Java to JavaScript (creating web folder under
> www) and etc.
>
> I think it is also useful to add -ant option to applicationCreator, so that
> applicationCreator will auto-generate Ant tasks to start application in
> hosted mode, and to translate the Java to JavaScript in www folder and etc.
>
> This is useful for example, create a Ant tasks to clean the directories,
> then compile the Java classes, followed by the translation to JavaScript and
> finally, create the WAR file and etc.
>
>
> What do  you think?
>
>
> --
>
> Hez
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Deploy RPC on WAMP5 Server

2008-10-26 Thread [EMAIL PROTECTED]

I don't think the out of the box WAMP will serve servlets...JSP
pages.  You could use it out of the box if you did JSON with PHP to be
your client/server bridge.  But if you want to do GWT-RPC, you need a
servlet container and Tomcat does that nicely.  Also check out Jetty,
it's very slick and fast as well and both should be able to fit into
the WAMP stack with no problems.

On Oct 26, 7:29 am, Muhannad <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm building a website using PHP, MYSQL, and Apache (WAMP5 server). In
> addition, I used GWT to create some widgets that access the server
> through RPC. Would you please help me how to deploy my GWT-RPC on the
> WAMP5 server? Do I need to use Apache Tomcat instead of WAMP5?
>
> Thank you.
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



applicationCreator to generate Ant tasks

2008-10-26 Thread hezjing
Hi
The applicationCreator generates scripts to allow us to start application in
hosted mode, translates the Java to JavaScript (creating web folder under
www) and etc.

I think it is also useful to add -ant option to applicationCreator, so that
applicationCreator will auto-generate Ant tasks to start application in
hosted mode, and to translate the Java to JavaScript in www folder and etc.

This is useful for example, create a Ant tasks to clean the directories,
then compile the Java classes, followed by the translation to JavaScript and
finally, create the WAR file and etc.


What do  you think?


-- 

Hez

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



Enumerating Javascript Overlay Types

2008-10-26 Thread mat

Hi,

In Javascript its possible to enumerate Javascript Objects:

e.g:

var my obj = {"key1": "value 1","key2":"value 2", "key3","value3"};

for (var key in obj)
{
  var currentValue = obj[key];
};

I would like to know how to do this with Javascript Overlay Types in
GWT.

Thanks in advance!

Thanks,
Mathew
--~--~-~--~~~---~--~~
You received 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: Basic login security/session management question

2008-10-26 Thread Ian Bambury
You don't need cookies. The FAQ actually tells you not to rely on cookie
data
Store the session ID somewhere as a GWT field and send it with the rest of
your data

Ian

http://examples.roughian.com


2008/10/26 Andrey <[EMAIL PROTECTED]>

>
> walden!
>
> I also don't get why we need cookies.
> Can you please answer to this question?
> Why don't we store session id in JS variable?
>
> On 1 окт, 15:44, walden <[EMAIL PROTECTED]> wrote:
> > Hi nogridbag,
> >
> > You might just want to "begin at the beginning" and read the HTTP
> > Basic and HTTP Digest specifications.  These will give you an
> > indication of what is already built into browsers and web server for
> > solving the mainstream of authenciation requirements on the web in a
> > way that is orthogonal to application logic (a good thing).  Realize
> > that the FAQ your read is part of a departure from those standards.
> > Part of the cost of that departure is the complexity you have stumbled
> > on.
> >
> > Walden
> >
> > On Sep 30, 11:22 pm, nogridbag <[EMAIL PROTECTED]> wrote:
> >
> > > Hi, I'm fairly new to web apps so I have a few basic questions about
> > > handling the user's securesession.  I read the article onlogin
> > >securityhere:
> >
> > >http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur.
> ..
> >
> > > I understand everything up to the section "How to remember logins".
> > > At the bottom of that section it states "Remember - you must never
> > > rely on the sessionID sent to your server in the cookie header ; look
> > > only at the sessionID that your GWT app sends explicitly in the
> > > payload of messages to your server."
> >
> > > I've numbered the questions below:
> >
> > > 1) If we can't trust cookies, what's the point of using cookies at
> > > all?  If it's just so the browser UI "thinks" the user is logged in,
> > > why not just store it in some local client side variable since GWT
> > > applications are contained within a single page.
> >
> > > * Make RPC call with user/pass
> > > * Server says pass = OK
> > > * In User.java, call setLoggedIn(true)
> >
> > > 2) That leads me to my next question, how should the sessionID be
> > > stored in the client?  Do I just store it in some class, let's say
> > > User.java as a String or whatnot in plain text?
> >
> > > 3) Then, in any RPC request that needs the user to be logged in, I
> > > pass thissessionID along with the rest of the objects?
> >
> > > 4) How does the server then take this sessionId and authenticate it?
> > > Is the approach the same whether I'm using Java/RPC with Tomcat or
> > > JSON with php on an Apache server?  Can you give an example (or a link
> > > to a page the explains this?)
> >
> > > 5) Finally, is there any situation where you would store the username/
> > > pass on the client in order to authenticate each RPC call?  If so,
> > > what would be thesecurityimplications of this?
> >
> > > Thanks.  I'm sorry for the basic questions.  This is all fairly new to
> > > me since my only experience with web appsecurityis academic and very
> > > minimal.  It's obviously something I don't want to get wrong :)
> >
> >
> >
>

--~--~-~--~~~---~--~~
You received 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: Basic login security/session management question

2008-10-26 Thread Andrey

walden!

I also don't get why we need cookies.
Can you please answer to this question?
Why don't we store session id in JS variable?

On 1 окт, 15:44, walden <[EMAIL PROTECTED]> wrote:
> Hi nogridbag,
>
> You might just want to "begin at the beginning" and read the HTTP
> Basic and HTTP Digest specifications.  These will give you an
> indication of what is already built into browsers and web server for
> solving the mainstream of authenciation requirements on the web in a
> way that is orthogonal to application logic (a good thing).  Realize
> that the FAQ your read is part of a departure from those standards.
> Part of the cost of that departure is the complexity you have stumbled
> on.
>
> Walden
>
> On Sep 30, 11:22 pm, nogridbag <[EMAIL PROTECTED]> wrote:
>
> > Hi, I'm fairly new to web apps so I have a few basic questions about
> > handling the user's securesession.  I read the article onlogin
> >securityhere:
>
> >http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
>
> > I understand everything up to the section "How to remember logins".
> > At the bottom of that section it states "Remember - you must never
> > rely on the sessionID sent to your server in the cookie header ; look
> > only at the sessionID that your GWT app sends explicitly in the
> > payload of messages to your server."
>
> > I've numbered the questions below:
>
> > 1) If we can't trust cookies, what's the point of using cookies at
> > all?  If it's just so the browser UI "thinks" the user is logged in,
> > why not just store it in some local client side variable since GWT
> > applications are contained within a single page.
>
> > * Make RPC call with user/pass
> > * Server says pass = OK
> > * In User.java, call setLoggedIn(true)
>
> > 2) That leads me to my next question, how should the sessionID be
> > stored in the client?  Do I just store it in some class, let's say
> > User.java as a String or whatnot in plain text?
>
> > 3) Then, in any RPC request that needs the user to be logged in, I
> > pass thissessionID along with the rest of the objects?
>
> > 4) How does the server then take this sessionId and authenticate it?
> > Is the approach the same whether I'm using Java/RPC with Tomcat or
> > JSON with php on an Apache server?  Can you give an example (or a link
> > to a page the explains this?)
>
> > 5) Finally, is there any situation where you would store the username/
> > pass on the client in order to authenticate each RPC call?  If so,
> > what would be thesecurityimplications of this?
>
> > Thanks.  I'm sorry for the basic questions.  This is all fairly new to
> > me since my only experience with web appsecurityis academic and very
> > minimal.  It's obviously something I don't want to get wrong :)
>
>
--~--~-~--~~~---~--~~
You received 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: text file in frame does not respect UTF-8 encoding IE6 and IE7 issue

2008-10-26 Thread Lothar Kimmeringer

Salman Hemani schrieb:
> I should also add that I tested Firefox again and I am not sure why I
> thought Firefox was displaying this behaviour but it is correctly
> displaying the characters.

Can you come up with a "Proof-Of-Problem"-piece of code that allows
local tests? If you have a complete project don't send it as attach-
ment but provide a link where it can be downloaded.


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
-~--~~~~--~~--~--~---



Deploy RPC on WAMP5 Server

2008-10-26 Thread Muhannad

Hi,

I'm building a website using PHP, MYSQL, and Apache (WAMP5 server). In
addition, I used GWT to create some widgets that access the server
through RPC. Would you please help me how to deploy my GWT-RPC on the
WAMP5 server? Do I need to use Apache Tomcat instead of WAMP5?

Thank you.
--~--~-~--~~~---~--~~
You received 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: Drag&Drop + database

2008-10-26 Thread Shi

I solved! The problem was in the toString of widgets' text.
widget.toString returns a result like this:

1) ciao ciao
([EMAIL PROTECTED])

So, it is clear that to capture the right data to be included in db is
necessary to consider the sottoscringhe created by parentheses ")",
"(" ")" , and not by spaces

--~--~-~--~~~---~--~~
You received 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 compiling gwt-google-api source code

2008-10-26 Thread Eric Ayers

Are you using the latest GWT distribution?  As of today that is GWT
1.5.3 which should contain the JsArray class.If there is a problem
with the doc, let me know.

On Fri, Oct 24, 2008 at 7:14 PM, Jim Alateras <[EMAIL PROTECTED]> wrote:
>
> I am getting the following error doing s top level build of the gwt-
> google-api source. I have followed the instructions here (http://
> code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-
> apis&t=GettingStartedSource).
>
> Is there something specific that i am missing. I am using jdk1.5 on
> macos
>
>
> gears:
>
> compile:
> [gwt.javac] Compiling 19 source files to /Users/jima/comware/gwt/
> workspace/gwt-google-apis/gears/build/out/gears/bin
> [gwt.javac] /Users/jima/comware/gwt/workspace/gwt-google-apis/gears/
> gears/src/com/google/gwt/gears/client/impl/Utils.java:20: cannot find
> symbol
> [gwt.javac] symbol  : class JsArrayString
> [gwt.javac] location: package com.google.gwt.core.client
> [gwt.javac] import com.google.gwt.core.client.JsArrayString;
> [gwt.javac]   ^
> [gwt.javac] /Users/jima/comware/gwt/workspace/gwt-google-apis/gears/
> gears/src/com/google/gwt/gears/client/impl/Utils.java:30: cannot find
> symbol
> [gwt.javac] symbol  : class JsArrayString
> [gwt.javac] location: class com.google.gwt.gears.client.impl.Utils
> [gwt.javac] JsArrayString array =
> JavaScriptObject.createArray().cast();
> [gwt.javac] ^
> [gwt.javac] 2 errors
>
>
> >
>



-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

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



Drag&Drop + database

2008-10-26 Thread Shi

Hello World! for my GWT project I am using the library gwt-dnd for the
functionality of drag & drop. I have two lists box, in the left a list
of widget with data collected from the database. From db, I exstact
the object Person, that contains attributes:id, nome, cognome,email,
and I add these to the list:


public void onSuccess(List result) {
Iterator iter = result.iterator();
int i = 1;
while(iter.hasNext()){
i++;
Person item = iter.next();
dualListBox.addLeft(item.getId() + ") " + 
item.getNome() +" " +
item.getCognome() +" (" + item.getEmail() + ")" ) ;
}

In the right list, I can drag the widget from the left. On this list I
do a query to save the data in database.
I want to add each Person in a Team, adding the "id" of the person and
the "id" of the Team in a table Person-Team. The id_Team is written
correctly in the table Person-Team, but the data of Person are not
captured well, then not properly sort of conversion from a widget
object.
I do like this:

Person person = new Person();
ArrayList widgetRight = dualListBox.getWidgetRight();
Iterator iterWidget = widgetRight.iterator();
int indexSpace1, indexSpace2, indexParentesi1,indexParentesi2;
String dati;
while(iterWidget.hasNext()){
  Widget item = iterWidget.next();
  dati = item.toString();
  indexSpace1 = dati.indexOf( " " );
  indexSpace2 = dati.indexOf(" ", indexSpace1+1);
  person.setNome(dati.substring(indexSpace1+1, indexSpace2 ));
  indexParentesi1 = dati.indexOf("(", indexSpace2+1);
  person.setCognome(dati.substring(indexSpace2, indexParentesi1-1));
  indexParentesi2 = dati.indexOf(")", indexParentesi1+1);
  person.setEmail(dati.substring(indexParentesi1+1, indexParentesi2));

  comunicationService.getIdPerson(person.getNome(),
person.getCognome(), person.getEmail(), callback9);
}

final AsyncCallback callback9 = new AsyncCallback(){

public void onFailure(Throwable caught) {
// TODO Auto-generated method stub

}

public void onSuccess(Object result) {
long idNew =  
Long.valueOf(result.toString()).longValue();
lab = new Label("nome = " +person.getNome() + " Cognome 
= "+
person.getCognome()+" Email =  "+ programmerTO.getEmail() + " id =" +
idNew);
panelFormContent.add(lab);
idList = new ArrayList();

idList.add(idNew);

Iterator iterId = idList.iterator();
 while(iterId.hasNext()){
 long itemId = iterId.next();
 comunicationService.createPersonTeam(itemId, 
idTeamRet,
callback10);
 }
}};


Writing in the Label name, id, surname and email is this:
nome = id="ext-gen163" Cognome = class="gwt-HTML dragdrop-draggable
dragdrop-handle">3) enrico spanu Email = [EMAIL PROTECTED] id =0

So, only the email is properly captured by the string. How can I do
this kind of conversion so that it works?
Thanks!!
ps: I apologize if I have posted without first completing the post
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Drag&Drop + database

2008-10-26 Thread Shi

Hello World! for my GWT project I am using the library gwt-dnd for the
functionality of drag & drop. I have two lists box, in the left a list
of widget with data collected from the database. From db, I exstact
the object Person, that contains attributes:id, nome, cognome,email,
and I add these to the list:


public void onSuccess(List result) {
Iterator iter = result.iterator();
int i = 1;
while(iter.hasNext()){
i++;
Person item = iter.next();
dualListBox.addLeft(item.getId() + ") " + 
item.getNome() +" " +
item.getCognome() +" (" + item.getEmail() + ")" ) ;
}

In the right list, I can drag the widget from the left. On this list I
do a query to save the data in database.
I want to add each Person in a Team, adding the "id" of the person and
the "id" of the Team in a table Person-Team. The id_Team is written
correctly in the table Person-Team, but the data of Person are not
captured well, then not properly sort of conversion from a widget
object.
I do like this:

ArrayList widgetRight = dualListBox.getWidgetRight();
Iterator iterWidget = widgetRight.iterator();
int indexSpace1, indexSpace2, indexParentesi1,indexParentesi2;
String dati;
while(iterWidget.hasNext()){
Widget item = iterWidget.next();
dati = item.toString();
indexSpace1 = dati.indexOf( " " );
indexSpace2 = dati.indexOf(" ", 
indexSpace1+1);

programmerTO.setNome(dati.substring(indexSpace1+1,
indexSpace2 ));
indexParentesi1 = dati.indexOf("(", 
indexSpace2+1);

programmerTO.setCognome(dati.substring(indexSpace2,
indexParentesi1-1));
indexParentesi2 = dati.indexOf(")", 
indexParentesi1+1);

programmerTO.setEmail(dati.substring(indexParentesi1+1,
indexParentesi2));
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



JUnit Testing error

2008-10-26 Thread Paul van Hoven

I use GWT with Hibernate. For testing my server side Methods I use the
GWT-JUnit implementation. It works fine.
But now I've added a new Testcase. It first loads the data that is to
be expected as the answer by the server from the database (via
Hibernate) and subsequently compares the loaded data with the data
retrieved from the Server. Actually it is simply an assertEquals which
I want to perfrom.

Now, when I want to execute the test I get these error messages that I
don't understand:


Compiling Java source files in module 'kiretose.Index.JUnit'
   Removing units with errors
  [ERROR] Errors in 'file:/path/to/my/project/kiretose/test/
kiretose/client/PeopleServiceTest.java'
 [ERROR] Line 70: No source code is available for type
org.hibernate.Session; did you forget to inherit a required module?
 [ERROR] Line 70: No source code is available for type
org.hibernate.cfg.AnnotationConfiguration; did you forget to inherit a
required module?
 [ERROR] Line 73: No source code is available for type
org.hibernate.Query; did you forget to inherit a required module?
 [ERROR] Line 77: No source code is available for type
kiretose.server.universal.UserData; did you forget to inherit a
required module?



Line 70 in PeopleServiceTest.java looks like this
Session session = new
AnnotationConfiguration().configure().buildSessionFactory().openSession();

What do I have to do?


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