Re: DevMode for Firefox 14

2012-07-18 Thread Giuseppe La Scaleia
For osx lion??

Inviato da iPhone

Il giorno 19/lug/2012, alle ore 03:23, Alan Leung  ha 
scritto:

> On Wed, Jul 18, 2012 at 4:03 PM, koma  wrote:
> any change for Linux 64bit ?
> 
> The 64bit Linux works now.
> 
> http://acleung.com/ff14-linux64.xpi
> 
> -Alan
>  
> -- 
> 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/-/VNv09WK9dL4J.
> 
> 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.

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



Thread deadlock when trying to maven compile using 2.5-rc1

2012-07-18 Thread JoseM
I created a project about two months ago using Thomas Broyer's 
modular-requestfactory maven archetype from 
here: 
https://github.com/tbroyer/gwt-maven-archetypes/tree/master/modular-requestfactory

Our application has been building and working fine using the 2.4 
dependencies for GWT and the gwt-maven-plugin.  Today I updated my pom to 
use GWT 2.5-rc1 and the latest version of the gwt-maven-plugin (build #35 
of 2.5-SNAPSHOT from 
here: 
https://buildhive.cloudbees.com/job/gwt-maven-plugin/job/gwt-maven-plugin/35/org.codehaus.mojo$gwt-maven-plugin/)
 
but when doing the maven compile (by doing a mvn clean install) it always 
stops when attempting to start compiling the first module of my application.

I issued a kill -3 on the process and here is the output (below), does 
anybody know what be wrong? Do I need to change anything in my pom 
files/configuration that 2.5 needs?  All I did was update the version 
numbers of the dependencies to the latest one.

[INFO] 

[INFO] Building web-client 1.0-SNAPSHOT
[INFO] 

[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ web-client ---
[INFO] Deleting /xxx/projects/web/client/target
[INFO] Deleting /xxx/projects/web/client/src/main/webapp/moduleAppOne 
(includes = [**/*], excludes = [])
[INFO] Deleting 
/xxx/projects/web/client/src/main/webapp/moduleAppTwo (includes = [**/*], 
excludes = [])
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ 
web-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.4:compile (default-compile) @ web-client 
---
[INFO] Compiling 75 source files to /xxx/projects/web/client/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources 
(default-testResources) @ web-client ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
/xxx/projects/web/client/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.4:testCompile (default-testCompile) @ 
web-client ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ web-client ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- gwt-maven-plugin:pre-2.5.0-20120719:compile (gwt-compile) @ 
web-client ---
[INFO] Compiling module com.mycompany.web.ModuleAppOne_dev
[INFO] 2012-07-18 23:55:21
[INFO] Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.6-b01-415 
mixed mode):
[INFO] 
[INFO] "Thread-4" daemon prio=5 tid=7fef4a874000 nid=0x10b433000 waiting 
for monitor entry []
[INFO]java.lang.Thread.State: BLOCKED (on object monitor)
[INFO] 
[INFO] "Thread-3" daemon prio=5 tid=7fef4aaba800 nid=0x10c68b000 waiting 
for monitor entry [10c688000]
[INFO]java.lang.Thread.State: BLOCKED (on object monitor)
[INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:293)
[INFO] - waiting to lock <79fe5f198> (a sun.misc.Launcher$AppClassLoader)
[INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[INFO] at 
java.util.ResourceBundle$RBClassLoader.loadClass(ResourceBundle.java:435)
[INFO] at 
java.util.ResourceBundle$Control.newBundle(ResourceBundle.java:2289)
[INFO] at java.util.ResourceBundle.loadBundle(ResourceBundle.java:1364)
[INFO] at java.util.ResourceBundle.findBundle(ResourceBundle.java:1328)
[INFO] at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1224)
[INFO] at java.util.ResourceBundle.getBundle(ResourceBundle.java:747)
[INFO] at java.awt.Toolkit$3.run(Toolkit.java:1616)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at java.awt.Toolkit.(Toolkit.java:1612)
[INFO] at java.lang.ClassLoader$NativeLibrary.load(Native Method)
[INFO] at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1827)
[INFO] - locked <79fe010a8> (a java.util.Vector)
[INFO] - locked <79fe01100> (a java.util.Vector)
[INFO] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1724)
[INFO] at java.lang.Runtime.loadLibrary0(Runtime.java:823)
[INFO] - locked <79fe083d0> (a java.lang.Runtime)
[INFO] at java.lang.System.loadLibrary(System.java:1045)
[INFO] at 
sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
[INFO] at java.security.AccessController.doPrivileged(Native Method)
[INFO] at 
apple.awt.CGraphicsEnvironment.(CGraphicsEnvironment.java:23)
[INFO] at java.lang.Class.forName0(Native Method)
[INFO] at java.lang.Class.forName(Class.java:169)
[INFO] at 
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)
[INFO] - locked <7e094ec98> (a java.lang.Class for 
java.awt.GraphicsEnvironment)
[INFO] at 
com.google.gwt.dev.GraphicsInitThread.run(GraphicsInitThread.java:39)
[INFO] 
[INFO] "pool-1-thread-1" prio=5 tid=7fef4aab7800 nid=0x10c588000 waiting on 
condition [10c587000]
[INFO]java.lang.Threa

Re: GWT 2.5-rc1 feature uirender is not working as expected.

2012-07-18 Thread Vasu
Yes you were right, it is instantiating new Person object. But if I try to 
set Type to empty string validation fails and I cannot run the application. 
When I looked at generated code it is creating new Person object and using 
it. I even tried below code just if it works using @uiFactory. But even it 
doesn't seems to be working.

PersonCell.java
--


public class PearsonCell extends AbstractCell {

interface MyUiRenderer extends UiRenderer {
void render(SafeHtmlBuilder sb, Person pearson);
}

private static MyUiRendererrenderer= 
GWT.create(MyUiRenderer.class);

private Personperson;

@Override
public void render(com.google.gwt.cell.client.Cell.Context context, 
Person value, SafeHtmlBuilder sb) {
person = value;
renderer.render(sb, value);
}

@UiFactory
/* this method could be static if you like */
public Person getResources() {
return person;
}

--

Thanks,
-Pandurang.

-- 
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/-/2tyyRZ9W6QIJ.
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.5-rc1 feature uirender is not working as expected.

2012-07-18 Thread Vasu
Thanks Thomas,
 But I guess if we remove the type, validation will fail to 
validate .ui.xml. Still will try and let you know the results.

Thanks,
-Pandurang

On Wednesday, 18 July 2012 22:07:07 UTC+5:30, Thomas Broyer wrote:
>
> Just a wild guess: try to remove the type="" on your ui:with. Maybe the 
> generator is confused and thinks it has to instantiate a Person object 
> (what would normally be done with UiBinder), in which case it's no surprise 
> that the Person's properties are all 'null'.
> BTW, to debug generated code, pass the "-gen someFolder" to the DevMode or 
> Compiler so that it's output to disk, and then add the "someFolder" folder 
> to the "sources" of your Eclipse launcher (or whatever the equivalent in 
> your IDE if not using Eclipse). You'll then be able to step into the 
> generated code.
>
> On Wednesday, July 18, 2012 6:44:07 AM UTC+2, Vasu wrote:
>>
>> I tried to create a sample by using UiRenderer. But Showing null values 
>> as result. And as the UiRenderer code implementation is generated I am not 
>> even able to debug it. Following is the sample I tried.
>>
>> Person.java
>>
>> --
>> public class Person {
>>
>> private Stringfname;
>> private Stringlname;
>> private Stringemailid;
>> private intage;
>>
>> /**
>>  * @return the fname
>>  */
>> public String getFname() {
>> return fname;
>> }
>>
>> /**
>>  * @param fname
>>  *the fname to set
>>  */
>> public void setFname(String fname) {
>> this.fname = fname;
>> }
>>
>> /**
>>  * @return the lname
>>  */
>> public String getLname() {
>> return lname;
>> }
>>
>> /**
>>  * @param lname
>>  *the lname to set
>>  */
>> public void setLname(String lname) {
>> this.lname = lname;
>> }
>>
>> /**
>>  * @return the emailid
>>  */
>> public String getEmailid() {
>> return emailid;
>> }
>>
>> /**
>>  * @param emailid
>>  *the emailid to set
>>  */
>> public void setEmailid(String emailid) {
>> this.emailid = emailid;
>> }
>>
>> /**
>>  * @return the age
>>  */
>> public int getAge() {
>> return age;
>> }
>>
>> /**
>>  * @param age
>>  *the age to set
>>  */
>> public void setAge(int age) {
>> this.age = age;
>> }
>>
>> }
>>
>> --
>>
>>
>> PersonCell.ui.xml
>>
>> --
>> 
>> 
>>
>> 
>> First Name :
>> 
>> 
>> 
>> 
>> Last Name :
>> 
>> 
>> 
>> 
>> 
>> Email :
>> 
>> 
>> 
>> 
>> 
>> 
>>
>> --
>>
>> PersonCell.java
>>
>> --
>> public class PersonCell extends AbstractCell {
>>
>> interface MyUiRenderer extends UiRenderer {
>> void render(SafeHtmlBuilder sb, Person person);
>> }
>>
>> private static MyUiRendererrenderer= 
>> GWT.create(MyUiRenderer.class);
>>
>> @Override
>> public void render(com.google.gwt.cell.client.Cell.Context context, 
>> Person value, SafeHtmlBuilder sb) {
>> renderer.render(sb, value);
>> }
>>
>> }
>>
>> --
>>
>> onModuleLoad implementation
>>
>>
>> --
>> PersonCell cell = new PersonCell();
>> CellList cellList = new CellList(cell);
>> List list = new ArrayList();
>> Person p = new Person();
>> p.setFname("Pranoti");
>> p.setLname("Patil");
>> p.setEmailid("pra.@gmail.com");
>> p.setAge(30);
>> list.add(p);
>>
>> p = new Person();
>> p.setFname("Pandurang");
>> p.setLname("Patil");
>> p.setEmailid("pa.@gmail.com");
>> p.setAge(30);
>> list.add(p);
>>
>> p = new Person();
>> p.setFname("Ravi");
>> p.setLname("Kumar");
>> p.setEmailid("ra.@gmail.com");
>> p.setAge(30);
>> list.add(p);
>>
>> cellList.setRowCount(list.size(), true);
>> cellList.setRo

Re: How to configure Super Dev Mode in Eclipse ?

2012-07-18 Thread Thomas Broyer


On Thursday, July 19, 2012 1:31:40 AM UTC+2, regnoult axel wrote:
>
> Hello,
>
> I am unsuccessfully configurating Super Dev Mode in Eclipse ( Eclipse 
> Java EE IDE for Web Developers, Version: *Indigo *Service Release 2 )
>
> To be simple, I am just finding the easiest way (maybe it is easier 
> without eclipse ?) to use/configure Super Dev Mode...I know the 
> documentation explain "things", but I am more likely looking for a kind of 
> tutorial for newbies.
>

If you're using Maven, try “mvn gwt:run-codeserver” with the 2.5.0-rc1 
gwt-maven-plugin ;-)
(it won't work well with multi-module builds though, just like “mvn 
gwt:run”)
 

> First, I go to *Run Configuration* and then I have various 
> questions/problems :
>
> #1 - Should I create the new configuration for a *Web Application* or a *Java 
> Application* ? (because in the following link, it is doing a Java 
> Configuration : 
> http://blog.daniel-kurka.de/2012/07/mgwt-super-dev-mode.html) ?
>
> #2 - I am asuming that I should use a configuration for a web application 
> (like I had with the Normal Dev Mode). So then I do not why Eclipse is 
> always adding the following  (even if I remove them and save the config) :
>
> *-remoteUI* "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO *
> -codeServerPort* 9997 -server 
> com.google.appengine.tools.development.gwt.AppEngineLauncher *-war *
> C:\MS\workDir
>
> Is it a bug ?
>

As “emurmur” said, you should choose “Java Application”. “Web Application” 
is (for now at least) tailored for DevMode.
 

>
> #3 - Configuring the JRE, I do not know if I should use the *JDK6* or *JDK7 
> ?* If I use JDK6 Eclipse says (I have the same problem with normal dev 
> mode. ) :
> JRE not compatible with workspace .class file compatibility: 1.7
> Which JDK should I use ?
>

It really doesn't matter.
You should however set the compatibility level to 1.6: GWT only deals with 
Java 6, so using 1.7 as the compatibility level could lead to Eclipse using 
Java 7 specific syntax/features. 1.6 would be safer.
 

> #4 - Is there any mandatory argument to add (such as -workDir or 
> [module]...) ? Because I put this application argument line :
> *
> *
> *-src* C:\MS\src\com* -workDir* C:\MS\workDir *-port* auto *
> com.mananaseguro.MananaSeguro*
>
>  I had many times the following error : Working directory does not exist: 
> com.mananaseguro.MananaSeguro
>
>
This is strange.
If you wonder which options are available though, just throw some 
non-existing one (such as “-foo”) and it'll fail listing the available 
options (I believe “-help” would work 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/-/ZO_24u5yYr0J.
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: DevMode for Firefox 14

2012-07-18 Thread Alan Leung
On Wed, Jul 18, 2012 at 4:03 PM, koma  wrote:

> any change for Linux 64bit ?
>>
>
The 64bit Linux works now.

http://acleung.com/ff14-linux64.xpi

-Alan


>  --
> 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/-/VNv09WK9dL4J.
>
> 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: RPC call service on different web app same server?

2012-07-18 Thread Joseph Lust
Mike,

Be careful. For starters, if you manage to achieve this, your two 
applications will be coupled together because a change in the RPC calls 
from the first will break the RPC's of the second application. Generally 
speaking, it is thus not good practice to bind them together unless you are 
sure that they will always be deployed together at the same time. And if 
that is the case, why not just put them in the same project?

To achieve this both applications would need to access the same service 
interfaces, async service interfaces, servlets, and the same .rpc files, 
though I must admit I've never tried it.


Sincerely,
Joseph

-- 
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/-/DGviG1zeQKIJ.
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: TextResource vs Constant

2012-07-18 Thread Joseph Lust
To give credit where it's due, TB pointed this out first. I'd scribed the 
response and then headed home for the evening and then posted. No offense 
TB.

-- 
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/-/qysrb8vyZIQJ.
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: TextResource vs Constant

2012-07-18 Thread Joseph Lust
Lars,

Depending how large the text is, the i18n UiBinder 
toolsshould
 work easily for you here. You said the text was for a button, so 
clearly a large text file is a bit of overkill.

Use the i18n messages interface 
file.
 
Create a simple properties file such as *buttonNames_en.properties*, and 
put all your strings in there. Then just make a matching messages 
interface. Since you are using the UiBinder, the easiest way to set the 
values is the  and  tags (below).

 




Once the code is in the i18n messages file, you can also access it 
programmatically when you like, such as the following:

private static final ButtonMessages messages = 
ButtonMessages.Default.getInstance();
public void someMethod() {
// set string programmatically
someElement.setInnerText(messages.getString());}

While this may seem like Java overkill in itself, it is a great thing to 
have no string literals at all in your project's Java/UiBinder files and 
will make you happy in the future if you ever need to support other 
languages.

Sincerely,
Joseph

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



RPC call service on different web app same server?

2012-07-18 Thread mdwarne
We have an existing GWT /RPC app.  I would like to create a new project, 
that calls the RPC's on the existing app, on the same server / container.
Is this possible?

Thanks,
Mike.

-- 
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/-/i5aNekznxD4J.
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 automated testing that records user interaction and then replays

2012-07-18 Thread Joseph Lust
Variance,

We've got about 3K Selenium tests, but we use Cucumber and its system of 
"feature" files. It works well for the quite complex cases where you could 
not record them (i.e. need to add database records, then check UI for the 
record). I suspect as your tests get more complex you will find cases where 
recording in the browser will not suffice. 

Most Cucumber users (a.k.a. 'Cukers') use Ruby, but there is also 
Cucumber-JVM  (very active GitHub 
project) which is done in Java and Eclipse. That would probably be the best 
bet for GWT developers.

This might not be viable for your use case, but it might help other GWTers. 
:)

Sincerely,
Joseph

-- 
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/-/6STINPTySooJ.
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: import common style rules?

2012-07-18 Thread Joseph Lust
Ed,

My apologies for my late reply. I've been ruminating over this the last few 
days as I've thought about doing it, but never made a working example. Here 
is the example. We have our BaseWidget and our BlueWidget which extends it. 
Everything about the widget is defined in the BaseWidget CSS, except the 
color,fill, and border seen in the extending BlueWidget.


The CSSResource interface files:

// BaseWidgetCSSResource.javapackage com.testbed.client.resources;
import com.google.gwt.resources.client.CssResource;
public interface BaseWidgetCssResource extends CssResource {
String baseWidget(); }

// BlueWidgetCSSResource.javapackage com.testbed.client.resources;
public interface BlueWidgetCssResource extends BaseWidgetCssResource {
String blueWidget(); }

The CSS Files:

// baseWidget.cssdiv.baseWidget {
background-color: red;
border: 1px solid darkred;
border-radius: 10px;
padding: 20px;
height: 45px;
width: 100px;
margin:10px;
text-align:center;
vertical-align:middle;
font-size: 2em;
float: left;}

// blueWidget.cssdiv.baseWidget.blueWidget {
/* same as regular widget, but with a few changes */
background-color: blue;
border: 5px dashed orange;
color: white;}

ClientBundle Resource:

// WidgetResources.javapackage com.testbed.client.resources;
import com.google.gwt.resources.client.ClientBundle;import 
com.google.gwt.resources.client.CssResource.Import;
public interface WidgetResources extends ClientBundle {
// base widget
@Source("css/baseWidget.css")
BaseWidgetCssResource baseCss();

// pulls in both files, overriding one with the other
@Import(BaseWidgetCssResource.class)
@Source({ "css/blueWidget.css", "css/baseWidget.css" })
BlueWidgetCssResource blueCss();}

Implementing Class:

// Testbed.javapackage com.testbed.client;
import com.google.gwt.core.client.EntryPoint;import 
com.google.gwt.core.client.GWT;import com.google.gwt.user.client.Element;import 
com.google.gwt.user.client.ui.RootPanel;import 
com.testbed.client.resources.WidgetResources;
public class TestBed implements EntryPoint {

WidgetResources resources = GWT.create(WidgetResources.class);

public void onModuleLoad() {

// make sure the CSS is here
resources.blueCss().ensureInjected();

Element baseWidget = RootPanel.get("baseWidget").getElement();
baseWidget.addClassName(resources.blueCss().baseWidget());

Element blueWidget = RootPanel.get("blueWidget").getElement();
blueWidget.addClassName(resources.blueCss().baseWidget());
blueWidget.addClassName(resources.blueCss().blueWidget());

}}

I hope that helps. Note that you would need to use both classes as someone 
else mentioned, so "baseWidget blueWidget". You could make a helper method 
do do that, or just apply both.

Sincerely,
Joseph

-- 
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/-/-QRKMbaWuWoJ.
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 configure Super Dev Mode in Eclipse ?

2012-07-18 Thread emurmur
In the Run Configuration dialog, make sure you have selected "Java 
Application" from the list on the left.  Choosing "Web Application" get's 
all those automatic arguments and so it will not work.  You are really 
creating a configuration to run the code server, which is a regular Java 
application, not a web application.

Ed


On Wednesday, July 18, 2012 4:31:40 PM UTC-7, regnoult axel wrote:
>
> Hello,
>
> I am unsuccessfully configurating Super Dev Mode in Eclipse ( Eclipse 
> Java EE IDE for Web Developers, Version: *Indigo *Service Release 2 )
>
> To be simple, I am just finding the easiest way (maybe it is easier 
> without eclipse ?) to use/configure Super Dev Mode...I know the 
> documentation explain "things", but I am more likely looking for a kind of 
> tutorial for newbies.
>
> First, I go to *Run Configuration* and then I have various 
> questions/problems :
>
> #1 - Should I create the new configuration for a *Web Application* or a *Java 
> Application* ? (because in the following link, it is doing a Java 
> Configuration : 
> http://blog.daniel-kurka.de/2012/07/mgwt-super-dev-mode.html) ?
>
> #2 - I am asuming that I should use a configuration for a web application 
> (like I had with the Normal Dev Mode). So then I do not why Eclipse is 
> always adding the following  (even if I remove them and save the config) :
>
> *-remoteUI* "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO *
> -codeServerPort* 9997 -server 
> com.google.appengine.tools.development.gwt.AppEngineLauncher *-war *
> C:\MS\workDir
>
> Is it a bug ?
>
> #3 - Configuring the JRE, I do not know if I should use the *JDK6* or *JDK7 
> ?* If I use JDK6 Eclipse says (I have the same problem with normal dev 
> mode. ) :
> JRE not compatible with workspace .class file compatibility: 1.7
> Which JDK should I use ?
>
> #4 - Is there any mandatory argument to add (such as -workDir or 
> [module]...) ? Because I put this application argument line :
> *
> *
> *-src* C:\MS\src\com* -workDir* C:\MS\workDir *-port* auto *
> com.mananaseguro.MananaSeguro*
>
>  I had many times the following error : Working directory does not exist: 
> com.mananaseguro.MananaSeguro
>
> Thanks a lot for your 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/-/S8j3wk-RTTwJ.
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 configure Super Dev Mode in Eclipse ?

2012-07-18 Thread regnoult axel
Hello,

I am unsuccessfully configurating Super Dev Mode in Eclipse ( Eclipse Java 
EE IDE for Web Developers, Version: *Indigo *Service Release 2 )

To be simple, I am just finding the easiest way (maybe it is easier without 
eclipse ?) to use/configure Super Dev Mode...I know the documentation 
explain "things", but I am more likely looking for a kind of tutorial for 
newbies.

First, I go to *Run Configuration* and then I have various 
questions/problems :

#1 - Should I create the new configuration for a *Web Application* or a *Java 
Application* ? (because in the following link, it is doing a Java 
Configuration : http://blog.daniel-kurka.de/2012/07/mgwt-super-dev-mode.html) 
?

#2 - I am asuming that I should use a configuration for a web application 
(like I had with the Normal Dev Mode). So then I do not why Eclipse is 
always adding the following  (even if I remove them and save the config) :

*-remoteUI* "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO *
-codeServerPort* 9997 -server 
com.google.appengine.tools.development.gwt.AppEngineLauncher *-war *
C:\MS\workDir

Is it a bug ?

#3 - Configuring the JRE, I do not know if I should use the *JDK6* or *JDK7 
?* If I use JDK6 Eclipse says (I have the same problem with normal dev 
mode. ) :
JRE not compatible with workspace .class file compatibility: 1.7
Which JDK should I use ?

#4 - Is there any mandatory argument to add (such as -workDir or 
[module]...) ? Because I put this application argument line :
*
*
*-src* C:\MS\src\com* -workDir* C:\MS\workDir *-port* auto *
com.mananaseguro.MananaSeguro*

 I had many times the following error : Working directory does not exist: 
com.mananaseguro.MananaSeguro

Thanks a lot for your 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/-/0XtMoGvdHZ0J.
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: DevMode for Firefox 14

2012-07-18 Thread koma

>
> any change for Linux 64bit ?
>

-- 
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/-/VNv09WK9dL4J.
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: Should I always use -XfragmentMerge 20 ?

2012-07-18 Thread Alan Leung
You should not be using XfragmentMerge.

Instead --XfragmentCount is what you should be looking at.

Depending on the size of your application, my suggestion is you tune your
application using this method.

  Let N be the number of GWT.runAsync
   Compile your app with --XfragmentCount X where X is a number between N/2
to N-1

Check the output size and see which one you like. This includes checking
for the biggest exclusive JS and your leftover JS

-Alan

On Wed, Jul 18, 2012 at 1:48 PM, regnoult axel  wrote:

> Hello,
>
> I did not perfectly understood what *XfragmentMerge* is doing, but I have
> seen that it is mostly used with the number 20 or 23...
> Should I use an appropriate value (analysing the compile report of my
> application) or could I simply always use 20 ?
>
> Thanks you,
>
>
>
>  --
> 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/-/Aunh_zDBMZoJ.
> 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 automated testing that records user interaction and then replays

2012-07-18 Thread SigmaSquared
I was wondering what people are using for testing their GWT application. 
 We've looked at  *Selenium *and their IDE.  
It records great for firefox, but our group wants to only support the 
Chrome browser.  Is anyone aware of a QA testing 
tool that comes records user interaction and also does a playback? 

Regards,
Sigma

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



Should I always use -XfragmentMerge 20 ?

2012-07-18 Thread regnoult axel
Hello,

I did not perfectly understood what *XfragmentMerge* is doing, but I have 
seen that it is mostly used with the number 20 or 23...
Should I use an appropriate value (analysing the compile report of my 
application) or could I simply always use 20 ?

Thanks you,



-- 
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/-/Aunh_zDBMZoJ.
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 horz. center a shrinkwrapped FlowPanel in a FlowPanel?

2012-07-18 Thread David Lee
Jens,

I do not say this lightly.

You rock.

You have saved me from tremendous frustration. Thank you.

David
PS, If you find yourself in Boulder, CO in need of beer, I'm buying, and
you must tell how you solved this.

-- 
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: TextResource vs Constant

2012-07-18 Thread Thomas Broyer
I'd definitely go for a Constants or Messages interface.
In UiBinder, it works exacltty like an external ClientBundle:  to 
instantiate (through GWT.create) the interface, and then 
{theField.theMethod} to access values in attributes (and  otherwise).

On Wednesday, July 18, 2012 9:23:30 PM UTC+2, Lars wrote:
>
> I have a UiBinder file with a button. I want to change the text on the 
> button pro programmatically.
>
> This begs for TextResource, right?
>
> However, do I need to have a .txt file for each string of text that I'll 
> use for the button? e.g.
>
> @Source("MyButtonUp.txt")
> TextResources buttonUp();
>
> and
>
> @Source("MyButtonDown.txt")
> TextResources buttonDown();
>
> Is there no way to put the strings in the same file (like you can put 
> multiple css rules in one css file by extending CssResource and declaring 
> methods that match up to the style selectors?
>
> Is the solution the 'Constant' interface? (i'm not sure if these can be 
> accessed in the UiBinder.ui.xml template though.
>
> My ideal is a ClientBundle containing something like:
> @Source("ButtonStrings.txt")
> ButtonText buttonText();
>   
>  public interface ButtonText extends TextResource {
>String up();
>String down();
> }
>
> and the "ButtonStrings.txt" would be something like:
> up=i am up
> down=i am down
>
> But alas, this does not work. This has gotta be pretty common, no? What's 
> the standard solution here? A txt file for every string?
>
> Thanks in advance,
> Lars
>
>

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



TextResource vs Constant

2012-07-18 Thread Lars
I have a UiBinder file with a button. I want to change the text on the 
button pro programmatically.

This begs for TextResource, right?

However, do I need to have a .txt file for each string of text that I'll 
use for the button? e.g.

@Source("MyButtonUp.txt")
TextResources buttonUp();

and

@Source("MyButtonDown.txt")
TextResources buttonDown();

Is there no way to put the strings in the same file (like you can put 
multiple css rules in one css file by extending CssResource and declaring 
methods that match up to the style selectors?

Is the solution the 'Constant' interface? (i'm not sure if these can be 
accessed in the UiBinder.ui.xml template though.

My ideal is a ClientBundle containing something like:
@Source("ButtonStrings.txt")
ButtonText buttonText();
  
 public interface ButtonText extends TextResource {
   String up();
   String down();
}

and the "ButtonStrings.txt" would be something like:
up=i am up
down=i am down

But alas, this does not work. This has gotta be pretty common, no? What's 
the standard solution here? A txt file for every string?

Thanks in advance,
Lars

-- 
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/-/0O8LY_VNyT0J.
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 horz. center a shrinkwrapped FlowPanel in a FlowPanel?

2012-07-18 Thread Jens

>
> The jsfiddle code does not solve my problem.
> You removed the float:left in the contentPanel, so I no longer get an 
> auto-sizing FloatPanel.
>

I modified the previous jsfiddle: http://jsfiddle.net/F2fPN/3/

 

> Tell me more about setting the width and margins through GWT.
>
> My question is: When, in the the timing of things, do I know that the 
> FlowPanels have been rendered, so that I
> can fetch theirs widths, do my calculations, and set margins?
>

You can give the browser enough time to render it by using GWT's Scheduler 
class and executing a deferred command. In the deferred command you can do 
your calculations. 

-- 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/-/wdCQ1PR8afMJ.
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 horz. center a shrinkwrapped FlowPanel in a FlowPanel?

2012-07-18 Thread David Lee
Thanks for the reply Jens.

The jsfiddle code does not solve my problem.
You removed the float:left in the contentPanel, so I no longer get an 
auto-sizing FloatPanel.

Tell me more about setting the width and margins through GWT.

My question is: When, in the the timing of things, do I know that the 
FlowPanels have been rendered, so that I
can fetch theirs widths, do my calculations, and set margins?

Cheers,
David

PS: I often see web sites that render their content. Then 500ms later, all 
the margins are corrected. Might this
be what they are doing?

-- 
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/-/NHe6TMJjJZ8J.
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: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread Thomas Broyer


On Wednesday, July 18, 2012 6:47:37 PM UTC+2, MAQ wrote:
>
> I did look at that project, however it does not include youtube API.
> So, if I had to integrate the youtube API with my GWT app, then my best 
> option would be the JSON path?
>

Actually rather wrap the JS API.
(this is what gwt-google-apis do AFAICT)

-- 
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/-/IrOnnO4l6pQJ.
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: List/tabel to show complex data

2012-07-18 Thread Thomas Broyer


On Wednesday, July 18, 2012 6:15:11 PM UTC+2, Joseph Lust wrote:
>
> Ralf,
>
> GIven that you don't know how many you intend to display, and that there 
> could be a large number of them, I'd go with Cell. However, if you are 
> making just a few, with rich eventing/interactions, then I'd do UiBinder.


+1
 

> I'd still be keen to know measured benchmarks for these widget types.


I'd be too ;-)
I'm just a lone developer, so I didn't do any benchmarking and have no 
number to share. Google have some though, for sure.

-- 
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/-/wMltKhlkvK0J.
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: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread MAQ
I did look at that project, however it does not include youtube API.
So, if I had to integrate the youtube API with my GWT app, then my best 
option would be the JSON path?

On Thursday, July 19, 2012 2:39:44 AM UTC+10, Thomas Broyer wrote:
>
>
> On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote:
>>
>> Hi,
>>
>> I hope the question is clear, I'm a total GWT newbie. My project requires 
>> the use of some of Google's APIs. Two main solutions are provided one for 
>> XML and another for JSON (gdata-java-client and google-api-java-client).
>>
>> Which one would be more suitable (easier, more compatible etc.)? Or is it 
>> a mere personal choice?
>>
>
> With GWT, you'll likely use gwt-google-apis rather than the above 2 
> projects (which i'd bet are not GWT-compatible). I believe gwt-google-apis 
> uses JSON, but that's a detail, as there aren't actually any existing 
> alternative.
>

-- 
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/-/L009je85DRoJ.
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: When to use EntityProxy vs. ValueProxy

2012-07-18 Thread Thomas Broyer

On Wednesday, July 18, 2012 4:45:05 PM UTC+2, Yan wrote:
>
> Hi there,
>
> I have a parent class and child class. Child class has a lot of data. The 
> parent contains a list of child objects.  Child is never loaded/updated by 
> themselves, they are always maintained when user reads/updates on a parent.
>
> The question, Parent makes a natural fit for EntityProxy. Because I want 
> to take advantage of GWT client only send delta to server, I think Child 
> should be another EntityProxy (not ValueProxy). Is that correct?
>
> Is this a good determination when to use ValueProxy vs. EntityProxy: 
> whether GWT client sends only delta or the whole serialized object to 
> server?
>

The main difference between EntityProxy and ValueProxy is that EntityProxy 
have an "identity": there's an ID that can be used to map to a given 
"entity" on the server. This is what enables the use of deltas (because you 
can retrieve the entity the diff should be applied to) but that's a bonus 
feature, not a "discriminator".
In other words: to be able to benefit from "deltas", your data must first 
be "identifiable". If that's the case, then you have the choice of 
EntityProxy vs. ValueProxy (and I'd rather go for EntityProxy). Otherwise, 
you have no choice but using ValueProxy.

-- 
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/-/Wog4_JbPxCwJ.
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: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread Thomas Broyer

On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote:
>
> Hi,
>
> I hope the question is clear, I'm a total GWT newbie. My project requires 
> the use of some of Google's APIs. Two main solutions are provided one for 
> XML and another for JSON (gdata-java-client and google-api-java-client).
>
> Which one would be more suitable (easier, more compatible etc.)? Or is it 
> a mere personal choice?
>

With GWT, you'll likely use gwt-google-apis rather than the above 2 
projects (which i'd bet are not GWT-compatible). I believe gwt-google-apis 
uses JSON, but that's a detail, as there aren't actually any existing 
alternative.

-- 
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/-/vP9BeuiWLK8J.
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.5-rc1 feature uirender is not working as expected.

2012-07-18 Thread Thomas Broyer
Just a wild guess: try to remove the type="" on your ui:with. Maybe the 
generator is confused and thinks it has to instantiate a Person object 
(what would normally be done with UiBinder), in which case it's no surprise 
that the Person's properties are all 'null'.
BTW, to debug generated code, pass the "-gen someFolder" to the DevMode or 
Compiler so that it's output to disk, and then add the "someFolder" folder 
to the "sources" of your Eclipse launcher (or whatever the equivalent in 
your IDE if not using Eclipse). You'll then be able to step into the 
generated code.

On Wednesday, July 18, 2012 6:44:07 AM UTC+2, Vasu wrote:
>
> I tried to create a sample by using UiRenderer. But Showing null values as 
> result. And as the UiRenderer code implementation is generated I am not 
> even able to debug it. Following is the sample I tried.
>
> Person.java
>
> --
> public class Person {
>
> private Stringfname;
> private Stringlname;
> private Stringemailid;
> private intage;
>
> /**
>  * @return the fname
>  */
> public String getFname() {
> return fname;
> }
>
> /**
>  * @param fname
>  *the fname to set
>  */
> public void setFname(String fname) {
> this.fname = fname;
> }
>
> /**
>  * @return the lname
>  */
> public String getLname() {
> return lname;
> }
>
> /**
>  * @param lname
>  *the lname to set
>  */
> public void setLname(String lname) {
> this.lname = lname;
> }
>
> /**
>  * @return the emailid
>  */
> public String getEmailid() {
> return emailid;
> }
>
> /**
>  * @param emailid
>  *the emailid to set
>  */
> public void setEmailid(String emailid) {
> this.emailid = emailid;
> }
>
> /**
>  * @return the age
>  */
> public int getAge() {
> return age;
> }
>
> /**
>  * @param age
>  *the age to set
>  */
> public void setAge(int age) {
> this.age = age;
> }
>
> }
>
> --
>
>
> PersonCell.ui.xml
>
> --
> 
> 
>
> 
> First Name :
> 
> 
> 
> 
> Last Name :
> 
> 
> 
> 
> 
> Email :
> 
> 
> 
> 
> 
> 
>
> --
>
> PersonCell.java
>
> --
> public class PersonCell extends AbstractCell {
>
> interface MyUiRenderer extends UiRenderer {
> void render(SafeHtmlBuilder sb, Person person);
> }
>
> private static MyUiRendererrenderer= 
> GWT.create(MyUiRenderer.class);
>
> @Override
> public void render(com.google.gwt.cell.client.Cell.Context context, 
> Person value, SafeHtmlBuilder sb) {
> renderer.render(sb, value);
> }
>
> }
>
> --
>
> onModuleLoad implementation
>
>
> --
> PersonCell cell = new PersonCell();
> CellList cellList = new CellList(cell);
> List list = new ArrayList();
> Person p = new Person();
> p.setFname("Pranoti");
> p.setLname("Patil");
> p.setEmailid("pra.@gmail.com");
> p.setAge(30);
> list.add(p);
>
> p = new Person();
> p.setFname("Pandurang");
> p.setLname("Patil");
> p.setEmailid("pa.@gmail.com");
> p.setAge(30);
> list.add(p);
>
> p = new Person();
> p.setFname("Ravi");
> p.setLname("Kumar");
> p.setEmailid("ra.@gmail.com");
> p.setAge(30);
> list.add(p);
>
> cellList.setRowCount(list.size(), true);
> cellList.setRowData(list);
>
> RootPanel.get().add(cellList);
>
>
> --
>
>
> output:
>
>
> --
>
> First Name : null
>
> Last Name : null
>
> Email : null
> First Name : null
>
> Last N

Re: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread Richard
It's likely json will be processed more quickly on the client since it can 
be done natively, although it does depend on your use case. And json is 
usually smaller.
http://en.wikipedia.org/wiki/JSON#Native_encoding_and_decoding_in_browsers 
http://stackoverflow.com/questions/4596465/is-parsing-json-faster-than-parsing-xml
 
http://stackoverflow.com/questions/325085/when-to-prefer-json-over-xml  
(and vice versa)

On Wednesday, July 18, 2012 3:50:20 PM UTC+2, Ümit Seren wrote:
>
> I would go with JSON. 
> It's more compact than XML and seems to become more and more the defacto 
> standard for data communication in the web. 
>
>
> On Wednesday, July 18, 2012 7:18:42 AM UTC+2, MAQ wrote:
>>
>> Sorry, I meant 2 options provided by Google APIs.
>>
>> On Wednesday, July 18, 2012 2:50:51 PM UTC+10, Robert W wrote:
>>>
>>> I don't understant in what context you use "solution" word but generally 
>>> json is standard for api use, with gwt overlays mechanism it easy to use in 
>>> java typing model.
>>>
>>> On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote:

 Hi,

 I hope the question is clear, I'm a total GWT newbie. My project 
 requires the use of some of Google's APIs. Two main solutions are provided 
 one for XML and another for JSON (gdata-java-client and 
 google-api-java-client).

 Which one would be more suitable (easier, more compatible etc.)? Or is 
 it a mere personal choice?

 Regards,
 Mo

>>>

-- 
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/-/wWpftg3kSskJ.
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 horz. center a shrinkwrapped FlowPanel in a FlowPanel?

2012-07-18 Thread Jens
If you don't want to set the width through GWT, I guess your best chance 
will be text-align:center along with display:inline / display:inline-block

See: http://jsfiddle.net/F2fPN/

I am not sure if this will work in every browser. You'll have to test it 
against your supported target browsers.

-- 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/-/WKERZafmbp0J.
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: List/tabel to show complex data

2012-07-18 Thread Joseph Lust
Ralf,

GIven that you don't know how many you intend to display, and that there 
could be a large number of them, I'd go with Cell. However, if you are 
making just a few, with rich eventing/interactions, then I'd do UiBinder. 
I'd still be keen to know measured benchmarks for these widget types.

I hope that helps.

Sincerely,
Joseph

-- 
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/-/hy_1aGzjzywJ.
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: Setting Locale language dynamically initially

2012-07-18 Thread Joseph Lust
Very informative. Thanks Thomas!


Sincerely,
Joseph

-- 
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/-/Auvx1QATiXEJ.
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 & Jetty nocache.js files

2012-07-18 Thread Joseph Lust
You just need to add a filter to your web.xml file. This is lifted from a 
SO 
article.
 
This example just does the *.cache.* files, but adding another filter with 
the proper regex would also handle your *.nocache.* files.


Header Filter

com.liferay.portal.kernel.servlet.PortalClassLoaderFilter

filter-class

com.liferay.portal.servlet.filters.header.HeaderFilter


url-regex-pattern




Cache-Control
max-age=31536, public


Expires
31536



Sincerely,
Jospeh

-- 
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/-/mTdNG3kPR5QJ.
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 & Jetty nocache.js files

2012-07-18 Thread brent.r...@gmail.com
I figured out the answer.  All I had to do was add this to my web.xml file.

 

 default

 org.eclipse.jetty.servlet.DefaultServlet

 

 cacheControl

 public, max-age=0, must-revalidate

 





 default

 /myApp/*.nocache.js



Thanks!


On Wednesday, July 18, 2012 10:50:15 AM UTC-4, brent...@gmail.com wrote:
>
> In this gwt 
> web
>  says 
> to place a *.htaccess config file like this to avoid caching main 
> javascript gwt application.
>
> 
>   ExpiresActive on
>   ExpiresDefault "now"
>   Header merge Cache-Control "public, max-age=0, must-revalidate"
> 
>
> 
>   ExpiresActive on
>   ExpiresDefault "now plus 1 year"
> 
>
> Is there a way to do the same with Jetty ? (whithout needing to use httpd 
> jetty module)
>
> We're using an embedded jetty container version 7.3.1.v20110307.
>

-- 
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/-/--Zb9sbWUMwJ.
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 have problem deploy

2012-07-18 Thread Pablo Turcios
Good morning community

I have a problem trying to deploy a project.

[ERROR] at PMF.java(8): private static PersistenceManagerFactory
pmfInstance =
JDOHelper.getPersistenceManagerFactory("transactions-optional");

Please help me.


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: Application size due to Internationalization

2012-07-18 Thread Tony Rah
I use a special "DevModule.gwt.xml" module during development that only 
compiles the permutations I am interested in. This way I can control the 
user agent, locale, and other GWT based switches without compromising the 
production builds. Below is a rough overview of this approach:

Create a new module file XXXDev.gwt.xml where XXX is the name of your 
applications top level module used for production builds. You will inherit 
your apps module from here. Set your various property overrides (e.g. 
"" and "").

I personally use Ant to build my project and created a separate dev target 
that builds the dev module instead of the production module.

Obviously, there are countless ways to orchestrate this but the basic idea 
is that you only compile the permutations you care about while doing 
development. You let an automated build/test system build the really big 
production builds and perform all of the automated tests.

Hope that helps...

On Tuesday, July 17, 2012 6:19:10 AM UTC-6, Rana wrote:
>
> Hi,
>
> Does anyone have a solution to the huge size of application, when we apply 
> to it internationalization using the static method? We are supposed to 
> support 66 languages. The application takes a long time during compilation 
> and the size of the application is huge, we cannot upload it to google app 
> engine.
>
> Many thanks
> Rana
>

-- 
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/-/Kc9KY4AhWp4J.
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 & Jetty nocache.js files

2012-07-18 Thread brent.r...@gmail.com


In this gwt 
web
 says 
to place a *.htaccess config file like this to avoid caching main 
javascript gwt application.


  ExpiresActive on
  ExpiresDefault "now"
  Header merge Cache-Control "public, max-age=0, must-revalidate"



  ExpiresActive on
  ExpiresDefault "now plus 1 year"


Is there a way to do the same with Jetty ? (whithout needing to use httpd 
jetty module)

We're using an embedded jetty container version 7.3.1.v20110307.

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



When to use EntityProxy vs. ValueProxy

2012-07-18 Thread Yan
Hi there,

I have a parent class and child class. Child class has a lot of data. The 
parent contains a list of child objects.  Child is never loaded/updated by 
themselves, they are always maintained when user reads/updates on a parent.

The question, Parent makes a natural fit for EntityProxy. Because I want to 
take advantage of GWT client only send delta to server, I think Child 
should be another EntityProxy (not ValueProxy). Is that correct?

Is this a good determination when to use ValueProxy vs. EntityProxy: 
whether GWT client sends only delta or the whole serialized object to 
server?

Thanks,
Yan

-- 
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/-/xiCZgozM7gAJ.
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: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread Ümit Seren
I would go with JSON. 
It's more compact than XML and seems to become more and more the defacto 
standard for data communication in the web. 


On Wednesday, July 18, 2012 7:18:42 AM UTC+2, MAQ wrote:
>
> Sorry, I meant 2 options provided by Google APIs.
>
> On Wednesday, July 18, 2012 2:50:51 PM UTC+10, Robert W wrote:
>>
>> I don't understant in what context you use "solution" word but generally 
>> json is standard for api use, with gwt overlays mechanism it easy to use in 
>> java typing model.
>>
>> On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote:
>>>
>>> Hi,
>>>
>>> I hope the question is clear, I'm a total GWT newbie. My project 
>>> requires the use of some of Google's APIs. Two main solutions are provided 
>>> one for XML and another for JSON (gdata-java-client and 
>>> google-api-java-client).
>>>
>>> Which one would be more suitable (easier, more compatible etc.)? Or is 
>>> it a mere personal choice?
>>>
>>> Regards,
>>> Mo
>>>
>>

-- 
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/-/12xUTNc6vroJ.
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 horz. center a shrinkwrapped FlowPanel in a FlowPanel?

2012-07-18 Thread David Lee
I've had success centering a FlowPanel (lets call it contentPanel) in a 
FlowPanel (lets call it containerPanel).

The container panel expands to 100%:

.containerPanelStyle {
width: 100%;
height: 30px;
background-color: purple;
}

Then we can center the contentPanel easily by using css to set the left and 
right margins to auto:

.contentPanelStyle {
width: 600px;
height: 30px;
margin-left: auto;
margin-right: auto;
background-color: red;
}

Cool.

However, I find myself needing to shrinkwrap (I found that some css guys 
were calling it this) the FlowPanel.
By shrinkwrapping I just mean autosizing. The contentPanel will contain 
things that change width throughout runtime
and I want it to remain centered within the containerPanel.

No problem. I just put 'float' in the css:

.contentPanelStyle {
height: 30px;
margin-left: auto;
margin-right: auto;
background-color: red;
float:left;
}

Yayyy. Now the contentPanel's width shrinks to match the width of its 
contents (things like labels, drop down boxes).
B. Now the contentPanel is left justified in the containerPanel, 
ignoring the fact I've set the margins to auto.

What gives?
How do I center a FlowPanel that employs float:left in order to auto-size 
itself?

David


-- 
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/-/du2zoXFq5z4J.
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: List/tabel to show complex data

2012-07-18 Thread Ralf Ovelgoenne
Thanks Thomas and Joseph,
the UiBinder for Cells looks quite interesting. I will try it. I found the 
following article about 
it: 
https://developers.google.com/web-toolkit/doc/latest/DevGuideUiBinder#Rendering_HTML_for_Cells
Is there any more info about this topic somewhere?

@Joseph: At the moment I am not sure how much data I will have to present. 
Did I get it right: do you propose to write it directly into the UiBinder 
XML and show the data through iteration?

-- 
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/-/_9pHl0MzCFoJ.
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: Setting Locale language dynamically initially

2012-07-18 Thread Thomas Broyer


On Wednesday, July 18, 2012 5:08:13 AM UTC+2, Joseph Lust wrote:
>
> Thomas,
>
> The Groups page source is a fun read.
>
> Question for you, is there a certain compiler flag that can be used to 
> inline the CSS/JS (bootstraping - I see the code in there for injecting 
> 

Re: Application size due to Internationalization

2012-07-18 Thread Richard
Rana - are you combining class files into a jar? That'll help reduce the 
file count for GAE, if that's an issue for you.

Wishlist:
upload the code/basic .classes, have GWT compilation happen on Google 
infrastructure.

On Wednesday, July 18, 2012 9:49:19 AM UTC+2, Rana wrote:
>
> Hi Joseph,
>
> Thanks a lot for the information. I will go through both links, and see if 
> it helps in solving the problem.
>
> Many thanks again
> Rana
>
> On Wednesday, July 18, 2012 3:07:48 AM UTC+2, Joseph Lust wrote:
>>
>> Rana,
>>
>> I've read that internal Google apps must build to 240 permutations for 
>> the supported browsers and languages. To support this they:
>>
>>- Conduct draft compilations only using their desired dev permutation
>>- Do complete compiles for releases/CI/test on a server farm
>>
>> There are instructions out there that do this sort of thing:
>>
>>- gwt-distcc  
>>- GWT Distributed Build 
>> documentation
>>
>> Of course you probably don't need to do a complete build that often (CI 
>> machine, pre-release), so collapsing the permutations or just doing a 
>> single permutation draft compile might suffice.
>>
>>
>> Sincerely,
>> Joseph
>>
>

-- 
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/-/qLQkl-aALboJ.
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: Application size due to Internationalization

2012-07-18 Thread Rana
Hi Joseph,

Thanks a lot for the information. I will go through both links, and see if 
it helps in solving the problem.

Many thanks again
Rana

On Wednesday, July 18, 2012 3:07:48 AM UTC+2, Joseph Lust wrote:
>
> Rana,
>
> I've read that internal Google apps must build to 240 permutations for the 
> supported browsers and languages. To support this they:
>
>- Conduct draft compilations only using their desired dev permutation
>- Do complete compiles for releases/CI/test on a server farm
>
> There are instructions out there that do this sort of thing:
>
>- gwt-distcc  
>- GWT Distributed Build 
> documentation
>
> Of course you probably don't need to do a complete build that often (CI 
> machine, pre-release), so collapsing the permutations or just doing a 
> single permutation draft compile might suffice.
>
>
> Sincerely,
> Joseph
>

-- 
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/-/83feAvZqlsoJ.
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.