Re: implementing Java's URI in GWT

2012-02-08 Thread Thomas Broyer


On Tuesday, February 7, 2012 10:44:56 PM UTC+1, Sebastian Gurin wrote:

 On Tue, 7 Feb 2012 13:39:32 -0800 (PST)
 Thomas Broyer wrote:

  AIUI,MIT license allows you to re-license the code under Apache 
 (sublicense). But I wonder why you simply don't use the regex from the RFC?

 For a java programmer it is nicer to use the java API if possible, I 
 think...

I was suggesting using the RFC as the *starting point*, rather than some JS 
code by another developer (which itself is based on the regex from the RFC) 

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



Re: no RadioButtonCell in GWT 2.4 Cell?

2012-02-08 Thread Thomas Broyer
You can use a CheckboxCell coupled with a SingleSelectionModel, the 
selection model will take care of keeping only a single checkbox selected.

Or search the archives of this group, someone posted a RadioButtonCell 
implementation a few months ago.

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



How to hide a column in CellTable

2012-02-08 Thread Vibhas Zanpure
Hello,


I tried using setColumnWidth to 0px and also tried clearColumnWidth...
But its not working... Any suggestions? I am using IE8 in quirks
mode...Thanks in advance

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



Re: How to hide a column in CellTable

2012-02-08 Thread karthik vadapalli
http://stackoverflow.com/questions/7116758/how-to-hide-column-in-cell-table-gwt
watch this it might be useful for you

On Wed, Feb 8, 2012 at 2:53 PM, Vibhas Zanpure vibhas.zanp...@gmail.comwrote:

 Hello,


 I tried using setColumnWidth to 0px and also tried clearColumnWidth...
 But its not working... Any suggestions? I am using IE8 in quirks
 mode...Thanks in advance

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




-- 
Regards,
v.karthik,
+919967930663.

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



Re: How to hide a column in CellTable

2012-02-08 Thread Vibhas Zanpure
Thanks Karthik for the reply :)...

However, in my case, I cant use fixed table layout and therefore can't
use setColumnWidth to 0px... So is there any other way ?

On Feb 8, 2:30 pm, karthik vadapalli karthik29...@gmail.com wrote:
 http://stackoverflow.com/questions/7116758/how-to-hide-column-in-cell...
 watch this it might be useful for you

 On Wed, Feb 8, 2012 at 2:53 PM, Vibhas Zanpure 
 vibhas.zanp...@gmail.comwrote:









  Hello,

  I tried using setColumnWidth to 0px and also tried clearColumnWidth...
  But its not working... Any suggestions? I am using IE8 in quirks
  mode...Thanks in advance

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

 --
 Regards,
 v.karthik,
 +919967930663.

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



GWT, JQuery, Tipsy

2012-02-08 Thread kellizer
Hi All,

I need to get tipsy ( http://onehackoranother.com/projects/jquery/tipsy/ ) 
working with GWT as the designers have introduced this in along with GWT 
and I can't face to telling them tipsy can't be supported!

From analysis - it it works with JQUERY to traverse through the DOM and 
looks for the title attribute on an element and if it finds this 
attribute it adds a mouse over/mouse out to that element. I can get this 
working without GWT and in the host page (by importing the js files 
required) but when I bring back in the GWT js bootstrap it stops working? 

I need to populate the tipsy tooltips for both elements in the host page  
also elements that are defined in the ui.xml files  what I have been 
thinking/researching is that if it would be feasible to call the tipsy JS 
traverse command directly from GWT via the JSNI when the DOM has been built 
in GWT? Does that sound feasible? anyone got any suggestions/advice on how 
to crack this one?


Thanks in advance..

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



how to use JNDI datasource in gwt 2.4 hosted mode?

2012-02-08 Thread tong123123
I try to use JNDI datasource in gwt 2.4 hosted mode as follow;

Context ctx = new InitialContext();
ctx.bind(jdbc/ALS, ds);

but then javax.naming.NoInitialContextException is thrown.
the error message is
need to specify class name in environment or system property, or as
an applet parameter, or in an application resource file:
java.naming.factory.inintial

how to fix this problem?

thanks

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



Re: Modify DateBox behaviour

2012-02-08 Thread Appien
HI Jhulford,

I dont get it. What should my parse method do if I not want my Datebox
to modify the values entered in the DateBox? Should it just return
null ?

Regards



On Feb 7, 3:34 pm, jhulford jhulf...@gmail.com wrote:
 You can pass in your own Format implementation when creating your
 DateBox and you'll have total control how the text value input from
 from the user is parsed into a Date object.

 On Feb 7, 1:51 am,Appienappienvanv...@gmail.com wrote:







  Hi folks,

  Currently I'm struggling the DateBox widget of GWT. It's a nice widget
  however I can't find a way to modify its default behaviour. When I
  know enter e.g. '12/2/12' it automaticly get parsed and changed the
  input to '12/2/0012'. However I want to stop the DateBox from
  automatically changing the input and just mark it with the red css
  styling if it doesn't match the regular expression dd/mm/.

  Is there a way to stop DateBox from automaticallychanging the input?
  I've already found the DateBox.DefaultFormat object and found
  reference to handler, but could not find the proper way to implement
  it.

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



Re: MVP framework

2012-02-08 Thread John99
Perfect tips Thomas. Thank you!
Have a question about this item:

You should check whether the activity is still active before calling 
PlaceController#goTo from your Receiver: the user might have navigated away 
from the activity already. 

How we can check it?   placeController.getWhere() ?

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



Re: Places Activities - best practice of asynchronous data loading

2012-02-08 Thread Zdeněk Doležal
Thank you for your replies.

Thomas, it was me who misunderstood your answer ;-). So are saying that if
view is calling fetchXxx it is actually fetching data. So, I can rename
then method from fetchXxx to onDataNeeds and its fine? But back to the
problem, whats best solution (just interface with methods) for following
situation:

1) Presenter is starting view.
2) View is building some widgets, components etc.
3) One widget need to be fill with data of EntityProxy (so call to
presenter is needed).
4) After having a response, view continues to build more widget according
results.
5) For some extra widgets view has created, we need another bunch of data
based on concrete EntityProxy (so call for extra data).
6) That widgets need to be filled after response from presenter is received.

Because of asynchronous communication, there must be defined setter
methods on the view (if I don't use callbacks from the view, eg Receiver)
for setting the reponses. These methods tends to be a little problematic
because you probably have to find right widget the response is concerned to
(this is not needed with callbacks because you have your final variables
available). And this is my problem.

Am I really violating MVP design with the callbacks? Because this finding
of widgets / elements after response is received can be time consuming.

Solution with callbacks.
interface presenter {
  onDataNeeds(Receiver callback);
  onExtraDataNeeds(EntityProxy item, Receiver callback);
}

No special methods on view. But without callbacks, there must be two setter
methods, eg:
interface view {
  setData(data);
  setExtraData(EntityProxy item);
}

You need to find correct widget in setExtraData according item. You cannot
pass widget information to presenter. And for example if you have table and
want to modify some row, you have to go through it and find that row based
on EntityProxy item.

Zdenek

On Tue, Feb 7, 2012 at 5:16 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On Tuesday, February 7, 2012 3:09:36 PM UTC+1, Zdenek wrote:

 Thank you for your reply. I probably didn't describe my question exactly
 because you misunderstood it completelly.

 I'm talking about GWT MVP approach through Places  Activities -
 http://code.google.com/**webtoolkit/doc/latest/**
 DevGuideMvpActivitiesAndPlaces**.htmlhttp://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html



 Places and Activities, despite what can be said in the docs, have nothing
 to do with MVP (you can very well make an Activity that doesn't use MVP).
 Whether you use Activities or not (e.g. following the part II tutorial)
 doesn't change your question.

 - I'm providing fully MVP friendly interfaces that looks nearly same as in
 that article (View implements it and activity implements its Presenter
 interface part).
 - I'm not talking about fetching data in views anywhere in my question,
 only whether view can pass Receiver into Activity.


 You're defining fetchXxx methods on your presenter, to be called by the
 view, so the view indeed is fetching data (through the presenter, but
 that doesn't change the problem).

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/kNo1dJyZRVEJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
S pozdravem
Zdeněk Doležal

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



Re: Exception trigger if server is not working

2012-02-08 Thread bognekadje
Thanks for reply Filipe,

I will try to catch StatusCodeException.

Thanks for all.

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



Re: How to hide a column in CellTable

2012-02-08 Thread Ümit Seren
Well the stackoverflow thread has actually the solution. You can just 
remove the column and add it when you need it. 

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



Re: GWT, JQuery, Tipsy

2012-02-08 Thread Sebastian Gurin
I don't see why not. This is what I would do:

1) create a folder named public at the same level of your project's *.gwt.xml 
file

2) In your project's *.gwt.xml file include the required javascripts, 
In your case jquery.js and tipsy.js or whatever, like this:

inherits name=com.google.gwt.user.User /
...
script src='jquery.js' /
script src='tipsy.js' /

3) create a method for invoking tipsy natively:

public static native void tipsy(String id)/*-{
$wnd.$('#'+id).tipsy();
}-*/;


A tip, you can use GWT dom classes for accessing the DOM elements directly and 
safely.

Good look, tell us about your results!




On Wed, 8 Feb 2012 02:27:28 -0800 (PST)
kellizer kelli...@gmail.com wrote:

 Hi All,
 
 I need to get tipsy ( http://onehackoranother.com/projects/jquery/tipsy/ ) 
 working with GWT as the designers have introduced this in along with GWT 
 and I can't face to telling them tipsy can't be supported!
 
 From analysis - it it works with JQUERY to traverse through the DOM and 
 looks for the title attribute on an element and if it finds this 
 attribute it adds a mouse over/mouse out to that element. I can get this 
 working without GWT and in the host page (by importing the js files 
 required) but when I bring back in the GWT js bootstrap it stops working? 
 
 I need to populate the tipsy tooltips for both elements in the host page  
 also elements that are defined in the ui.xml files  what I have been 
 thinking/researching is that if it would be feasible to call the tipsy JS 
 traverse command directly from GWT via the JSNI when the DOM has been built 
 in GWT? Does that sound feasible? anyone got any suggestions/advice on how 
 to crack this one?
 
 
 Thanks in advance..
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-web-toolkit/-/mBJME9gMRS4J.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: unexpected padding under canvas element

2012-02-08 Thread Chris Price
Hi Philippe,

Another alternative which fixes the root cause of the issue, is to call -

canvas.getCanvasElement().getStyle().setDisplay(Display.BLOCK);

The problem is that the canvas display mode is inline, which causes
strange alignment issues like these (strange that is, unless you want
it to behave as inline element). You can see this in action by adding
a display:block to the canvas element using your browser's dev tools
at http://gwtcanvasdemo.appspot.com/.

Chris

On Tue, Feb 7, 2012 at 4:10 PM, Philippe Lhoste phi...@gmx.net wrote:
 On 07/02/2012 15:20, Rob wrote:

 s.setProperty(lineHeight, 10, Style.Unit.PX);


 That works for me too.  Thank you for taking the time to look at it.


 It is always an opportunity to learn new things... :-)


 After sleeping I see that I was forgetting the!doctype html  at the
 top of my static files, which caused them to render differently,
 without the space.  So it's not a GWT issue.  And after seeing your
 line-height suggestion, I thought of vertical-align.  Setting vertical-
 align:bottom (vs default of 'baseline') on the canvas eliminates the
 extra space, as desired.


 Aah, smart, cleaner than setting line-height to an arbitrary value, indeed.
 Good to know. Thanks.


 --
 Philippe Lhoste
 --  (near) Paris -- France
 --  http://Phi.Lho.free.fr
 --  --  --  --  --  --  --  --  --  --  --  --  --  --

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


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



Re: FF10, here we go again

2012-02-08 Thread Pablo Aguiar
On Mon, Feb 6, 2012 at 8:08 PM, Filipe Sousa nat...@gmail.com wrote:

 After applying the patch under code review I did
 $ yum install xulrunner-devel.x86_64
 $ make BROWSER=ff100 ARCH=x86_64
 DEFAULT_FIREFOX_LIB=/usr/lib64/xulrunner-devel-2
 GECKO_LIBS=/usr/lib64/xulrunner-devel-2/lib


Works beautifully well on my Debian GNU/Linux (sid) x86_64:

$ aptitude install xulrunner-dev
$ make BROWSER=ff100 ARCH=x86_64
DEFAULT_FIREFOX_LIB=/usr/lib/xulrunner-devel-10.0
GECKO_LIBS=/usr/lib/xulrunner-devel-10.0/lib

Thank you very much Felipe!

Cheers,
-- 
Pablo Aguiar (scorphus) scorp...@gmail.com
Free/Open Source Software Developer/Consultant
FOSS Infrastructure Specialist
http://www.phpeclipse.com/wiki/Community
http://sourceforge.net/users/scorphus

http://www.bookdepository.co.uk/?a_aid=063afaa_bid=1d4f390echan=sgmhttps://mail.google.com/

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



Re: FF10, here we go again

2012-02-08 Thread Kenny Neal
I had the same issue. After installing the plugin provided by Filipe, it 
was still getting the dialog.

I compiled this version for ubuntu 11.04 x64:
http://dl.dropbox.com/u/24610398/gwt-dev-plugin.xpi

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



GWT strange code generation on float numbers

2012-02-08 Thread Andrey Korzhevskiy
Hello everyone,

I found interesting issue. Suppose I have this java code:

float f = 0.01f;
someFunc(f)

which is generated by GWT into js code, something like that

someFunc(9.9534e-7) 


So my question is: if GWT sees constant in code why it processes this 
constant so strange? I expect to see in generated js this call: 
someFunc(0.01)
Is there some complex float numbers processing in gwt-dev?


Thank you, 
Andrew

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



Embedding an external site into my GWT app

2012-02-08 Thread Sander Smith


I'm building a GWT application that looks great. At the end of the page I'd 
like to include a WordPress blog that I'm developing. In order to do that I 
want to use a com.google.gwt.user.client.ui.Frame so that an IFrame gets 
created, and the blog just gets seamlessly embedded.

I've built this and it seems to work, although there's a problem with the 
size of the IFrame. I'm not sure how it's getting sized, but it's too small 
so that scrollbars are thrown onto it. This makes the embedding not so 
seamless. The real problem is that in general I know the width of the blog 
which is static, but the height is dynamic.

What should I be doing so that this second webiste can be seamlessly 
embedded into my GWT app?

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



I need help/tips with general application architecture

2012-02-08 Thread divStar
Hello,

I've been using GWT for about two years now. In this period I've
rewritten major parts of my application a few times. However: as I
implement more and more stuff into it, I lose overview and sometimes
am dazzled by the complexity my application has reached. It's not that
the application is big - it isn't. It barely consists of some under
500 classes.

Do you have any hints or suggestions on how to keep an application as
simple as possible (code- and class-wise) while also ensuring that the
application consists of highly reusable classes?

At the moment my application is written from scratch. I haven't used
any UIBinders or any other framework - for the sake of compatibility
(I want to be able to update to next major GWT release as fast as
possible). My project consists of the client, server and shared
packages. I'm having a hard time with my client-package - the server-
files and -classes are just fine (I have a few static services and
some servlets, that are used during GWT-RPC). My shared package
contains all my DTOs that I'm sending back and forth - nothing else.

In my application the users can log into their (supposed) game
accounts and browse the inventory of their characters. They can also
browse all items that are available on the server as well as all NPCs
(non-player-characters) that are available on the server. The
celltable, pagination and filtering controls are used within all those
3 pages. However: I feel that the code is somehow overly complex and I
sometimes loose track about the eventhandlers and their
implementations etc.

What is the right way to go about a GWT application design? You can
find my project including the source-code here: https://code.google.com/p/odrop/
. I figured it's very easy to add functionality, but it's pretty hard
to keep it all very flexible.

I'm grateful for every suggestion or tip (book-suggestions, tutorials
or anything else on this matter is very welcome). I'm not using any
framework on top of GWT as I feel like I don't know what's going on
under the hood if I did use them.

Thank you very much in advance :).
divStar.

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



Re: Embedding an external site into my GWT app

2012-02-08 Thread Jens
Never done it before so maybe it doesn't work, but I would try:

yourFrame.addLoadHandler(new LoadHandler() {
  public void onLoad(LoadEvent event) {
//Frame loaded. Read the content document height and resize the frame
FrameElement frameElement = yourFrame.getElement().cast();
Document contentDoc = frameElement.getContentDocument();
if(contentDoc != null) {
  int contentHeight = contentDoc.getDocumentElement().getOffsetHeight();
  yourFrame.setHeight(contentHeight + px);
}
  }
});


Maybe your need to wrap the implementation of onLoad() in a 
Scheduler.get().scheduleDeferred(...) to make sure that the content 
document and that getOffsetHeight() is available. 

-- J.

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



Re: ff10 gwt dev plugin x86

2012-02-08 Thread wbabachan
Sorry but it is not working !

On Feb 6, 7:07 pm, Filipe Sousa nat...@gmail.com wrote:
 and for fedora 16 i686 (no 
 tested)http://dl.dropbox.com/u/5176435/gwt-dev-plugin-i686.xpi

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



Re: Modify DateBox behaviour

2012-02-08 Thread jhulford
No, you'll want your parse method to handle the two digit year by
detecting that the user keyed that and then just returning a Date
object that has the valid years in it.

On Feb 8, 6:23 am, Appien appienvanv...@gmail.com wrote:
 HI Jhulford,

 I dont get it. What should my parse method do if I not want my Datebox
 to modify the values entered in the DateBox? Should it just return
 null ?

 Regards

 On Feb 7, 3:34 pm, jhulford jhulf...@gmail.com wrote:

  You can pass in your own Format implementation when creating your
  DateBox and you'll have total control how the text value input from
  from the user is parsed into a Date object.

  On Feb 7, 1:51 am,Appienappienvanv...@gmail.com wrote:

   Hi folks,

   Currently I'm struggling the DateBox widget of GWT. It's a nice widget
   however I can't find a way to modify its default behaviour. When I
   know enter e.g. '12/2/12' it automaticly get parsed and changed the
   input to '12/2/0012'. However I want to stop the DateBox from
   automatically changing the input and just mark it with the red css
   styling if it doesn't match the regular expression dd/mm/.

   Is there a way to stop DateBox from automaticallychanging the input?
   I've already found the DateBox.DefaultFormat object and found
   reference to handler, but could not find the proper way to implement
   it.

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



Re: FF10, here we go again

2012-02-08 Thread wbabachan
Hello everyone,

I have built the GWT Dev Plugin for Firefox 10 and could be downloaded from 
hier:

https://docs.google.com/leaf?id=0Bz789tz1BWLqNGRhZWFiOWUtODY4Yy00MDU5LTg5ZjItMGE4NjE0MTc1Y2E1

I hope it will help you.

Waruschan Babachan

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



GWT Developer Plugin for Firefox 10

2012-02-08 Thread wbabachan
Click on the following link to download gwt dev plugin for firefox 10:

https://docs.google.com/leaf?id=0Bz789tz1BWLqNGRhZWFiOWUtODY4Yy00MDU5LTg5ZjItMGE4NjE0MTc1Y2E1hl=de

Enjoy it :-)
Waruschan Babachan

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



Re: FF10, here we go again

2012-02-08 Thread Thad
I just installed this, but when I try to run in dev mode, I'm told
Sorry, the GWT Developer Plugin only supports Firefox 3.0 - 8.0 at
present

On Feb 8, 1:10 pm, wbabachan wbabac...@googlemail.com wrote:
 Hello everyone,

 I have built the GWT Dev Plugin for Firefox 10 and could be downloaded from
 hier:

 https://docs.google.com/leaf?id=0Bz789tz1BWLqNGRhZWFiOWUtODY4Yy00MDU5...

 I hope it will help you.

 Waruschan Babachan

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



warningThreshold compile error

2012-02-08 Thread Alan Chaney
I have a project that worked fine up until this morning. By accident, I 
removed the GWT SDK from the C/P and now I'm getting:


   [ERROR] Unexpected internal compiler error
java.lang.NoSuchFieldError: warningThreshold
at 
com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:413)
at 
com.google.gwt.dev.jdt.AbstractCompiler.getCompilerOptions(AbstractCompiler.java:561)
at 
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox.init(AbstractCompiler.java:474)
at 
com.google.gwt.dev.jdt.AbstractCompiler.init(AbstractCompiler.java:574)
at 
com.google.gwt.dev.jdt.BasicWebModeCompiler.init(BasicWebModeCompiler.java:56)
at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.init(WebModeCompilerFrontEnd.java:65)
at 
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)
at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)
at 
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:232)
at com.google.gwt.dev.Compiler.run(Compiler.java:198)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
at 
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
at 
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

at com.google.gwt.dev.Compiler.main(Compiler.java:177)
Shutting down PersistentUnitCache thread

I've looked on the web and seen comments about moving the build order in 
eclipse, and although I've tried various combinations I can't seem to 
find anything that works.


Any suggestions?

Thanks

Alan



(eclipse helios/latest 2.4.0 SDK/Win 7 x64)

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



Re: FF10, here we go again

2012-02-08 Thread wbabachan
This will work only in Linux, Tesed on Fedora 16 64 bit...

On Feb 8, 7:21 pm, Thad thad.humphr...@gmail.com wrote:
 I just installed this, but when I try to run in dev mode, I'm told
 Sorry, the GWT Developer Plugin only supports Firefox 3.0 - 8.0 at
 present

 On Feb 8, 1:10 pm, wbabachan wbabac...@googlemail.com wrote:







  Hello everyone,

  I have built the GWT Dev Plugin for Firefox 10 and could be downloaded from
  hier:

 https://docs.google.com/leaf?id=0Bz789tz1BWLqNGRhZWFiOWUtODY4Yy00MDU5...

  I hope it will help you.

 WaruschanBabachan

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



Re: GWT Developer Plugin for Firefox 10

2012-02-08 Thread wbabachan

Works only in Linux. Tested on Fedora 16 64 bit...

On Feb 8, 7:20 pm, wbabachan wbabac...@googlemail.com wrote:
 Click on the following link to download gwt dev plugin for firefox 10:

 https://docs.google.com/leaf?id=0Bz789tz1BWLqNGRhZWFiOWUtODY4Yy00MDU5...

 Enjoy it :-)
 Waruschan Babachan

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



Re: FF10, here we go again

2012-02-08 Thread Miousse
This xpi works also for OpenSUSE 11.4 / 12.1 x86_64

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



dialogBox

2012-02-08 Thread quince
i'm new to gwt and need help to understand how dialogBox is working.

i have app with 2 widgets, left and right.Left widget has button which
on click event shows dialogBox.Right widget is flowPanel with html
inside.When dialogBox shows and user click button on that dialogBox,
dialogBox should hide and html on right widget should change.But this
don't working, dialogBox is hiding but i can't change html in right
widget.Actually i can't do anything with both widgets by clicking
dialogBox button.Clicking dialogBox button calls procedure to change
html in right widget and that has no effect.Same procedure working if
is called from left widget.Help please, thanks.

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



Re: FF10, here we go again

2012-02-08 Thread Juan Carlos Aranda
Windows 7 64 bits... ?

2012/2/8 wbabachan wbabac...@googlemail.com

 This will work only in Linux, Tesed on Fedora 16 64 bit...

 On Feb 8, 7:21 pm, Thad thad.humphr...@gmail.com wrote:
  I just installed this, but when I try to run in dev mode, I'm told
  Sorry, the GWT Developer Plugin only supports Firefox 3.0 - 8.0 at
  present
 
  On Feb 8, 1:10 pm, wbabachan wbabac...@googlemail.com wrote:
 
 
 
 
 
 
 
   Hello everyone,
 
   I have built the GWT Dev Plugin for Firefox 10 and could be downloaded
 from
   hier:
 
  https://docs.google.com/leaf?id=0Bz789tz1BWLqNGRhZWFiOWUtODY4Yy00MDU5.
 ..
 
   I hope it will help you.
 
  WaruschanBabachan

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




-- 
*Juan Carlos Aranda*
Inteligencia de Negocios
jc_ara...@intel-negocios.com
+502 4192 2302
+502 2220 6876

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



Re: WARNING: failed _ah_ServeBlobFilter: java.lang.ClassCastException:

2012-02-08 Thread Dan
I created a new Roo project in Eclipse. After startup from the command
line (mvn gwt:run), I get the same exception the first time I try to
access the web app from the browser.

Dan

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



Show image with data as byte[]

2012-02-08 Thread Deepak Singh
Hi All,

I ahve an image data as byte array.
byte[] imageData = x.getBytes();

I need to show it on my html page and am getting this data along with other
data through Rpc.

What is the way to do it?

Thanks
Deepak Singh

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



Re: FF10, here we go again

2012-02-08 Thread Thad
Okay. I'm running Linux, but 32-bit.

I see some below asking for Win 7 64-bit. Is their gonna be a standard
location on Google where the current plugins are kept? Like a well-
labeled directory?

On Feb 8, 1:23 pm, wbabachan wbabac...@googlemail.com wrote:
 This will work only in Linux, Tesed on Fedora 16 64 bit...

 On Feb 8, 7:21 pm, Thad thad.humphr...@gmail.com wrote:







  I just installed this, but when I try to run in dev mode, I'm told
  Sorry, the GWT Developer Plugin only supports Firefox 3.0 - 8.0 at
  present

  On Feb 8, 1:10 pm, wbabachan wbabac...@googlemail.com wrote:

   Hello everyone,

   I have built the GWT Dev Plugin for Firefox 10 and could be downloaded 
   from
   hier:

  https://docs.google.com/leaf?id=0Bz789tz1BWLqNGRhZWFiOWUtODY4Yy00MDU5...

   I hope it will help you.

  WaruschanBabachan

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



Re: FF10, here we go again

2012-02-08 Thread Alan Leung
The new plugin is pushed:

https://dl.google.com/dl/gwt/plugins/firefox/1.0.10862/gwt-dev-plugin.xpi

-Alan



On Wed, Feb 8, 2012 at 11:11 AM, Thad thad.humphr...@gmail.com wrote:

 Okay. I'm running Linux, but 32-bit.

 I see some below asking for Win 7 64-bit. Is their gonna be a standard
 location on Google where the current plugins are kept? Like a well-
 labeled directory?

 On Feb 8, 1:23 pm, wbabachan wbabac...@googlemail.com wrote:
  This will work only in Linux, Tesed on Fedora 16 64 bit...
 
  On Feb 8, 7:21 pm, Thad thad.humphr...@gmail.com wrote:
 
 
 
 
 
 
 
   I just installed this, but when I try to run in dev mode, I'm told
   Sorry, the GWT Developer Plugin only supports Firefox 3.0 - 8.0 at
   present
 
   On Feb 8, 1:10 pm, wbabachan wbabac...@googlemail.com wrote:
 
Hello everyone,
 
I have built the GWT Dev Plugin for Firefox 10 and could be
 downloaded from
hier:
 
   
 https://docs.google.com/leaf?id=0Bz789tz1BWLqNGRhZWFiOWUtODY4Yy00MDU5...
 
I hope it will help you.
 
   WaruschanBabachan

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



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



Re: ff10 gwt dev plugin x86

2012-02-08 Thread Alan Leung
The new plugin is pushed:

https://dl.google.com/dl/gwt/plugins/firefox/1.0.10862/gwt-dev-plugin.xpi

-Alan

On Wed, Feb 8, 2012 at 9:33 AM, wbabachan wbabac...@googlemail.com wrote:

 Sorry but it is not working !

 On Feb 6, 7:07 pm, Filipe Sousa nat...@gmail.com wrote:
  and for fedora 16 i686 (no tested)
 http://dl.dropbox.com/u/5176435/gwt-dev-plugin-i686.xpi

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



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



Re: GWT, JQuery, Tipsy

2012-02-08 Thread kellizer
Works a treat - thank you very much

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



Re: Show image with data as byte[]

2012-02-08 Thread Jens
You can represent the byte data using base64 and then create a Data URI 
using the base64 string but IE8 only supports up to 32kb of data via Data 
URI (IE6/7 are not supported): http://en.wikipedia.org/wiki/Data_URI_scheme

If the base64 representation of your image is bigger than 32kb and you want 
to support IE8 and probably also IE6/7 you need a servlet that returns your 
byte array with the correct content type header. That way the browser can 
directly display the image using your servlet url, just like any other 
image.
So instead of returning the byte array in your RPC call you will just 
return the image url.

-- J.

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



Re: Show image with data as byte[]

2012-02-08 Thread Deepak Singh
So if i use the servlet to return the image data by setting it into
response, the will be refreshed for every images . Am i right ?

Thanks
Deepak

On Thu, Feb 9, 2012 at 1:02 AM, Jens jens.nehlme...@gmail.com wrote:

 You can represent the byte data using base64 and then create a Data URI
 using the base64 string but IE8 only supports up to 32kb of data via Data
 URI (IE6/7 are not supported):
 http://en.wikipedia.org/wiki/Data_URI_scheme

 If the base64 representation of your image is bigger than 32kb and you
 want to support IE8 and probably also IE6/7 you need a servlet that returns
 your byte array with the correct content type header. That way the browser
 can directly display the image using your servlet url, just like any other
 image.
 So instead of returning the byte array in your RPC call you will just
 return the image url.

 -- J.

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




-- 
Deepak Singh

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



Gwt 2.4 DialogBox close-icon

2012-02-08 Thread gwtTexter
I want to add a HTML Widget containing a close-icon with a
Clickhandler to Dialogbox.setHTML but it only accepts strings.
According Issue 1405 (http://code.google.com/p/google-web-toolkit/
issues/detail?id=1405) something is fixed regarding this problem, I'm
a bit unsure what and in which version it's in.
Can anyone shed som light on this? I know there is solutions extending
Dialogbox but if I can skip that it would be great!

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



Re: Show image with data as byte[]

2012-02-08 Thread Deepak Singh
Sorry.. Pls read as :

the 'page' will be refreshed

On Thu, Feb 9, 2012 at 1:15 AM, Deepak Singh deepaksingh...@gmail.comwrote:

 So if i use the servlet to return the image data by setting it into
 response, the will be refreshed for every images . Am i right ?

 Thanks
 Deepak


 On Thu, Feb 9, 2012 at 1:02 AM, Jens jens.nehlme...@gmail.com wrote:

 You can represent the byte data using base64 and then create a Data URI
 using the base64 string but IE8 only supports up to 32kb of data via Data
 URI (IE6/7 are not supported):
 http://en.wikipedia.org/wiki/Data_URI_scheme

 If the base64 representation of your image is bigger than 32kb and you
 want to support IE8 and probably also IE6/7 you need a servlet that returns
 your byte array with the correct content type header. That way the browser
 can directly display the image using your servlet url, just like any other
 image.
 So instead of returning the byte array in your RPC call you will just
 return the image url.

 -- J.

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




 --
 Deepak Singh




-- 
Deepak Singh

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



Re: GWT, JQuery, Tipsy

2012-02-08 Thread Sebastian Gurin
Glad to help. That is one side of developing a porting of an existing 
javascript toolkit to GWT. The other side of the work 
is to let the user to manipulate javascript native objects in your java code. 
You can use gwt overlay types for that. Explanation, for example, consider this 
tipsy javascript code:

$('#foo').tipsy({gravity: 'n'})

you can present the argument object {gravity: 'n'} using gwt overlay types like 
this:

public class TipsyConfig extends JavaScriptObject {
public final native String getGravity()/*-{
this.gravity;
}-*/;
public final native void setGravity(String g)/*-{
this[gravity]=g;
}-*/;
}


public class TipsyUtil {

//tipsy main method
public static native void tipsy(String id, TipsyConfig cfg) /*-{
$wnd.$('#'+id).tipsy(cfg);
}-*/;

//and create the native TipsyConfig in some method:
public static native TipsyConfig createConfig() /*-{
return {};
}-*/;
}

So now in your java client programs you can do all the job 100% in java like 
this:

TipsyConfig cfg = createConfig();
cfg.setGravity(w);
TipsyUtil.tipsy(div1, cfg);
TipsyUtil.tipsy(div2, cfg2);
etc

hope that helps too


On Wed, 8 Feb 2012 11:21:22 -0800 (PST)
kellizer kelli...@gmail.com wrote:

 Works a treat - thank you very much
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To view this discussion on the web visit 
 https://groups.google.com/d/msg/google-web-toolkit/-/a7aSczHMxSMJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 


-- 
Sebastian Gurin sgu...@softpoint.org

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



Re: GWT Developer Plugin for Firefox 10

2012-02-08 Thread Boris_siroB
Works on OS X (Lion 10.7.3) as well, for some reason. Here's what happened:

I carelessly missed @wbabachan's Works only on Linux followup and 
installed the previously linked plugin, then upgrading to FF10 without 
problems. As soon as I tried connecting to my project in Dev. Mode I got 
the GWT Plugin not Available message. D'oh!

In frustration I opened the Add-ons Manager and did Check for Updates. To 
my surprise a progress bar ran next to GWT Dev. Plugin and the version 
changed to 1.0.10862. I restarted FF and lo and behold: a successfull Dev. 
Mode connection.

Does anyone have an explanation?

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



Re: GWT Developer Plugin for Firefox 10

2012-02-08 Thread Alan Leung


 In frustration I opened the Add-ons Manager and did Check for Updates.
 To my surprise a progress bar ran next to GWT Dev. Plugin and the version
 changed to 1.0.10862. I restarted FF and lo and behold: a successfull Dev.
 Mode connection.

 Does anyone have an explanation?


The reason is that I have just pushed the official version.


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/wKHw9mBF71QJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



GWT Designer + MGWT library = Runtime exception

2012-02-08 Thread Transplant

I'm trying to use GWT Designer design mode with the mGWT mobile widget
library. I can reference the library widgets in XML and compile/run
just fine, but when I try to switch from XML Source mode to Design
mode in GWT Designer I get a runtime exception:

Internal Error
   encountered unexpected internal error.
   This could be caused by a bug or by a misconfiguration issue,
conflict, partial update, etc.
   java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.user.client.impl.DOMImpl' (did you forget to inherit a
required module?)


The mgwt library is in the build path, and I can freely use its
classes in UIBinder XML files, but it always barfs up when I try to
enter design mode. Since mGWT defines a larger number of target
platforms than vanilla GWT, is it possible that GWT Designer is asking
the mGWT library to instantiate an implementation of DOMImpl for a
platform that base GWT doesn't have - causing the above exception?
Since most of the mobile platforms share the same or similar DOM
implementation (a la webkit) is there some way for the mGWT library to
tell GWT Designer to use a safari implementation of DOMImpl as the
default?

Thanks in advance,


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



Dates and SafeHTML

2012-02-08 Thread Patrick Tucker
Is there a SafeHTML implementation for Dates?  I've done a little
digging and have not been able to find anything.

It may not add much overhead, but it seems pointless to sanitize a
formatted date, if a predefined format is used.

If not, is there something in the pipe?  Any reason there isn't?  Is
it something that would be added if someone took the effort to write
the code?

Thanks,
Pat

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



Re: I need help/tips with general application architecture

2012-02-08 Thread Stefan Ollinger

Hello,

i took a quick look over your code.

You should definitely try out UiBinder. This will make code like this 
much easier:

https://code.google.com/p/odrop/source/browse/trunk/ODropServer/src/odrop/client/pages/login/Login.java

Also MVP could be interesting to you. It decouples the widget logic from 
the application logic.


Depending on the application-type there are some other options to think 
about: Activities/Places, RequestFactory, Google Gin
Dont try to integrate all at once. An interesting article to read is: 
http://nathanmarz.com/blog/suffering-oriented-programming.html


Regards,
Stefan

On 08.02.2012 17:57, divStar wrote:

Hello,

I've been using GWT for about two years now. In this period I've
rewritten major parts of my application a few times. However: as I
implement more and more stuff into it, I lose overview and sometimes
am dazzled by the complexity my application has reached. It's not that
the application is big - it isn't. It barely consists of some under
500 classes.

Do you have any hints or suggestions on how to keep an application as
simple as possible (code- and class-wise) while also ensuring that the
application consists of highly reusable classes?

At the moment my application is written from scratch. I haven't used
any UIBinders or any other framework - for the sake of compatibility
(I want to be able to update to next major GWT release as fast as
possible). My project consists of the client, server and shared
packages. I'm having a hard time with my client-package - the server-
files and -classes are just fine (I have a few static services and
some servlets, that are used during GWT-RPC). My shared package
contains all my DTOs that I'm sending back and forth - nothing else.

In my application the users can log into their (supposed) game
accounts and browse the inventory of their characters. They can also
browse all items that are available on the server as well as all NPCs
(non-player-characters) that are available on the server. The
celltable, pagination and filtering controls are used within all those
3 pages. However: I feel that the code is somehow overly complex and I
sometimes loose track about the eventhandlers and their
implementations etc.

What is the right way to go about a GWT application design? You can
find my project including the source-code here: https://code.google.com/p/odrop/
. I figured it's very easy to add functionality, but it's pretty hard
to keep it all very flexible.

I'm grateful for every suggestion or tip (book-suggestions, tutorials
or anything else on this matter is very welcome). I'm not using any
framework on top of GWT as I feel like I don't know what's going on
under the hood if I did use them.

Thank you very much in advance :).
divStar.



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



Re: how to use JNDI datasource in gwt 2.4 hosted mode?

2012-02-08 Thread Rob
Hi,

This post might help:

- 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/ca34b53713d1aa36

And try googling gwt jndi hosted mode.

Cheers
Rob

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

On Feb 8, 9:37 pm, tong123123 tong123...@gmail.com wrote:
 I try to use JNDI datasource in gwt 2.4 hosted mode as follow;

 Context ctx = new InitialContext();
 ctx.bind(jdbc/ALS, ds);

 but then javax.naming.NoInitialContextException is thrown.
 the error message is
 need to specify class name in environment or system property, or as
 an applet parameter, or in an application resource file:
 java.naming.factory.inintial

 how to fix this problem?

 thanks

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



Re: I need help/tips with general application architecture

2012-02-08 Thread divStar
Thank you very much for the latter link - I just finished reading this
wonderful article. But - if I'm not mistaken - according to this
suffering-oriented programming I did the right thing: I collected a
set of use-cases (in my particular case: the ItemListener, NPCListener
and Belongings, which display different information in a very similar
manner), I hacked down a solution that sort-of works, but even though
I tried to prevent the mistakes you make almost by default, I'm sure
my code is sloppy and not as efficient as it could've been if it went
through a process described by Nathan Marz.

I think I'll try to do what itches me sort-of the most about my
program now: I really want to go about working on the application
business logic rather than having to deal with all the stuff regarding
the display etc. But in order to be able to get to developing that
business logic, I'll have to deal with the latter problem first, no? I
want to abstract the UI-elements as much as I can, to be able to have
them do the same work they do now, but make it easier for me to go
about the actual application logic.

If I consequently follow this idea, I'd be probably where I was at the
beginning: I think I'm not sure what I have to do first... try to
switch to some UiBinder-driven interface? Implement Activities/Places
or a MVP-approach? What I certainly dislike about what I've produced
is, that I have to deal with basic UI-definition as I had to when I
used Swing or AWT. And if I'm at the widgets, I want to be able to
encapsulate as much as possible in order for them to reveal just the
functionality I really need to have my use-case work.

Thank you for your reply :).

Igor.

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



Re: GWT Designer + MGWT library = Runtime exception

2012-02-08 Thread iassael
Same problem here and I was just looking for a solution

On Feb 8, 10:52 pm, Transplant transplant...@gmail.com wrote:
 I'm trying to use GWT Designer design mode with the mGWT mobile widget
 library. I can reference the library widgets in XML and compile/run
 just fine, but when I try to switch from XML Source mode to Design
 mode in GWT Designer I get a runtime exception:

 Internal Error
    encountered unexpected internal error.
    This could be caused by a bug or by a misconfiguration issue,
 conflict, partial update, etc.
    java.lang.RuntimeException: Deferred binding failed for
 'com.google.gwt.user.client.impl.DOMImpl' (did you forget to inherit a
 required module?)

 The mgwt library is in the build path, and I can freely use its
 classes in UIBinder XML files, but it always barfs up when I try to
 enter design mode. Since mGWT defines a larger number of target
 platforms than vanilla GWT, is it possible that GWT Designer is asking
 the mGWT library to instantiate an implementation of DOMImpl for a
 platform that base GWT doesn't have - causing the above exception?
 Since most of the mobile platforms share the same or similar DOM
 implementation (a la webkit) is there some way for the mGWT library to
 tell GWT Designer to use a safari implementation of DOMImpl as the
 default?

 Thanks in advance,

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



Re: I need help/tips with general application architecture

2012-02-08 Thread Stefan Ollinger

Hello,

UiBinder saves you from manually creating the widget hierarchy. You can 
also hack the css directly into the .ui.xml files, which is a great time 
saver and also reduces the amount of code used in the widgets. I did 
make positive experience with HTMLPanel, which reduces the markup in the 
.ui.xml files, since you can use light-weight html markup to create some 
parts of the widget layout. I suggest you to take a look at UiBinder first.
MVP is great to separate the display logic from the business/application 
logic.


Regards,
Stefan

On 09.02.2012 00:15, divStar wrote:

Thank you very much for the latter link - I just finished reading this
wonderful article. But - if I'm not mistaken - according to this
suffering-oriented programming I did the right thing: I collected a
set of use-cases (in my particular case: the ItemListener, NPCListener
and Belongings, which display different information in a very similar
manner), I hacked down a solution that sort-of works, but even though
I tried to prevent the mistakes you make almost by default, I'm sure
my code is sloppy and not as efficient as it could've been if it went
through a process described by Nathan Marz.

I think I'll try to do what itches me sort-of the most about my
program now: I really want to go about working on the application
business logic rather than having to deal with all the stuff regarding
the display etc. But in order to be able to get to developing that
business logic, I'll have to deal with the latter problem first, no? I
want to abstract the UI-elements as much as I can, to be able to have
them do the same work they do now, but make it easier for me to go
about the actual application logic.

If I consequently follow this idea, I'd be probably where I was at the
beginning: I think I'm not sure what I have to do first... try to
switch to some UiBinder-driven interface? Implement Activities/Places
or a MVP-approach? What I certainly dislike about what I've produced
is, that I have to deal with basic UI-definition as I had to when I
used Swing or AWT. And if I'm at the widgets, I want to be able to
encapsulate as much as possible in order for them to reveal just the
functionality I really need to have my use-case work.

Thank you for your reply :).

Igor.



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



Re: MVP framework

2012-02-08 Thread dparish
Thomas,

I'm working on restructuring AppActivityMapper so that I inject in the 
Activities.  My reasoning for the static injector was it kept me from 
having gigantic constructor arguments.  If AppActivityMapper has 30 
activities, that's alot of constructor arguments.  

MyApp.getInjector().getActivityFoo()  seemed like a very clean way to get 
around that.  I get that it breaks injection though.  

I could pass in the injector but I suspect that's bad form as well ;)

I could have injected fields, but that's pretty heavily frowned upon, but 
it sure makes for more readable code.  Any options?  How about a Provider 
that can provide mutliple classes.

Something like
ProviderActivity parentProvider
that could return  child classes?  From reading the Guice docs that doesn't 
seem it would work.


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



Re: Problem to load data from Database

2012-02-08 Thread Juan Carlos Aranda
Hola Gianluca

Yo estoy empezando a utilizar Firebird. No se si ya resolviste el problema, 
pero yo estoy teniendo el mismo. Veo que el error es lanzado al momento de 
asignar el driver:

* Class.forName(driverName).newInstance();  *

Ni siquiera pasa a realizar la conexión.

Tu encontraste alguna solución, sino, yo estaré buscando y si la encuentro 
yo te estaré contando como lo solucioné.

Saludos


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



Re: CalendarUtil has no hour, minute, seconds options

2012-02-08 Thread Patrick Tucker
You can implement the functions yourself pretty easily.  I don't have
them in front of me but you just have to convert the date to
milliseconds and add the correct number of milliseconds to the number
and turn it back into a date.

On Feb 7, 12:52 am, tong123123 tong123...@gmail.com wrote:
 as gwt has no Calendar class, how to do something like current time
 minus 5 minutes, current time minus 5 hours?
 I see the CalendarUtil class but it has just
 addDaysToDate(java.util.Date date, int days)  and
 addMonthsToDate(java.util.Date date, int months) method?

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



gwt root panel presenter question

2012-02-08 Thread Joshua Carey
I am new to gwt and I have followed the examples on gwt page to create a 
simple (3 tabbed) gwt project.  In my root panel view and presenter 
classes, there is a drop down box that has street names.  The drop down has 
about 10 different values with the default being the first one.  My 
question is, if I am in viewing my third tab (customer screen) which is 
class customerpresenter.class and customerview.class.  At the top of the 
screen shows the drop down list box from the rootpanel presenter.  How can 
I get the currently selected value in the drop down list box from rootpanel 
presenter, when im in the code from my 3rd tab (customerpresenter.class), 
how can I access the value of the listbox, since technically they are two 
different classes?

Thanks,

Joshua

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



Getting name of Column in overrided method onColumnSort of ColumnSortEvent.Handler in GWT2.4

2012-02-08 Thread vaibhav jain
Hello All,
  I am implementing ColumnSortEvent.Handler in my class in
which i am making a datagrid ,am overriding its onColumnSort method.

public void onColumnSort(ColumnSortEvent event) {


}

here in this method ,how can i find the name of my column who has been
clicked.


Regards,
vaibhav

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



Re: FF10, here we go again

2012-02-08 Thread Thomas Klöber

Am 08.02.2012 20:16, schrieb Alan Leung:

The new plugin is pushed:

https://dl.google.com/dl/gwt/plugins/firefox/1.0.10862/gwt-dev-plugin.xpi

great, works on Windows 7 64bit and Windows Server 2003 R2 SP2, 32bit.

Thanx Alan

--
Intelligent Communication Software Vertriebs GmbH
Firmensitz: Kistlerhof Str. 111, 81379 München
Registergericht: Amtsgericht München, HRB 88283
Geschäftsführer: Albert Fuss

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



Re: Modify DateBox behaviour

2012-02-08 Thread Appien
Bummer! I was setting the Format correctly however somewhere later in
the constructor I was overwriting the Formatter with the
defaultformat.

Thanks for your help.

On Feb 8, 6:49 pm, jhulford jhulf...@gmail.com wrote:
 No, you'll want your parse method to handle the two digit year by
 detecting that the user keyed that and then just returning a Date
 object that has the valid years in it.

 On Feb 8, 6:23 am,Appienappienvanv...@gmail.com wrote:







  HI Jhulford,

  I dont get it. What should my parse method do if I not want my Datebox
  to modify the values entered in the DateBox? Should it just return
  null ?

  Regards

  On Feb 7, 3:34 pm, jhulford jhulf...@gmail.com wrote:

   You can pass in your own Format implementation when creating your
   DateBox and you'll have total control how the text value input from
   from the user is parsed into a Date object.

   On Feb 7, 1:51 am,Appienappienvanv...@gmail.com wrote:

Hi folks,

Currently I'm struggling the DateBox widget of GWT. It's a nice widget
however I can't find a way to modify its default behaviour. When I
know enter e.g. '12/2/12' it automaticly get parsed and changed the
input to '12/2/0012'. However I want to stop the DateBox from
automatically changing the input and just mark it with the red css
styling if it doesn't match the regular expression dd/mm/.

Is there a way to stop DateBox from automaticallychanging the input?
I've already found the DateBox.DefaultFormat object and found
reference to handler, but could not find the proper way to implement
it.

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



[gwt-contrib] Re: Make splitpoint.xml CodeSplitter2 aware. (issue1639803)

2012-02-08 Thread cromwellian

LGTM


http://gwt-code-reviews.appspot.com/1639803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Make splitpoint.xml CodeSplitter2 aware. (issue1639803)

2012-02-08 Thread cromwellian

LGTM


http://gwt-code-reviews.appspot.com/1639803/

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] RPC payload question: Why use fully qualified class names?

2012-02-08 Thread Alex Epshteyn
Hi guys,

I'm sorry I'm not up-to-date on recent GWT development efforts, but
does the current version of the GWT-RPC serialization scheme still use
fully qualified class names in the payload string? (e.g.
com.example.foo.Foo in the method signature part of the payload, and
then again as com.example.foo.Foo/12345 in the argument part of the
payload.

If so, then I bet payload sizes can be reduced dramatically by using a
lookup table for class names.  I'd be willing to work on a patch of
this.

Once again, I apologize if this has already been addressed (my company
still uses GWT 1.5).

Thanks,
Alex

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors