Saturday, July 31, 2010

Announcement: Chrome Extension for GWT Documentation

Hi. I just wanted to let you know about a Chrome extension for easily
accessing the GWT API reference documentation:
https://chrome.google.com/extensions/detail/ooehfcnceghcfhnilipfdmfoiaahmopc

If you type "gwt", "gwt20", or "gwt21", it will take you straight to
the main page of the API reference documenation. Typing any of those
followed by the name of a class will take you straight to the
documentation for the given class.

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

Re: Where can I put a File to be read/write from RPC Servlet ?

I might be missing something... but, why don't you store it in a
database?

On Jul 28, 9:31 am, Jose Luis Estrella Campaña <jlecamp...@gmail.com>
wrote:
> Katharina,
>
> Hi, and... No, I have not solved it. apparently the file and/or
> directory restrictions are ok, at least according to what I have seen,
> I wonder If there's a problem with the permissions a non-administrator
> user has in Windows vista, but otherwise the file seems to be ok.
> Frankly I don't know what else to do.
>
> Help me Katharina,
>
> Sincerely,
>
> Jose
>
> On Jul 28, 7:47 am, Katharina Probst <kpro...@google.com> wrote:
>
>
>
> > Did you get this solved? It doesn't look to me like it has anything to do
> > with GWT, but it's purely a file permission thing.  Have you set the file
> > permissions on your file properly?  Is your server-side directory somehow
> > read-restricted?
>
> > On Tue, Jul 27, 2010 at 4:25 PM, Jose Luis Estrella Campaña <
>
> > jlecamp...@gmail.com> wrote:
> > > Hello sir !
>
> > > I have already tried all the ways I mentioned previously, including
> > > the ones you suggested, but the problem remains. It is obviously
> > > according to the stack trace launched by the Exception some sort of
> > > File permission error. I would like to know what can I do about it ?
> > > can you help me a little further, I'm lost.
>
> > > Good luck,
>
> > > Jose.
>
> > > On Jul 27, 3:02 pm, skippy <a...@2lehmans.com> wrote:
> > > > I would have tried your last example.
> > > > It look like a access problem to the file.  follow the access denied
> > > > message.  See what that get you.
> > > > Sorry, I know how it does.
>
> > > > On Jul 27, 2:36 pm, Jose Luis Estrella Campaña <jlecamp...@gmail.com>
> > > > wrote:
>
> > > > > Hi skippy !
>
> > > > > I have tried your suggestion but unfortunately it did not work :(
>
> > > > > I changed the java APIs I used this time but the result is the same:
> > > > > ...
> > > > >               try {
> > > > >                         File f = new File("xml/users.xml");
> > > > >                         FileReader reader = new FileReader(f);
> > > > >                         BufferedReader buffer = new
> > > BufferedReader(reader);
> > > > >                         buffer.readLine();
> > > > >                         // Read a line of text
> > > > >                         System.out.println(buffer.readLine());
> > > > >                 }
> > > > > ....
>
> > > > > The generated exception is:
>
> > > > > Caused by: java.security.AccessControlException: access denied
> > > > > (java.io.FilePermission \users.xml read)
>
> > > > > also, If I try it like this: /xml/users.xml with the forward slash a
> > > > > the beginning it goes for the root of the system which is C:/ and it
> > > > > still does not work, which I find weird because that's outside the
> > > > > application's context, right ?
>
> > > > > Anyways, please help me Skippy.
>
> > > > > Sincerely,
>
> > > > > Jose.
>
> > > > > On Jul 27, 2:13 pm, skippy <a...@2lehmans.com> wrote:
>
> > > > > > If that does not work, ping me again and I will provide a code
> > > sample.
>
> > > > > > On Jul 27, 2:09 pm, skippy <a...@2lehmans.com> wrote:
>
> > > > > > > I would put the file in the WEB-INF/XML/
> > > > > > > change the path to the file to xml/users.xml or /xml/user.xml
>
> > > > > > > On Jul 27, 1:57 pm, Jose Luis Estrella Campaña <
> > > jlecamp...@gmail.com>
> > > > > > > wrote:
>
> > > > > > > > Hello dane !
>
> > > > > > > > You're right in assuming something it's not working. Here's the
> > > > > > > > thing... I need to read from the xml file so I can perform some
> > > > > > > > operations on it and then save it again, here's the code I'm
> > > trying to
> > > > > > > > get to work:
>
> > > > > > > > import ....
>
> > > > > > > > public class GreetingServiceImpl extends RemoteServiceServlet
> > > > > > > > implements
> > > > > > > >                 GreetingService {
> > > > > > > >         public String greetServer(String input) throws
> > > > > > > > IllegalArgumentException {
>
> > > > > > > >                 FileInputStream fin;
>
> > > > > > > >                 try {
> > > > > > > >                     fin = new FileInputStream ("users.xml");
> > > > > > > >                     System.out.println( new
> > > DataInputStream(fin).readLine() );
> > > > > > > >                     fin.close();
> > > > > > > >                     } catch (IOException e) {
> > > > > > > >                         System.err.println ("Unable to read from
> > > file");
> > > > > > > >                         System.exit(-1);
> > > > > > > >                     }
> > > > > > > >                 return "success reading file";
>
> > > > > > > >         }
>
> > > > > > > > }
>
> > > > > > > > And here's the exception I'm getting:
>
> > > > > > > > Unable to read from file
> > > > > > > > .
> > > > > > > > .
> > > > > > > > .
> > > > > > > > Caused by: java.security.AccessControlException: access denied
> > > > > > > > (java.lang.RuntimePermission exitVM.-1)
>
> > > ---------------------------------------------------------------------------
> > > ­­-------------------------------------------------------------------------
> > > -­-­--------
>
> > > > > > > > This last test was performed putting the file where you
> > > suggested.
> > > > > > > > (src/org/jose/server. )
>
> > > > > > > > Thank you very much,
>
> > > > > > > > Jose.
>
> > > > > > > > On Jul 27, 1:13 pm, "dane.molotok" <dane.molo...@gmail.com>
> > > wrote:
>
> > > > > > > > > I guess I'm missing something in the question. Have you tried
> > > some
> > > > > > > > > things and it's not working like you'd expect? I would think
> > > you could
> > > > > > > > > put it in src/org/jose/server.
>
> > > > > > > > > On Jul 27, 11:21 am, Jose Luis Estrella Campaña <
> > > jlecamp...@gmail.com>
> > > > > > > > > wrote:
>
> > > > > > > > > > Good day everybody,
>
> > > > > > > > > > I have this particular need, where I need to have a file
> > > (xml) within
> > > > > > > > > > my GWT app. I have some data in this xml I must read, change,
> > > and then
> > > > > > > > > > write (update)
> > > > > > > > > > The file must be delivered or included within the Gwt App.
> > > Can anybody
> > > > > > > > > > please tell me where can I place this file, so I can
> > > read/write it
> > > > > > > > > > using java's file APi from an RPC Servlet.
>
> > > > > > > > > > Here's a brief description of how my App's directory
> > > structure looks
> > > > > > > > > > like:
>
> > > > > > > > > > GwtApp
> > > > > > > > > >             |__ src
> > > > > > > > > >             |          |__org
> > > > > > > > > >             |          |       |__jose
> > > > > > > > > >             |          |                 |__client
> > > > > > > > > >             |          |                 |__server
> > > > > > > > > >             |          |                 |__shared
> > > > > > > > > >             |          |
> > > > > > > > > >             |          |__META-INF
> > > > > > > > > >             |
> > > > > > > > > >             |__ war
> > > > > > > > > >                       |__gwtapp
> > > > > > > > > >                       |__WEB-INF
>
> > > > > > > > > > For my current needs, where would you suggest placing the
> > > file ?
>
> > > > > > > > > > Thank you very much in advance,
>
> > > > > > > > > > Have a nice day,
>
> > > > > > > > > > Jose- Hide quoted text -
>
> > > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > > > - Show quoted text -- Hide quoted text -
>
> > > > > - Show quoted text -
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Need help on generating session id

Hi Mani

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

hth

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

Upload folders and/or Upload Files already on the server

I need users to give me a bunch of images from their computer, which
will then be displayed in my application. These images will all be in
one folder. Rather than having users upload each image individually, I
want to upload them all at once.

One idea that I came up with is to have them upload a zip file with
the folder and all the images to the blobstore. If I did this, how
would I access each individual image? One possible solution that I
thought of uploading each image to the blobstore after unzipping the
folder. Is this possible?

Another idea is to have them upload the entire folder. Again, how
would I access each individual image?

Any help would be appreciated. Thanks :)

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

Re: Can Gin inject eventBus into a widget that's created from uiBinder?

On 31 July, 00:26, David Grant <davidgr...@gmail.com> wrote:
> Inject your eventBus in to the widget, it will work just fine, then "new"
> your widget or create it by using injection, or whatever.

As mentioned in topic title and in my message, the widget is being
*created by uiBinder*.

> You only need <ui:with> if you need to access some object in the ui.xml file
> that you want to be constructed somewhere else. Typically this is some
> object that get injected in to the ui.xml associated .java class or it is a
> Resources object (typically also injected).
>
> Example:
>
> public class MyWidget extends Composite {
>   private static MyWidgetUiBinder uiBinder =
> GWT.create(MyWidgetBinder.class);
>   interface MyWidgetUiBinder extends UiBinder<Widget, MyWidget> {
>   }
>
>   private final EventBus bus;
>
>   @UiField
>   private HTMLPanel outerPanel;
>
>   @Inject
>   public MyWidget(EventBus bus) {
>     this.bus = bus;
>     initWidget(uiBinder.createAndBindUi(this));
>   }
>
> }
>

I've now tried incorporating Gin and following your suggestions.
Introducing a no-argument constructor causes my application to fail to
start:

01:00:41.503 [ERROR] [testapp] com.testapp.agency.client.Mailboxes has
no default (zero args) constructor. To fix this, you can define a
@UiFactory method on the UiBinder's owner, or annotate a constructor
of Mailboxes with @UiConstructor.

Any ideas? Does your response address injecting resources into widgets
created by uiBinder?

Pete

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

Re: One v.s N EventBus

I am using one event bus across the whole app.
The definition of eventbus implies that, but who knows, I've never though about having multiple eventbuses.
Maybe you can find some benefit from doing that

2010/7/31 Sebastian Hoß <mail@shoss.de>
I've been using multiple EventBus instances together with Gin/Guice
and named annotations. So for example each view that needs to
communicate in some way with my REST server is attached to the @Server
HandlerManager. That way each component can have multiple
communication channels open and it is possible to re-use some events
across several buses. For example: I defined a simple FilterEvent
which takes a single String as an argument. Depending on the event bus
you are going to use you either filter on types or descriptions here
(so I don't need a FilterTypeEvent and FilterDescriptionEvent).

That said, I've moved away from multiple event buses since this can
get really confusing sometimes ...

On Sat, Jul 31, 2010 at 6:03 AM, Dean S. Jones <deansjones@gmail.com> wrote:
> Looking at finishing up an idea, and I have come across a thought in
> MVP: Global v.s a multiple/hierarchy of view/presenter EventBus's, and
> wondered if anyone
> had explored this avenue. The basics are there is the global EventBus,
> as is typical now, and a local EventBus for actions in the current
> View/Presenter, there
> may be even more levels, say per sub-panel/component, and the choice
> to propagate the events between levels. My current... idiom for using
> this is the dispatch
> of... "DataModelChange" events, when I don't really know exactly WHO
> in the current hierarchy is "listening" ( the UI is composed
> dynamically, so I don't have total
> foreknowledge of the components interests ). Using GIN/Guice for
> injection, obviously, I have to subclass the view/presenter EventBus
> to keep it distinct from
> the global EventBus type. So, just wondering if anyone has jumped into
> this, and what ideas/patterns have fallen out of it for you.
>
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
http://ajax-development.blogspot.com/

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

how to call forcelayout() in a tablayout panel

Because of the problems that have been noticed in
http://code.google.com/p/google-web-toolkit/issues/detail?id=4694

I am trying to use the forcelayout function, in a tablayout panel, but
without any success. Here is my code:
myTabPanel.addSelectionHandler(new SelectionHandler<Integer>() {

@Override
public void onSelection(SelectionEvent<Integer> e) {
LayoutPanel tempLayoutPanel = (LayoutPanel)
myTabPanel.getWidget(e.getSelectedItem());
tempLayoutPanel.forceLayout();
}
});

What I am doing wrong here?

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

Show loading message only for javascript enabled users

I have seen a lot of discussions around showing loading messages. All
of them suggested either setting the button as visible in css and then
setting it invisible in onModuleLoad(), either setting it invisible in
css and then setting it visible as long as you run your tasks.

The first method (setting visible in css) would not be ok for
javascript-disabled users, so only the second method is feasible.

Is it better if I load a small javascript that sets the loading
message visible, and only after that load the GWT script, and set the
message invisible at the end? My thought is that it takes some time
until the onModuleLoad instructions are loaded. I have never used a
GWT app in production, so I am thinking that there can be a noticeable
delay between the moment the page is loaded and the moment the GWT
script is loaded.

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

Re: GWTCanvas vs gwt-graphics?

Hi

I have looked at the g2d library. It is backed by excanvas, which is working fine in IE.

I find that GWTCanvas  does not play well in the standard mode, only quirks mode.


/Flemming

On Fri, Jul 30, 2010 at 9:33 AM, Sorinel C <scristescu_iv@hotmail.com> wrote:
I would go with GWTCanvas too :-) here's a small starting point
http://ui-programming.blogspot.com/2010/07/gwt-how-to-draw-in-browser-with.html
but I assume you're an expert, so please contribute with your
discoveries.

Cheers!

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

Re: Unable to find type

Thanks Sebastian!

I did a simple "find" using the OS X tool for the simple class name
and discovered "entry-point" entries in one of my module xml files.
Took those out and of course I was able to compile and run.

Didn't realize I had put those there...

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

Re: Unable to find type

Hi leslie,
maybe a search for the class name (simple name) in the deployed folder
helps; just in case a wildcard search is being done...
Best Regards
Sebastian

On 31 Jul., 20:23, leslie <web...@me.com> wrote:
> GWT 2.0.3
> Eclipse Galileo
> MacOS X 10.5.8
> Java 5
>
> Hello,
>
> At one point I created what I thought would be a test class.  I don't
> recall even ever doing anything with it.  I only created it, and
> deleted it because I couldn't work with it.
>
> Anyway my GWT project remembers it, so somewhere I am referencing it
> perhaps?
>
>  [ERROR] Unable to find type 'foo.bar.baz.TestEntry'
>
> But I am not creating it in my code, I do not reference it in my entry
> html file... How do I tell my application that this file is not in
> existence?  I can neither run nor even compile the project in
> eclipse.  But I do not see build errors, so I know that my code is not
> attempting to use it.
>
> How do I resolve an "Unable to find" error when what is being sought
> isn't intended to exist?  So lost, please help.
>
> Thanks in advance.

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

Re: Cross-domain call

HI, I guess Subhrajyoti is right, you can only call cross-domain when
your app runs on the local client (i.e. on a desktop or phone -
including phonegap deployments). Otherwise, I'd first create a service
myself (on the server side) and secondly call the other service in a
2nd domain. Depending on whether the other service in the 2nd domain
is GWT-RPC or not, a simple servlet forwarding the call might suffice.
I'd be careful however: sessions and cookies might come into play and
make work a lot more difficult.

For a start, I'd do the following:
1.) create a mock service on your own server and check whether
communication works (the service is set up all right)
2.) independently create a webservice client (e.g. using axis -
http://ws.apache.org/axis2/) and try calling the webservice (e.g.
using a small local program to be run via main[])
3.) change the mock service from 1.) to use the webservice from 2.)

Hope this helps - best regards
Sebastian Rothbucher

On 31 Jul., 19:44, Deepak Singh <deepaksingh...@gmail.com> wrote:
> Could you pls provide some link or code, that how to write
> remoteserviceservlet and integrate with gwt.
>
> On Sat, Jul 31, 2010 at 11:04 PM, Subhrajyoti Moitra <subhrajyo...@gmail.com
>
>
>
> > wrote:
> > use GWT RPC mechanism.
> > build a remoteserviceservlet that doubles as a webservice client (this will
> > be typically be implemented using some SOAP stack like axis2 or xfire).
>
> > thanks,
> > Subhro.
>
> > On Sat, Jul 31, 2010 at 10:49 PM, Deepak Singh <deepaksingh...@gmail.com>wrote:
>
> >> I am using gwt 2.1 in my project. I have to make cross-domain web service
> >> call. I have wsdl and methods are known to invoke. I am not aware of web
> >> service so i feel very much difficulty in understanding web service. can any
> >> one suggest me some simple way to call cross-domain web services...
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-toolkit@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@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-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscribe@googlegroups.com<google-web-toolkit%2Bunsubs cribe@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Absolute Panel and Image overlay issues

I'm not sure there is any easier way to get my desired results, but
when I have 3 images overlapping (all three are .GIF with
transparent), and then I have a button that updates the src for one of
these images, the new image is not displayed. When the page first
loads, each Image contains a 1X1 pxl image as the source, and then the
actual image is set via CSS backgound url. Then, when I click a
button, I setUrl on the desired image, and then the image's src on the
page is updated in the browser rather than keeping the same styles.

To get around this, I programmatically remove the image from the
absolute panel, then recreate it with the desired url and then add a
css class that contains the "position:absolute" property, which then
works fine, but this seems a bit hacky.

Has anyone else experienced this? I can include source if this doesn't
make sense. Thanks for any input/suggestions!

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

Re: IncompatibleRemoteServiceException: The response could not be deserialized

I believe I resolved this a while ago. I think the issue pertained to
the use of the drop down "combobox" list box in GWT. If I recall In
IE 8 it was throwing an exception if I was attempting to obtain the
value in the box if the selected index was -1 but somehow no exception
was generated in Safari. At least I think that may have been the
issue but I don't remember exactly so I could be wrong.

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

Re: multi-file selection upload - swfupload can work with gwt?

There is a project called swfupload-gwt, which embeds multi-file
upload capabilities into gwt application.
We are using that in several applications, so it is quite stable.
Without Flash you can opt for HTML5 upload, which also supports multi-
file selection.

http://code.google.com/p/swfupload-gwt/

Dmitry

On Jul 29, 5:11 am, cy dev <cydevelo...@gmail.com> wrote:
> i am working out a multiple file upload module with gwt (which can
> support multi-file selection).  the most
> available tool i can find is swfupload, however the samples provided
> seems to work with php platform only.
>
> the progress i am working is to create a HTML widget and embed the
> flash button <object>, the select dialog prompts and allow multiple
> selection.  however i have no idea how (or if it is possible) to post
> to server, get status response etc.
>
> gmail seems to do the same to embed the flash button for attaching
> files.  can someone share experience about this?  any samples?
> thanks.
>
> the object i am embedding is:
> <object id="SWFUpload_0" type="application/x-shockwave-flash"
> data="../
> swfupload/swfupload.swf?preventswfcaching=1280303624557" width="270"
> height="22" class="swfupload">
>        <param name="wmode" value="window" />
>        <param name="movie" value="../swfupload/swfupload.swf?
> preventswfcaching=1280303624557" />
>        <param name="quality" value="high" />
>        <param name="allowScriptAccess" value="always" />
>        <param name="flashvars"
> value="movieName=SWFUpload_0&amp;uploadURL=
> %2Fv250beta3%2Ffeaturesdemo%2Fupload.php%3Fget_name
> %3Dget_value&amp;useQueryString=false&amp;requeueOnError=false&amp;httpSuccess=123%2C444&amp;assumeSuccessTimeout=25&amp;params=post_name1%3Dpost_value1%26amp
> %3Bpost_name2%3Dpost_value2&amp;filePostName=Filedata&amp;fileTypes=*.*&amp;fileTypesDescription=All
> %20Files&amp;fileSizeLimit=100%20MB&amp;fileUploadLimit=10&amp;fileQueueLimit=0&amp;debugEnabled=true&amp;buttonImageURL=
> %2Fimages
> %2Fbutton_270x22.png&amp;buttonWidth=270&amp;buttonHeight=22&amp;buttonText=
> %3Cspan%20class%3D%22btnText%22%3ESelect%20Files...%3C%2Fspan
> %3E&amp;buttonTextTopPadding=3&amp;buttonTextLeftPadding=100&amp;buttonTextStyle=.btnText
> %20%7B%20font-size%3A%2010%3B%20font-weight%3A%20bold%3B%20font-family
> %3A%20MS%20Shell%20Dlg%3B
> %20%7D&amp;buttonAction=-110&amp;buttonDisabled=false&amp;buttonCursor=-1" /
>
> </object>

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

[ERROR] Unable to find type

GWT 2.0.3
Eclipse Galileo
Mac OS X 10.5.8
Java 5

Hello,

At one point I created what I thought would be a test class. I don't
recall even ever doing anything with it. I only created it, and
deleted it because I couldn't work with it.

Anyway my GWT project remembers it, so somewhere I am referencing it
perhaps?

[ERROR] Unable to find type 'foo.bar.baz.TestEntry'

But I am not creating it in my code, I do not reference it in my entry
html file... How do I tell my application that this file is not in
existence? I can neither run nor even compile the project in
eclipse. But I do not see build errors, so I know that my code is not
attempting to use it.

How do I resolve an "Unable to find" error when what is being sought
isn't intended to exist? So lost, please help.

Thanks in advance.

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

Re: GWT/iphone/phonegap server communication

Hi,

I guess the simplest solution is to cast the service coming out of GWT
create and change the endpoint - which implies that you have to add
code each time GWT.create is used:

private final SomeStandardDatabaseServiceAsync
someStandardDatabaseService = GWT
.create(SomeStandardDatabaseService.class);
if(someStandardDatabaseService instanceof ServiceDefTarget){

((ServiceDefTarget)someStandardDatabaseService).setServiceEntryPoint("http://
somehere");
}

Hope this helps - I'm also still working on the topic...

Best Regards
Sebastian Rothbucher


On 20 Jul., 16:33, Youen <youen.ch...@gmail.com> wrote:
> Thanks, it match to my needs.
>
> I'll make it works
>
> Regards,
>
> Youen Chéné
>
> On 15 juil, 16:13, Arthur Kalmenson <arthur.k...@gmail.com> wrote:
>
>
>
> > We also ran into this issue while building a GWT based iPhone app
> > usingphonegap. We also didn't want to use JSONp as our servers were
> > Java based and GWT-RPC makes life easier. The solution lay in a blog
> > post by Ray Cromwell:http://timepedia.blogspot.com/2009/04/gwt-rpc-over-arbitrary-transpor...
>
> > The post describes a way to do GWT-RPC over any arbitrary transport
> > protocol. The two solutions for thephonegapcase is to use JSONp as
> > the underlying protocol or the window.name hack. We went with JSONp
> > and the code is open sourced. You can find the classes here:http://code.google.com/p/gwt-app-framework/source/browse/#svn/trunk/g...
> > and the GWT module file configurations here:http://code.google.com/p/gwt-app-framework/source/browse/trunk/gwt-af...
>
> > Be for warned, JSONp is transported using GET, so make sure that your
> > requests will fit within the maximum GET length limit:http://www.boutell.com/newfaq/misc/urllength.html
>
> > Hope that helps,
> > --
> > Arthur Kalmenson
>
> > On Sat, Jun 12, 2010 at 10:02 AM, rhodebump <rhodeb...@gmail.com> wrote:
> > > All,
> > > I am building an iphone app using GWT/phonegap, so my GWT application
> > > will be running from the filesystem in Safari.
> > > Given this, would it make sense for me to use RPC to communicate with
> > > remote server?  My assumption here is that running from the filesystem
> > > will allow me to do this.
>
> > > I have been going down the road with JsonpRequestBuilder, but as I
> > > think about it, am I making things harder for myself using
> > > JsonpRequestBuilder when I could be using RPC?
>
> > > Any thoughts?
> > > Phillip
>
> > > This is for my personal projecthttp://www.spotmouth.comagrails/
> > > drupal based backend.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> > > For more options, visit this group athttp://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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Development time for GWT apps versus 'traditional' MVC with JSP

i am currently "migrating" a Swing desktop app to a web application- GWT is the chosen framework. I cant imagine how i could have pulled this off, without GWT.

Most time consuming part for our team(2 currently) is the UI obviously. If you are not using one of those WYSIWYG tools for GWT, it can take a lot of time to put the right UI in place. We also dont have a CSS/HTML expert in our team, so its just trial and error.

GWT-RPC mechanism is the coolest RPC mechanism i have used to date.

".. these services can be called directly from the client they need to be properly secured."- i secure it at the server. Depending on some security principle, i do some basic checks on the client. The server does the bulk of the validation, before fulfilling a request.

"For each call we have to verify that the calling
user is registered in the database and has the rights to call the
service."- Yes. We use serverside cache (ehcache) to cache in the "logged" in users profile info.

Traditional JSP is "page" based approach, wherein markup as well as data has to be sent from the server. Though u can use JS libs to have a single JSP page do all your stuff. GWT is generally good for these single page apps.

It took us a while to come up to speed with this framework and its nuances. But frameworks like gwt-incubator/bikeshed examples/mvp4g/gwtpresenter/gwtdispatch will ease a lot of your "glue" code troubles as well as give u lots of examples of doing stuff in GWT.

HTH.



Thanks,
Subhro.

On Sat, Jul 31, 2010 at 10:48 PM, Julius <julius.kleine@gmail.com> wrote:
Hi,

What are your experiences regarding development time for rich internet
applications using GWT compared to the more traditional approach with
JSP and an MVC pattern?

I am currently developing a RIA with GWT using the MVP pattern
illustrated in this article from Google:
http://code.google.com/webtoolkit/articles/mvp-architecture.html

It took me some time to become familiar with the pattern, with the use
of UI Binder and with the general concept of sending back and forth
data between the client and the server through RPC.

Some of the questions that needed answering in our project so far and
that have cost us more time than initially planned are

Security:
- How to secure services that modify or delete data? Since these
services can be called directly from the client they need to be
properly secured. For each call we have to verify that the calling
user is registered in the database and has the rights to call the
service. In order to do this we changed the interface of important
services by requiring a valid session key as a parameter.

- We now use a servlet filter and go through this process for each
view that is loaded on the screen which causes quite a number of
requests. Ideally we'd do this only in the outermost view and pass
security parameters from the outer most presenter into the constructor
of inner presenters.

Retrieving text:
- When are we going to retrieve texts? Are we going to make a separate
call to the database for each presenter/view to load the texts for
that presenter/view? Or do we need a mechanism that loads the texts of
the entire screen in the outer most presenter, in our case the
presenter that belongs to the main grid that is the basis of each
screen.

Serializing data
- We use Hibernate for persistence and had to find a solution for the
fact that Hibernate proxy objects are not serializable and have to be
converted to serializable POJO's. This was one of the smaller issues.

At this moment developing our GWT application is taking us a lot of
time. Certainly a lot more than with a traditional JSP approach. I
understand that building an application with JSP results in a
traditional website, which is different from building a GWT
application, which is comparable to creating a desktop application
that runs in a browser. It is however taking us about twice as much
time to build the same functionality with GWT.

What are your experiences? Do you find it more time consuming to build
the same functionality with GWT compared to building it with JSP/PHP/
etc and a MVC pattern? We might just be struggling with the new
technology and I hope development spedd will pick up as the project
progresses, but right now, I am a bit disappointed about the larhe
number of hours we're burning answering all sorts of questions and
solving all sorts of problems we hadn't seen coming when we started.




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

Re: Cross-domain call

Could you pls provide some link or code, that how to write remoteserviceservlet and integrate with gwt.

On Sat, Jul 31, 2010 at 11:04 PM, Subhrajyoti Moitra <subhrajyotim@gmail.com> wrote:
use GWT RPC mechanism.
build a remoteserviceservlet that doubles as a webservice client (this will be typically be implemented using some SOAP stack like axis2 or xfire).

thanks,
Subhro.


On Sat, Jul 31, 2010 at 10:49 PM, Deepak Singh <deepaksingh.kr@gmail.com> wrote:
I am using gwt 2.1 in my project. I have to make cross-domain web service call. I have wsdl and methods are known to invoke. I am not aware of web service so i feel very much difficulty in understanding web service. can any one suggest me some simple way to call cross-domain web services...



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

Re: Cross-domain call

use GWT RPC mechanism.
build a remoteserviceservlet that doubles as a webservice client (this will be typically be implemented using some SOAP stack like axis2 or xfire).

thanks,
Subhro.


On Sat, Jul 31, 2010 at 10:49 PM, Deepak Singh <deepaksingh.kr@gmail.com> wrote:
I am using gwt 2.1 in my project. I have to make cross-domain web service call. I have wsdl and methods are known to invoke. I am not aware of web service so i feel very much difficulty in understanding web service. can any one suggest me some simple way to call cross-domain web services...



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

Re: GWT Rocks!

Hi,

I just opened a new thread where I ask about experiences with the
development time needed for GWT apps compared to traditional JSP web
apps. Our experience so far, after 5 weeks, is that it is taking us
much more time developing with GWT than developing a webapp with JSP.
It might just be our lack of experience and the fact that GWT, the MVP
pattern and UIBinder combined present quite a learning curve.

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/4495827dc2e82816#

We are building a large application that suggests training options and
growth paths to employees based on work experience, education, courses
done in the past, reviews, etc. It's quite a complex application and
we're only just laying out the foundations, that is data retrieval,
storage, user, roles, rights, etc. We haven't even started on the real
core of the application.

On Jul 29, 4:56 am, sakesun roykiatisak <sake...@gmail.com> wrote:
> Besides praising, could anybody please give some short story of your
> experience with GWT ?
> What kind of project are you working on ? How large is the project & team?
> What is the typical work process ? What tool do you find essential in
> working with GWT ?
> Does GWT compile speed cause you any inconvenience ?
>
> I'm merely a antique desktop application developer who looking for a sane
> method to develop
> boring, enterprise-like, web-based, database application. I've tried a lot
> of stuffs, but none seem
> to convince me that my quality of life will be better than using my age old
> tools.
>
> Thanks

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

Cross-domain call

I am using gwt 2.1 in my project. I have to make cross-domain web service call. I have wsdl and methods are known to invoke. I am not aware of web service so i feel very much difficulty in understanding web service. can any one suggest me some simple way to call cross-domain web services...



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

Development time for GWT apps versus 'traditional' MVC with JSP

Hi,

What are your experiences regarding development time for rich internet
applications using GWT compared to the more traditional approach with
JSP and an MVC pattern?

I am currently developing a RIA with GWT using the MVP pattern
illustrated in this article from Google:
http://code.google.com/webtoolkit/articles/mvp-architecture.html

It took me some time to become familiar with the pattern, with the use
of UI Binder and with the general concept of sending back and forth
data between the client and the server through RPC.

Some of the questions that needed answering in our project so far and
that have cost us more time than initially planned are

Security:
- How to secure services that modify or delete data? Since these
services can be called directly from the client they need to be
properly secured. For each call we have to verify that the calling
user is registered in the database and has the rights to call the
service. In order to do this we changed the interface of important
services by requiring a valid session key as a parameter.

- We now use a servlet filter and go through this process for each
view that is loaded on the screen which causes quite a number of
requests. Ideally we'd do this only in the outermost view and pass
security parameters from the outer most presenter into the constructor
of inner presenters.

Retrieving text:
- When are we going to retrieve texts? Are we going to make a separate
call to the database for each presenter/view to load the texts for
that presenter/view? Or do we need a mechanism that loads the texts of
the entire screen in the outer most presenter, in our case the
presenter that belongs to the main grid that is the basis of each
screen.

Serializing data
- We use Hibernate for persistence and had to find a solution for the
fact that Hibernate proxy objects are not serializable and have to be
converted to serializable POJO's. This was one of the smaller issues.

At this moment developing our GWT application is taking us a lot of
time. Certainly a lot more than with a traditional JSP approach. I
understand that building an application with JSP results in a
traditional website, which is different from building a GWT
application, which is comparable to creating a desktop application
that runs in a browser. It is however taking us about twice as much
time to build the same functionality with GWT.

What are your experiences? Do you find it more time consuming to build
the same functionality with GWT compared to building it with JSP/PHP/
etc and a MVC pattern? We might just be struggling with the new
technology and I hope development spedd will pick up as the project
progresses, but right now, I am a bit disappointed about the larhe
number of hours we're burning answering all sorts of questions and
solving all sorts of problems we hadn't seen coming when we started.


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

Ecryption best practices (server side, client side, password handling)?

Dear group,

I want to extend a GWT/GAE application by offering the option to
encrypt information entered by the user on client side in the
database. The goal is to increase trust when storing potentially
sensitive data, e.g. to prevent that people who have access to the DB
(like me) have read access to the stored information.

For client-side encryption using GWT I found this post:
http://www.mooreds.com/wordpress/archives/000529

However, others do not even recommend to compute password hashs on the
client and propose to do that on the server:
http://www.owasp.org/index.php/Hashing_Java
http://stackoverflow.com/questions/1238628/md5-hash-for-password-string-in-gwt-gwt-ext
http://stackoverflow.com/questions/695813/how-could-you-encrypt-user-data-so-only-they-can-decrypt-it

From user's perspective, I would not be comfortable with transmitting
my data unencrypted to the server (even using HTTPS), as the server-
side may for example log my information (and my password!). Especially
for the password-part I would feel unconfortable, as many people tend
to reuse their passwords (please no discussion about this :-)).

Currently, I see two options:
a) Encrypt and decrypt the information on the client using JS/GWT.
Pro: The password never leaves the browser, the unencrypted
information never leaves the browser. Con: Depending on the size of
the data the encryption/decryption may be slow; if loaded via HTTP,
the JS code may be compromised, etc.
b) Encrypt and decrypt the information on the server. Pro: Fast. Con:
The information is transmitted unencrypted.

What would be your recommendation?

In case of server-side encryption, would it make sense to hash the
password on client side and to use the hash to encrypt/decrypt? Or
would that be a no-go?

What happens if the user forgets his/her password? All data lost, I
guess?

I have no deep practical experience with cryptography, so I would
appreciate any suggestions or pointers to resources in the web. My
goal is not to have a bullet proof solution for highly sensitive
information, but it should be an improvement compared to the current
implementation (no HTTPs, no encryption).

Thanks
Sven

PS: x-post Google App Engine for Java, Google Web Toolkit

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

Re: One v.s N EventBus

I've been using multiple EventBus instances together with Gin/Guice
and named annotations. So for example each view that needs to
communicate in some way with my REST server is attached to the @Server
HandlerManager. That way each component can have multiple
communication channels open and it is possible to re-use some events
across several buses. For example: I defined a simple FilterEvent
which takes a single String as an argument. Depending on the event bus
you are going to use you either filter on types or descriptions here
(so I don't need a FilterTypeEvent and FilterDescriptionEvent).

That said, I've moved away from multiple event buses since this can
get really confusing sometimes ...

On Sat, Jul 31, 2010 at 6:03 AM, Dean S. Jones <deansjones@gmail.com> wrote:
> Looking at finishing up an idea, and I have come across a thought in
> MVP: Global v.s a multiple/hierarchy of view/presenter EventBus's, and
> wondered if anyone
> had explored this avenue. The basics are there is the global EventBus,
> as is typical now, and a local EventBus for actions in the current
> View/Presenter, there
> may be even more levels, say per sub-panel/component, and the choice
> to propagate the events between levels. My current... idiom for using
> this is the dispatch
> of... "DataModelChange" events, when I don't really know exactly WHO
> in the current hierarchy is "listening" ( the UI is composed
> dynamically, so I don't have total
> foreknowledge of the components interests ). Using GIN/Guice for
> injection, obviously, I have to subclass the view/presenter EventBus
> to keep it distinct from
> the global EventBus type. So, just wondering if anyone has jumped into
> this, and what ideas/patterns have fallen out of it for you.
>
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Moving Frame(iframe) without reloading iframe content

Some more google search shows that this is really a problem with
Firefox so there is nothing gwt can do about that. Current versions of
firefox will always reload an iframe when it is moved (https://
bugzilla.mozilla.org/show_bug.cgi?id=254144).

On Jul 31, 3:16 pm, "mtils...@gmail.com" <mtils...@gmail.com> wrote:
> I have a Frame object which contain an iframe to a site. This is
> working fine, but I would like to move the Frame to a different parent
> without  reloading the content of the iframe.
>
> If i just do a myOtherPanel.add(frameWidget) then the Frame does move,
> but the iframe content is reloaded -( Is there any way to move the
> Frame without the iframe reloading?
>
> The reason I want to do this, is that the iframe contains a form which
> is used to upload a file, and I don't want the upload to stop just
> because I move the Frame.

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

Re: Sliding effects...

You can always see the roo + gwt demo code to look at how they used LayoutPanel to do that animation, it is pretty easy to do.

2010/7/31 Tom Wilczak <tom.wilczak@gmail.com>
I think that I saw something similar when I was watching the Roo
presentation from the Google I/O keynote.
To my knowledge there isn't an effect pre-written effect like that
available in the base gwt release, but you could probably put one
together relatively easily using an absolute panel and a custom
Animation subclass.

There are other options out there like wrapped script.aculo.us
releases and the like, but I found it worth the time to use
Animation.
I used that approach in the following toy / demo:
http://t-wilczak.appspot.com/#reportConfig

On Jul 30, 1:50 pm, Thamizharasu S <zaru...@gmail.com> wrote:
> Hi,
>
> I saw one video demo video about GWT application. Whenever the user
> wants to navigate to another view, the view navigation is happening
> through some nice sliding effect. Can any one give some insight
> information about how this was done?
>
> Some clue...
>
> - Thamizharasu S

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




--
http://ajax-development.blogspot.com/

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

Re: is ZK better than GWT..?

Regarding the ZK license and the community arround it, I don't think.

On 31 juil, 07:41, akhil <shastri.ak...@gmail.com> wrote:
> pls help me to decide  isZK
>
> ZK better than GWT..?
>
> Regards,
> Akhil

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

Re: GWT Rocks!

Hi,

I've been working with GWT for almost 3.5 years now! That already says
a lot.
GWT makes sure that I don't have to worry about browser specific code
and focus
on my functional requirements.

GWT made it possible to create an abstract engine( fully dynamic
behavior and performance wise very good).
(see http://www.qafe.com or http://demo.qafe.com)

My team currently consists of 5 persons, varying in skillset. The
project is quite big (not only the GWT part, but also the
backend part).

Actually, progress is quite good (agile approach). Use Eclipse with
the GWT plugin, really helps a lot. This is useful for
development. Use maven for your build process. The compilation process
is sometimes tedious, but that's only when
you are releasing (either for testing or final releases). The
compilation process can be speed up by using parallel workers (check
documentaiton on
the GWT compiler).

I would say, give it a try. It's definitely a good choice (for us it
has be proven that way so far!)

Regards,
Rokesh

On Jul 29, 4:56 am, sakesun roykiatisak <sake...@gmail.com> wrote:
> Besides praising, could anybody please give some short story of your
> experience with GWT ?
> What kind of project are you working on ? How large is the project & team?
> What is the typical work process ? What tool do you find essential in
> working with GWT ?
> Does GWT compile speed cause you any inconvenience ?
>
> I'm merely a antique desktop application developer who looking for a sane
> method to develop
> boring, enterprise-like, web-based, database application. I've tried a lot
> of stuffs, but none seem
> to convince me that my quality of life will be better than using my age old
> tools.
>
> Thanks

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

To create the orkut edit forms in the GWT

I am trying to create the edit forms simiar to those of Orkut in GWT
using GWT-EXT widget library.
I takes a big deal to make the panels and sub panes and many more
panels to align the things just as they are in the Orkut forms.
Is there any better way to get the job done without taking such a
large no of Panels becoz its really tyring and the resultant code
becomes heavy.

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

Re: Passing values between 2 screens (popups)

Hi,
If your modules live in two different windows, and if you don't want to communicate via the server, the client side communication should use a top or opener frame to communicate.
Cheers

"Imagination is more important than knowledge.": Albert Einstein

Le 29 juil. 2010 à 03:58, "Reinaldo \(Gmail\)" <reinaldo.manzano@gmail.com> a écrit :

> Hi All.
>
>
>
> I`d like to know how would be the best approach to pass some data (attributes) from Screen A to Screen B. (Kind of popups)
>
>
>
> I want to avoid any request. I heard about putting the values in a cookie and get them later but I did not like that solution.
>
>
>
> Thanks
>
>
>
> Manza
>
> --
> You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: How To apply Customised CSS

Hello Vinny,

you can change the classes .gwt-Labels and .gwt-Button to change their styles.

Thanks


On Fri, Jul 30, 2010 at 7:18 AM, vinny <vinitahu@gmail.com> wrote:
Hi, Im new to GWT tool. I want to know how to apply customised css to
labels,buttons & text field etc etc.

Thanx,
Vinny

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




--
Website for Mobiles | Organic SEO

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

Re: Rounded tab styles in TabLayoutPanelTab

not sure..
try putting a !important in your css definition.

Thanks,
subhro.

On Sat, Jul 31, 2010 at 12:17 AM, lineman78 <lineman78@gmail.com> wrote:
There is no pure CSS solution short of using CSS3 border-radius.  For
efficiency I have stuck with this approach for now, but the most
compatible way is to make your own decoratedPanel that allows you to
only have rounded corners on top and use the widget in the tab.

On Jul 30, 8:08 am, Michael Jones <mjones...@gmail.com> wrote:
> Hello,
>
> I am trying to make the corners rounded in a gwt-TabLayoutPanelTab.  I
> have attempted a few things including setting:
>
> background-image: url("/website/images/bg_tab_first.png");
>
> but it doesn't seem to have an effect.
>
> Any suggestions would be greatly appreciated.
>
> Thanks in advance,

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

Re: Good File Upload Example

For some reason, my previous mail doesn't show, so I'll try this
again. To upload, use the blobstore.
use all the example code except index.jsp from this page:
http://code.google.com/appengine/docs/java/blobstore/overview.html
replace index.jsp with a gwt file similar to the example in this page:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/FileUpload.html

Change this line in Upload.java from
BlobKey blobKey = blobs.get("myFile");
to
BlobKey blobKey = blobs.get("textBoxFormElement");

Delete parts of FileUpload that involve the listbox.

Also, use an RPC call to get the form action url. The server side code
for the RPC call should look like this:
return blobstoreService.createUploadUrl("/upload");

Hope this helps :)


On Jul 30, 5:48 pm, alan <alan.sny...@gmail.com> wrote:
> I need to read a csv file from the hard drive to populate a table in a
> dialog box.
>
> This seems to require using the FileUpload class, but I've not found a
> good example of it is use. Could anyone recommend a complete example
> that could accomplish 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Friday, July 30, 2010

Re: Protected Page + PopupPanel

On 30 July 2010 21:27, Dean S. Jones <deansjones@gmail.com> wrote:
> Sorry, again, looking at your above example, to make my point
> clear, using Firebug I can find (!user.isAuthenticated()) and any
> a JS debugger to subvert it. GWT obfuscates JS code, but
> anyone with 1) curiosity and a brain, 2) ulterior motives , this
> is a cakewalk.
>
> Think about it.
>
> and
>
> NEVER TRUST THE CLIENT. Always verify every action for permission
> on the server side.

Very true and I thought about that. My reasoning is that without a
user token there will be no "interesting" data available (it's still
on the server) so there is no leak. And anyone can sign up for an
account so if a bad guy just wants to have a look at the JS code then
they can get it. Do you think there is a flaw in my logic?

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

is ZK better than GWT..?

pls help me to decide is ZK better than GWT..?


Regards,
Akhil

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

Re: Protected Page + PopupPanel

Sorry, again, looking at your above example, to make my point
clear, using Firebug I can find (!user.isAuthenticated()) and any
a JS debugger to subvert it. GWT obfuscates JS code, but
anyone with 1) curiosity and a brain, 2) ulterior motives , this
is a cakewalk.

Think about it.

and

NEVER TRUST THE CLIENT. Always verify every action for permission
on the server side.

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

Re: Protected Page + PopupPanel

Typically, I like to avoid this problem altogether, and NOT allow the
user to see the GWT page
until they are logged in. The Login page is normal JSP, and I employ a
ServletFilter to check
that if the user tries to load the GWT page and is not logged in, they
get redirected to the Login
JSP. There is a specific reason I do this: People who are not
registered, valid, signed-in users
CAN NOT see the GWT JavaScript code, thus can not figure out how
to ... subvert the generated
JavaScript for evil purposes. I guarantee you that if I can see your
GWT JS, I can figure out how
to hack it to let me do something I shouldn't. Now, we just have to
worry about our real, valid
users, but then, they usually are not trying to hack something to get
IN. If they are, then you
have a problem with your CUSTOMERS, and not everyone of the Net' who
can see the JS.

My $0.02

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

One v.s N EventBus

Looking at finishing up an idea, and I have come across a thought in
MVP: Global v.s a multiple/hierarchy of view/presenter EventBus's, and
wondered if anyone
had explored this avenue. The basics are there is the global EventBus,
as is typical now, and a local EventBus for actions in the current
View/Presenter, there
may be even more levels, say per sub-panel/component, and the choice
to propagate the events between levels. My current... idiom for using
this is the dispatch
of... "DataModelChange" events, when I don't really know exactly WHO
in the current hierarchy is "listening" ( the UI is composed
dynamically, so I don't have total
foreknowledge of the components interests ). Using GIN/Guice for
injection, obviously, I have to subclass the view/presenter EventBus
to keep it distinct from
the global EventBus type. So, just wondering if anyone has jumped into
this, and what ideas/patterns have fallen out of it for you.

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

Re: Creating Eye-candy UI

Oh, and... someone with an artistic bent along with technical
knowledge could do quite well in the field of Data Visualization.
Charting is pretty much covered these days, I have GWT wrapped both
HighCharts http://www.highcharts.com/demo/ and
Raphael http://raphaeljs.com/ , but images of complex ideas are often
more comprehensible than raw data. Humans are visual
creatures. As it's been said, a picture is worth a thousand words...

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

Re: Creating Eye-candy UI

attractive UI design is more of an art than a science, but factoring
in usability is
just as important. I wish most "designers" would read this book:

http://www.amazon.com/Dont-Make-Me-Think-Usability/dp/0321344758/ref=sr_1_1?ie=UTF8&s=books&qid=1280544928&sr=8-1

something pretty is not ALWAYS easy to use. I worked with usability
experts in the human interaction labs at Citi
for quite a while. It's not an easy task to get both right. Often, eye
candy, and colors are a DISTRACTION to the
most efficient way of getting a task done. I work in major financials
in UI design, the most important thing to our
customers in presenting the DATA they need to see clearly and easily.

in 1998 I created these icons, and offered them to Sun for inclusion
in Java as a standard set

http://www.trash.net/~ffischer/admin/icons/

Sun didn't use them, but they were used in Hundreds of other apps, you
have probably seen them all over.
Sun's issue was that the colors were too "saturated", thus
distracting. Someone else picked up where I left
off and created in Incors Icon set http://www.iconexperience.com/

Color plays a more important role than you can imagine. First, 8% of
the population is estimated to be Red/Green color blind!!!
Our eyes are less sensitive to differences in shades of Blue, so this
should also be avoided. Page layout with graphical
distractions causes "use fatigue". Positioning of content is important
in workflow, so that the page doesn't cause you to "zig-zag"
eye or mouse movements. We measured these things, along with mouse
flow, color palettes, font choices - in labs with real
people, cameras capturing their every action, to be analyzed by
professionals to improve our products.

Beautiful AND efficient UI's are a wonder to behold tho. When both
parts come together, it becomes more than
software, it taps into our mind like music, and we don't need to even
think of how to use it anymore. i.e. the
Apple iPad is a great example.

On Jul 30, 5:17 pm, Jeff Chimene <jchim...@gmail.com> wrote:
> On 07/30/2010 11:39 AM, Andr Moraes wrote:
>
> > Hi,
>
> > My girlfriend works with Q&A for a software company and in the spare
> > time she like to draw, she would like to contribute to some project
> > that is looking for eye-candy user interface, does anyone knows some
> > project?
>
> > How she could contribute?
>
> > Some of her drawings can be see at:http://aeioudideias.blogspot.com/
>
> Hi:
>
> Particularly nice attention to detail, esp. the hair and feathers.
>
> I think that GWT is not a particularly good fit. I'd recommend game
> studios or avatar designers in virtual worlds. Is she interested in
> graphic design? In that case also icon and web site design. If those are
> the ideas that she's interested in, I'd update the website portfolio to
> include some graphic design elements (maybe Firefox avatars/themes, or
> KDE/Windows themes, or a mock website design)

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