Cell Table column sorting ties grid to data provider

2012-05-08 Thread Wayne Marsh
Is there any sensible strategy for implementing column sorting without 
having to know the type of data provider that's backing the table?

It seems a shame that when I define my columns, I also have to decide on 
what data provider I'll be using if I choose to sort them. Am I missing 
something?

-- 
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/-/pipCbwgtw5oJ.
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 2.4.0, class-level bean validations

2012-05-04 Thread Wayne Marsh


On Friday, 4 May 2012 09:21:08 UTC+1, Thomas Broyer wrote:


 On Thursday, May 3, 2012 7:14:24 PM UTC+2, W Marsh wrote:

 Hi all. I've marked an Editor up with HasEditorErrorsSomeEntity so that 
 it can receive custom, class-level validations and report the errors 
 appropriately.

 I'm probably doing this wrong, because I don't get the class-level errors 
 passed to the top-level editor.


 It looks like an known issue that was fixed in February: 
 http://code.google.com/p/google-web-toolkit/source/detail?r=10886


Brilliant, thanks.
 

  

 It also gets sub-editor errors passed to it (which I'd expect, using 
 ValueBoxEditorDecorator which doesn't consume errors) twice each (I 
 certainly wouldn't expect that).


 You get one for the ValueBoxEditorDecorator and one for the ValueBoxEditor 
 that's decorated.


That makes sense. 

-- 
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/-/Sja03dMsMzAJ.
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.0, class-level bean validations

2012-05-03 Thread Wayne Marsh
Hi all. I've marked an Editor up with HasEditorErrorsSomeEntity so that 
it can receive custom, class-level validations and report the errors 
appropriately.

I'm probably doing this wrong, because I don't get the class-level errors 
passed to the top-level editor. It also gets sub-editor errors passed to it 
(which I'd expect, using ValueBoxEditorDecorator which doesn't consume 
errors) twice each (I certainly wouldn't expect that).

I've attached the full project (for Eclipse) 
here: http://dl.dropbox.com/u/64766626/TestClassLevelConstraints.zip

If anybody familiar with the Editor framework and bean validation in GWT 
could give me some feedback I'd appreciate that. (Also, people stuck with 
trying to integrate bean validation working might find the simple project 
useful. It's a chore to get anything working at this point).

(As an aside, can anybody shed some light on why I'm getting the 
ScriptAssertImpl and URL errors at compile-time? They're not fatal, and I 
can make them disappear by defining my own URL and ScriptAssertImpl 
classes, but am I doing something wrong? I've seen some very old GWT 
discussions where it seemed like that was fixed, but it isn't for me. Wrong 
jars?)

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



IntegerBox not restricting input to integers in GWT 2.4.0

2012-04-20 Thread Wayne Marsh
Am I missing something? It just acts like a normal TextBox for me. Here's 
the simplest example:

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.IntegerBox;
import com.google.gwt.user.client.ui.RootPanel;

/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class IntegerBoxExample implements EntryPoint
{
public void onModuleLoad()
{
IntegerBox box = new IntegerBox();

RootPanel.get().add(box);
}
}

I can type letters into it. Is it just broken (perhaps related to the 
notice Experimental API: This class is still under rapid development, and 
is very likely to be deleted. Use it at your own risk. note in the 
documentation)?

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