Re: converting JPA entities to Records

2010-08-30 Thread Peter Simun
Thomas, why do you think that deferred binding is fail?

Peter

On 29. Aug, 23:06 h., Thomas Broyer t.bro...@gmail.com wrote:
 On 29 août, 18:13, Joe Hudson joe...@gmail.com wrote:

  Hi,

  I was about to start a project that will use deferred binding to
  automatically convert JPA-annotated entities to GWT Records.  Before
  re-inventing the wheel I wanted to make sure this didn't exist first -
  does anyone know of a project that is already doing this?  Thanks.

 The SpringSource Tool Suite or Spring Roo maybe...

 But instead of deferred binding (which is likely to fail IMO), why not
 use annotation processors (javax.annotation.processing.*)? run either
 in your IDE (on demand, or at soon as you edit a JPA-annotated entity
 *.java file) or on the command line using the apt tool from your
 JDK, you'll be able to process your JPA-annotated classes and generate
 any (Java) file your want.

-- 
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-tool...@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: Store information in Cookies?

2010-08-30 Thread rjcarr
I'm pretty sure you only have 3 options:

 1) Keep the value in javascript.  I can't tell from your description
if your page gets reloaded.  If it does reload, then you'll lose your
javascript state.

 2) Use cookies.  This seems like the best solution (assuming that
your page reloads).  GWT has a pretty simple API for using cookies.

 3) Store state to server.  This is a lot of extra work where it is
likely that cookies would be sufficient.

Good luck!

On Aug 27, 12:13 am, xworker blomqvist.andr...@gmail.com wrote:
 Hi

 How do I go about and save information between  views on the client? I
 have a dropdown with values, when the user selects something I want to
 use that information when showing another view later on, but I dont
 want to switch to that view directyly. Is the only way to store the
 information in the Cookies?

 Example: the user selected a value in a dropdown in a view in a
 docklayout in the top container. When the user later on navigates to a
 detail view in the center container I want to show different data
 depending on what is selected from the dropdown menu. Since the view
 is created everytime it is about to be shown, I can't store anything
 in it.

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



Set the month in the datepicker

2010-08-30 Thread Pinzine
Hi,

I have 2 dates FromDate and ToDate. I used the datebox to show the
dates. My requirement is when the user selects the some dates in the
fromdate, I need to show the same month in the Todate's datepicker.

I have used the following , but it shows the date in the todate's
datebox. I just want to navigate to the month in the todate's
datepicker ( with respect to fromdate) and it should not come in the
datebox.

txtFromDate.addValueChangeHandler(new ValueChangeHandlerDate() {
int pog = 0;
public void onValueChange(ValueChangeEventDate event) 
{
if (pog%2==0){

txtToDate.getDatePicker().setValue(txtFromDate.getValue(),true);

}
pog++;
}
});

toDate.getDatePicker().setValue(fromDate.getValue(),true);

Please advice.

Thanks
Siva.


-- 
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-tool...@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: converting JPA entities to Records

2010-08-30 Thread Thomas Broyer


On 30 août, 09:25, Peter Simun si...@seges.sk wrote:
 Thomas, why do you think that deferred binding is fail?

First, you'll have to GWT.create() something to trigger your code
generator. It would then have to be triggered before you GWT.create()
your RequestFactory for the RequestFactoryGenerator to see the
generated files. Last but not least, you'll have to code against your
generated records (RequestFactory requests will probably use those
records; and if you instead generate the RequestFactory, your calling
code will have to deal with the records).
Deferred binding is about generating concrete implementations for
already defined interfaces; here you want to generate interfaces,
which cannot be done at compile-time (like deferred binding) because
you need to code against them.
You might find a way to make it work, but annotation processors would
probably also require less code and convolutions, as it's a tool made
for this job!

-- 
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-tool...@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: problems with auto-complete form login

2010-08-30 Thread Thomas Broyer

On 30 août, 07:45, Magnus alpineblas...@googlemail.com wrote:
 Hi,

 I implemented a login form suitable for auto-complete by the browser
 nearly exactly as described here:

 http://borglin.net/gwt-project/?page_id=467

...which violates rule #3: do not move the form around or the browser
will treat it the same as a dynamically generated form and won't auto-
fill it (well, it really depends on which browser, and probably which
browser version).
All you're allowed to do with the form is to show and hide it and
change its style.
(but believe me, you'd rather externalize the login process from your
app, just like Google apps –as you're using GMail, you should
understand what I mean–, it makes things so much simpler!)

 Unfortunately, I have problems with it:

 1. The password field is not filled in.

 When I login for the first time the browser (FF) asks me to remember
 the form fields. I can verify in the browsers settings that the
 username and password is stored in the browser.

 However, when I login again, only the username field is autofilled.
 The password field is empty.

See above, the problem is moving the FormPanel around (adding it to a
VerticalPanel in this case).

 2. I cannot repeat the login.

 When I login, logout and then try to login again, the form cannot be
 created. The call to Document.get().getElementById(LOGINFORM_ID);
 returns null.

First, because the form has already been wrapped, you shouldn't try to
wrap it again; consider your FormPanel as a singleton, and always
reuse it (as a rule of thumb, make all your views singletons if you
can; working with the DOM is probably what degrades your app's
performances the most, so try to not do it more than necessary).
In your case, getElementById probably returns null because you removed
the FormPanel from the document instead of just hiding/showing it.

But let me reiterate: your life will be easier if you externalize the
login process from your app.
When the app loads, it knows if the user is authenticated (in case you
authorize unauthenticated access, otherwise the app wouldn't even be
loaded as the authentication gatekeeper wouldn't let the user in
without first authenticating) and who she is; and the user's identity
cannot change through the lifetime of the app (signing out will unload
the app, re-signing in will load it again), which means you can keep
data cached. Integrating the login process in your app means
dispatching login/logout events and handling them to clear cached
data, which can really become very painful.
Believe me on this, I built two apps this way before I realize the
obvious (well, I already knew it before making the second one, but it
had to work the same as the first :-( )

-- 
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-tool...@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: Problems with gwt plugin and eclipse

2010-08-30 Thread AlexG
Hi TBirch

I also had problems, ehwn I get started with GWT.
I am using Windows 7 64-Bit.

I have the followong Verison installed, and everything
works fine:

Eclipse Helios 3.6 32-Bit !!
Plugins fomr the Eclipse-plugin-install-feature

Be sure you have a Java 32-Bit JDK installed, otherwise
this will nor work with Eclipse 32-Bit.

Greets Alex


On 29 Aug., 21:44, TBirch tjfbi...@bellsouth.net wrote:
 I am running 64 bit windows vista and for some reason I am getting
 this error:
 Errors occurred during the build.
 Errors running builder 'Google Web Toolkit Project Validator' on
 project 'contacts'.
 org.eclipse.jdt.internal.core.JavaModel cannot be cast to
 org.eclipse.jdt.core.IJavaProject

 I have tried several versions of eclipse and and the only way I seem
 to be able to create and run a standard gwt project in eclipse is by
 going back to an older version of eclipse i.e Version:
 3.5.0.v20090611a-9gEeG1HFtQcmRThO4O3aR_fqSMvJR2sJ
 Build id: I20090611-1540

 Anyone have any suggestions as I have tried every other combination of
 32 and 64 bit eclipse with gwt plugin I can think of.
 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-tool...@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: Property value with accent requestFactoryServlet

2010-08-30 Thread julien
Thank you for your answer.
The issue is not fixed on the scaffold demo 2.1M3.
I've submitted it here: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5238
Bye for now,
Julien

On Aug 27, 3:21 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 27 août, 15:03, julien devn...@ac-rennes.fr wrote:



  Hi all,

  With the scaffold demo app and using IE8,

  Creating a new employee by entering é as name makes the app crash.

  When the employee list is refreshed, the following exception appears
  and the list is never shown.
  Uncaught exception escaped
  com.google.gwt.core.client.JavaScriptException: (SyntaxError): '}'
  attendu
   number: -2146827279
   description: '}' attendu
      at
  com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
  elServer.java:
  237)
      at
  com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
  126)
      at
  com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
  552)
      at
  com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
  269)
      at
  com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
  ava:
  91)
      at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
      at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
      at sun.reflect.GeneratedMethodAccessor61.invoke(Unknown Source)
      at
  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
  l.java:
  25)
      at java.lang.reflect.Method.invoke(Method.java:597)

  By the way on firefox the
  accentued character provided by
  requestFactoryServlet are not displayed even if the character is taken
  from a utf-8 source
  file.

  Can you confirm this issue can be reproduced ?

 Yes, we have it too, this is because RequestFactoryServlet doesn't set
 the content-type and encoding of the response, so it defaults to text/
 plain (and text/* with no encoding specified defaults to ISO-8859-1
 per the HTTP/1.1 spec).
 This has been fixed in 2.1M3 AFAICT, but we haven't yet migrated
 (Record.getId having switched to a Long gives us a hard time; we're
 even considering waiting for M4, expecting it'll let us use String –
 or, better yet, any type– again) so I can't tell for 
 sure:http://code.google.com/p/google-web-toolkit/source/diff?r=8466format...

  Has anybody find a workaround ?

 Switch to 2.1M3, or maybe add a servlet filter to force the encoding
 of the response (and maybe also fix the decoding of the request?)

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



Advice for GWT.create and replace-with tag ?

2010-08-30 Thread Ice13ill
I'm developing an app for 2 languages and GWT performs 12 compilation
(2*6 for each browser)
But i also need to develop a second UI for some widgets so i decided
to use the replace-with tag for replacing a class with one of it's
children and also instantiating that class with GWT.create().
the problem is that now GWT performs 24 compilation (and it seems very
awkward because the gwt library uses a lot of these replace-with/
create() stuff). So if i use a second replace-with tag and
GWT.create() for another class replacement, will that generate another
12 compilations ? (36 total !)
The question is: am i doing smth wrong ? or should i adopt another
strategy for using multiple classes ?
Please advice !

-- 
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-tool...@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: Set the month in the datepicker

2010-08-30 Thread Pinzine
Can anyone of you guys assist me on this.

Thanks
Siva

On Aug 30, 12:42 pm, Pinzine emailtomu...@gmail.com wrote:
 Hi,

 I have 2 dates FromDate and ToDate. I used the datebox to show the
 dates. My requirement is when the user selects the some dates in the
 fromdate, I need to show the same month in the Todate's datepicker.

 I have used the following , but it shows the date in the todate's
 datebox. I just want to navigate to the month in the todate's
 datepicker ( with respect to fromdate) and it should not come in the
 datebox.

 txtFromDate.addValueChangeHandler(new ValueChangeHandlerDate() {
                         int pog = 0;
                         public void onValueChange(ValueChangeEventDate 
 event) {
                                 if (pog%2==0){

 txtToDate.getDatePicker().setValue(txtFromDate.getValue(),true);

                                 }
                                 pog++;
                         }
                 });

                 toDate.getDatePicker().setValue(fromDate.getValue(),true);

 Please advice.

 Thanks
 Siva.

-- 
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-tool...@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: Expenses Sample project

2010-08-30 Thread mztay...@gmail.com
I just started getting this issue.  In setting up I had a couple
issues with dependency conflicts between my eclipse and maven
datanucleus artifacts (updated a couple of my maven based dependencies
to runtime).  Don't have a solution yet but I figure its a good place
to start.


On Aug 25, 9:22 pm, tc camec...@gmail.com wrote:
 Does anyone know why I would get this error when trying to run the
 samples/expenses app via maven.

 : java.lang.NoClassDefFoundError: org/datanucleus/
 PersistenceConfiguration
  java.lang.NoClassDefFoundError: Could not initialize class
 com.google.gwt.sample.expenses.server.domain.EMF

 I am running this by using these commands.

 mvn compile
 mvn gwt:compile
 mvn gwt:run

 I also tried to use mvn gae:run  but get the same error.

 This is the sample project in the trunk of the GWT samples area.

-- 
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-tool...@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 for Python

2010-08-30 Thread Reid Lai
Is there any GWT branch for python or other language so we could rely
on this branch if GWT can't use Java technology for some reasons later
on?

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



Calling GWT App from other App.

2010-08-30 Thread Parth
Hi,

I am trying to call GWT application to call from other application.
Like a web widget, I want to call GWT Application. I don't know
whether that is possible or not.

Can anyone help me out?

Thanking you,
Parth Bhagat.

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



Problem windowsize with shadwos more than 100%

2010-08-30 Thread Lumu
Hello,

I 've setup an layout that looks like this.

The Root-Panel contains a horizontal layout. The horizontal layout I
have a vertical layout with three columns. Every column of the
vertical layout now contains a Window. The left and the right column
have a fixed size the central one resizes to fit the screen. This
works until here.
If I add a shadow to the WIndow the layout is bigger than the sceen.
And the oversize is exactly the size of the shadow.

I#ve googled a lot but couldn't find a solution. Does anybody have a
idear. I think there must be a solution because it works with the
google wave layout that has a similar architektur than mine.

Thanks and best regards
Manu

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



How to add a widget as a Panel on top of the MapPanel

2010-08-30 Thread Kiarash
I successfully have been implementing the gwt google maps. I am trying
to add a Panel on the top of the Map, but when I add a panel on top of
the Map so the map loose its functionality... I cannot move the map or
zoom etc... What I do is that adding the map to the LayoutPanel
myMapPanel, next myMapPanel.add(googleMap), next
myMapPanel.add(mySmalPanelOnTop)... and the map loose its
functionality. Is there a way working around this??? Thanx!!!

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



create dynamic column chart using XML parsed data

2010-08-30 Thread Gopal Samy
i created dynanic column chart using XML parsed data which are
retrieved from DB(mysql), but i got issue during add columns and
displayed chart tooltip display wrong column label.

my code is :
  private AbstractDataTable createTable(String xmldata) {
  DataTable data = DataTable.create();

data.addColumn(ColumnType.STRING, Year);
data.addColumn(ColumnType.NUMBER, Gopal,0);
data.addColumn(ColumnType.NUMBER, Shanthi,1);
data.addColumn(ColumnType.NUMBER, Senthil,2);

// XML PARSE
final Document xmlDoc = XMLParser.parse(xmldata);
final Element root = xmlDoc.getDocumentElement();
XMLParser.removeWhitespace(xmlDoc);
final NodeList profiles = root.getElementsByTagName(DATA);

int rowIndex = 0, columnIndex = -1;

//data.addRows(profiles.getLength());
for (int i = 0; i  profiles.getLength(); i++) {
data.addRow();
final Element year = (Element) profiles.item(i);

int noofEmp = 
year.getElementsByTagName(INDIVIDUALS).getLength();

data.setValue(rowIndex, ++columnIndex, year
.getAttributeNode(YEAR).getValue());
for (int j = 0; j  noofEmp; j++) {
++columnIndex;
final Element emp = (Element) 
year.getElementsByTagName(
INDIVIDUALS).item(j);
final Element emp_leave = (Element) 
emp.getElementsByTagName(
T_LEAVE).item(0);
final Element emp_name = (Element) 
emp.getElementsByTagName(
NAME).item(0);

//Window.alert(Num of Record+noofEmp);
data.addColumn(ColumnType.NUMBER, emp_name

.getFirstChild().getNodeValue());

//data.setColumnLabel(columnIndex,emp_name

//.getFirstChild().getNodeValue());

//Window.alert(Name : 
+emp_name
//  
.getFirstChild().getNodeValue());

data.setValue(rowIndex, columnIndex, 
Integer.parseInt(emp_leave

.getFirstChild().getNodeValue()));
//Window.alert(row 
Column+data.getValueInt(rowIndex,
columnIndex));

}
rowIndex++;
columnIndex = -1;
}
Window.alert(Row Count ,Column Count+data.getNumberOfRows()+
+data.getNumberOfColumns());


return data;
  }

Any one know solution for this issue, kindly replied me immediately.
Advanced lot of 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-tool...@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: Memory Leak IE7 GWT 2.0.4

2010-08-30 Thread Marcos Paulo
The problem is really clear, the components still exists after i change the
content from mainContainer,
that in MVP it's like go to another page... How do i have sure? because give
a id for a component then
i go to page twice and in the second time, an error ocurred telling me that
the it could not create another
component with the same id, so the old one, even if it is not showing, still
exist there

The solution?? call destroy from component.. but... it happens what i told
in my last e-mail...

My memory leak happens in all browsers, IE 8, Firefox 3.6 and Safari 4...

I am using SmartGwt

If someone could please give a hint to solve this problems, i would
apriciate...
tnks
--
Marcos Paulo Damasceno
Desenvolvedor Java
(85) 8140-0111
Twitter: www.twitter.com/_marcospaulo_
Del.ici.ous: www.delicious.com/marcospaulo_
MSN:  marcospaulodamasc...@hotmail.com


Grandes resultados requerem grandes ambições.
(Heráclito)

“Se suas ações inspiram outros a sonhar mais, aprender mais, fazer mais,
tornar-se mais, você é um líder.”
(John Quincy Adam)

Se tudo fosse perfeito, amanhã não poderia ser melhor



2010/8/27 Joel Webber j...@google.com

 Hmm... I've tried to reproduce this on IE7 and IE8 (both quirks 
 standards), to no avail. I doubt it's anything in the outer HTML file,
 but just in case, here's what I used:

 !DOCTYPE HTML
 html
  head
titleHello/title
script type=text/javascript language=javascript src=hello/
 hello.nocache.js/script
  /head
  body
div id='container'/div
  /body
 /html

 The initial calls to getSomeText() were causing a huge number of slow-
 script warnings on IE, so I was only able to run through a few
 iterations. I then dropped the count by a factor of 10 to get the SSWs
 under control, and the memory usage appears quite stable after a
 couple of hundred clicks. (~30MB). Can you think of anything else that
 might be different in your setup?

 On 27 août, 08:20, chrisr chris.robert.rowl...@gmail.com wrote:
  Sorry for posting this twice.  If a moderator wants to/can remove the
  duplicate go ahead.
 
  On Aug 25, 2:56 pm, chrisr chris.robert.rowl...@gmail.com wrote:
 
 
 
   I created a simple application in an attempt to reproduce a memory
   leak issue in our decently large GWT application.
 
   This test application basically contains a split panel with a button
   on the left, and a tab panel full of large blocks of text on the
   right.
   Clicking the reload button fires the reloadRight method, and does a
   panel.clear() to remove the old tab panel and a  panel.add() to add a
   new tab panel to the right panel.  Doing this repeatedly causes memory
   consumption to increase without bounds.
 
   For example, on the initial load IE7 uses around 35 MB.  125 clicks
   later its using nearly 1.5GB.
 
   Is this example doing something in a fundamentally incorrect way?
   How  can I keep memory usage from exploding like this?
 
   /* Example Below */
 
   package com.example.myproject.client;
 
   import com.google.gwt.core.client.EntryPoint;
   import com.google.gwt.event.dom.client.ClickEvent;
   import com.google.gwt.event.dom.client.ClickHandler;
   import com.google.gwt.user.client.ui.Button;
   import com.google.gwt.user.client.ui.DecoratedTabPanel;
   import com.google.gwt.user.client.ui.DecoratorPanel;
   import com.google.gwt.user.client.ui.HTML;
   import com.google.gwt.user.client.ui.HTMLPanel;
   import com.google.gwt.user.client.ui.HorizontalSplitPanel;
   import com.google.gwt.user.client.ui.RootPanel;
 
   /**
* Entry point classes define codeonModuleLoad()/code.
*/
   public class TestApplication01 implements EntryPoint {
 
   /**
* This is the entry point method.
*/
   public void onModuleLoad() {
   RootPanel.get(container).add( new MainPanel() );
   }
 
   private class MainPanel extends DecoratorPanel{
 
   private HorizontalSplitPanel hsp;
   private HTMLPanel lPanel;
   private HTMLPanel rPanel;
   private DecoratedTabPanel tabPanel;
   int rightPanelCount = 0;
 
   public MainPanel(){
   hsp = new HorizontalSplitPanel();
   hsp.setSplitPosition(25%);
   hsp.setSize(800px, 400px);
   lPanel = new HTMLPanel(div
 id=\reloadButton\/);
 
   rPanel = new HTMLPanel(div
 id=\right-panel-contents\/);
   Button reloadButton = new ReloadButton(this);
   reloadButton.setVisible(true);
   lPanel.add( reloadButton, reloadButton );
   hsp.setLeftWidget(lPanel);
   hsp.setRightWidget(rPanel);
   this.add( hsp 

Issue during create dynamically columns in Columnchart

2010-08-30 Thread Gopalsamy Ponnuraj
I faced a issue during create column chart and add columns
dynamically.
My code:
private AbstractDataTable createTable(String xmldata) {
  DataTable data = DataTable.create();

data.addColumn(ColumnType.STRING, Year);
data.addColumn(ColumnType.NUMBER, Gopal,0);
data.addColumn(ColumnType.NUMBER, Shanthi,1);
data.addColumn(ColumnType.NUMBER, Senthil,2);

// XML PARSE
final Document xmlDoc = XMLParser.parse(xmldata);
final Element root = xmlDoc.getDocumentElement();
XMLParser.removeWhitespace(xmlDoc);
final NodeList profiles = root.getElementsByTagName(DATA);

int rowIndex = 0, columnIndex = -1;

//data.addRows(profiles.getLength());
for (int i = 0; i  profiles.getLength(); i++) {
data.addRow();
final Element year = (Element) profiles.item(i);

int noofEmp = 
year.getElementsByTagName(INDIVIDUALS).getLength();

data.setValue(rowIndex, ++columnIndex, year
.getAttributeNode(YEAR).getValue());
for (int j = 0; j  noofEmp; j++) {
++columnIndex;
final Element emp = (Element) 
year.getElementsByTagName(
INDIVIDUALS).item(j);
final Element emp_leave = (Element) 
emp.getElementsByTagName(
T_LEAVE).item(0);
final Element emp_name = (Element) 
emp.getElementsByTagName(
NAME).item(0);

//Window.alert(Num of Record+noofEmp);
//  data.addColumn(ColumnType.NUMBER, emp_name
//  
.getFirstChild().getNodeValue());
data.setColumnLabel(columnIndex,emp_name

.getFirstChild().getNodeValue());

//Window.alert(Name : 
+emp_name
//  
.getFirstChild().getNodeValue());

data.setValue(rowIndex, columnIndex, 
Integer.parseInt(emp_leave

.getFirstChild().getNodeValue()));
//Window.alert(row 
Column+data.getValueInt(rowIndex,
columnIndex));

}
rowIndex++;
columnIndex = -1;
}
//Window.alert(Row Count ,Column 
Count+data.getNumberOfRows()+
+data.getNumberOfColumns());


return data;
  }

-- 
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-tool...@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: HTML5 Game Engine using Google Web ToolKit

2010-08-30 Thread yeti
Its my interested field, and I am very enjoyable to surf  your site
and achievement

On 8月29日, 上午12时31分, Ciarán ciaran.mccann@gmail.com wrote:
 If anyone is interested in reading about the development progress of a
 HTML5 Game Engine which is been developed using Google Web Toolkit
 check out this blog 
 posthttp://flax.ie/flax-html5-game-engine-development-diary-part-1/

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



Dynamically changing an image on update

2010-08-30 Thread annuk
hii
i m new to GWT.
I m developing an add/update screen with image upload in it.
While updating a screen if i upload a new image then i want the new
image to displayed dynamically on that screen instead of the old
image..
now i have to reload the page to see the changes..
Can anybody help me out with this...

thanks in advance

-- 
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-tool...@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.1 M3 is now available

2010-08-30 Thread David Chandler
Recompile your GWT application and clear browser cache. This will
update the stale hosted.html that the plugin uses to determine the
version.

/dmc

On Aug 26, 1:22 pm, Jason Stratton jason.e.strat...@gmail.com wrote:
 I seem to have got it right now:

 repositories
 repository
   idgwt-dev/id
   urlhttp://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/
 maven/url
 /repository
 /repositories

 pluginRepositories
 pluginRepository
   idgwt-dev/id
   urlhttp://google-web-toolkit.googlecode.com/svn/2.1.0.M3/gwt/
 maven/url
 /pluginRepository
 /pluginRepositories

         dependencies

                 !--  GWT dependencies (from central repo) --
                 dependency
                         groupIdcom.google.gwt/groupId
                         artifactIdgwt-servlet/artifactId
                         version2.1-SNAPSHOT/version
                         scoperuntime/scope
                 /dependency
                 dependency
                         groupIdcom.google.gwt/groupId
                         artifactIdgwt-user/artifactId
                         version2.1-SNAPSHOT/version
                         scopeprovided/scope
                 /dependency

         /dependencies

 Was is just simply the trailing slash on the URL for the repositories?

 Anyway, I had some compilation conflicts with the gwt-incubator 2.0.1.
 So I commented it all out.

 I was then able to compile and run. Woohoo!

 Now I'm having an issue debugging. I'm running on JBoss and connecting
 with the Eclipse plug-in (3.5 (Galileo)) with the -noserver option. It
 was working fine with GWT 2.0.4. I have upgraded the plug-in to 2.1 M3
 and when I try to debug, I get the Plugin failed to connect to the
 hosted mode server at 127.0.0.1:9997 message in the browser.

 In the Eclipse console, I see the following message:

 Connection received from 127.0.0.1:52115
    [ERROR] Invalid version number 2.1 passed to
 external.gwtOnLoad(), expected 2.0; your hosted mode bootstrap file
 may be out of date; if you are using -noserver try recompiling and
 redeploying your app

 Any ideas?
 I'm just guessing here, but the GWT code is identifying itself as
 version 2.1, but the Eclipse plug-in believes it's version 2.0?

 Thanks
 Jason

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



Use ScrollPanel inside the HorizontalPanel

2010-08-30 Thread udayanga ranasinghe
Hi All,

I try to put Scrollpanel into HorizontalPanel.
The content in the scrollpanel is appear as it expected.
But the scrolling property is not working.
It 's not scrolling. :(
What is the reason for that?

Please help me to solve this problem.

Thanks And Regards
Udayanga Ranasinghe.

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



How to add an ImageResource to a CellTable Column

2010-08-30 Thread chiappone
I have set up a CellTable where I would like to have an image inside
of a cell defined by an ImageResource.  What is the best way to do
this?

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



IMGwt Imaging API is available?

2010-08-30 Thread tan_go238
Hi,

I'm watching the video of Google I/O 2010.
http://code.google.com/events/io/2010/sessions/gwt-html5.html

And want to try demos that are introduced in the session.
Does anyone know where the source of IMGwt Imaging API is?
I'm really fascinated with that!

Best Regards.
---
Go Tanaka

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



Using GWT 2.0.4 with PHP

2010-08-30 Thread Navaratan Technologies
Hi,

I would like to know if it is possible to integrate GWT 2.0.4
seamlessly with PHP.

When running in devmode I can see that it runs on in built server. How
can I tell the GWT hosted mode debugger to use the apache server
installed via XAMPP on my local machine instead of the Jetty Server.
If i can do this, I can put the PHP Server code in my war folder and
make war my document root.

Or is it possible to run PHP code on the in built Jetty Server?

Any help is appreciated.

Thanks,
Vimal.

-- 
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-tool...@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: Memory Leak IE7 GWT 2.0.4

2010-08-30 Thread Marcos Paulo
Guys please help,

I'm passing throuth the same problem, the moderator from smargwt forum told
me to
call destroy() in components that i don't need anymore, but my architecture
uses MVP,
and i have only one container which changes the content to render diferent
pages...
when I call destroy() in him and then I put the new component, he doesn't
render anymore.

I have an aplication getting into production and I am passing throuth memory
leak crashes on
browser... If someone can help me, pliz help.

I'm desperate,
--
Marcos Paulo Damasceno
Desenvolvedor Java
(85) 8140-0111
Twitter: www.twitter.com/_marcospaulo_
Del.ici.ous: www.delicious.com/marcospaulo_
MSN:  marcospaulodamasc...@hotmail.com


Grandes resultados requerem grandes ambições.
(Heráclito)

“Se suas ações inspiram outros a sonhar mais, aprender mais, fazer mais,
tornar-se mais, você é um líder.”
(John Quincy Adam)

Se tudo fosse perfeito, amanhã não poderia ser melhor



2010/8/27 chrisr chris.robert.rowl...@gmail.com

 Sorry for posting this twice.  If a moderator wants to/can remove the
 duplicate go ahead.

 On Aug 25, 2:56 pm, chrisr chris.robert.rowl...@gmail.com wrote:
  I created a simple application in an attempt to reproduce a memory
  leak issue in our decently large GWT application.
 
  This test application basically contains a split panel with a button
  on the left, and a tab panel full of large blocks of text on the
  right.
  Clicking the reload button fires the reloadRight method, and does a
  panel.clear() to remove the old tab panel and a  panel.add() to add a
  new tab panel to the right panel.  Doing this repeatedly causes memory
  consumption to increase without bounds.
 
  For example, on the initial load IE7 uses around 35 MB.  125 clicks
  later its using nearly 1.5GB.
 
  Is this example doing something in a fundamentally incorrect way?
  How  can I keep memory usage from exploding like this?
 
  /* Example Below */
 
  package com.example.myproject.client;
 
  import com.google.gwt.core.client.EntryPoint;
  import com.google.gwt.event.dom.client.ClickEvent;
  import com.google.gwt.event.dom.client.ClickHandler;
  import com.google.gwt.user.client.ui.Button;
  import com.google.gwt.user.client.ui.DecoratedTabPanel;
  import com.google.gwt.user.client.ui.DecoratorPanel;
  import com.google.gwt.user.client.ui.HTML;
  import com.google.gwt.user.client.ui.HTMLPanel;
  import com.google.gwt.user.client.ui.HorizontalSplitPanel;
  import com.google.gwt.user.client.ui.RootPanel;
 
  /**
   * Entry point classes define codeonModuleLoad()/code.
   */
  public class TestApplication01 implements EntryPoint {
 
  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
  RootPanel.get(container).add( new MainPanel() );
  }
 
  private class MainPanel extends DecoratorPanel{
 
  private HorizontalSplitPanel hsp;
  private HTMLPanel lPanel;
  private HTMLPanel rPanel;
  private DecoratedTabPanel tabPanel;
  int rightPanelCount = 0;
 
  public MainPanel(){
  hsp = new HorizontalSplitPanel();
  hsp.setSplitPosition(25%);
  hsp.setSize(800px, 400px);
  lPanel = new HTMLPanel(div
 id=\reloadButton\/);
 
  rPanel = new HTMLPanel(div
 id=\right-panel-contents\/);
  Button reloadButton = new ReloadButton(this);
  reloadButton.setVisible(true);
  lPanel.add( reloadButton, reloadButton );
  hsp.setLeftWidget(lPanel);
  hsp.setRightWidget(rPanel);
  this.add( hsp );
  reloadRight();
  }
 
  char[] chars = new char[] {' ',' ',' ', ' ', ' ',
  'a','b','c','d','e','f','g','h','i','j','k','l','m',
 
  'n','o','p','q','r','s','t','u','v','w','x','y','z' };
 
  private String getSomeText(int length){
  StringBuffer sb = new StringBuffer(length);
  for ( int i=0; ilength; ++i ){
 
  sb.append( chars[ (int)Math.round(Math.random()*(chars.length-1)) ]);
  if ( i0  i % 60 == 0 )
  sb.append(br);
  }
  return sb.toString();
  }
 
  protected void reloadRight(){
  ++rightPanelCount;
  rPanel.clear();
 
  tabPanel = new DecoratedTabPanel();
  tabPanel.setWidth(400px);
  tabPanel.setAnimationEnabled(true);
 
 

Long RPC causes fail without statuscode

2010-08-30 Thread Erik Bens
Hi,

I've got a problem with an RPC call. I'm using the RPC Dispatch
Pattern and call a Handler on the server which is working about
60minutes. I deployed the application on two different servers and got
the following:
- Server 1: It seems the RPC fails after 5 minutes and the onFailure
Method on client side is invoked. The Throwable contains a
statuscodeexception without a message and without a statuscode! The
very interesting point is, that the handler continue his work until
he's ready, but then do not go to the client again.
- Server 2: The same as above but it takes about 50 minutes until the
RPC comes back to onFailure at the client side. (the time difference
could be caused by the different performance of the servers). So I've
got the same problem without an exception on the client side and the
server side is working properly but without going back to the client.

There is no timeout implemented for the RPC calls.
Seems there is a problem within the rpc call, because a whole try /
catch around the handler code doesn't throw any exceptions.

Does anyone have an idea or had already the same problem?

Regards

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



Widget drag sometimes doesn't work

2010-08-30 Thread Jovan
I'm building app where user is able to create Rectangle, Circle and
what-not nodes and connect them with links using gwt-graphics library.
Now, drag event is crucial as user must be able to move created nodes.
Sometimes when I just do mouse down (without prior clicking) drag
works just fine. After that (when node is focused), when I try to move
node, cursor turns into crossed circle icon (drag disabled icon) and
no event is fired AT ALL. :(

Node object handles select/deselect events, while canvas object below
them is actually handling mouseMove and moves selected nodes.
Basically, both canvas and nodes have this piece of code:

addClickHandler(eventHandler);
addMouseDownHandler(eventHandler);
addMouseUpHandler(eventHandler);
addMouseMoveHandler(eventHandler);
addMouseOverHandler(eventHandler);
addMouseOutHandler(eventHandler);
addDoubleClickHandler(eventHandler);

where eventHandle is my instance of object that implements all those
event handlers.

Did others stumble upon this problem? Are focused widgets not
draggable?

Any help would be much appreciated.

Thanks,
Jovan

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



/missing-plugin/ eroor

2010-08-30 Thread miki haiat
im newby  to gwt  ...
i download the eclipse  plugin and im tiring to run the google exemple
code
and thats what`s im receiving   in the browser
The requested URL /missing-plugin/ was not found on this server.



and in the eclipse console


29/08/2010 15:26:25
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /favicon.ico


thanks
miki

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



Grid column added at run time

2010-08-30 Thread abhijeet
Dear All,

Is there any event using which I can get new column added at run
time ??/

-- 
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-tool...@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 are some of the most valuable frameworks in your project?

2010-08-30 Thread Ikari
Gin and Guice for dependency injection. GWT-presenter as realization
of MVP pattern, GWT-dispatch for client-server communication. So far
that's fine.

-- 
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-tool...@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: converting JPA entities to Records

2010-08-30 Thread Peter Simun
AFAIK, you have existing interface (GWT record) ... and you want to
create a concrete implementation of that interface - if you will
choose GWT generator or APT/JSR269 processor is does not matter - both
can fullfil your needs. processor in the java compile time, generator
in the GWT compile time.

Peter

On 30. Aug, 09:57 h., Thomas Broyer t.bro...@gmail.com wrote:
 On 30 août, 09:25, Peter Simun si...@seges.sk wrote:

  Thomas, why do you think that deferred binding is fail?

 First, you'll have to GWT.create() something to trigger your code
 generator. It would then have to be triggered before you GWT.create()
 your RequestFactory for the RequestFactoryGenerator to see the
 generated files. Last but not least, you'll have to code against your
 generated records (RequestFactory requests will probably use those
 records; and if you instead generate the RequestFactory, your calling
 code will have to deal with the records).
 Deferred binding is about generating concrete implementations for
 already defined interfaces; here you want to generate interfaces,
 which cannot be done at compile-time (like deferred binding) because
 you need to code against them.
 You might find a way to make it work, but annotation processors would
 probably also require less code and convolutions, as it's a tool made
 for this job!

-- 
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-tool...@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: Use ScrollPanel inside the HorizontalPanel

2010-08-30 Thread aditya sanas
adjust the size of horizontal panel and then according to it adjust the size
of scrolling panel...
--
Aditya


On Sat, Aug 28, 2010 at 9:33 AM, udayanga ranasinghe 
udayanga.u...@gmail.com wrote:

 Hi All,

 I try to put Scrollpanel into HorizontalPanel.
 The content in the scrollpanel is appear as it expected.
 But the scrolling property is not working.
 It 's not scrolling. :(
 What is the reason for that?

 Please help me to solve this problem.

 Thanks And Regards
 Udayanga Ranasinghe.

 --
 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@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: Dynamically changing an image on update

2010-08-30 Thread aditya sanas
http://code.google.com/p/gwtupload/
http://code.google.com/p/gwtupload/this might help you
--
Aditya


On Sat, Aug 28, 2010 at 12:56 PM, annuk annut...@hotmail.com wrote:

 hii
 i m new to GWT.
 I m developing an add/update screen with image upload in it.
 While updating a screen if i upload a new image then i want the new
 image to displayed dynamically on that screen instead of the old
 image..
 now i have to reload the page to see the changes..
 Can anybody help me out with this...

 thanks in advance

 --
 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@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: Using GWT 2.0.4 with PHP

2010-08-30 Thread Thomas Broyer


On 30 août, 07:09, Navaratan Technologies i...@navaratan.com wrote:
 Hi,

 I would like to know if it is possible to integrate GWT 2.0.4
 seamlessly with PHP.

 When running in devmode I can see that it runs on in built server. How
 can I tell the GWT hosted mode debugger to use the apache server
 installed via XAMPP on my local machine instead of the Jetty Server.

See 
http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT'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-tool...@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: Advice for GWT.create and replace-with tag ?

2010-08-30 Thread Thomas Broyer


On 30 août, 11:54, Ice13ill andrei.fifi...@gmail.com wrote:
 I'm developing an app for 2 languages and GWT performs 12 compilation
 (2*6 for each browser)
 But i also need to develop a second UI for some widgets so i decided
 to use the replace-with tag for replacing a class with one of it's
 children and also instantiating that class with GWT.create().
 the problem is that now GWT performs 24 compilation (and it seems very
 awkward because the gwt library uses a lot of these replace-with/
 create() stuff). So if i use a second replace-with tag and
 GWT.create() for another class replacement, will that generate another
 12 compilations ? (36 total !)

The number of permutation is dependent upon the number of deferred-
binding properties and their possible values, not the number of
replace-with or generate-with rules.

 The question is: am i doing smth wrong ? or should i adopt another
 strategy for using multiple classes ?
 Please advice !

I don't understand what you mean by a second UI for some widgets so
I can't tell how you should do it (and whether replace-with and more
generally deferred-binding is appropriate for your case).
What's clear is that you seem to have added a new deferred-binding
property (define-property) with two possible values (to be
determined at runtime by a property-provider or explicitly using a
meta name=gwt:property), and you should question yourself whether
this is needed.

-- 
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-tool...@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: same code - different compile plattforms - different results???

2010-08-30 Thread Magnus
Hi Falcon,

thank you very much!!!
This works perfectly!

I just copied your code in my main html file, right at the end of the
head tag.

Could you tell me how you found out that the width was set to 368 px?
In FF I have FireBug, but it did not show this width. In IE I have
nothing similar.

Another question: Why should I change the height from 35px to 33px? I
had no problem with the heigt...

Thank you again!

Now I can proceed with my app...

Magnus

On 27 Aug., 16:22, Falcon msu.fal...@gmail.com wrote:
 The problem in the example code that you posted is that the width is
 getting set to 368px on the table in the inline style, which is
 overriding the width: 100% that you want. Now, I'm not looking at this
 with IE7, but with IE9 developer preview in IE7 standards mode, so
 it's possible that there's a bug with that that's not showing me what
 I should actually be seeing, but if you change width to 100% on both
 the top table (class=TitleBar) and bottom table
 (class=CommandBar), then also change the height of CommandBar to
 35px from 33, that should give you what you're wanting.

 I think part of the problem is that GWT uses the same codepath for IE6
 and IE7, so they're using an inline style fix to accomodate IE6 that's
 breaking IE7. (When looking at that page in Firefox, the width on
 those tables is set to 100% instead of a numeric value.)

 The easiest way to fix this yourself would be to use a conditional
 comment with your styles inside. e.g.:
 !--[if IE 7]
 style type=text/css
 table.TitleBar {
 width: 100% !important;}

 table.CommandBar {
 width: 100% !important;
 height: 35px !important;}

 /style
 ![endif]--

 Normally, I'd recommend you do this just in the IE7 code path of GWT,
 but from what I remember, GWT combines IE6 and IE7 into the same
 codepath by default. I'm not a big fan of !important declarations in
 CSS in general, but in this case, since GWT is putting inline styles
 on the element, I don't see a way around it unless you find a way to
 override those styles in GWT itself, which would probably mean
 manually splitting IE6 and IE7 into their own codepaths.

 Hope that helps!

 On Aug 27, 4:12 am, Magnus alpineblas...@googlemail.com wrote:

  For convenience I uploaded a minimalistic live demo with source 
  code:http://www.bavaria64.de:8080/LayoutProblem

-- 
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-tool...@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: WSDL

2010-08-30 Thread Deepak Singh
Any idea pls.

Regards
Deepak

On Mon, Aug 30, 2010 at 1:08 AM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi,

 I tried with groovyws but could not run succesfully.
 I created a java project in eclipse 3.5. Added the jar files groovyws.jar
 with 0.5.2 version,cxf-bundle-2.1.4.jar, asm.jar .
 Did the following code :


 WSClient proxy =
 *new* WSClient(http://www.w3schools.com/webservices/tempconvert.asmx?WSDL
 , GroovyTest.*class*.getClassLoader());

 proxy.initialize();

 Object *obj* = proxy.invokeMethod(
 CelsiusToFahrenheit, 0);

 But when i run it, i always get error saying the someclass.not found
 exception.

 Pls let me know that am i missing some more jar files or any configuration
 needs to be done to run it.

 Thanks

 Deepak






   On Tue, Aug 10, 2010 at 8:00 PM, rudolf michael roud...@gmail.comwrote:

 Well you need to use a proxy on the server that calls the different web
 services you have.
 In case you like dynamic language check this out
 http://groovy.codehaus.org/GroovyWS

  http://groovy.codehaus.org/GroovyWSit is so fucking easy to use web
 services with groovy. but this has nothing to do with GWT/client side
 coding.


 best regards,
 Rudolf Michael


 On Tue, Aug 10, 2010 at 5:26 PM, mikedshaf...@gmail.com 
 mikedshaf...@gmail.com wrote:

 To follow up on the other replyyou have to do this on the server,
 in Java.  Apache Axis is a great way to do it...  But it won't work on
 the client in the emulated JRE (I suspect since I've never tried it,
 but I doubt it will)


 On Aug 10, 3:27 am, Deepak Singh deepaksingh...@gmail.com wrote:
  Hi All,
 
  I need to consume several cross-domain wsdl files and get data by
 calling
  methods from wsdl. I dont know how to do this using GWT.
  Pls suggest. I am using GWT 2.1 m2
 
  Thanks
  Deepak

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



get table row

2010-08-30 Thread Rodrigue Lagoue
Hi all,

Does someone already faced the needed to set an Id (via #ensureDebugId)  on
a table row? I'm just trying to do it without success...

Thanks for any help
Rodrigue

-- 
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-tool...@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: converting JPA entities to Records

2010-08-30 Thread Thomas Broyer


On 30 août, 14:04, Peter Simun si...@seges.sk wrote:
 AFAIK, you have existing interface (GWT record) ... and you want to
 create a concrete implementation of that interface - if you will
 choose GWT generator or APT/JSR269 processor is does not matter - both
 can fullfil your needs. processor in the java compile time, generator
 in the GWT compile time.

AFAICT, the OP was about generating GWT 2.1 record interfaces from JPA-
annotated classes; at least that's what I was assuming. If you already
have the GWT 2.1 record interfaces, then you don't need to build a
generator, as you'll probably use a RequestFactory (why would you use
a GWT 2.1 record otherwise?).

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



Re: How to add an ImageResource to a CellTable Column

2010-08-30 Thread Thomas Broyer


On 27 août, 20:48, chiappone chiapp...@gmail.com wrote:
 I have set up a CellTable where I would like to have an image inside
 of a cell defined by an ImageResource.  What is the best way to do
 this?

GWT 2.1-M3 comes with an ImageResourceCell.

-- 
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-tool...@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: Advice for GWT.create and replace-with tag ?

2010-08-30 Thread Ice13ill
yes... i understand.. it's obvious, but the property defined that
cause the other compilations was in another gwt.xml file.
The fact is that i need to rearange the UI for a lot of widgets in my
app when using a mobile phone browser. So i figured that using
GWT.create and replacing a class with one that overrides some of the
drawing logic would be an elegant solution. For that, i created a
property named is.mobile with true/false values.
So i don't like the fact that i have to compile another 12
permutations, but if it is a good way of doing this, well i guess it's
ok.

Btw, when i removed the replace-with tag, those other 12 permutations
were no more performed. So if i have a property defined, those
permutations are compiled only if that property is used somewhere ?

On Aug 30, 3:25 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 30 août, 11:54, Ice13ill andrei.fifi...@gmail.com wrote:

  I'm developing an app for 2 languages and GWT performs 12 compilation
  (2*6 for each browser)
  But i also need to develop a second UI for some widgets so i decided
  to use the replace-with tag for replacing a class with one of it's
  children and also instantiating that class with GWT.create().
  the problem is that now GWT performs 24 compilation (and it seems very
  awkward because the gwt library uses a lot of these replace-with/
  create() stuff). So if i use a second replace-with tag and
  GWT.create() for another class replacement, will that generate another
  12 compilations ? (36 total !)

 The number of permutation is dependent upon the number of deferred-
 binding properties and their possible values, not the number of
 replace-with or generate-with rules.

  The question is: am i doing smth wrong ? or should i adopt another
  strategy for using multiple classes ?
  Please advice !

 I don't understand what you mean by a second UI for some widgets so
 I can't tell how you should do it (and whether replace-with and more
 generally deferred-binding is appropriate for your case).
 What's clear is that you seem to have added a new deferred-binding
 property (define-property) with two possible values (to be
 determined at runtime by a property-provider or explicitly using a
 meta name=gwt:property), and you should question yourself whether
 this is needed.

-- 
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-tool...@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: Memory Leak IE7 GWT 2.0.4

2010-08-30 Thread chrisr
This may be a valid solution, however its not an ideal one, as this
application is already significantly large, and its not going to be
easy to refactor all of the existing code to work this way.  It will
be easy to keep this in mind while going forward, however.

As I said above, I was trying to reproduce the way a lot of the code
I'm working with has been written.  Also, while I thought this was
reproducing the situation we are seeing in our live app (using GWT
1.5.4) it turns out this only produces the memory leak in development
mode using the most recent GWT.  I will have to see if this produces a
leak when compiled using 1.5.4.  If not then I'll probably need to
find a new simple case that reproduces the leak we're seeing.

On Aug 28, 11:48 am, Michael W mwang_2...@yahoo.com wrote:
 I doubt following code causing the memory leak.
 In reloadRight method, you create and assign new DecoratedTabPanel()
 to tabPanel every time.

                 protected void reloadRight(){
                         ++rightPanelCount;
                         rPanel.clear();

                         tabPanel = new DecoratedTabPanel();

 You may reuse existing tabPanel instead of create new one.

 On Aug 27, 4:21 pm, chrisr chris.robert.rowl...@gmail.com wrote:



  Hi Joel, i appreciate your help.

  I was running in development mode and it appears that this memory
  bloat goes away when not using development mode.
  We have been developing our application using older GWT (1.5.4 I
  belive) so I'm used to using the old hosted mode.  I didn't realize
  the in browser development mode might have this side effect.

  The goal of this was to reproduce a memory leak that we have in our
  application (when compiled, of course) using as simple a case as
  possible, in the newest version of GWT, if possible.  I erroneously
  thought this was accomplishing that.

  Does the fact that this growth occurs in development mode suggest
  anything about why I might see similar growth in a compiled GWT 1.5.4
  application?

  On Aug 27, 12:52 pm, Joel Webber j...@google.com wrote:

   Hmm... I've tried to reproduce this on IE7 and IE8 (both quirks 
   standards), to no avail. I doubt it's anything in the outer HTML file,
   but just in case, here's what I used:

   !DOCTYPE HTML
   html
     head
       titleHello/title
       script type=text/javascript language=javascript src=hello/
   hello.nocache.js/script
     /head
     body
       div id='container'/div
     /body
   /html

   The initial calls to getSomeText() were causing a huge number of slow-
   script warnings on IE, so I was only able to run through a few
   iterations. I then dropped the count by a factor of 10 to get the SSWs
   under control, and the memory usage appears quite stable after a
   couple of hundred clicks. (~30MB). Can you think of anything else that
   might be different in your setup?

   On 27 août, 08:20, chrisr chris.robert.rowl...@gmail.com wrote:

Sorry for posting this twice.  If a moderator wants to/can remove the
duplicate go ahead.

On Aug 25, 2:56 pm, chrisr chris.robert.rowl...@gmail.com wrote:

 I created a simple application in an attempt to reproduce a memory
 leak issue in our decently large GWT application.

 This test application basically contains a split panel with a button
 on the left, and a tab panel full of large blocks of text on the
 right.
 Clicking the reload button fires the reloadRight method, and does a
 panel.clear() to remove the old tab panel and a  panel.add() to add a
 new tab panel to the right panel.  Doing this repeatedly causes memory
 consumption to increase without bounds.

 For example, on the initial load IE7 uses around 35 MB.  125 clicks
 later its using nearly 1.5GB.

 Is this example doing something in a fundamentally incorrect way?
 How  can I keep memory usage from exploding like this?

 /* Example Below */

 package com.example.myproject.client;

 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.event.dom.client.ClickEvent;
 import com.google.gwt.event.dom.client.ClickHandler;
 import com.google.gwt.user.client.ui.Button;
 import com.google.gwt.user.client.ui.DecoratedTabPanel;
 import com.google.gwt.user.client.ui.DecoratorPanel;
 import com.google.gwt.user.client.ui.HTML;
 import com.google.gwt.user.client.ui.HTMLPanel;
 import com.google.gwt.user.client.ui.HorizontalSplitPanel;
 import com.google.gwt.user.client.ui.RootPanel;

 /**
  * Entry point classes define codeonModuleLoad()/code.
  */
 public class TestApplication01 implements EntryPoint {

         /**
          * This is the entry point method.
          */
         public void onModuleLoad() {
                 RootPanel.get(container).add( new MainPanel() );
         }

         private class MainPanel extends DecoratorPanel{

                 private 

Re: Problems with gwt plugin and eclipse

2010-08-30 Thread TBirch
Hi Alex,

Thanks for your suggestion. I will check the on the jdk version on
that machine.
However, I also have a 32 bit vista machine. This morning on the 32
bit machine I downloaded the helios 3.6 version of eclipse and the 3.6
version of the gwt plugin. When trying to create a standard gwt
project I get the same error as on the 64 bit machine:
Errors occurred during the build.
Errors running builder 'Google Web Toolkit Project Validator' on
project 'contacts'.
org.eclipse.jdt.internal.core.JavaModel cannot be cast to
org.eclipse.jdt.core.IJavaProject

My problem does not seem to be related to a 64 bit versus 32 issue.
Could there be another piece of software on both of my machines that
could be causing a problem?
Thanks, Terry

On Aug 30, 4:52 am, AlexG alexander.gauss.ax...@googlemail.com
wrote:
 Hi TBirch

 I also had problems, ehwn I get started with GWT.
 I am using Windows 7 64-Bit.

 I have the followong Verison installed, and everything
 works fine:

 Eclipse Helios 3.6 32-Bit !!
 Plugins fomr the Eclipse-plugin-install-feature

 Be sure you have a Java 32-Bit JDK installed, otherwise
 this will nor work with Eclipse 32-Bit.

 Greets Alex

 On 29 Aug., 21:44, TBirch tjfbi...@bellsouth.net wrote:

  I am running 64 bit windows vista and for some reason I am getting
  this error:
  Errors occurred during the build.
  Errors running builder 'Google Web Toolkit Project Validator' on
  project 'contacts'.
  org.eclipse.jdt.internal.core.JavaModel cannot be cast to
  org.eclipse.jdt.core.IJavaProject

  I have tried several versions of eclipse and and the only way I seem
  to be able to create and run a standard gwt project in eclipse is by
  going back to an older version of eclipse i.e Version:
  3.5.0.v20090611a-9gEeG1HFtQcmRThO4O3aR_fqSMvJR2sJ
  Build id: I20090611-1540

  Anyone have any suggestions as I have tried every other combination of
  32 and 64 bit eclipse with gwt plugin I can think of.
  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-tool...@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: converting JPA entities to Records

2010-08-30 Thread Peter Simun
I assume that Joe didn't want to implement Record interface in his JPA
entity and wanted to have no GWT dependecies in the domain objects.
This transformation should be done transparently, so he can work with
RequestFactory without any additional work. GWT generator should do
this work.

Peter

On 30. Aug, 14:46 h., Thomas Broyer t.bro...@gmail.com wrote:
 On 30 août, 14:04, Peter Simun si...@seges.sk wrote:

  AFAIK, you have existing interface (GWT record) ... and you want to
  create a concrete implementation of that interface - if you will
  choose GWT generator or APT/JSR269 processor is does not matter - both
  can fullfil your needs. processor in the java compile time, generator
  in the GWT compile time.

 AFAICT, the OP was about generating GWT 2.1 record interfaces from JPA-
 annotated classes; at least that's what I was assuming. If you already
 have the GWT 2.1 record interfaces, then you don't need to build a
 generator, as you'll probably use a RequestFactory (why would you use
 a GWT 2.1 record otherwise?).

-- 
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-tool...@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: Handling too many locales in a large scale real life app

2010-08-30 Thread Fernando
just in case...

after trying the EPFE plugin that Dolber posted (btw, thanks for the
tip) I found out that the project was put on ice
(source: 
http://epfe.sourceforge.net/index.php?option=com_contentview=sectionlayout=blogid=1Itemid=3)

their own authors point out to another plugin, Eclipse ResourceBundle
Editor, which can be found here:
http://sourceforge.net/projects/eclipse-rbe/
this plugin is more complete than EPFE, and we're considering using
it, even tho it has been incorporated by Eclipse Babel project
http://www.eclipse.org/babel/

Babel promised an editor, but so far has not delivered it

On 29 ago, 19:48, Joe Cole profilercorporat...@gmail.com wrote:
 What we do is have a test case that ensures that our interface and
 properties files are completely defined:

 // call this method for each properties file
 public void checkMessagesDefinedProperlyInBothInterfaceAndFile(String
 file) {
                 Properties f2 = new Properties();
                 FileInputStream in = null;
                 try {
                         in = new FileInputStream(file);
                         f2.load(in);
                 } catch (Exception e) {
                         e.printStackTrace();
                         Assert.fail(e.getMessage());
                 } finally {
                         IO.safelyClose(in);
                 }
                 Assert.assertNotNull(f2);
                 // check methods - properties
                 for (Method m : YouMessagesClass.class.getDeclaredMethods()) {
                         Assert.assertTrue(m.getName() +  shoud not be empty,
 Is.entered(f2.getProperty(m.getName(;
                         if (m.getParameterTypes().length  0) {
                                 Assert.assertTrue(m.getName() +  should 
 contain {,
 f2.getProperty(m.getName()).indexOf('{')  -1);
                                 Assert.assertTrue(m.getName() +  should 
 contain {,
 f2.getProperty(m.getName()).indexOf('}')  -1);
                         }
                 }
                 // check properties - methods
                 for (Object key : f2.keySet()) {
                         String property = f2.getProperty((String) key);
                         if (property.indexOf('}') == -1)
                                 continue;
                         for (Method m : 
 YourMessagesClass.class.getDeclaredMethods()) {
                                 if (m.getName().equals(key)) {
                                         Assert.assertTrue(key +  should have 
 at least 1 parameter,
 m.getParameterTypes().length  0);
                                         break;
                                 }
                         }
                 }
         }

 What we do is have critical tests like this run on save, in
 our .project file we have :

 buildCommand
         nameorg.eclipse.ui.externaltools.ExternalToolBuilder/name
         triggersauto,full,incremental,/triggers
         arguments
                 dictionary
                         keyLaunchConfigHandle/key
                         valuelt;projectgt;/Autobuild.launch/value
                 /dictionary
         /arguments
 /buildCommand

 This ensures that we don't have to remember to add keys, servlet
 definitions in web.xml etc - all the critical things that can go
 wrong, but are easy to forget.

 Joe

-- 
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-tool...@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: same code - different compile plattforms - different results???

2010-08-30 Thread Falcon
If the height is working for you, don't worry about changing it.

Keep in mind that GWT will actually send different code to different
browsers. The reason that you aren't seeing that value in Firebug in
Firefox was that Firefox was receiving a width of 100% and not the
368, but GWT was sending an inline style to IE6 and 7 to account for
some of the rendering problems in IE. However, that panel was designed
to be used in quirks mode, so GWT is sending values that don't work in
standards mode, which is what you're using.

I don't remember for sure if IE7 has it, but IE8 and the IE9 developer/
platform preview both have Developer Tools (either F12 or under
Tools) which allows you to do similar things to Firebug. The IE9
preview lets you switch between IE5, IE7, IE8, and IE9 rendering modes
while IE8 lets you switch between IE7 and IE8. I'd recommend checking
each version of the browser directly if possible as those rendering
modes don't always do a perfect job and there may be minor
differences, but at least the developer tools should get you in the
ballpark.

On Aug 30, 7:29 am, Magnus alpineblas...@googlemail.com wrote:
 Hi Falcon,

 thank you very much!!!
 This works perfectly!

 I just copied your code in my main html file, right at the end of the
 head tag.

 Could you tell me how you found out that the width was set to 368 px?
 In FF I have FireBug, but it did not show this width. In IE I have
 nothing similar.

 Another question: Why should I change the height from 35px to 33px? I
 had no problem with the heigt...

 Thank you again!

 Now I can proceed with my app...

 Magnus

 On 27 Aug., 16:22, Falcon msu.fal...@gmail.com wrote:

  The problem in the example code that you posted is that the width is
  getting set to 368px on the table in the inline style, which is
  overriding the width: 100% that you want. Now, I'm not looking at this
  with IE7, but with IE9 developer preview in IE7 standards mode, so
  it's possible that there's a bug with that that's not showing me what
  I should actually be seeing, but if you change width to 100% on both
  the top table (class=TitleBar) and bottom table
  (class=CommandBar), then also change the height of CommandBar to
  35px from 33, that should give you what you're wanting.

  I think part of the problem is that GWT uses the same codepath for IE6
  and IE7, so they're using an inline style fix to accomodate IE6 that's
  breaking IE7. (When looking at that page in Firefox, the width on
  those tables is set to 100% instead of a numeric value.)

  The easiest way to fix this yourself would be to use a conditional
  comment with your styles inside. e.g.:
  !--[if IE 7]
  style type=text/css
  table.TitleBar {
  width: 100% !important;}

  table.CommandBar {
  width: 100% !important;
  height: 35px !important;}

  /style
  ![endif]--

  Normally, I'd recommend you do this just in the IE7 code path of GWT,
  but from what I remember, GWT combines IE6 and IE7 into the same
  codepath by default. I'm not a big fan of !important declarations in
  CSS in general, but in this case, since GWT is putting inline styles
  on the element, I don't see a way around it unless you find a way to
  override those styles in GWT itself, which would probably mean
  manually splitting IE6 and IE7 into their own codepaths.

  Hope that helps!

  On Aug 27, 4:12 am, Magnus alpineblas...@googlemail.com wrote:

   For convenience I uploaded a minimalistic live demo with source 
   code:http://www.bavaria64.de:8080/LayoutProblem

-- 
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-tool...@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 and indexing

2010-08-30 Thread Artem
I'm thinking about inserting small JavaScript code into our
escape_fragment pages. So, first page is created by HTMLUnit, and
then small JavaScript code is inserted, that would redirect a User to
real !# pages. In that case Google Bot would see escape_fragment
static pages, while if some escape page was ranked by another
crawler, and User comes to it - User would be redirected to !# pages.

But I am afraid that this would be counted as a bad style and my site
will get into Google Black List (while I'm trying to worry about
another crawlers - Google is still number one! and I don't want to
disappoint it ) )

What do you think about this approach? Could you comment on chances to
get to Google Black List with this approach?

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-tool...@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 for Python

2010-08-30 Thread dolcra...@gmail.com
http://pyjs.org/

On Aug 30, 1:24 am, Reid Lai reid...@gmail.com wrote:
 Is there any GWT branch for python or other language so we could rely
 on this branch if GWT can't use Java technology for some reasons later
 on?

-- 
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-tool...@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 for Python

2010-08-30 Thread André Moraes
I don't know if you are worried about Java+gwt because of what Oracle did...

But as far as i could read, the problem is only with the DalvikVM. But how
knows that right?! we can really trust that Oracle will not aim other
projects after that...

PyJs is not mature as GWT, if you will go to a Dynamic Scripted Language
instead of Java, you should use JavaScript directly. Take a look at Closure
Compiler they make almost the samething that GWT compiler does but is pure
JavaScript.

Using PyJs you will not have most of the benefits of GWT and will have all
the problems.

-- 
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://andredevchannel.blogspot.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to add a widget as a Panel on top of the MapPanel

2010-08-30 Thread Chad
Kiarash,

What are you trying to accomplish? You want to cover the map with a
panel, but still have the map work? If the panel contains an image
that you are simply trying to overlay on the map, use the
map.addOverlay method. With that, you can put images or just about
anything else you want right on the map and it becomes part of the map
so that the map keeps all of its functionality. If that's not what
you're after, please try to explain what you want a bit more clearly.

HTH,
Chad

On Aug 29, 8:37 am, Kiarash email@gmail.com wrote:
 I successfully have been implementing the gwt google maps. I am trying
 to add a Panel on the top of the Map, but when I add a panel on top of
 the Map so the map loose its functionality... I cannot move the map or
 zoom etc... What I do is that adding the map to the LayoutPanel
 myMapPanel, next myMapPanel.add(googleMap), next
 myMapPanel.add(mySmalPanelOnTop)... and the map loose its
 functionality. Is there a way working around this??? Thanx!!!

-- 
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-tool...@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: app engine with hosted mode

2010-08-30 Thread Chris Conroy
Make sure you see a ?gwt.codesvr fragment in the URL you are using. It
sounds like you might just be hitting the embedded server--not DevMode. You
need that fragment to tell the plugin in your browser to use DevMode.

On Sun, Aug 29, 2010 at 8:42 PM, alexh alexanderhar...@gmail.com wrote:

 Hi,

 I posted a while back about having trouble running App Engine under
 hosted mode using the gwt-maven-plugin.


 http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2432606db3635f3d/fbd6a8749c977b0d?lnk=gstq=app+engine+hosted#fbd6a8749c977b0d

 I've been able to find the correct configuration with the plugin to
 launch the GAE runtime but I am now finding that hot deploy of
 changes doesn't work. If I change a GWT compiled class in Eclipse, the
 change isn't available when I refresh the browser. I have to perform
 essentially a gwt:compile to have the change appear. Anyone have ideas
 on what might be the problem?

 Here's my plugin configuration in my pom.xml.

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
version1.3.1.google/version
executions
execution
goals
goalcompile/goal

  goalgenerateAsync/goal
goaltest/goal
/goals
/execution
/executions
configuration
 !--
styleDETAILED/style
logLevelDEBUG/logLevel
  --
runTarget/index/runTarget

  hostedWebapp${project.build.directory}/$
 {project.build.finalName}/hostedWebapp
copyWebapptrue/copyWebapp

 servercom.google.appengine.tools.development.gwt.AppEngineLauncher/
 server
extraJvmArgs-Xmx512m
 -Dappengine.sdk.root=${gae.home} -
 javaagent:${gae.home}/lib/agent/appengine-agent.jar/extraJvmArgs
gwtVersion${gwt.version}/gwtVersion
soycfalse/soyc
/configuration
/plugin

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




-- 
Chris Conroy
Software Engineer
Google, Atlanta

-- 
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-tool...@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: Google's commitment to GWT

2010-08-30 Thread Arthur Kalmenson
It's also used for the Google AdWords UI, which is the main money
maker for Google. I doubt GWT is going anywhere.

--
Arthur Kalmenson



On Fri, Aug 20, 2010 at 12:11 PM, David Pinn dp...@byandlarge.net wrote:
 Perhaps it's the demise of Wave; or maybe I've just been hanging out
 with too many Ruby fan boys; but I'm nervous about the future of GWT.

 I have a huge investment in GWT, in terms of learning and effort, not
 to mention a sizeable and growing code base.

 Please tell me that GWT isn't going away.

 --
 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-tool...@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-tool...@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: Java SE binary failure - GWT - STS Roo - Maven installation -- scaffold tutorial

2010-08-30 Thread Rajeev Dayal
Hm, when the auto-reporting feature starts, can you get a dump of the report
that it's going to send? Maybe there's something more useful in there?

On Wed, Aug 25, 2010 at 7:36 PM, giantbluejay jaytaylo...@gmail.com wrote:

 java version 1.6.0_20
 Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
 Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)


 On Aug 25, 9:28 am, Rajeev Dayal rda...@google.com wrote:
  Do you have multiple versions of Java installed on your machine? It may
 be
  the case that even though you installed a new version, it's still using
 the
  old one. If you type java -version at the command line, what do you see?
 
  On Mon, Aug 23, 2010 at 10:55 PM, giantbluejay jaytaylo...@gmail.com
 wrote:
 
 
 
   I was trying to install the STS, Roo,  Google PlugIns for Eclipse, and
   do the GWT scaffolding tutorial.  I am on a 64-bit Windows Vista OS.
   I thought the whole STS package, GWT and Google Plugins were
   successful, but when I was trying to do a mvn gwt.run it failed.
   Then, tried a mvn install.  Got, pretty far, but, got Java SE
   binary failure.
 
   So, I updated my Java through Oracle's Java.com, version 6 for windows
   Vista.  Thought that might help.
 
   Then, mvn install still failed.  Got pretty far, but then hammered
   with Java SE binary failure  and then the auto reporting feature
   says something like would you like to report to Microsoft about your
   Java issues so we can chuckle?  Sure.  I will go about trying to
   start back at step one, but wanted to put a flag on this issue.
 
   --
   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-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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-tool...@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: Use ScrollPanel inside the HorizontalPanel

2010-08-30 Thread udayanga ranasinghe
Hi Aditya;

Thanks your reply.
But it doesnt work.
If you have tested code please send me as soon as possible.
I'm in big trouble with this issue.

Thanks again.

On Mon, Aug 30, 2010 at 5:49 PM, aditya sanas 007aditya.b...@gmail.comwrote:

 adjust the size of horizontal panel and then according to it adjust the
 size of scrolling panel...
 --
 Aditya


 On Sat, Aug 28, 2010 at 9:33 AM, udayanga ranasinghe 
 udayanga.u...@gmail.com wrote:

 Hi All,

 I try to put Scrollpanel into HorizontalPanel.
 The content in the scrollpanel is appear as it expected.
 But the scrolling property is not working.
 It 's not scrolling. :(
 What is the reason for that?

 Please help me to solve this problem.

 Thanks And Regards
 Udayanga Ranasinghe.

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




-- 
Thanks and Regards,
Udayanga Ranasinghe
BCSc(Hons)
Senior Software Engineer | Wapice Lanka (Pvt) Ltd

-- 
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-tool...@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: app engine with hosted mode

2010-08-30 Thread alexh
Thanks for the tip and you are correct. We are losing the ?
gwt.codesvr=127.0.0.1:9997 after going through our authentication.
Good catch.

On Aug 30, 9:42 am, Chris Conroy con...@google.com wrote:
 Make sure you see a ?gwt.codesvr fragment in the URL you are using. It
 sounds like you might just be hitting the embedded server--not DevMode. You
 need that fragment to tell the plugin in your browser to use DevMode.





 On Sun, Aug 29, 2010 at 8:42 PM, alexh alexanderhar...@gmail.com wrote:
  Hi,

  I posted a while back about having trouble running App Engine under
  hosted mode using the gwt-maven-plugin.

 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

  I've been able to find the correct configuration with the plugin to
  launch the GAE runtime but I am now finding that hot deploy of
  changes doesn't work. If I change a GWT compiled class in Eclipse, the
  change isn't available when I refresh the browser. I have to perform
  essentially a gwt:compile to have the change appear. Anyone have ideas
  on what might be the problem?

  Here's my plugin configuration in my pom.xml.

                         plugin
                                 groupIdorg.codehaus.mojo/groupId
                                 artifactIdgwt-maven-plugin/artifactId
                                 version1.3.1.google/version
                                 executions
                                         execution
                                                 goals
                                                         goalcompile/goal

   goalgenerateAsync/goal
                                                         goaltest/goal
                                                 /goals
                                         /execution
                                 /executions
                                 configuration
  !--
                                         styleDETAILED/style
                                         logLevelDEBUG/logLevel
   --
                                         runTarget/index/runTarget

   hostedWebapp${project.build.directory}/$
  {project.build.finalName}/hostedWebapp
                                         copyWebapptrue/copyWebapp

  servercom.google.appengine.tools.development.gwt.AppEngineLauncher/
  server
                                         extraJvmArgs-Xmx512m
  -Dappengine.sdk.root=${gae.home} -
  javaagent:${gae.home}/lib/agent/appengine-agent.jar/extraJvmArgs
                                 gwtVersion${gwt.version}/gwtVersion
                                 soycfalse/soyc
                                 /configuration
                         /plugin

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

 --
 Chris Conroy
 Software Engineer
 Google, Atlanta

-- 
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-tool...@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: converting JPA entities to Records

2010-08-30 Thread Thomas Broyer


On 30 août, 15:34, Peter Simun si...@seges.sk wrote:
 I assume that Joe didn't want to implement Record interface in his JPA
 entity and wanted to have no GWT dependecies in the domain objects.
 This transformation should be done transparently, so he can work with
 RequestFactory without any additional work. GWT generator should do
 this work.

without any additional work... except writing client-side GWT record
interfaces for his server-side JPA entities. And if I understood his
question correctly, that's the thing he'd like to automate with code
generation, and then deferred binding won't work. Case made.

-- 
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-tool...@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: Unable to find type entrypointclass after change in project structure

2010-08-30 Thread Jason482
Yes, there is a relation (from my understanding).

The GWT compiler first looks for a ModuleDef.gwt.xml file, and then,
from that location it looks one package further (by default looking
for a client subpackage, but you can specify this in your module
definition GWT xml file) for your client code and entry point class
(if one is defined). So I'm not sure that you can decouple the GWT xml
file package location from your client code like that.

It makes logical sense the way you have it defined, though, so maybe
someone who has more insight as to the inner workings could chime in?


Jason

On Aug 26, 10:26 am, Premkumar prem.jothim...@gmail.com wrote:
 Hi All,

 I am working on a gwt module that is built using maven build system. I
 had a working module that had the following project structure.

 project-name/src/main/java/pkg1/pkg2/pkg3/EntryPoingClass
 project-name/src/man/resources/pkg1/pkg2/ModuleDef.gwt.xml

 The module definition was looking like this (I have put only this
 project specific settings here...normal inherits are not specified for
 the sake of brevity)
 ...
 entry-point class='pkg1.pkg2.pkg3.EntryPointClass'/
 source path='pkg3'/
 ...

 I am not a big fan of having sub packages in the resources folder.
 Hence I am trying to change it to something like the following

 project-name/src/main/java/pkg1/pkg2/pkg3/EntryPoingClass
 project-name/src/man/resources/ModuleDef.gwt.xml

 Also changed the module definition to
 ...
 entry-point class='pkg1.pkg2.pkg3.EntryPointClass'/
 source path='pkg1.pkg2.pkg3'/ !-- Since the module def is not
 inside any package I am specifying the entire 'client' package here --

 ...

 After this, invoking gwt compile fails with the following error

 Unable to find type pkg1.pkg2.pkg3.EntryPointClass

 Can anybody tell me if there is any relation between the package
 structure of the EntryPointClass and the module definition package
 structure apart from the fact that the EntryPointClass should be
 inside the 'client' package specified in the module definition (which
 is satisfied here)?

 Btw, I could see that the compiled classes are available in the
 classpath when invoking the gwt compiler.

 Any help in this regard is greatly appreciated.

 Thanks,
 Prem

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



XMLHttpRequest / RequestBuilder - withCredentials

2010-08-30 Thread davewilliamson
Hi,

Using GWT RequestBuilder, I need to set the withCredentials flag for
the XMLHttpRequest (I need to do XSS with access to Cookies as part of
an RPC call).

Maybe I am too much of a Noob with GWT, but can't see how this can be
done?!?!

Everything else I am try to do is working fine (i.e. I get the correct
data/functions that I am trying to achieve (Cross site)), but cannot
pass a cookie to the Server, or set a cookie from the Server -  I am
using GAE to host the application.

I appreciate the default action of XMLHttpRequest is to set the
'withCredentials' flag to false (for XSS), hence the ability to
override this setting when sending the request - But RequestBuilder
doesn't appear to provide any interface to this function.

Can anybody point me to the way this would be set?

Regards

Dave

-- 
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-tool...@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: Unable to find type entrypointclass after change in project structure

2010-08-30 Thread Thomas Broyer


On 26 août, 17:26, Premkumar prem.jothim...@gmail.com wrote:
 Hi All,

 I am working on a gwt module that is built using maven build system. I
 had a working module that had the following project structure.

 project-name/src/main/java/pkg1/pkg2/pkg3/EntryPoingClass
 project-name/src/man/resources/pkg1/pkg2/ModuleDef.gwt.xml

 The module definition was looking like this (I have put only this
 project specific settings here...normal inherits are not specified for
 the sake of brevity)
 ...
 entry-point class='pkg1.pkg2.pkg3.EntryPointClass'/
 source path='pkg3'/
 ...

 I am not a big fan of having sub packages in the resources folder.
 Hence I am trying to change it to something like the following

 project-name/src/main/java/pkg1/pkg2/pkg3/EntryPoingClass
 project-name/src/man/resources/ModuleDef.gwt.xml

 Also changed the module definition to
 ...
 entry-point class='pkg1.pkg2.pkg3.EntryPointClass'/
 source path='pkg1.pkg2.pkg3'/ !-- Since the module def is not
 inside any package I am specifying the entire 'client' package here --

 ...

 After this, invoking gwt compile fails with the following error

 Unable to find type pkg1.pkg2.pkg3.EntryPointClass

 Can anybody tell me if there is any relation between the package
 structure of the EntryPointClass and the module definition package
 structure apart from the fact that the EntryPointClass should be
 inside the 'client' package specified in the module definition (which
 is satisfied here)?

AFAICT, the source path has to be a filesystem-like path, with slashes
as separators, not dots, i.e.
source path=pkg1/pkg2/pkg3 /

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



Loading the old 'gwt.js' bootstrap script is no longer supported

2010-08-30 Thread grasshopper
Hello all,

I am trying to upgrade the GWT version of a project I did a long time
ago from the beta version of GWT to GWT 1.5.3.

When I try to run the project in host mode I get the following error:
[TRACE] The development shell servlet received a request for 'gwt.js'
in module 'com.sample.project.ClientCallDetails.gwt.xml'
[WARN] Loading the old 'gwt.js' bootstrap script is no longer
supported; please load
'com.sample.project.ClientCallDetails.nocache.js' directly

I did change my ClientCallDetails.html file's script / tag to
reflect the new module name to load instead of gwt.js. However, every
time I compile the project the .html gets overwritten and module to
load returns to gwt.js

Anyone have ideas as to what I might of missed during my upgrade to
GWT 1.5?

Thanks in advanced

-- 
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-tool...@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: using the Widget.handlerManager with Composites

2010-08-30 Thread Joe Hudson
Thanks for the reply Thomas. That was really dumb of me... for some
reason I was thinking that those methods were package private scoped
so, unless my new widget was in the gwt widget package those methods
weren't visible.  I was just wrong and don't know what I was
thinking.  Thanks again.

Joe

On Aug 29, 5:09 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 29 août, 21:26, Joe Hudson joe...@gmail.com wrote:

  Hi,

  I am using Composites and would like to be able reference the
  HandlerManager methods.  These seem to not be visible to me so I end
  up duplicating the code that already exists on Widget for my
  composites - is there any reason why these methods are friendly scoped
  instead of protected scoped?  Or, am I just thinking about this
  incorrectly?

 Any reason you don't just use Widget#addHandler and 
 Widget#fireEvent?http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...,
 com.google.gwt.event.shared.GwtEvent.Type)

-- 
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-tool...@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: converting JPA entities to Records

2010-08-30 Thread Peter Simun
Thomas, I don't want to start a flame war here, but I really didn't
get your point about generating interfaces.
The goal is: automatically convert JPA-annotated entities to GWT
Records so it means that you have:
- @Entity class DomainEntity {...}
- GWT 2.1 Record interface
and you want to get both of them in a result:
- class RecordDomainEntity extends DomainEntity implements Record
{...}

So, deffered binding will works perfectly for that case. Same with the
annotation processing.

Peter

On 30. Aug, 17:56 h., Thomas Broyer t.bro...@gmail.com wrote:
 On 30 août, 15:34, Peter Simun si...@seges.sk wrote:

  I assume that Joe didn't want to implement Record interface in his JPA
  entity and wanted to have no GWT dependecies in the domain objects.
  This transformation should be done transparently, so he can work with
  RequestFactory without any additional work. GWT generator should do
  this work.

 without any additional work... except writing client-side GWT record
 interfaces for his server-side JPA entities. And if I understood his
 question correctly, that's the thing he'd like to automate with code
 generation, and then deferred binding won't work. Case made.

-- 
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-tool...@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: same code - different compile plattforms - different results???

2010-08-30 Thread Magnus
Hi Falcon,

if one should not use HorizontalPanel, would you prefer the use of
FlowPanel over inserting the IE7 specific style?

How did it come you proposed to change the height? (Maybe I have a
problem, I don't know yet! :-))

Magnus

On Aug 30, 3:37 pm, Falcon msu.fal...@gmail.com wrote:
 If the height is working for you, don't worry about changing it.

 Keep in mind that GWT will actually send different code to different
 browsers. The reason that you aren't seeing that value in Firebug in
 Firefox was that Firefox was receiving a width of 100% and not the
 368, but GWT was sending an inline style to IE6 and 7 to account for
 some of the rendering problems in IE. However, that panel was designed
 to be used in quirks mode, so GWT is sending values that don't work in
 standards mode, which is what you're using.

 I don't remember for sure if IE7 has it, but IE8 and the IE9 developer/
 platform preview both have Developer Tools (either F12 or under
 Tools) which allows you to do similar things to Firebug. The IE9
 preview lets you switch between IE5, IE7, IE8, and IE9 rendering modes
 while IE8 lets you switch between IE7 and IE8. I'd recommend checking
 each version of the browser directly if possible as those rendering
 modes don't always do a perfect job and there may be minor
 differences, but at least the developer tools should get you in the
 ballpark.

 On Aug 30, 7:29 am, Magnus alpineblas...@googlemail.com wrote:

  Hi Falcon,

  thank you very much!!!
  This works perfectly!

  I just copied your code in my main html file, right at the end of the
  head tag.

  Could you tell me how you found out that the width was set to 368 px?
  In FF I have FireBug, but it did not show this width. In IE I have
  nothing similar.

  Another question: Why should I change the height from 35px to 33px? I
  had no problem with the heigt...

  Thank you again!

  Now I can proceed with my app...

  Magnus

  On 27 Aug., 16:22, Falcon msu.fal...@gmail.com wrote:

   The problem in the example code that you posted is that the width is
   getting set to 368px on the table in the inline style, which is
   overriding the width: 100% that you want. Now, I'm not looking at this
   with IE7, but with IE9 developer preview in IE7 standards mode, so
   it's possible that there's a bug with that that's not showing me what
   I should actually be seeing, but if you change width to 100% on both
   the top table (class=TitleBar) and bottom table
   (class=CommandBar), then also change the height of CommandBar to
   35px from 33, that should give you what you're wanting.

   I think part of the problem is that GWT uses the same codepath for IE6
   and IE7, so they're using an inline style fix to accomodate IE6 that's
   breaking IE7. (When looking at that page in Firefox, the width on
   those tables is set to 100% instead of a numeric value.)

   The easiest way to fix this yourself would be to use a conditional
   comment with your styles inside. e.g.:
   !--[if IE 7]
   style type=text/css
   table.TitleBar {
   width: 100% !important;}

   table.CommandBar {
   width: 100% !important;
   height: 35px !important;}

   /style
   ![endif]--

   Normally, I'd recommend you do this just in the IE7 code path of GWT,
   but from what I remember, GWT combines IE6 and IE7 into the same
   codepath by default. I'm not a big fan of !important declarations in
   CSS in general, but in this case, since GWT is putting inline styles
   on the element, I don't see a way around it unless you find a way to
   override those styles in GWT itself, which would probably mean
   manually splitting IE6 and IE7 into their own codepaths.

   Hope that helps!

   On Aug 27, 4:12 am, Magnus alpineblas...@googlemail.com wrote:

For convenience I uploaded a minimalistic live demo with source 
code:http://www.bavaria64.de:8080/LayoutProblem

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



What are the benefits of using a MVP Framework?

2010-08-30 Thread Jambi
Hey guys,

i´m asking myself these days what´s the benefit of using a MVP
Framework like GWTP (never realy used it because i´m very new to the
whole MVP architecture) instead of writing your MVP app like it´s
described on the google code page? Is it a lot easier and more
comfortable? What´s the point of using a MVP framework at all, since it
´s just a design pattern? Isn´t there a good MVP integration coming
in GWT 2.1 so that it´s not realy worth it to start using those
frameworks or am I completely wrong?

thanks, Michael

-- 
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-tool...@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: same code - different compile plattforms - different results???

2010-08-30 Thread Magnus
Hi Falcon,

somhow you made me want to use only panels that work in standards
mode. So I derived my TitleBar from FlowPanel. Now the red borders are
only visible at the top and left, not at the right and bottom. In
addition the text is not v-aligned anymore.

What's this with the border? I have no idea besides
setSize(100%,100%); And what about the vertical alignment?

If I get this fixed, I would prefer the panels for standards mode over
a IE7-specific style. Would you agree that this would be better?

Thanks
Magnus

On Aug 30, 6:49 pm, Magnus alpineblas...@googlemail.com wrote:
 Hi Falcon,

 if one should not use HorizontalPanel, would you prefer the use of
 FlowPanel over inserting the IE7 specific style?

 How did it come you proposed to change the height? (Maybe I have a
 problem, I don't know yet! :-))

 Magnus

 On Aug 30, 3:37 pm, Falcon msu.fal...@gmail.com wrote:

  If the height is working for you, don't worry about changing it.

  Keep in mind that GWT will actually send different code to different
  browsers. The reason that you aren't seeing that value in Firebug in
  Firefox was that Firefox was receiving a width of 100% and not the
  368, but GWT was sending an inline style to IE6 and 7 to account for
  some of the rendering problems in IE. However, that panel was designed
  to be used in quirks mode, so GWT is sending values that don't work in
  standards mode, which is what you're using.

  I don't remember for sure if IE7 has it, but IE8 and the IE9 developer/
  platform preview both have Developer Tools (either F12 or under
  Tools) which allows you to do similar things to Firebug. The IE9
  preview lets you switch between IE5, IE7, IE8, and IE9 rendering modes
  while IE8 lets you switch between IE7 and IE8. I'd recommend checking
  each version of the browser directly if possible as those rendering
  modes don't always do a perfect job and there may be minor
  differences, but at least the developer tools should get you in the
  ballpark.

  On Aug 30, 7:29 am, Magnus alpineblas...@googlemail.com wrote:

   Hi Falcon,

   thank you very much!!!
   This works perfectly!

   I just copied your code in my main html file, right at the end of the
   head tag.

   Could you tell me how you found out that the width was set to 368 px?
   In FF I have FireBug, but it did not show this width. In IE I have
   nothing similar.

   Another question: Why should I change the height from 35px to 33px? I
   had no problem with the heigt...

   Thank you again!

   Now I can proceed with my app...

   Magnus

   On 27 Aug., 16:22, Falcon msu.fal...@gmail.com wrote:

The problem in the example code that you posted is that the width is
getting set to 368px on the table in the inline style, which is
overriding the width: 100% that you want. Now, I'm not looking at this
with IE7, but with IE9 developer preview in IE7 standards mode, so
it's possible that there's a bug with that that's not showing me what
I should actually be seeing, but if you change width to 100% on both
the top table (class=TitleBar) and bottom table
(class=CommandBar), then also change the height of CommandBar to
35px from 33, that should give you what you're wanting.

I think part of the problem is that GWT uses the same codepath for IE6
and IE7, so they're using an inline style fix to accomodate IE6 that's
breaking IE7. (When looking at that page in Firefox, the width on
those tables is set to 100% instead of a numeric value.)

The easiest way to fix this yourself would be to use a conditional
comment with your styles inside. e.g.:
!--[if IE 7]
style type=text/css
table.TitleBar {
width: 100% !important;}

table.CommandBar {
width: 100% !important;
height: 35px !important;}

/style
![endif]--

Normally, I'd recommend you do this just in the IE7 code path of GWT,
but from what I remember, GWT combines IE6 and IE7 into the same
codepath by default. I'm not a big fan of !important declarations in
CSS in general, but in this case, since GWT is putting inline styles
on the element, I don't see a way around it unless you find a way to
override those styles in GWT itself, which would probably mean
manually splitting IE6 and IE7 into their own codepaths.

Hope that helps!

On Aug 27, 4:12 am, Magnus alpineblas...@googlemail.com wrote:

 For convenience I uploaded a minimalistic live demo with source 
 code:http://www.bavaria64.de:8080/LayoutProblem

-- 
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-tool...@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: same code - different compile plattforms - different results???

2010-08-30 Thread Magnus
Hi Falcon,

somhow you made me want to use only panels that work in standards
mode. So I derived my TitleBar from FlowPanel. Now the red borders are
only visible at the top and left, not at the right and bottom. In
addition the text is not v-aligned anymore.

http://www.bavaria64.de:8080/LayoutProblem

What's this with the border? I have no idea besides
setSize(100%,100%); And what about the vertical alignment?

If I get this fixed, I would prefer the panels for standards mode over
a IE7-specific style. Would you agree that this would be better?

Thanks
Magnus

On Aug 30, 3:37 pm, Falcon msu.fal...@gmail.com wrote:
 If the height is working for you, don't worry about changing it.

 Keep in mind that GWT will actually send different code to different
 browsers. The reason that you aren't seeing that value in Firebug in
 Firefox was that Firefox was receiving a width of 100% and not the
 368, but GWT was sending an inline style to IE6 and 7 to account for
 some of the rendering problems in IE. However, that panel was designed
 to be used in quirks mode, so GWT is sending values that don't work in
 standards mode, which is what you're using.

 I don't remember for sure if IE7 has it, but IE8 and the IE9 developer/
 platform preview both have Developer Tools (either F12 or under
 Tools) which allows you to do similar things to Firebug. The IE9
 preview lets you switch between IE5, IE7, IE8, and IE9 rendering modes
 while IE8 lets you switch between IE7 and IE8. I'd recommend checking
 each version of the browser directly if possible as those rendering
 modes don't always do a perfect job and there may be minor
 differences, but at least the developer tools should get you in the
 ballpark.

 On Aug 30, 7:29 am, Magnus alpineblas...@googlemail.com wrote:

  Hi Falcon,

  thank you very much!!!
  This works perfectly!

  I just copied your code in my main html file, right at the end of the
  head tag.

  Could you tell me how you found out that the width was set to 368 px?
  In FF I have FireBug, but it did not show this width. In IE I have
  nothing similar.

  Another question: Why should I change the height from 35px to 33px? I
  had no problem with the heigt...

  Thank you again!

  Now I can proceed with my app...

  Magnus

  On 27 Aug., 16:22, Falcon msu.fal...@gmail.com wrote:

   The problem in the example code that you posted is that the width is
   getting set to 368px on the table in the inline style, which is
   overriding the width: 100% that you want. Now, I'm not looking at this
   with IE7, but with IE9 developer preview in IE7 standards mode, so
   it's possible that there's a bug with that that's not showing me what
   I should actually be seeing, but if you change width to 100% on both
   the top table (class=TitleBar) and bottom table
   (class=CommandBar), then also change the height of CommandBar to
   35px from 33, that should give you what you're wanting.

   I think part of the problem is that GWT uses the same codepath for IE6
   and IE7, so they're using an inline style fix to accomodate IE6 that's
   breaking IE7. (When looking at that page in Firefox, the width on
   those tables is set to 100% instead of a numeric value.)

   The easiest way to fix this yourself would be to use a conditional
   comment with your styles inside. e.g.:
   !--[if IE 7]
   style type=text/css
   table.TitleBar {
   width: 100% !important;}

   table.CommandBar {
   width: 100% !important;
   height: 35px !important;}

   /style
   ![endif]--

   Normally, I'd recommend you do this just in the IE7 code path of GWT,
   but from what I remember, GWT combines IE6 and IE7 into the same
   codepath by default. I'm not a big fan of !important declarations in
   CSS in general, but in this case, since GWT is putting inline styles
   on the element, I don't see a way around it unless you find a way to
   override those styles in GWT itself, which would probably mean
   manually splitting IE6 and IE7 into their own codepaths.

   Hope that helps!

   On Aug 27, 4:12 am, Magnus alpineblas...@googlemail.com wrote:

For convenience I uploaded a minimalistic live demo with source 
code:http://www.bavaria64.de:8080/LayoutProblem

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



Mouse Wheel and Trackpad scroll for GWT apps

2010-08-30 Thread hiraash
Hey guys,

I used some JS support to enable mouse wheel and trackpad scroll for
Mac users on my recent GWT app. Further details can be found here
http://blog.hiraash.org/2010/08/30/mouse-wheel-and-trackpad-scroll-for-gwt-applications/

See it work here - http://creately.com/diagram/gc7qvpsj1

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-tool...@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: /missing-plugin/ eroor

2010-08-30 Thread Rok Arnus
I have the exact same problem. Have you figured it out?

On 29 avg., 14:32, miki haiat miko5...@gmail.com wrote:
 im newby  to gwt  ...
 i download the eclipse  plugin and im tiring to run the google exemple
 code
 and thats what`s im receiving   in the browser
 The requested URL /missing-plugin/ was not found on this server.

 and in the eclipse console

 29/08/2010 15:26:25
 com.google.appengine.tools.development.LocalResourceFileServlet doGet
 WARNING: No file found for: /favicon.ico

 thanks
 miki

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



exporting data to excel

2010-08-30 Thread Lewis Yeung
I am currently working on an appl using gwtext. However, i need to
export data to an excel for users to save in their local machines. I
wonder how this can do done. I will have a button or some sort and
when it is clicked, the presenter will call the server (which gets
data from DB) using GWT RPC. Do I use Poi or jExcel to create the
excel from server? then how can users save the file in their local
machines? pls help. any tutorials or samples would be great. 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-tool...@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 for Python

2010-08-30 Thread Ümit
You mean something like this?

http://pyjs.org/


On Aug 30, 7:24 am, Reid Lai reid...@gmail.com wrote:
 Is there any GWT branch for python or other language so we could rely
 on this branch if GWT can't use Java technology for some reasons later
 on?

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



Docs for 2.0

2010-08-30 Thread John
Where can I find the Google Web Toolkit API Reference for 2.0

Thanks.

John

-- 
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-tool...@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: Grid column added at run time

2010-08-30 Thread Sean
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/Grid.html

Look at the resize columns function.

On Aug 30, 1:49 am, abhijeet abhijeetsuryawanshi1...@gmail.com
wrote:
 Dear All,

 Is there any event using which I can get new column added at run
 time ??/

-- 
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-tool...@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: same code - different compile plattforms - different results???

2010-08-30 Thread Falcon
If you can get away with using a FlowPanel or one of the panels they
list as working in standards-mode and still get the layout you want, I
would do that instead; that way Google should take care of the layout
issues in the different browsers and you won't have to worry about it
again.

When I was looking at your test page, I had to change the height to
get everything to display correctly (the bottom CommandBar was a
couple of pixels off and wasn't quite flush with the bottom of the
table), but that may have been because I was using IE9's IE7 emulation
instead of looking at it in IE7 itself. If everything is lining up
when you look at it in IE7, you're fine. =)

On Aug 30, 11:49 am, Magnus alpineblas...@googlemail.com wrote:
 Hi Falcon,

 if one should not use HorizontalPanel, would you prefer the use of
 FlowPanel over inserting the IE7 specific style?

 How did it come you proposed to change the height? (Maybe I have a
 problem, I don't know yet! :-))

 Magnus

 On Aug 30, 3:37 pm, Falcon msu.fal...@gmail.com wrote:

  If the height is working for you, don't worry about changing it.

  Keep in mind that GWT will actually send different code to different
  browsers. The reason that you aren't seeing that value in Firebug in
  Firefox was that Firefox was receiving a width of 100% and not the
  368, but GWT was sending an inline style to IE6 and 7 to account for
  some of the rendering problems in IE. However, that panel was designed
  to be used in quirks mode, so GWT is sending values that don't work in
  standards mode, which is what you're using.

  I don't remember for sure if IE7 has it, but IE8 and the IE9 developer/
  platform preview both have Developer Tools (either F12 or under
  Tools) which allows you to do similar things to Firebug. The IE9
  preview lets you switch between IE5, IE7, IE8, and IE9 rendering modes
  while IE8 lets you switch between IE7 and IE8. I'd recommend checking
  each version of the browser directly if possible as those rendering
  modes don't always do a perfect job and there may be minor
  differences, but at least the developer tools should get you in the
  ballpark.

  On Aug 30, 7:29 am, Magnus alpineblas...@googlemail.com wrote:

   Hi Falcon,

   thank you very much!!!
   This works perfectly!

   I just copied your code in my main html file, right at the end of the
   head tag.

   Could you tell me how you found out that the width was set to 368 px?
   In FF I have FireBug, but it did not show this width. In IE I have
   nothing similar.

   Another question: Why should I change the height from 35px to 33px? I
   had no problem with the heigt...

   Thank you again!

   Now I can proceed with my app...

   Magnus

   On 27 Aug., 16:22, Falcon msu.fal...@gmail.com wrote:

The problem in the example code that you posted is that the width is
getting set to 368px on the table in the inline style, which is
overriding the width: 100% that you want. Now, I'm not looking at this
with IE7, but with IE9 developer preview in IE7 standards mode, so
it's possible that there's a bug with that that's not showing me what
I should actually be seeing, but if you change width to 100% on both
the top table (class=TitleBar) and bottom table
(class=CommandBar), then also change the height of CommandBar to
35px from 33, that should give you what you're wanting.

I think part of the problem is that GWT uses the same codepath for IE6
and IE7, so they're using an inline style fix to accomodate IE6 that's
breaking IE7. (When looking at that page in Firefox, the width on
those tables is set to 100% instead of a numeric value.)

The easiest way to fix this yourself would be to use a conditional
comment with your styles inside. e.g.:
!--[if IE 7]
style type=text/css
table.TitleBar {
width: 100% !important;}

table.CommandBar {
width: 100% !important;
height: 35px !important;}

/style
![endif]--

Normally, I'd recommend you do this just in the IE7 code path of GWT,
but from what I remember, GWT combines IE6 and IE7 into the same
codepath by default. I'm not a big fan of !important declarations in
CSS in general, but in this case, since GWT is putting inline styles
on the element, I don't see a way around it unless you find a way to
override those styles in GWT itself, which would probably mean
manually splitting IE6 and IE7 into their own codepaths.

Hope that helps!

On Aug 27, 4:12 am, Magnus alpineblas...@googlemail.com wrote:

 For convenience I uploaded a minimalistic live demo with source 
 code:http://www.bavaria64.de:8080/LayoutProblem

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 

Re: /missing-plugin/ eroor

2010-08-30 Thread Chris Conroy
While the fix for the main link propagates, we have a temporary download
link here: http://gwt.google.com/samples/MissingPlugin

On Mon, Aug 30, 2010 at 10:11 AM, Rok Arnus rok.ar...@gmail.com wrote:

 I have the exact same problem. Have you figured it out?

 On 29 avg., 14:32, miki haiat miko5...@gmail.com wrote:
  im newby  to gwt  ...
  i download the eclipse  plugin and im tiring to run the google exemple
  code
  and thats what`s im receiving   in the browser
  The requested URL /missing-plugin/ was not found on this server.
 
  and in the eclipse console
 
  29/08/2010 15:26:25
  com.google.appengine.tools.development.LocalResourceFileServlet doGet
  WARNING: No file found for: /favicon.ico
 
  thanks
  miki

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




-- 
Chris Conroy
Software Engineer
Google, Atlanta

-- 
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-tool...@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: Docs for 2.0

2010-08-30 Thread Jim Douglas
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/index.html
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html

On Aug 30, 7:06 am, John nesre...@gmail.com wrote:
 Where can I find the Google Web Toolkit API Reference for 2.0

 Thanks.

 John

-- 
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-tool...@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: exporting data to excel

2010-08-30 Thread macagain
I use jXLS http://jxls.sourceforge.net/ (which in turn uses POI) to
create the output file on the server, then depending on the browser
either (i) do a Window.open (on IE, which either triggers the excel
activeX to open the file, or presents the save as dialog), or (ii) set
the url of a hidden iFrame to the file (all other browsers), which
triggers download.  Both actions are called in the callback when the
report gen is completed on the server.  The hidden iFrame let me work
around pop-up blockers.

jXLS uses a mail merge style generation.  You create a normal excel
file with placeholders, e.g. ${data.here}; this is the template file.
You write a little pojo on the server to grab the data, which jXLS
then merges with the template, creating the output file.

good luck.

On Aug 30, 9:51 am, Lewis Yeung yeung.le...@gmail.com wrote:
 I am currently working on an appl using gwtext. However, i need to
 export data to an excel for users to save in their local machines. I
 wonder how this can do done. I will have a button or some sort and
 when it is clicked, the presenter will call the server (which gets
 data from DB) using GWT RPC. Do I use Poi or jExcel to create the
 excel from server? then how can users save the file in their local
 machines? pls help. any tutorials or samples would be great. 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-tool...@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: Docs for 2.0

2010-08-30 Thread John
On Mon, Aug 30, 2010 at 2:29 PM, Jim Douglas jdoug...@basis.com wrote:
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/index.html
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html

Thanks.  I always found these docs on the basic GWT site, but they
have bumped that to 2.1 now.  I guess Milestone editions count as
releases now?

John

-- 
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-tool...@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 are the benefits of using a MVP Framework?

2010-08-30 Thread Gal Dolber
It makes unit-testing easier. Thats it.
Without mvp you need to use GwtTestCase for all your client side tests, and
it isn't the fastest experience.

2010/8/30 Jambi michael.lukaszc...@googlemail.com

 Hey guys,

 i´m asking myself these days what´s the benefit of using a MVP
 Framework like GWTP (never realy used it because i´m very new to the
 whole MVP architecture) instead of writing your MVP app like it´s
 described on the google code page? Is it a lot easier and more
 comfortable? What´s the point of using a MVP framework at all, since it
 ´s just a design pattern? Isn´t there a good MVP integration coming
 in GWT 2.1 so that it´s not realy worth it to start using those
 frameworks or am I completely wrong?

 thanks, Michael

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




-- 
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-tool...@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 are some of the most valuable frameworks in your project?

2010-08-30 Thread Jeff Larsen
Thanks everyone for your responses they've been a huge help.

I noticed a lot of people using gwtp and no mention of MVP4G. What
made your decision to go with gwtp instead of mvp4g?

On Aug 29, 2:14 pm, Ikari igen...@gmail.com wrote:
 Gin and Guice for dependency injection. GWT-presenter as realization
 of MVP pattern, GWT-dispatch for client-server communication. So far
 that's fine.

-- 
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-tool...@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 align labels within a FlowPanel or a LayoutPanel

2010-08-30 Thread Magnus
Hi,

how can I vertically center a Label (or HTML) within a FlowPanel or
LayoutPanel?

In addition, how can I have two Labels (or HTMLs) in a row, one at the
left and one at the right, each one vertically centered?

Thank you
Magnus

-- 
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-tool...@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: WSDL

2010-08-30 Thread Deepak Singh
Hi,

Pls suggest what is wrong there ?

Or
Anyother way to consume wsdl and invoke remote methods. Also response is xml
so any tool to map xml to java convinient for gwt.

Thanks in advance
Deepak


On Mon, Aug 30, 2010 at 6:01 PM, Deepak Singh deepaksingh...@gmail.comwrote:

 Any idea pls.

 Regards
 Deepak

 On Mon, Aug 30, 2010 at 1:08 AM, Deepak Singh deepaksingh...@gmail.comwrote:

 Hi,

 I tried with groovyws but could not run succesfully.
 I created a java project in eclipse 3.5. Added the jar files groovyws.jar
 with 0.5.2 version,cxf-bundle-2.1.4.jar, asm.jar .
 Did the following code :


 WSClient proxy =
 *new* WSClient(
 http://www.w3schools.com/webservices/tempconvert.asmx?WSDL;, GroovyTest.*
 class*.getClassLoader());

 proxy.initialize();

 Object *obj* = proxy.invokeMethod(
 CelsiusToFahrenheit, 0);

 But when i run it, i always get error saying the someclass.not found
 exception.

 Pls let me know that am i missing some more jar files or any configuration
 needs to be done to run it.

 Thanks

 Deepak






   On Tue, Aug 10, 2010 at 8:00 PM, rudolf michael roud...@gmail.comwrote:

 Well you need to use a proxy on the server that calls the different web
 services you have.
 In case you like dynamic language check this out
 http://groovy.codehaus.org/GroovyWS

  http://groovy.codehaus.org/GroovyWSit is so fucking easy to use web
 services with groovy. but this has nothing to do with GWT/client side
 coding.


 best regards,
 Rudolf Michael


 On Tue, Aug 10, 2010 at 5:26 PM, mikedshaf...@gmail.com 
 mikedshaf...@gmail.com wrote:

 To follow up on the other replyyou have to do this on the server,
 in Java.  Apache Axis is a great way to do it...  But it won't work on
 the client in the emulated JRE (I suspect since I've never tried it,
 but I doubt it will)


 On Aug 10, 3:27 am, Deepak Singh deepaksingh...@gmail.com wrote:
  Hi All,
 
  I need to consume several cross-domain wsdl files and get data by
 calling
  methods from wsdl. I dont know how to do this using GWT.
  Pls suggest. I am using GWT 2.1 m2
 
  Thanks
  Deepak

 --
 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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-tool...@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: converting JPA entities to Records

2010-08-30 Thread Thomas Broyer


On 30 août, 18:37, Peter Simun si...@seges.sk wrote:
 Thomas, I don't want to start a flame war here, but I really didn't
 get your point about generating interfaces.
 The goal is: automatically convert JPA-annotated entities to GWT
 Records so it means that you have:
 - @Entity class DomainEntity {...}
 - GWT 2.1 Record interface

If you already have that, assuming you're using RequestFactory, then
you don't need anything else (apart from defining your RequestFactory
and GWT.crate() it, but you'll use the RequestFactory generator, you
don't need to code one).

 and you want to get both of them in a result:
 - class RecordDomainEntity extends DomainEntity implements Record
 {...}

 So, deffered binding will works perfectly for that case. Same with the
 annotation processing.

If that's what you want, then yes, deferred binding or annotation
processing would both work. But I don't think that was the original
question, or I really misunderstood it.

-- 
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-tool...@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: Docs for 2.0

2010-08-30 Thread Jim Douglas
I think you missed that I posted links for both 2.0 and 2.1.

On Aug 30, 11:46 am, John nesre...@gmail.com wrote:
 On Mon, Aug 30, 2010 at 2:29 PM, Jim Douglas jdoug...@basis.com wrote:
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/index.html
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html

 Thanks.  I always found these docs on the basic GWT site, but they
 have bumped that to 2.1 now.  I guess Milestone editions count as
 releases now?

 John

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



Is there anyone using GWT at University Laval ?

2010-08-30 Thread Christian Goudreau
Just a ping to see if there's anyone else using GWT for institution projects
:D

Cheers,

-- 
Christian Goudreau
www.arcbees.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-tool...@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 are the benefits of using a MVP Framework?

2010-08-30 Thread Falcon
Gal, Jambi was asking why you would use an MVP framework instead of
just doing it the way described in the MVP tutorial on the GWT site.

Jambi, I don't have a great answer for you as I'm new to all of this
myself, but I'd imagine it's to make your life easier and to handle
more things automatically for you. When you're doing an MVP app, you
find yourself writing a lot of similar code over and over again, but
it can be difficult to figure out how to abstract some of that out;
there's just an awful lot of boilerplate that goes along with getting
MVP working. I think the frameworks are intended to mitigate that
somewhat.

I will probably wait for GWT's built-in 2.1 stuff as well and just
roll my own until then, but it might not be bad to start with one of
the frameworks and migrate from that once 2.1 is out. Someone with
more experience can probably answer that better than I.

On Aug 30, 1:56 pm, Gal Dolber gal.dol...@gmail.com wrote:
 It makes unit-testing easier. Thats it.
 Without mvp you need to use GwtTestCase for all your client side tests, and
 it isn't the fastest experience.

 2010/8/30 Jambi michael.lukaszc...@googlemail.com



  Hey guys,

  i´m asking myself these days what´s the benefit of using a MVP
  Framework like GWTP (never realy used it because i´m very new to the
  whole MVP architecture) instead of writing your MVP app like it´s
  described on the google code page? Is it a lot easier and more
  comfortable? What´s the point of using a MVP framework at all, since it
  ´s just a design pattern? Isn´t there a good MVP integration coming
  in GWT 2.1 so that it´s not realy worth it to start using those
  frameworks or am I completely wrong?

  thanks, Michael

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

 --
 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-tool...@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 are the benefits of using a MVP Framework?

2010-08-30 Thread Gal Dolber
Hope this won't sound too bad: why don't you hand-write dependency injection
on every project?

2010/8/30 Falcon msu.fal...@gmail.com

 Gal, Jambi was asking why you would use an MVP framework instead of
 just doing it the way described in the MVP tutorial on the GWT site.

 Jambi, I don't have a great answer for you as I'm new to all of this
 myself, but I'd imagine it's to make your life easier and to handle
 more things automatically for you. When you're doing an MVP app, you
 find yourself writing a lot of similar code over and over again, but
 it can be difficult to figure out how to abstract some of that out;
 there's just an awful lot of boilerplate that goes along with getting
 MVP working. I think the frameworks are intended to mitigate that
 somewhat.

 I will probably wait for GWT's built-in 2.1 stuff as well and just
 roll my own until then, but it might not be bad to start with one of
 the frameworks and migrate from that once 2.1 is out. Someone with
 more experience can probably answer that better than I.

 On Aug 30, 1:56 pm, Gal Dolber gal.dol...@gmail.com wrote:
  It makes unit-testing easier. Thats it.
  Without mvp you need to use GwtTestCase for all your client side tests,
 and
  it isn't the fastest experience.
 
  2010/8/30 Jambi michael.lukaszc...@googlemail.com
 
 
 
   Hey guys,
 
   i´m asking myself these days what´s the benefit of using a MVP
   Framework like GWTP (never realy used it because i´m very new to the
   whole MVP architecture) instead of writing your MVP app like it´s
   described on the google code page? Is it a lot easier and more
   comfortable? What´s the point of using a MVP framework at all, since it
   ´s just a design pattern? Isn´t there a good MVP integration coming
   in GWT 2.1 so that it´s not realy worth it to start using those
   frameworks or am I completely wrong?
 
   thanks, Michael
 
   --
   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-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
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-tool...@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: XMLHttpRequest / RequestBuilder - withCredentials

2010-08-30 Thread Thomas Broyer


On 30 août, 18:14, davewilliamson dave.p.william...@googlemail.com
wrote:
 Hi,

 Using GWT RequestBuilder, I need to set the withCredentials flag for
 the XMLHttpRequest (I need to do XSS with access to Cookies as part of
 an RPC call).

 Maybe I am too much of a Noob with GWT, but can't see how this can be
 done?!?!

 Everything else I am try to do is working fine (i.e. I get the correct
 data/functions that I am trying to achieve (Cross site)), but cannot
 pass a cookie to the Server, or set a cookie from the Server -  I am
 using GAE to host the application.

 I appreciate the default action of XMLHttpRequest is to set the
 'withCredentials' flag to false (for XSS), hence the ability to
 override this setting when sending the request - But RequestBuilder
 doesn't appear to provide any interface to this function.

 Can anybody point me to the way this would be set?

You can't do that with RequestBuilder, but you can use
com.google.gwt.xhr.client.XMLHttpRequest instead. It's a
JavaScriptObject (aka overlay type) so you can use JSNI (or just a
cast to your own JSO) to set its withCredential property to true.

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



Using GWT for a large UI project

2010-08-30 Thread marius.andreiana
Hello group,

A few weeks ago I started a shared document which analyses using GWT
for a large UI project, which has also reviewed by this group (thanks
for your feedback!). After learning more, the analysis has been
updated to include the following sections:

Using GWT for a large UI project
Goals
Web applications paradigm alternatives
Google Web Toolkit (GWT)
  Engineering
  Cross-functional team collaboration
  More info on GWT
Recommendation
Appendix: Evaluating GWT 3rd party libraries
Appendix: Cool web apps on GWT
Appendix: Useful articles

If you'd like to have a look at it, please see
https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWBCOKTPm1wDCzSQgvUhl=en

Feel free to share your feedback and experiences on larger projects
either on this group or in private. If you have developed GWT front-
ends on .NET back-ends, your feedback is specially appreciated :)

Thanks,
Marius

-- 
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-tool...@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 are the benefits of using a MVP Framework?

2010-08-30 Thread Jambi
Hey Gal,

thanks for the answer. Yes, I learned that already and I think I
posted my question wrong. I wanted to know what´s the difference in
implementation if I decide to import an extern library which was build
for MVP uses insted of writing my MVP code from scratch? What would be
the benefits of that decision? Maybe i´m just thinking in a complete
wrong direction, and my question makes no sense. As i mentioned, i´m
very new to the whole MVP story I need it for dummies please ;)

-- 
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-tool...@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 are the benefits of using a MVP Framework?

2010-08-30 Thread PhilBeaudoin
In my opinion, using an MVP framework is yet another way to benefit
from the knowledge gathered by countless of your peers working on
similar problems. One key benefit of gwt-platform, for example, is to
crystallize the community around a specific implementation. I'm sure
GWTP users can tell you how great it is to post a problem to the forum
and get 3 answers within an hour.

So here is why I think you should go with a framework:
- It reduces boilerplate by introducing time-tested abstractions and
using tools like GWT code generators or annotation processors ;
- It reduces low level bugs by increasing the size of your pool of
testers ;
- It gives you access to features that would be long to develop
otherwise ;
- It drives you towards good design through it's documentation and
examples ;
- It helps you find your way around and resolve your problems through
its community ;
And something that many GWTP users seem to enjoy:
- It let's you contribute back and add features you like in the
project, helping many others in the process.

Waiting for GWT 2.1 classes can be an option, but even according to
Thomas Boyer, who has been investigating these thoroughly, even these
classes are meant to be extended through third party frameworks. I
enjoin you to read his blog posts:
http://tbroyer.posterous.com/gwt-21-places
http://tbroyer.posterous.com/gwt-21-places-part-ii

And the following discussion on the GWTP forum:
http://groups.google.com/group/gwt-platform/browse_thread/thread/4c00e59dc139ccdf

Hope it helps. And remember: Good programmers write good code; great
programmers steal great code. ;)

Cheers,

Philippe


On Aug 30, 12:28 pm, Gal Dolber gal.dol...@gmail.com wrote:
 Hope this won't sound too bad: why don't you hand-write dependency injection
 on every project?

 2010/8/30 Falcon msu.fal...@gmail.com





  Gal, Jambi was asking why you would use an MVP framework instead of
  just doing it the way described in the MVP tutorial on the GWT site.

  Jambi, I don't have a great answer for you as I'm new to all of this
  myself, but I'd imagine it's to make your life easier and to handle
  more things automatically for you. When you're doing an MVP app, you
  find yourself writing a lot of similar code over and over again, but
  it can be difficult to figure out how to abstract some of that out;
  there's just an awful lot of boilerplate that goes along with getting
  MVP working. I think the frameworks are intended to mitigate that
  somewhat.

  I will probably wait for GWT's built-in 2.1 stuff as well and just
  roll my own until then, but it might not be bad to start with one of
  the frameworks and migrate from that once 2.1 is out. Someone with
  more experience can probably answer that better than I.

  On Aug 30, 1:56 pm, Gal Dolber gal.dol...@gmail.com wrote:
   It makes unit-testing easier. Thats it.
   Without mvp you need to use GwtTestCase for all your client side tests,
  and
   it isn't the fastest experience.

   2010/8/30 Jambi michael.lukaszc...@googlemail.com

Hey guys,

i´m asking myself these days what´s the benefit of using a MVP
Framework like GWTP (never realy used it because i´m very new to the
whole MVP architecture) instead of writing your MVP app like it´s
described on the google code page? Is it a lot easier and more
comfortable? What´s the point of using a MVP framework at all, since it
´s just a design pattern? Isn´t there a good MVP integration coming
in GWT 2.1 so that it´s not realy worth it to start using those
frameworks or am I completely wrong?

thanks, Michael

--
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252Bu 
  nsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=en.

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

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

Re: What are the benefits of using a MVP Framework?

2010-08-30 Thread Jambi
Ah Ok! I think the reasons are now clear to me. I guess i will check
out some of those frameworks. Thanks guys ;)

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



IE8 Style.setOpacity

2010-08-30 Thread bconoly
Hey All,
   It seems that IE8 uses -ms-filter to work opacity propertly and the
Style function for setting opacity works great in all browsers but
IE8.  Does anyone know a workaround for setting the -ms-filter
property via javascript?

I've tried several:
style.setProperty(MsFilter,
progid:DXImageTransform.Microsoft.Alpha(Opacity= + (int)
(opacity*100) + ));
style.setProperty(MsFilter,
\progid:DXImageTransform.Microsoft.Alpha(Opacity= + (int)
(opacity*100) + )\);
style.setProperty(msFilter,
\progid:DXImageTransform.Microsoft.Alpha(Opacity= + (int)
(opacity*100) + )\);

Any suggestions would be greatly appreciated,
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-tool...@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: Docs for 2.0

2010-08-30 Thread John
On Mon, Aug 30, 2010 at 3:26 PM, Jim Douglas jdoug...@basis.com wrote:
 I think you missed that I posted links for both 2.0 and 2.1.

Nope, didn't miss that.  Appreciate your info.   I just don't
understand why the basic docs for the latest released stable version
have disappeared from the basic home page area of GWT, and we have
to dig for it in the svn structure.  But never mind, you solved my
problem.

John

-- 
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-tool...@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: Long RPC causes fail without statuscode

2010-08-30 Thread Erik Bens
Hi,

cause I don't see any chance to edit I reply to myself.
I got a statuscode: 12002 and as I can read from the www it's a
timeout. Seems that it is an http request timeout. Has anybody tested
a workaround or has a solution for this problem? Hmm... I'll search
google tomorrow :)

Regards

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



Using an App-wide RPC serive or multiple services?

2010-08-30 Thread Jambi
Hey guys,

another question from me ;)! What is your approach for your rpc logic?
Are you having an App-wide RPC service you pass to each presenter or
are you having multiple service classes you instatiuate in the
presenter you need it? I´ve seen both approaches in different gwt
examples and i´m not realy sure which is the best. What do you guys
think?

-- 
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-tool...@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: IE8 Style.setOpacity

2010-08-30 Thread bconoly
Nevermind, I asked too soon, I ended up using:

style.setProperty(filter, alpha(opacity \\= + (int)(opacity*100) +
));

and it worked fine.

On Aug 30, 3:55 pm, bconoly bcon...@gmail.com wrote:
 Hey All,
    It seems that IE8 uses -ms-filter to work opacity propertly and the
 Style function for setting opacity works great in all browsers but
 IE8.  Does anyone know a workaround for setting the -ms-filter
 property via javascript?

 I've tried several:
 style.setProperty(MsFilter,
 progid:DXImageTransform.Microsoft.Alpha(Opacity= + (int)
 (opacity*100) + ));
 style.setProperty(MsFilter,
 \progid:DXImageTransform.Microsoft.Alpha(Opacity= + (int)
 (opacity*100) + )\);
 style.setProperty(msFilter,
 \progid:DXImageTransform.Microsoft.Alpha(Opacity= + (int)
 (opacity*100) + )\);

 Any suggestions would be greatly appreciated,
 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-tool...@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: Is it possible to remove the '+' Sign next to GWT's Root Tree Item?

2010-08-30 Thread Travis G
I answered my own question, after a bit of research. In case you run
into the same issue, here's some code to get you over the hump. It
relies on using the non-default constructor for Tree. If you set
spacer.png to a 1x1 transparent PNG it will remove the + signs. Here
is the full code I used.

public interface MyResources extends ClientBundle {
  public static final MyResources INSTANCE =
GWT.create(MyResources.class);

  @Source(spacer.png)
  public ImageResource leaf();


}


public class TreeImagesExample implements Tree.Resources
{


@Override
public ImageResource treeClosed() {
// TODO Auto-generated method stub
return MyResources.INSTANCE.leaf();
}

@Override
public ImageResource treeLeaf() {
// TODO Auto-generated method stub
return MyResources.INSTANCE.leaf();
}

@Override
public ImageResource treeOpen() {
// TODO Auto-generated method stub
return MyResources.INSTANCE.leaf();
}

}

Main Function:
 TreeImagesExample tx= new TreeImagesExample();
Tree t = new Tree(tx);
t.addItem(root);


On Aug 22, 5:23 pm, Travis G travis.godwin.g...@gmail.com wrote:
 I wondered if anyone knew whether it was possible to remove the '+'
 Sign that appears next to the root item in a GWT Tree? I didn't see a
 CSS rule to handle it. Can one replace the + sign with say, a GIF?

 (Adapted code from GWT manual below, for illustrative purposes)

 TreeItem root = new TreeItem(root); // Wish to remove + sign from
 next to this item
 root.addItem(item0);
   root.addItem(item1);
   root.addItem(item2);
   root.setState(true, true);
   // Add a CheckBox to the tree
   TreeItem item = new TreeItem(new CheckBox(item3));
   root.addItem(item);

   Tree t = new Tree();
   t.addItem(root);

   // Add it to the root panel.
   RootPanel.get().add(t);

-- 
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-tool...@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: Using an App-wide RPC serive or multiple services?

2010-08-30 Thread Gal Dolber
here again :D.
I like the app-wide rpc service because when you centralize your rpc-service
you can easily add batching and caching to it.
The down-side is that when you use one rpc-service for your whole app you
can't code-split the serializers.
I looking for the solution to that problem.

2010/8/30 Jambi michael.lukaszc...@googlemail.com

 Hey guys,

 another question from me ;)! What is your approach for your rpc logic?
 Are you having an App-wide RPC service you pass to each presenter or
 are you having multiple service classes you instatiuate in the
 presenter you need it? I´ve seen both approaches in different gwt
 examples and i´m not realy sure which is the best. What do you guys
 think?

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




-- 
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-tool...@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: Digest for google-web-toolkit@googlegroups.com - 25 Messages in 14 Topics

2010-08-30 Thread wul...@myway.com

Please stop emailing me. No more. I have so many emails from this -Original 
Message-From: google-web-toolkit+nore...@googlegroups.comdate: 01/03/2010 
06:56 PMTo: Digest Recipients Subject: Re: Digest for 
google-web-toolkit@googlegroups.com - 25 Messages in 14 TopicsNote: Original 
message sent as attachment

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

---BeginMessage---
=
Today's Topic Summary
=

Group: google-web-toolkit@googlegroups.com
Url: http://groups.google.com/group/google-web-toolkit/topics

  - Read a file on the server at server startup [3 Updates]
http://groups.google.com/group/google-web-toolkit/t/a178d7a9619ffbeb
  - GWT Compile [1 Update]
http://groups.google.com/group/google-web-toolkit/t/e90968b5d7322c8a
  - RPC vs HTTP requests [1 Update]
http://groups.google.com/group/google-web-toolkit/t/86c3f160b4363cc7
  - Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2 [1 
Update]
http://groups.google.com/group/google-web-toolkit/t/cbf566637f03496a
  - SuggestBox and DTO [1 Update]
http://groups.google.com/group/google-web-toolkit/t/3f8feae1547ab298
  - Borders on Decorator panel [1 Update]
http://groups.google.com/group/google-web-toolkit/t/21995321405c2253
  - MVP Article... Source Code? [3 Updates]
http://groups.google.com/group/google-web-toolkit/t/dcab092b8ee3c471
  - findResource(DynaTable/html.gwt.xml) -- Resource not found, returning null 
[2 Updates]
http://groups.google.com/group/google-web-toolkit/t/bf18d4b6101f3e4f
  - GWT and Eclipse not working [2 Updates]
http://groups.google.com/group/google-web-toolkit/t/f6e1e1f40cb9cb33
  - GWT maps 2.x version issue [2 Updates]
http://groups.google.com/group/google-web-toolkit/t/f30526e660f484c1
  - Google Web Toolkit [1 Update]
http://groups.google.com/group/google-web-toolkit/t/2e8d7be5069effb4
  - gwt 2.0 plugin crashes firefox 3.5 in OS X 10.4 [1 Update]
http://groups.google.com/group/google-web-toolkit/t/50d912d37c59091e
  - JUnit tests from Eclipse: Refresh problem [1 Update]
http://groups.google.com/group/google-web-toolkit/t/3c1dd7e567901074
  - packing custom gwt libraries [5 Updates]
http://groups.google.com/group/google-web-toolkit/t/c1f1e1b0767d42e1


=
Topic: Read a file on the server at server startup
Url: http://groups.google.com/group/google-web-toolkit/t/a178d7a9619ffbeb
=

-- 1 of 3 --
From: Lothar Kimmeringer j...@kimmeringer.de
Date: Jan 03 02:38PM +0100
Url: http://groups.google.com/group/google-web-toolkit/msg/a4786389b3b5194f

ky schrieb:

 But this does not work when deployed because the file paths are
 somehow different. How can I get the correct file path to access
 config.txt in the deployed version?

getClass().getResourceAsStream(/config.txt);
It returns null if the file can't be found. if you place the
config-file in the same package as the class reading it, you
can leave away the slash.


Regards, Lothar


-- 2 of 3 --
From: ky zane.t...@gmail.com
Date: Jan 03 01:29PM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/34171dd9da6c5f6c

Just to reiterate, I would like best to find a way to obtain the base
path for the web application that lives inside the war.

@Lothar:

Thanks for the tip; I am calling getClass().getResourceAsStream
(config.txt) from ServiceImpl.java in the server package. It works
when I put config.txt in the server package, but I was hoping to put
it in the war in the same place as the main .html file, on the same
level where /WEB-INF resides. If I try getClass().getResourceAsStream
(/config.txt) however, I get a null. Any idea what I might be doing
wrong?


@Mariyan:

This is a file that the server needs to load that the client knows
nothing about. I am new to java web application development though, so
I am open to suggestions about best practices. I've read about
properties files in XML that reside on the server but I can't find how
to set them up. I suppose I could manually add a property for the
correct path if I can't programatically determine it.



-- 3 of 3 --
From: ky zane.t...@gmail.com
Date: Jan 03 02:16PM -0800
Url: http://groups.google.com/group/google-web-toolkit/msg/e42db321816d1702

The way I'm getting around the issue is by calling

String root = getServletContext().getRealPath(/);

after the server has 

Re: Digest for google-web-toolkit@googlegroups.com - 25 Messages in 14 Topics

2010-08-30 Thread Shawn Brown
 Please stop emailing me. No more. I have so many emails from this

 To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.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-tool...@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.



  1   2   >