How to mark a field as completely hidden for smartgwt ListGrid?

2012-01-04 Thread Daniel
Hi guys,

How to mark a field as completely hidden for smartgwt ListGrid?
I do listGridFields[i].setHidden(true) according to API,But it still
could be able to show the field via a context menu.
and the API said 'canPickFields' has been set false can solve this
problem,but where the canPickFields ?

Thank you

Best Regards
Daniel

-- 
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: Basic question on activity and places

2012-01-04 Thread Thomas Broyer
No, but you can store the last activity you returned; this is exactly what 
the CachingActivityMapper does: it'll only call your (wrapped) 
ActivityMapper if the Place is different than the previous one, and 
returned the cached activity otherwise.
Put it behind a FilteredActivityMapper so you can turn different Places to 
other ones that could compare equal (e.g. turn any EmailDetailsPlace into a 
EmailListPlace, and every PersonDetailsPlace into a PersonListPlace; so 
that the CachingActivityMapper can return the same EmailListActivity or 
PersonListActivity (master) instance whereas you're navigating from mail 
to mail or person to person (detail to detail)).

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



Re: MVP scroll position is reset on place change

2012-01-04 Thread Thomas Broyer
How about also reusing the same activity instance? that way, it won't be 
stopped/restarted, and so its view won't be detached/reattached, and the 
scroll position should be maintained.

-- 
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/-/pqhTcAUDXBEJ.
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: TabLayoutPanel inside HeaderPanel - tab body doesn't show

2012-01-04 Thread Thomas Broyer
See http://code.google.com/p/google-web-toolkit/issues/detail?id=7065

-- 
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/-/bx9ip3V_6pcJ.
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: what could POSSIBLY be non transportable in this ValueType?

2012-01-04 Thread Thomas Broyer
You'll have to define that getId() here, only to have a reference to 
JobHistoryPK. Maybe @ExtraTypes would work but I haven't tried it; defining 
a getId() (even if you don't use it) will definitely work though (and if 
you don't include a with(id), it won't add any bloat to the payloads on 
the wire)

-- 
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/-/RKOs_qMeh9AJ.
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: what could POSSIBLY be non transportable in this ValueType?

2012-01-04 Thread Thomas Broyer
How about the getStartDate()?

-- 
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/-/7lt7HNcvvxcJ.
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: what could POSSIBLY be non transportable in this ValueType?

2012-01-04 Thread Elhanan Maayan
What about iT ?
On Jan 4, 2012 12:19 PM, Thomas Broyer t.bro...@gmail.com wrote:

 How about the getStartDate()?

 --
 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/-/7lt7HNcvvxcJ.
 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: what could POSSIBLY be non transportable in this ValueType?

2012-01-04 Thread Thomas Broyer
The getStartDate() getter is not public in your class, but mapped on the 
proxy.

-- 
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/-/1hEEmGCyBNYJ.
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: what could POSSIBLY be non transportable in this ValueType?

2012-01-04 Thread Elhanan Maayan
You mean everything must be public?
On Jan 4, 2012 12:23 PM, Thomas Broyer t.bro...@gmail.com wrote:

 The getStartDate() getter is not public in your class, but mapped on the
 proxy.

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



Automatic compiling in Hosted Mode

2012-01-04 Thread Adolfo Panizo Touzon
Hi everybody,

I succeeded the step deploy my GWT app to an external server (in my case
WebSphere). This step is easy
(herehttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT's
).

Now, I'm trying to compile automatically the app (on fly)  to avoid the
slow process of compilation (because now when I made a change in my app, my
WebSphere Server restart it automatically).

The basic idea, is that I want to start the GWT Development Mode (like
thishttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#dev_mode)
and work from here, but I don't how can I do.

Any ideas or comments would be appreciated.

Regards.

Adolfo.

-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

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

2012-01-04 Thread Amrutha Thomas
can anyone tell me how to move cursor position from one text box to another
textbox and so on by onclicking a button using tabindex??






-- 
with best regards,

Amrutha

-- 
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 application using hibernate and postgresql

2012-01-04 Thread Stefanos Antaris
Hi to all,

i have implemented a new gwt application without any app engine integration
and i need to use postgresql as a database . I have managed to integrate
postgresql but one of the prerequisites is to use hibernate. I am searching
for about 2 days for a solution but i haven't found any and the jboss
hibernate examples are not working. Has any a complete gwt example with
hibernate and postgres integration? Thanks in advance.

Best regards,
Stefanos Antaris

-- 
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: DateBox formatting help

2012-01-04 Thread Vik
Thanks a lot!

Thankx and Regards

Vik
Founder
http://www.sakshum.org
http://blog.sakshum.org


On Tue, Jan 3, 2012 at 6:38 PM, Thomas Broyer t.bro...@gmail.com wrote:

 dateOfBirth.setFormathttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DateBox.html#setFormat(com.google.gwt.user.datepicker.client.DateBox.Format)
 (new 
 DateBox.DefaultFormathttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DateBox.DefaultFormat.html#DateBox.DefaultFormat(com.google.gwt.i18n.client.DateTimeFormat)
 (DateTimeFormat.getFormathttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/i18n/client/DateTimeFormat.html#getFormat(java.lang.String)(dd/MMM/)))


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


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



Re: GWT tutorial stockwatcher

2012-01-04 Thread ang
Hi to everybody,
j'm new to gtw (sorry for my english) I have a problem with the
tutorial in question ... in step 5

[url]http://code.google.com/intl/it-IT/webtoolkit/doc/1.6/tutorial/
codeclient.html[/url]

how come when I click on button remove the symbol variable contains
the value corresponding to the  table row?

[code]
..
...
// Add a button to remove this stock from the table.
Button removeStockButton = new Button(x);
removeStockButton.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
int removedIndex = stocks.indexOf(symbol);
stocks.remove(removedIndex);
stocksFlexTable.removeRow(removedIndex + 1);
  }
});
stocksFlexTable.setWidget(row, 3, removeStockButton);


[/code]

-- 
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 virtual keyboard shift key

2012-01-04 Thread Amrutha Thomas
How can I code for a button to act as a shift key??

-- 
with best regards,

Amrutha

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



Re: GWT tutorial stockwatcher

2012-01-04 Thread Amrutha Thomas
Button removeStockButton = new Button(x);
removeStockButton.addStyleDependentName(remove);
removeStockButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
removeStock(symbol);
}
});
stocksFlexTable.setWidget(row, 3, removeStockButton);


try this it works




On Wed, Jan 4, 2012 at 4:09 PM, ang angelwa...@gmail.com wrote:

 Hi to everybody,
 j'm new to gtw (sorry for my english) I have a problem with the
 tutorial in question ... in step 5

 [url]http://code.google.com/intl/it-IT/webtoolkit/doc/1.6/tutorial/
 codeclient.html[/url]

 how come when I click on button remove the symbol variable contains
 the value corresponding to the  table row?

 [code]
 ..
 ...
 // Add a button to remove this stock from the table.
Button removeStockButton = new Button(x);
removeStockButton.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
int removedIndex = stocks.indexOf(symbol);
stocks.remove(removedIndex);
stocksFlexTable.removeRow(removedIndex + 1);
  }
});
stocksFlexTable.setWidget(row, 3, removeStockButton);


 [/code]

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




-- 
with best regards,

Amrutha

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



Re: gwt application using hibernate and postgresql

2012-01-04 Thread Harpal Grover
Gilead is the tool you're looking for. Google it to get started. I use it
for my hibernate + postgres projects.
On Jan 4, 2012 6:41 AM, Stefanos Antaris ssanta...@gmail.com wrote:

 Hi to all,

 i have implemented a new gwt application without any app engine
 integration and i need to use postgresql as a database . I have managed to
 integrate postgresql but one of the prerequisites is to use hibernate. I am
 searching for about 2 days for a solution but i haven't found any and the
 jboss hibernate examples are not working. Has any a complete gwt example
 with hibernate and postgres integration? Thanks in advance.

 Best regards,
 Stefanos Antaris

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


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



Re: Basic question on activity and places

2012-01-04 Thread sri
Thanks Jens.
A quick followup question.
You have mentioned Display Area. From the response, I take it a Place
is bigger than a display area and multiple Display Areas make up a
place.right?
So if there is one ActivityMapper per Display Area, which would
indicate multiple ActivityMappers per Place, which component is
responsible for deciding which ActivityMapper be used when you are in
a Place? Thanks.

-sri

On Jan 3, 2:26 pm, Jens jens.nehlme...@gmail.com wrote:
 If you have multiple display areas in your app you would have multiple
 ActivityMappers (one per display area, e.g. a master area and a detail
 area). Now if you go to a Place each ActivityMapper can return a different
 Activity based on the Place. So its more like one-to-number of activity
 mappers. A common example is that you have a ListEmailActivity that shows
 a list of emails and a EMailDetailsActivity that actually shows the
 selected email's content. Both can be started at the same time if the list
 of emails and the contents of the selected email are visible at the same
 time. If an ActivityMapper does not need to return an Activity for a place
 it can return null or return a default Activity that displays a message or
 something. You could use both methods, e.g. if you return null it means
 hide the entire display area because I don't need it for that place and
 if you want to show a message return a MessageActivity instead.

 It can also happen that an ActivityMapper can start the same Activity for
 different places. For example you could have a single ListActivity that
 defines a general set of features for a list style view (for example
 searching the list, list ordering, etc.) but uses a ListAdapter to manage
 the displayed objects. If you now have EmailListPlace, PersonListPlace,
 etc. they all would start a ListActivity but for each Place the
 ListActivity would use a different ListAdapter, e.g. EmailAdapter,
 PersonAdapter, etc.

 -- J.

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



Testing GWT1.6 App with JUnit

2012-01-04 Thread Rohit Gupta
Hey everyone

I have just inherited :) a legacy project using GWT 1.6 and running on
Glassfish V2.1 server.
The server side component is EJB3.0.

I want to develop unit tests to test the GWT app.

Here is the sample test case I wrote -

/**
 *
 */
package com.tf.sea.test;

import com.google.gwt.junit.client.GWTTestCase;
import com.tf.sea.client.pages.CreateUserPage;

/**
 * @author Rohit.Gupta1
 *
 */
public class TransactionFormPageTest extends GWTTestCase {


private final static String MODULE_NAME = com.tf.sea.SeaWebApp;
@Override
public String getModuleName() {
// TODO Auto-generated method stub
return MODULE_NAME;
}

public void testSomething() {

CreateUserPage createUserPage = new CreateUserPage();
assertTrue(true);
}

}

However, on running it, I get the following error
Starting HTTP on port 0
A new version of GWT (2.3.0) is available
For additional info see: 
file://C:/DOCUME~1/ROHIT~1.GUP/LOCALS~1/Temp/gwt-update-2.3.0.html
createObjectName with StandardEngine[gwt]
preRegister with gwt:type=Logger
Jan 4, 2012 6:27:02 PM org.apache.catalina.core.StandardHost
getDeployer
INFO: Create Host deployer for direct deployment ( non-jmx )
Jan 4, 2012 6:27:02 PM org.apache.catalina.core.StandardHostDeployer
install
INFO: PWC1340: Installing web application at context path  from URL
file:D:\SEA_CODE_BASE\JUnit_2_01_2012\SeaWebApp\tomcat\webapps\ROOT
Jan 4, 2012 6:27:02 PM org.apache.catalina.startup.HostConfig
deployDirectories
SEVERE: PWC3060: Error deploying web application directory ROOT
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:
309)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:
1014)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:
716)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:
466)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:995)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:
386)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:
159)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1252)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:971)
at
org.apache.catalina.core.ContainerBase.startChildren(ContainerBase.java:
1564)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:
1244)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:
549)
at org.apache.catalina.startup.Embedded.start(Embedded.java:945)
at
com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.init(EmbeddedTomcatServer.java:
246)
at
com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.start(EmbeddedTomcatServer.java:
70)
at com.google.gwt.dev.GWTShell.doStartUpServer(GWTShell.java:226)
at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java:590)
at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:
410)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:346)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
219)
at junit.framework.TestCase.runBare(TestCase.java:130)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:132)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:
130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
196)
Caused by: java.lang.NullPointerException
at
org.apache.catalina.startup.DigesterFactory.register(DigesterFactory.java:
325)
at
org.apache.catalina.startup.DigesterFactory.registerLocalSchema(DigesterFactory.java:
266)
at
org.apache.catalina.startup.DigesterFactory.newDigester(DigesterFactory.java:
154)
at

GWTTestCase possible issue (SmartGWT DMI call)

2012-01-04 Thread Patrick
There seems to be cases where GWTTestCase fails.  One example I have
run into is when trying to do a SmartGWT DMI RPC call within the
GWTTestCase.

SmartClient seems to think there may be an issue in the GWTTestCase
that is causing this.

Here is a couple of posts referencing this on their forums. The error
I am referencing is shown in these posts.
http://forums.smartclient.com/showthread.php?t=18481

http://forums.smartclient.com/showthread.php?t=18356

Does anyone have any feedback or even better a solution on this?  I
would hate to have to introduce an additional tool to test this code.

Thank you in advance,
Patrick

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



Re: gwt application using hibernate and postgresql

2012-01-04 Thread Patrick Julien
I think you should use RequestFactory in conjunction with guice-persist. 
 It works with any JPA layer.

-- 
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/-/TVLYHjXjqCQJ.
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: Basic question on activity and places

2012-01-04 Thread Jens


 A quick followup question. 
 You have mentioned Display Area. From the response, I take it a Place 
 is bigger than a display area and multiple Display Areas make up a 
 place.right? 


Yes, you could say it that way. 

A place is just an abstract tool that allows you to navigate through your 
app and storing state information. It has no real relation to display 
areas. A place does not know anything about display areas. You could have 
one, five or ten display areas. 

Imagine you are in a plane flying around the world. If the plane has three 
windows (front, left, right) you would see something different through each 
window (= display area). What you see depends on where you are (= place). 
But the place doesn't care about if you are in a plane looking through the 
left window ;-)
 

So if there is one ActivityMapper per Display Area, which would 
 indicate multiple ActivityMappers per Place, which component is 
 responsible for deciding which ActivityMapper be used when you are in 
 a Place?



When you change a place a PlaceChangeRequestEvent is fired on the EventBus 
and if the place change is allowed a PlaceChangeEvent is fired after it. 
For each display area you have to set up an ActivityManager (manages 
activity life cycle and clears the display area if the activity is stopped) 
which needs an ActivityMapper and an EventBus. So the ActivityManager 
listens for PlaceChange(Request)Events on the EventBus and ask the 
ActivityMapper for the activity it should use for a given place.

So in your app's init method you would have some code like:

EventBus eventbus = ;
ActivityManager masterActivityManager = new ActivityManager(new 
MasterActivityMapper(), eventbus);
masterActivityManager.setDisplay(appShell.getMasterDisplayArea());

ActivityManager detailsActivityManager = new ActivityManager(new 
DetailsActivityMapper(), eventbus);
detailsActivityManager.setDisplay(appShell.getDetailsDisplayArea());

Now on a place change the ActivityManagers act totally independent from 
each other. But as you are responsible for implementing the ActivityMappers 
you can decide what each display area should show for a given place by 
returning the activity you want. So the component that decides which 
ActivityMapper is used is the developer that writes the app's init method 
;-) 

-- 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/-/0Q0e3ernr-AJ.
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 do I troubleshoot Something other than a Java object was returned from JSNI method error?

2012-01-04 Thread laredotornado
Hi,

I'm using GWT 2.4.  Occassionally, I'll get errors like the below --
Something other than a Java object was returned from JSNI method.
In this case, the closest line in my code (line 366) is

String type = nativeEvent.getType();

where nativeEvent is of type
com.google.gwt.dom.client.NativeEvent.  How do I figure out what
event GWT is complaining about?  I cannot consistently reproduce
this error, but I notice it in my development mode logs every so
often.

Thanks, - Dave


08:09:05.779 [ERROR] [productplus] Uncaught exception escaped

com.google.gwt.event.shared.UmbrellaException: One or more exceptions
caught, see full set in UmbrellaException#getCauses
at
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:
129)
at com.google.gwt.user.client.Event
$NativePreviewEvent.fire(Event.java:87)
at com.google.gwt.user.client.Event$NativePreviewEvent.access
$4(Event.java:73)
at com.google.gwt.user.client.Event
$.fireNativePreviewEvent(Event.java:488)
at com.google.gwt.user.client.DOM.previewEvent(DOM.java:1328)
at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
337)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
218)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
337)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
218)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
136)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
561)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
269)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
172)
at
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:
292)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
546)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
363)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Something other than a
Java object was returned from JSNI method
'@com.google.gwt.dom.client.DOMImpl::eventGetType(Lcom/google/gwt/dom/
client/NativeEvent;)': JS value of type boolean, expected
java.lang.Object
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
271)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.dom.client.DOMImpl.eventGetType(DOMImpl.java)
at com.google.gwt.dom.client.NativeEvent$.getType$
(NativeEvent.java:268)
at com.myco.clearing.product.client.widget.DndController
$DragEventsPreviewHandler.onPreviewNativeEvent(DndController.java:366)
at com.google.gwt.user.client.Event
$NativePreviewEvent.dispatch(Event.java:195)
at 

Re: Abridged summary of google-web-toolkit@googlegroups.com - 56 Messages in 24 Topics

2012-01-04 Thread xavier . ivanez
NOUVEAU - BORE@L INFORMATIQUE INTEGRE JPA CONSULTANTS 
Afin de mieux vous servir, nos deux sociétés ont décidé de réunir leurs 
compétences  et 
leur professionnalisme sous le nom de JPA CONSULTANTS SA .
 
Par ce partenariat, nous nous améliorerons sur les points suivants :
• Logiciel :   SAGE, CEGID, CIEL, EBP...
• Matériels : Serveurs, connexions, Internet
• Proximité, écoute  et disponibilité

Merci d'adresser vos messages à l'adresse suivante : xiva...@jpaconsultants.com


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



Re: Abridged summary of google-web-toolkit@googlegroups.com - 56 Messages in 24 Topics

2012-01-04 Thread Ian Bambury
Can't someone ban this git?


2012/1/4 xavier.iva...@borealinformatique.com

 NOUVEAU - BORE@L INFORMATIQUE INTEGRE JPA CONSULTANTS
 Afin de mieux vous servir, nos deux sociétés ont décidé de réunir leurs
 compétences  et
 leur professionnalisme sous le nom de JPA CONSULTANTS SA .

 Par ce partenariat, nous nous améliorerons sur les points suivants :
 • Logiciel :   SAGE, CEGID, CIEL, EBP...
 • Matériels : Serveurs, connexions, Internet
 • Proximité, écoute  et disponibilité

 Merci d'adresser vos messages à l'adresse suivante :
 xiva...@jpaconsultants.com


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



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



Call garbage collector

2012-01-04 Thread Twentyseven
Hello,

I'd like to call the browser's garbage collector.
I did some tests with the inspect function in Chome and the button to
call the gc but I'd like to do this automatically in my GWT
application.
I've seen in the JRE emulation reference that the System.gc() method
was emulated, but after calling it in my GWT code nothing happened.

Is there a way to call the browser's gc in my GWT code ?

Thank's

-- 
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: GWTTestCase possible issue (SmartGWT DMI call)

2012-01-04 Thread Sanjiv Jivan
The the issues with GWTTestCase that relate to the second thread are

1) GWTTestCase does not execute the onModuleLoad() of EntryPoint's
specified in any inherited module and

2) GWTTestCase does not execute any linkers specified in inherited modules

Sanjiv

On Wed, Jan 4, 2012 at 8:26 AM, Patrick pkelley...@gmail.com wrote:

 There seems to be cases where GWTTestCase fails.  One example I have
 run into is when trying to do a SmartGWT DMI RPC call within the
 GWTTestCase.

 SmartClient seems to think there may be an issue in the GWTTestCase
 that is causing this.

 Here is a couple of posts referencing this on their forums. The error
 I am referencing is shown in these posts.
 http://forums.smartclient.com/showthread.php?t=18481

 http://forums.smartclient.com/showthread.php?t=18356

 Does anyone have any feedback or even better a solution on this?  I
 would hate to have to introduce an additional tool to test this code.

 Thank you in advance,
 Patrick

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



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



Re: Basic question on activity and places

2012-01-04 Thread Thomas Broyer
#ShamelessPlug

Places and Activities 101:

   1. http://tbroyer.posterous.com/gwt-21-places
   2. http://tbroyer.posterous.com/gwt-21-places-part-ii
   3. http://tbroyer.posterous.com/gwt-21-activities
   4. (and where you're at it: 
   http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni )
   

-- 
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/-/wqEeB-SVShgJ.
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 do I troubleshoot Something other than a Java object was returned from JSNI method error?

2012-01-04 Thread Thomas Broyer
Short answer: switch from Chrome to Firefox for DevMode

Long answer: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5778#c65

-- 
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/-/iMNNt-8TrSsJ.
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 do I troubleshoot Something other than a Java object was returned from JSNI method error?

2012-01-04 Thread Sean
The plugin for FF gets out of date so quickly, that it becomes almost 
easier to use Chrome. I wish it wasn't, cause I can't stand getting the DO 
YOU WANT TO STOP THIS PLUGIN from Chrome while debugging every 30s. But it 
is good to know that its Chrome dependent and nothing something I or Google 
Maps API (the biggest offender I've seen so far) doing something wrong.

-- 
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/-/KdcIXOHMPvIJ.
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: what could POSSIBLY be non transportable in this ValueType?

2012-01-04 Thread Elhanan
i'm beginning to think something is messed up here, in my attempt to simply 
stuff i created another embedded class called contacts , for the employee 
class it has only 2 fields of string values.
my first run failed with the must run validation tool exception, so i did 
what i nomally do in sich cases rename the .apt folder from .apt_generated 
to .apt.gen this sorted out.

now EVERYTHING worked fine, include the original proxy, i returned to hide 
the getFirstDate to package level and got could not locate getter for 
FIrstDate which now makes sense (inlike the can't send JobHistoryProxy to 
client message i got before) 

i also remove the getId from the JobHistoryProxy and it STILL worked.

how is it that the GWT apt messes up the project so much? 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VTNAZPuKbzEJ.
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: what could POSSIBLY be non transportable in this ValueType?

2012-01-04 Thread Thomas Broyer
I suspect it's *Eclipse* which messes things up actually.

-- 
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/-/uVKVMjPledMJ.
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: what could POSSIBLY be non transportable in this ValueType?

2012-01-04 Thread Elhanan Maayan
*yea, i think there's a bug somewhere about it. *

On Wed, Jan 4, 2012 at 7:26 PM, Thomas Broyer t.bro...@gmail.com wrote:

 I suspect it's *Eclipse* which messes things up actually.

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

 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 Scheduler / TimeLine / Gantt charts

2012-01-04 Thread Rasmus Ersmarker
If you are interested in the a Scheduler, TimeLine or Gantt component
for GWT please check out the Gxt Scheduler and Gxt Gantt components.

http://www.gxt-scheduler.com

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



Requestfactory: How to send a HTTP status code to the client

2012-01-04 Thread Andreas
Hi,

what is the recommended way to inform the client about a 404 Not Found or a 
401 Unauthorized?

Greetings Andreas

-- 
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/-/jmBZjbdDFdsJ.
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: Automatic compiling in Hosted Mode

2012-01-04 Thread Galache
AFAIK, you can´t do that. For deploy your GWT app in an external
server you need to compile it. GWT Dev mode doesn´t generate the
permutations.

On 4 ene, 12:06, Adolfo Panizo Touzon adolfo.pan...@gmail.com wrote:
 Hi everybody,

 I succeeded the step deploy my GWT app to an external server (in my case
 WebSphere). This step is easy
 (herehttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...
 ).

 Now, I'm trying to compile automatically the app (on fly)  to avoid the
 slow process of compilation (because now when I made a change in my app, my
 WebSphere Server restart it automatically).

 The basic idea, is that I want to start the GWT Development Mode (like
 thishttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...)
 and work from here, but I don't how can I do.

 Any ideas or comments would be appreciated.

 Regards.

 Adolfo.

 --
 El precio es lo que pagas. El valor es lo que recibes.
 Warren Buffet

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



[ANN] tessell 2.0 released

2012-01-04 Thread Stephen Haberman
Hi,

I've been working on a MVP framework that automates a lot of the 
display/view aspects of MVP. It also includes some rich models (properties, 
etc.) to do Backbone/etc.-style model/view bindings. The two make for a 
fairly compelling setup, IMO.

Previously, the framework was called gwt-mpv, but it's been 
rechristened/released as Tessell, with a new website/updated docs/etc.:

http://www.tessell.org

If anyone has questions/comments, feel free to ask me or post on the 
tessell mailing list.

There is also a blog post describing a port of the JS TodoMvc app (used to 
compare JS MVC frameworks) to Tessell, which might be an interesting read:

http://www.draconianoverlord.com/2011/12/10/todomvc-in-gwt-mpv.html

Thanks,
Stephen

-- 
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/-/lTMqWDEAvHQJ.
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 application using hibernate and postgresql

2012-01-04 Thread Rob
Hi,

Check out this post re GWT, JPA, Hibernate and HSQLDB:

- http://uptick.com.au/content/working-gwt-jpa-hibernate-and-hsqldb

You just need to update persistence.xml for the sample to work with
PostgreSQL.

Cheers
Rob

On Jan 5, 12:42 am, Patrick Julien pjul...@gmail.com wrote:
 I think you should use RequestFactory in conjunction with guice-persist.
  It works with any JPA layer.

-- 
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: Add packages to GWT project

2012-01-04 Thread karim duran
Hi Franco,

Of course you can  And  I should say you must...
GWT is a convenient technical framework, but it don't solve your business
problem or your application focus domain.

In Eclipse ( view project ) just right clic on your GWT project and
new-package, name it just say

com.franco ( for example )

Then on it right clic and  new - class - your business class

In UI component, you just have to instanciate your Objects and call their
services.

That's all.

I hope it helps.

Regards.

Karim Duran.

2011/12/28 franco 90fra...@gmail.com

 Hello.

 I´m developing a simple project in GWT 2.4 with Eclipse JEE Indigo.
 I would like to know if I can add my own packages to the project. For
 example:

 src

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



Tips on handling ScrollPanel in UiBuilder

2012-01-04 Thread Thad
I'm trying to figure out how to place a view inside a ScrollPanel so
some on a laptop can use it but someone with a full screen won't be
bothered with scrollbars.

My top level looks like this:

  g:LayoutPanel
g:layer
  g:SimpleLayoutPanel ui:field='menuPanel'
cold:MenuViewImpl ui:field='menu'/
  /g:SimpleLayoutPanel
/g:layer
g:layer
  g:ScrollPanel ui:field='filtersPanel' height='600px'
me:FiltersViewImpl ui:field='filters'/
  /g:ScrollPanel
/g:layer
... (more layers)

FiltersViewImpl looks like

  g:LayoutPanel width='100%' height='580px'
styleName='{style.layoutBorder}'


When setFiltersLayout() is called, I show it with
layoutPanel.setWidgetTopHeight(filtersPanel, MENUPANEL_HEIGHT,
Unit.PX, 100, Unit.PCT);
and hide the other panels.

I've not hit on the combination that will show the scrollbars on a
smaller screen without alwaysShowScrollBars='true' or reducing the
display area to the detriment of a larger display.

-- 
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: Tips on handling ScrollPanel in UiBuilder

2012-01-04 Thread Aidan O'Kelly
Don't give the ScrollPanel an explicit height, as it will get it from the
layer. Generally you should be setting the top/height/etc attributes on the
g:layer rather than on the Widget it contains, this is what happens when
you call setWidgetTopHeight etc.  Do give the 'filters' widget an explicit
height (as you are already doing)

  Not really what you asked but, you'll probably want to use top/bottom on
the layer, rather than top/height...
When you call:
layoutPanel.setWidgetTopHeight(filtersPanel, MENUPANEL_HEIGHT, Unit.PX,
100, Unit.PCT);

If MENUPANEL_HEIGHT is say,100px, the bottom of filtersPanel will be 100px
past the bottom of the layout panel, as setting the height to 100% means
'the height of the entire LayoutPanel.'

So, instead, set bottom to 0, which will ensure it always 0px from the
bottom, regardless of where the top is.
(Alternatively, you can specify the height of the menu bar in PCT, and set
the height of the filterPanels layer to the remaining PCT)

On Thu, Jan 5, 2012 at 12:16 AM, Thad thad.humphr...@gmail.com wrote:

 I'm trying to figure out how to place a view inside a ScrollPanel so
 some on a laptop can use it but someone with a full screen won't be
 bothered with scrollbars.

 My top level looks like this:

  g:LayoutPanel
g:layer
  g:SimpleLayoutPanel ui:field='menuPanel'
cold:MenuViewImpl ui:field='menu'/
  /g:SimpleLayoutPanel
/g:layer
g:layer
  g:ScrollPanel ui:field='filtersPanel' height='600px'
me:FiltersViewImpl ui:field='filters'/
  /g:ScrollPanel
/g:layer
... (more layers)

 FiltersViewImpl looks like

  g:LayoutPanel width='100%' height='580px'
 styleName='{style.layoutBorder}'


 When setFiltersLayout() is called, I show it with
 layoutPanel.setWidgetTopHeight(filtersPanel, MENUPANEL_HEIGHT,
 Unit.PX, 100, Unit.PCT);
 and hide the other panels.

 I've not hit on the combination that will show the scrollbars on a
 smaller screen without alwaysShowScrollBars='true' or reducing the
 display area to the detriment of a larger display.

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



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



Re: GWT application freezes when new version is deployed while using it

2012-01-04 Thread Kyle Baley
Thanks Thomas. This helped us find the ultimate root of the problem. We had 
mapped a servlet (quite by accident) to a URL pattern that matched our 
module name. So after deploying a new version, requests to the old 
.cache.js files were being picked up by this servlet rather than throwing a 
404 error and generating an onFailure.

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



Overlapping or overlaying images, while keeping handlers independent

2012-01-04 Thread Lynn
I'm trying to use one image as a base image, on which I have multiple
smaller images that may or may not overlap, each with a unique mouse-
enter handler.

I heard using AbsolutePanel can allow me to choose an absolute
position on the page to place my images, but overlapping images will
inherit any handlers.

Any way to do what I want to do without meshing together of the
handlers themselves?

-- 
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 gui with no servlet container

2012-01-04 Thread Sebastian Gurin
Hi all. This is my first message to the group. I'm a contributor on a similar 
project at j2s.sf.net. Tried GWT some years ago and didn't like it, but now, it 
has improved a lot. My congrats to the authors! keep the good work.

Now my question, I would like create a simple html site, with no server stuff 
at all, only text, images and css, in gwt. Is it possible to deploy a gwt app 
(with no rpc/requestfractory/server at all) as static content in a non servlet 
support like plain apache?

The gwt app will not use rpc or any server comunication at all, only gwt 
widgets and themes. So I suppose there is a way of deploying 
javascript+html+css gwt generated files as static content? Any suggestions?

Thanks in advance.


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

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



Ipad Iphone Keyboard will not popup with GWT textbox

2012-01-04 Thread fishbone
I have a pretty basic GWT/GAE app that uses a single textbox.  The
textbox works good in Firefox, IE, Chrome, Safari on Mac, and Andriod,
but the Textbox does not work on Iphone or Ipad.

When clicking the text box in Iphone/Ipad, nothing happens.  The
keyboard does not popup therefore the user cannot use the app?

Any ideas?

This is how the textbox is constucted in GWT.  I do have a key down
handler for enter events.

public TextBox zipCodeTextBox = new TextBox();


zipCodeTextBox.addKeyDownHandler(new KeyDownHandler() {
public void onKeyDown(KeyDownEvent event) {
if (event.getNativeKeyCode() == 
KeyCodes.KEY_ENTER) {
chartVP.add(loading);
getCharts();
}
}

});

-- 
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 gui with no servlet container

2012-01-04 Thread Sebastian Gurin
Hi all. This is my first message to the group. I'm a contributor on a similar 
project at j2s.sf.net. Tried GWT some years ago and didn't like it, but now, it 
has improved a lot. My congrats to the authors! keep the good work.

Now my question, I would like create a simple html site, with no server stuff 
at all, only text, images and css, in gwt. Is it possible to deploy a gwt app 
(with no rpc/requestfractory/server at all) as static content in a non servlet 
support like plain apache?

The gwt app will not use rpc or any server comunication at all, only gwt 
widgets and themes. So I suppose there is a way of deploying 
javascript+html+css gwt generated files as static content? Any suggestions?

Thanks in advance.


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

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



Re: Requestfactory: How to send a HTTP status code to the client

2012-01-04 Thread Thomas Broyer
Answered on SO: http://stackoverflow.com/q/8728243/116472

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



Issues with -XdisableClassMetadata and -XdisableCastChecking

2012-01-04 Thread Gal Dolber
Hi,

After making some random changes to a project it stopped working on chrome
(only the compiled version and only when compiling obfuscated). Pretty hard
to debug, and I actually never found the problem.
It occurred to me to disable the compilation flags -XdisableClassMetadata
and -XdisableCastChecking and it suddenly started working again.

Anyone else is having problems with those optimization flags? Any tips on
the solution?

Thanks

-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

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



Styles broken after adding app to a website.

2012-01-04 Thread Nano Elefant
Hello,

adding my app to a website causes the websites css styles to interfere
with the GWT css styles.
Any ideas how this can be fixed?

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



[gwt-contrib] Re: Fix this-window confusion in DevMode (issue1620805)

2012-01-04 Thread jat

But the point is it is almost certainly an error to call a method on a
null value, and catching it in DevMode would be better than replicating
the behavior of prod mode in this case.

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

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


[gwt-contrib] Re: Fix this-window confusion in DevMode (issue1620805)

2012-01-04 Thread stephen . haberman

Agreed it's almost certainly an error, I just assumed drifting DevMode
to be stricter than prod would end up as another bug report down the
road (hey, this failed in devmode, but not in my production app).

Perfectly willing to defer to you guys though; my original spike for
this did use a Java side null check in the hosted mode JSO
rewriting...unfortunately I don't think I kept a branch/stash of it.
I'll get around to resurrecting it and update the review.


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

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


[gwt-contrib] Re: Fix issue 6834. (issue1609804)

2012-01-04 Thread rdayal

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

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


[gwt-contrib] Re: Fix this-window confusion in DevMode (issue1620805)

2012-01-04 Thread stephen . haberman

Okay, updated the patch. Within the rewritten JSNI methods, before
making the jump to javascript, we check for null instances (assuming the
method isn't static).



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

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


[gwt-contrib] Re: Fix this-window confusion in DevMode (issue1620805)

2012-01-04 Thread stephen . haberman


http://gwt-code-reviews.appspot.com/1620805/diff/8001/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java
File dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java (right):

http://gwt-code-reviews.appspot.com/1620805/diff/8001/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java#newcode35
dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java:35: }
I tried a few other places to put this (like util.Util or another class
in shell.rewrite), but CompilingClassLoader wasn't having it.

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

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