Re: Floating label

2010-04-23 Thread Raphaël Brugier
How is your label added to the page ?
You  should try to display your label inside a popupPanel.

Raphaël.

On 21 avr, 13:37, Yogesh  wrote:
> Hi,
> I want to display a message "Loading.. Please wait..." when user
> clicks on any button.
> I have a label at the top-center of the page. But, when user scolls
> down on the page, that label is not displayed Hence, I want to
> implement a floating label that will be displayed at the top of the
> page irrespective of whether user has scrolled down or is at the top
> of the page.
>
> any ideas?
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT + app engine: how do I avoid double-work?

2010-04-23 Thread Raphaël Brugier
Since GWT 2.0 classes with JDO or JPA annations can be serialized over
gwt-rpc
see 
http://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes

On 23 avr, 14:46, Christian Goudreau 
wrote:
> Yes they use annotations, but there's no enhancement process like in JDO, so
> you can reuse your model without any problem. I use Twig for my projects
> with GWT and It's just wonderful !
>
> Twig-Persist is optimised for AppStore Datastore, so if there's any draw
> back, the come directly from the limitation of the datastore. I used
> Objectify before migrating to Twig, I don't really know wich one is better,
> but Twig is simplier.
>
> I mean: why would anyone use anything else?
>
> The answer to this question is simple, because they don't know about
> Objectify, Twig or SimpleDS yet. Or want to connect they're app to another
> datastore than the one in AppEngine.
>
> Christian
>
>
>
> On Fri, Apr 23, 2010 at 7:42 AM, jbdhl  wrote:
> > Interesting! But Twig-Persist and Objectify both uses their own
> > annotations too. Doesn't that prevent me to re-use the objects on the
> > client side in GWT?
>
> > Another thing: Twig-Persist seems to address all the short-comings of
> > Objectify, JDO and SimpleDS. Doesn't Twig-Persist have any draw-backs?
> > I mean: why would anyone use anything else? It seems that there are no
> > real advantages with e.g. JDO? I'm confused.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Developer Plugin is not found in Firefox

2010-05-29 Thread Raphaël Brugier
Hi,

I am sorry but this solution didn't work for me.

I didn't understand if the symlink to create is from libnspr4.so.0d to
libnspr4.so as mentionned there
or from libnspr4.so.0d to libnspr4.so as mentionned in this thread :
https://groups.google.com/group/google-web-toolkit/msg/4695e012cb9001e0

Here is what a ls -la /usr/lib64 give :

...
lrwxrwxrwx  1 root root   14 29 mai   19:03 libnspr4.so ->
libnspr4.so.0d
lrwxrwxrwx  1 root root   20 29 mai   18:38 libnspr4.so.0d -> /usr/
lib/libnspr4.so
...

I am running on Archlinux 64 bits an Firefox 3.6.3

Thanks in advance.

On 28 avr, 18:38, Lars Erik Karlsen  wrote:
> Thanks! This worked for me too.
>
> Created the symlink first but no change.
> After deleting compreg.dat and a restart of firefox the plugin
> registeret correctly.
>
> - lek
>
> On 26/04/10 00:56, Andrew Sutherland wrote:
>
>
>
> > I was experiencing a failure to load the plugin too using Firefox
> > 3.6.3 on Fedora Core x86_64 (installed from rawhide)...
>
> > I deleted the compreg.dat from my firefox profile to force Firefox to
> > re-initialize all JS components so that any dynamic linking problems
> > would be brought to the fore and ran with LD_DEBUG.  This revealed
> > that the GWT library has a dependency on "libnspr4.so.0d" that the
> > linker was unable to resolve.
>
> > I am presuming the library naming is a build artifact appropriate only
> > on Ubuntu, as the only .so.0d's on my system live in /opt/google/
> > chrome and just point at the standard /lib64 .so's.
>
> > Creating a symlink for the file in my /usr/lib64 neatly resolves the
> > problem for me:
> > cd /usr/lib64
> > sudo ln -s libnspr4.so libnspr4.so.0d
>
> > Andrew
>
> > On Apr 22, 2:53 pm, abustany  wrote:
>
> >> I also tried with the Firefoxpluginfrom GWT trunk, and got the same
> >> result :/
>
> >> On Apr 20, 10:25 am, Chris Conroy  wrote:
>
> >>> For those of you still experiencing this issue, can you try checking that
> >>> your problem persists if you create a new GWT application (e.g. just run 
> >>> the
> >>> sample app from GPE)?
>
> >>> If the problem is constrained to your existing applications, try checking
> >>> that your war/WEB-INF/lib/gwt-servlet.jar file is up to date.
>
> >>> On Sat, Apr 17, 2010 at 11:59 PM, Matthew 
> >>> Williswrote:
>
>  I am also getting this behavior.  Thepluginacts as if it weren't
>  installed.
>
>  Did you figure it out, Michel?
>
>  On Apr 9, 11:35 pm, Michel Alexandre Salim
>    wrote:
>
> > On Apr 2, 7:43 pm, Christopher Conroy  wrote:>  On
>
>  Fri, Apr 2, 2010 at 7:38 AM, na...@hu.inter.net
>  wrote:
>
> >>> I see 'Google Web Toolkit DeveloperPluginforFirefox1.0.7511' in
> >>> Firefoxin 'Tools/Add-ons/Extensions', but if I start 'http://
> >>> 127.0.0.1:/MyWebApp.html?gwt.codesvr=127.0.0.1:9997' I got
>
>  always
>
> >>> the message 'Development Mode requires the Google Web Toolkit
> >>> DeveloperPlugin' andFirefoxwants to download thepluginagain.
>
> >>> What can be wrong?
>
> >> Do you perhaps have theplugininstalled but disabled?
>
> > Per my previous message (still pending moderation), here are my
> > findings:
>
> > - Development mode does not work in Firefox 3.6.3:
> >    -- from the system-provided RPM as well as a manual installation of
> > Firefox from mozilla.org
> >    -- using Eclipse or using the webAppCreator script
>
> > - The war target works fine on the same Firefox installation, but this
> > is really unsuitable during development as the compile-deploy-test
> > cycle is too long
>
> > Thanks,
>
> > --
> > Michel Alexandre Salim
>
>  --
>  You received this message because you are subscribed to the Google Groups
>  "Google Web Toolkit" group.
>  To post to this group, send email to google-web-tool...@googlegroups.com.
>  To unsubscribe from this group, send email to
>  google-web-toolkit+unsubscr...@googlegroups.com   cr...@googlegroups.com>
>  .
>  For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >>> --
> >>> Chris Conroy
> >>> Software Engineer
> >>> Google, Atlanta
>
> >>> --
> >>> You received this message because you are subscribed to the Google Groups 
> >>> "Google Web Toolkit" group.
> >>> To post to this group, send email to google-web-tool...@googlegroups.com.
> >>> To unsubscribe from this group, send email to 
> >>> google-web-toolkit+unsubscr...@googlegroups.com.
> >>> For more options, visit this group 
> >>> 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-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to 
> >> google-web-toolkit+unsubscr...@googlegroups.com.
> >> For more options, visit this group 
> >> athttp://gro

Re: GWT server design

2010-07-12 Thread Raphaël Brugier
Gwt is client side, so it's just totally depends on how many numbers
of request you'll do from your gwt application to your server.
You can even have no request at all, just the first download of the
application.


On 9 juil, 20:45, Xsuperstore  wrote:
> Hello.
>
> I am new in the GWT word, I have some questions about server resource
> design.
>
> Estimate of CPU & MEN compared to LAMP in Linux?
>
> I mean, for high traffic sites (2-5) users/day the is some
> estimate/recomended hardware resources design?
>
> 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: enum serialization

2010-07-28 Thread Raphaël Brugier
The serialization of inner enum works for me,

Be sure to have a default constructor in your enum.
Maybe also non-final fields.

Does your class is on a serializable package, usually the client or
shared ?

On 28 juil, 06:35, Mike Heath  wrote:
> All enum extend java.lang.Enum which implements java.io.Serializable so
> explicitly implementing Serializable shouldn't make a difference.
>
>
>
> On Tue, Jul 27, 2010 at 9:15 AM, Prashant  wrote:
> > try
>
> > public enum Status *implements **java.io.**Serializable* {
> >  ACTIVE, INACTIVE, NA
> > }
>
> > --
> > Prashant
> >www.claymus.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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: Grouping Table Implementation

2011-03-14 Thread Raphaël Brugier
Yes, we did a similar thing just last week.
Just use cellTable.setRowSpan(row, colum, depth) on the cell you want to 
group and then delete the cell on the next row using 
cellTable.deleteCell(row, cell).
This is just the normal way to group cells in a html table but using the 
cellTable api.

-- 
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: CellTable odd/even row styles

2011-03-16 Thread Raphaël Brugier
The good way to override the style of a cellTable is to pass a Ressource to 
the constructor.
See the Expense 
example

-Raphaël.

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



Styling Cell individually in CellTable

2011-03-23 Thread Raphaël Brugier
Hi,

I've got a use case with the CellTable where a cell should be rendered with 
a different background color depending on the cell content. I've also some 
TD with a rowspan > 1. 
I've implemented an AbstractCell to set a style depending on the status 
(short version) :

public class StatusCell extends AbstractCell {
@Override
public void render(final Status status, final Object key, final 
SafeHtmlBuilder sb) {
String cellStyle;
if (status == Status.OK) {
cellStyle = "greenCell";
} else {
cellStyle = "redCell";
}
sb.appendHtmlConstant("");
sb.appendEscaped(status.toString());
sb.appendHtmlConstant("");
}
}

Here is the result : 




Product
Status






car



OK





car




car



KO






But the point is that when the cell is rendered by the CellTable view, it 
encapsulates it inside an other DIV and then put it in the TD. Then my Div 
where I have applied a style will not have the max height of the TD so the 
background color will not be fully applied to the TD. (The green of the OK 
cell does not extend to the TD)


I got two ideas : 
1/ Use css to extends the DIV to be the height of the TD. But setting 
height: 100% did not work.
2/ Find a way to set manually a style to the . But there is nothing on 
the CellTable api to access the TD after they have been rendered.

Is anybody have encountered this use case or have a solution please ?

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



Re: CellTable Grouping

2011-04-06 Thread Raphaël Brugier
By grouping you mean set a rowspan ?

You can set the rowspan of cell using the cellTable api : 

public void setRowSpan(final int row, final int column, final int 
rowSpan) {

cellTable.getRowElement(row).getCells().getItem(column).setRowSpan(rowSpan);
}

-- 
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: Code Split

2011-08-26 Thread Raphaël Brugier
Hi,

To get information on how your code is split you can use the soyc (story of 
your compile) flag, see:
http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html

To get information on when your splitted code is loaded, use the speed 
tracer plugin for chrome:
http://code.google.com/webtoolkit/speedtracer/index.html


Regards,
Raphaël Brugier.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/eJAUT95yEucJ.
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: Sb. uses the Unit Test pattern w/ GWT?

2011-09-13 Thread Raphaël Brugier
Google I/O 2010 and 2011 gwt session are also definitely a must see If you 
want to learn how to test your gwt code

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/RO99BikrUL0J.
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.