Re: Injected CSS rules are evaluated after onModuleLoad/Widget#onLoad

2010-01-08 Thread Sebastian Beigel
I found a work around, I wrapped the positioning code in my onLoad() method in a DeferredCommand and it works. Is this the preferred solution for this problem? Sebastian On Fri, Jan 8, 2010 at 4:38 PM, Sebastian Beigel sebast...@beigel.de wrote: Hi, I tried to follow the best practices

Injected CSS rules are evaluated after onModuleLoad/Widget#onLoad

2010-01-08 Thread Sebastian Beigel
Hi, I tried to follow the best practices and moved my static CSS files from style-tags in the HTML-page to CssResources in a ClientBundle declared in my EntryPoint and injected in a static initializer. Unfortunately, this doesn't work for me because I do some element positioning in an

Re: Loading/parsing time for CssResource

2010-01-09 Thread Sebastian Beigel
Please ignore this post, it's a double post as I didn't realize that new mails are moderated. I wrote a newer (and more concise :) post discussing this subject (search for Injected CSS rules are evaluated after onModuleLoad/Widget#onLoad) My apologies, Sebastian -- You received this message

Icon next to anchor

2010-01-11 Thread Sebastian Beigel
Hi, I want to position an image left to an anchor (for example a plus-image likes this [+] create new). I like to use an ImageResource for this, but defining @sprite/gwt-image in the CSS rules adds dimension attributes (as clearly documented and admittedly sensible for spriting!). In my case, I

Re: Icon next to anchor

2010-01-11 Thread Sebastian Beigel
and is optimized to an data-url. Nice. Is this the recommended way to use images in CSS if you need to control the element's dimensions (i.e. the images are not subject to real spriting)? Sebastian On Mon, Jan 11, 2010 at 3:19 PM, Sebastian Beigel sebast...@beigel.de wrote: Hi, I want to position

Re: Icon next to anchor

2010-01-11 Thread Sebastian Beigel
going without :) Sebastian On Mon, Jan 11, 2010 at 3:46 PM, Thomas Broyer t.bro...@gmail.com wrote: On Jan 11, 3:38 pm, Sebastian Beigel sebast...@beigel.de wrote: Right now I use a DataResource (instead of an ImageResource) in my ClientBundle and use something like this in my CSS: @url

ValueChangeEvent in DatePicker

2010-01-25 Thread Sebastian Beigel
Hi, I wrapped a DatePicker in a (custom) Popup and I like to hide the popup when a value is selected in the DatePicker. That's working great for new values, but if I don't change the value but click at the same, highlighted (and thus already selected) date, no ValueChangeEvent is fired. I guess

GWT 2.1 hellomvp using GIN

2010-10-20 Thread Sebastian Beigel
Hi, I'm looking at 2.1 (RC1) for the first time right now and I try to refactor the hellomvp sample to use GIN. Unfortunately, I have some problems with the places - activities mapping. The doc says A better way to implement the chain of nested ifs would be with a GIN module. and the code is

Re: GWT 2.1 hellomvp using GIN

2010-10-21 Thread Sebastian Beigel
, Sebastian Beigel sebast...@beigel.de wrote: Hi, I'm looking at 2.1 (RC1) for the first time right now and I try to refactor the hellomvp sample to use GIN. Unfortunately, I have some problems with the places - activities mapping. The doc says A better way to implement the chain of nested

Flashing/collapsing CellTable

2010-10-26 Thread Sebastian Beigel
Hi, I'm looking at the new data presentation widgets in GWT 2.1 and I mostly like what I see :) I have one problem with the workflow updating/paging a cell table though. I'm using a (heavily) customized version of AbstractProxyListActivity from the Expenses example and I just don't understand

GWT 2.1 cell table paging bug?

2010-10-26 Thread Sebastian Beigel
AbstractPager uses HasRows#getVisibleRange()#getLength() to obtain the page size. This doesn't seem to be a good idea as you can see in the Showcase exmpale (Cell Widgets/Cell Table [1]). This table gets populated with 250 entries and shows 15 per page. Now click on the next page button. You go

Re: How to get list of objects from JSON ??

2010-10-26 Thread Sebastian Beigel
Hi Thomas, Of course, if your really want Product as a real bean, and a List? instead of a JsArray?, you can copy things around (see below); but really I believe overlay types are much more readable than anything using com.google.gwt.json.* classes. I used to use overlay type heavily

Re: How to get list of objects from JSON ??

2010-10-27 Thread Sebastian Beigel
You can very well subclass JSOs [...] What you cannot do is virtual dispatching (i.e. overring methods: methods must be final, but not necessarily classes). Of course you are right -- I wasn't precise (and thus wrong :) What I meant (and hate :) is that you're not allowed to override methods

Re: GWT 2.1 and Place with token

2010-10-27 Thread Sebastian Beigel
Hi Nicolas, often your places are parameterized, think of a detail/edit screen for example that needs the model's id. The token is a generic way to provide additional information (via the URL) to the place (i.e. the activity/-ies), i.e. #editFoo:42. You can of course re-use one place to dispatch

Re: Is Cell Table in 2.1 supports sorting of column ?

2010-10-28 Thread Sebastian Beigel
Hi, CellTable doesn't support this out of the box. Have a look at the Expenses example for a SortableHeader implementation (and how it's used). Sebastian On Thu, Oct 28, 2010 at 8:33 AM, rajakumar Iyyemperumal vasel.rajaku...@gmail.com wrote: Hi All,  I am trying to work on GWT 2.1 and I

Re: Does the new Editor support data type convert?

2010-10-29 Thread Sebastian Beigel
Use IntegerBox instead of TextBox (and see ValueBoxBaseT and its subclasses for other types). Sebastian On Fri, Oct 29, 2010 at 4:03 AM, wangzx wangzaixi...@gmail.com wrote: class Person {   int age; } class PersonEditor {  TextBox ageEditor; } The GWT Compiler report: Found

CSS @font-face rules

2011-03-04 Thread Sebastian Beigel
Hi, I'm playing around with CSS3's @font-face. It doesn't work with GWT 2.2's CssResource unfortunately. I found this patch: http://gwt-code-reviews.appspot.com/943802 but it isn't applied to the 2.2 source code (though it seems to originate from pre-2.2 or event pre-2.1 times...) What's the

Re: Eclipse plugin problem with OSX Java update 4?

2011-03-10 Thread Sebastian Beigel
Maybe you have to install the latest Java developer package from Apple (Java for Mac OS X 10.6 Update 4 Developer Package) -- I did this and pointed my JDK 1.6 home to the (new) location: /Library/Java/JavaVirtualMachines/1.6.0_24-b07-334.jdk/Contents/Home. Everything works as before. Sebastian

GWT 2.3 composite editor // setValue called twice

2011-05-27 Thread Sebastian Beigel
Hi, unfortunately there seems to be no love for the issue I reported a while ago concerning the revamped editor code (starting w/ GWT 2.3) using Refresher Initializer. http://code.google.com/p/google-web-toolkit/issues/detail?id=6336 Sub-editors' setValue() methods get called twice, which can

Re: GWT 2.3 composite editor // setValue called twice

2011-05-31 Thread Sebastian Beigel
to doing any work, or implement via handling valuechangeevents. On May 27, 8:27 am, Sebastian Beigel sebast...@beigel.de wrote: Hi, unfortunately there seems to be no love for the issue I reported a while ago concerning the revamped editor code (starting w/ GWT 2.3) using Refresher