Re: Google's Way ! reinventing the wheel

2010-07-09 Thread Mohsen Saboorian
Java's old-fashion resource bundles doesn't support parameters (and even did
not support UTF-8 until Java 6), nor it supports more sophisticated
constructs for plural terms.

Just start with GWT showcase sample application (can be found in GWT
standard download package), and write your code based on it.

Mohsen

On Sat, Jul 10, 2010 at 7:22 AM, Aladdin  wrote:

> All I want is to create I18N support in my application , it has been
> three days and it's now 5:37 am because the GWT team want invent new
> language other than Java.
>
> So my question , why instead   of using the Java's regular resource
> bundle the GWT team go with their imagination and invent new way , so
> experts Java developers  have to learn new APIs and methods ... give
> us a break !!!
>
> All I want is old fashion properties file that users can add new
> locals to my application without having to recompile the code .
>
>
> ClientBundle , Dictionary , Constants ... blah ... blah ... blah ..
>
> GWT is a great product , but please just give us Java ,because when
> you say it's Java it's not only the syntax , it's the library ... this
> what took me 10 years to master not how to write if ..else
> statement ...
>
> Or just call it GWT++
>
> Aladdin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: How to get the loading symbol while the application is loading in gwt 2.0.3

2010-07-09 Thread Prashant
do you want to implement similar to this one
http://claymus-demo.appspot.com/_ah/content ?

On 10 July 2010 04:34, lineman78  wrote:

> You will need to implement it in html and hide it once the application
> loads.  You might have to move the script tag out of the head to the
> bottom of the body to allow it to paint the page before fetching.
>
> On Jul 9, 2:44 pm, gourineni rakesh  wrote:
> > Hi,
> >I am using gwt 2.0.3 in an Eclipse project. When I run the java code
> in
> > eclipse I get the url n by pasting it in the web browser I need to wait
> for
> > some time to get the application.So I need to get "The application is
> >  loading" while I wait for the appliocation to load .  I have no idea how
> to
> > do this plz help me.
> >   thanls in advance.
> >
> > Regards,
> > Rakesh.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Google's Way ! reinventing the wheel

2010-07-09 Thread Aladdin
All I want is to create I18N support in my application , it has been
three days and it's now 5:37 am because the GWT team want invent new
language other than Java.

So my question , why instead   of using the Java's regular resource
bundle the GWT team go with their imagination and invent new way , so
experts Java developers  have to learn new APIs and methods ... give
us a break !!!

All I want is old fashion properties file that users can add new
locals to my application without having to recompile the code .


ClientBundle , Dictionary , Constants ... blah ... blah ... blah ..

GWT is a great product , but please just give us Java ,because when
you say it's Java it's not only the syntax , it's the library ... this
what took me 10 years to master not how to write if ..else
statement ...

Or just call it GWT++

Aladdin

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



Re: Help needed changing ui.xml from DecoratorPanel to DockLayoutPanel using Presenter

2010-07-09 Thread Jim McGlaughlin
 Thank you so much 

That indeed was the problem... using RootLayoutPanel for DockLayoutPanel and
not RootPanel.

There was also an issue with not having a size attribute in the 
element of the ui.xml file.

Thanks again!
Jim


On Fri, Jul 9, 2010 at 3:31 PM, mkh  wrote:

>
> On Jul 9, 2:07 am, Jim in NH  wrote:
> > I have a project that works modeled after the Contacts example from
> > the Google I/O talks.
> >
> > In trying to use a DockLayoutPanel I changed the .ui.xml file as
> > from using simple panels
> > shown below.  Both versions of the ui.xml file have the same UiFields.
> >
>
> I also ran into a problem when changing from a DecoratorPanel to
> DockLayoutPanel, but the issue in my case was with the layout. The
> problem was the DockLayoutPanel must be added to RootLayoutPanel.get()
> instead of RootPanel.get().
>
>

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



Re: Shared CSS

2010-07-09 Thread lineman78
Yeah, all you need is a simple EntryPoint class that just calls
StyleInjector.injectCss in the onModuleLoad method.

On Jul 8, 8:48 pm, Hethcox  wrote:
> Thanks for all the great suggestions. The shared library has a gwt.xml
> file but is not an EntryPoint. Can I just pick a class in the library
> and have it implement EntryPoint to get the shared CSS loaded?
>
> To answer the other follow-up questions, I am deploying each app as a
> separate war file. All of the styles are set through code, so the
> class names can be obfuscated.
>
> John
>
> On Jul 8, 6:25 pm, lineman78  wrote:
>
>
>
> > There are many possible solutions for the generic problem you face.
> > You will need to be more specific about your final deployment
> > architecture if you would like a more specific answer of which is
> > best.  Are these GWT apps all going to be deployed within the same
> > WAR? EAR? Separate EARs?  Is the only thing referencing these classes
> > GWT objects, or do the class names need to remain unobfuscated?  If
> > you are willing to go through using a CssResource and obfuscating the
> > class names I would suggest creating a common module and inherit the
> > module whenever you need to use the classes.  In the entry point for
> > the common module you would inject the style.  If the css must remain
> > unobfuscated, it depends on your final deployment.  If they are in
> > different WARs, then I would again create a common module, but add a
> > public path to the module so that if you inherit the module it will
> > write the script to it:
>
> > 
> >     
> >     
> >     
> >     
> >      > class="com.ams.common.client.gwt.client.CommonEntryPoint"/>
> > 
>
> > Put the file Library.css into com/ams/common/client/gwt/www
>
> > If they are all in 1 WAR, the best method would be to manually copy
> > the file to the WAR root and add the link to your html files.
>
> > On Jul 7, 10:27 am, Hethcox  wrote:
>
> > > Hello,
> > > I have a GUI library that is used by several GWT apps. I would like
> > > the widgets in the library to use a standard sets of CSS classes from
> > > the library so that they don't have to be copied and maintained in the
> > > apps that  use the library. The library is deployed as a jar
> > > currently, but that can change.
>
> > > I've read a lot of posts on this topic, but none of them seems to do
> > > the trick. My target platform is JBoss and the closest solution I've
> > > found so far is to put the library CSS file in ROOT.war/css at deploy-
> > > time. Is there a build-time trick to get the GWT apps to deploy the
> > > CSS file when it cross-compiles the library widgets?
>
> > > Cheers,
> > > John

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



Re: How to get the loading symbol while the application is loading in gwt 2.0.3

2010-07-09 Thread lineman78
You will need to implement it in html and hide it once the application
loads.  You might have to move the script tag out of the head to the
bottom of the body to allow it to paint the page before fetching.

On Jul 9, 2:44 pm, gourineni rakesh  wrote:
> Hi,
>    I am using gwt 2.0.3 in an Eclipse project. When I run the java code in
> eclipse I get the url n by pasting it in the web browser I need to wait for
> some time to get the application.So I need to get "The application is
>  loading" while I wait for the appliocation to load .  I have no idea how to
> do this plz help me.
>   thanls in advance.
>
> Regards,
> Rakesh.

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



A mind is a terrible thing to have wasted

2010-07-09 Thread Jeff Chimene
On 07/09/2010 02:57 PM, Thomas Broyer wrote:
> 
> On 9 juil, 21:22, Jeff Chimene  wrote:
>> Hi:
>>
>> I cannot figure out how I managed to install GWT 2.1 into the
>> eclipse/plugins directory.
>>
>> I reinstalled eclipse 3.6 for other reasons, and I cannot remember how I
>> got 2.1 into eclipse/plugins.
>>
>> For now, I just downloaded the zip and install 2.1 to another directory,
>> then pointed the GPE at that directory.
> 
> http://code.google.com/intl/fr-FR/webtoolkit/download_2_1_m2.html
> 
> GPE instructions haven't been updated though. Just replace 2.1.0.M1
> with 2.1.0.M2, and use "3.6" in the update site URL for Eclipse Helios.
> 

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



Re: List Box widgets like in gmail

2010-07-09 Thread Thomas Broyer


On 9 juil, 20:21, Simon B  wrote:
> Hi,
> I need to incorporate into a filter widget functionality like that
> found in gmail in the "Move to", "Labels" and "More actions" List Box
> widgets that are found in the gmail mail application.
>
> Basically so that I can use the checkboxes and also they need to
> support all the event handling as well, does anyone know of a widget
> that supports this?

GWT 2.1 (currently a "milestone-quality" release) comes with Cell-
based widgets which makes this much easier. If you can't live with
beta code, and/or can't wait a few months for the 2.1 "GA" release,
then I have no answer, as I don't use any third-party widget library,
but you can probably find several of them with such a widget (Vaadin,
GXT/ExtGWT, SmartGWT, etc.)

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



Re: Does anyone know how I installed 2.1in the plugins directory

2010-07-09 Thread Thomas Broyer

On 9 juil, 21:22, Jeff Chimene  wrote:
> Hi:
>
> I cannot figure out how I managed to install GWT 2.1 into the
> eclipse/plugins directory.
>
> I reinstalled eclipse 3.6 for other reasons, and I cannot remember how I
> got 2.1 into eclipse/plugins.
>
> For now, I just downloaded the zip and install 2.1 to another directory,
> then pointed the GPE at that directory.

http://code.google.com/intl/fr-FR/webtoolkit/download_2_1_m2.html

GPE instructions haven't been updated though. Just replace 2.1.0.M1
with 2.1.0.M2, and use "3.6" in the update site URL for Eclipse Helios.

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



Re: setHTML generates different HTML in Fire Fox then in IE8

2010-07-09 Thread Thomas Broyer


On 9 juil, 22:18, skippy  wrote:
> I am trying to replace my GWT page with a logon jsp page when the
> session times out.  This works great in Fire Fox, but not in IE.  It
> looks like the HTML is not valid in IE.  It is missing the "" in the
> tags.
>
> This code:
>
> HTML htmlResponse = new HTML();
> htmlResponse.setHTML(response.getText());
> RootPanel.get().clear();
> RootPanel.get().add(htmlResponse);
>
> In Fire fox the object contains:  Note the ""
>
> 
>         
>             
>             
>             
>                document.targetForm.submit();
>             
>          
>    
>
> In IE8 the object contains:  Note the lack of ""
>
> 
>  bankNumber=9T&subProduct=>
> 
> 
>         
>                document.targetForm.submit();
>         
>  
>
> The HTML in IE is not valid.

Yes it is, but it really doesn't matter here. What matters is that,
for security reasons, 

Re: Button click not corresponding to the row to remove

2010-07-09 Thread Thomas Broyer

On 9 juil, 19:33, ccg123  wrote:
> Have a FlexTable with made up of two columns of data and a third
> column with a button, that when clicked makes an asynchronous call and
> removes the data from the session. My problem is that when I click the
> button it refers to the info in the row above and not the same row
> that the button is in. Why?

Because that's what you coded.

> public class GroupDataAlertDataGrid extends FlexTable {
>
>         private ClickListener dismissListener;
>         private Button dismissButton;
>
>     void addDataToFlexTable(final LocationsInfoDTO locationsInfoDTO)
>     {
>         int row = 0;
>
>         for(final Info info : locationsInfoDTO.getInfos()){
>
>                 dismissButton = new Button("Dismiss", dismissListener);

Let's create a button with a (@Deprecated) ClickListener.
On first iteration, dismissListener hasn't been initialized, so it has
its default value: null.

>                 this.setWidget(row, 1, new Label(info.getLocationCode()));
>                 this.setWidget(row, 2, new Label(info.getClientName()));
>                 this.setWidget(row, 3, dismissButton);
>
>                 dismissListener = new ClickListener() {

Now that the button is created and "used", let's create a
ClickListener for the current Info, but don't use it.
On first iteration, this sets dismissListener from 'null' to a
ClickListener for the first row (but notice that the button has been
created with a null listener, and added the first row already; so this
listener will only be used on second iteration, so that the second
button's listener will be related to the first Info, and so on for
other rows)

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



Re: Button click not corresponding to the row to remove

2010-07-09 Thread ccg123
Here is my solution that works for me:

public class GroupDataAlertDataGrid extends FlexTable {

private Button dismissButton;
private int row;

void addDataToFlexTable(LocationsInfoDTO locationsInfoDTO)
{
for(final Info info : locationsInfoDTO.getInfos()){

dismissButton = new Button("Dismiss");

this.setWidget(row, 1, new Label(info.getLocationCode()));
this.setWidget(row, 2, new Label(info.getClientName()));
this.setWidget(row, 3, dismissButton);

dismissButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
Cell cell = getCellForEvent(event);
int receiverRowIndex = cell.getRowIndex();
//make the row invisible

getRowFormatter().setVisible(receiverRowIndex, false);


GwtAlertServicesDelegate.getService().removeLocationInfoFromSession(info,
new 
AsyncCallback() {
@Override
public void 
onFailure(Throwable arg0) {}
@Override
public void 
onSuccess(LocationsInfoDTO arg0) {}
}
);
}
});

row++;
}
}
}


On Jul 9, 10:51 am, ccg123  wrote:
> Update: I tried making the row variable a class variable instead of a
> method variable. I want to be able to hide the row when the user
> clicks the "dismiss" button. Here is my latest code. Any help is
> appreciated.
>
> public class GroupDataAlertDataGrid extends FlexTable {
>
>         private ClickListener dismissListener;
>         private Button dismissButton;
>         private int row = 0;
>
>     void addDataToFlexTable(final LocationsInfoDTO locationsInfoDTO)
>     {
>
>         for(final Info info : locationsInfoDTO.getInfos()){
>
>                 dismissButton = new Button("Dismiss", dismissListener);
>
>                 this.setWidget(row, 1, new Label(info.getLocationCode()));
>                 this.setWidget(row, 2, new Label(info.getClientName()));
>                 this.setWidget(row, 3, dismissButton);
>
>                 dismissListener = new ClickListener() {
>                                 public void onClick(Widget sender) {
>                                         //make the row invisible
>                                         getRowFormatter().setVisible(row, 
> false);
>
>                                         //call server - tell session which 
> elements from list to remove
>
> GwtAlertServicesDelegate.getService().removeLocationInfoFromSession(info,
>                                                         new 
> AsyncCallback() {
>                                                                 @Override
>                                                                 public void 
> onFailure(Throwable arg0) {}
>                                                                 @Override
>                                                                 public void 
> onSuccess(LocationsInfoDTO arg0) {}
>                                                     }
>                                         );
>                                 }
>                         };
>                 row++;
>         }
>     }
>
> }
>
> On Jul 9, 10:33 am, ccg123  wrote:
>
> > Have a FlexTable with made up of two columns of data and a third
> > column with a button, that when clicked makes an asynchronous call and
> > removes the data from the session. My problem is that when I click the
> > button it refers to the info in the row above and not the same row
> > that the button is in. Why?
>
> > public class GroupDataAlertDataGrid extends FlexTable {
>
> >         private ClickListener dismissListener;
> >         private Button dismissButton;
>
> >     void addDataToFlexTable(final LocationsInfoDTO locationsInfoDTO)
> >     {
> >         int row = 0;
>
> >         for(final Info info : locationsInfoDTO.getInfos()){
>
> >                 dismissButton = new Button("Dismiss", dismissListener);
>
> >                 this.setWidget(row, 1, new Label(info.getLocationCode()));
> >                 this.setWidget(row, 2, new Label(info.getClientName()));
> >                 this.setWidget(row, 3, dismissButton);
>
> >                 dismissListener = new ClickListener() {
> >                                 public void onClick(Widget sender) {
>
> > GwtAlertServicesDelegate.getService().removeLocationInfoFromSession(info,
> >                                                         new 
> > AsyncCallback() {
> >                 

How to get the loading symbol while the application is loading in gwt 2.0.3

2010-07-09 Thread gourineni rakesh
Hi,
   I am using gwt 2.0.3 in an Eclipse project. When I run the java code in
eclipse I get the url n by pasting it in the web browser I need to wait for
some time to get the application.So I need to get "The application is
 loading" while I wait for the appliocation to load .  I have no idea how to
do this plz help me.
  thanls in advance.

Regards,
Rakesh.

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



Re: orcades spring gwt sample, Startup Warnings

2010-07-09 Thread Olivier NOUGUIER
Hi,
Look like this sample application is outdated because the  tag is  
deprecated in gwt >= 1.5
Remove those décoration from the *.gwt.XML files
  

Envoyé de mon iPad

Le 8 juil. 2010 à 20:59, mfreitag  a écrit :

> Hi @all,
> 
> now i try to start orcades-spring-gwt-sample in Eclipse with righClick-
>> RunAs->WebApplication. The application starts successfully, but i see
> no login panel and in console there are the following Warnings:
> 
> 
> 
>  I
> [WARN] Module declares a servlet class
> 'org.springframework.web.context.support.HttpRequestHandlerServlet'
> with a mapping to '/springsample.SampleModule/sampleService2-
> unsecure.gwt', but the web.xml has no corresponding mapping; please
> add the following lines to your web.xml:
> 
>  shell2
>  /springsample.SampleModule/sampleService2-unsecure.gwt url-pattern>
> 
> 
> 
> I checked out:  http://net-orcades-spring.googlecode.com/svn/trunk/
> net-orcades-spring.
> 
> What i am do wrong?
> 
> Thanks for help!
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
> 

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



Re: concerns on 2.1 MVP approach

2010-07-09 Thread Philippe Beaudoin
Thanks Thomas,

I'm glad to hear that... It seems like some of these could be
integrated in gwt-platform apps (i.e. Cell-based widgets, maybe even
the RequestFactory). I wish I had more time to look into this.

   Philippe

On Fri, Jul 9, 2010 at 1:12 PM, Thomas Broyer  wrote:
>
> On 9 juil, 11:31, "marius.andreiana" 
> wrote:
>> Hi GWT developers,
>>
>> There are some concerns on 2.1 MVP approach, which have been raised
>> herehttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>> and 
>> herehttp://groups.google.com/group/gwt-platform/browse_thread/thread/862c...
>>
>> To summarize, here are some quotes:
>> * It's extremely fast to build an initial scaffold (CRUD for all
>> entities), but I'm not sure how easy it is to customize it for real
>> world usage
>> * When skimming the generated sources I saw A LOT of artifacts, which
>> I don't feel comfortable with because it means that although
>> "officially" my code is not coupled with Roo, if I were to drop it I
>> would have to manage all these generated artifacts myself.
>> * This expenses example is a nightmare to follow.  The bindings/
>> wiring  of all the pieces both client and server is nuts.
>> * In M2, things have been cleaned up a bit
>>
>> I'm just trying to make sure the final MVP implementation will be
>> usable without Roo and without automatic code generation, and will be
>> at least as easy to use and understand as 
>> http://code.google.com/p/gwt-platform/
>> . Otherwise, should it be left as a separate project rather than
>> default GWT approach?
>> What do others, more knowledgeable persons than me, think?
>
> I really do not approach the different features of 2.1 as a whole
> "MVP" set of things: there's
>  - RequestFactory and ValueStore (I don't think ValueStore has any
> real use besides RequestFactory, though I'd be happy to be proved
> wrong) for a record-oriented client-server communication;
>  - Cell-based widgets for efficient data-backed lists, trees and
> tables
>  - PlaceController as typed layer over History (objects rather than
> strings, even though it's not yet plumbed to History, which at least
> proves it can be used without it)
>  - ActivityManager as an "application controller" (to use the term
> from the GWT tutorials) on top of PlaceController
>  - and on top of that, GWT provides some base activities plumbed with
> RequestFactory
>  - and finally, though it's not documented at all, EditorSupport which
> works with UiBinder in a view to generate "data-binding code" (as far
> as I understood)
>
> You're free to use any of them independently of the others.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



setHTML generates different HTML in Fire Fox then in IE8

2010-07-09 Thread skippy
I am trying to replace my GWT page with a logon jsp page when the
session times out.  This works great in Fire Fox, but not in IE.  It
looks like the HTML is not valid in IE.  It is missing the "" in the
tags.

This code:

HTML htmlResponse = new HTML();
htmlResponse.setHTML(response.getText());
RootPanel.get().clear();
RootPanel.get().add(htmlResponse);

In Fire fox the object contains:  Note the ""






   document.targetForm.submit();

 
   

In IE8 the object contains:  Note the lack of ""






   document.targetForm.submit();

 

The HTML in IE is not valid.

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



Re: concerns on 2.1 MVP approach

2010-07-09 Thread Thomas Broyer

On 9 juil, 11:31, "marius.andreiana" 
wrote:
> Hi GWT developers,
>
> There are some concerns on 2.1 MVP approach, which have been raised
> herehttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> and 
> herehttp://groups.google.com/group/gwt-platform/browse_thread/thread/862c...
>
> To summarize, here are some quotes:
> * It's extremely fast to build an initial scaffold (CRUD for all
> entities), but I'm not sure how easy it is to customize it for real
> world usage
> * When skimming the generated sources I saw A LOT of artifacts, which
> I don't feel comfortable with because it means that although
> "officially" my code is not coupled with Roo, if I were to drop it I
> would have to manage all these generated artifacts myself.
> * This expenses example is a nightmare to follow.  The bindings/
> wiring  of all the pieces both client and server is nuts.
> * In M2, things have been cleaned up a bit
>
> I'm just trying to make sure the final MVP implementation will be
> usable without Roo and without automatic code generation, and will be
> at least as easy to use and understand as 
> http://code.google.com/p/gwt-platform/
> . Otherwise, should it be left as a separate project rather than
> default GWT approach?
> What do others, more knowledgeable persons than me, think?

I really do not approach the different features of 2.1 as a whole
"MVP" set of things: there's
 - RequestFactory and ValueStore (I don't think ValueStore has any
real use besides RequestFactory, though I'd be happy to be proved
wrong) for a record-oriented client-server communication;
 - Cell-based widgets for efficient data-backed lists, trees and
tables
 - PlaceController as typed layer over History (objects rather than
strings, even though it's not yet plumbed to History, which at least
proves it can be used without it)
 - ActivityManager as an "application controller" (to use the term
from the GWT tutorials) on top of PlaceController
 - and on top of that, GWT provides some base activities plumbed with
RequestFactory
 - and finally, though it's not documented at all, EditorSupport which
works with UiBinder in a view to generate "data-binding code" (as far
as I understood)

You're free to use any of them independently of the others.

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



Menu Item and MVP (2)

2010-07-09 Thread yves
Hi,

This message was supposed to be an answer to the "Menu Item and MVP"
discussion. But it does not appear, I probably made a mistake, so I
put it here in a new discussion.

The initial message posted by "mic" was :

>> Just sharing some thoughts
>>
>> Would the MenuItem class need to implement HasClickHandler  so that
>> when a MenuItem is clicked, the action can be handled in the
>> presenter. At this time, the MenuItem needs an object that implements
>> the Command interface, so the view seems to know about the presenter.

>> I would like to know what others think about this.


This is probably a late answer to the initial question.
Anyway, I've made a quite simple implementation that solves the lack
of something like a HasClickHandlers dedicated to MenuItem.

Here I give you the solution I've built.


First, we need something like a "HasCommandHandlers" interface instead
of HasClickHandler. This will allow the presenter to handle a click on
a MenuItem.


public interface HasCommandHandlers extends HasHandlers {

// equivalent to the addClickHandler in the HasClickHandlers
interface
public HandlerRegistration addCommandHandler(CommandHandler handler);
}

We create a CommandHandler interface only to stay in line with the
naming convetion for the handlers.

public interface CommandHandler extends Command {
// this interface is empty
}

The Presenter :

public interface Display {
HasCommandHandlers getMenu1();
HasCommandHandlers getMenu2();
...
}

public void build() {

view.gerMenu1().addCommandHandler(new CommandHandler() {
public void execute() {
// do what you need
}
});
}

...
}

So this is standard MVP implementation.

Now the View.

We have to create a subclass of MenuItem implementing
MenuPresenter.HasCommandHandlers, so we will have a MenuItem
implementing the HasCommandHandlers interface just like a PushButton
implements HasClickHandlers.

public class MyMenuItem extends MenuItem implements
HasCommandHandlers {

// 
// extends MenuItem
// 

public MyMenuItem(String text) {
super(text, (Command)null);
}

// ---
// implements HasCommandHandlers
// ---

@Override
public HandlerRegistration addCommandHandler(CommandHandler 
handler)
{

// call MenuItem setCommand() as the CommandHandler is 
a Command !
setCommand(handler);

return new HandlerRegistration() {

@Override
public void removeHandler() {
// remove the command
MyMenuItem.this.setCommand(null);
}

};
}

@Override
public void fireEvent(GwtEvent event) {
// do nothing because we do not receive events
}
}

The view as usual implements MenuPresenter.Display.

This seems to me a quite simple and straight solution.

Your comments are welcome !

HTH
Yves

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



Re: Help needed changing ui.xml from DecoratorPanel to DockLayoutPanel using Presenter

2010-07-09 Thread mkh

On Jul 9, 2:07 am, Jim in NH  wrote:
> I have a project that works modeled after the Contacts example from
> the Google I/O talks.
>
> In trying to use a DockLayoutPanel I changed the .ui.xml file as
> from using simple panels
> shown below.  Both versions of the ui.xml file have the same UiFields.
>

I also ran into a problem when changing from a DecoratorPanel to
DockLayoutPanel, but the issue in my case was with the layout. The
problem was the DockLayoutPanel must be added to RootLayoutPanel.get()
instead of RootPanel.get().

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



Does anyone know how I installed 2.1in the plugins directory

2010-07-09 Thread Jeff Chimene
Hi:

I cannot figure out how I managed to install GWT 2.1 into the
eclipse/plugins directory.

I reinstalled eclipse 3.6 for other reasons, and I cannot remember how I
got 2.1 into eclipse/plugins.

For now, I just downloaded the zip and install 2.1 to another directory,
then pointed the GPE at that directory.

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



Re: GWT 2.0.4 is now available

2010-07-09 Thread Hilco Wijbenga
On 30 June 2010 14:25, Chris Ramsdale  wrote:
> That's the bad news. The good news is that we have a fix for this
> issue, plus several other house keeping items that we've rolled
> into a 2.0.4 release, which can be downloaded from GWT’s main download
> site.
>
> If you’re experiencing the Safari crash, you’ll need to recompile and
> deploy your GWT app. The changes in 2.0.4 are completely compatible
> with your existing 2.0 app, and should have no negative impact. To
> that extent we’ve already dogfooded 2.0.4, verifying that it fixes the
> Wave crash that was originally reported.

Is there a tag in Subversion for this release? The latest I can find
is for 2.0.3 (http://google-web-toolkit.googlecode.com/svn/tags/2.0.3).

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



List Box widgets like in gmail

2010-07-09 Thread Simon B
Hi,
I need to incorporate into a filter widget functionality like that
found in gmail in the "Move to", "Labels" and "More actions" List Box
widgets that are found in the gmail mail application.

Basically so that I can use the checkboxes and also they need to
support all the event handling as well, does anyone know of a widget
that supports this?

Any help much appreciated

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



Re: Button click not corresponding to the row to remove

2010-07-09 Thread ccg123
Update: I tried making the row variable a class variable instead of a
method variable. I want to be able to hide the row when the user
clicks the "dismiss" button. Here is my latest code. Any help is
appreciated.

public class GroupDataAlertDataGrid extends FlexTable {

private ClickListener dismissListener;
private Button dismissButton;
private int row = 0;

void addDataToFlexTable(final LocationsInfoDTO locationsInfoDTO)
{


for(final Info info : locationsInfoDTO.getInfos()){

dismissButton = new Button("Dismiss", dismissListener);

this.setWidget(row, 1, new Label(info.getLocationCode()));
this.setWidget(row, 2, new Label(info.getClientName()));
this.setWidget(row, 3, dismissButton);

dismissListener = new ClickListener() {
public void onClick(Widget sender) {
//make the row invisible
getRowFormatter().setVisible(row, 
false);

//call server - tell session which 
elements from list to remove

GwtAlertServicesDelegate.getService().removeLocationInfoFromSession(info,
new 
AsyncCallback() {
@Override
public void 
onFailure(Throwable arg0) {}
@Override
public void 
onSuccess(LocationsInfoDTO arg0) {}
}
);
}
};
row++;
}
}
}


On Jul 9, 10:33 am, ccg123  wrote:
> Have a FlexTable with made up of two columns of data and a third
> column with a button, that when clicked makes an asynchronous call and
> removes the data from the session. My problem is that when I click the
> button it refers to the info in the row above and not the same row
> that the button is in. Why?
>
> public class GroupDataAlertDataGrid extends FlexTable {
>
>         private ClickListener dismissListener;
>         private Button dismissButton;
>
>     void addDataToFlexTable(final LocationsInfoDTO locationsInfoDTO)
>     {
>         int row = 0;
>
>         for(final Info info : locationsInfoDTO.getInfos()){
>
>                 dismissButton = new Button("Dismiss", dismissListener);
>
>                 this.setWidget(row, 1, new Label(info.getLocationCode()));
>                 this.setWidget(row, 2, new Label(info.getClientName()));
>                 this.setWidget(row, 3, dismissButton);
>
>                 dismissListener = new ClickListener() {
>                                 public void onClick(Widget sender) {
>
> GwtAlertServicesDelegate.getService().removeLocationInfoFromSession(info,
>                                                         new 
> AsyncCallback() {
>                                                                 @Override
>                                                                 public void 
> onFailure(Throwable arg0) {}
>                                                                 @Override
>                                                                 public void 
> onSuccess(LocationsInfoDTO arg0) {}
>                                                     }
>                                         );
>                                 }
>                         };
>                 row++;
>         }
>     }
>
> }

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



Button click not corresponding to the row to remove

2010-07-09 Thread ccg123
Have a FlexTable with made up of two columns of data and a third
column with a button, that when clicked makes an asynchronous call and
removes the data from the session. My problem is that when I click the
button it refers to the info in the row above and not the same row
that the button is in. Why?

public class GroupDataAlertDataGrid extends FlexTable {

private ClickListener dismissListener;
private Button dismissButton;

void addDataToFlexTable(final LocationsInfoDTO locationsInfoDTO)
{
int row = 0;

for(final Info info : locationsInfoDTO.getInfos()){

dismissButton = new Button("Dismiss", dismissListener);

this.setWidget(row, 1, new Label(info.getLocationCode()));
this.setWidget(row, 2, new Label(info.getClientName()));
this.setWidget(row, 3, dismissButton);

dismissListener = new ClickListener() {
public void onClick(Widget sender) {


GwtAlertServicesDelegate.getService().removeLocationInfoFromSession(info,
new 
AsyncCallback() {
@Override
public void 
onFailure(Throwable arg0) {}
@Override
public void 
onSuccess(LocationsInfoDTO arg0) {}
}
);
}
};
row++;
}
}
}

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



Re: Make a Banner rotator whit ClientBundle or Java Script Nativ, what do you recomended?

2010-07-09 Thread Jero
Hi Stefan!
 Sorry but I am new to the Web world. It is possible to nest on a
horizontal banner and give them a rotation
 from right to left continuously with native HTML? similar to the next
page in the top banner (http://www.grupohasar.com/en)
but with the difference that I do not want the images to stop and go,
i like to continues in same velocity every time.

The behavior to following go through to api; (http://cloud.github.com/
downloads/malsup/cycle/jquery.cycle.all.2.72.js).
But I what to image not stopping i need to continues every time some
velocity to rotator.

if I'm not being clear .. sorry for not being very clear not handling
well Idoma
Greetings!


On Jul 9, 11:06 am, Stefan Bachert  wrote:
> Hi Jero,
>
> in this case I just would use classical http. I dont think that
> ClientBundle gives you a real advantages on banner ads.
> http://..."/>
>
> Stefan Bacherthttp://gwtworld.de
>
> On 9 Jul., 05:28, Jero  wrote:
>
> > Hello Stefan, really I do not like having to recompile the entire
> > project every time I upload an image. So you who would you recommend?
>
> > Currently being 
> > tested,http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.72.js
> > "but not the behavior I'm looking it up a bunch of images and rotate
> > infinitely fiala left to right.
>
> > If anyone knows anything would be very grateful.
> > Jero.

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



Re: Timer triggered every second instead of every second

2010-07-09 Thread ccg123
Though not the cleanest design, I passed a reference to the timer to
the dialogbox that will stop and start it upon closing and opening.

 void addDialogBox(AlertTimer alertTimer, Map data, int groupType){...


On Jul 8, 5:50 pm, Jaroslav Záruba  wrote:
> The method run() is what gets called when your timer elapses/fires. For
> repeating timers this means that it gets fired repeatedly, and your timer
> gets scheduled repeatedly repeatedly. (Yes I wrote it twice.)
> This is what it should look like:
>     new Timer() { @Override public void run() {
> // this gets fired once per 5000ms
>  // you can make static method to access instance of your module,
> // this way you don't need to write another class for your timer
> MyEntryPoint.getInstance().refreshData();
>
> // maybe there is some more elegant way to access "this module",
> // I'm still in the learning process too :)
>
>
>
> }
> }.scheduleRepeating(5000);
> On Fri, Jul 9, 2010 at 2:30 AM, ccg123  wrote:
> > Thank you. I changed it and now it occurs every 5 secs as expected. I
> > have a question concerning calling this inner class from another
> > component. So now the inner class looks like this:
> > .
> > .
> > .
> >        static class AlertTimer extends Timer {
> >                AlertEntryPoint entryPoint = null;
> >                public AlertTimer(AlertEntryPoint alertEntryPoint) {
> >                        entryPoint = alertEntryPoint;
> >                }
>
> >                 @Override
> >                public void run() {
> >                                scheduleRepeating(1000 * 5);
>
> >                                entryPoint.refreshData();
> >                }
>
> >        }
>
> >       �...@override
> >        public void onModuleLoad() {
> >                 AlertEntryPoint.AlertTimer timer = new AlertTimer(this);
> >                timer.run();
> >        }
> > .
> > .
> > .
>
> > And from another component I want to cancel the scheduler. How do I
> > get a handle on the instance of AlertTimer in the code below?
>
> Just like in regular Java - by passing stuff in parameters, or by making the
> timer static member of some class.
>
>
>
> > public class ImageButton extends PushButton {
> > .
> > .
> > .
> >        public ImageButton(Image image) {
> >                super(image);
> >        }
>
> >        void addDialogBox(Map data, int groupType){
> >                listener = new ClickListener() {
> >                        public void onClick(Widget sender) {
> >                                dialogbox.hide();
>
> >                                //start the timer again - how do i get the
> > instance of AlertTimer?
> >                               ??
> >                        }
> >                };
>
> > On Jul 8, 4:24 pm, Jaroslav Záruba  wrote:
> > > Are you sure this is what you want?
>
> > > while(!stop)
> > > {
> > >   // without the alert all this stuff happens bazillion times each second
> > >   schedule(1000*10);
> > >   entryPoint.refreshData();
>
> > > }
>
> > > I'm not sure whether Timer likes to get scheduled again before it reached
> > > its first timeout.
> > > Also it looks like you might be interested in Timer.scheduleRepeating()
> > > and Timer.cancel();
>
> > > On Fri, Jul 9, 2010 at 12:52 AM, ccg123  wrote:
> > > > Why does the timer below get triggered every second, popping up the
> > > > alert and crashing the browser? I expect it to be triggered every 10
> > > > seconds:
>
> > > > public class AlertEntryPoint implements EntryPoint {
>
> > > >        Map> alertGroupByTypeDTOs = new
> > > > TreeMap>();
> > > >        List locationsInfoDTOList = new ArrayList();
>
> > > >        static class AlertTimer extends Timer {
> > > >                AlertEntryPoint entryPoint = null;
> > > >                public AlertTimer(AlertEntryPoint alertEntryPoint) {
> > > >                        entryPoint = alertEntryPoint;
> > > >                }
>
> > > >                boolean stop;
> > > >               �...@override
> > > >                public void run() {
> > > >                        while (!stop) {
> > > >                                schedule(1000 * 10);
>
> > > >                                entryPoint.refreshData();
>
> > > >                                 Window.alert("Somebody started me");
> > > >                        }
>
> > > >                }
>
> > > >        }
>
> > > >       �...@override
> > > >        public void onModuleLoad() {
> > > >                //refreshData();
>
> > > >                AlertEntryPoint.AlertTimer timer = new AlertTimer(this);
> > > >                timer.run();
> > > >        }
> > > > .
> > > > .
> > > > .
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com
> > 
>
> 

Re: GWT 2.0.4 caused Class Not Found, TransformerFactoryImpl

2010-07-09 Thread emurmur
There is an issue in the tracker for this bug,
http://code.google.com/p/google-web-toolkit/issues/detail?id=4267.
Please go and stat that issue and leave a comment, so it get's some
attention.  There is also an issue in the Restlet issue tracker that
contains a small example that shows the bug at,
http://restlet.tigris.org/issues/show_bug.cgi?id=1149.

On Jul 8, 9:06 pm, davewilliamson 
wrote:
> Interestingly,
>
> I have 'just' come across the same problem in the middle of
> development!
>
> Using Elipse's neat trick of setting SDK versions, I have found that
> this problem exists since V2.0, whereas the older SDK 1.7.1 works fine
> = a very poor but quick work around, that is FAR from ideal!!!
>
> Come on Google, give us a fix!
>
> Cheers
>
> Dave
>
> On Jul 8, 8:51 pm, emurmur  wrote:
>
>
>
> > I've traced through theRestlet2.0rc4 code for both the success case
> > (no GWT) and the failure case (gwt-dev.jar in on classpath).  The
> > issue is how DomRepresentation.createTransformer() creates the
> > necessary javax.xml.transform.TransformerFactory instance.
>
> > In the success case, we end up in FractoryFinder.findJarService() at
> > the line 255,
>
> > is = ss.getResourceAsStream(cl, serviceId);
>
> > and the result is null.  Therefore, the code returns and uses the
> > fallback class
> > ("com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"),
> > which works.
>
> > In the failure case (when gwt-dev.jar in on the classpath), line 255
> > DOES return a class, the code that immediately follows is then able to
> > read the factoryClassName from the class, which ends up being,
> > "org.apache.xalan.processor.TransformerFactoryImpl".  Later, the
> > attempt to instantiate this class fails with a ClassNotFoundException.
>
> > So it seems that the gwt-dev.jar file contains some configuration that
> > tricksRestletinto attempting to instantiate the wrong
> > TransformerFactory implementation.
>
> > How would I go about makingRestletignore this Jar.  Note that this
> > is only an issue in the development environment, because gwt-dev.jar
> > is not copied to the production server.  However, it's still a show
> > stopper bug for me, because I can't debug my client application with
> > my rest services.
>
> > Does anyone on the GWT team know that this may be about?  Any help
> > would be welcome.  I will pass it on to theRestletteam.  Thanks.
>
> > On Jul 7, 10:01 am, emurmur  wrote:
>
> > > I have an Java App Engine project using SDK 1.3.5 and the latest
> > >RestletGAE 2.0rc4 to implement some restful services.  Everything
> > > worked well (this has been in production for 6 months) until I added
> > > GWT 2.0.4 to the project.  As soon as I check use GWT on in the
> > > control panel in Eclipse (without even adding a module) my services
> > > start to fail in the development server with the following class not
> > > found exception:
>
> > >Couldn'twritetheXMLrepresentation:Provider
> > >org.apache.xalan.processor.TransformerFactoryImpl not found
>
> > > This exception happens on the way out of myRestlet, after a GET of a
> > > lists of entities, as it tries to turn my DomRepresentation into the
> > > response payload.  I've found that if I remove the gwt-dev.jar, the
> > > exception does not happen.  Of course, I can't use the development
> > > server if I do that.   Again, this all works fine without GWT.
>
> > > Here is the relevant parts of the trace:
>
> > > SEVERE: An exception occured writing the response entity
> > > java.io.IOException:Couldn'twritetheXMLrepresentation:Provider
> > >org.apache.xalan.processor.TransformerFactoryImpl not found
> > >         at
> > > org.restlet.ext.xml.DomRepresentation.write(DomRepresentation.java:
> > > 287)
> > >         at
> > > org.restlet.representation.WriterRepresentation.write(WriterRepresentation.
> > >  java:
> > > 104)
> > >         at
> > > org.restlet.engine.http.ServerCall.writeResponseBody(ServerCall.java:
> > > 502)
> > >         at 
> > > org.restlet.engine.http.ServerCall.sendResponse(ServerCall.java:
> > > 439)
> > >         at
> > > org.restlet.ext.servlet.internal.ServletCall.sendResponse(ServletCall.java:
> > > 451)
> > >         at
> > > org.restlet.engine.http.adapter.ServerAdapter.commit(ServerAdapter.java:
> > > 198)
> > >         at
> > > org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:
> > > 151)
> > >         at
> > > org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1037)
> > >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> > >         at
> > > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> > >         at
> > > org.mortbay.jetty.servlet.ServletHandler
> > > $CachedChain.doFilter(ServletHandler.jav
> > > a:1166)
> > >         at
> > > com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi
> > >  lter.
> > > java:51)
> > >         at
> > > org.mortbay.jetty.servlet.ServletHandler
> > > $CachedChain.doFilter(ServletHan

Re: HOW to add markers to an static image ?

2010-07-09 Thread Thad
If you want to do this statically, put your image in an AbsolutePanel,
then add your markers (in my case, smaller images) to the
AbsolutePanel.  They appear on top (I attach a ClickHandler to the
smaller images to pop up info about them).

As for adding dynamically, you can turn on a MouseDownHandler and a
MouseUpHandler to the image. If the mouse up occurs within some
reasonable distance to the mouse up, plot your marker.

On Jul 9, 5:39 am, Bruno Lopes  wrote:
> Hellos,
>
> I would like to add markers to a static image, referenced each marker by the
> position X an Y relative to the image.
>
> Something like is possible to do with the API for gMaps, adding markers to
> the google maps
>
> Thanks people!
>
> Bruno

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



Re: create web service inside GWT project

2010-07-09 Thread Jeff Chimene
Hi Arian,

I don't have a good answer for you, as I really don't do server-side Java.

I've got to believe that there are quite a few examples "out there" of
how a Java servlet can participate in CGI traffic on some arbitrary
port. Such CGI traffic is what a non-Java RPC client request looks like
to a CGI server. Your servlet is written in Java, but doesn't use GWT
Java RPC. IOW, this servlet doesn't extend and implement
RemoteServiceServlet. This doesn't change what the Office macro sends. I
could produce a Perl script that interacts with your Office macro, and
the macro would never know that it's not talking to a Java servlet.

Your servlet then decodes the request parameters and replies with a
CGI-compatible response.

BTW, the reference to ".NET objects" in my earlier post referred to the
client side as well as the server side. Although you're using Java on
the server side, I think you'll still need .NET classes for the client
(MS Office) side.

On 07/09/2010 07:19 AM, Arian Prins wrote:
> Hi Jef,
> Thanks for taking the time to answer my questions.
> 
> I'll try to remove the fuzziness.
> 
> I have already built a lot of objects using server side java, so I'm
> not going to build any services using .NET. I've used the eclipse GWT
> plugin and that takes care of everything needed to get the GWT-client
> talking to the java objects on the server. Hence my misnomer "GWT
> server". It's java, it uses GWT-RPC (i presume) as a protocol to talk
> to the client.
> 
> So now I have a complete server that talks to my client. Both created
> in Java, both arranged through eclipse. Now I want to add some way for
> an office macro (but actually it could be anything, eg. an rss feed
> you want to publish) to query the server.
> 
> So I would need to use some java library to send incoming XHR requests
> to a java object+method and I'd need to configure the server to
> differentiate between requests coming from the GWT client and the XHR
> requests coming from anywhere else.
> 
> I made a sketch of the different parts: 
> http://www.arianprins.net/downloads/advsys.gif
> 
> While i'm discussing my problems with you I think the solution lies in
> these two questions:
> - how to create an XHR service / servlet in java (specifically: in a
> way that can coexist with the way the GWT-eclipse plugin configures
> java / the application server);
> - how to configure the application server to receive the XHR requests
> and send them to a Java object.
> 
> Thanks for the advice,
> Arian.
> 
> On 8 jul, 17:41, Jeff Chimene  wrote:
>> On 07/08/2010 07:34 AM, Arian Prins wrote:
>>
>>> Hi Jeff,
>>> Just to explain my plan a little further:
>>
>>> I'm building an application where the user normally interacts with the
>>> system using GWT in a browser (the most "normal" way of using GWT).
>>> But I'd also like to generate some documents (in MS-Word) using data
>>> and objects that are available in the GWT-server. There would probably
>>> be only a small number of methods that need to be available on the
>>> outside, so a very heavyweight library would be overkill.
>>
>> Please drop the concept of "GWT server", as it doesn't exist. GWT is a
>> client-side solution that can interact with a variety of server-side
>> solutions. Perhaps I'm misinterpreting the term "GWT server"?
>>
>>> It all boils down to:
>>> I want to execute a function in a word-macro:
>>> String GetTheTextForThisWordDocument(documentId);  :-) :-)
>>
>> That's fine. As I recall, you can access XHR technology from an Office
>> macro.
>>
>>> XHR sounds good, but how can I get that to work?
>>
>> You'll want to use .NET objects
>>
>>> The way I think about
>>> it I would probably need to perform the following steps:
>>> - Create an object / methods that perform the function(s) that I want
>>> to be available (the GetTheText... method mentioned above);
>>
>> Yes.
>>
>>> - Use some kind of library / construction that can make that object
>>> available to the outside world (just like GWT does in its own way).
>>
>> I think the answer to this is "no". But there is still some fuzziness in
>> terminology here that should be clarified before a definitive answer.
>>
>>> Is there some kind of standard XHR library?
>>
>> Yes, there are several GWT classes: JsonpRequestBuilder,
>> RpcRequestBuilder, RequestBuilder. Of these, I think the first and third
>> are what you'll want, since it sounds like you won't be using Java to
>> handle the request (although there may be Java/Office interoperability
>> classes available)
>>
>> Since the documents are on the server, you can construct a .NET service
>> that listens for HTTP requests, evaluates the request, loads the
>> document, executes the macro, retrieves the response, formats it, then
>> sends it to the client.
>>
>> Using this solution, I think you'll be limited to UTF-8 scalars (i.e. no
>> images, no structured document fragments). If you want more than that,
>> you'll probably want to have the server send the document fragment usi

Re: GWT roadmap: easier use of REST?

2010-07-09 Thread ivar vasara


On Jul 9, 7:02 am, Stefan Bachert  wrote:

> I guess directly supporting RESTful/Soap does not make much sense
> because of SOP and other security topics.

With browsers becoming more aware and supporting sources from multiple
sources, SOP is not so much an issue.

> At this time I would recommend always to use GWT-RPC to communicate.
> From the server SOP does not apply and you can access any webservice
> you like.

That is a sad state of affairs and ties the client to a GWT-RPC
speaking backend.

I know many people are impressed by the flexibility and power of GWT
as a client side technology (especially on html5 enabled mobile
devices!!!), but would like to use alternative tools on the server
(eg: rails). Proper REST support would really ease the way for
developers to create cleanly separated clients using GWT and backends
using whatever RESTful tools they want.

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



Re: concerns on 2.1 MVP approach

2010-07-09 Thread PhilBeaudoin
I found the following overview interesting too:
http://www.over-look.com/site/index.php/documentation/techblog/item/gwt-2-1-tutorial-1-mvp-the-model
The DTO model described there seems a little involved. If I understand
correctly, there is a client-side and server-side version of the DTO
for each of your model objects. The role of the latter seems to be to
support JDO/JPA. I have recently moved away from JDO and am a very
happy user of Objectify. As a consequence, both my server (objectify)
and my client (gwt-platform) are type-agnostic when it comes to model
objets. So another question I have:
* Does using GWT 2.1 MVP model forces me to annotate all my domain
objects with @DataTransferObject and have them inherit from Record?

Cheers,

Philippe

On Jul 9, 2:31 am, "marius.andreiana" 
wrote:
> Hi GWT developers,
>
> There are some concerns on 2.1 MVP approach, which have been raised
> herehttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> and 
> herehttp://groups.google.com/group/gwt-platform/browse_thread/thread/862c...
>
> To summarize, here are some quotes:
> * It's extremely fast to build an initial scaffold (CRUD for all
> entities), but I'm not sure how easy it is to customize it for real
> world usage
> * When skimming the generated sources I saw A LOT of artifacts, which
> I don't feel comfortable with because it means that although
> "officially" my code is not coupled with Roo, if I were to drop it I
> would have to manage all these generated artifacts myself.
> * This expenses example is a nightmare to follow.  The bindings/
> wiring  of all the pieces both client and server is nuts.
> * In M2, things have been cleaned up a bit
>
> I'm just trying to make sure the final MVP implementation will be
> usable without Roo and without automatic code generation, and will be
> at least as easy to use and understand 
> ashttp://code.google.com/p/gwt-platform/
> . Otherwise, should it be left as a separate project rather than
> default GWT approach?
> What do others, more knowledgeable persons than me, think?

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



DisclosurePanel, disable header "clickthrough"

2010-07-09 Thread HeideMeister
I have a DisclosurePanel with a few links inside the header. My
problem is that when i click one of these links the click-event sink
through to the DisclosurePanel header, and folds up the panel. Is
there any smart way to stop this? I tried playing around with
unsinking the event - but couldn't get it to work.

Right now i'm down to putting the DisclosurePanel (with no header) in
row 2 of a FlexTable and programming the header with different
clickable zones in row 1. But I can't stop suspecting that there are a
much smoother way :-/

Any ideas?

-michael heide christensen

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



Re: Managing DB Sessions/connection with GWT + Hibernate

2010-07-09 Thread Stefan Bachert
Hi,

there is nothing special in a GWT servlet regarding hibernate.
You can use any best practice you know or find for classical web
technology.

But aware, classical technology renders the gui as html in the server
(making the server in truth to a fat-client using the browser as an
ultra-thin-client).
GWT is a real client-server model. There is no lazy loading in client/
browser possible.

I use JPA with hibernate but session handling is done by JPA/eclipse
link.

Stefan Bachert
http://gwtworld.de

On 8 Jul., 17:26, ialexei  wrote:
> Hi,
>
> What is the best practice to manage Hibernate sessions in a GWT
> servlet ?
>
> The following article on Google code shows some basic code to use
> Hibernate with 
> GWT.http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html
>
> However I don't see any calls that close the Session
> (session.close()) !!.
> Does Hibernate call close somehow internally ?
>
> Once you get a Hibernate Session, should I hold on to this (like
> putting this in HttpSession) or should I close before I leave my RPC
> method ?
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to propagate events generically between components using an eventbus?

2010-07-09 Thread Manoj
Take a look at the following classes in GWT - HandlerManager,
GwtEvent, EventHandler

Implementation:

EventBus

package my.app.client.event;
import com.google.gwt.event.shared.HandlerManager;

public class EventBus {
private EventBus() {}
private static final HandlerManager INSTANCE = new
HandlerManager(null);

   public static HandlerManager get() {
return INSTANCE;
  }
}

Event Handler
-
package my.app.client.event;
import com.google.gwt.event.shared.EventHandler;

public interface ChildWindowCloseEventHandler extends EventHandler {
void onChildWindowClosing(ChildWindowCloseEvent closeEvent);
}

Event
---
package my.app.client.event;
import com.google.gwt.event.shared.GwtEvent;

public class ChildWindowCloseEvent extends
GwtEvent {

public static final Type TYPE = new
Type();
private String action; // Custom logic

public ChildWindowCloseEvent(String action) {
super();
this.action = action;
}

@Override
protected void dispatch(ChildWindowCloseEventHandler handler) {
handler.onChildWindowClosing(this);
}

@Override
public
com.google.gwt.event.shared.GwtEvent.Type
getAssociatedType() {
return TYPE;
}

public String getAction() {
return action;
}
}

Firing the event in some component
---
ChildWindowCloseEvent childWindowCloseEvent = new
ChildWindowCloseEvent("Action1");
EventBus.get().fireEvent(childWindowCloseEvent);

Consuming the event by some other component
---
// Define actiion
ChildWindowCloseEventHandler childWindowCloseEventHandler = new
ChildWindowCloseEventHandler() {
@Override
public void onChildWindowClosing(ChildWindowCloseEvent 
closeEvent)
{
if (closeEvent.getAction().equals("Action1") {
   // Do something here
}
}
};
// Register the listener
EventBus.get().addHandler(ChildWindowCloseEvent.TYPE,
childWindowCloseEventHandler);


That should be it.
By the way, this is from what i understood about the use of GWT custom
event handling and is working fine for my application. But if there is
a better implementation/design please do share.

Thanks,
Manoj

On Jul 9, 6:18 am, Oskar Carlstedt  wrote:
> Hi All,
>
> I’m sitting with a quite normal problem where I want several
> components to talk to each other via an eventbus. I have seen some
> questions on this forum that are quite close to what I’m asking now
> but no one actually answers the question.
>
> Now to my question: I have a couple of components, say a folder tree
> component displaying folders and files on the server, a file content
> component displaying the contents of each file that is selected in the
> folder tree view, and finally a file monitor component displaying file
> system activities on the server. These three components are gathered
> in the “workspace” view.
>
> Summarizing it all means the workspace component contains:
> 1. Folder tree component
> 2. File content component
> 3. File system activity component
>
> Each component consists of some logic and a view. When I select a file
> in the folder tree component, I want a FileSelectedEvent(filename) to
> be sent to the file content component to change the displayed content.
> When I select a Folder in the file folder tree view, I want a
> FileUnselectedEvent() to be passed to the file content component to
> erase the content that it is showing. When the file system activity
> component finds an activity, e.g. file deleted, changed, etc. this
> event shall be propagated to the file tree view.
>
> The components themselves are not the important thing here. I want to
> discuss the design and how I shall implement the event propagation
> between all components in a container component.
>
> The container component knows the views and components it holds, but
> not necessarily has it instance variables for each contained component
> (these might be in a list). As described in this example, there are
> three components but in another solution I might have 40 components.
> Now, let say I click the file in the tree view.
>
> Question:
> How do I get the onClick event passed to the folder tree component
> (the contained component) from the workspace view (the container
> component) without hard wire the file tree view in an instance
> variable? I want to do a more generic code like
> delegateEventToView(event). I do not want to hard wire a
> foldertreeview variable in the workspace view that I later call with
> foldertreeview.onclick(…) because that will end up in a mess of
> dependencies all over my applic

Re: ImageResource Sprites and RepeatStyle.Horizontal/Vertical generating massive images

2010-07-09 Thread DaveC
Yeh, we were seeing browser memory usage jump from about 40Mb to over
300Mb.

We already split images/resources up (into modules/plugins with
specific functionality e.g. Search, RSSFeed, AppFramework etc, etc) -
for example in one bundle there are 17 images (9 of those are for a
DecoratorPanel, 5 are icons) and one css file. Four of those images
have the RepeatStyle.Horizontal attribute.

For example, when one of the tiled images is 62x60px the sprite ends
up being 163000 px wide when I change it to 500x60px it leaves it out
of the sprite... but the sprite still ends up being over 5000px wide -
still unnecessarily wide.

Is there no way I can tell the compiler "don't make a sprite wider
than 500px"?

Thanks for the replys btw.
Cheers,
Dave

On Jul 9, 2:35 pm, Stefan Bachert  wrote:
> Hi Dave,
>
> 163000x300 pixel is extreme.
> I see two causes
> a) you have such a lot images. Than I would try for splitting up the
> ClientBundle
> b) GWT has a bug which causes huge images as a result. Maybe a) puts
> the compiler in a more stable state
>
> Stefan Bacherthttp://gwtworld.de
>
> On 9 Jul., 13:55, DaveC  wrote:
>
> > Hello,
>
> > This is really just a heads up...
>
> > We are currently developing a large/complex GWT app and are making use
> > of ClientBundle, CssResource and ImageResource. We've run into an
> > issue where by GWT is generating massive sprite images (for instance
> > one is 163,000 x 300 pixels) - which obviously causes memory problems
> > in the compiler, dev mode and in browsers tyring to load/render this
> > image.
>
> > There is something specific about our Widget/CSS structure that is
> > causing GWT to do this - we haven't found out what it is yet (we have
> > widgets that nest HorizontalPanel/VerticalPanel/FlowPanel/ScrollPanel
> > and some are positioned absolutely and some are relative etc, etc).
>
> > Does anyone know if there is any debug that can be turned on (in the
> > compiler) that maybe hints at what is wrong?
>
> > Or has anyone come across this problem before?
>
> > I was going to submit a bug, but until I can find out what causes this
> > there isn't any point doing that.
>
> > Cheers,
> > Dave

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



Re: FlexTables - store invisible database key in row?

2010-07-09 Thread Thad
You may have a point on table width. Elsewhere I call
table.setWidth("100%"), but my understanding of the layering is that
is bound by higher blocks.  However for columns, if the data I'm
reading has a width defined for a column, I call
columnFormatter.setWidth(col, ""+width+"px").  My tables have up to 5
empty columns for various application information.

You're technique is a clever solution, and (I think) should work
across browsers.  Given the vagaries of CSS implementation, over time
it might be more reliable than mine. :)

On Jul 8, 10:47 pm, Magnus  wrote:
> Hi Thad,
>
> maybe it's because you does not set the width of your table. I do so,
> and I also set the widths of my columns.
>
> However, I found a cool solution that fits perfectly for me and that
> does not use an extra column for the index at all! I simply store the
> index as an attribute in the DOM:
>
> tbl.getFlexCellFormatter ().getElement (y,0).setAttribute
> ("idx",""+idx);
> // y is the current row, idx is the database index
>
> (BTW: is there a better way to convert an int to String than ""+idx?)
>
> Magnus

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



Re: Image setUrl and setResources IE8 JavaScriptException

2010-07-09 Thread Stefan Bachert
Hi Sven (hi again;-),

I did not encounter such a situation, yet. However, to my knowledge
IE8 has an limit on data-url of 32KB which are used by GWT
(url(data:...)).
Probably one gif is smaller than the limit but the other is NOT.

When this is the real cause, it is in the end a bug of GWT not to
change the strategy at the right limit.
So increasing (or reducing if you have an idea) the size of the image
may help. (Does it works with the original .png?)

For debugging just compile with "output style: detailed". This gives
you an idea of the position in your java code.

Stefan Bachert
http://gwtworld.de


On 8 Jul., 21:19, Sven  wrote:
> Dear group,
>
> if nobody has encountered this problem before, could you point me to
> resources how to start debugging in this case best? The exception is
> thrown somewhere in the JavaScript code and I am not familiar with
> JavaScript debugging.
>
> Thank you,
> Sven
>
> On 4 Jul., 17:41, Sven  wrote:
>
> > Dear group,
>
> > I created a small GWT test project with just one component on the
> > start page. This component contains an image.
>
> > Into this image, I load two different GIF images, both 600x340 pixels
> > large, no alpha channel. To load one specific gif to the image, I can
> > click on four buttons:
>
> > Button 1 loads image A by setUrl() into the image.
> > Button 2 loads image B by setUrl() into the image.
> > Button 3 loads image A by setResource() into the image.
> > Button 4 loads image B by setResource() into the image.
>
> > The two images served by URL are in a subfolder of the war folder, the
> > two copies loaded as ImageResource are served as ClientBundle.
>
> > In Firefox 3.6 and Safari 5, both methods work fine. In IE 8, 
> > aJavaScriptException(Invalid Argument, number: -2147024809) is thrown
> > when loading image B by hitting button 4. Also, no image is shown
> > (image switches to white/blank). After switching IE 8 to compatibility
> > mode, the page works fine again and button 4 operates like in other
> > browsers.
>
> > It seems that while using setResource() in IE 8 works in principle
> > (image A is loaded by button 3), it fails with my specific GIF. Also,
> > IE 8 is able to render the image (image B is loaded by button 2).
>
> > Image B, which fails loading, can be accessed 
> > throughhttp://www.dotvoting.org/images/DotVoteResult.gif
>
> > For image A, I used a GIF of same dimension drawn from scratch.
>
> > Does anybody has an idea what is wrong with image A and what is
> > causing the exception?
>
> > Thanks
> > Sven

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



Re: create web service inside GWT project

2010-07-09 Thread Arian Prins
Hi Jef,
Thanks for taking the time to answer my questions.

I'll try to remove the fuzziness.

I have already built a lot of objects using server side java, so I'm
not going to build any services using .NET. I've used the eclipse GWT
plugin and that takes care of everything needed to get the GWT-client
talking to the java objects on the server. Hence my misnomer "GWT
server". It's java, it uses GWT-RPC (i presume) as a protocol to talk
to the client.

So now I have a complete server that talks to my client. Both created
in Java, both arranged through eclipse. Now I want to add some way for
an office macro (but actually it could be anything, eg. an rss feed
you want to publish) to query the server.

So I would need to use some java library to send incoming XHR requests
to a java object+method and I'd need to configure the server to
differentiate between requests coming from the GWT client and the XHR
requests coming from anywhere else.

I made a sketch of the different parts: 
http://www.arianprins.net/downloads/advsys.gif

While i'm discussing my problems with you I think the solution lies in
these two questions:
- how to create an XHR service / servlet in java (specifically: in a
way that can coexist with the way the GWT-eclipse plugin configures
java / the application server);
- how to configure the application server to receive the XHR requests
and send them to a Java object.

Thanks for the advice,
Arian.

On 8 jul, 17:41, Jeff Chimene  wrote:
> On 07/08/2010 07:34 AM, Arian Prins wrote:
>
> > Hi Jeff,
> > Just to explain my plan a little further:
>
> > I'm building an application where the user normally interacts with the
> > system using GWT in a browser (the most "normal" way of using GWT).
> > But I'd also like to generate some documents (in MS-Word) using data
> > and objects that are available in the GWT-server. There would probably
> > be only a small number of methods that need to be available on the
> > outside, so a very heavyweight library would be overkill.
>
> Please drop the concept of "GWT server", as it doesn't exist. GWT is a
> client-side solution that can interact with a variety of server-side
> solutions. Perhaps I'm misinterpreting the term "GWT server"?
>
> > It all boils down to:
> > I want to execute a function in a word-macro:
> > String GetTheTextForThisWordDocument(documentId);  :-) :-)
>
> That's fine. As I recall, you can access XHR technology from an Office
> macro.
>
> > XHR sounds good, but how can I get that to work?
>
> You'll want to use .NET objects
>
> > The way I think about
> > it I would probably need to perform the following steps:
> > - Create an object / methods that perform the function(s) that I want
> > to be available (the GetTheText... method mentioned above);
>
> Yes.
>
> > - Use some kind of library / construction that can make that object
> > available to the outside world (just like GWT does in its own way).
>
> I think the answer to this is "no". But there is still some fuzziness in
> terminology here that should be clarified before a definitive answer.
>
> > Is there some kind of standard XHR library?
>
> Yes, there are several GWT classes: JsonpRequestBuilder,
> RpcRequestBuilder, RequestBuilder. Of these, I think the first and third
> are what you'll want, since it sounds like you won't be using Java to
> handle the request (although there may be Java/Office interoperability
> classes available)
>
> Since the documents are on the server, you can construct a .NET service
> that listens for HTTP requests, evaluates the request, loads the
> document, executes the macro, retrieves the response, formats it, then
> sends it to the client.
>
> Using this solution, I think you'll be limited to UTF-8 scalars (i.e. no
> images, no structured document fragments). If you want more than that,
> you'll probably want to have the server send the document fragment using
> one of the MS MIME types.
>
> > - Somehow configure the application server (in web.xml?) to respond to
> > a certain URL using that library 
> > (example:http://localhost:8001/WordDocumentXHR)
>
> Unless you're using server-side Java, there's no use for the web.xml
> file. web.xml is for those using Java RPC services. The URL you provide
> above is defined in your application as a string constant, and used by
> one of the classes I mentioned above.
>
> > Those last two points I've never dealt with before (and I haven't
> > found anything googling), so any advise would be appreciated.
>
> > Arian.
>
> > On 8 jul, 02:26, Jeff Chimene  wrote:
> >> On 07/05/2010 02:28 PM, Arian Prins wrote:
>
> >>> Hello people,
> >>> I have a hard time figuring out what would be the best approach for my
> >>> problem.
>
> >>> I'd like to communicate some info from the server (side logic) to an
> >>> MS-Office macro. I could always use ODBC to let the office macro query
> >>> the database directly but that just feels like a kludge. I've got a
> >>> lot of objects in my application in which a lot of processing is
> >>

Re: Make a Banner rotator whit ClientBundle or Java Script Nativ, what do you recomended?

2010-07-09 Thread Stefan Bachert
Hi Jero,

in this case I just would use classical http. I dont think that
ClientBundle gives you a real advantages on banner ads.
http://..."/>

Stefan Bachert
http://gwtworld.de

On 9 Jul., 05:28, Jero  wrote:
> Hello Stefan, really I do not like having to recompile the entire
> project every time I upload an image. So you who would you recommend?
>
> Currently being 
> tested,http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.2.72.js
> "but not the behavior I'm looking it up a bunch of images and rotate
> infinitely fiala left to right.
>
> If anyone knows anything would be very grateful.
> Jero.

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



Re: GWT roadmap: easier use of REST?

2010-07-09 Thread Stefan Bachert
Hi Marius,

I guess directly supporting RESTful/Soap does not make much sense
because of SOP and other security topics.

At this time I would recommend always to use GWT-RPC to communicate.
>From the server SOP does not apply and you can access any webservice
you like.

Stefan Bachert
http://gwtworld.de

On 9 Jul., 11:39, "marius.andreiana" 
wrote:
> Hi,
>
> A lot of web APIs use REST nowadays. GWT seems really well suited to
> build mashups/UIs on top of REST web services.
>
> However, it's not that easy to work with REST from GWT (see 
> alsohttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> )
>
> There are two projects tackling this:
> * Restlethttp://blog.noelios.com/2008/07/25/restlet-ported-to-gwt/
> * 
> SmartGWT'shttp://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/...
> (it provides DataSources, then makes it easy to have REST DataSources,
> both read/write)
>
> Are there any plans to improve out-of-the-box GWT to work with REST,
> so no additional libraries are needed? Is there a wish list to submit
> this request?
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Code works only in local env and does not work after uploading to App engine

2010-07-09 Thread Toby Reyelts
- Does the rest of your GWT UI show up fine?
- When you run with Eclipse are you ever testing the compiled production
(web) version of your app, or are you always running in development mode?
- Are you testing with the same browser against App Engine as you are
against Eclipse?
- You can try compiling your GWT app with -style PRETTY and using some
javascript debugging tools like Firebug.

On Fri, Jul 9, 2010 at 12:26 AM, Vik  wrote:

> hie
>
> please advise on this... its blocking us...
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Thu, Jul 8, 2010 at 1:13 PM, Vik  wrote:
>
>> Hie
>>
>> I have a code to launch a gwt popup using a gwt button. This code only
>> works in local eclipse env and does not work after uploading to GAE (i mean
>> popup doesnt show up on GAE).
>>
>>  Please advise whats wrong here. I dont see any stack trace or error
>> message anywhere. Here is the code:
>>
>> T*his code actually passes the data to renders a flex table in which one
>> of the column is a button.*
>>
>> @Override
>> public void onSuccess(List result) {
>> if(result.size() == 0){
>>  CommonUi.showServerMsgPopup("Sorry no blood donor available as per your
>> search criteria.");
>> }else{
>>  FindDonorPublicTable table = new FindDonorPublicTable();
>> List header = Arrays.asList("City","Area", "Donors Available",
>> "POC Details");
>>  FlexTable data = table.setInput(header, result,
>> countryName.getText().toLowerCase(),
>>  stateList.getValue(stateList.getSelectedIndex()).toLowerCase(),
>> disttList.getValue(disttList.getSelectedIndex()).toLowerCase());
>>  resultPanel.clear();
>> resultPanel.add(data);
>> }
>>  }});
>>
>> This code actually renders the flex table having a column with a button.
>> On clicking it the popup should invoke:
>>
>> package vik.sakshum.sakshumweb.client.common.ui;
>>
>> public class FindDonorPublicTable extends FlexTable{
>> private String country;
>>  private String state;
>> private String district;
>>  public FindDonorPublicTable() {
>> super();
>> }
>>  PocInfoTable pocInfoTable;
>> private class PocInfoTable extends FlexTable{
>>  public PocInfoTable() {
>> super();
>>  }
>>  public void setHeader(List header){
>>  int row = 0;
>> if (header != null) {
>> int i = 0;
>>  for (String string : header) {
>> this.setText(row, i, string);
>> i++;
>>  }
>> row++;
>> }
>>  }
>>  public void setInput(List header, List rows) {
>> setHeader(header);
>>  int i = 1;
>> for (PocProfileBean row : rows) {
>> this.setText(i, 0, row.getFirstName());
>>  this.setText(i, 1, row.getLastName());
>> this.setText(i, 2, row.getEmailId());
>>  this.setText(i, 3, row.getCellNumber());
>> this.setText(i, 4, row.getOfficeNumber());
>>  AddressBean addBean = row.getAddressBean();
>> this.setText(i, 5, addBean.getPinCode());
>>  this.setText(i, 6, addBean.getCity());
>> this.setText(i, 7, addBean.getDistrict());
>>  this.setText(i, 8, addBean.getState());
>> i++;
>> }
>>  }
>> }//end class PocInfoTable
>>  POCPopup pocPopup;
>> private class POCPopup extends PopupPanel {
>> private final FindBloodDonorServiceAsync findPOCService = GWT
>>  .create(FindBloodDonorService.class);
>> public POCPopup(String city, String area) {
>>   super(true);
>>   this.setTitle("Point of Contact Details");
>>
>>   VerticalPanel mainPanel = new VerticalPanel();
>>   mainPanel.setSpacing(10);
>>   mainPanel.setHorizontalAlignment(VerticalPanel.ALIGN_CENTER);
>>   Label titleText = new Label("Point of Contacts");
>>   Label infoText = new Label("Please note that below are *not* the
>> actual blood donors. You need to call any of these people to get the
>> information about available blood donors as per your searched criteria. We
>> are not providing the personal information of blood donors to protect the
>> information abuse.");
>>
>>   mainPanel.add(titleText);
>>   mainPanel.add(infoText);
>>   mainPanel.add(pocInfoTable);
>>   setWidget(mainPanel);
>> }
>> }
>>
>>  public void setHeader(List header){
>> int row = 0;
>> if (header != null) {
>>  int i = 0;
>> for (String string : header) {
>> this.setText(row, i, string);
>>  i++;
>> }
>> row++;
>>  }
>>  // Make the table header look nicer
>>  this.getRowFormatter().addStyleName(0, "sakth");
>> }
>>  public FindDonorPublicTable setInput(List header,
>> final List rows, String country,
>>  String state, String district) {
>> this.country = country;
>> this.state = state;
>>  this.district = district;
>> final FindDonorPublicTable tableHandle= this;
>>  setHeader(header);
>> int i = 1;
>> for (FindBloodDonorResultBean row : rows) {
>>  this.setText(i, 0, row.getCity());
>> this.setText(i, 1, row.getArea());
>>  this.setText(i, 2, row.getDonorCount());
>> Button pocBtn = new Button("Get Point Of Contact");
>>  this.setWidget(i, 3, pocBtn);
>> pocBtn.addClickHandler(new ClickHandler(){
>>
>> @Override
>> public void onClick(ClickEvent event) {
>> pocPopup = new POCPopup("bhiwani","bhiwani

Re: HOW to add markers to an static image ?

2010-07-09 Thread Stefan Bachert
Hi Bruno,

there is no way to manipulate an image directly.
However, you may try to put an transparent image with ticks over the
map.

Stefan Bachert
http://gwtworld.de


On 9 Jul., 11:39, Bruno Lopes  wrote:
> Hellos,
>
> I would like to add markers to a static image, referenced each marker by the
> position X an Y relative to the image.
>
> Something like is possible to do with the API for gMaps, adding markers to
> the google maps
>
> Thanks people!
>
> Bruno

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



Re: GWT RPC with Adobe AIR 2

2010-07-09 Thread Stefan Bachert
Hi,

GWT RPC is just an HTTP POST.
>From this point of view it should be possible.
However, GWT RPC is passing an id in the headers which is changing
every compile.
So you must simulate this, too.

Stefan Bachert
http://gwtworld.de

On 9 Jul., 00:20, Gurufaction  wrote:
> How do you call GWT RPC from Adobe AIR? Is it possible? I get a
> security violation from AIR.

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



Re: application wide events

2010-07-09 Thread Stefan Bachert
Hi,

look for comet, long polling, server push.
There are projects on this topic on code.google.com (gwt-comet)

Stefan Bachert
http://gwtworld.de

On 8 Jul., 19:22, keneiken  wrote:
> Hi,
>
> suppose we are working with the sample gwt contacts app., and there
> are 2+ users using the application concurrently on different machine.
>
> when USERA delete a contact, i want the other users to be notified as
> well and update the list automatically without using an auto refresh
> timer or clicking refresh manually.
>
> what is the best approach to achieve this?
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: ImageResource Sprites and RepeatStyle.Horizontal/Vertical generating massive images

2010-07-09 Thread Stefan Bachert
Hi Dave,

163000x300 pixel is extreme.
I see two causes
a) you have such a lot images. Than I would try for splitting up the
ClientBundle
b) GWT has a bug which causes huge images as a result. Maybe a) puts
the compiler in a more stable state


Stefan Bachert
http://gwtworld.de



On 9 Jul., 13:55, DaveC  wrote:
> Hello,
>
> This is really just a heads up...
>
> We are currently developing a large/complex GWT app and are making use
> of ClientBundle, CssResource and ImageResource. We've run into an
> issue where by GWT is generating massive sprite images (for instance
> one is 163,000 x 300 pixels) - which obviously causes memory problems
> in the compiler, dev mode and in browsers tyring to load/render this
> image.
>
> There is something specific about our Widget/CSS structure that is
> causing GWT to do this - we haven't found out what it is yet (we have
> widgets that nest HorizontalPanel/VerticalPanel/FlowPanel/ScrollPanel
> and some are positioned absolutely and some are relative etc, etc).
>
> Does anyone know if there is any debug that can be turned on (in the
> compiler) that maybe hints at what is wrong?
>
> Or has anyone come across this problem before?
>
> I was going to submit a bug, but until I can find out what causes this
> there isn't any point doing that.
>
> Cheers,
> Dave

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



Re: Detecting browser in GWT 2.0.3

2010-07-09 Thread Stefan Bachert
Hi,

from times to times this questions comes up.
The user has the control over the browser, not javascript over the
browser or the user.
And this is a good idea because of security.

Developers and customers must accept that there is no control over F5/
Refresh. The same is true for power off ;-)

This is no problem when all data is send as soon as possible to the
server.

Stefan Bachert
http://gwtworld.de



On 9 Jul., 02:01, SanjeevG  wrote:
> Hi,
>
> I am working on an application that uses GWT 2.0.3 and GXT 2.2.0. I
> have implemented the onClose method of the CloseHandler to terminate
> the session on browser close, however this is causing an obvious
> problem of terminating the session on browser refresh as well.
>
> Can someone put some ideas on how to detect the browser refresh and
> avoid the RPC call that causes the session termination.
>
> Thanks.
> Sanjeev.

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



Re: fire events to multiple clients

2010-07-09 Thread Bilousme
Hello,

I think that the best approach is the following :
Each client has to do a periodic request to the server (every minute
for example) to check if the list of contact has changed. If it's the
case, the client do another request to retrieve the updated list of
contact.


As far as I know the http protocol, the server cannot open a request
to the clients. A request must always come from the client.

Julien

On Jul 9, 2:28 am, keneiken  wrote:
> Hi,
>
> suppose the sample contacts application is running on a server and
> there are 2+ users using it concurrently.  if user1 delete a contact,
> user1's list will automatically be refreshed with the changes, i want
> to fire this event to other users who are viewing the same list to be
> notified as well.
>
> what is the best approach for achieving this?
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: ImageResource Sprites and RepeatStyle.Horizontal/Vertical generating massive images

2010-07-09 Thread DaveC
Checked the compile report, but I can't seem to find where it
references (if it even does) the generated ImageResourceBundles...

On Jul 9, 1:58 pm, DaveC  wrote:
> No, forgot about those (I check them)... but I have some more info
> now... I can trigger the big sprites by changing the size of the image
> (thats repeated) e.g.
>
> image 62 x 60 px  triggers big sprite
> image 500 x 60 px no big sprite...
>
> On Jul 9, 1:02 pm, Frederic Conrotte 
> wrote:
>
> > Did you check your Compile reports ?
>
> >http://code.google.com/webtoolkit/release-notes.html#Release_Notes_2_...
>
> > On Jul 9, 1:55 pm, DaveC  wrote:
>
> > > Hello,
>
> > > This is really just a heads up...
>
> > > We are currently developing a large/complex GWT app and are making use
> > > of ClientBundle, CssResource and ImageResource. We've run into an
> > > issue where by GWT is generating massive sprite images (for instance
> > > one is 163,000 x 300 pixels) - which obviously causes memory problems
> > > in the compiler, dev mode and in browsers tyring to load/render this
> > > image.
>
> > > There is something specific about our Widget/CSS structure that is
> > > causing GWT to do this - we haven't found out what it is yet (we have
> > > widgets that nest HorizontalPanel/VerticalPanel/FlowPanel/ScrollPanel
> > > and some are positioned absolutely and some are relative etc, etc).
>
> > > Does anyone know if there is any debug that can be turned on (in the
> > > compiler) that maybe hints at what is wrong?
>
> > > Or has anyone come across this problem before?
>
> > > I was going to submit a bug, but until I can find out what causes this
> > > there isn't any point doing that.
>
> > > Cheers,
> > > Dave

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



ds.xml problem

2010-07-09 Thread gopal bhalala
Hi,

I have created one .ds.xml file using one database table.


Can i create ds.xml file using two database table and when i am
dynamicForm.saveData().
i want to submit data on both database table.

Best Regards & Thanking you,
Gopal Dhanjibhai Bhalala

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



Re: ImageResource Sprites and RepeatStyle.Horizontal/Vertical generating massive images

2010-07-09 Thread DaveC
No, forgot about those (I check them)... but I have some more info
now... I can trigger the big sprites by changing the size of the image
(thats repeated) e.g.

image 62 x 60 px  triggers big sprite
image 500 x 60 px no big sprite...

On Jul 9, 1:02 pm, Frederic Conrotte 
wrote:
> Did you check your Compile reports ?
>
> http://code.google.com/webtoolkit/release-notes.html#Release_Notes_2_...
>
> On Jul 9, 1:55 pm, DaveC  wrote:
>
> > Hello,
>
> > This is really just a heads up...
>
> > We are currently developing a large/complex GWT app and are making use
> > of ClientBundle, CssResource and ImageResource. We've run into an
> > issue where by GWT is generating massive sprite images (for instance
> > one is 163,000 x 300 pixels) - which obviously causes memory problems
> > in the compiler, dev mode and in browsers tyring to load/render this
> > image.
>
> > There is something specific about our Widget/CSS structure that is
> > causing GWT to do this - we haven't found out what it is yet (we have
> > widgets that nest HorizontalPanel/VerticalPanel/FlowPanel/ScrollPanel
> > and some are positioned absolutely and some are relative etc, etc).
>
> > Does anyone know if there is any debug that can be turned on (in the
> > compiler) that maybe hints at what is wrong?
>
> > Or has anyone come across this problem before?
>
> > I was going to submit a bug, but until I can find out what causes this
> > there isn't any point doing that.
>
> > Cheers,
> > Dave

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



Re: Does these books still compatible with the new GWT ?

2010-07-09 Thread conrado
Hello again,

I took a look at "Pro Web 2.0 Application Development with GWT" and it
seems like a really good book. I would recommend it in fact.

Its got all a lot of goodies. Describes the nicest of Java development
tools and processes that you will go through, and really work like a
Pro. So its true to the title.

I'd also like to apologize for my previous post, which assumes a full
Java environment. GWT isn't only meant to work only with Roo, or
Appengine. Which is what I assume when writing my last post, because I
want to work with Roo and Appengine. But from your choice of books I
had assumed that was the same for you.

I still advise you to look into the Google IO session videos. Get the
book, and start cracking. You'll notice though, that even "Pro Web 2.0
Application Development with GWT" is out-dated. And was the day it
came out, since it uses GWT 1.5. It uses Spring MVC, a new edition
would probably use Roo and all the new goodies. But its looks like
solid historical info you'll have to learn anyway.
.
Regards,
Conrado.

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



locale + redirection

2010-07-09 Thread jeroni
I have already created a login system on my GWT application that works
fine, but I have a problem: when the users login I recieve a session
number and a "user" from the database with custom options as the
privileges and the preferred language and I would like to redirect the
application with the locale value in the URL. I think this shoud be
something like:

... get user from database after login

UrlBuilder builder = Window.Location.createUrlBuilder();
builder.setPath("AgendaApp.html");
builder.setParameter("locale", user.getOptions().getLocale());
Window.Location.assign(builder.buildString());

this is the entry point for the Agenda.html and now the URL is
correctly set with the user locale and redirected to AgendaApp.html
but I have no idea how to link AgendaApp.htlm with the next EntryPoint
(I have the sessionID in the cookies, so I can get the user again on
the next module with  an RPC call).

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



Help needed changing ui.xml from DecoratorPanel to DockLayoutPanel using Presenter

2010-07-09 Thread Jim in NH
I have a project that works modeled after the Contacts example from
the Google I/O talks.

In trying to use a DockLayoutPanel I changed the .ui.xml file as
from using simple panels
shown below.  Both versions of the ui.xml file have the same UiFields.

Using the code below the application works.





Add
Delete



  


Changing it to the following breaks it, but I have not changed the
related java file.
(Error or warning message from debugger shown at end of topic.)





Add
Delete








In the java file I did **NOT** make **ANY** changes because I think
the UiBinder handles it for me.
Here is the relevent code from the java impl file

public class DashboardViewImpl extends Composite
implements DashboardView {
  @UiTemplate("DashboardView.ui.xml")
  interface DashboardViewUiBinder extends UiBinder {}
  private static DashboardViewUiBinder uiBinder =
GWT.create(DashboardViewUiBinder.class);

  @UiField HTML contactsTable;
  @UiField Button addButton;
  @UiField Button deleteButton;

  private Presenter presenter;
  ...

  public DashboardViewImpl() {
initWidget(uiBinder.createAndBindUi(this));
  }
  ..

  @UiHandler("addButton")
  void onAddButtonClicked(ClickEvent event) {

  }

  @UiHandler("deleteButton")
  void onDeleteButtonClicked(ClickEvent event) {

  }

  @UiHandler("contactsTable")
  void onTableClicked(ClickEvent event) {

  }

  public Widget asWidget() {
return this;
  }
}

===


When I run the application I get an error or warning messages that
probably relate to the problem,
but I don't understand them

- Rebinding com.google.gwt.core.client.impl.SchedulerImpl
- For the following type(s), generated source was never committed
(did you forget to call commit()?)
-
com.wbc.dashboardtwo.client.DashboardViewImpl_DashboardViewUIBinderImpl

I don't get that message with the first .ui.xml file, just the
second.

Any help is appreciated.

Thanks in advance...

   Jim

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



application wide events

2010-07-09 Thread keneiken
Hi,

suppose we are working with the sample gwt contacts app., and there
are 2+ users using the application concurrently on different machine.

when USERA delete a contact, i want the other users to be notified as
well and update the list automatically without using an auto refresh
timer or clicking refresh manually.

what is the best approach to achieve this?

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



orcades spring gwt sample, Startup Warnings

2010-07-09 Thread mfreitag
Hi @all,

now i try to start orcades-spring-gwt-sample in Eclipse with righClick-
>RunAs->WebApplication. The application starts successfully, but i see
no login panel and in console there are the following Warnings:




[WARN] Module declares a servlet class
'org.springframework.web.context.support.HttpRequestHandlerServlet'
with a mapping to '/springsample.SampleModule/sampleService2-
unsecure.gwt', but the web.xml has no corresponding mapping; please
add the following lines to your web.xml:

  shell2
  /springsample.SampleModule/sampleService2-unsecure.gwt



I checked out:  http://net-orcades-spring.googlecode.com/svn/trunk/
net-orcades-spring.

What i am do wrong?

Thanks for help!

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



Detecting browser in GWT 2.0.3

2010-07-09 Thread SanjeevG
Hi,

I am working on an application that uses GWT 2.0.3 and GXT 2.2.0. I
have implemented the onClose method of the CloseHandler to terminate
the session on browser close, however this is causing an obvious
problem of terminating the session on browser refresh as well.

Can someone put some ideas on how to detect the browser refresh and
avoid the RPC call that causes the session termination.

Thanks.
Sanjeev.

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



Problem in loading GWTTestCase

2010-07-09 Thread rajkamal
Hi I want to configure my project with GWTTEstCase but getting this
error when trying to run the TestCase.

Exception in thread "htmlUnit client thread"
com.gargoylesoftware.htmlunit.ObjectInstantiationException: unable to
create HTML parser
at com.gargoylesoftware.htmlunit.html.HTMLParser
$HtmlUnitDOMBuilder.(HTMLParser.java:515)
at com.gargoylesoftware.htmlunit.html.HTMLParser
$HtmlUnitDOMBuilder.(HTMLParser.java:440)
at
com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:
328)
at
com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:
304)
at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:
134)
at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:
101)
at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:
414)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:
297)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:
354)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:
339)
at com.google.gwt.junit.RunStyleHtmlUnit
$HtmlUnitThread.run(RunStyleHtmlUnit.java:100)
Enclosed exception: org.xml.sax.SAXNotRecognizedException: Feature
'http://cyberneko.org/html/features/parse-noscript-content' is not
recognized.
at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown
Source)
at com.gargoylesoftware.htmlunit.html.HTMLParser
$HtmlUnitDOMBuilder.(HTMLParser.java:509)
at com.gargoylesoftware.htmlunit.html.HTMLParser
$HtmlUnitDOMBuilder.(HTMLParser.java:440)
at
com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:
328)
at
com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:
304)
at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:
134)
at
com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:
101)
at
com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:
414)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:
297)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:
354)
at com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:
339)
at com.google.gwt.junit.RunStyleHtmlUnit
$HtmlUnitThread.run(RunStyleHtmlUnit.java:100)
[WARN]
com.qwest.eqsms.QETFIApplication.JUnit:com.qwest.eqsms.client.QETFIApplicationTest.testLoadApp
is being retried, retry attempt = 2

...
...
I am using gwt-2.0.0-rc2 and eclipse galilio.All the requird jars in
class path and some others jars are also there
Here I am attaching my classpath entry.













































































































































































Please suggest what is missing and i am not able to solve the problem
from last couple of weeks and no solution is avaliable on Net


Thanks in advance
Raj Kamal

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



GWT RPC with Adobe AIR 2

2010-07-09 Thread Gurufaction
How do you call GWT RPC from Adobe AIR? Is it possible? I get a
security violation from AIR.

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



CSS nth-child pseduo class

2010-07-09 Thread Nick
How do I get the CSSResource class to recognize something like

.styleClass:nth-child(odd) {
/* Do 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



fire events to multiple clients

2010-07-09 Thread keneiken
Hi,

suppose the sample contacts application is running on a server and
there are 2+ users using it concurrently.  if user1 delete a contact,
user1's list will automatically be refreshed with the changes, i want
to fire this event to other users who are viewing the same list to be
notified as well.

what is the best approach for achieving this?

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



Re: Does these books still compatible with the new GWT ?

2010-07-09 Thread conrado
Hi,

this is my first post to the group. Sorry for any mistakes.

I'd like to emphasize, as stated above, that printed books are out-
dated. I've gone through many books and they all cover the very basics
of getting started with Appengine and GWT. I would like to point out
that, even though in the 2009 Google IO, Google was already pushing
for the MVP pattern, and all the other goodies that make enterprise
grade applications (testing, declarative UI, i18n, etc.) are not
covered in any of the books in great detail.

In fact, most of the books feel like a HOWTO, and not worth your money
in my opinion.

Just to get you started, I would suggest you go through the GWT
session videos on the 2010 IO:

http://code.google.com/events/io/2010/sessions.html

I've made a little list of the things I've had to review (and am still
in the process of doing so), to make a great application.

Well tested
- http://code.google.com/webtoolkit/articles/mvp-architecture.html#testing
- 
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/junit/client/GWTTestCase.html
Secure SafeHTML
- http://code.google.com/p/wave-protocol/
Monitored
- http://code.google.com/p/gwt-log/
- http://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions
Scalable
- http://code.google.com/webtoolkit/articles/mvp-architecture.html
Bookmarfriendly - ?
Crawlable
- http://code.google.com/web/ajaxcrawling/docs/getting-started.html
Localized
- http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinderI18n.html

This covers the "background" knowledge you need. But I would suggest
you also pick up on Roo. Which, unfortunately, isn't shoved down our
throats, and seems a little lacking in documentation at the moment.

Good luck,
Conrado.

On Jul 8, 5:33 am, "Rachmat Kukuh R."  wrote:
> I have a plan to buy these books:
>
> 1. GWT in Practice [Manning, 2008]
> 2. Pro Web 2.0 Application Development with GWT (Pro) [Apress. 2008]
> 3. Beginning Google Web Toolkit [Apress, 2008]
>
> But, does those books still compatible with the new GWT ?
>
> Thx before! :)

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



Re: GWT 2.0.4 caused Class Not Found, TransformerFactoryImpl

2010-07-09 Thread davewilliamson
Interestingly,

I have 'just' come across the same problem in the middle of
development!

Using Elipse's neat trick of setting SDK versions, I have found that
this problem exists since V2.0, whereas the older SDK 1.7.1 works fine
= a very poor but quick work around, that is FAR from ideal!!!

Come on Google, give us a fix!

Cheers

Dave


On Jul 8, 8:51 pm, emurmur  wrote:
> I've traced through the Restlet 2.0rc4 code for both the success case
> (no GWT) and the failure case (gwt-dev.jar in on classpath).  The
> issue is how DomRepresentation.createTransformer() creates the
> necessary javax.xml.transform.TransformerFactory instance.
>
> In the success case, we end up in FractoryFinder.findJarService() at
> the line 255,
>
> is = ss.getResourceAsStream(cl, serviceId);
>
> and the result is null.  Therefore, the code returns and uses the
> fallback class
> ("com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl"),
> which works.
>
> In the failure case (when gwt-dev.jar in on the classpath), line 255
> DOES return a class, the code that immediately follows is then able to
> read the factoryClassName from the class, which ends up being,
> "org.apache.xalan.processor.TransformerFactoryImpl".  Later, the
> attempt to instantiate this class fails with a ClassNotFoundException.
>
> So it seems that the gwt-dev.jar file contains some configuration that
> tricks Restlet into attempting to instantiate the wrong
> TransformerFactory implementation.
>
> How would I go about making Restlet ignore this Jar.  Note that this
> is only an issue in the development environment, because gwt-dev.jar
> is not copied to the production server.  However, it's still a show
> stopper bug for me, because I can't debug my client application with
> my rest services.
>
> Does anyone on the GWT team know that this may be about?  Any help
> would be welcome.  I will pass it on to the Restlet team.  Thanks.
>
> On Jul 7, 10:01 am, emurmur  wrote:
>
>
>
> > I have an Java App Engine project using SDK 1.3.5 and the latest
> > Restlet GAE 2.0rc4 to implement some restful services.  Everything
> > worked well (this has been in production for 6 months) until I added
> > GWT 2.0.4 to the project.  As soon as I check use GWT on in the
> > control panel in Eclipse (without even adding a module) my services
> > start to fail in the development server with the following class not
> > found exception:
>
> >Couldn'twritetheXMLrepresentation:Provider
> >org.apache.xalan.processor.TransformerFactoryImpl not found
>
> > This exception happens on the way out of my Restlet, after a GET of a
> > lists of entities, as it tries to turn my DomRepresentation into the
> > response payload.  I've found that if I remove the gwt-dev.jar, the
> > exception does not happen.  Of course, I can't use the development
> > server if I do that.   Again, this all works fine without GWT.
>
> > Here is the relevant parts of the trace:
>
> > SEVERE: An exception occured writing the response entity
> > java.io.IOException:Couldn'twritetheXMLrepresentation:Provider
> >org.apache.xalan.processor.TransformerFactoryImpl not found
> >         at
> > org.restlet.ext.xml.DomRepresentation.write(DomRepresentation.java:
> > 287)
> >         at
> > org.restlet.representation.WriterRepresentation.write(WriterRepresentation. 
> > java:
> > 104)
> >         at
> > org.restlet.engine.http.ServerCall.writeResponseBody(ServerCall.java:
> > 502)
> >         at org.restlet.engine.http.ServerCall.sendResponse(ServerCall.java:
> > 439)
> >         at
> > org.restlet.ext.servlet.internal.ServletCall.sendResponse(ServletCall.java:
> > 451)
> >         at
> > org.restlet.engine.http.adapter.ServerAdapter.commit(ServerAdapter.java:
> > 198)
> >         at
> > org.restlet.engine.http.HttpServerHelper.handle(HttpServerHelper.java:
> > 151)
> >         at
> > org.restlet.ext.servlet.ServerServlet.service(ServerServlet.java:1037)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
> >         at
> > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> >         at
> > org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.jav
> > a:1166)
> >         at
> > com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi 
> > lter.
> > java:51)
> >         at
> > org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.jav
> > a:1157)
> >         at
> > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans 
> > actio
> > nCleanupFilter.java:43)
> >         at
> > org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.jav
> > a:1157)
> >         at
> > com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile 
> > Filte
> > r.java:122)
> >         at
> > org.mortbay.jetty.servlet.ServletHandler
> > $CachedChain.doFilter(ServletHandler.jav
> > a:1157)
> >         at
> > org.mortbay.jetty.servlet.ServletHandler.handle(Servle

How to propagate events generically between components using an eventbus?

2010-07-09 Thread Oskar Carlstedt
Hi All,

I’m sitting with a quite normal problem where I want several
components to talk to each other via an eventbus. I have seen some
questions on this forum that are quite close to what I’m asking now
but no one actually answers the question.

Now to my question: I have a couple of components, say a folder tree
component displaying folders and files on the server, a file content
component displaying the contents of each file that is selected in the
folder tree view, and finally a file monitor component displaying file
system activities on the server. These three components are gathered
in the “workspace” view.

Summarizing it all means the workspace component contains:
1. Folder tree component
2. File content component
3. File system activity component

Each component consists of some logic and a view. When I select a file
in the folder tree component, I want a FileSelectedEvent(filename) to
be sent to the file content component to change the displayed content.
When I select a Folder in the file folder tree view, I want a
FileUnselectedEvent() to be passed to the file content component to
erase the content that it is showing. When the file system activity
component finds an activity, e.g. file deleted, changed, etc. this
event shall be propagated to the file tree view.

The components themselves are not the important thing here. I want to
discuss the design and how I shall implement the event propagation
between all components in a container component.

The container component knows the views and components it holds, but
not necessarily has it instance variables for each contained component
(these might be in a list). As described in this example, there are
three components but in another solution I might have 40 components.
Now, let say I click the file in the tree view.

Question:
How do I get the onClick event passed to the folder tree component
(the contained component) from the workspace view (the container
component) without hard wire the file tree view in an instance
variable? I want to do a more generic code like
delegateEventToView(event). I do not want to hard wire a
foldertreeview variable in the workspace view that I later call with
foldertreeview.onclick(…) because that will end up in a mess of
dependencies all over my application.

Does anyone have a short example how I can reach the abstraction level
described here. It is all about event propagation between components
that does not know anything about each other. Eventbus, but how?


Kind regards
Oskar Carlstedt

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



handling events in MVP with containers

2010-07-09 Thread xworker
Hi all.

Got this setup:

Dock (DockLayoutPanel)
  --Tree (Tree)
  --Content. (SimplePanel)

DockPresenter creates and bind the presenters for tree and content
like so:

public DockPresenter(ContactsServiceAsync rpcService,
HandlerManager eventBus, Display view) {
this.rpcService = rpcService;
this.eventBus = eventBus;
this.display = view;

contactsPresenter = new ContactsPresenter(rpcService, eventBus,
new ContactsView());
treePresenter = new TreePresenter(rpcService, eventBus, new
MyTree());
}


Then in the bind method in the DockPresenter i got this:

public void bind() {
contactsPresenter.bind();
treePresenter.bind();

eventBus.addHandler(SelectionEvent.getType(), treePresenter);

I want to propagate all the Selection events to the treePresenter. The
treePresenter looks like this:

public class TreePresenter implements Presenter,
SelectionHandler {

...
...

@Override
public void onSelection(SelectionEvent event) {
 TreeItem item = (TreeItem) event.getSelectedItem();
 ...
 ..

}

But the onSelection method never gets called. Have I misunderstod the
MVP event model? I dont want to handle all event in the dock
presenter, then everyting gets tangeld upp and not very decoupled.
What is the proposed way to handle events in a setup with nestled
presenter and containers widgets containing other widgets?

It seems that an good example with MVP ui:binding and DockLayoutPanel
(or similar) with a tree navigation to the west which changes content
in the center panel would benefit alot of people.

Thanks for your time
/Andreas


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



Re: ImageResource Sprites and RepeatStyle.Horizontal/Vertical generating massive images

2010-07-09 Thread Frederic Conrotte
Did you check your Compile reports ?

http://code.google.com/webtoolkit/release-notes.html#Release_Notes_2_0_0_rc2

On Jul 9, 1:55 pm, DaveC  wrote:
> Hello,
>
> This is really just a heads up...
>
> We are currently developing a large/complex GWT app and are making use
> of ClientBundle, CssResource and ImageResource. We've run into an
> issue where by GWT is generating massive sprite images (for instance
> one is 163,000 x 300 pixels) - which obviously causes memory problems
> in the compiler, dev mode and in browsers tyring to load/render this
> image.
>
> There is something specific about our Widget/CSS structure that is
> causing GWT to do this - we haven't found out what it is yet (we have
> widgets that nest HorizontalPanel/VerticalPanel/FlowPanel/ScrollPanel
> and some are positioned absolutely and some are relative etc, etc).
>
> Does anyone know if there is any debug that can be turned on (in the
> compiler) that maybe hints at what is wrong?
>
> Or has anyone come across this problem before?
>
> I was going to submit a bug, but until I can find out what causes this
> there isn't any point doing that.
>
> Cheers,
> Dave

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



ImageResource Sprites and RepeatStyle.Horizontal/Vertical generating massive images

2010-07-09 Thread DaveC
Hello,

This is really just a heads up...

We are currently developing a large/complex GWT app and are making use
of ClientBundle, CssResource and ImageResource. We've run into an
issue where by GWT is generating massive sprite images (for instance
one is 163,000 x 300 pixels) - which obviously causes memory problems
in the compiler, dev mode and in browsers tyring to load/render this
image.

There is something specific about our Widget/CSS structure that is
causing GWT to do this - we haven't found out what it is yet (we have
widgets that nest HorizontalPanel/VerticalPanel/FlowPanel/ScrollPanel
and some are positioned absolutely and some are relative etc, etc).

Does anyone know if there is any debug that can be turned on (in the
compiler) that maybe hints at what is wrong?

Or has anyone come across this problem before?

I was going to submit a bug, but until I can find out what causes this
there isn't any point doing that.

Cheers,
Dave

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



Re: RPC call does not work after upgrading to Safari 5

2010-07-09 Thread Si_gee
Pleased to say I downloaded the 1.4.2 JDK and was able to recompile
that class OK - just expanded the existing gwt-user.jar file, updated
the source and recompiled (actually I let eclipse recompile) using the
1.4.2 java compiler. Then created new gwt-user.jar file.

Just in case anyone else needs this fix, I also expanded the gwt-
servlet.jar and replaced the
com.google.gwt.user.server.rpc.RemoteServiceServlet class with this
new version too (as that is the one for the server deployment)

Thanks for the pointer though - much appreciated!

On Jul 9, 11:07 am, Si_gee  wrote:
> I don't suppose you have the patched version of the lib available, I
> would like to avoid downloading the whole gwt project and compiling
> again for this.. I tried tweaking the class in the Jar file, but that
> seems to end up with a java.lang.Error: Unresolved compilation
> problem:
>         The constructor String(byte[], String) is undefined
>
> when it gets loaded. I assume I am using the wrong java compiler (1.5)
> but never having compiled gwt before I am really not sure
>
> Any help much appreciated!
> Thanks
> Simon
>
> On Jun 29, 7:11 pm, Roland  wrote:
>
>
>
> > For GWT 1.4:
> > gwt-user.jar,
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.java:
>
> >  private static String readPayloadAsUtf8(HttpServletRequest request)
> >       throws IOException, ServletException {
> >   ...
> >     String contentType = request.getContentType();
> >     boolean contentTypeIsOkay = false;
> >     // Content-Type must be specified.
> >     >>> putch line: if (contentType != null) {
> >         contentType = contentType.toLowerCase();
> >  ...
> > On 24 июн, 00:02, TBirch  wrote:
>
> > > After further research on the web and directing me to review my
> > > server's logs I believe my problem may be due to my app still being
> > > run as a gwt 1.4. If so, are there any options other than upgrading
> > > the app to a newer gwt version?
> > > Below is from my Tomcat server log:
> > > SEVERE: Exception while dispatching incoming RPC call
> > > javax.servlet.ServletException: Content-Type must be 'text/plain' with
> > > 'charset=utf-8' (or unspecified charset)
> > >         at
> > > com.google.gwt.user.server.rpc.RemoteServiceServlet.readPayloadAsUtf8(Remot
> > >  ­eServiceServlet.java:
> > > 119)
> > >         at
> > > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceSer
> > >  ­vlet.java:
> > > 178) ...
>
> > > Thanks
>
> > > On Jun 22, 3:39 pm, TBirch  wrote:
>
> > > > I have a get app that has been working fine with Safari 4 for some
> > > > time. It appears that my initial RPC call no longer works after
> > > > upgrading today to Safari 5. The app works fine in Chrome, IE, and
> > > > Firefox. I un-installed Safari 5 and re-installed version 4 and the
> > > > app no longer works in that version either. Any suggestions as to why
> > > > the app will not work in the Safari browser?
> > > > 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RPC call does not work after upgrading to Safari 5

2010-07-09 Thread Si_gee
I don't suppose you have the patched version of the lib available, I
would like to avoid downloading the whole gwt project and compiling
again for this.. I tried tweaking the class in the Jar file, but that
seems to end up with a java.lang.Error: Unresolved compilation
problem:
The constructor String(byte[], String) is undefined

when it gets loaded. I assume I am using the wrong java compiler (1.5)
but never having compiled gwt before I am really not sure

Any help much appreciated!
Thanks
Simon

On Jun 29, 7:11 pm, Roland  wrote:
> For GWT 1.4:
> gwt-user.jar,
> com.google.gwt.user.server.rpc.RemoteServiceServlet.java:
>
>  private static String readPayloadAsUtf8(HttpServletRequest request)
>       throws IOException, ServletException {
>   ...
>     String contentType = request.getContentType();
>     boolean contentTypeIsOkay = false;
>     // Content-Type must be specified.
>     >>> putch line: if (contentType != null) {
>         contentType = contentType.toLowerCase();
>  ...
> On 24 июн, 00:02, TBirch  wrote:
>
>
>
> > After further research on the web and directing me to review my
> > server's logs I believe my problem may be due to my app still being
> > run as a gwt 1.4. If so, are there any options other than upgrading
> > the app to a newer gwt version?
> > Below is from my Tomcat server log:
> > SEVERE: Exception while dispatching incoming RPC call
> > javax.servlet.ServletException: Content-Type must be 'text/plain' with
> > 'charset=utf-8' (or unspecified charset)
> >         at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.readPayloadAsUtf8(Remot 
> > ­eServiceServlet.java:
> > 119)
> >         at
> > com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceSer 
> > ­vlet.java:
> > 178) ...
>
> > Thanks
>
> > On Jun 22, 3:39 pm, TBirch  wrote:
>
> > > I have a get app that has been working fine with Safari 4 for some
> > > time. It appears that my initial RPC call no longer works after
> > > upgrading today to Safari 5. The app works fine in Chrome, IE, and
> > > Firefox. I un-installed Safari 5 and re-installed version 4 and the
> > > app no longer works in that version either. Any suggestions as to why
> > > the app will not work in the Safari browser?
> > > 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT roadmap: easier use of REST?

2010-07-09 Thread marius.andreiana
Hi,

A lot of web APIs use REST nowadays. GWT seems really well suited to
build mashups/UIs on top of REST web services.

However, it's not that easy to work with REST from GWT (see also
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/71f2d5599ee2593f/41ef729a5d1cfe8d?lnk=gst&q=rest#41ef729a5d1cfe8d
)

There are two projects tackling this:
* Restlet http://blog.noelios.com/2008/07/25/restlet-ported-to-gwt/
* SmartGWT's 
http://www.smartclient.com/smartgwt/javadoc/com/smartgwt/client/docs/ClientDataIntegration.html
(it provides DataSources, then makes it easy to have REST DataSources,
both read/write)

Are there any plans to improve out-of-the-box GWT to work with REST,
so no additional libraries are needed? Is there a wish list to submit
this request?

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



HOW to add markers to an static image ?

2010-07-09 Thread Bruno Lopes
Hellos,

I would like to add markers to a static image, referenced each marker by the
position X an Y relative to the image.

Something like is possible to do with the API for gMaps, adding markers to
the google maps


Thanks people!


Bruno

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



Re: FlexTables - store invisible database key in row?

2010-07-09 Thread Paul Robinson

> (BTW: is there a better way to convert an int to String than ""+idx?)
>
> Magnus
>
>   
Integer.toString(idx)

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



concerns on 2.1 MVP approach

2010-07-09 Thread marius.andreiana
Hi GWT developers,

There are some concerns on 2.1 MVP approach, which have been raised
here
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/44cc77811080a288/f53f9d29ebb9257d?lnk=gst&q=mvp#f53f9d29ebb9257d
and here
http://groups.google.com/group/gwt-platform/browse_thread/thread/862cab91ccb28d40

To summarize, here are some quotes:
* It's extremely fast to build an initial scaffold (CRUD for all
entities), but I'm not sure how easy it is to customize it for real
world usage
* When skimming the generated sources I saw A LOT of artifacts, which
I don't feel comfortable with because it means that although
"officially" my code is not coupled with Roo, if I were to drop it I
would have to manage all these generated artifacts myself.
* This expenses example is a nightmare to follow.  The bindings/
wiring  of all the pieces both client and server is nuts.
* In M2, things have been cleaned up a bit

I'm just trying to make sure the final MVP implementation will be
usable without Roo and without automatic code generation, and will be
at least as easy to use and understand as http://code.google.com/p/gwt-platform/
. Otherwise, should it be left as a separate project rather than
default GWT approach?
What do others, more knowledgeable persons than me, think?

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



[DialogBox] Problem with lower corners

2010-07-09 Thread StrongSteve
Hello Everybody,

I used the GWT Theme Generator [1] to generate kind of  a gray style
with thin lines for our application.

Not I am facing the problem that the lower corners of a DialogBox look
kinda weird on IE7+ and FF 3.5+.

Please see these screenshots [2], [3] for an explanation.

As you can see within IE the corner are missing/wrong.
In FF the whole bottom is missing...

Honestly I have no idea why...

Any ideas or entry points for fixing/tweaking this behaviour?
Has anyone faced similar problems? And solved them!? ;)

Thanks in Advance for your help!

Greetings
Stefan

[1] http://works.sen-sei.in/gtg/

[2] http://starkeweb.org/files/dialogBox_ie7.jpg

[3] http://starkeweb.org/files/dialogBox_ff.jpg

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