Code refactoring to minimize listeners & decoupling actions from view class

2009-02-13 Thread dodo

Currently in my app all the services and action related methods are
there inside the view class itself. How can I refactor my code to
decouple action related methods in a different controller/supervisor
class? Another aspect of my problem is that, I have created composite
widgets of my own, thus when a event is generated by an inner widget I
should get the reference of sender and since I need to perform action
on some other inner widget thus I need reference of that also. How can
I achieve this without actually taking a direct reference of each
inner widget of my composite?

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



Upcoming GWT presentation at SV-GTUG at the Googleplex

2009-02-13 Thread Fred Sauer
I've been talking with the SV-GTUG  (Silicon Valley -
Google Technology User Group) organizers about doing a GWT presentation at
an upcoming meeting. We don't have a firm date yet, but I'd like to start
collecting your questions and suggestions for material you'd like to see
covered. You can vote on other people's ideas or post your own questions
here .

-- 
Fred Sauer
Developer Advocate
Google Inc.1600 Amphitheatre Parkway
Mountain View, CA 94043
fre...@google.com

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



Closable Tab- Changing Tab text

2009-02-13 Thread GWTFan


We need closable tab panel. I'm using TabPanel's add(widget, widget)
method to add tabs. I'm using an horizontalpanel as tab heading, with
a text and an icon with clicklistener for closing.

This Works well.

However, based on user action on the widget within the tab, I need to
change the tab text.
While adding the tab, I could pass a widget for the tab text with
closable option. But TabBar.setTabText() does not allow widgets. How
do I get the widget in the tabheader and change the text?

Any suggestions.

Thanks,

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



Re: replacing links in HTML in widgets (to update widget instead of browser follow link)

2009-02-13 Thread ricochet
ok, well, I got it working. I moved things around some  (stopped
extending Anchor, and just added a click listener, set the URL of the
link to "javascript:" after I saved it for later request, and ...
added rb.send();   (it really helps if you actually send the
request :)

I still would like to know what the common approach here is.

-Abram


On Feb 13, 1:39 pm, ricochet  wrote:
> Hi,
>
> I'm wondering if someone can help me.  I'm new to GWT,  I'm very well
> versed in Java, but less so in dealing with browsers/DOM/js.  I expect
> this is a common problem.
>
> What I'm trying to do is incorporate GWT into an existing app.  (Don't
> stop reading yet) I'll make this abstract:
>
> I have a TabPanel, with HTML widgets added on (the tabs).  The HTML
> has links in it, some of which send the user off the site (external
> links), and some internal.  For the internal links  (which I know by
> matching the href to my domain), instead of the browser following the
> link, and replacing the entire page as it did pre-GWT, I'd like to
> replace the internal links (read: add click listeners, and cancel the
> event bubbling so the browser doesn't follow the link) with
> asynchronous calls to get another HTML page, and replace the contents
> of the *current tab* with the response.  Essentially, I have HTML
> pages with pagination links at the bottom.  When a user goes to page
> 2, I want to replace the tab ajax-ily.  I'd rather not change server-
> side code to help, as I want to have the option of not being tied to
> GWT.  So, how?
>
> I've tried this, and its not working, and I'm stuck - onBrowserEvent()
> doesn't seem to be getting called.
>
> 
>   private void replaceLinks(final Element e) {
>
>                   NodeList anchors = e.getElementsByTagName("a");
>
>                   for(int i = 0; i < anchors.getLength(); i++){
>
>                           final AnchorElement ae = 
> AnchorElement.as(anchors.getItem(i));
>
>                           
> if(ae.getHref().startsWith("http://localhost:8080/myapp";)){
>                                   final String newHref = ae.getHref();
>                                   Window.alert("attempting to *replace* link 
> of href: "+ae.getHref
> ());
>
>                                   final Anchor a = new Anchor(ae){
>
>                                         @Override
>                                         public void onBrowserEvent(Event 
> event) {
>                                                 Window.alert("1 got click, 
> sending request for: "+ae.getHref());
>                                                 super.onBrowserEvent(event);
>                                                 event.cancelBubble(true);
>
>                                                 switch 
> (DOM.eventGetType(event)) {
>                                               case Event.ONCLICK:
>                                                   Window.alert("got click, 
> sending request for: "+ae.getHref
> ());
>                                                   RequestBuilder rb = new 
> RequestBuilder(RequestBuilder.GET,
> newHref); //TODO localize URL
>                                                           rb.setCallback(new 
> RequestCallback(){
>
>                                                                   public void 
> onError(Request request,
>                                                                               
>     Throwable exception) {
>
>                                                                           
> e.setPropertyString("currentURL", newHref);
>                                                                           
> e.setInnerHTML("problem encountered -"+exception.getMessage
> ());
>
>                                                                   }
>
>                                                                   public void 
> onResponseReceived(
>                                                                               
>     Request request,
>                                                                               
>     Response response) {
>                                                                           
> e.setPropertyString("currentURL", newHref);
>                                                                           
> e.setInnerHTML(response.getText());
>
>                                                                   }
>
>                                                           });
>                                                 }
>                                         }
>
>                                   };
>                                   a.sinkEvents(Event.MOUSEEVENTS); //what 
> does sink event mean?
>                           }
>                   }
>         }
> 
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-To

replacing links in HTML in widgets (to update widget instead of browser follow link)

2009-02-13 Thread ricochet

Hi,

I'm wondering if someone can help me.  I'm new to GWT,  I'm very well
versed in Java, but less so in dealing with browsers/DOM/js.  I expect
this is a common problem.

What I'm trying to do is incorporate GWT into an existing app.  (Don't
stop reading yet) I'll make this abstract:

I have a TabPanel, with HTML widgets added on (the tabs).  The HTML
has links in it, some of which send the user off the site (external
links), and some internal.  For the internal links  (which I know by
matching the href to my domain), instead of the browser following the
link, and replacing the entire page as it did pre-GWT, I'd like to
replace the internal links (read: add click listeners, and cancel the
event bubbling so the browser doesn't follow the link) with
asynchronous calls to get another HTML page, and replace the contents
of the *current tab* with the response.  Essentially, I have HTML
pages with pagination links at the bottom.  When a user goes to page
2, I want to replace the tab ajax-ily.  I'd rather not change server-
side code to help, as I want to have the option of not being tied to
GWT.  So, how?

I've tried this, and its not working, and I'm stuck - onBrowserEvent()
doesn't seem to be getting called.


  private void replaceLinks(final Element e) {

  NodeList anchors = e.getElementsByTagName("a");

  for(int i = 0; i < anchors.getLength(); i++){

  final AnchorElement ae = 
AnchorElement.as(anchors.getItem(i));

  
if(ae.getHref().startsWith("http://localhost:8080/myapp";)){
  final String newHref = ae.getHref();
  Window.alert("attempting to *replace* link of 
href: "+ae.getHref
());

  final Anchor a = new Anchor(ae){

@Override
public void onBrowserEvent(Event event) 
{
Window.alert("1 got click, 
sending request for: "+ae.getHref());
super.onBrowserEvent(event);
event.cancelBubble(true);

switch 
(DOM.eventGetType(event)) {
  case Event.ONCLICK:
  Window.alert("got click, 
sending request for: "+ae.getHref
());
  RequestBuilder rb = new 
RequestBuilder(RequestBuilder.GET,
newHref); //TODO localize URL
  rb.setCallback(new 
RequestCallback(){

  public void 
onError(Request request,

  Throwable exception) {

  
e.setPropertyString("currentURL", newHref);
  
e.setInnerHTML("problem encountered -"+exception.getMessage
());

  }

  public void 
onResponseReceived(

  Request request,

  Response response) {
  
e.setPropertyString("currentURL", newHref);
  
e.setInnerHTML(response.getText());

  }

  });
}
}

  };
  a.sinkEvents(Event.MOUSEEVENTS); //what does 
sink event mean?
  }
  }
}


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



Event keyboards left , right , up , down and enter TOO TOO SLOW

2009-02-13 Thread sibopis...@googlemail.com

Hello all,

Please I’d appreciate if you could help me. I’ve got a FlexTable and
when I  use left , right , up , down  keyboard it changes the:

cell’s board to read;

show on a TexBox what keyboard was used.

If enter it changes de cell’s text to the TexBox’s text

All these are working. However, the performance get worse and worse
when the keyboards left , right , up , down and enter are used. The
more I used them , the more it increases the time to change the cell’s
text to the TextBox’s text, such as, 10 seconds and if I use the
keyboards more, it might increases to 15 , 20 seconds.

Please help me to sort this performance’s problem

Pires

my Code:

package com.sibopsoft.begin.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Element;
import com.google.gwt.user.client.Event;
import com.google.gwt.user.client.ui.KeyboardListener;
import com.google.gwt.user.client.ui.KeyboardListenerAdapter;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.FlexTable;
import com.google.gwt.user.client.ui.Widget;

public class Test extends VerticalPanel implements EntryPoint {
TextBox tb = new TextBox();
FlexTable t = new FlexTable();
int l=0;
int c=0;

  public void onModuleLoad() {

  t.setBorderWidth(1);
  t.setCellSpacing(5);

  for (int i=0 ; i<15 ; i++)

  for (int j=0 ; j<15 ; j++)

  t.setText(i,j, "KAKA");

  add(tb);
  add(t);

sinkEvents(Event.KEYEVENTS);
  RootPanel.get().add(this);

}
public void onBrowserEvent(Event e) {

int type = DOM.eventGetType(e);
Element el = DOM.eventGetFromElement(e);

if ( type == Event.ONKEYDOWN ) {

  if ( KeyboardListener.KEY_RIGHT ==
DOM.eventGetKeyCode
(e) ) {
  tb.setText("KEY_RIGHT");
  t.getFlexCellFormatter().setStyleName(l, c+=1,
"FlexTable-Cell-Red");
  t.getFlexCellFormatter().setStyleName(l, c-1,
"FlexTable-Cell-Black");
}

  if ( KeyboardListener.KEY_LEFT == DOM.eventGetKeyCode
(e) ) {
  tb.setText("KEY_LEFT");
  t.getFlexCellFormatter().setStyleName(l, c-=1,
"FlexTable-Cell-Red");
  t.getFlexCellFormatter().setStyleName(l, c+1,
"FlexTable-Cell-Black");
  }
  if ( KeyboardListener.KEY_UP == DOM.eventGetKeyCode(e) )
{
tb.setText("KEY_RIGHT");
t.getFlexCellFormatter().setStyleName(l-=1, c,
"FlexTable-Cell-Red");
t.getFlexCellFormatter().setStyleName(l+1, c,
"FlexTable-Cell-Black");
  }

  if ( KeyboardListener.KEY_DOWN == DOM.eventGetKeyCode
(e) ) {
tb.setText("KEY_LEFT");
t.getFlexCellFormatter().setStyleName(l+=1, c,
"FlexTable-Cell-Red");
t.getFlexCellFormatter().setStyleName(l-1, c,
"FlexTable-Cell-Black");
  }

}
  tb.addKeyboardListener(new KeyboardListenerAdapter() {
public void onKeyDown(Widget sender, char keyCode, int
modifiers) {
  if  (keyCode == (char) KEY_ENTER)

  t.setText(l, c, tb.getText());

}
});

  }
}

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



Inside RichTextArea

2009-02-13 Thread A Friend Of Yours

Hello

I am working on a project where I need a (java) source code
highlighting editor. I searched everywhere but could not find any
solution that could work with GWT. There are solutions such as
codepress but dont work with GWT. Neither in this forum could I find
anything useful.

I was hoping if somebody could tell me what actually GWT does inside
RichTextArea to enable rich text editing so that I might be able to
make my own widget for this purpose.

I tried the RichTextArea, RichTextAreaImpl and all its child classes
but could not really get what they are playing with except that they
are using iframe somehow. (May be because I dont know javascript as
much as used there)

Thanks

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



Inside RichTextArea

2009-02-13 Thread A Friend Of Yours

Hello

I am working on a project where I need a (java) source code
highlighting editor. I searched everywhere but could not find any
solution that could work with GWT. There are solutions such as
codepress but dont work with GWT. Neither in this forum could I find
anything useful.

I was hoping if somebody could tell me what actually GWT does inside
RichTextArea to enable rich text editing so that I might be able to
make my own widget for this purpose.

I tried the RichTextArea, RichTextAreaImpl and all its child classes
but could really get what they are playing with except that they are
using iframe somehow. (May be because I dont know javascript as much
as used there)

Thanks

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



Re: Slow Scrolling in GWT

2009-02-13 Thread CK

There's really no way to get around it.  A 1 megapixel image is fairly  
large.  The way I worked around this is to create smaller proxy images  
that gets used (ie. 640 pixels wide or 320 pixels wide, depending on  
how large the image is displayed).  This image must be resized and  
served from the server.   For me, when the image needs to be enlarged,  
I will then specifically replace the selected image with a larger  
version dynamically.  When it's deselected, I replace it with the  
proxy image again.  Thus, at any given time, there is only one high  
resolution image.

The idea is fairly similar to how 3D environments are rendered.  Maps  
that are more front gets rendered in more details while maps that are  
in the background gets rendered with less.

In this particular case, size really does matter.

CK

On Feb 13, 2009, at 10:50 AM, Rhyce wrote:

>
> UPDATE:
>
> So, after hours of trying different things I found that this
> "slowness" bug is caused when the images are set to sizes that are not
> native. For example, say you have a 1000x1000 image, but set the size
> to 100x100 (letting the browser to the scaling) --- THEN the scroll is
> slow. Now, this may or may not be related to GWT directly, but I'd
> still appreciate any advice. Is this something others have observed?
> Any way to get around it?
>
> Best,
>
> J
>
>
> On Feb 13, 12:35 am, Rhyce  wrote:
>> Hi All,
>>
>> I've been experiencing an issue that I can't seem to nail down: Slow
>> Scrolling in GWT.
>>
>> My setup is this:
>>
>> A TabPanel with a DockPanel in it. In the dock panel there are about,
>> say anywhere from 10-300 images that are about 1000x1000. In Safari
>> (I'm on a Mac) I can scroll through that setup with blazing speed.
>> However, when I load them into a scrollpane in GWT, the scrolling is
>> jerky and not very smooth at all.
>>
>> There are a number of events (of course) hooked up to the various
>> scroll events, but even stripping it down to a simple ScrollPanel
>> inside the Tab/DockPanel with no events listening doesn't seem to  
>> help
>> much at all.
>>
>> Is there anything else I can check to perhaps improve the performance
>> in this critical area? I don't understand how scrolling can be
>> intensive enough that it doesn't work in GWT if all of the things it
>> implements are basically HTML widgets.
>>
>> Anyone?
>>
>> Best,
>>
>> J
> >


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



Re: Slow Scrolling in GWT

2009-02-13 Thread Rhyce

UPDATE:

So, after hours of trying different things I found that this
"slowness" bug is caused when the images are set to sizes that are not
native. For example, say you have a 1000x1000 image, but set the size
to 100x100 (letting the browser to the scaling) --- THEN the scroll is
slow. Now, this may or may not be related to GWT directly, but I'd
still appreciate any advice. Is this something others have observed?
Any way to get around it?

Best,

J


On Feb 13, 12:35 am, Rhyce  wrote:
> Hi All,
>
> I've been experiencing an issue that I can't seem to nail down: Slow
> Scrolling in GWT.
>
> My setup is this:
>
> A TabPanel with a DockPanel in it. In the dock panel there are about,
> say anywhere from 10-300 images that are about 1000x1000. In Safari
> (I'm on a Mac) I can scroll through that setup with blazing speed.
> However, when I load them into a scrollpane in GWT, the scrolling is
> jerky and not very smooth at all.
>
> There are a number of events (of course) hooked up to the various
> scroll events, but even stripping it down to a simple ScrollPanel
> inside the Tab/DockPanel with no events listening doesn't seem to help
> much at all.
>
> Is there anything else I can check to perhaps improve the performance
> in this critical area? I don't understand how scrolling can be
> intensive enough that it doesn't work in GWT if all of the things it
> implements are basically HTML widgets.
>
> Anyone?
>
> Best,
>
> J
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: format datebox (gwt-incubator-1.5.jar)

2009-02-13 Thread Isaac Truett

The constructor you're trying to call isn't public. Use the static
getFormat(String) method instead.


On Fri, Feb 13, 2009 at 3:39 AM, Josse  wrote:
>
> Hello, I woulds like to create a dateBox with today date into it. But
> i want to change de date format and I always got an error. Here what I
> do :
>
> Code :
> //Déclaration
> private final DateBox dateMisAJour = new DateBox();
> ...
>
> DateTimeFormat format = new DateTimeFormat("dd/MM/");
> this.dateMisAJour.setDateFormat(format);
>
> this.dateMisAJour.getDatePicker().setSelectedDate(new Date());
> this.dateMisAJour.setEnabled(false);
> .
>
> this.bandeauMiseAJour.add(dateMisAJour);
>
> The instanciate of DateTimeFormat always underline "new DateTimeFormat
> ("dd/MM/");" to indicate an error but dont show any proposition.
> What it's most weird is that DateTimeFormat take a string as a
> parameter.
>
> 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Add a new row in a table dynamically

2009-02-13 Thread Damien Picard
Hi,

Where your existing HTML table is displayed in your GWT apps ? in a HTML
Panel, an iframe, or other ?

Regards,
Damien

2009/2/13 krissh 

>
> Hi,
>   I wanted to know if it is possible to add a new row to a existing
> html table dynamically using GWT. I am fairly new to GWT and was
> wondering if its possible. I checked the forum and couldn't find
> anything on this. If anyone has a solution for this please let me
> know.
>
> >
>

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



Re: How to enable logging in tomcat lite during hosted mode

2009-02-13 Thread Adligo

Well to start with what do you mean by normal, and default.  If your
referring to Log4j or ApacheCommons logging which I believe Tomcat
uses you probably just need to copy the config files (log4j.properties
or log4j.xml, or commons_logging.properties or some combination of
them) into the directory where tomcat lite runs.
   If your running from eclipse (i'm using the GWT Designer), then it
will pick these up from your src directory.  If you need log info from
your GWT client, check out my port of commons logging to GWT;
http://www.adligo.com
http://cvs.adligo.org/viewvc/

There is a project gwt_util_demo.
I also use my commons logging port server side so in my case I have
adligo_log.properties in a few locations;
src/adligo_log.properties (Servlets/J2EE jvm)
and
src/my_package/public/adligo_log.properties (Javascript/GWT)

Note my port doesn't create a file, but loggs to System.out on the
server which ends up in the Tomcat server.log, or on the console in
eclipse.

Cheers.
Scott

On Feb 12, 1:26 pm, "farrukh.n...@gmail.com" 
wrote:
> I am new to GWT and did not find answer to my question in archives.
>
> I would like to be able to configure tomcat lite so it generates the
> tomcat log as is the case by default in normal tomcat. At the moment I
> am not sure where the tomcat lite files are located and what I need to
> change to enable logging. Any help would be terrific.
>
> On a separate note why does Tomcat Lite turn of logging by default as
> opposed to have it on by default and describe how to turn it off.
>
> Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: color control in a textarea for chat application

2009-02-13 Thread Steven

Actually I still have one problem:

when I invoke the method:
HTMLObject.addSyleDependentname("blue")

all the text inside the textarea gets blue.
Instead I would like only the coming writings to be blue, while the
past writings should keep black...how to do?

Thank you in advance!

Steve




On 13 Feb, 11:11, Steven  wrote:
> Great suggestion!
>
> I have added a stylesheet file into the 'gwtOutput' folder of my web
> dynamic project,
> with the correct styles which you suggested: now it works fine.
>
> Thanks!
> Steve
>
> On Feb 5, 7:37 am, Damien Picard  wrote:
>
>
>
> > Sorry, the correct styles are :
>
> > .gwt-HTML {
> >     font-family: Arial, sans-serif;
> >     font-size: 10px;}
>
> > .gwt-HTML-blue{
> >    color: blue;
>
> > }
>
> > (I've added text-colorin order to test this declaration :p )
>
> > 2009/2/5 Damien Picard 
>
> > > Hi !
>
> > > I think you've got an error in your css declaration "text-color".
> > > Currently, this declaration is not really compliant. You have to use 
> > > "color"
> > > instead of.
> > > I've tried what you have done, and it works for me :
>
> > > Entry Point module :
>
> > > public class testApplication implements EntryPoint {
> > >     private HTML html;
> > >     private Button clickMeButton;
> > >     public void onModuleLoad() {
> > >         RootPanel rootPanel = RootPanel.get();
>
> > >         clickMeButton = new Button();
> > >         rootPanel.add(clickMeButton);
> > >         clickMeButton.setText("Blue Text !");
> > >         clickMeButton.addClickListener(new ClickListener() {
> > >             public void onClick(Widget sender) {
> > >                 getHtml().addStyleDependentName("blue");
> > >             }
>
> > >         });
>
> > >         html = new HTML("Blue text ?");
> > >         rootPanel.add(html, 9, 48);
> > >         html.setSize("467px", "309px");
> > >         html.setStyleName("gwt-HTML");
> > >     }
> > >     public HTML getHtml() {
> > >         return html;
> > >     }
> > > }
>
> > > As you can see, I've explicitly defined the styleName before setting the
> > > dependant Style Name.
> > > And in my application, I've defined an extended style sheet in the xml :
>
> > > 
>
> > > In this style sheet, i've defined the two styles :
>
> > > .gwt-HTML {
> > >     font-family: Arial, sans-serif;
> > >     font-size: 10px;
> > > }
> > > .gwt-HTML-blue{
> > >     text-color: blue;
> > > }
>
> > > And it works fine for me.
>
> > > Regards,
> > > Damien
>
> > > 2009/2/4 Steven 
>
> > >> Hi all,
>
> > >> I would like to create a non-editablecolor-controlled (or style-
> > >> controlled) textArea for a GWT chat application.
> > >> For instance I woud like to change thecolor(or the text-style) of
> > >> the messages depending on the message sender.
>
> > >> To do that, after reading previous posts on this group I  created a
> > >> HTML object, adding some very basic styles to the  standard.css file.
> > >> In fact my application inherits the standard theme, as I can read from
> > >> the xml configuration file:
>
> > >> 
>
> > >> So for instance I added the .gwt-HTML-blue {text-color: blue} to the
> > >> standard.css file the and in my application i invoked the method:
> > >> HTMLObject.addSyleDependentname("blue")
>
> > >> BUT  actually nothing happens: my message in the textArea is still
> > >> black instead of blue.
>
> > >> Why?
>
> > >> I tried also to create a RichTextArea object and I tried  to invoke
> > >> the method
> > >> RichTextAreaObject.getBasicFormatter().toggleBold(), in order to set
> > >> my message as bold,
> > >> BUT  it doesn't work
>
> > >> Thanks in advance, bye
>
> > >> Steve- Hide quoted text -
>
> > - Show quoted text -- Nascondi testo citato
>
> - Mostra testo citato -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Newline characters?

2009-02-13 Thread Soren Johnson

heh, I actually works in IE. I hope I don't have to use the HTML
widget...

On Feb 12, 4:02 pm, Soren Johnson  wrote:
> I am trying to use newline characters inside of Labels, but it only
> seems to work in the hosted mode. (Doesn't work in FireFox, for
> example)
>
> in other words, 'new Label("This is Line1\nThis is Line2\nThis is
> Line3")' doesn't seem to work. Any idea how I can get this to work?
> thanks...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



ContentPanel Resize event

2009-02-13 Thread Vish

I lookes all through but not good enough to find anything on web to do
something that deals with the addContentPanelListener.
I want to add a listner to the contentpanel when collapsed so that I
can resize the other panels to fit the screen.
If someone know how to do that it will be really helpful for me and
others.
Thanks.
vs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT being used by google search for mobile devices?

2009-02-13 Thread aceinf...@gmail.com

A couple of searches recently, I've noticed that clicking a result
doesn't take me to the site the result is from, but instead seems to
be proxied by google. Interestingly, the proxy URL is of the form
www.google.com/gwt/...

For instance, on an iPhone

Search for "how many sudoku puzzles are there"

First result, right now, is :
sudoku.infoforliving.com/2005/...

Clicking it brings up URL:
http://www.google.com/gwt/n?oe=UTF-8&client=safari&q=how+many+possible+sudokus+are+there&ct=res&oi=blended&sa=X&cd=1&resnum=1&hl=en&ei=05SVSfjOLI2wqQKejej3Ag&u=http%3A%2F%2Fsudoku.infoforliving.com%2F2005%2F05%2Fjust-how-many-sudoku-combinations-are.html

And it looks great on  mobile safari! Not so great on firefox, but you
won't get proxied if you're using firefox anyways.

So, if this is a GWT doing, congratulations to the team for the high
profile integration with google's big ol' search!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announcing GWT 1.6 Milestone 1

2009-02-13 Thread Scott Blum
Would people be happier if we called this the "official community-supported
GWT/Maven integration"? :)

On Fri, Feb 13, 2009 at 10:08 AM, Arthur Kalmenson wrote:

> I think you'll note that GWT is in the central Maven repository
> (http://repo1.maven.org/maven2/com/google/gwt/) and there are
> currently at least two Maven plugins (being merged), the gwt-maven
> plugin: http://code.google.com/p/gwt-maven/ and the Codehaus GWT
> plugin: http://mojo.codehaus.org/gwt-maven-plugin/. I and a number of
> other people use Maven every day, and it works OK. I'm sure it could
> be better, but it does 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Integrating GWT+Spring application with Hibernate

2009-02-13 Thread Arthur Kalmenson

This topic has also been discussed a million times, if you search the
group you'll find lots of information.

--
Arthur Kalmenson



On Fri, Feb 13, 2009 at 5:07 AM, eggsy84  wrote:
>
> Hi there,
>
> My Set of tutorials may help you do this:
>
> Part Two: 
> http://eggsylife.blogspot.com/2007/11/hibernate-spring-google-web-toolkit.html
> Part Three: 
> http://eggsylife.blogspot.com/2008/02/hibernate-spring-google-web-toolkit.html
> Part Four: 
> http://eggsylife.blogspot.com/2008/09/hibernate-spring-google-web-toolkit.html
> Part Five: 
> http://eggsylife.blogspot.com/2008/11/hibernate-spring-and-gwt-for-gwt-15.html
>
> Source Code Download Example for the project is at the end of Part 5.
>
> Hoep this helps 
>
>
>
>
> On Feb 13, 9:15 am, poonam pac  wrote:
>> Hello,
>>Actually I have used the same 
>> linkhttp://software-wonders.blogspot.com/2007/02/it-is-not-mistery-that-g...
>> to
>> develop my GWT+Spring application, now I want to integrate my this
>> application with Hibernate. Please help me in doing that.
>> Thanks,
>> Poonam.
> >
>

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



Re: Is there a garbage college for removed elements?

2009-02-13 Thread Arthur Kalmenson

GWT does not handle garbage collection itself, that's handled by the
browser's Javascript engine. Once you lose a reference to an object,
it should be garbage collected. Unfortunately IE's garbage collection
(and JS engine in general) is pretty crappy.

--
Arthur Kalmenson



On Thu, Feb 12, 2009 at 4:31 PM, flyingb...@gmail.com
 wrote:
>
> Just wondering does gwt handle garbage collection.
>
> For example if I attach a widget than later unreference it. Will the
> widget listeners/handlers be removed or will it still be trying to
> listen for that widget?
>
>
> >
>

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



Re: Integrating GWT/Hibernate, what does SPRING give us?

2009-02-13 Thread Arthur Kalmenson

That book gives some good information on how to integrate Spring with
GWT. Unfortunately, it's become rather dated and focuses on building
Web sites with GWT aspects rather then building Web applications.
Spring MVC can still be used with GWT to make the server side for your
GWT-RPC interfaces.

--
Arthur Kalmenson



On Thu, Feb 12, 2009 at 2:48 PM, Jorge Guerrero Damian
 wrote:
> I have some of experience working with Spring MVC and Velocity in the view.
> With Spring MVC you can send to the view POJOs, and from the client I
> receive the data with GET/POST.
>
> you can take a look to this link http://noon.gilead.free.fr/gilead/
> maybe can be usefull.
>
> I'm starting to read a book when integrate GWT with hibernate, spring mvc
> and spring security, and more
> http://code.google.com/p/tocollege-net/,
> take a look, can be interesting for you
>
> 2009/2/12 Christoph 
>>
>> Thanks Jorge, for you info.
>>
>> After a bit more research, I posted a similar question on the Spring
>> forum, with a bit more detail:
>> http://forum.springsource.org/showthread.php?t=67423
>>
>> It a first glance, it appears that Springs MVC is tailored to
>> traditional form based HTTP GET/POST type web clients.  Our domain
>> model is done with POJOs that we transmit back and forth between
>> client/server using GWT's Java serialization abilities. On the client
>> side we have a decent separation between model and view. From what I
>> can tell, since our application sends parts of the model to the
>> client, I'm not sure that some of the traditional web MVC stuff is
>> useful for us, since our app is more of rich-client/server RPC.  GWT
>> changes the architecture, for the better, away from the traditional
>> model only on the server approach.
>>
>> The IoC, DAO, and ORM stuff looks really useful.
>>
>>
>> On Feb 12, 9:52 am, Jorge Guerrero Damian 
>> wrote:
>> > I'm starting to learn gwt, but I know something about spring.
>> > - Spring is powerfull with security issues (I recomend that)
>> > - The Spring MVC module is usefull to have a clean separation of the
>> > code.
>> > - Spring have a great integration with hibernate, in topics like
>> > sessions,
>> > transactions,  and others.
>> >
>> > I don't have experience with the integration of the 3, but I starting to
>> > learn about that.
>> >
>> > 2009/2/11 Christoph 
>> >
>> >
>> >
>> >
>> >
>> > > We have a Tomcat-based GWT application that we are looking to scale.
>> > > Our persistence up until this point has been all via XML.  We are have
>> > > chosen to integrate with Hibernate and see a lot of talk about the
>> > > Spring Framework.  So my questions to the GWT community are this:
>> >
>> > > What benefit does Spring give us over integrating Hibernate without
>> > > Spring?
>> >
>> > > If it makes sense to integrate with Spring, what features of Spring
>> > > should we use?
>> >
>> > > Thanks,
>> > >  Christoph
>> >
>> > --
>> > Jorge Guerrero Damián
>> > Ingeniero Civil en Informática
>> > Egresado de Magister en Ciencias de la Ingeniería Informática
>> > U.T.F.S.M.
>>
>
>
>
> --
> Jorge Guerrero Damián
> Ingeniero Civil en Informática
> Egresado de Magister en Ciencias de la Ingeniería Informática
> U.T.F.S.M.
>
> >
>

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



Re: Announcing GWT 1.6 Milestone 1

2009-02-13 Thread Arthur Kalmenson

> Congratulation for this release.
>
> Unfortunately, there's still nothing about Maven support. No official
> repository, no official plugin I hope this will arrive this
> Milestone 2.
>
> Regards,
> Alexandre de Pellegrin

I think you'll note that GWT is in the central Maven repository
(http://repo1.maven.org/maven2/com/google/gwt/) and there are
currently at least two Maven plugins (being merged), the gwt-maven
plugin: http://code.google.com/p/gwt-maven/ and the Codehaus GWT
plugin: http://mojo.codehaus.org/gwt-maven-plugin/. I and a number of
other people use Maven every day, and it works OK. I'm sure it could
be better, but it does work.

--
Arthur Kalmenson



On Wed, Feb 11, 2009 at 4:29 AM, Alex dP (Violet UML Editor,
WebVNC...)  wrote:
>
> Congratulation for this release.
>
> Unfortunately, there's still nothing about Maven support. No official
> repository, no official plugin I hope this will arrive this
> Milestone 2.
>
> Regards,
> Alexandre de Pellegrin
>
> On Feb 6, 4:26 pm, Scott Blum  wrote:
>> Greetings GWT developers,
>>
>> The GWT team is happy to announce the availability of 1.6 Milestone 1!
>> Binary distributions are available for download directly from GWT's Google
>> Code project.
>>
>> http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=1.6.0
>>
>> As always, milestone builds like this are use-at-your-own-risk. There are
>> known bugs, and it definitely isn't ready for production use. Please expect
>> some trial and error getting everything to work. The javadoc that comes
>> bundled with the distribution should be up-to-date, but the online Developer
>> Guide (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-6) is
>> still very much a work in progress. We will be updating it over the next
>> several weeks. In lieu of an up-to-date Developer Guide and release notes,
>> below are the major highlights relative to GWT 1.5.3.
>>
>> *** New Project Structure in GWT 1.6 ***
>>
>> One of the biggest changes to GWT 1.6 is a new project structure. The old
>> output format has been replaced by the standard Java web app expanded "war"
>> format, and the actual directory name does default to "/war". Note that the
>> war directory is not only for compiler output; it is also intended to
>> contain handwritten static resources that you want to be included in your
>> webapp alongside GWT modules (that is, things you'd want to version
>> control). Please also note that the "GWTShell" and "GWTCompiler" tools will
>> maintain their legacy behavior, but they have been deprecated in favor of
>> new "HostedMode" and "Compiler" tools which use the new war output. When 1.6
>> is officially released, we will be encouraging existing projects to update
>> to the new directory format and to use the new tools to take advantage of
>> new features and for compatibility with future GWT releases.
>>
>> The sample projects provided in the GWT distribution provide an example of
>> correct new project configurations. For more details on the specifics of the
>> new project format, please see GWT 1.6 WAR design document 
>> (http://code.google.com/p/google-web-toolkit/wiki/WAR_Design_1_6).
>>
>> A couple of important changes we should highlight here:
>>
>> - Projects with server-side code (GWT RPC) must configure a "web.xml" file
>> at "/war/WEB-INF/web.xml". This web.xml file must define and publish any
>> servlets associated with the web application. See the included DynaTable
>> sample. Additionally, server-side library dependencies must be copied into
>> "/war/WEB-INF/lib". For example, any GWT RPC servlets must have a copy of
>> gwt-servlet.jar in this folder.
>>
>> - HTML host pages will no longer typically be located in a GWT module's
>> public path. Instead, we'll be recommending that people take advantage of
>> the natural web app behavior for serving static files by placing host pages
>> anywhere in the war structure that makes sense. For exmaple, you might want
>> to load a GWT module from a JSP page located in the root of your web app. To
>> keep such handwritten static files separate from those produced by the GWT
>> compiler, the latter will be placed into module-specific subdirectories. Any
>> page that wishes to include a GWT module can do so via a script tag by
>> referencing the GWT-produced ".nocache.js script" within that
>> module's subdirectory. As of 1.6, we'll be recommending that only
>> module-specific resources used directly by GWT code, such as image files
>> needed by widgets, should remain on the public path. See the included
>> Showcase sample for some examples of this distinction.
>>
>> - When you do need to load resources from a module's public path, always
>> construct an absolute URL by prepending GWT.getModuleBaseURL(). For example,
>> 'GWT.getModuleBaseURL() + "dir/file.ext"'. This advice has not changed, but
>> in the past it was easy to be sloppy with this, because the host page and
>> GWT module typically lived in the same directory, so using a 

Devolping strategy, get parameters on gwt

2009-02-13 Thread Tuvok

Hi guys,
I'm elaboratating the strategy to take in the devolping of my first
gwt app; it's gonna be an online tournament and matchmaking system
supporting team managing and other (in my mind :D) cool features.
I am using Tomcat/Apache as Web Server and RPC target and EXT GWT on
the client side.
At first I thought about using a single host page and manage
everything through panels/widgets adding-removing-modifying, but I
ended up thinking that in this case users wouldn't be able to exchange
urls pointing to a specific page (ie, if I wanna tell you, 'go check
out my team at http://site.com/viewteam.html?teamID=10' I can't
because there's a single page, index.html).
So I thought about splitting every page, but then, how can I make GWT
catch the data stored on the parameters?
IE on home page I have a link to viewteam.html?teamID=10, GWT catches
the teamID parameter, calls a RPC to the server using that ID and
populates the widgets, is this the correct way to go? If so, how to
make GWT catch that data?

Thanks in advance,
David

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



Issues in viewing pages developed using gwt and hosted in linux server using IE.

2009-02-13 Thread Haroon

Hi

I have some gwt web pages hosted in Tomcat 5.5 in a linux server
running RHEL 5 64 bit. I am having issues like tree  items missing '+'
and '-' images, decorated tab panel rounded edges appearing weired
etc. when these pages are viewed using IE, mozilla is not giving
theses issues. Also when this same war is deployed in the same Tomcat
version version running in Windows machines i am not getting these
issues. Has anybody else faced  some similar issues? How can i solve
this?

Rgds
Haroon Sajid

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



Add a new row in a table dynamically

2009-02-13 Thread krissh

Hi,
   I wanted to know if it is possible to add a new row to a existing
html table dynamically using GWT. I am fairly new to GWT and was
wondering if its possible. I checked the forum and couldn't find
anything on this. If anyone has a solution for this please let me
know.

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



Re: dead link from webtoolkit page

2009-02-13 Thread Arthur Kalmenson

I don't think there is an Russian version. Check this out:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/History.html

--
Arthur Kalmenson



On Tue, Feb 10, 2009 at 4:58 PM, Tatko  wrote:
>
> when user's on http://code.google.com/webtoolkit/overview.html
> clicking on 
> http://code.google.com/intl/ru/webtoolkit/documentation/com.google.gwt.user.client.History.html
> occures the follwoing:
> Not Found
> The requested URL /intl/ru/svn/javadoc/1.5/com/google/gwt/user/client/
> History.html was not found on this server.
>
> >
>

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



Re: Asynchronous woes :-)

2009-02-13 Thread logicpeters

Matthew,

Maybe I am not following the full scope of this, but why not implement
the logic where you call the other method within your servlet
(synchronously), instead of on the client where you chain together the
onSuccess calls.


On Feb 12, 3:26 pm, Matthew  wrote:
> Greeetings,
>
> Like many others, I’m running into a bit of difficulty getting my head
> around the asynchronous RPC mindset. I’ve done a substantial amount of
> reading in the forums (found the excellent “beer” example) and in
> simple cases, I get it, however in more complex cases – I’m finding
> I’m still at a bit of a loss. Please consider the following three
> methods within a network utility class I’m writing. I’ve distilled
> them to just the essentials:
>
>  // Return true if the host is reachable from the server
>     public boolean pingHost(String host){
>        return pingImp(host);
>     }
>
>     // Return true if the port is open on the host (ping it before
> checking)
>     public boolean checkPort(String host, int port){
>        if (ping(host)){
>            return checkPortImpl(host, port);
>        }
>        return false;
>     }
>
>     // Return true if the username is valid (ping it and check port 23
> first)
>     public boolean checkLogin(String host, String username){
>         if (ping(host)){
>             if (checkPort(host, 23)){
>                 return checkLoginImpl(host, username);
>             }
>         }
>         return false;
>     }
>
> The implementation methods for all three of these functions make RPC
> calls to a server which is performing the network activity.
>
> The key goal I’m trying to achieve is that the process only continues
> after each step succeeds (e.g. the port checkPort only occurs after a
> successful ping and so forth).
>
> Use case #1: the pingHost function will be used on its own to ping
> multiple systems
> Use case #2: the checkPort  function will also be used on its own to
> check status of various TCP/UDP ports (however it should only proceed
> if ping function succeeds)
> Use case #4; the checkLogin function will check for valid logins
> (however, I don’t want it to proceed unless the ping and checkport
> tests succeed)
>
> It seems like I can’t simply create an “OnSuccess chain” here, because
> the path isn’t linear – it varies depending on “who’s” calling the
> methods and what they’re trying to do. On the other hand, I don’t want
> to have multiple versions of these implementations just so I can chain
> off the OnSuccess methods.
>
> Can anyone make any general suggestions as to how I might organize or
> restructure this so that I can call these subsequent functions
> dependant on the results of earlier RPC calls?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to recognize hibernate exception on the client side

2009-02-13 Thread Dessorry

Hi
my app has a service that write record in a database, how can i
recognize hibernate exception such as record already wrote on the db
or not-null field with null value..
If i watch the throwable arg of onfailure methpod of async callback i
see that different hibernate exception have the sam exeption number:
500...

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



Re: GWT and Tapestry 5 integration

2009-02-13 Thread Casey

Thanks for putting this up. I'm going to take a look it at now.

On Jan 6, 1:51 pm, "Daniel Jue"  wrote:
> Hi,
>
> I'm relatively new to GWT, but I've been working with Apache Tapestry
> 5 for a while now.
> I've written a tutorial (with source code as an Eclipse project) on
> the Tapestry Wiki.  It's based on some older tutorials that are out
> there (thanks Pär Dahlberg).  It includes cases for using multiple
> instantiations of an entrypoint on one page, each acting
> independently.   The source includes a single Tapestry page that runs
> two simple dialog boxes, and two independant stock watchers.  ( In
> other examples online, there was no example for mixing in an RPC
> entrypoint.)
>
> http://wiki.apache.org/tapestry/Tapestry5GWTIntegration
>
> This setup has Tapestry as the "parent" web app framework, which
> handles multiple pages and components (and nested components).  The
> tutorial outlines a way to embed your GWT application as a component
> on a page.  (either the component template or the page template
> supplies the html you were using in your .html files with GWT
> development)
>
> I am not using Hosted Mode in this tutorial.  I got the Stock Watcher
> app up and running in another project, and then copied the Java source
> over.  The tutorial uses Maven to build your entrypoints and feeds the
> JS output back into the web app source.   RPC Service class files end
> up in the target dir with the Tapestry class files.
>
> If you are interested, please let me know what improvements I can make.
>
> Regards,
>
> Daniel Jue
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



No. of rows selected in PagingScrollTable

2009-02-13 Thread debu

Hi,

I'd be really grateful if any of u'll could give me an example or a
 sample code to get the number of rows selected on navigation from one
page to another in PagingScrollTable..
Thanks in advance.

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



Re: how to get icon to appear?

2009-02-13 Thread ytbryan

thank you for your reply.

sorry mon3y. i was assuming that there is a standard way of making
icon appear.

i have this toolbarbutton  and its method setIconCls();

ToolbarButton button_daily_View = new ToolbarButton("Daily View");
  button_daily_View.setIconCls("database-add-icon");

at the css, i have this:

.database-add-icon{
background-image:url(images/database_add.png);

}

but the image is not appearing. picture is
http://www.quickfilepost.com/download.do?get=ed4f75339f725d64633f905d...

On Feb 10, 11:23 am, mon3y  wrote:
> Hi
>
> Answers to your  question is indirectly proportional to the length of
> your question.
>
> Icon???...hmm..lets see. Icon as in a image?? Icon as in a favicon?
> Icon as in adding it to a panel icon?
>
> hmmmk.
>
> On Feb 9, 11:26 am, ytbryan  wrote:
>
> >  hi all,
>
> > may i know how can i get icon to appear?
> > what must i put inside the css { }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to get icon to appear?

2009-02-13 Thread ytbryan

thank you for your reply.

sorry mon3y. i was assuming that there is a standard way of making
icon appear.

i have this toolbarbutton  and its method setIconCls();

ToolbarButton button_daily_View = new ToolbarButton("Daily View");
  button_daily_View.setIconCls("database-add-icon");

at the css, i have this:


.database-add-icon{
background-image:url(images/database_add.png);
}

but the image is not appearing. picture is
http://www.quickfilepost.com/download.do?get=ed4f75339f725d64633f905d2df67886

On Feb 11, 4:31 pm, taggerman  wrote:
> i am guessing that as you are talking about css you might want to
> explore the background property set to a url:
> see  these sites for more 
> info:http://www.w3.org/TR/CSS2/colors.htmlhttp://www.w3schools.com/css/pr_background.asp
>
> On Feb 9, 1:26 am,ytbryan wrote:
>
> >  hi all,
>
> > may i know how can i get icon to appear?
> > what must i put inside the css { }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Gwt And Flash

2009-02-13 Thread jagadesh

Hi Guys,

iam trying to implement an application with flash and gwt . i just
started now. my idea i will create a flash form with a 2 text boxes.
and a submit buton. i will click on the button then i will keep the
data entered in flash field to a gloabal variables .then i will call
java script method using ExternalInterface from flash.then from the
java script i will call the java method written in Gwt.

Is it going to work . i need suggestion guys. or any alternates.

my  clear requirement is i will have 2 variables in flash which need
to be saved in database through Gwt-hibernate. so the way would be
flash-javascript-gwt-hibernate-database.

thanks for all the suggesons in advance.

thank u,
jagadesh

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



Re: Question: How can I get login user from Windows in GWT?

2009-02-13 Thread Damien Picard
Hi,

Good to know that. As I understand, it only works with IE (via active
directory), right ?

2009/2/13 Matías Costa 

> Damien is 50% right. You can't get windows credentials from any internet
> user. But both IE and mozilla on windows support http auth negotiate. IE for
> same active directory hosts out of the box, and in both you can add
> exceptions.
>
> I know it, because I worked in a web single sign on project for a company
> intranet. The mechanism is called SPNEGO. Other guy in the project
> integrated it with jass and/or acegui, but I don't remember too much.
>
>
> On Fri, Feb 13, 2009 at 7:46 AM, Roger  wrote:
>
>>
>> Hi all,
>>
>> Greeting from Roger.
>> I do not know how to get login user from Windows in GWT. I try solving
>> this in the way below, unfortunately does not work.
>>
>> In RemoteServiceServlet,
>>
>>   ...
>>Principal principal = getThreadLocalRequest().getUserPrincipal
>> ()   //  principal is NULL!!
>>String userName  = principal.getName();
>>   
>>
>> Is there anyone can help me on this ?
>> Thanks a ton.
>>
>> BR, Roger
>>
>>
>>
>
> >
>

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



Re: color control in a textarea for chat application

2009-02-13 Thread Steven

Great suggestion!

I have added a stylesheet file into the 'gwtOutput' folder of my web
dynamic project,
with the correct styles which you suggested: now it works fine.

Thanks!
Steve




On Feb 5, 7:37 am, Damien Picard  wrote:
> Sorry, the correct styles are :
>
> .gwt-HTML {
>     font-family: Arial, sans-serif;
>     font-size: 10px;}
>
> .gwt-HTML-blue{
>     color: blue;
>
> }
>
> (I've added text-color in order to test this declaration :p )
>
> 2009/2/5 Damien Picard 
>
>
>
> > Hi !
>
> > I think you've got an error in your css declaration "text-color".
> > Currently, this declaration is not really compliant. You have to use "color"
> > instead of.
> > I've tried what you have done, and it works for me :
>
> > Entry Point module :
>
> > public class testApplication implements EntryPoint {
> >     private HTML html;
> >     private Button clickMeButton;
> >     public void onModuleLoad() {
> >         RootPanel rootPanel = RootPanel.get();
>
> >         clickMeButton = new Button();
> >         rootPanel.add(clickMeButton);
> >         clickMeButton.setText("Blue Text !");
> >         clickMeButton.addClickListener(new ClickListener() {
> >             public void onClick(Widget sender) {
> >                 getHtml().addStyleDependentName("blue");
> >             }
>
> >         });
>
> >         html = new HTML("Blue text ?");
> >         rootPanel.add(html, 9, 48);
> >         html.setSize("467px", "309px");
> >         html.setStyleName("gwt-HTML");
> >     }
> >     public HTML getHtml() {
> >         return html;
> >     }
> > }
>
> > As you can see, I've explicitly defined the styleName before setting the
> > dependant Style Name.
> > And in my application, I've defined an extended style sheet in the xml :
>
> > 
>
> > In this style sheet, i've defined the two styles :
>
> > .gwt-HTML {
> >     font-family: Arial, sans-serif;
> >     font-size: 10px;
> > }
> > .gwt-HTML-blue{
> >     text-color: blue;
> > }
>
> > And it works fine for me.
>
> > Regards,
> > Damien
>
> > 2009/2/4 Steven 
>
> >> Hi all,
>
> >> I would like to create a non-editable color-controlled (or style-
> >> controlled) textArea for a GWT chat application.
> >> For instance I woud like to change the color (or the text-style) of
> >> the messages depending on the message sender.
>
> >> To do that, after reading previous posts on this group I  created a
> >> HTML object, adding some very basic styles to the  standard.css file.
> >> In fact my application inherits the standard theme, as I can read from
> >> the xml configuration file:
>
> >> 
>
> >> So for instance I added the .gwt-HTML-blue {text-color: blue} to the
> >> standard.css file the and in my application i invoked the method:
> >> HTMLObject.addSyleDependentname("blue")
>
> >> BUT  actually nothing happens: my message in the textArea is still
> >> black instead of blue.
>
> >> Why?
>
> >> I tried also to create a RichTextArea object and I tried  to invoke
> >> the method
> >> RichTextAreaObject.getBasicFormatter().toggleBold(), in order to set
> >> my message as bold,
> >> BUT  it doesn't work
>
> >> Thanks in advance, bye
>
> >> Steve- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Integrating GWT+Spring application with Hibernate

2009-02-13 Thread eggsy84

Hi there,

My Set of tutorials may help you do this:

Part Two: 
http://eggsylife.blogspot.com/2007/11/hibernate-spring-google-web-toolkit.html
Part Three: 
http://eggsylife.blogspot.com/2008/02/hibernate-spring-google-web-toolkit.html
Part Four: 
http://eggsylife.blogspot.com/2008/09/hibernate-spring-google-web-toolkit.html
Part Five: 
http://eggsylife.blogspot.com/2008/11/hibernate-spring-and-gwt-for-gwt-15.html

Source Code Download Example for the project is at the end of Part 5.

Hoep this helps 




On Feb 13, 9:15 am, poonam pac  wrote:
> Hello,
>    Actually I have used the same 
> linkhttp://software-wonders.blogspot.com/2007/02/it-is-not-mistery-that-g...
> to
> develop my GWT+Spring application, now I want to integrate my this
> application with Hibernate. Please help me in doing that.
> Thanks,
> Poonam.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Asynchronous woes :-)

2009-02-13 Thread Paul

beside the possibility discussion: in the checkLogin() you don't need
to ping(host) before the checkPort() as the latter does this on its
own, right?

Paul.



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



GWT 1.6 M1 log.tld file not found error

2009-02-13 Thread Allahbaksh

Hi,
I was using GWT 1.5. Today I moved my application to GWT1.6M1 so as to
try the rich features. When I move the project I am getting below
error when I start my application.

Please note if I create some example application it works fine. Can
some one throw some light on the same.

Regards,
Allahbaksh

java.io.FileNotFoundException: C:\workspace\ProjectName\war\WEB-INF
\log.tld (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(Unknown Source)
at java.io.FileInputStream.(Unknown Source)
at sun.net.www.protocol.file.FileURLConnection.connect(Unknown
Source)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(Unknown
Source)
at
com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity
(Unknown Source)
at
com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion
(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse
(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse
(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at org.mortbay.xml.XmlParser.parse(XmlParser.java:188)
at org.mortbay.xml.XmlParser.parse(XmlParser.java:204)
at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp
(TagLibConfiguration.java:227)
at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1217)
at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at com.google.gwt.dev.shell.jetty.JettyLauncher
$WebAppContextWithReload.doStart(JettyLauncher.java:236)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:39)
at com.google.gwt.dev.shell.jetty.JettyLauncher.start
(JettyLauncher.java:283)
at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java:368)
at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:587)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:394)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:231)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Adding or Removing a row dynamically in PagingScrollTable

2009-02-13 Thread debu

Thanks a lot..If its possible could u plz help me out as to how to goa
bout it..
Thanks a lot.

On Feb 12, 8:41 pm, Isaac Truett  wrote:
> Yes. You can modify the underlying table model and reload the current
> page if necessary.
>
> On Thu, Feb 12, 2009 at 7:51 AM, debu  wrote:
>
> > Hi,
>
> > I would like to know if its possible to add or remove a row
> > dynamically in a PagingScrollTable.
>
> > Thanks,
> > Debu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Integrating GWT+Spring application with Hibernate

2009-02-13 Thread poonam pac
Hello,
   Actually I have used the same link
http://software-wonders.blogspot.com/2007/02/it-is-not-mistery-that-google-web.html
to
develop my GWT+Spring application, now I want to integrate my this
application with Hibernate. Please help me in doing that.
Thanks,
Poonam.

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



Re: Integrating GWT+Spring application with Hibernate

2009-02-13 Thread Behrooz Nobakht

Hi,

http://software-wonders.blogspot.com/2007/02/it-is-not-mistery-that-google-web.html

It would help.



On Thu, Feb 12, 2009 at 4:32 PM, poonam  wrote:
>
> Hello,
>I am new to this technology,but i have developed an application
> integrating GWT with Spring , I have integrated this application by
> registering my GWT servlet in my web.xml file and also modify the GWT
> client to reflect the path change done. To the web.xml file I have
> added  the spring's DispatcherServlet mappings. And finally I have
> created a new configuration file called 'spring-servlet.xml' where I
> have put the real configuration of my GWT service controller.Now, I
> want to know that, how can I integrate this already createde GWT
> +Spring application with hibernate.Please help me.
> Thanks,
> Poonam.
>
> >
>

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



importing two type of window classes

2009-02-13 Thread ytbryan


hi all,

if i want a feature from gwt Window that is not found in gwtext
Window, what should i do?
Since, com.google.gwt.user.client.Window and
com.gwtext.client.widgets.Window cannot co-exist.


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



Re: Struts+GWT

2009-02-13 Thread Rockster

I totally agree with Gregor.

Struts is for navigational purpose in Classic WebApplications (let's
call that Web1.0 technology).
Struts became an industry standard in the Web1.0 era.

The programming model behind GWT is like it was before web: Just
create an application and don't worry about
request/response etc. Everyhing happens in that application.

My suggestion to you:

A struts appliction contains Actions. The Body of the Actions should
in fact NOT contain any business logic.
That's where the "SOA" kicks in.  You might have the real logic in the
body of another class.
You can reuse that class

So (in the old case)

MyAction extends Action {

  MyService myService = new MyService()
   execute(req,resp){

   // of course you have here some navigational actions
myService.businessMethod(...)

   }

}


In GWT this is the RPC/RPCImplementation/RPCAsync combination.

RPCImpl implements RPC{

doSomething(){

   }

}

   There you can reuse your MyService class.


BTW: MyService is nothing fancy, just a class (best with Interface and
separate implementation).
>From this point on you can use anything you want (Spring,
hibernate,etc!).

Good luck,
Rockster

On Feb 12, 1:26 pm, gregor  wrote:
> I would search the group for many posts about struts and GWT. Some
> people are forced to integrate GWT with legacy struts systems, but the
> bottom line is that if you are starting out a new app, you do not need
> to use struts. Use GWT RPC.
>
> On Feb 12, 10:09 am, Rockster  wrote:
>
>
>
> > Could you state what the reason is you want to use Struts in
> > combination with GWT ?
>
> > On Feb 12, 8:37 am, GWT GWT  wrote:
>
> > > Hi ,
> > > I am trying to develp an application using GWT+Struts .
> > > I had search on net But I am not getting tutorial to develop  an 
> > > application
> > > using GWT+Struts.
> > > So from where will I get that tutorial.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



format datebox (gwt-incubator-1.5.jar)

2009-02-13 Thread Josse

Hello, I woulds like to create a dateBox with today date into it. But
i want to change de date format and I always got an error. Here what I
do :

Code :
//Déclaration
private final DateBox dateMisAJour = new DateBox();
...

DateTimeFormat format = new DateTimeFormat("dd/MM/");
this.dateMisAJour.setDateFormat(format);

this.dateMisAJour.getDatePicker().setSelectedDate(new Date());
this.dateMisAJour.setEnabled(false);
.

this.bandeauMiseAJour.add(dateMisAJour);

The instanciate of DateTimeFormat always underline "new DateTimeFormat
("dd/MM/");" to indicate an error but dont show any proposition.
What it's most weird is that DateTimeFormat take a string as a
parameter.

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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Slow Scrolling in GWT

2009-02-13 Thread Rhyce

Hi All,

I've been experiencing an issue that I can't seem to nail down: Slow
Scrolling in GWT.

My setup is this:

A TabPanel with a DockPanel in it. In the dock panel there are about,
say anywhere from 10-300 images that are about 1000x1000. In Safari
(I'm on a Mac) I can scroll through that setup with blazing speed.
However, when I load them into a scrollpane in GWT, the scrolling is
jerky and not very smooth at all.

There are a number of events (of course) hooked up to the various
scroll events, but even stripping it down to a simple ScrollPanel
inside the Tab/DockPanel with no events listening doesn't seem to help
much at all.

Is there anything else I can check to perhaps improve the performance
in this critical area? I don't understand how scrolling can be
intensive enough that it doesn't work in GWT if all of the things it
implements are basically HTML widgets.

Anyone?


Best,

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



Re: compiling gwt with classes outside gwt jre emulation library

2009-02-13 Thread ytbryan

hi shaffer,

thank you for your reply!

i actually wanted to just get connection like below:

HttpURLConnection conn = (HttpURLConnection)
url.openConnection();
BufferedReader br = new BufferedReader(
new InputStreamReader(
conn.getInputStream()
)
);

do you have any suggestion which classes can i use?

On Feb 12, 5:58 pm, "mikedshaf...@gmail.com" 
wrote:
> Without knowing your specifics, you have to evaluate what the
> additional class is "doing".  Perhaps there is a GWT compatible class
> that performs the same functionality.  More than likely, what you want
> to do can't be done on the client.  Remember:  your GWT Java code is
> compiled into Javascript and run inside the browser container.  That
> container has many "rules" that it must follow.  And a lot of real
> basic feeling functionality (like writing to the file system for
> example) are not allowed.
>
> Your best bet is to take a look at the functionality that you using
> the java.net.HTTPURLConnection in, and see if that functionality can
> be replicated in GWT.  That's about the best direction to go.
>
> Later,
>
> Shaffer
>
> On Feb 12, 8:55 am, ytbryan  wrote:
>
> > hi all,
>
> > i wanted to add a java class that retrieve the data from a webpage and
> > display it on my gwt.
>
> > however, i just realised that the additional class contains
> > java.net.HTTPURLConnection which is not in gwt jre emulation library.
>
> > so right now, the application cannot work and can't compile. i am
> > working in eclipse.
>
> > any advices to what i should do? 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: compiling gwt with classes outside gwt jre emulation library

2009-02-13 Thread ytbryan

hi shaffer,

thank you for your reply!

i actually wanted to just get connection like below:

HttpURLConnection conn = (HttpURLConnection)
url.openConnection();
BufferedReader br = new BufferedReader(
new InputStreamReader(
conn.getInputStream()
)
);

do you have any suggestion which classes can i use?

On Feb 12, 5:58 pm, "mikedshaf...@gmail.com" 
wrote:
> Without knowing your specifics, you have to evaluate what the
> additional class is "doing".  Perhaps there is a GWT compatible class
> that performs the same functionality.  More than likely, what you want
> to do can't be done on the client.  Remember:  your GWT Java code is
> compiled into Javascript and run inside the browser container.  That
> container has many "rules" that it must follow.  And a lot of real
> basic feeling functionality (like writing to the file system for
> example) are not allowed.
>
> Your best bet is to take a look at the functionality that you using
> the java.net.HTTPURLConnection in, and see if that functionality can
> be replicated in GWT.  That's about the best direction to go.
>
> Later,
>
> Shaffer
>
> On Feb 12, 8:55 am, ytbryan  wrote:
>
> > hi all,
>
> > i wanted to add a java class that retrieve the data from a webpage and
> > display it on my gwt.
>
> > however, i just realised that the additional class contains
> > java.net.HTTPURLConnection which is not in gwt jre emulation library.
>
> > so right now, the application cannot work and can't compile. i am
> > working in eclipse.
>
> > any advices to what i should do? 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Question: How can I get login user from Windows in GWT?

2009-02-13 Thread Matías Costa
Damien is 50% right. You can't get windows credentials from any internet
user. But both IE and mozilla on windows support http auth negotiate. IE for
same active directory hosts out of the box, and in both you can add
exceptions.

I know it, because I worked in a web single sign on project for a company
intranet. The mechanism is called SPNEGO. Other guy in the project
integrated it with jass and/or acegui, but I don't remember too much.

On Fri, Feb 13, 2009 at 7:46 AM, Roger  wrote:

>
> Hi all,
>
> Greeting from Roger.
> I do not know how to get login user from Windows in GWT. I try solving
> this in the way below, unfortunately does not work.
>
> In RemoteServiceServlet,
>
>   ...
>Principal principal = getThreadLocalRequest().getUserPrincipal
> ()   //  principal is NULL!!
>String userName  = principal.getName();
>   
>
> Is there anyone can help me on this ?
> Thanks a ton.
>
> BR, Roger
>
> >
>

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



Re: DateTimeFormat problem when deploying to tomcat on unix

2009-02-13 Thread jptard

Thanks Pascal...

The application I implemented is to follow command made by our
client... and it's needed to display all the information of the date
(timestamp format) saved on database ...

We have some people working in Maroc and it's them that encountered
'the problem' ... I thought that to force the locale of the
application in the .gwt.xml and in the jsp page with the meta line,
will resolve the problem... it seems that its the case on my
computer.. but not when i deploy the application !

Not easy to manipulate date in informatic !

JP

On Feb 12, 8:54 pm, Pascal  wrote:
> Bonjour JP,
> The problem is not with the DateTimeFormat class. You have to look at
> the way dates work in java. A date object is little more than an
> offset in milliseconds which happens to be on a give day in the
> timezone where the date object has been created. So for example, if
> you create it with a calendar object with no time component or
> retrieve it from a database date object, it will be at midnight on a
> given day. Now, if you send it to the client which is in a time zone
> that's behind the server's timezone, it will fall on the previous day.
>
> The way we solved this was to create our own DateDTO  for dealing with
> dates with no time component. It only captured year, month and day.
> Then we do a conversion to Date on the client for rendering.
>
> Note that in another context, the timezone behavior is prettty useful.
> If you create a date object on the server that represents 11am, you
> send it to the client, which is 2 hours behind, and you render it, you
> will see that it now displays 9am which is what the server time is in
> local time.
>
> Hope this helps,
>
> Pascal
>
> On Feb 12, 10:44 am, jptard  wrote:
>
> > Hello,
>
> > I encounter a problem with DateTimeFormat class..., not on my computer
> > but when my application is deployed on production:
>
> > I configured my module to force locale fr_FR like this on my module
> > properties file:
>
> >       
>
> > and I put the meta line below on my jsp page:
>
> >      
>
> > When I am on my computer with a tomcat server, i can change my
> > timezone of my computer and my date displayed on the module is the
> > same each time
>
> > When we deployed the application on an unix server, if I change the
> > timezone of my computer, the date displayed on my module can change :
> > 20/03/2009 instead of 21/03/2009 for example...
>
> > I can't understand why.. and spend my day to resolve the problem.. but
> > with no success...
>
> > If anyone has encountered a similar problem and can help me... Thanks
> > in advance,
>
> > JP
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---