Re: Which use for CSS?

2009-08-18 Thread silkcom

I have a question similar to this one?  Has the GWT team ever
considered adding a CSS compiler into GWT?  Example create classes
and such in Java that help with the layout.  Offering as much
flexibility as possible as CSS does, but then making the CSS browser
independant as well as the JS.  In this way the CSS can be compiled
with the rest of the page, but we can be sure that (to the best of
googles ability) our pages will look identical regardless of browser.

has this been discussed/considered?

On Jul 27, 9:12 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
 Using horizontal and vertical panels is the prefered way of realizing
 layouts in GWT. You shouldn't try to implement your layout from scrach. But
 this doesn't mean, that there is no need for CSS in GWT.

 GWT should also prevent you from many browser differences, but that doesn't
 mean, that it will do allways.

 On Mon, Jul 27, 2009 at 2:33 PM, Mehdi Rabah mehdi.ra...@gmail.com wrote:
  Hi,

  Thanks for your answer.

  So you're saying even when using GWT, a web developper have to fight with
  the browser differences?
  It seems like the themes used in GWT only change colors, which is not the
  main problem (which is positionning)

  For my layouts I use tables, meaning gwt horizontal and vertical panel,
  with setCellAlignment method.

  Regards

  On Mon, Jul 27, 2009 at 7:19 AM, Jan Ehrhardt jan.ehrha...@googlemail.com
   wrote:

  Hi,
  GWT apps are web apps and they're running inside a browser, thus it's a
  good choice to use CSS. If you look to the Showcase app (
 http://gwt.google.comsqf/samples/Showcase/Showcase.htmlhttp://gwt.google.com/samples/Showcase/Showcase.html),
  it's using different themes and the switch is done by changing the CSS 
  file,
  which provides colors, borders, etc. There are lots of other examples, like
  creating a Dialog, which lays over the rest of your app.
  The differences of CSS in different browsers is a common problem, but most
  webdevelopers know how to work around. In GWT this also means, that defered
  binding allows to create different implementations for different browsers.
  Another point, you should care about, is, how do you create margin or
  padding without CSS? In other GUI frameworks like SWT, you've got layout
  constraints, that can be applied to a component, but in GWT, you don't 
  have.
  CSS is the prefered way to do.

  Regards
  Jan Ehrhardt

  On Sat, Jul 25, 2009 at 11:25 PM, Mehdi Rabah mehdi.ra...@gmail.comwrote:

  Hi,

  I'm trying to use CSS for the layout of my website (for now, the
  layout is made with layouts). The worst problem I've seen is that the
  layout is not the same on different browsers.

  So, since the GWT philosophy is to abstract the development from the
  browser, I was asking myself if the GWT team recommend the use of
  CSS?

  Does GWT developpers really use CSS? For what use? (IMHO positionning
  with CSS really suck, the margin: auto to center a div doesn't work
  on IE8)

--~--~-~--~~~---~--~~
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: Which use for CSS?

2009-08-18 Thread brian richards
HI Guys,

I am new to Java and everyday i am seing the discussions and i have a small
doubt that please give me the simple View about GWT and let me know the full
form of GWT.




On Tue, Aug 18, 2009 at 3:59 PM, silkcom silk...@gmail.com wrote:


 I have a question similar to this one?  Has the GWT team ever
 considered adding a CSS compiler into GWT?  Example create classes
 and such in Java that help with the layout.  Offering as much
 flexibility as possible as CSS does, but then making the CSS browser
 independant as well as the JS.  In this way the CSS can be compiled
 with the rest of the page, but we can be sure that (to the best of
 googles ability) our pages will look identical regardless of browser.

 has this been discussed/considered?

 On Jul 27, 9:12 am, Jan Ehrhardt jan.ehrha...@googlemail.com wrote:
  Using horizontal and vertical panels is the prefered way of realizing
  layouts in GWT. You shouldn't try to implement your layout from scrach.
 But
  this doesn't mean, that there is no need for CSS in GWT.
 
  GWT should also prevent you from many browser differences, but that
 doesn't
  mean, that it will do allways.
 
  On Mon, Jul 27, 2009 at 2:33 PM, Mehdi Rabah mehdi.ra...@gmail.com
 wrote:
   Hi,
 
   Thanks for your answer.
 
   So you're saying even when using GWT, a web developper have to fight
 with
   the browser differences?
   It seems like the themes used in GWT only change colors, which is not
 the
   main problem (which is positionning)
 
   For my layouts I use tables, meaning gwt horizontal and vertical panel,
   with setCellAlignment method.
 
   Regards
 
   On Mon, Jul 27, 2009 at 7:19 AM, Jan Ehrhardt 
 jan.ehrha...@googlemail.com
wrote:
 
   Hi,
   GWT apps are web apps and they're running inside a browser, thus it's
 a
   good choice to use CSS. If you look to the Showcase app (
  http://gwt.google.comsqf/samples/Showcase/Showcase.html
 http://gwt.google.com/samples/Showcase/Showcase.html),
   it's using different themes and the switch is done by changing the CSS
 file,
   which provides colors, borders, etc. There are lots of other examples,
 like
   creating a Dialog, which lays over the rest of your app.
   The differences of CSS in different browsers is a common problem, but
 most
   webdevelopers know how to work around. In GWT this also means, that
 defered
   binding allows to create different implementations for different
 browsers.
   Another point, you should care about, is, how do you create margin or
   padding without CSS? In other GUI frameworks like SWT, you've got
 layout
   constraints, that can be applied to a component, but in GWT, you don't
 have.
   CSS is the prefered way to do.
 
   Regards
   Jan Ehrhardt
 
   On Sat, Jul 25, 2009 at 11:25 PM, Mehdi Rabah mehdi.ra...@gmail.com
 wrote:
 
   Hi,
 
   I'm trying to use CSS for the layout of my website (for now, the
   layout is made with layouts). The worst problem I've seen is that the
   layout is not the same on different browsers.
 
   So, since the GWT philosophy is to abstract the development from the
   browser, I was asking myself if the GWT team recommend the use of
   CSS?
 
   Does GWT developpers really use CSS? For what use? (IMHO positionning
   with CSS really suck, the margin: auto to center a div doesn't work
   on IE8)

 


--~--~-~--~~~---~--~~
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: Which use for CSS?

2009-08-18 Thread Thomas Broyer



On 18 août, 21:59, silkcom silk...@gmail.com wrote:
 I have a question similar to this one?  Has the GWT team ever
 considered adding a CSS compiler into GWT?  Example create classes
 and such in Java that help with the layout.  Offering as much
 flexibility as possible as CSS does, but then making the CSS browser
 independant as well as the JS.  In this way the CSS can be compiled
 with the rest of the page, but we can be sure that (to the best of
 googles ability) our pages will look identical regardless of browser.

 has this been discussed/considered?

Have a look at
http://code.google.com/p/google-web-toolkit/wiki/LayoutDesign
and http://code.google.com/p/google-web-toolkit/wiki/CssResource

--~--~-~--~~~---~--~~
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: Which use for CSS?

2009-07-27 Thread Jan Ehrhardt
Using horizontal and vertical panels is the prefered way of realizing
layouts in GWT. You shouldn't try to implement your layout from scrach. But
this doesn't mean, that there is no need for CSS in GWT.

GWT should also prevent you from many browser differences, but that doesn't
mean, that it will do allways.

On Mon, Jul 27, 2009 at 2:33 PM, Mehdi Rabah mehdi.ra...@gmail.com wrote:

 Hi,

 Thanks for your answer.

 So you're saying even when using GWT, a web developper have to fight with
 the browser differences?
 It seems like the themes used in GWT only change colors, which is not the
 main problem (which is positionning)

 For my layouts I use tables, meaning gwt horizontal and vertical panel,
 with setCellAlignment method.

 Regards

 On Mon, Jul 27, 2009 at 7:19 AM, Jan Ehrhardt jan.ehrha...@googlemail.com
  wrote:

 Hi,
 GWT apps are web apps and they're running inside a browser, thus it's a
 good choice to use CSS. If you look to the Showcase app (
 http://gwt.google.comsqf/samples/Showcase/Showcase.htmlhttp://gwt.google.com/samples/Showcase/Showcase.html),
 it's using different themes and the switch is done by changing the CSS file,
 which provides colors, borders, etc. There are lots of other examples, like
 creating a Dialog, which lays over the rest of your app.
 The differences of CSS in different browsers is a common problem, but most
 webdevelopers know how to work around. In GWT this also means, that defered
 binding allows to create different implementations for different browsers.
 Another point, you should care about, is, how do you create margin or
 padding without CSS? In other GUI frameworks like SWT, you've got layout
 constraints, that can be applied to a component, but in GWT, you don't have.
 CSS is the prefered way to do.

 Regards
 Jan Ehrhardt

 On Sat, Jul 25, 2009 at 11:25 PM, Mehdi Rabah mehdi.ra...@gmail.comwrote:


 Hi,

 I'm trying to use CSS for the layout of my website (for now, the
 layout is made with layouts). The worst problem I've seen is that the
 layout is not the same on different browsers.

 So, since the GWT philosophy is to abstract the development from the
 browser, I was asking myself if the GWT team recommend the use of
 CSS?

 Does GWT developpers really use CSS? For what use? (IMHO positionning
 with CSS really suck, the margin: auto to center a div doesn't work
 on IE8)






 


--~--~-~--~~~---~--~~
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: Which use for CSS?

2009-07-26 Thread Jan Ehrhardt
Hi,
GWT apps are web apps and they're running inside a browser, thus it's a good
choice to use CSS. If you look to the Showcase app (
http://gwt.google.com/samples/Showcase/Showcase.html), it's using different
themes and the switch is done by changing the CSS file, which provides
colors, borders, etc. There are lots of other examples, like creating a
Dialog, which lays over the rest of your app.
The differences of CSS in different browsers is a common problem, but most
webdevelopers know how to work around. In GWT this also means, that defered
binding allows to create different implementations for different browsers.
Another point, you should care about, is, how do you create margin or
padding without CSS? In other GUI frameworks like SWT, you've got layout
constraints, that can be applied to a component, but in GWT, you don't have.
CSS is the prefered way to do.

Regards
Jan Ehrhardt

On Sat, Jul 25, 2009 at 11:25 PM, Mehdi Rabah mehdi.ra...@gmail.com wrote:


 Hi,

 I'm trying to use CSS for the layout of my website (for now, the
 layout is made with layouts). The worst problem I've seen is that the
 layout is not the same on different browsers.

 So, since the GWT philosophy is to abstract the development from the
 browser, I was asking myself if the GWT team recommend the use of
 CSS?

 Does GWT developpers really use CSS? For what use? (IMHO positionning
 with CSS really suck, the margin: auto to center a div doesn't work
 on IE8)
 


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



Which use for CSS?

2009-07-25 Thread Mehdi Rabah

Hi,

I'm trying to use CSS for the layout of my website (for now, the
layout is made with layouts). The worst problem I've seen is that the
layout is not the same on different browsers.

So, since the GWT philosophy is to abstract the development from the
browser, I was asking myself if the GWT team recommend the use of
CSS?

Does GWT developpers really use CSS? For what use? (IMHO positionning
with CSS really suck, the margin: auto to center a div doesn't work
on IE8)
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---