Vertical align elements in FlowPanel?

2012-12-28 Thread membersound
Hi,

how can I vertically center elements within a FlowPanel? I have several 
FocusPanels inside a FlowPanel, which means they are stacked on each other. 
One of the focuspanels has an image, which should be centered both 
horizontally and vertically within that focuspanel. But no matter what I 
tried, it is always placed at the top of this panel.

g:FlowPanel
  g:FocusPanel
g:Image resource='{res.myimage}' /
  /g:FocusPanel

  g:FocusPanel
...
/g:FlowPanel

Can anyone help?

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



Get widget variable name from event?

2012-12-28 Thread membersound
Hi,

is it possible to retrieve the name of an element that triggers an event?
For example, if I have a FocusPanel which triggers a MouseOverEvent, can I 
get the variable name of that panel somehow from the event?


@UiField
FocusPanel panel;

@UiHandler(panel)
void mouseOver(MouseOverEvent ev) {
Window.alert(you clicked the element named 'panel'); //how could I 
use the 'ev' to get the name 'panel'?
}

-- 
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/-/OKIlLqbB7KEJ.
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 display an empty Panel/FocusPanel?

2012-12-28 Thread membersound
Hi,

I want to have a FocusPanel without any content, but it should trigger some 
MouseFocus events.
Are there any spacer elements in GWT which I could place into the 
FocusPanel?

At the moment I'm just using a transparent little image that I place into 
the FocusPanel by:
g:FocusPanel
  g:Image resource={res.empty} /
/g:FocusPanel

But are there better ways?

-- 
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/-/PZgNiAIIbt8J.
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: Get widget variable name from event?

2012-12-28 Thread Jens
No you can't.

All you can do is

Object source = event.getSource();
if(source == panel) {
  //event fired by specific panel
}

But this only makes sense if you have multiple event sources for a single 
method, e.g.

@UiHandler({panel1, panel2})
void onMouseOver(MouseOverEvent event) {
  //dispatch event source here.
}

The above code is pretty much the same as

MouseOverHandler handler = new MouseOverHandler() { //implement... }
panel1.addMouseOverHandler(handler);
panel2.addMouseOverHandler(handler);

-- 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/-/Bn11As-ldYEJ.
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.



CSS Styling of FocusPanel?

2012-12-28 Thread membersound
From eg TextBox I know that it is possible to alter the css style of an 
element by setting the dependentName like this:

textBox.setStyleDependentName(readonly, true);

.gwt-TextBox-readonly {
   background-color: lightgrey;
   border: none;
 }



How can I do the same with FocusPanel?

I tried .gwt-FocusPanel-mystyle but it's not changing anything. Does this 
work different with focuspanel?

Thanks

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



DataGrid / CellTable: ValueChangeEvent from CheckBoxCell in a custom built header

2012-12-28 Thread Alex opn
Hello folks,

I've encountered a problem with a 
CheckBoxCellhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/CheckboxCell.htmlin
 a custom built header for a 
DataGridhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/DataGrid.html
.

What I've done is adapting the 
CwCustomDataGrid-examplehttp://gwt.googleusercontent.com/samples/Showcase/Showcase.html#%21CwCustomDataGridto
 my needs and adding a Check all-column in the header. I'm using the 
CheckboxColumn implementation from the accepted answer from here: - 
StackOverflowhttp://stackoverflow.com/questions/8828271/handling-onclick-for-a-checkbox-in-a-celltable-header
 

This is how I add the valueChangeHandler to the column in the constructor 
of my CustomHeaderBuilder:

 checkboxHeader.addValueChangeHandler(new ValueChangeHandlerBoolean() { 
 // TODO: Fix, does not work :-/
 @Override
 public void onValueChange(ValueChangeEventBoolean event) 
 {
 final boolean selected = event.getValue();
 ...
 }
 });


I've also tried several other places to register the handler before and 
after the construction of the CustomHeaderBuilder without any effect.

The strange thing is that the CheckBoxColumn works flawlessly when not 
using a custom built header. But the problem is that the column is not 
propagating any events when used in combination with an 
AbstractHeaderOrFooterBuilderhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/AbstractHeaderOrFooterBuilder.java?r=10597
.

I debugged a lot already and can confirm that the handler gets registered 
correctly and the column-instance used is definitely the same all the time.

Anyone has an idea what could prevent events from Cells / Columns in custom 
built headers / footers?

Thanks
Alex

-- 
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/-/_mcGo8Y4dHUJ.
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 the same MouseHandler to multiple components?

2012-12-28 Thread membersound
I have several same components that at this stage just perform the same 
operation.

g:FocusPanel ui:field=panel
g:FocusPanel ui:field=panel2
g:FocusPanel ui:field=panel3

@UiField
FocusPanel panel, panel2, panel3;

@UiHandler(panel)
void handleClick(MouseDownEvent event) {
//...
}
@UiHandler(panel2)
void handleClick2(MouseDownEvent event) {
//...
}
@UiHandler(panel3)
void handleClick3(MouseDownEvent event) {
//...
}


So far so good, but how can I manually add a mouse handler inside a loop 
like within the class constructor:
for (FocusPanel panel : panels) {
panel.addMouseDownHandler(new MouseDownHandler() {
@Override
public void onMouseDown(MouseDownEvent event) {
Window.alert(mouse down);
}
});
}

If I write this in the constructor of the java class, I'm getting 
NullPointerException 
at this stage where the handler is added to the panel.


Is there any way that I can add these kind of mouseHandlers in the 
constructor? Or can elements bound via @UiField only be handlers attached 
via @UiHandler??

Alternativly, do you know of any workaround of adding the same MouseHandler to 
a bunch of objects as I'm trying in this example?

-- 
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/-/Q_YIBPusvUUJ.
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 add MouseHandler in constructor? (NPE)

2012-12-28 Thread membersound
I know I can just bind any ui component to any events by using @UiHandler 
like this:

g:FocusPanel ui:field=panel

@UiField
FocusPanel panel;

@UiHandler(panel)
void handleClick(MouseDownEvent event) {
//...
}

So far so good, but how can I manually add a mouse handler within the 
class constructor:
panel.addMouseDownHandler(new MouseDownHandler() { //NPE
@Override
public void onMouseDown(MouseDownEvent event) {
Window.alert(mouse down);
}
});

If I write this in the constructor of the java class, I'm getting 
NullPointerException 
at this stage where the handler is added to the panel.
What am I missing here?

-- 
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/-/IkAkkJ0IcP8J.
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: DataGrid / CellTable: ValueChangeEvent from CheckBoxCell in a custom built header

2012-12-28 Thread Alex opn
CheckBoxColumn should be  CheckboxHeader! Sorry for the confusion!
Am Freitag, 28. Dezember 2012 14:18:00 UTC+1 schrieb Alex opn:

 Hello folks,

 I've encountered a problem with a 
 CheckBoxCellhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/CheckboxCell.htmlin
  a custom built header for a 
 DataGridhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/cellview/client/DataGrid.html
 .

 What I've done is adapting the 
 CwCustomDataGrid-examplehttp://gwt.googleusercontent.com/samples/Showcase/Showcase.html#%21CwCustomDataGridto
  my needs and adding a Check all-column in the header. I'm using the 
 CheckboxColumn implementation from the accepted answer from here: - 
 StackOverflowhttp://stackoverflow.com/questions/8828271/handling-onclick-for-a-checkbox-in-a-celltable-header
  

 This is how I add the valueChangeHandler to the column in the constructor 
 of my CustomHeaderBuilder:

 checkboxHeader.addValueChangeHandler(new ValueChangeHandlerBoolean() { 
 // TODO: Fix, does not work :-/
 @Override
 public void onValueChange(ValueChangeEventBoolean 
 event) {
 final boolean selected = event.getValue();
 ...
 }
 });


 I've also tried several other places to register the handler before and 
 after the construction of the CustomHeaderBuilder without any effect.

 The strange thing is that the CheckBoxColumn works flawlessly when not 
 using a custom built header. But the problem is that the column is not 
 propagating any events when used in combination with an 
 AbstractHeaderOrFooterBuilderhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/cellview/client/AbstractHeaderOrFooterBuilder.java?r=10597
 .

 I debugged a lot already and can confirm that the handler gets registered 
 correctly and the column-instance used is definitely the same all the time.

 Anyone has an idea what could prevent events from Cells / Columns in 
 custom built headers / footers?

 Thanks
 Alex


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



Attach multiple MouseHandlers to the same component via UiBinder?

2012-12-28 Thread membersound
Is there something to attach multiple Handlers to the same component? 
Similar to the following (which is not valid of course, but you get it):

@UiHandler(myComponent)
void onMouseDown(MouseDownEvent ev | MouseOutEvent ev) {
//...
}

Or do I necessarily have to create 2 different handler methods?

@UiHandler(myComponent)
void onMouseDown(MouseDownEvent ev) {
//...
}

@UiHandler(myComponent)
void onMouseDown(MouseOutEvent ev) {
//...
}

-- 
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/-/6bLY9yI4v3MJ.
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 add MouseHandler in constructor? (NPE)

2012-12-28 Thread Jens
In your constructor you have to do it after 

initWidget(uiBinder.createAndBindUi(this));

All your @UiField variables are filled by the call to 
uiBinder.createAndBindUi(this).

Also if you use @UiField(provided = true) then you have to instantiate the 
field yourself before uiBinder.createAndBindUi(this) is called.

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



RFED flushed context reaches server without nested entity changes

2012-12-28 Thread Avanish Raju
Hi GWT Gurus,

I've been trying to get GWT RequestFactoryEditorDriver working for my
entities with relationship - A contains a ListB.

My editors display my data just fine now, and changes to a.name persist
perfectly as well. Also, when I change the value of a b.name and do a
driver.flush(), on inspecting the returned context in Eclipse, my change
to b.name is present. However, when I context.fire() my saveAndReturn
method, the server-side object doesn't contain my b.name change. How
could this be happening?

(I also posted my question on StackOverflow with detailed code snippets:
http://stackoverflow.com/questions/14041275/request-factory-gwt-editor-change-isnt-persisting-related-jdo-entities
)

Please do help!

(I promise to write up a summary of my issues and solutions on my blog and
link it back here once I've figured this out and can finally save my data!)

Regards,
Avanish

-- 
Life is what you make of it
Y. Avanish Raju,

BTech, Computer Science and Engineering  Biotechnology,
ICFAI University, Dehradun

-BEGIN GEEK CODE BLOCK-
Version: 3.12
GCS/S/MU d- s:- a- C+++ UL+++ P+ L+++ E- W+ N- o? K- w+w++
!O !M !V
PS++@ PE++ Y+@ PGP- t 5? X+ R tv b+++ DI+@ D+ G e++ h* r-- y
--END GEEK CODE BLOCK--

-- 
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: browser specific file names after GWT compilation ?

2012-12-28 Thread Thomas Broyer


On Wednesday, December 26, 2012 6:21:09 PM UTC+1, ajay...@gmail.com wrote:

 GWT compiles java code in to html and java scripts. And it creates some 
 files like B9409F85E92A0CC3FFD0D41AD0307BE5.cache.html (alphanumeric 
 .cache.html).
 Is there a way to have these file names as fixed file names like 
 ie9.cache.html or safari.cache.html ?


Using a custom linker, yes. But that naming is a feature, on-purpose: 
https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDebugging#perfect_caching

-- 
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/-/dFNjRfrfL1oJ.
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 rewrite ClientBundle images to static uibinder images?

2012-12-28 Thread Thomas Broyer


On Thursday, December 27, 2012 2:52:46 PM UTC+1, membersound wrote:

 I know how to use images in general with uibinder, like:

 .ui.xml:
 g:Image resource='{res.image}' /

 .java:
 public interface Resources extends ClientBundle {
 @Source(image.png)
 @ImageOptions(repeatStyle = RepeatStyle.None)
 ImageResource image();
 }

 But in case of static images, how can I use the same image in the same 
 way, but without having to write any java code? Just using uibinder?


Each UiBinder template defines an implicit ClientBundle. You can declare a 
CssResource using ui:style, a DataResource with ui:data and an 
ImageResource with ui:image:

ui:image field=image src=image.png repeatStyle=None/ (there's also 
a flipRtl=true attribute; and just like the @Source is optional, src= 
is optional too)
 

-- 
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/-/1epAhJyDBPkJ.
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: Cannot compile gtw maven plugin example from mojo.codehaus.org

2012-12-28 Thread Thomas Broyer
See https://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven
Don't use the gwt-maven-plugin archetype as a starting point.

On Thursday, December 27, 2012 6:59:04 PM UTC+1, Anatoly Chervyakov wrote:

 Hello folks

 I am interested in learning GWT and I'd like to use Maven as a build tool 
 so I navigated to 
 http://mojo.codehaus.org/gwt-maven-plugin/user-guide/archetype.html and 
 created a test project.

 I am using OSX 10.6.8, Eclipse 3.6.2, GWT Eclipse plugin 2.5.0 and here is 
 my pom.xml
 ?xml version=1.0 encoding=UTF-8?
 project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=
 http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
 http://maven.apache.org/maven-v4_0_0.xsd;

 !-- POM file generated with GWT webAppCreator --
 modelVersion4.0.0/modelVersion
 groupIdse.anatoly.test/groupId
 artifactIdtest/artifactId
 packagingwar/packaging
 version1.0-SNAPSHOT/version
 nameGWT Maven Archetype/name

 properties
 !-- Convenience property to set the GWT version --
 gwtVersion2.5.0/gwtVersion
 !-- GWT needs at least java 1.5 --
 
 webappDirectory${project.build.directory}/${project.build.finalName}/webappDirectory
 project.build.sourceEncodingUTF-8/project.build.sourceEncoding
 /properties

 dependencies
 dependency
 groupIdcom.google.gwt/groupId
 artifactIdgwt-servlet/artifactId
 version${gwtVersion}/version
 scoperuntime/scope
 /dependency
 dependency
 groupIdcom.google.gwt/groupId
 artifactIdgwt-user/artifactId
 version${gwtVersion}/version
 scopeprovided/scope
 /dependency
 dependency
 groupIdjunit/groupId
 artifactIdjunit/artifactId
 version4.7/version
 scopetest/scope
 /dependency
 dependency
 groupIdjavax.validation/groupId
 artifactIdvalidation-api/artifactId
 version1.0.0.GA/version
 scopetest/scope
 /dependency
 dependency
 groupIdjavax.validation/groupId
 artifactIdvalidation-api/artifactId
 version1.0.0.GA/version
 classifiersources/classifier
 scopetest/scope
 /dependency
 /dependencies

 build
 !-- Generate compiled stuff in the folder used for developing 
 mode --
 
 outputDirectory${webappDirectory}/WEB-INF/classes/outputDirectory

 plugins

 !-- GWT Maven Plugin --
 plugin
 groupIdorg.codehaus.mojo/groupId
 artifactIdgwt-maven-plugin/artifactId
 version2.5.0/version
 executions
 execution
 goals
 goalcompile/goal
 goaltest/goal
 goali18n/goal
 goalgenerateAsync/goal
 /goals
 /execution
 /executions
 !-- Plugin configuration. There are many available 
 options, see gwt-maven-plugin 
 documentation at codehaus.org --
 configuration
 runTargettest.html/runTarget
 hostedWebapp${webappDirectory}/hostedWebapp
 
 i18nMessagesBundlese.anatoly.test.client.Messages/i18nMessagesBundle
 /configuration
 /plugin

 !-- Copy static web files before executing gwt:run --
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-war-plugin/artifactId
 version2.1.1/version
 executions
 execution
 phasecompile/phase
 goals
 goalexploded/goal
 /goals
 /execution
 /executions
 configuration
 webappDirectory${webappDirectory}/webappDirectory
 /configuration
 /plugin
 plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 version2.3.2/version
 configuration
 source1.6/source
 target1.6/target
 /configuration
 /plugin
 /plugins
 /build

 /project

 The problem:
 when I execute mvn package the printout ends with BUILD SUCCESS but it 
 also contains this weird line (Ignored 80 units with compilation errors in 
 first pass.):
 
 [INFO] --- gwt-maven-plugin:2.5.0:compile (default) @ test ---
 [INFO] auto discovered modules [se.anatoly.test.test]
 [INFO] Compiling module 

Re: Protocol Buffers for GWT: Issue 2649

2012-12-28 Thread Thomas Broyer


On Friday, December 28, 2012 12:33:19 AM UTC+1, Goktug Gokdogan wrote:




 On Fri, Dec 21, 2012 at 8:20 PM, Thomas Broyer t.br...@gmail.comjavascript:
  wrote:



 On Saturday, December 22, 2012 2:50:00 AM UTC+1, Goktug Gokdogan wrote:

 GWT's built-in library space is already bloated and getting harder to 
 maintain. Inside GWT, we need to do less but do better.
 And good thing is, a lot of stuff doesn't need to be baked in; like 
 the protocol buffers; it is a valuable feature but I personally don't see 
 GWT having it as a first class citizen; at least in the near term.
 On the other hand we can definitely help out on removing any blockers 
 and support anybody who would like to implement it as a 3rd party library.


 +1

 Wondering what Google is doing though ;-)
 Are you somehow generating, say, RequestFactory ValueProxy-s from .proto 
 files? It looks like what BobV was planning.
  


 There is compiler plugin that generates lightweight GWT emulations of the 
 messages based on JavaScript overlays.
 On top of that, there is a custom RPC mechanism that mimics GWT RPC. Wire 
 format is like JSON-RPC where 'params' is js array encoded protobuf.

 I think there has been multiple solutions but I guess this one got wider 
 acceptance. Unfortunately, nobody actively working on it and not ready to 
 open-source.


Thanks.
Looks a bit like what I did years ago to call REST-alike web services, 
except I coded everything by hand.
Also looks a bit like gwt-json-rpc used by Gerrit, but interfaces and JSOs 
are hand-coded too.

-- 
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/-/1rV1RZB55M4J.
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.



JMockit compatible with GWTTestCase?

2012-12-28 Thread James Scott
Hello all-

I'm trying to use JMockit in a GWTTestCase (JUnit 3, for what it's worth) 
and I'm not having any luck. I have jmockit.jar on my classpath for the 
test, but when I run it, I get this error message:

[ERROR] Line 50: No source code is available for type 
mockit.NonStrictExpectations; did you forget to inherit a required module?

Line 50 is where I have my NonStrictExpectations declared in my test case. 
Right now, it's empty.

I tried TRACE-level logging of the unit test run in Eclipse, and I get 
similar no source code available errors for other classes in the 
application GWT client code, but those are not under test and not in the 
same module as the code under test, so I don't think those are interfering.

My classpath includes my Eclipse output dir, GWT jars, jmockit.jar and 
junit.jar. Is there something else that should be in the classpath?

Thanks,

JLS

-- 
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/-/o21Mtvckww4J.
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 Crawlable (SEO)

2012-12-28 Thread Jens
The servlet filter is only for the crawler and the crawler will not 
navigate your app using PlaceChangeEvents. The crawler just loads an URL 
that will hit your server and your servlet filter.

If the bot finds a hyperlink like #!myPlace then it calls your server 
using http://domain.com/?_escaped_fragment_=myPlace; and thus hitting your 
server. If you have two servers (a dedicated web server for static content 
+ application server) then you have to proxy the request to your 
application server as soon as the URL contains the _escaped_fragment_ query 
parameter, so that the server can generate a HTML snapshot on the fly or 
you have to pre-generate all possible snapshots and serve them directly 
from the dedicated web server (and update them regularly using a cron job).

Basically your server needs to follow the spec described at:

https://developers.google.com/webmasters/ajax-crawling/docs/specification

-- 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/-/eYSMCKNDl9YJ.
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: Vertical align elements in FlowPanel?

2012-12-28 Thread Mike Dee
You may be able to do it with CSS, but FlowPanels are not meant for 
controlling layout as you desire (centering).  Can you try one of the other 
Panels, like VerticalPanel or LayoutPanel?

On Friday, December 28, 2012 1:40:01 AM UTC-8, membersound wrote:

 Hi,

 how can I vertically center elements within a FlowPanel? I have several 
 FocusPanels inside a FlowPanel, which means they are stacked on each other. 
 One of the focuspanels has an image, which should be centered both 
 horizontally and vertically within that focuspanel. But no matter what I 
 tried, it is always placed at the top of this panel.

 g:FlowPanel
   g:FocusPanel
 g:Image resource='{res.myimage}' /
   /g:FocusPanel

   g:FocusPanel
 ...
 /g:FlowPanel

 Can anyone help?


-- 
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/-/uPbqADQVaEAJ.
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 create columns with common header in data grid.

2012-12-28 Thread Mike Dee
I wanted something similar but did it differently. I created a CellTable 
with just a header row above another CellTable.  The top CellTable had an 
extra header and nothing else.

On Thursday, December 27, 2012 3:14:27 AM UTC-8, shray rawat wrote:


 https://lh5.googleusercontent.com/-SA2dPCsyiG8/UNwthugGWXI/A2c/l1qY23f-GYo/s1600/TABLE.JPG


 ===
 see the attached files for this question.
 I AM HAVING A,B,C AS MAIN HEADERS AND D,E,F,G AS THE SUB HEADERS UNDER C.

 how can i create these columns in data grid


-- 
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/-/VQNneE7qAF0J.
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 know the css used by the datagrid header?

2012-12-28 Thread Mike Dee
The style name is probably obfuscated.  The default styles for CellTable 
are not in the standard.css with other GWT styles.  You can find them in 
com.google.gwt.user.cellview.client.CellTable.css.  If you want to change 
them, make a copy, change the styles, and pass it to your CellTable 
constructor.

On Thursday, December 27, 2012 12:20:58 AM UTC-8, tong123123 wrote:

 I use F12 in IE9 or FF13 but still cannot see the css used by the datagrid 
 header, I want to create a label with the css property (like the height, 
 padding...) same as datagrid header, how to accomplish 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/-/uf2CBh0yzEsJ.
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.



JMockit compatible with GWTTestCase?

2012-12-28 Thread Jens
Its not compatible. Why do you need to mock things in a GWTTestCase? You 
normally do it in an ordinary JUnit Test to mock out classes that use 
GWT.create() or JSNI.

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