RadioButtonGroup proposal

2010-04-15 Thread markovuksanovic
I think it would be nice to have a RadioButtonGroup object which would
hold RadioButtons belonging to the same group. It would also implement
a getSelected methold which would return currently selected
RadioButton.

An example of the code would be sth like.


FormPanel fp = new FormPanel();
RadioButtonGroup rbg = new RadioButtonGroup();

RadioButton rb1 = new RadioButton("group1", "button1");
RadioButton rb1 = new RadioButton("group2", "button2");
RadioButton rb1 = new RadioButton("group3", "button3");

rbg.add(rb1, rb2, rb3);
fp.add(rbg);

Window.alert(rbg.getSelected().getText())

or using UiBinder sth like:

  



  


Comments?

-- 
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: SplitPanelLayout question

2010-04-15 Thread mkkm...@gmail.com
Hi,

If you are using Hyperlink you need to setup History.
You need to assiciate a token to each content you want to display and
implement
History.addValueChangeHandler(xx) method to do what you want according
to the token.

Otherwise you can a Label with a clickHandler and append the content
to the center.

Michael

On 15 avr, 19:55, Vik  wrote:
> Hie
>
> I created 2 HyperLinks in the west region and depending upon clicking link 1
> or link 2 i want load different
> contents in the center region.
>
> How to do that?
>
> Thankx and Regards
>
> Vik
> Founderwww.sakshum.comwww.sakshum.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-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.



TextArea Cursor Coordinates

2010-04-15 Thread Allahbaksh
Hi,
I want to get the coordinates of the Cursor position in TextArea so
that I can show the popup appropriately. Please find the similar
implementation of  http://enobrev.info/cursor/.
Is there any easy and better way to do the same.
Warm Regards,
Allahbaksh

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



No ability to scroll

2010-04-15 Thread Jonny
When my page goes vertically beyond the size of the window I don't
have the ability to scroll.  The info is being painted (i can select
all and paste it in a word processor and see the offscreen elements)
but for some reason whether in FF or safari there is no vertical
scrollbar in the browser.  To make matters worse, the main example
app, mail from GWT purposefully disables scrolling.

Please help?  Am I missing something simple?  Thx.

-- 
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: Rounded Corners with UIBinder

2010-04-15 Thread Jonny
So given that CSS is used for the "flesh" what to you anchor it to?
The layout panels?  With images as backgrounds (so you'd need 4
different anchors for 4 rounded corners?)?  Or do you use something
like an HTMLPanel with several "divs" to outline around layout panels?

I feel more and more like my code is becoming a "hodge-podge" of
different markups and losing some of the "benefits" of the simplicity
of UIBinder.  It seems like I'm missing a more elegant solution.
Anyone?

On Apr 15, 8:36 pm, dparish  wrote:
> If gwt has a failing it's making the app look well rounded. Ok bad
> pun.  The uibinder makes you think you are sculpting  a ui. You really
> aren't. You are writing a skeleton that needs CSS for the flesh.
>
> The client side generated HTML is complex which makes the task harder.
> It's worth it considering the power and flexibility gwt gives you
>
> -Dave
>
> On Apr 15, 7:14 pm, Jonny  wrote:
>
>
>
>
>
> > Despite all my searching (and mostly because of the limited
> > information available regarding proper use of UIBinder) I cannot find
> > a simple, elegant way to use UIBinder with rounded corners.  The
> > Google I have a vary simple, one page business card site with the with
> > the outline of the page as a rounded corner pod.  There are a few pods
> > within that, one of which I want to use as the new TabLayoutPanel
> > (requiring strict browser support).  I considered using the "older"
> > DecoratorPanel but that requires quirks mode.  Is there an equivalent
> > for the new "layout" structures?  My original code just laid out css
> > in the default html page and I anchored all my widgets using the
> > RootPanel.get('id') operation but that does not work with
> > RootLayoutPanel.get(), thereby limiting my ability to use the new
> > TabLayoutPanel.
>
> > I'm considering avoiding the new UIBinder features altogether, at
> > least until more tutorials are available but I have to say I'm am very
> > tempted
> > I hope this all makes some sense.  I'd be happy to clarify as this
> > "simple" webpage project in GWT has turned into much more of a design
> > barrier than anything else.
>
> > --
> > 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://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: Rounded Corners with UIBinder

2010-04-15 Thread Jonny
Although I can't wait for css3 to be widespread, too many people still
use IE.  I'd be eliminating 50% or more of potential clients.  I did
look into that though. Thanks for the pointer.

On Apr 15, 7:30 pm, Katharina Probst  wrote:
> It's not the best, because it only works on Mozilla and Firefox, but the
> simplest might be the CSS3 property border-radius.  You'd want to use
> "\-moz-border-radius" and "\-webkit-border-radius" (note the escaping).
>
> kathrin
>
>
>
>
>
> On Thu, Apr 15, 2010 at 8:14 PM, Jonny  wrote:
> > Despite all my searching (and mostly because of the limited
> > information available regarding proper use of UIBinder) I cannot find
> > a simple, elegant way to use UIBinder with rounded corners.  The
> > Google I have a vary simple, one page business card site with the with
> > the outline of the page as a rounded corner pod.  There are a few pods
> > within that, one of which I want to use as the new TabLayoutPanel
> > (requiring strict browser support).  I considered using the "older"
> > DecoratorPanel but that requires quirks mode.  Is there an equivalent
> > for the new "layout" structures?  My original code just laid out css
> > in the default html page and I anchored all my widgets using the
> > RootPanel.get('id') operation but that does not work with
> > RootLayoutPanel.get(), thereby limiting my ability to use the new
> > TabLayoutPanel.
>
> > I'm considering avoiding the new UIBinder features altogether, at
> > least until more tutorials are available but I have to say I'm am very
> > tempted
> > I hope this all makes some sense.  I'd be happy to clarify as this
> > "simple" webpage project in GWT has turned into much more of a design
> > barrier than anything else.
>
> > --
> > 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 
> 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.



ScrollPanel not displaying contents in nested DockLayoutPanels

2010-04-15 Thread rmmcgr
Hi,

I have problem with a ScrollPanel not displaying its contents that is
buried a few layers deep in some layout panels (all done using
UiBinder).  I have:

RootLayoutPanel
  DockLayoutPanel (for application layout)
TabLayoutPanel (in the center area)
  tab
Custom View, implementing ResizeComposite
  DockLayoutPanel
ScrollPanel (in the west area)
  FlexGrid (for the list of items)
FlowLayoutPanel (in the center, for the detail of a
particular item)
  Form controls

Problem with the above is that the list in the scroll panel is not
showing.  FireBug is showing me that the data gets into the page, but
is not visible.  If I swap out the ScrollPanel for, say, a FlowPlanel
it appears.

What is the trick to getting this all to work?

Thanks for any help,
Richard

-- 
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: Rounded Corners with UIBinder

2010-04-15 Thread dparish

If gwt has a failing it's making the app look well rounded. Ok bad
pun.  The uibinder makes you think you are sculpting  a ui. You really
aren't. You are writing a skeleton that needs CSS for the flesh.

The client side generated HTML is complex which makes the task harder.
It's worth it considering the power and flexibility gwt gives you

-Dave

On Apr 15, 7:14 pm, Jonny  wrote:
> Despite all my searching (and mostly because of the limited
> information available regarding proper use of UIBinder) I cannot find
> a simple, elegant way to use UIBinder with rounded corners.  The
> Google I have a vary simple, one page business card site with the with
> the outline of the page as a rounded corner pod.  There are a few pods
> within that, one of which I want to use as the new TabLayoutPanel
> (requiring strict browser support).  I considered using the "older"
> DecoratorPanel but that requires quirks mode.  Is there an equivalent
> for the new "layout" structures?  My original code just laid out css
> in the default html page and I anchored all my widgets using the
> RootPanel.get('id') operation but that does not work with
> RootLayoutPanel.get(), thereby limiting my ability to use the new
> TabLayoutPanel.
>
> I'm considering avoiding the new UIBinder features altogether, at
> least until more tutorials are available but I have to say I'm am very
> tempted
> I hope this all makes some sense.  I'd be happy to clarify as this
> "simple" webpage project in GWT has turned into much more of a design
> barrier than anything else.
>
> --
> 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.



Compile / Unit Test error (java.lang.OutOfMemoryError: Java heap space)

2010-04-15 Thread Brandon Turner
I want to contribute to GWT so I followed the directions on the wiki.  I can
compile GWT fine using 'ant', but when I do 'ant test' I get the following
error:

compile.tests:
[mkdir] Created dir:
/Users/brandonturner/gwt/trunk/build/out/dev/bin-test
[gwt.javac] Compiling 1100 source files to
/Users/brandonturner/gwt/trunk/build/out/dev/bin-test
[gwt.javac]
[gwt.javac]
[gwt.javac] The system is out of resources.
[gwt.javac] Consult the following stack trace for details.
[gwt.javac] java.lang.OutOfMemoryError: Java heap space
[gwt.javac] at
com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:609)
[gwt.javac] at
com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:691)
[gwt.javac] at
com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
[gwt.javac] at
com.sun.tools.javac.comp.MemberEnter.signature(MemberEnter.java:350)
[gwt.javac] at
com.sun.tools.javac.comp.MemberEnter.visitMethodDef(MemberEnter.java:560)
[gwt.javac] at
com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:639)
[gwt.javac] at
com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
[gwt.javac] at
com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399)
[gwt.javac] at
com.sun.tools.javac.comp.MemberEnter.finishClass(MemberEnter.java:410)
[gwt.javac] at
com.sun.tools.javac.comp.MemberEnter.finish(MemberEnter.java:1000)
[gwt.javac] at
com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:967)
[gwt.javac] at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
[gwt.javac] at
com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:758)
[gwt.javac] at com.sun.tools.javac.comp.Enter.complete(Enter.java:451)
[gwt.javac] at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
[gwt.javac] at
com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
[gwt.javac] at
com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
[gwt.javac] at com.sun.tools.javac.main.Main.compile(Main.java:353)
[gwt.javac] at com.sun.tools.javac.main.Main.compile(Main.java:279)
[gwt.javac] at com.sun.tools.javac.main.Main.compile(Main.java:270)
[gwt.javac] at com.sun.tools.javac.Main.compile(Main.java:69)
[gwt.javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[gwt.javac] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[gwt.javac] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[gwt.javac] at java.lang.reflect.Method.invoke(Method.java:597)
[gwt.javac] at
org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)
[gwt.javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:997)
[gwt.javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:820)
[gwt.javac] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[gwt.javac] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
[gwt.javac] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[gwt.javac] at java.lang.reflect.Method.invoke(Method.java:597)

BUILD FAILED
/Users/brandonturner/gwt/trunk/build.xml:130: The following error occurred
while executing this line:
/Users/brandonturner/gwt/trunk/build.xml:27: The following error occurred
while executing this line:
/Users/brandonturner/gwt/trunk/build.xml:61: The following error occurred
while executing this line:
/Users/brandonturner/gwt/trunk/dev/build.xml:22: Compile failed; see the
compiler error output for details.


I looked in the trunk/build.xml to see if there was some where I can bump up
the memory, but couldn't find it.  I have seen the error before compiling my
own project and increasing the memory using the -Xmx fixed it.

*Is there a log somewhere with more details of the build?  Or is there
somewhere I can increase the memory for the compiler?*

-Brandon

-- 
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: Rounded Corners with UIBinder

2010-04-15 Thread Katharina Probst
It's not the best, because it only works on Mozilla and Firefox, but the
simplest might be the CSS3 property border-radius.  You'd want to use
"\-moz-border-radius" and "\-webkit-border-radius" (note the escaping).

kathrin

On Thu, Apr 15, 2010 at 8:14 PM, Jonny  wrote:

> Despite all my searching (and mostly because of the limited
> information available regarding proper use of UIBinder) I cannot find
> a simple, elegant way to use UIBinder with rounded corners.  The
> Google I have a vary simple, one page business card site with the with
> the outline of the page as a rounded corner pod.  There are a few pods
> within that, one of which I want to use as the new TabLayoutPanel
> (requiring strict browser support).  I considered using the "older"
> DecoratorPanel but that requires quirks mode.  Is there an equivalent
> for the new "layout" structures?  My original code just laid out css
> in the default html page and I anchored all my widgets using the
> RootPanel.get('id') operation but that does not work with
> RootLayoutPanel.get(), thereby limiting my ability to use the new
> TabLayoutPanel.
>
> I'm considering avoiding the new UIBinder features altogether, at
> least until more tutorials are available but I have to say I'm am very
> tempted
> I hope this all makes some sense.  I'd be happy to clarify as this
> "simple" webpage project in GWT has turned into much more of a design
> barrier than anything else.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GreetingService, GreetingServiceAsync, after deleting: errors

2010-04-15 Thread Katharina Probst
Well, have you deleted all references to these files in your
TestConnectorsGwt?  Have you deleted the class GreetingServiceImpl on the
server?  You probably also want to take it out of your web.xml file (that's
in your war directory), although it should run fine if you have all other
reference removed.

kathrin


On Thu, Apr 15, 2010 at 3:38 PM, gafgaf  wrote:

> Hi,
>
> after i have created a GWT-Project, when i delete:
> GreetingService, GreetingServiceAsync from the package e.g.
> de.myproject.testconnectorsgwt.client i got errors when i try to Run
> As or Debug Aa Web Application.
>
> WHy is that so??? I'm beginner but i know so far, that i'm not using
> these classes!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT MVP

2010-04-15 Thread Katharina Probst
Not sure what you're looking for, but there's a pretty new document here:

http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html



On Thu, Apr 15, 2010 at 7:23 AM, Sabbir  wrote:

> i am having quite a difficulty in understanding MVP in gwt. Can
> anybody suggest a good example easy one
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT Problem

2010-04-15 Thread Katharina Probst
I'm not sure I follow why you have to get it from the div.  If you don't,
could you just use myTextBox.getText()?

If you do want to access the DOM, you can set an id for your textbox and
then retrieve the element as described here:

http://code.google.com/webtoolkit/doc/latest/DevGuideUiDom.html (under
"Finding an element in the DOM")

kathrin

On Thu, Apr 15, 2010 at 4:19 AM, jatan bhavsar wrote:

> Hi All,
>  hope You are fine,I need some assistance for getting GWT Textbox value in
> Javascript.
>
> I have Login page which has two GWT textbox .Once GWT textbox are load in
> the Jsp page and user enter some information in the GWT Text box ,i require
> that information in the javascript how can I do that?
>
> because we render GWT textbox with Div id and i dnt know how to get value
> from Div tag in javascript?
>
> Can you please help me?
>
> Thank you for your time.
>
> Regards
> Jatan
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Rounded Corners with UIBinder

2010-04-15 Thread Jonny
Despite all my searching (and mostly because of the limited
information available regarding proper use of UIBinder) I cannot find
a simple, elegant way to use UIBinder with rounded corners.  The
Google I have a vary simple, one page business card site with the with
the outline of the page as a rounded corner pod.  There are a few pods
within that, one of which I want to use as the new TabLayoutPanel
(requiring strict browser support).  I considered using the "older"
DecoratorPanel but that requires quirks mode.  Is there an equivalent
for the new "layout" structures?  My original code just laid out css
in the default html page and I anchored all my widgets using the
RootPanel.get('id') operation but that does not work with
RootLayoutPanel.get(), thereby limiting my ability to use the new
TabLayoutPanel.

I'm considering avoiding the new UIBinder features altogether, at
least until more tutorials are available but I have to say I'm am very
tempted
I hope this all makes some sense.  I'd be happy to clarify as this
"simple" webpage project in GWT has turned into much more of a design
barrier than anything else.

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



Re: How to put same widget under multiple tabs in TabLayoutPanel?

2010-04-15 Thread enjoylife
thanks, this sound like an idea.

On Apr 10, 8:07 am, Chad  wrote:
> One option would be to add a selection handler to the TabPanel and
> when the tab changes remove the controls from the display and attach
> them to the new tabs content.
>
> On Apr 8, 11:49 pm, enjoylife  wrote:
>
> > I have a TabLayoutPanel with 3 tabs, each tab contain a table.  I need
> > to place a control panel above and  below  tables.  All 3 tables will
> > share same control panel. (panel is for selecting all rows in a table)
>
> > I am having problem getting this to work.
>
> > Here is code for tablayoutpanel with one tab.  Anyone kow how I can
> > have same control appear in 3 different tabs under a table?
>
> >                  > ui:field='tabPanel'>
> >                   
> >                     
> >                     
> >                       
> >                          > styleName='{style.table}'/>
> >                       
> >                     
> >                   
>
> > control panel
>
> >           
> >             
> >             
> >           
>
> > Thanks

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



clipped image mode--gif only?

2010-04-15 Thread Henry HO
i was testing the image widget with the sample code in the javadoc,
but used a .png instead of gif.
i wasn't able to show the clipped image (it wouldn't load as clipped,
loaded as unclipped).
but when i tested with .gif , it clipped fine.
i'm not an expert on the different image types, but is this a issue
with the way image file types work?

thanks

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



Re: AsyncCalls

2010-04-15 Thread Thomas Broyer


On Apr 15, 9:37 am, Sripathi Krishnan 
wrote:
> The async interface usually has a void return type, but it can optionally
> return a Request object, like this -
>
> import com.google.gwt.http.client.Request;
> interface MyServiceAsync {
>     public Request myMethod(String s, AsyncCallback callback);
>
> }
>
> So, after you make your Async call, hold on to the Request object. When you
> wish to cancel the calls, invoke the request.cancel() method.

...but keep in mind that the request will have been sent to your
server, which will probably do the whole work for all three requests
(most server frameworks don't make it easy to detect "abort cases",
and most developers therefore don't care doing so).

You'd better issue the first request after a short delay (150ms for
instance) so you can prevent doing the first 2 requests if the first 3
characters are entered "fast enough" by the user (which is generally
the case)

-- 
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: $doc.getElementById(cJc).click() is not a function

2010-04-15 Thread Thomas Broyer


On Apr 14, 10:44 pm, randasin  wrote:
> Trying to click a button, I wrote a JSNI call like this
>
> public native void clickAddButton() /*-{
>     $doc.getElementById("addButton").click();
>
> }-*/;
>
> It works on IE7, but on Firefox, I get an error
> "$doc.getElementById(cJc).click() is not a function"
>
> I feel like it's a very simple mistake on my part that I just can't
> see.  Can somebody help me out please?
>
> Actually it would be great if somebody could show me an example of how
> to click a button (button declared in HTML, not GWT button) without
> using JSNI at all.

ButtonElement.as(Document.get().getElementById("addButton")).click();

(if you have an  and not a , then use InputElement
instead of ButtonElement)

-- 
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: Alternative to TableListener

2010-04-15 Thread Thomas Broyer


On Apr 15, 10:03 pm, moongwt  wrote:
> Using 2.0.3 and noticed that TableListener has been deprecated. What
> should I be using instead?

"""Deprecated. use ClickHandler and
HTMLTable.getCellForEvent(com.google.gwt.event.dom.client.ClickEvent)
instead"""
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/TableListener.html

-- 
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 - Visualization of graph/tree containing nodes and edges, moving and adding nodes...

2010-04-15 Thread David Kendall


gafgaf  wrote:

>ok its done, i tried but it is not very compatible with current
>versions of Firefox, IE, ... and GWT2.0
>and that project is not progressed and improved anymore...
>
>nevertheless, thanks a lot!
>best regards
>
>On 15 Apr., 18:22, gafgaf  wrote:
>> Hi, thanks for the link, it looks good... i like try it but i have
>> problems configuring it with gwt, is there a manual for dummies using
>> eclipse or without eclipse?
>>
>> best regards
>>
>> On 15 Apr., 16:48, kozura  wrote:
>>
>> > maybehttp://code.google.com/p/gwt-diagrams/
>>
>> > On Apr 14, 12:26 pm, gafgaf  wrote:
>>
>> > > Hi
>> > > I'm student from Germany an looking for any good library that i can
>> > > use with Google Web Toolkit to create trees/graphs, where you can move
>> > > nodes and connect these nodes with edges...but not like PieChart,
>> > > MotionChart.. but like e.g.:http://raphaeljs.com/graffle.html.
>> > > So finally it has to do with JavaScript... i don't like make just a
>> > > desktop-application.
>>
>> > > My problem is i'm beginner and i dont know which libraries would be
>> > > appropriate for my idea with the tree/graph... I'am looking a while
>> > > for some appropriate libraries in the internet, but so far i didn't
>> > > found something usefull that works with GWT (gwt-jsviz is already a
>> > > dead project as i see)...do you have any suggestion for me, how i can
>> > > realize my idea with GWT, maybe without any external librariy... i
>> > > would be very pleased and happy...
>>
>> > > Thanks and best regards
>> > > Gafur
>
>-- 
>You received this message because you are subscribed to the Google Groups 
>"Google Web Toolkit" group.
>To post to this group, send email to google-web-tool...@googlegroups.com.
>To unsubscribe from this group, send email to 
>google-web-toolkit+unsubscr...@googlegroups.com.
>For more options, visit this group at 
>http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Alternative to TableListener

2010-04-15 Thread moongwt
Using 2.0.3 and noticed that TableListener has been deprecated. What
should I be using instead?
Many Thanks.

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



GreetingService, GreetingServiceAsync, after deleting: errors

2010-04-15 Thread gafgaf
Hi,

after i have created a GWT-Project, when i delete:
GreetingService, GreetingServiceAsync from the package e.g.
de.myproject.testconnectorsgwt.client i got errors when i try to Run
As or Debug Aa Web Application.

WHy is that so??? I'm beginner but i know so far, that i'm not using
these classes!

-- 
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 - Visualization of graph/tree containing nodes and edges, moving and adding nodes...

2010-04-15 Thread gafgaf
ok its done, i tried but it is not very compatible with current
versions of Firefox, IE, ... and GWT2.0
and that project is not progressed and improved anymore...

nevertheless, thanks a lot!
best regards

On 15 Apr., 18:22, gafgaf  wrote:
> Hi, thanks for the link, it looks good... i like try it but i have
> problems configuring it with gwt, is there a manual for dummies using
> eclipse or without eclipse?
>
> best regards
>
> On 15 Apr., 16:48, kozura  wrote:
>
> > maybehttp://code.google.com/p/gwt-diagrams/
>
> > On Apr 14, 12:26 pm, gafgaf  wrote:
>
> > > Hi
> > > I'm student from Germany an looking for any good library that i can
> > > use with Google Web Toolkit to create trees/graphs, where you can move
> > > nodes and connect these nodes with edges...but not like PieChart,
> > > MotionChart.. but like e.g.:http://raphaeljs.com/graffle.html.
> > > So finally it has to do with JavaScript... i don't like make just a
> > > desktop-application.
>
> > > My problem is i'm beginner and i dont know which libraries would be
> > > appropriate for my idea with the tree/graph... I'am looking a while
> > > for some appropriate libraries in the internet, but so far i didn't
> > > found something usefull that works with GWT (gwt-jsviz is already a
> > > dead project as i see)...do you have any suggestion for me, how i can
> > > realize my idea with GWT, maybe without any external librariy... i
> > > would be very pleased and happy...
>
> > > Thanks and best regards
> > > Gafur

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



SplitPanelLayout question

2010-04-15 Thread Vik
Hie

I created 2 HyperLinks in the west region and depending upon clicking link 1
or link 2 i want load different
contents in the center region.

How to do that?

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.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-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.



example of styling vertical panel

2010-04-15 Thread Vik
Hie

Can someone help me to change the background color of a vertical panel?

I dont want to do it for all the vertical panels in my app. I just want to
do it for  a particular panel
Thankx and Regards

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



Re: Help with DockPanelLayout and UIBinder - Not able to bind field names

2010-04-15 Thread Brian Reilly
When you call uibinder.createAndBindUi(this), it creates HTMLPanel
instances as defined in your template and assigns them to your fields.
This overwrites the instances you created manually. There are 2 ways
to fix this:

1. Use the HTMLPanel instances that UiBinder creates and add your
content to them after calling createAndBindUi.
2. If you really want to create the HTMLPanel instances yourself (or
inject them via constructor arguments), you can mark the fields with
@UiField(provided=true). I'm not sure if it matters whether the fields
are set before or after calling createAndBindUi.

Given the choice between the two, I would generally favor #1, and I
think that's closer to what you're trying for anyway by calling them
"containers". Let UiBinder create the containers that you can then
fill with anything you want.

-Brian

On Apr 14, 9:28 am, amjedonline  wrote:
> Hi,
> Am trying to create a simple DockPanelLayout for my applicaiton.
> Layout itself is divided into north, south and center regions.
>
> Below is the binding xml:
>          xmlns:g='urn:import:com.google.gwt.user.client.ui'>
>
>         
>                 
>                         
>                 
>                 
>                         
>                 
>                 
>                         
>                 
>         
> 
>
> This is the Owner class:
> public class Application extends Composite {
>
>         @UiField
>         public HTMLPanel headerContainer;
>
>         @UiField
>         public HTMLPanel centerContainer;
>
>         @UiField
>         public HTMLPanel footerContainer;
>
>         interface ApplicationUiBinder extends UiBinder {
>         };
>
>         private static ApplicationUiBinder uibinder = GWT
>                         .create(ApplicationUiBinder.class);
>
>         public Application() {
>                 headerContainer = new HTMLPanel("Header");
>                 centerContainer = new HTMLPanel("Center");
>                 footerContainer = new HTMLPanel("Footer");
>                 initWidget(uibinder.createAndBindUi(this));
>         }
>
> }
>
> And this is what I do in EntryPoint:
>
> Application app = new Application();
> RootLayoutPanel.get().add(app);
>
> I dont get the labels - center, header and footer in the page.
>
> On debugging I found that output generated by createAndBindUI contains
> empty divs (while the inner html is expected).
>
> Any help in this regard will be appreciated.

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



Re: GWT - Visualization of graph/tree containing nodes and edges, moving and adding nodes...

2010-04-15 Thread gafgaf
Hi, thanks for the link, it looks good... i like try it but i have
problems configuring it with gwt, is there a manual for dummies using
eclipse or without eclipse?

best regards

On 15 Apr., 16:48, kozura  wrote:
> maybehttp://code.google.com/p/gwt-diagrams/
>
> On Apr 14, 12:26 pm, gafgaf  wrote:
>
> > Hi
> > I'm student from Germany an looking for any good library that i can
> > use with Google Web Toolkit to create trees/graphs, where you can move
> > nodes and connect these nodes with edges...but not like PieChart,
> > MotionChart.. but like e.g.:http://raphaeljs.com/graffle.html.
> > So finally it has to do with JavaScript... i don't like make just a
> > desktop-application.
>
> > My problem is i'm beginner and i dont know which libraries would be
> > appropriate for my idea with the tree/graph... I'am looking a while
> > for some appropriate libraries in the internet, but so far i didn't
> > found something usefull that works with GWT (gwt-jsviz is already a
> > dead project as i see)...do you have any suggestion for me, how i can
> > realize my idea with GWT, maybe without any external librariy... i
> > would be very pleased and happy...
>
> > Thanks and best regards
> > Gafur

-- 
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: Switch RootPanel with RootLayoutPanel

2010-04-15 Thread kerrr
Hi,

I've figured out that you need to remove the RootLayoutPanel from the
RootPanel.  You can do this with
RootPanel.get().remove(RootLayoutPanel.get()), or
RootLayoutPanel.get().removeFromParent().

Note that this means that the singlton RootLayoutPanel returned from
RootLayoutPanel.get() will no longer function as it does not get
reattached.  You can work around this by reattaching it to RootPanel
with RootPanel.add(RootLayoutPanel.get());

It would be better if RootLayoutPanel.get() always ensured that it was
attached to RootPanel.get() before returning.  It is also nto very
obvious to a newbie (like me) that simply having RootLayoutPanel
attached will block clicking on anything attached to the RootPanel.
While it is perhaps uncommon for this to occur simply by calling
RootLayoutPanel.get(), a moer common scenario would be adding a
LayoutPanel to the RootLayoutPanel and then removing it.  This leaves
the RootLayoutPanel still attached, bu the underlying RootPanel
inactive.  Wouldn't it be a good idea to automatically detach the
RootLayoutPanel if all of it's children are detached?

Cheers
Kerr

On Apr 15, 2:48 pm, kerrr  wrote:
> I'm having a similar issue.  I have widgets added to elements using
> RootLayout.get("foo").add(widget) but then want to add a Panel on top
> usingRootLayoutPanel.get().add(layout).  that's all fine, but
> removign the LayoutPanel leaves somethign behind that means the
> widgets on the page cannot be clicked.  Looking at the generated there
> is an extra div left behind.  Is this a bug or am I missing
> something?  I'm not keen on raiseing a bug if this is simply a case of
> me missunderstanding something.
>
> Cheers
> Kerr
>
> On Apr 14, 12:09 pm, "gadaleta.marco" 
> wrote:
>
> > Hi,
> > I'm trying to switch diinamically RootPanel withRootLayoutPaneland
> > viceversa.
> > But after the switch, the interface seems to be locked.
> > Can you give me an help?
>
> > Thx,
> > Marco

-- 
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: Layout issues .. simply does not work

2010-04-15 Thread Vik
tx a lot!!!

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Thu, Apr 15, 2010 at 8:36 PM, kozura  wrote:

> Works fine when I tried it, but note that the units are pixels, so you
> will want to use larger numbers.
>
> On Apr 15, 8:50 am, Vik  wrote:
> > Hie
> >
> > I am trying to create some gwt layout and it shows nothing.
> >
> > here is the code:
> >
> > public void onModuleLoad() {
> > SplitLayoutPanel container = new SplitLayoutPanel();
> >  container.addNorth(new HTML("north"), 2);
> > container.addSouth(new HTML("south"), 5);
> >  container.addEast(new HTML("east"), 2);
> >
> > StackLayoutPanel menu = new StackLayoutPanel(Unit.EM);
> > menu.add(new HTML("this"), new HTML("[this]"), 4);
> > menu.add(new HTML("that"), new HTML("[that]"), 4);
> > menu.add(new HTML("the other"), new HTML("[the other]"), 4);
> >
> > container.addWest(menu, 5);
> > container.add(new HTML("center"));
> > RootLayoutPanel rp = RootLayoutPanel.get();
> > rp.add(container);
> >
> > }
> >
> > any idea what i m missing?
> >
> > Thankx and Regards
> >
> > Vik
> > Founderwww.sakshum.comwww.sakshum.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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Layout issues .. simply does not work

2010-04-15 Thread kozura
Works fine when I tried it, but note that the units are pixels, so you
will want to use larger numbers.

On Apr 15, 8:50 am, Vik  wrote:
> Hie
>
> I am trying to create some gwt layout and it shows nothing.
>
> here is the code:
>
> public void onModuleLoad() {
> SplitLayoutPanel container = new SplitLayoutPanel();
>  container.addNorth(new HTML("north"), 2);
> container.addSouth(new HTML("south"), 5);
>  container.addEast(new HTML("east"), 2);
>
>     StackLayoutPanel menu = new StackLayoutPanel(Unit.EM);
>     menu.add(new HTML("this"), new HTML("[this]"), 4);
>     menu.add(new HTML("that"), new HTML("[that]"), 4);
>     menu.add(new HTML("the other"), new HTML("[the other]"), 4);
>
>     container.addWest(menu, 5);
>     container.add(new HTML("center"));
>     RootLayoutPanel rp = RootLayoutPanel.get();
>     rp.add(container);
>
> }
>
> any idea what i m missing?
>
> Thankx and Regards
>
> Vik
> Founderwww.sakshum.comwww.sakshum.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-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: UiBinder performances: widgets without ui:field still instantiate?

2010-04-15 Thread plcoirier
Thanks for your help.

I guess, even after java -> javascript compilation, the first example
will still instantiate a javascript object for each widget, right?

> > So am I right to think that I should never use widget inside UiBinder
> > xml except if I have the attribute ui:field (in other words, except if
> > I need it in the Java code)?
>
> Its best to minimize usage of widgets when you can; there is always a cost
> associated with them. Specifically, VerticalPanel and HorizontalPanel almost
> always should be replaced with  (or tables if you don't like semantic
> markup).
>
> BUT I'm still wondering if once compiled to JS those instanciations are> 
> translated to plain html. It's not clear in what you're saying if it's in
> > production or in development mode.
>
> The code pasted was the intermediate, unoptimized java code that uibinder
> generates prior to java -> js compilation. It will undergo optimizations
> once the compiler acts on it, and the code will for sure be a lot more
> performant.
>
> However, in general, innerHTML is much better performance wise than creating
> objects and adding them to DOM. So, even after the compiler finishes all
> optimizations, performance wise it will still lag behind inline html.



>
> --Sri
>
> On 15 April 2010 19:30, Christian Goudreau 
> wrote:
>
>
>
> > I don't know if you're right about thinking that there's still situation
> > where an HTMLPanel or layout panel, without uifield is the best way to go,
> > but I do know that we should use as often as possible html code instead of
> > widget for the very reason you exposed.
>
> > BUT I'm still wondering if once compiled to JS those instanciations are
> > translated to plain html. It's not clear in what you're saying if it's in
> > production or in development mode.
>
> > Christian
>
> > On Thu, Apr 15, 2010 at 9:44 AM, plcoirier  wrote:
>
> >> With UiBinder, I thought that GWT compiler would prevent instantiation
> >> of widget with no ui:field attribute by directly inserting the html
> >> code of the widget.
>
> >> In other words, I thought that:
>
> >>        
> >>                Line
> >> 1
> >>                Line
> >> 2
> >>        
>
> >> would give the same result as:
>
> >>        
> >>                
> >>                        
> >>                                Line1
> >>                                Line2
> >>                        
> >>                
> >>        
>
> >> But in the first case, it generates this Java code:
> >>    com.google.gwt.user.client.ui.Label f_Label3 =
> >> (com.google.gwt.user.client.ui.Label)
> >> GWT.create(com.google.gwt.user.client.ui.Label.class);
> >>    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel2 =
> >> (com.google.gwt.user.client.ui.HorizontalPanel)
> >> GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
> >>    com.google.gwt.user.client.ui.Label f_Label5 =
> >> (com.google.gwt.user.client.ui.Label)
> >> GWT.create(com.google.gwt.user.client.ui.Label.class);
> >>    com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel4 =
> >> (com.google.gwt.user.client.ui.HorizontalPanel)
> >> GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
> >>    com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 =
> >> (com.google.gwt.user.client.ui.VerticalPanel)
> >> GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
>
> >>    f_Label3.setText("Line 1");
> >>    f_HorizontalPanel2.add(f_Label3);
> >>    f_VerticalPanel1.add(f_HorizontalPanel2);
> >>    f_Label5.setText("Line 2");
> >>    f_HorizontalPanel4.add(f_Label5);
> >>    f_VerticalPanel1.add(f_HorizontalPanel4);
>
> >> and the second case, it generates:
> >>    com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new
> >> com.google.gwt.user.client.ui.HTMLPanel("  Line1
> >> Line2  ");
>
> >> So am I right to think that I should never use widget inside UiBinder
> >> xml except if I have the attribute ui:field (in other words, except if
> >> I need it in the Java code)?
>
> >> Thanks,
> >> Pierre
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text -
>
> - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web T

Re: Ilogical problem on GWT

2010-04-15 Thread Asmaa EL MOKHTARI
I find one error witch is:

*SVN: '0x0041: Check cache before repaint' operation finished with
error: svn: Unable to lock url

org.eclipse.team.svn.core.connector.SVNConnectorException: svn: Unable to
lock*

In the other hand, i can't see the changes witch i made in the project
without restarting the computer.

So i spent a lot of time in the deployement.


2010/4/15 Víctor Llorens Vilella 

> You may give more information. Some sort of concrete information.
>
> Could be some sort of out of sync problem? Try to refresh your
> workspace/project (F5) after save changes or building.
>
>
>
> On 15 April 2010 16:27, kozura  wrote:
>
>> Computers are eminently logical, programmers on the other hand..
>>
>> From the barest mote of information you provide about your problem,
>> maybe it's caching, look at the bottom of
>>
>> http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html
>>
>> On Apr 15, 8:14 am, Asmaa EL MOKHTARI 
>> wrote:
>> > Please, i need your help!
>> >
>> > 2010/4/15 samounas 
>> >
>> > > I have a problem with the deployment of my project.
>> > > The changes I make on my project in GWT appear on my project after
>> > > restarting my computer.
>> > > this is something profoundly illogical.
>> > > So can u help me please.
>>
>> --
>> 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.
>>
>>
>
>
> --
> Victor Llorens Vilella
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Layout issues .. simply does not work

2010-04-15 Thread Vik
Hie

I am trying to create some gwt layout and it shows nothing.

here is the code:

public void onModuleLoad() {
SplitLayoutPanel container = new SplitLayoutPanel();
 container.addNorth(new HTML("north"), 2);
container.addSouth(new HTML("south"), 5);
 container.addEast(new HTML("east"), 2);


StackLayoutPanel menu = new StackLayoutPanel(Unit.EM);
menu.add(new HTML("this"), new HTML("[this]"), 4);
menu.add(new HTML("that"), new HTML("[that]"), 4);
menu.add(new HTML("the other"), new HTML("[the other]"), 4);

container.addWest(menu, 5);
container.add(new HTML("center"));
RootLayoutPanel rp = RootLayoutPanel.get();
rp.add(container);
}

any idea what i m missing?

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.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-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 - Visualization of graph/tree containing nodes and edges, moving and adding nodes...

2010-04-15 Thread kozura
maybe http://code.google.com/p/gwt-diagrams/

On Apr 14, 12:26 pm, gafgaf  wrote:
> Hi
> I'm student from Germany an looking for any good library that i can
> use with Google Web Toolkit to create trees/graphs, where you can move
> nodes and connect these nodes with edges...but not like PieChart,
> MotionChart.. but like e.g.:http://raphaeljs.com/graffle.html.
> So finally it has to do with JavaScript... i don't like make just a
> desktop-application.
>
> My problem is i'm beginner and i dont know which libraries would be
> appropriate for my idea with the tree/graph... I'am looking a while
> for some appropriate libraries in the internet, but so far i didn't
> found something usefull that works with GWT (gwt-jsviz is already a
> dead project as i see)...do you have any suggestion for me, how i can
> realize my idea with GWT, maybe without any external librariy... i
> would be very pleased and happy...
>
> Thanks and best regards
> Gafur

-- 
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: markup and i18n/Messages

2010-04-15 Thread Stefan Bachert
Hi,

There is a big risk in using markups in properties files.

They are likely to go to a translation office were the people don't
know about markups.
May be they translate  to .

You could never be sure, that these markups apply at all. Depending
were you insert it,
your markup is taken literally.

Both approaches will produce earlier or later massive testing costs.

When application is display a longer text where some words are marked,
I would consider to use ClientBundle TextResource or
ExternalTextResource.

Stefan Bachert
http://gwtworld.de

On 15 Apr., 14:21, salk31  wrote:
> What is the best plan for allowing/disallowing markup in i18n
> messages?
>
> I'd be tempted to say no but one day the pointy haired boss is going
> to say he wants a word in italics and I'd feel a bit silly saying
> "no".
>
> Sorry if I've missed something but does GWT offer a solution to this?
>
> The best I can think of is that by default messages won't have markup
> (so will be escaped) but if the message starts with a valid tag e.g.
> "" then I will turn off escaping for at least , 
> etc... So not very good at all.
>
> Thanks
>
> Sam

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



DatePicker

2010-04-15 Thread Abdullah Shaikh
How are I have easy navigation in DatePicker, for example if I want to
select the year 2000, I will have to go through all the months and years by
clicking the button.

I think we should have a month and year drop down for easy navigation.

Is there any third party DatePicker or any configuration in GWT's DatePicker
that I am missing ?


- Abdullah

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



Visual CMS with GWT

2010-04-15 Thread graham.col...@gmail.com
Hi,

I want to make a Website CMS that does the following:

The screen is split into 2 panels, the right panel contains a webpage
where a user can click an element (image or block of text) and then
edit it in the right panel.

So, in the right panel all the elements properties show up and they
can be edited and saved.

Would GWT be a good framework to achieve this or would something else
be more suitable ?

I would like real-time text updates, drag & drop images etc.

I know i'm being a bit brief at this point but i would like to get an
idea of it's capabilities before i look any further.

Thanks

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



Re: markup and i18n/Messages

2010-04-15 Thread mmoossen
Hi,

the problem is even bigger.
think of multi-line messages like this:
a:
b

normally, this would work
a:\nb

but on the web you need
a:b

if anybody has a good idea on how to handle these cases i would really
appreciate it.

thanks
Michael

On Apr 15, 2:21 pm, salk31  wrote:
> What is the best plan for allowing/disallowing markup in i18n
> messages?
>
> I'd be tempted to say no but one day the pointy haired boss is going
> to say he wants a word in italics and I'd feel a bit silly saying
> "no".
>
> Sorry if I've missed something but does GWT offer a solution to this?
>
> The best I can think of is that by default messages won't have markup
> (so will be escaped) but if the message starts with a valid tag e.g.
> "" then I will turn off escaping for at least , 
> etc... So not very good at all.
>
> Thanks
>
> Sam

-- 
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: Ilogical problem on GWT

2010-04-15 Thread Víctor Llorens Vilella
You may give more information. Some sort of concrete information.

Could be some sort of out of sync problem? Try to refresh your
workspace/project (F5) after save changes or building.



On 15 April 2010 16:27, kozura  wrote:

> Computers are eminently logical, programmers on the other hand..
>
> From the barest mote of information you provide about your problem,
> maybe it's caching, look at the bottom of
>
> http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html
>
> On Apr 15, 8:14 am, Asmaa EL MOKHTARI 
> wrote:
> > Please, i need your help!
> >
> > 2010/4/15 samounas 
> >
> > > I have a problem with the deployment of my project.
> > > The changes I make on my project in GWT appear on my project after
> > > restarting my computer.
> > > this is something profoundly illogical.
> > > So can u help me please.
>
> --
> 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.
>
>


-- 
Victor Llorens Vilella

-- 
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: Ilogical problem on GWT

2010-04-15 Thread kozura
Computers are eminently logical, programmers on the other hand..

>From the barest mote of information you provide about your problem,
maybe it's caching, look at the bottom of
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html

On Apr 15, 8:14 am, Asmaa EL MOKHTARI 
wrote:
> Please, i need your help!
>
> 2010/4/15 samounas 
>
> > I have a problem with the deployment of my project.
> > The changes I make on my project in GWT appear on my project after
> > restarting my computer.
> > this is something profoundly illogical.
> > So can u help me please.

-- 
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: Scrollbars for VerticalPanel?

2010-04-15 Thread Gilbert Corrales
@lineman78 yeah you are right but by doing so we found that we needed
to put more effort into the css to make things work across browsers
the way we wanted ( in relation to other parts of our app), that been
said we have updated our posts to reflect your comments.

we hope Google will fix this in the future as there is a lot to be
gained using CSS-only implementations for document-like layouts and by
doing so minimizing the use of tables for layout's once and for all.

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

2010-04-15 Thread kozura
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/HTMLTable.html#addTableListener%28com.google.gwt.user.client.ui.TableListener%29

add a click handler instead and use getCellForEvent(ClickEvent)  to
get the cell information (remember to check for a null return value)

On Apr 14, 1:48 am, moongwt  wrote:
> Hi,
> I'm using version 2.0.3  of gwt and noticed that the documentation
> mentions TableListener has been deprecated.
> What should I be using instead?
>
> Thanks

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



Re: javac compile error

2010-04-15 Thread kozura
First bet is usually that you are using a different version of java on
the command line - try javac -version and compare it with what you are
using in eclipse.

On Apr 14, 8:14 pm, txciggy  wrote:
> Hi,
>
> I'm a newbie to command-line compiling. I have used Eclipse before to
> compile GWT projects without any problem. This is the first time I
> have had to deal with automating javac compiling and ant build using a
> Makefile. I am getting the following compiling error. I haven't found
> anything related on the forum yet.
>
> 
> $ make
> .. building with ant
> Buildfile: build.xml
>
> libs:
>
> javac:
>     [javac] Compiling 58 source files to /home/rr208664/FabricMonitor/
> war/WEB-INF/classes
>     [javac] --
>     [javac] 1. ERROR in /home/rr208664/FabricMonitor/src/com/sun/
> fabricmonitor/client/chart/Chart.java (at line 22)
>     [javac]     public class Chart extends FlowPanel{
>     [javac]                                ^
>     [javac] The type Iterable is not generic; it cannot be
> parameterized with arguments 
>     [javac] --
>     [javac] 1 problem (1 error)
>
> BUILD FAILED
> /home/rr208664/FabricMonitor/build.xml:30: Compile failed; see the
> compiler error output for details.
>
> Total time: 2 seconds
> make: *** [gwt] Error 1
> $
> 
>
> This project compiles without any problem in Eclipse. My Chart class
> is straightforward:
>
> =
> public class Chart extends HorizontalPanel{
>
>         private SimplePlot plot;
>         .
>         .
>         .
>
>         public Chart() {
>
>               ...
>         }
>         .
>         .
>         .
>         .
>
>         public void setSampleRate(int rate) {
>               
>         }
>
>         public void setChartSize(int height, int width) {
>               
>         }
>
> }
>
> =

-- 
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: UiBinder performances: widgets without ui:field still instantiate?

2010-04-15 Thread Sripathi Krishnan
>
> So am I right to think that I should never use widget inside UiBinder
> xml except if I have the attribute ui:field (in other words, except if
> I need it in the Java code)?
>

Its best to minimize usage of widgets when you can; there is always a cost
associated with them. Specifically, VerticalPanel and HorizontalPanel almost
always should be replaced with  (or tables if you don't like semantic
markup).

BUT I'm still wondering if once compiled to JS those instanciations are
> translated to plain html. It's not clear in what you're saying if it's in
> production or in development mode.
>
The code pasted was the intermediate, unoptimized java code that uibinder
generates prior to java -> js compilation. It will undergo optimizations
once the compiler acts on it, and the code will for sure be a lot more
performant.

However, in general, innerHTML is much better performance wise than creating
objects and adding them to DOM. So, even after the compiler finishes all
optimizations, performance wise it will still lag behind inline html.

--Sri



On 15 April 2010 19:30, Christian Goudreau wrote:

> I don't know if you're right about thinking that there's still situation
> where an HTMLPanel or layout panel, without uifield is the best way to go,
> but I do know that we should use as often as possible html code instead of
> widget for the very reason you exposed.
>
> BUT I'm still wondering if once compiled to JS those instanciations are
> translated to plain html. It's not clear in what you're saying if it's in
> production or in development mode.
>
> Christian
>
>
> On Thu, Apr 15, 2010 at 9:44 AM, plcoirier  wrote:
>
>> With UiBinder, I thought that GWT compiler would prevent instantiation
>> of widget with no ui:field attribute by directly inserting the html
>> code of the widget.
>>
>> In other words, I thought that:
>>
>>
>>Line
>> 1
>>Line
>> 2
>>
>>
>> would give the same result as:
>>
>>
>>
>>
>>Line1
>>Line2
>>
>>
>>
>>
>> But in the first case, it generates this Java code:
>>com.google.gwt.user.client.ui.Label f_Label3 =
>> (com.google.gwt.user.client.ui.Label)
>> GWT.create(com.google.gwt.user.client.ui.Label.class);
>>com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel2 =
>> (com.google.gwt.user.client.ui.HorizontalPanel)
>> GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
>>com.google.gwt.user.client.ui.Label f_Label5 =
>> (com.google.gwt.user.client.ui.Label)
>> GWT.create(com.google.gwt.user.client.ui.Label.class);
>>com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel4 =
>> (com.google.gwt.user.client.ui.HorizontalPanel)
>> GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
>>com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 =
>> (com.google.gwt.user.client.ui.VerticalPanel)
>> GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
>>
>>f_Label3.setText("Line 1");
>>f_HorizontalPanel2.add(f_Label3);
>>f_VerticalPanel1.add(f_HorizontalPanel2);
>>f_Label5.setText("Line 2");
>>f_HorizontalPanel4.add(f_Label5);
>>f_VerticalPanel1.add(f_HorizontalPanel4);
>>
>> and the second case, it generates:
>>com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new
>> com.google.gwt.user.client.ui.HTMLPanel("  Line1
>> Line2  ");
>>
>> So am I right to think that I should never use widget inside UiBinder
>> xml except if I have the attribute ui:field (in other words, except if
>> I need it in the Java code)?
>>
>> Thanks,
>> Pierre
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
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: Ilogical problem on GWT

2010-04-15 Thread Asmaa EL MOKHTARI
Please, i need your help!


2010/4/15 samounas 

> I have a problem with the deployment of my project.
> The changes I make on my project in GWT appear on my project after
> restarting my computer.
> this is something profoundly illogical.
> So can u help me please.

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



Date Picker Allows Only Certain Dates to be Selected Based on Database or Web Service Information

2010-04-15 Thread beachbeamer
Is there a way to use the GWT Date Picker where dates are only
selectable based on information returned from either a web service, or
database query?

In addition, have rollover text that is returned appear when hovering
over the selectable date?

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



java.util.Calendar

2010-04-15 Thread marclurr
Hello,

I'm sure this has been asked somewhere before but I can't seem to find
it:

Is there likely to be a port of java.util.Calendar any time soon for
GWT?

Also, is there an official roadmap anywhere?

Thanks

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



javac compile error

2010-04-15 Thread txciggy
Hi,

I'm a newbie to command-line compiling. I have used Eclipse before to
compile GWT projects without any problem. This is the first time I
have had to deal with automating javac compiling and ant build using a
Makefile. I am getting the following compiling error. I haven't found
anything related on the forum yet.


$ make
.. building with ant
Buildfile: build.xml

libs:

javac:
[javac] Compiling 58 source files to /home/rr208664/FabricMonitor/
war/WEB-INF/classes
[javac] --
[javac] 1. ERROR in /home/rr208664/FabricMonitor/src/com/sun/
fabricmonitor/client/chart/Chart.java (at line 22)
[javac] public class Chart extends FlowPanel{
[javac]^
[javac] The type Iterable is not generic; it cannot be
parameterized with arguments 
[javac] --
[javac] 1 problem (1 error)

BUILD FAILED
/home/rr208664/FabricMonitor/build.xml:30: Compile failed; see the
compiler error output for details.

Total time: 2 seconds
make: *** [gwt] Error 1
$


This project compiles without any problem in Eclipse. My Chart class
is straightforward:

=
public class Chart extends HorizontalPanel{

private SimplePlot plot;
.
.
.

public Chart() {

  ...
}
.
.
.
.

public void setSampleRate(int rate) {
  
}

public void setChartSize(int height, int width) {
  
}

}
=

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



Gwt TableListener

2010-04-15 Thread moongwt
Hi,
I'm using version 2.0.3  of gwt and noticed that the documentation
mentions TableListener has been deprecated.
What should I be using instead?

Thanks

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



$doc.getElementById(cJc).click() is not a function

2010-04-15 Thread randasin
Trying to click a button, I wrote a JSNI call like this

public native void clickAddButton() /*-{
$doc.getElementById("addButton").click();
}-*/;

It works on IE7, but on Firefox, I get an error
"$doc.getElementById(cJc).click() is not a function"

I feel like it's a very simple mistake on my part that I just can't
see.  Can somebody help me out please?

Actually it would be great if somebody could show me an example of how
to click a button (button declared in HTML, not GWT button) without
using JSNI at all.

Any thoughts would be appreciated.  Using GWT 2.0.3.

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



GWT MVP

2010-04-15 Thread Sabbir
i am having quite a difficulty in understanding MVP in gwt. Can
anybody suggest a good example easy one

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



Ilogical problem on GWT

2010-04-15 Thread samounas
I have a problem with the deployment of my project.
The changes I make on my project in GWT appear on my project after
restarting my computer.
this is something profoundly illogical.
So can u help me please.

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



GWT - Visualization of graph/tree containing nodes and edges, moving and adding nodes...

2010-04-15 Thread gafgaf
Hi
I'm student from Germany an looking for any good library that i can
use with Google Web Toolkit to create trees/graphs, where you can move
nodes and connect these nodes with edges...but not like PieChart,
MotionChart.. but like e.g.: http://raphaeljs.com/graffle.html.
So finally it has to do with JavaScript... i don't like make just a
desktop-application.

My problem is i'm beginner and i dont know which libraries would be
appropriate for my idea with the tree/graph... I'am looking a while
for some appropriate libraries in the internet, but so far i didn't
found something usefull that works with GWT (gwt-jsviz is already a
dead project as i see)...do you have any suggestion for me, how i can
realize my idea with GWT, maybe without any external librariy... i
would be very pleased and happy...

Thanks and best regards
Gafur

-- 
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: Switch RootPanel with RootLayoutPanel

2010-04-15 Thread kerrr
I'm having a similar issue.  I have widgets added to elements using
RootLayout.get("foo").add(widget) but then want to add a Panel on top
using RootLayoutPanel.get().add(layout).  that's all fine, but
removign the LayoutPanel leaves somethign behind that means the
widgets on the page cannot be clicked.  Looking at the generated there
is an extra div left behind.  Is this a bug or am I missing
something?  I'm not keen on raiseing a bug if this is simply a case of
me missunderstanding something.

Cheers
Kerr

On Apr 14, 12:09 pm, "gadaleta.marco" 
wrote:
> Hi,
> I'm trying to switch diinamically RootPanel with RootLayoutPanel and
> viceversa.
> But after the switch, the interface seems to be locked.
> Can you give me an help?
>
> Thx,
> Marco

-- 
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: Making a simple 3 column layout?

2010-04-15 Thread helguita
Hello!

We just wrote a post some days ago about how to implement this. You
can find the tutorial here:

http://blog.discovr.net/post/516021390/layout-your-app-using-gwt-2-0-the-way-you-want-it

We built this tutorial using UiBinder, so it should be straightforward
for you. Also you can download the source code within the tutorial.

We hope it helps.

H&G

On Apr 15, 1:02 pm, markww  wrote:
> Hi,
>
> I was hoping to use VerticalPanel and HorizontalPanel instances to
> make a simple 3 column page layout. Something like:
>
>   
>      
>          // this is the header (width: 100%, height: 90px)
>      
>
>     
>       
>          // this is column 1 (width: 30%, height: 100%)
>       
>
>       
>          // this is column 2 (width: 50%, height: 100%)
>       
>
>       
>          // this is column 3 (width: 20%, height: 100%)
>       
>
>    
>  
>
> but the layout looks quite strange. I have to figure out css for
> layouts, was hoping most of this could be handled by gwt though.
> Anyone have a simple 3 col layout they could share?
>
> Thanks

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



Gwt 2.0 with Symfony php framework

2010-04-15 Thread Ricoux
I must implement a web application using Symfony php framework (with
doctrine) with a javascript framework in order to use and create rich
UI components.

First of all, I have to realize a study of existing javascript
framework and I must choose one. GWT provides many UI components and
has many advantages compared to other traditional JS Framework
(designer, developped view in java, ...). However, I don't find
complete tutorial about the use of GWT with php or Symfony (except
http://examples.roughian.com).

I would like your opinion, Is a Symfony project using GWT is viable?
Do you know tutorials about it? Does someone has already realize this?

Thank you in advance.

Eric

-- 
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: UiBinder performances: widgets without ui:field still instantiate?

2010-04-15 Thread Christian Goudreau
I don't know if you're right about thinking that there's still situation
where an HTMLPanel or layout panel, without uifield is the best way to go,
but I do know that we should use as often as possible html code instead of
widget for the very reason you exposed.

BUT I'm still wondering if once compiled to JS those instanciations are
translated to plain html. It's not clear in what you're saying if it's in
production or in development mode.

Christian

On Thu, Apr 15, 2010 at 9:44 AM, plcoirier  wrote:

> With UiBinder, I thought that GWT compiler would prevent instantiation
> of widget with no ui:field attribute by directly inserting the html
> code of the widget.
>
> In other words, I thought that:
>
>
>Line
> 1
>Line
> 2
>
>
> would give the same result as:
>
>
>
>
>Line1
>Line2
>
>
>
>
> But in the first case, it generates this Java code:
>com.google.gwt.user.client.ui.Label f_Label3 =
> (com.google.gwt.user.client.ui.Label)
> GWT.create(com.google.gwt.user.client.ui.Label.class);
>com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel2 =
> (com.google.gwt.user.client.ui.HorizontalPanel)
> GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
>com.google.gwt.user.client.ui.Label f_Label5 =
> (com.google.gwt.user.client.ui.Label)
> GWT.create(com.google.gwt.user.client.ui.Label.class);
>com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel4 =
> (com.google.gwt.user.client.ui.HorizontalPanel)
> GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
>com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 =
> (com.google.gwt.user.client.ui.VerticalPanel)
> GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);
>
>f_Label3.setText("Line 1");
>f_HorizontalPanel2.add(f_Label3);
>f_VerticalPanel1.add(f_HorizontalPanel2);
>f_Label5.setText("Line 2");
>f_HorizontalPanel4.add(f_Label5);
>f_VerticalPanel1.add(f_HorizontalPanel4);
>
> and the second case, it generates:
>com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new
> com.google.gwt.user.client.ui.HTMLPanel("  Line1
> Line2  ");
>
> So am I right to think that I should never use widget inside UiBinder
> xml except if I have the attribute ui:field (in other words, except if
> I need it in the Java code)?
>
> Thanks,
> Pierre
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



UiBinder performances: widgets without ui:field still instantiate?

2010-04-15 Thread plcoirier
With UiBinder, I thought that GWT compiler would prevent instantiation
of widget with no ui:field attribute by directly inserting the html
code of the widget.

In other words, I thought that:


Line 1
Line 2


would give the same result as:




Line1
Line2




But in the first case, it generates this Java code:
com.google.gwt.user.client.ui.Label f_Label3 =
(com.google.gwt.user.client.ui.Label)
GWT.create(com.google.gwt.user.client.ui.Label.class);
com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel2 =
(com.google.gwt.user.client.ui.HorizontalPanel)
GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
com.google.gwt.user.client.ui.Label f_Label5 =
(com.google.gwt.user.client.ui.Label)
GWT.create(com.google.gwt.user.client.ui.Label.class);
com.google.gwt.user.client.ui.HorizontalPanel f_HorizontalPanel4 =
(com.google.gwt.user.client.ui.HorizontalPanel)
GWT.create(com.google.gwt.user.client.ui.HorizontalPanel.class);
com.google.gwt.user.client.ui.VerticalPanel f_VerticalPanel1 =
(com.google.gwt.user.client.ui.VerticalPanel)
GWT.create(com.google.gwt.user.client.ui.VerticalPanel.class);

f_Label3.setText("Line 1");
f_HorizontalPanel2.add(f_Label3);
f_VerticalPanel1.add(f_HorizontalPanel2);
f_Label5.setText("Line 2");
f_HorizontalPanel4.add(f_Label5);
f_VerticalPanel1.add(f_HorizontalPanel4);

and the second case, it generates:
com.google.gwt.user.client.ui.HTMLPanel f_HTMLPanel1 = new
com.google.gwt.user.client.ui.HTMLPanel("  Line1
Line2  ");

So am I right to think that I should never use widget inside UiBinder
xml except if I have the attribute ui:field (in other words, except if
I need it in the Java code)?

Thanks,
Pierre

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



markup and i18n/Messages

2010-04-15 Thread salk31
What is the best plan for allowing/disallowing markup in i18n
messages?

I'd be tempted to say no but one day the pointy haired boss is going
to say he wants a word in italics and I'd feel a bit silly saying
"no".

Sorry if I've missed something but does GWT offer a solution to this?

The best I can think of is that by default messages won't have markup
(so will be escaped) but if the message starts with a valid tag e.g.
"" then I will turn off escaping for at least , 
etc... So not very good at all.

Thanks

Sam

-- 
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: ELabel and GWT

2010-04-15 Thread ben
Hello all, I got it working.  Found the mapitz GAbstractOverlay, and
then was able to get on the right track.  I got a huge help from
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/683028a4f827695d

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



gwt app load tests

2010-04-15 Thread mariyan nenchev
Hi,

How to do load tests to gwt app? Please suggest tools/frameworks and best
practices.

Regards.

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



uiBinder and XML writing

2010-04-15 Thread FB
Hello,

I try to use uiBinder... when I write the xml code in the editor
(NetBeans 6.8 / Eclipse Galileo) no one suggegstion is shown about
node properties...

It's a configuration problem?

Thank you! F.

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



Re: RPC Endpoints and threads

2010-04-15 Thread mmoossen
Hi, Paul!

if you really want one service instance per thread make your service
additionally implement SingleThreadModel.
or you could also use the standard synchronization mechanism.

HTH
Michael

On Apr 15, 10:48 am, Sripathi Krishnan 
wrote:
> Servlet containers typically make only one object of your Servlet. This
> object is shared across several threads. Several threads is a configurable
> property on most servers, but usually varies between 15 to 30. If you have
> 100 users connecting simultaneously, the server will not start 100 threads -
> the remaining requests will be queued.
>
> But multiple threads sharing the same Servlet (or end-point, as you put it)
> object does not *usually* matter. That is, if you follow servlet best
> practices.
>
> The GWT RPC Servlet is Stateless. Even if 1000 users access it at the same
> time, it is OKAY - they will not interfere with each other. When you write a
> RPC Servlet extending RemoteServiceServlet, you should also ensure that it
> is stateless. There are several ways to do it, but the easiest is to *NOT
> use member variables in your ServiceImpl*.
>
> Users in different sessions are also serviced by the same Servlet object. It
> is up to you to handle them differently by reading from the Session object
> and taking a different action for each user. And, just to go a step further,
> the recommended approach is to not use sessions. That gives you
> opportunities to scale later.
>
> EJB's are a complicated beast and meant to solve an entirely different class
> of problems. Even if you already use EJBs in your project, you should still
> write a RPC Servlet that delegates the heavy-processing to EJB.
>
> --Sri
>
> On 15 April 2010 13:19, Paul Grenyer  wrote:
>
> > Hi All
>
> > I've been thinking a lot about the GWT RPC mechanism and from the
> > tests that I've done it appears that the same endpoint instance is
> > used for every RPC call. So presumably if you've got a hundred users
> > all making the same RPC call all at the same time there are 100
> > different threads trying to access the same object. Is that correct?
>
> > Just having written that, another thought occurs that I haven't
> > checked for, is it just that the same endpoint object is used for a
> > session? So different users, who obviously have different sessions,
> > get their own endpoint object?
>
> > Anyway, assuming I was right the first time and an RPC endpoint is
> > shared by all sessions, has anyone considered pooling endpoints and
> > serving them up per session like I believe EJB does?
>
> > --
> > Thanks
> > Paul
>
> > Paul Grenyer
> > e: paul.gren...@gmail.com
> > b: paulgrenyer.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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: sliding navigation with gwt

2010-04-15 Thread ko_aung
a'ite. thanks for the suggestion.
i'll try that out.

On Apr 13, 8:17 am, rjcarr  wrote:
> You would need to embed things (i.e., widgets, most likely images)
> into an absolute panel and then change their positions within the
> panel on the navigation action.  By moving the items in the front
> faster than in the back it achieves a 3D look.
>
> Good luck!
>
> On Apr 11, 12:01 am, ko_aung  wrote:
>
> > hi,
>
> > i'm wondering somebody could shed some light on how to achieve a
> > sliding navigation with gwt, something like 
> > thishttp://www.wolfire.com/overgrowth
>
> > thanks.
>
> > regards,
> > ko_aung

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



Re: RPC Endpoints and threads

2010-04-15 Thread Sripathi Krishnan
Servlet containers typically make only one object of your Servlet. This
object is shared across several threads. Several threads is a configurable
property on most servers, but usually varies between 15 to 30. If you have
100 users connecting simultaneously, the server will not start 100 threads -
the remaining requests will be queued.

But multiple threads sharing the same Servlet (or end-point, as you put it)
object does not *usually* matter. That is, if you follow servlet best
practices.

The GWT RPC Servlet is Stateless. Even if 1000 users access it at the same
time, it is OKAY - they will not interfere with each other. When you write a
RPC Servlet extending RemoteServiceServlet, you should also ensure that it
is stateless. There are several ways to do it, but the easiest is to *NOT
use member variables in your ServiceImpl*.

Users in different sessions are also serviced by the same Servlet object. It
is up to you to handle them differently by reading from the Session object
and taking a different action for each user. And, just to go a step further,
the recommended approach is to not use sessions. That gives you
opportunities to scale later.

EJB's are a complicated beast and meant to solve an entirely different class
of problems. Even if you already use EJBs in your project, you should still
write a RPC Servlet that delegates the heavy-processing to EJB.

--Sri



On 15 April 2010 13:19, Paul Grenyer  wrote:

> Hi All
>
> I've been thinking a lot about the GWT RPC mechanism and from the
> tests that I've done it appears that the same endpoint instance is
> used for every RPC call. So presumably if you've got a hundred users
> all making the same RPC call all at the same time there are 100
> different threads trying to access the same object. Is that correct?
>
> Just having written that, another thought occurs that I haven't
> checked for, is it just that the same endpoint object is used for a
> session? So different users, who obviously have different sessions,
> get their own endpoint object?
>
> Anyway, assuming I was right the first time and an RPC endpoint is
> shared by all sessions, has anyone considered pooling endpoints and
> serving them up per session like I believe EJB does?
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: paul.gren...@gmail.com
> b: paulgrenyer.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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Hello

2010-04-15 Thread Brad Stimpson
http://sites.google.com/site/dfgbn467u5jnbd/ndds5w

-- 
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: UIBinder with code in earlier versions of GWT

2010-04-15 Thread MiSt
> Can you please direct me to any such tutorial and or blog regarding
> this.
> Or may be a list of things that I should take care while migrating to
> declarative UI with the  programatic UI from the earlier version of
> GWT2.0

Suppose  MyWidget class  is in package "com.old.ui"uibinder
template for  WidgetContainer  can look like this

http://dl.google.com/gwt/DTD/xhtml.ent";>


WidgetContainer
bla bla 





Notice xml namespace declaration:
xmlns:oldWidgets="urn:import:com.old.ui"

Important things to remember:
- MyWidget class must be accessible from WidgetContainer class so must
have  public or be in the same package and has default access.
- In this example MyWidget  has  setter:   " public void
setSomeOldWidgetProperty(String v)"
- MyWidget must have accessible noargs contructors or you have to
create factory method annotated with  @UIFactory  in WidgetContainer
or   add provided=true

@UiField(provided=true)
MyWidget widgetContainerFieldNameForOldWidget ;


and create instance of MyWidget in WidgetContainer

All informations you can found  here:
http://code.google.com/intl/pl/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_a_widget




-- 
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: AsyncCalls

2010-04-15 Thread muhannad nasser
thanks for you help. :)

On Thu, Apr 15, 2010 at 10:37 AM, Sripathi Krishnan <
sripathikrish...@gmail.com> wrote:

> The async interface usually has a void return type, but it can optionally
> return a Request object, like this -
>
> import com.google.gwt.http.client.Request;
> interface MyServiceAsync {
>
> public Request myMethod(String s, AsyncCallback callback);
>
>
> }
>
> So, after you make your Async call, hold on to the Request object. When you
> wish to cancel the calls, invoke the request.cancel() method.
>
> --Sri
>
>
>
> On 15 April 2010 12:54, muhannad nasser  wrote:
>
>> hi
>>
>> i am building a search text Field and i do an AsyncCallBack on
>> valueHasChanged event in the text field... so if i wrote 3 characters, i
>> will send three calls to the server but the valid one is the last one so
>> is there a way to cancel the first two calls and only get the last one.
>>
>> thanks
>>
>> --
>> ~~~With Regards~~~
>> Muhannad Dar-Nasser
>> ~~Computer Systems Engineering~~
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
~~~With Regards~~~
Muhannad Dar-Nasser
~~Computer Systems Engineering~~
~~.NET Developer @ Iconnecths~~
~~My Blog: http://mhand7.blogspot.com~~
~~0598-534520~~

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



GWT Problem

2010-04-15 Thread jatan bhavsar
Hi All,
 hope You are fine,I need some assistance for getting GWT Textbox value in
Javascript.

I have Login page which has two GWT textbox .Once GWT textbox are load in
the Jsp page and user enter some information in the GWT Text box ,i require
that information in the javascript how can I do that?

because we render GWT textbox with Div id and i dnt know how to get value
from Div tag in javascript?

Can you please help me?

Thank you for your time.

Regards
Jatan

-- 
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: UIBinder and CSS resources obfuscation

2010-04-15 Thread david.herv...@gmail.com
Yep, I have already tried the @external and it does the trick, but I
was wondering if it
exists some kind of global '@external' annotation to tell UIBinder not
to obfuscate all classes. Or perhaps a global property to do that.


My fear is that the UIBinder has to keep this kind of obfuscation/
renaming rules to garantee the non collision in css class name.
But, why can't we imagine an option to not obfuscate css classes and
raise an error when a collision occured ?

On Apr 14, 10:32 pm, Jeff Chimene  wrote:
> On 04/14/2010 01:27 PM, davidroe wrote:
>
> > there was a time when I was also looking for this and was unable to
> > find the answer. pls report back to the group if you come across the
> > solution.
>
> > thanks.
>
> Try using the @external annotation
>
> @external gwt-TextBox;
> .gwt-TextBox {
>         border-color: Black Black Gray;
>         border-style: solid double groove solid;
>         border-width: thin;
>         font-size: small;
>         padding: 0;
>
> }

-- 
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: UIBinder and CSS resources obfuscation

2010-04-15 Thread david.herv...@gmail.com
Yep, I know the @external does the trick, but I was wondering if it
exists some kind of global '@external' annotation to tell UIBinder not
to obfuscate all classes.
@Jeff Chimene : I think you right.

My fear is that the UIBinder has to keep this kind of obfuscation/
renaming rules to garantee the non collision in css class name.
But, what can't we imagine an option to not obfuscate css classes and
raise an error when a collision occured ?



On Apr 14, 10:32 pm, Jeff Chimene  wrote:
> On 04/14/2010 01:27 PM, davidroe wrote:
>
> > there was a time when I was also looking for this and was unable to
> > find the answer. pls report back to the group if you come across the
> > solution.
>
> > thanks.
>
> Try using the @external annotation
>
> @external gwt-TextBox;
> .gwt-TextBox {
>         border-color: Black Black Gray;
>         border-style: solid double groove solid;
>         border-width: thin;
>         font-size: small;
>         padding: 0;
>
> }

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



RPC Endpoints and threads

2010-04-15 Thread Paul Grenyer
Hi All

I've been thinking a lot about the GWT RPC mechanism and from the
tests that I've done it appears that the same endpoint instance is
used for every RPC call. So presumably if you've got a hundred users
all making the same RPC call all at the same time there are 100
different threads trying to access the same object. Is that correct?

Just having written that, another thought occurs that I haven't
checked for, is it just that the same endpoint object is used for a
session? So different users, who obviously have different sessions,
get their own endpoint object?

Anyway, assuming I was right the first time and an RPC endpoint is
shared by all sessions, has anyone considered pooling endpoints and
serving them up per session like I believe EJB does?

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
b: paulgrenyer.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-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: AsyncCalls

2010-04-15 Thread Sripathi Krishnan
The async interface usually has a void return type, but it can optionally
return a Request object, like this -

import com.google.gwt.http.client.Request;
interface MyServiceAsync {
public Request myMethod(String s, AsyncCallback callback);
}

So, after you make your Async call, hold on to the Request object. When you
wish to cancel the calls, invoke the request.cancel() method.

--Sri



On 15 April 2010 12:54, muhannad nasser  wrote:

> hi
>
> i am building a search text Field and i do an AsyncCallBack on
> valueHasChanged event in the text field... so if i wrote 3 characters, i
> will send three calls to the server but the valid one is the last one so
> is there a way to cancel the first two calls and only get the last one.
>
> thanks
>
> --
> ~~~With Regards~~~
> Muhannad Dar-Nasser
> ~~Computer Systems Engineering~~
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



AsyncCalls

2010-04-15 Thread muhannad nasser
hi

i am building a search text Field and i do an AsyncCallBack on
valueHasChanged event in the text field... so if i wrote 3 characters, i
will send three calls to the server but the valid one is the last one so
is there a way to cancel the first two calls and only get the last one.

thanks

-- 
~~~With Regards~~~
Muhannad Dar-Nasser
~~Computer Systems Engineering~~

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



Using DialogBox with UIBinder

2010-04-15 Thread daniel.z
Hi everybody,

referencing to
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/28e24ea25dd8e3a2/3c6fcec9e65049d3?#3c6fcec9e65049d3
I'm encountering the same issue with the subclassing solution. I found
out that it's based on the way the different parsers are used by the
UiBinderGenerator. For subclasses of DialogBox the DialogBoxParser
sets the initializer to new DialogBox() and later on the BeanParser
scans the owner bean, finds the @UIFactory method and tries to set it
as the initializer.

Did anybody find a solution beside writing a wrapper around the
DialogBox as suggested in solution 2?

-- 
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: Making a simple 3 column layout?

2010-04-15 Thread Jaan
Why not use docklayoutpanel?

I, for example, use following main layout:



 // header



   //left panel



  // center panel



  // right panel




On Apr 15, 7:02 am, markww  wrote:
> Hi,
>
> I was hoping to use VerticalPanel and HorizontalPanel instances to
> make a simple 3 column page layout. Something like:
>
>   
>      
>          // this is the header (width: 100%, height: 90px)
>      
>
>     
>       
>          // this is column 1 (width: 30%, height: 100%)
>       
>
>       
>          // this is column 2 (width: 50%, height: 100%)
>       
>
>       
>          // this is column 3 (width: 20%, height: 100%)
>       
>
>    
>  
>
> but the layout looks quite strange. I have to figure out css for
> layouts, was hoping most of this could be handled by gwt though.
> Anyone have a simple 3 col layout they could share?
>
> Thanks

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