Re: GWT integrated with JSF

2008-12-13 Thread olivier FRESSE
Hi will,
I work on a project where we use GWT, seam and facelet. The server is a
glassfish one.
Seam is a great framework, and I really see it as a great enhancement to
JSF.
It provides many components, including "Seam Remoting".
Seam Remoting allows a remote access to seam components,using Ajax.
And you can replace GWT Services by Remoting calls...
This allows you to easily share data between JSF/Facelet pages and GWT
modules via
Seam contexts.

see : http://docs.jboss.com/seam/2.1.1.CR2/reference/en-US/html_single/#gwt

Of course, this may mean deep modifications in your project.
If you wan to integrate a simple GWT module in a page and read hidden input
values
from the page I see 2 solutions :

JSNI : Allows you to call JScript in the page.

GWT DOM object : Allows you to manipulate DOM objects.

I'll find  a sample  and post it there :-)

O.

2008/12/13 will.dutt 

>
> i've been look around for anything that was happening with these 2
> great components. sadly the g4jsf is a dead end :(.
>
> i've got a JSF website that is now hitting the boundaries of what is
> possible in a static html refresh browser and needs GWT badly.
>
> does anyone have any good examples of integrating GWT components to
> pull information from the page its placed on and rpc the rest of the
> content it needs?
>
> i can place a GWT compenent on the page with div's which is good, but
> i'm having trouble getting information from the page (eg ID that link
> to a database). what is the command to do that?
>
> >
>

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



Re: PagingScrollTable Gen2 + How to customize CSS for a row - hovering

2008-12-13 Thread ashutosh seth
On Sun, Dec 14, 2008 at 9:44 AM, Suri  wrote:

>
> Hi all,
> I'm implementing the Gen2 PagingScrollTable from the Incubator code
> and was successfully able to figure out how to set the CSS for a row
> using the RowRenderer based on some updates i make to the table. e.g
> setting the style if the Row is in a Active/Inactive state.
>
>  However, I'm trying to get the hovering CSS to be row wide and not
> just highlighting a cell. Any ideas are appreciated.
>
>
> Thanks a bunch.
>
> Suri
> >
>

Hello Suri
I m also facing same problem...
Plase any budy help.
Thankx in advance
Ashutosh

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



MenuBar selected item

2008-12-13 Thread Riyaz Mansoor


Hi

Whenever the mouse moves over the menu bar menu items, the selected
menu item changes to whatever is under the mouse - even though I have
not clicked it.

Can we ensure that the selected item remains selected unless another
menu item is clicked?

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



PagingScrollTable Gen2 + How to customize CSS for a row - hovering

2008-12-13 Thread Suri

Hi all,
I'm implementing the Gen2 PagingScrollTable from the Incubator code
and was successfully able to figure out how to set the CSS for a row
using the RowRenderer based on some updates i make to the table. e.g
setting the style if the Row is in a Active/Inactive state.

 However, I'm trying to get the hovering CSS to be row wide and not
just highlighting a cell. Any ideas are appreciated.


Thanks a bunch.

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



Re: My GWT Ant task wont find my remote service

2008-12-13 Thread José

Thank you Eric for the tip. I'll try that and let you know if it fixes
my problem, I think it should. The way GWT shell works is rather
unusual, I had troubles getting sources from another Eclipse project
than my GWT one.

José

On 13 déc, 00:54, Eric Ayers  wrote:
> Wait, I think I know what's going on.
>
> When you run in Eclipse, it is compiling all the java source to .class
> files and putting them .  I'll bet that is not the \bin
> directory you've specified in your classpath in your ant script or
> your .bat file.
>
> To fix the problem, you need to compile the java files for your
> servlet in the server package into the \bin directory with a   new ant
> target, then have your gwt-shell target depend on it.
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Event/Listener???

2008-12-13 Thread jbroquefere

just a little problem, i WONT have to use static method...
I wanted to do something like, in awt/swt, when i fire an event in a
class, and i listen to it in an other.
Is thre a way to create listeners/event ?

On 13 déc, 21:45, jbroquefere 
wrote:
> Thank's a lot, exactly what i need.
> I just had to seek a little more
>
> On 13 déc, 19:47, "mikedshaf...@gmail.com" 
> wrote:
>
> > Take a look inside the mail application that is included with GWT.
> > It's in /samples directory.  It's a great example of exactly what
> > you're describing.
>
> > It's also here:
>
> >http://code.google.com/webtoolkit/examples/
>
> > Later,
>
> > Shaffer
>
> > On Dec 13, 9:46 am, jbroquefere 
> > wrote:
>
> > > Hello,
> > > my question is simple : How could I call an action when, for exemple,
> > > i click on a TreeNode?
> > > The situation is 2 class, a tree in the first one, an empty panel in
> > > the second one. when i clik on a node, i want to open a Window, or
> > > Panel, or Portlet, or, etc... in the empty panel (that is done by a
> > > functio in the empty panel' class). but i dont know how to do. maybe
> > > using event?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how use GWT

2008-12-13 Thread Eduardo Guardiola

i'm using jayrock at server side for .net

http://jayrock.berlios.de/

On 13 dic, 19:43, "mikedshaf...@gmail.com" 
wrote:
> Start here
>
> http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> read the docs
>
> Good luck!
>
> Later,
>
> Shaffer
>
> On Dec 13, 5:53 am, Vino  wrote:
>
> > How use Google Web Toolkit in asp.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Problem with GWT RPC call with List of DTO objects

2008-12-13 Thread Cris

Hi
My requirement is as below.
1. I have a DTO  as below with setters and getters for the same
 package com.gwt.sample.client.data

 public class TempDTO implements IsSerializable
 {
   private String name;
   private String condition;
 }

2. My RPC stuff is as below
   package com.gwt.sample.client
   public interface MyService extends RemoteService
   {
 List getNames();
   }

  package com.gwt.sample.client
  public interface MyServiceAsync
  {
void getNames(AsyncCallback async);
  }

3. Servlet is
  public class MyServlet extends RemoteServiceServlet implements
MyService
  {
public List getNames()
{
  List rs = new ArrayList();
  TempDTO dto1 = new TempDTO();
  dto1.setName("A1");
  dto1.setCondition("Set");
  rs.add(dto1);
  return rs;
}
  }

When made a request to this MyServlet I am getting strange error in
browser "Could not complete the operation due to error c00ce514
number:"
This error message is (throwable.getMessage()) is displaying in
onFailure() method.

The same code is working fine if I pass List of strings. The problem
is only with List of DTOs.

Please, can anyone help me.

Thansk,
Cris


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



Re: Event/Listener???

2008-12-13 Thread jbroquefere

Thank's a lot, exactly what i need.
I just had to seek a little more

On 13 déc, 19:47, "mikedshaf...@gmail.com" 
wrote:
> Take a look inside the mail application that is included with GWT.
> It's in /samples directory.  It's a great example of exactly what
> you're describing.
>
> It's also here:
>
> http://code.google.com/webtoolkit/examples/
>
> Later,
>
> Shaffer
>
> On Dec 13, 9:46 am, jbroquefere 
> wrote:
>
> > Hello,
> > my question is simple : How could I call an action when, for exemple,
> > i click on a TreeNode?
> > The situation is 2 class, a tree in the first one, an empty panel in
> > the second one. when i clik on a node, i want to open a Window, or
> > Panel, or Portlet, or, etc... in the empty panel (that is done by a
> > functio in the empty panel' class). but i dont know how to do. maybe
> > using event?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Browser caching GWT javascript app

2008-12-13 Thread omsrobert

On Dec 13, 6:19 am, Thomas Broyer  wrote:
> On 12 déc, 20:35, omsrobert  wrote:
>
> > We're using Tomcat 6.0.18 and GWT 1.5.3.  The browser (Firefox 3 at
> > least) is caching our GWT application. Refreshing fixes it but that's
> > not an option for production.  I would think this is a common issue.
> > How do we fix it?  Write a response header filter for Tomcat or is
> > there a better way?
>
> > Here's the HTTP headers:
>
> >http://ourserver/mywebapp/home/com.mycompany.mine.OurGWTApp.nocache.js
>
> You should configure your server to send very short expiration for
> *.nocache.* (something like 2 minutes) and very long expiration for
> *.cache.* (RFC2616 recommends 1 year to indicate a resource is
> "permanently cacheable")
>
> BTW, it all depends how your server is computing the ETag. I'd
> recommend disabling ETags altogether.

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



Better i18n support in post 1.6?

2008-12-13 Thread jbdhl

I just read the not-yet-finished roadmap for post-1.6 here:
  
http://googlewebtoolkit.blogspot.com/2008/12/whats-ahead-for-google-web-toolkit_10.html

It strikes me, that xliff support isn't mentioned despite the note
about xliff in 2.0 here:
  http://code.google.com/p/google-web-toolkit/issues/detail?id=2926&q=i18n

Does anyone know about the progress of xliff support in GWT? Java
property files has some built-in problems as the above issue #2926
describes and this is the one and only thing keeping us from switching
to GWT.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Event/Listener???

2008-12-13 Thread mikedshaf...@gmail.com

Take a look inside the mail application that is included with GWT.
It's in /samples directory.  It's a great example of exactly what
you're describing.

It's also here:

http://code.google.com/webtoolkit/examples/

Later,

Shaffer

On Dec 13, 9:46 am, jbroquefere 
wrote:
> Hello,
> my question is simple : How could I call an action when, for exemple,
> i click on a TreeNode?
> The situation is 2 class, a tree in the first one, an empty panel in
> the second one. when i clik on a node, i want to open a Window, or
> Panel, or Portlet, or, etc... in the empty panel (that is done by a
> functio in the empty panel' class). but i dont know how to do. maybe
> using event?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how use GWT

2008-12-13 Thread mikedshaf...@gmail.com

Start here

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

read the docs

Good luck!

Later,

Shaffer

On Dec 13, 5:53 am, Vino  wrote:
> How use Google Web Toolkit in asp.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How to convert numbers to strings using JavaScript?

2008-12-13 Thread reema

How to convert numbers to strings using JavaScript?
http://interviewdoor.com/questions-faqs/viewtopic.php?f=155&t=1169

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



How to make a array as a stack using JavaScript?

2008-12-13 Thread reema

How to make a array as a stack using JavaScript?
http://interviewdoor.com/questions-faqs/viewtopic.php?f=155&t=1177

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



Tree and cancelBubble

2008-12-13 Thread Link

Hello,

I have a Tree with several TreeItems in it.
TreeItem should process clicks: is should become selected, when user
clicks on it. But exactly on it, not on the "+" button. I think I
should use "cancelBubble" on "+" button click, but how can I do that?
I tried to do "Event.currentEvent().cancelBubble" in
TreeChangeListener, but it failes because of order of events.
I can do sinkEvent on treeItem.getElement()..bla-bla-bla.., but that
would prevent Tree from opening.
What should I do?

Again: I need to process any click on TreeItem, but NOT click on "+"
button.

Thanks.

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



Event/Listener???

2008-12-13 Thread jbroquefere

Hello,
my question is simple : How could I call an action when, for exemple,
i click on a TreeNode?
The situation is 2 class, a tree in the first one, an empty panel in
the second one. when i clik on a node, i want to open a Window, or
Panel, or Portlet, or, etc... in the empty panel (that is done by a
functio in the empty panel' class). but i dont know how to do. maybe
using event?

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



What is eval() in JavaScript?

2008-12-13 Thread reema


What is eval() in JavaScript?
http://interviewdoor.com/questions-faqs/viewtopic.php?f=155&t=1181

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



Re: Who's Using GWT?

2008-12-13 Thread Ngon Pham

Hi everyone,

We are using GWT at http://www.skydoor.net, one of largest travel
websites in Vietnam. This website also integrate other Google APIs
include: Maps, Earth, Youtube.

Our experience about GWT is that it is really a nice technology.
However, the local adoption is not as what we expected. Some complain
are about
- The loading time is quite slow, though we have used Gzip (file size
is 1MB, we used Tomcat Gzip to compress => ~250KB)
- The content can't be indexed by search engine
- Users still familiar with web pages, not web application

To solve these problems, we have created one more simple version
beside the GWT apps (fast, search engine friendly, familiar with most
users). You can take a look at http://www.skydoor.net/place/Viet_Nam

The most interesting feature we are looking for is that whether GWT
could have a smooth integration with AppEngine. Because this will
definitely reduce our time for not taking our own Tomcat + MySQL
server anymore.

Thanks and regards,
Ngon


On Dec 12, 10:29 pm, "Arthur Kalmenson"  wrote:
> Hi ofrias,
>
> Trabber.com looks very impressive. A very nice and clean website. Well done 
> :).
>
> A couple of questions, what date picker did you use? What did you use
> for your result grid? All custom built?
>
> Anyway, great job. Thanks for sharing.
>
> --
> Arthur Kalmenson
>
> On Fri, Dec 12, 2008 at 5:17 AM, ofrias  wrote:
>
> > We are using it at Trabber.com for the flight and hotel metasearch
> > results pages.
>
> > For us the best features are:
> > - you can forget about Javascript quirks
> > - efficiency (runtime speed, rpc speed, javascript size)
>
> > About the requested features, I know this is quite specific but we
> > would like to have a SliderBar with two knobs:
> >http://code.google.com/p/google-web-toolkit-incubator/issues/detail?i...
>
> > Thanks for the tool!

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



how use GWT

2008-12-13 Thread Vino

How use Google Web Toolkit in asp.net

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



Re: How to get GWT shell/tomcat to access perl cgi

2008-12-13 Thread jchimene

Hi,

I'll describe how I do it. Feel free to ask more questions. My
development environment is Debian.

The GWT web server is an embedded version of Tomcat. AFAIK, it can't
run Perl.

So, you'll have to provide your own web server for testing the script.

Where you go from here depends on whether or not you're using an IDE,
in that your IDE will assist in the compile/link and will provide
directories that are involved in the following steps:
1. You'll want to import your Perl script(s) into the IDE;
2. You run a compile/link step using the built-in server. You can't
invoke your external server until you've created the Javascript. This
step creates the Javascript.
3. These scripts will be copied to an output directory as part of the
GWT compile/link step along with other static files (entry HTML file,
images, CSS files, &c)
4. You copy these scripts from either the IDE internal directory or
from the output directory to your /var/www directory;
5. You tell GWT to use your server. This is a modification to the
compile script. My command line arguments are as follows:
-out www  # step three directory (mandatory)
-style detailed # makes Javascript debugging easier (optional)
-noserver # tell GWT to use an external server (mandatory)
-port 4000 # tell GWT which server port to use (optional, although
you'll have to configure your server to use the GWT default)
equine/Equine.html # URL (mandatory)
6. Test your Java code using the  GWT shell. The Java code will invoke
the external server which will then invoke your Perl script. The
external server will not run the Javascript.
7. Perform steps two, three and four then test your code using a stand-
alone browser and the URL (don't forget the port) from step 5. This
will test the Perl script and also the Javascript. If you used the -
style switch with the "detailed" or "pretty" arguements, you can
easily set breakpoints &c using Firebug or whatever Javascript
debugger IE uses.

See also 
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_HostedModeNoServer
for more information.

Step one occurs only once
Step two occurs at least once
Step three occurs automatically as part of a compile/link step
Step four only occurs each time you change the CGI script
Step five occurs only once

This isn't trivial, but it's quite doable. One annoying gotcha (in the
sense that I keep forgetting) is that after a GWT upgrade, you have to
re-run step two. For this reason, I keep two build scripts: one that
invokes the built-in server, and one that invokes the external server.

On Dec 11, 11:51 am, sssmack  wrote:
> I imagine the cgi should be put into the www area/directory but I
> don't know how to set this up.
> Please give me a link that will help me or try and describe how to do
> 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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



2 column flex table with another table inside

2008-12-13 Thread mwaschkowski

Hi,

I ran into some difficulty with alignment today with a 2 column table:

Col 1 | Col 2
x   | y
x   | inner table
x   | y

What I found is I wanted to have the inner table set to cell padding
5, but the resulting table ended up with a 5px space on left side of
inner table looking like:

Col 1 | Col 2
x   | y
x   |  inner table
x   | y

I managed to work around it, by adding a column in the middle and then
playing around with the cell spacing and sizing, but I'm figuring
there may be a better way. Anyone know of a best practice approach to
this? Please note that I do want the first column to be the width of
the largest element in the column, and I'm looking for something
relatively simple so I can consistently use it when this crops up
again.

Thanks!

Mark



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



Re: GWT event model

2008-12-13 Thread Mike

Great, thanks for the info!

On Dec 12, 3:59 am, Sumit Chandel  wrote:
> Hi Mike,
>
> As Adam mentioned, the new event system you discovered in trunk is indeed
> for GWT 1.6, following the design details explained in the link he posted
> above.
>
> The new event system should solve some of the problems in the current Event
> system (as detailed in the doc), including the use case you mentioned in
> your first post. While the upcoming GWT 1.6 event system will be quite
> different from the current model in a breaking way, the change should lead
> to drastically improved performance and ease of development.
>
> Hope that helps,
> -Sumit Chandel
>
> On Mon, Dec 8, 2008 at 11:17 AM, Adam T  wrote:
>
> > It's for the version 1.6 event system:
>
> >http://code.google.com/p/google-web-toolkit-incubator/wiki/ProposedEv...
>
> > //Adam
>
> > On 8 Dec, 17:06, Mike  wrote:
> > > Hi all,
>
> > > Today i was browsing the latest source code for GWT and i saw that
> > > many event-related classes have been deprecated. (E.g. CLickListener
> > > and SourcesClickEvents.) Is a major refactoring of the event mechanism
> > > forthcoming?
>
> > > (I was trying to figure out how the GWT event model works, i.e. i was
> > > wondering what the rock-bottom source for GWT events is and how they
> > > are `injected' into java. I discovered that GWT events are fired after
> > > handling browser events. In my opinion, this is not clearly explained
> > > in the GWT documentation. I worked an example, you can find it on my
> > > blog whatmovesmike.blogspot.com .)
>
> > > Bye, Mike
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Blogger template using GWT

2008-12-13 Thread mikedshaf...@gmail.com

Yes.
Depends what you want it to do.  Your description is a little light on
specifics.

Later,
Shaffer

ArunDhaJ wrote:
> Hi All,
> Can we develop blogger template using GWT ??? If so how can we do
> it???
>
> Thanks in Advance!!!
> ArunDhaJ
> www.arundhaj.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Synchronous or not?

2008-12-13 Thread trist

I do this steps:
I have an application with a lot of Asych RCP connections on my app.
1. I initialize Tabpanel and I try to add a Panel to Tabpanel
public void addToApplication(String name, Panel p) {
screens.put(name, p);
synchronized (centerPanel) {
centerPanel.add(p, p.getTitle()); //here execution 
stops - step 3.
int index = centerPanel.getWidgetIndex(p);
if (index >= 0) {
centerPanel.selectTab(index); //step 4.
}
}
}
2. Second response from server is an error, so I deleting all info
from browser (it means all panels from tabpanel) and showing error
message.
synchronized (centerPanel) {
this.centerPanel.clear();
}

3. When second response arrived, execution of addToApplication()
method is stopped (is on FF3 only one thread for JS, isn't?)

4. When JS responsible for showing error message is finish flow back
to step 1 and trying to execute next line in this code: int index =
centerPanel.getWidgetIndex(p); and then index = 0, next line:
centerPanel.selectTab(index); So what??

Ok, what is strange:
I guess I finish with executing a method addToApplication in step1.
but is not, there is still some values and p variable is still setted.
When comes to line: int index = centerPanel.getWidgetIndex(p); index =
0, not -1!!! like it should be... I getting IndexOutOfBounds...

General, people says that truth is in code, but now I am lost...
Please help a little!

Greetings,
Michal

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



Re: Browser caching GWT javascript app

2008-12-13 Thread Thomas Broyer


On 12 déc, 20:35, omsrobert  wrote:
> We're using Tomcat 6.0.18 and GWT 1.5.3.  The browser (Firefox 3 at
> least) is caching our GWT application. Refreshing fixes it but that's
> not an option for production.  I would think this is a common issue.
> How do we fix it?  Write a response header filter for Tomcat or is
> there a better way?
>
> Here's the HTTP headers:
>
> http://ourserver/mywebapp/home/com.mycompany.mine.OurGWTApp.nocache.js

You should configure your server to send very short expiration for
*.nocache.* (something like 2 minutes) and very long expiration for
*.cache.* (RFC2616 recommends 1 year to indicate a resource is
"permanently cacheable")

BTW, it all depends how your server is computing the ETag. I'd
recommend disabling ETags altogether.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Unsaved Changes Pop Up

2008-12-13 Thread Cuetumayu

Yep, I have just found it deep in my group's code. Thank for showing
me the light!

Carlos

On Dec 12, 4:15 pm, "Arthur Kalmenson"  wrote:
> Hi Carlos,
>
> That's not behavior that's in GWT out of the box. This sounds like a
> customization that your team made.
>
> --
> Arthur Kalmenson
>
> On Thu, Dec 11, 2008 at 6:42 AM, Cuetumayu  wrote:
>
> > Hello,
>
> > I have developed a small module on GWT that is embedded in a
> > previously existing Struts based Web application. I would be
> > interested in knowing if there is a way to disable the pop up that is
> > displayed every time I leave the GWT module which says:
>
> > "Are you sure you want to navigate away from this page?"
>
> > "WARNING: All unsaved changes will be lost."
>
> > These it is really annoying for the user of my application since he is
> > always changing from this GWT module to any other in the application
> > in order to check some data in a grid and a list.
>
> > Thanks in advance,
>
> > Carlos
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---