Re: Hibernate GWT

2009-08-17 Thread mnuttall

http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html


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



Re: how to deploy a GWT Application online?

2009-08-17 Thread lalu ml
Hi sam,
 I think you have completed your gwt application in your local
machine with mysql database.So I think its working fine in your local
machine [in eclipse editor].You now create a war for the entire project ie
it contains all codes of client and server and should put into the webapps
of tomcat server or corresponding location of any other server ie jboss or
weblogic or anything.And you can take the url in any browzer.please make
sure the client and server codes[class files] in a single war.

Regards,
   Lal

On Mon, Aug 17, 2009 at 10:30 AM, sam sabir...@gmail.com wrote:


 I have been working on my summer GWT Application Project. Finally, I
 have created an application using eclipse. It has uses RPC, and I use
 JDBC MYSQL to access database.

 My application is almost complete; it runs fine in hosted mode and
 accesses database.

 But, today I tried to deploy it online. I could not get my client and
 server side to interact, let alone accessing database.

 Can anyone help me figure out how to deploy GWT application online?
 How do I get my client and server side to interact when deployed.
 Isn't posting the content under 'war' enough?


 Thanks,
 sam

 


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



Re: com.google.gwt.user.client.rpc.StatusCodeException

2009-08-17 Thread tolga ozdemir

on my hostedmode debug window.. I see this error on the picture, pls
help me to return a collection from my remote service

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



Problem In Returning Generic type Field from Server

2009-08-17 Thread ranju malhotra


Hello,


I am new to the working of GWT.I have created a simple RPC Application
some thing like this

My user defined Class

public class StudentDetails implements IsSerializable
{
private static final long serialVersionUID = -5615180217808518977L;
public String name= ;
public int class1=0;
public int marks1=0;
public int marks2=0;
public String Address=;
public String city=;
public int total=0;

public StudentDetails()
{}

}

My syncronous interface
===
@RemoteServiceRelativePath(greet)
public interface GreetingService extends RemoteService {
//ArrayListStudentDetails getResult();
StudentDetails[] getResult();
String Connect();
}

Asynchronous interface
==
public interface GreetingServiceAsync {
//void getResult(AsyncCallbackArrayListStudentDetails callback3);
void getResult(AsyncCallback callback3);
void Connect(AsyncCallbackString callback4);
}

Server side implementation
===
@SuppressWarnings(serial)
public class GreetingServiceImpl extends RemoteServiceServlet
implements
GreetingService {

String tempStr=;
Connection con=null;
String str=;

/**
 *  @gwt.typeArgs StudentDetails[]
 */
public StudentDetails[] getResult()
{

ArrayListStudentDetails tempList=new 
ArrayListStudentDetails();
try
{
//Connect();
if(con!=null)
{
boolean test=con.isClosed();
if(!test)
{
Statement stmt=con.createStatement();

str=Select 
student.name,class,city,address,marks1,marks2 from
student,details where student.name=details.name;
stmt=con.prepareStatement(str);
ResultSet rs=stmt.executeQuery(str);


while(rs.next())
{

StudentDetails st=new StudentDetails();
st.name=rs.getString(1);
st.class1=rs.getInt(2);
st.city=rs.getString(3);
st.Address=rs.getString(4);
st.marks1=rs.getInt(5);
st.marks2=rs.getInt(6);
st.total=st.marks1+st.marks2;
tempList.add(st);

}
rs.close();

con.close();
}
}

}
catch(Exception ex)
{
System.out.println(ex.getMessage());

}
System.out.println(tempList.size());

return tempList.toArray(new StudentDetails[0]);

}

public String Connect()
{
String str=;
try
{

Class.forName(com.mysql.jdbc.Driver);
String URL=jdbc:mysql://localhost:3306/project;
 con=DriverManager.getConnection(URL,root,Password);
str=connection success;

}
catch(Exception ex)
{
str=Connection Failure;

}
return str;

}
}

Client Side calling Part
===
private void checkDatabase()
{
greetingService.Connect(new AsyncCallbackString() {
public void onFailure(Throwable th)
{}
public void onSuccess(String st)
{
Window.alert(st);
}
})  ;

greetingService.getResult(new 
AsyncCallbackStudentDetails[]()
{
public void onFailure(Throwable cought)
{

System.out.println(cought.getMessage());
}
public void onSuccess(StudentDetails[] 
st1)
{
try
{
StudentDetails[] st=st1;

Window.alert(Integer.toString(st.length));
ftable.setText(0, 0, Name);
   

Re: Hibernate GWT

2009-08-17 Thread tolga ozdemir

Most of the GWT developers suffer from this RPCHibernate
entegration.. Some articles related to earlier versions are not usable
now.. Others are not cover every aspect of it..

While this is a fact, in the 2nd version of GWT, there will be an easy
approach?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: formating ListBox text

2009-08-17 Thread mars1412

why don't you use a table or the like?
http://code.google.com/intl/de-DE/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideWidgetGallery

On Aug 16, 11:52 pm, BobM bmar...@bcscomputers.com wrote:
 I have a ListBox with a heading that looks like this:

 ___Name___|__Location__

 I add to the ListBox (maybe) several strings that I have built up from
 two pieces of data: a name and a city/town name.  I need the resulting
 string to display such that the city/town name begins just one space
 into the location part of the display.  I have a method to padString
 which I use to pad out the length of the name plus as many spaces as
 required to put the location at the right place once appended to the
 name+spaces part of the string.

 This approach does not work because the browser ignors multiple spaces
 and treats them as one, so I lose my padding.   This application is a
 conversion from the same app written using HTML and javaScript.  In
 that version I was successful in establishing the pad because I
 appended a number of nbsp; (non-breaking space) rather than plain
 spaces.

 Presently, I am padding with underscores to be able to see how this is
 working, and that it is working.  I can see the padding is working
 okay but the font is a variable width font and the result is a
 staggered text display, depending on the number of and specific
 characters in the name part.

 Now, There may be a way for me to add non-breaking spaces rather than
 plain spaces as padding.  How might I do that?  Even so, I will
 probably have to set the font in the ListBox to a momospaced font so I
 get exact apacing of every character.  I know there is a problem
 setting a font using css in a GWT app.

 Here is the relevant part of my current css for this problem:
 .gwt-ListBox-selectList {
   white-space: pre;
   background: lightgray;
  }

 The 'pre' doesn't work, either.  As best I can tell this is a browser
 problem. I am using Firefox version 1.5.0.12.

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



Re: rebuilding gwt 1.7

2009-08-17 Thread Paul Robinson

http://google-web-toolkit.googlecode.com/svn/releases/1.7

http://code.google.com/webtoolkit/makinggwtbetter.html#workingoncode

denis56 wrote:
 has anybody tried recompiling gwt 1.7?

 under what location current gwt 1.7 distribution is stored,
 http://code.google.com/p/google-web-toolkit/source/browse/#svn/releases/1.7
 ?

 I would like to recompile it to resolve
 http://code.google.com/p/google-web-toolkit/issues/detail?id=3608 for
 IE 6, Chrome and Safari.

 thanks
 

   

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



Re: rebuilding gwt 1.7

2009-08-17 Thread Thomas Broyer



On 17 août, 10:53, denis56 denis.ergashb...@gmail.com wrote:
 has anybody tried recompiling gwt 1.7?
[...]
 I would like to recompile it to resolve 
 http://code.google.com/p/google-web-toolkit/issues/detail?id=3608 for
 IE 6, Chrome and Safari.

You do not have to recompile GWT if you only touch client
code (given that this is code that'll be compiled to JavaScript from
the Java *source*).

You can either patch your gwt-user.jar (extract and modify the
appropriate file, and repackage it within the JAR) or provide your own
copied/modified version as an overlay (just put it earlier in the
classpath).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Calling GWT applications from legacy applications

2009-08-17 Thread Manuel Carrasco Moñino
Hello,

Not sure about your question

- If you want to include GWT client code in your jsp, just modify your jsp
template adding the javascript tag that points to your gwt application.
- If you want to put this client code in the same context of your legacy
application,
   - put the static stuff produced by gwt-compiler in the public folder of
the application
   - or include your gwt java classes in the application, configure the
build classpath to include gwt stuff, and modify your build script to
compile gwt client code before producing your .war file
- If you use rpcs calling  server code, you can put these classes and
necessary libraries in your legacy application without problem.

Manolo Carrasco


On Sat, Aug 15, 2009 at 12:32 PM, Aju Mathai mathai...@gmail.com wrote:


 Hi,

 Any help i get on this pls.



 On Thu, Aug 13, 2009 at 8:05 PM, mathesmondmathai...@gmail.com wrote:
 
  Hi,
 
  How do i call GWT applications from legacy applications built using
  Java Server Pages ? My legacy applications are deployed on tomcat .And
  the new GWT applications are also deployed on the same tomcat in a
  different context. If you could give me some pointers as to how this
  can be done with some examples.
 
  
 

 


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



Re: Hibernate GWT

2009-08-17 Thread Nick Nadgauda

For Gilead, you don't need to inherit from their classes.   Have your
model objects implement ILightEntity.  It's basically a wrapper around
a simple hashmap to store the proxy information.   Your service can
use the GileadRPCHelper directly.Take a look at the implementation
of PersistentRemoteService.  Our projects are structured this way and
it works great.

One gotcha with Gilead.   It seems to play well with either a servlet
container or JBOSS.   We are using it with GlassFish and it took some
tweaking to get everything running.


On Aug 4, 10:33 am, javier jasand...@gmail.com wrote:
 Hello folks:

 I've posted this question to the Hibernate user's forum, but in the
 absence of replies, I am posting it here as well, in the hopes that
 some of you may shed some light.  Please accept my apologies if this
 is the second time you see this post.

 I'm about to engage in an enterprise project whose front-end is to be
 built with GWT. I've had some Hibernate experience from past projects
 and really like the ORM mechanism used by Hibernate for marshalling/
 unmarshalling from a database. Now, as some of you know, domain
 entities need to be transferred over the wire for GWT's consumption:
 entities that have been instrumented with persistence information will
 fail at the client side, as GWT cannot handle these objects.

 So I've done some research and I've come across two common solutions
 to this problem:

 1) Using a framework called Gilead;
 2) Replicating the domain model hierarchy with a second class
 hierarchy used exclusively for data transfer (aka Data Transfer
 Objects representing the persistent domain objects).

 None of these solutions are good in my current situation:

 1) Gilead intrudes into the design of an application by forcing the
 entities to inherit from “LightEntity” and forcing
 RemoteServiceServlet descendants to extend “PersistentRemoteService”.
 Our design cannot allow this, as both of these type of objects already
 inherit from a different hierarchy.
 2) Our domain model is composed of 30 classes, some of which have
 quite a few getters/setters. Replicating this domain model sounds like
 trip to maintenance nightmare street, not to mention the amount of
 extra code that we'll need to map things back-and-forth.

 So even though I know (from experience) that Hibernate will make me a
 lot more productive accessing the database than the alternative (ie
 hand-coding with JDBC), all this productivity goes down the drain if I
 now have to deal with recreating the objects in order to properly talk
 to the client layer.

 So now my question is, can I get away with the following:

 1) make every single persistent entity to always load everything
 eagerly by default (ie lazy=”false”) and make lazy loading the
 exception to the rule (ie when fetching lists of things);
 2) use a stateless Session-per-request approach, so that every time I
 need something from the db a brand new persistence context is
 initialized.

 I understand that I'll be giving up caching and hence, taking a
 performance hit, what I'd like to know is, how bad is this hit? is
 this an acceptable compromise in my case? Is this approach still
 better than going back to manual JDBC days?

 Please advise if this is a horrible approach and if there is something
 I should know before I put a rope around my neck.

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



Linux 64bits package?

2009-08-17 Thread Luigi R. Viggiano

Hi.

I am using Linux 64-Bit (Ubuntu 9.04) with the provided JDK 6 from Sun.

Is it planned a 64-Bit distro for GWT? Or, as alternative, is GWT 1.7
Out-of-process-hosted-mode ready?

The reason why I am asking, ist that with this configuration, the -d32
option in JDK is not working, I think it's an Ubuntu package bug, and
this leads to problems; for example,
using hosted mode with maven.

P.S. I already found this :
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/1b179436b29804ac/f2ce63af5a3870e9?lnk=gstq=64+bit#f2ce63af5a3870e9
But I am writing to say that ia32-sun-java6-bin doesn't solve all the
problems: when you have to compile+run, the 32 bit JRE is not enough

Thanks. Have a nice day.
--Luigi

Luigi R. Viggiano
Web/Blog: http://www.newinstance.it
Skype: luigi.viggiano
My Professional Profile: http://www.linkedin.com/in/viggiano

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



Re: GWT - JFreeChart Dependency in Terms Conditions

2009-08-17 Thread Dan Robinson

Anyone, Bueller, Bueller...

On Aug 13, 9:04 am, Danny Robinson dannyjrobin...@gmail.com wrote:
 Please can someone explain whyJFreeChartis listed as a 3rd party
 library for GWT in GWT's Terms  Conditions page.  Specifically, I
 need to understand if this is present as a dependency for development
 (like Jetty), or theJFreeChartstuff actually is present somehow in
 the javascript/compiled output - if so, is it only necessary for
 certain components.

 Many thanks - just trying to track down all the runtime license
 dependencies for our external software.

 Regards,

 D.

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



Re: How to determine pixel size of Label widget at run time?

2009-08-17 Thread Mike Jacobs

Once I added the label to the intended container (the map pane in the
Google map API), the width was calculated correctly.  Since I cannot
move the widget once it has been added, I add it to get the dimensions
and then remove it before adding it where it belongs.

Thanks for the help.

Mike

On Aug 17, 7:27 am, Mike Jacobs mike.jac...@indietechnologies.com
wrote:
 The label offset width is zero prior to adding to the root panel and
 unusually large after adding it.  The width is supposedly 761 for a
 string of ~~testing~~.  I will experiment with this a bit more but
 this width seems like it might be the width of the root panel at the
 time.

 On Aug 16, 7:15 pm, Ian Bambury ianbamb...@gmail.com wrote:

          Label label = new Label(Some Text));
          RootPanel.get().add(label);
          int length = label.getOffsetWidth();

  Ian

 http://examples.roughian.com

  2009/8/16 Mike Jacobs mike.jac...@indietechnologies.com

   There is no method to get the width on the Label widget or any of the
   super classes.  How would I get the width?

   On Aug 16, 5:19 pm, Ian Bambury ianbamb...@gmail.com wrote:
Just add it, get the width and then place it where you want it.
Ian

   http://examples.roughian.com

2009/8/16 Mike Jacobs mike.jac...@indietechnologies.com

 I have a case where I am dynamically adding a Label widget with
 program determined label text.  (It is adding a Label on top of a
 Google Map but this question is about GWT widgets).  Since the label
 text can vary at run time and I would like to center the label at a
 specific pixel location, I need to figure out the pixel size of the
 label to position it properly.

 I can specify a pixel width and height when creating the Label.  Is it
 possible to determine the appropriate size of the Label based on the
 label text length?  Is is possible to ask the label for it's pixel
 size afterward instead?

 I have been using a simple approach of using width = text length * 11
 (since the font is 11px) but that appears to be off by a few pixels
 presumably due to varying width of characters.

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



Re: formating ListBox text

2009-08-17 Thread BobM

ListBox has methods allowing me to set and get the selected index.  I
cannot find any similar facilities in HTMLTable.  Am I overlooking
something?

Can I use HTML to generate a non-breaking space to append to a String
to put into the ListBox to force formatting of the string?  Maybe I
will try that later today.

For now ListBox still looks to be the cleanest tool for my needs - IF
I can get the text properly formatted.

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



Re: How to determine pixel size of Label widget at run time?

2009-08-17 Thread Mike Jacobs

The label offset width is zero prior to adding to the root panel and
unusually large after adding it.  The width is supposedly 761 for a
string of ~~testing~~.  I will experiment with this a bit more but
this width seems like it might be the width of the root panel at the
time.

On Aug 16, 7:15 pm, Ian Bambury ianbamb...@gmail.com wrote:
         Label label = new Label(Some Text));
         RootPanel.get().add(label);
         int length = label.getOffsetWidth();

 Ian

 http://examples.roughian.com

 2009/8/16 Mike Jacobs mike.jac...@indietechnologies.com



  There is no method to get the width on the Label widget or any of the
  super classes.  How would I get the width?

  On Aug 16, 5:19 pm, Ian Bambury ianbamb...@gmail.com wrote:
   Just add it, get the width and then place it where you want it.
   Ian

  http://examples.roughian.com

   2009/8/16 Mike Jacobs mike.jac...@indietechnologies.com

I have a case where I am dynamically adding a Label widget with
program determined label text.  (It is adding a Label on top of a
Google Map but this question is about GWT widgets).  Since the label
text can vary at run time and I would like to center the label at a
specific pixel location, I need to figure out the pixel size of the
label to position it properly.

I can specify a pixel width and height when creating the Label.  Is it
possible to determine the appropriate size of the Label based on the
label text length?  Is is possible to ask the label for it's pixel
size afterward instead?

I have been using a simple approach of using width = text length * 11
(since the font is 11px) but that appears to be off by a few pixels
presumably due to varying width of characters.

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



Re: Where is the server log ?

2009-08-17 Thread tolga ozdemir

this thread seems the same.. But I cannot reach the solution yet.. I
receive this error.. I cannot retrieve a List of my object via RPC
service

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/8744f69c06e7241d


::: HERE IS MY OBJECT :::

package net.tolgaozdemir.gwt.client.domain;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.google.gwt.user.client.rpc.IsSerializable;
import net.sf.gilead.pojo.java5.LightEntity;

public class Entry extends LightEntity implements IsSerializable{

/**
 *
 */
private static final long serialVersionUID = -4123250238413358095L;

private Integer ID;
private String entry;

// Properties
/**
 * @return the id
 */
public final Integer getId() {
return ID;
}
/**
 * @param id the id to set
 */
public final void setId(Integer id) {
this.ID = id;
}

public String getEntry(){
return entry;
}

public void setEntry(String entry){
this.entry = entry;
}

public Entry(){

}

}

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



Re: question from a novice in GWT

2009-08-17 Thread Chad

Well, you could still use the method I outlined by using a Frame
(iFrame) and load your site in it. So, you would have a GWT shell.

HTH,
Chad

On Aug 17, 12:42 am, nyankov nikola.yan...@gmail.com wrote:
 Well my page is regular HTML page, and till now doesn't use GWT.

 Now I want to place a toolbar in it which I want to write with GWT.

 On 16 Авг, 22:40, Chad chad...@gmail.com wrote:



  Well, you could use a VerticalPanel added to the RootPanel. Put a
  ScrollPanel into the VerticalPanel, then put your toolbar into the
  VerticalPanel. Allow the VerticalPanel to take up the full size of the
  browser and adjust itself on browser resizing. Set the toolbar to the
  height you need and set the ScrollPanel to take up the rest of the
  space. Put the rest of your application in the ScrollPanel. This way,
  your toolbar wouldn't move when scrolling the application. You could
  also turn off the browser scroll bars if you needed to just to make
  sure they never appear as you'd never want them to appear.

  HTH,
  Chad

  On Aug 16, 11:40 am, nyankov nikola.yan...@gmail.com wrote:

   sure.

   position: fixed

   but this doesn't work well enough

   I red about frame (iframe) simulation somehow.

   I looked and in gmail (there opened chat popup is fixed to window
   bottom right).

   I saw that there are several iframes - but I didn't investigate in
   depth.

   On Aug 16, 7:15 pm, tolga ozdemir tka...@gmail.com wrote:

Hmm, maybe you think this before.. Have you ever tried CSS?

On Aug 16, 3:58 pm, nyankov nikola.yan...@gmail.com wrote:

 With other words I want to do workaround of position: fixed

 On Aug 15, 11:01 pm, nyankov nikola.yan...@gmail.com wrote:

  Hello,

  I am wondering. What is the way to implement toolbar in browser
  window. I want the toolbar to be fixed on window bottom always (even
  on scrolling and resize). Also I want the toolbar to be just a 
  widget.

  Here what I already did, but on scrolling the panal flickering

  package com.mycompany.project.client;

  import com.google.gwt.core.client.EntryPoint;
  import com.google.gwt.event.logical.shared.ResizeEvent;
  import com.google.gwt.event.logical.shared.ResizeHandler;
  import com.google.gwt.user.client.DOM;
  import com.google.gwt.user.client.Window;
  import com.google.gwt.user.client.Window.ScrollEvent;
  import com.google.gwt.user.client.Window.ScrollHandler;
  import com.google.gwt.user.client.ui.RootPanel;
  import com.google.gwt.user.client.ui.Button;
  import com.google.gwt.user.client.ui.AbsolutePanel;

  public class GwtTest implements EntryPoint {
          public void onModuleLoad() {
                  RootPanel rootPanel = RootPanel.get();
                  final AbsolutePanel absolutePanel = new 
  AbsolutePanel();
                  rootPanel.add(absolutePanel, 0, 244);
                  absolutePanel.setSize(100%, 51px);
                  Button button1 = new Button(New button);
                  Button button2 = new Button(New button);
                  Button button3 = new Button(New button);
                  absolutePanel.add(button1);
                  absolutePanel.add(button2);
                  absolutePanel.add(button3);

                  com.google.gwt.user.client.Element h = 
  absolutePanel.getElement();
                  DOM.setStyleAttribute(h, top, 
  (Window.getClientHeight()-51)+px);

                  Window.addWindowScrollHandler(new ScrollHandler() {
                          @Override
                          public void onWindowScroll(ScrollEvent 
  event) {
                                  com.google.gwt.user.client.Element 
  h = absolutePanel.getElement();
                                  DOM.setStyleAttribute(h, top, 
  (Window.getClientHeight()
  +event.getScrollTop()-51)+px);
                          }
                  });

                  Window.addResizeHandler(new ResizeHandler() {
                          @Override
                          public void onResize(ResizeEvent event) {
                                  com.google.gwt.user.client.Element 
  h = absolutePanel.getElement();
                                  DOM.setStyleAttribute(h, top, 
  (event.getHeight()-51)+px);
                          }
                  });
          }

  }

  Thank you in advance- Hide quoted text -

- Show quoted text -- Скриване на цитирания текст -

  - Показване на цитирания текст -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit 

Re: How to determine pixel size of Label widget at run time?

2009-08-17 Thread Ian Bambury
Unless you set the label to display:block it will expand to the width of its
container (it is actually a div). With display:block it will just be as wide
as it needs.
Why can't you move it once it is added?

Ian

http://examples.roughian.com


2009/8/17 Mike Jacobs mike.jac...@indietechnologies.com


 Once I added the label to the intended container (the map pane in the
 Google map API), the width was calculated correctly.  Since I cannot
 move the widget once it has been added, I add it to get the dimensions
 and then remove it before adding it where it belongs.

 Thanks for the help.

 Mike

 On Aug 17, 7:27 am, Mike Jacobs mike.jac...@indietechnologies.com
 wrote:
  The label offset width is zero prior to adding to the root panel and
  unusually large after adding it.  The width is supposedly 761 for a
  string of ~~testing~~.  I will experiment with this a bit more but
  this width seems like it might be the width of the root panel at the
  time.
 
  On Aug 16, 7:15 pm, Ian Bambury ianbamb...@gmail.com wrote:
 
   Label label = new Label(Some Text));
   RootPanel.get().add(label);
   int length = label.getOffsetWidth();
 
   Ian
 
  http://examples.roughian.com
 
   2009/8/16 Mike Jacobs mike.jac...@indietechnologies.com
 
There is no method to get the width on the Label widget or any of the
super classes.  How would I get the width?
 
On Aug 16, 5:19 pm, Ian Bambury ianbamb...@gmail.com wrote:
 Just add it, get the width and then place it where you want it.
 Ian
 
http://examples.roughian.com
 
 2009/8/16 Mike Jacobs mike.jac...@indietechnologies.com
 
  I have a case where I am dynamically adding a Label widget with
  program determined label text.  (It is adding a Label on top of a
  Google Map but this question is about GWT widgets).  Since the
 label
  text can vary at run time and I would like to center the label at
 a
  specific pixel location, I need to figure out the pixel size of
 the
  label to position it properly.
 
  I can specify a pixel width and height when creating the Label.
  Is it
  possible to determine the appropriate size of the Label based on
 the
  label text length?  Is is possible to ask the label for it's
 pixel
  size afterward instead?
 
  I have been using a simple approach of using width = text length
 * 11
  (since the font is 11px) but that appears to be off by a few
 pixels
  presumably due to varying width of characters.
 
  Thanks,
  Mike
 


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



O3DJS Modules and JSNI

2009-08-17 Thread CI-CUBE

Hi,

I'm facing a problem when using O3DJS module 'namespaces' within JSNI
assignments:

That's what works:

$wnd.x4_view_loadAppCB =
@com.egr.x4gpl.apps.saturn.client.Application::_viewLoadCB();

That's what I wanna have (using the O3DJS module id's):

$wnd.x4.view.loadAppCB =
@com.egr.x4gpl.apps.saturn.client.Application::_viewLoadCB();

There's no error message I could provide...

TIA,

   Ekki

GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13

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



Re: formating ListBox text

2009-08-17 Thread BobM

Hm ... The data, name and location, are two fields of a database
row.  I retrieve several (related) at a time from the database and put
the two key fields into the ListBox and then select which one I want
to use thereby selecting the rest of the fields from the database
record to display in other TextBoxes on the page.  ListBox seems just
the right thing for that.  However, if I can select from a table and
use the index (row number) from the selection to pick off (out of an
array) the record containing the other fields to display that would
certainly work.

I will look into that.

Thanks.

On Aug 17, 3:44 am, mars1412 martin.trum...@24act.at wrote:
 why don't you use a table or the 
 like?http://code.google.com/intl/de-DE/docreader/#p=google-web-toolkit-doc...


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



Re: Where is the server log ?

2009-08-17 Thread Trevis

This isnt a direct answer to your question but i think that this is
the root of what is going wrong. Class instances that you send to the
client have to play by the rules of GWT.  The class cant have imports
that are not available on the javascript runtime code.

import javax.persistence.Entity;
import javax.persistence.Table;

those classes are almost certainly not in the limited environment.

Trevis




On Aug 17, 8:21 am, tolga ozdemir tka...@gmail.com wrote:
 this thread seems the same.. But I cannot reach the solution yet.. I
 receive this error.. I cannot retrieve a List of my object via RPC
 service

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

 ::: HERE IS MY OBJECT :::

 package net.tolgaozdemir.gwt.client.domain;

 import javax.persistence.Entity;
 import javax.persistence.Table;

 import com.google.gwt.user.client.rpc.IsSerializable;
 import net.sf.gilead.pojo.java5.LightEntity;

 public class Entry extends LightEntity implements IsSerializable{

         /**
          *
          */
         private static final long serialVersionUID = -4123250238413358095L;

         private Integer ID;
         private String entry;

         // Properties
         /**
          * @return the id
          */
         public final Integer getId() {
                 return ID;
         }
         /**
          * @param id the id to set
          */
         public final void setId(Integer id) {
                 this.ID = id;
         }

         public String getEntry(){
                 return entry;
         }

         public void setEntry(String entry){
                 this.entry = entry;
         }

         public Entry(){

         }

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



Re: Minimal plugin for existing Maven projects

2009-08-17 Thread Miguel Méndez
It is really strange that updating dependencies never completed.  Were there
any exceptions in the eclipse log?

On Sun, Aug 16, 2009 at 5:46 PM, Gary S agilej...@earthlink.net wrote:


 I tried Google plugin on my multi-module Maven project that already
 supports GWT. It has a war in one of the modules. I enabled GWT plugin
 for the root project and set the SDK to the existing GWT 1.6.4.

 There were no errors but Eclipse takes forever to update Dependencies
 and I couldn't create a RemoteService interface, a Waiting for
 background operation to complete dialog stayed up every time I tried
 until I canceled.

 All I need from the plugin, on this project, is to create Async
 service interfaces from service interfaces and keep them in sync and,
 also, error check jsni. It would be great If I had that option.
 



-- 
Miguel

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



Re: Where is the server log ?

2009-08-17 Thread Daniel Jue
While searching for something else, I saw some gwt directories in the Local
Settings\Temp dir, which had some log files in them.

C:\Documents and Settings\MyName\Local
Settings\Temp\gwtc2884477077954149866.tmp\myModuleName\shell\gen

These look like logs for the RPCs.

On Mon, Aug 17, 2009 at 9:47 AM, Trevis trevistho...@gmail.com wrote:


 This isnt a direct answer to your question but i think that this is
 the root of what is going wrong. Class instances that you send to the
 client have to play by the rules of GWT.  The class cant have imports
 that are not available on the javascript runtime code.

 import javax.persistence.Entity;
 import javax.persistence.Table;

 those classes are almost certainly not in the limited environment.

 Trevis




 On Aug 17, 8:21 am, tolga ozdemir tka...@gmail.com wrote:
  this thread seems the same.. But I cannot reach the solution yet.. I
  receive this error.. I cannot retrieve a List of my object via RPC
  service
 
  http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
 
  ::: HERE IS MY OBJECT :::
 
  package net.tolgaozdemir.gwt.client.domain;
 
  import javax.persistence.Entity;
  import javax.persistence.Table;
 
  import com.google.gwt.user.client.rpc.IsSerializable;
  import net.sf.gilead.pojo.java5.LightEntity;
 
  public class Entry extends LightEntity implements IsSerializable{
 
  /**
   *
   */
  private static final long serialVersionUID =
 -4123250238413358095L;
 
  private Integer ID;
  private String entry;
 
  // Properties
  /**
   * @return the id
   */
  public final Integer getId() {
  return ID;
  }
  /**
   * @param id the id to set
   */
  public final void setId(Integer id) {
  this.ID = id;
  }
 
  public String getEntry(){
  return entry;
  }
 
  public void setEntry(String entry){
  this.entry = entry;
  }
 
  public Entry(){
 
  }
 
  }
 


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



Multiple Projects in Eclipse Sharing RPCs

2009-08-17 Thread jhnclvr

Hello everyone,


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



Re: formating ListBox text

2009-08-17 Thread BobM

No, appending HTML nbsp to a string doesn't work to solve my
problem.  However, I have found if I append a period and a space (sort
of as a single character) each space is retained because of the
protecting period, I can get close enough for my purposes.

If I could now set the font to a monospced font like Courier, I would
be home free, I think; but that seems not to be possible at present.

I feel like I have solved my problem, for now.  (Kind of sloppy, but
it works.)  Thank you.

On Aug 17, 7:57 am, BobM bmar...@bcscomputers.com wrote:
 Can I use HTML to generate a non-breaking space to append to a String
 to put into the ListBox to force formatting of the string?  Maybe I
 will try that later today.

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



Re: Where is the server log ?

2009-08-17 Thread tolga ozdemir

Daniel thanks a lot.. we have found log file folder! :)


here is my log file guys.. I will look but if u understand something..
pls let me know

Reachable types computed on: Sat Aug 15 16:27:38 EEST 2009
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
   Serialization status
  Instantiable
   Path
 
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is
reachable as a subtype of type 'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
  Started from
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'

java.lang.Exception
   Serialization status
  Field serializable
   Path
  'java.lang.Exception' is reachable as a supertype of type 'class
java.lang.RuntimeException'
  'java.lang.RuntimeException' is reachable as a supertype of type
'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
 
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is
reachable as a subtype of type 'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
  Started from
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'

java.lang.RuntimeException
   Serialization status
  Field serializable
   Path
  'java.lang.RuntimeException' is reachable as a supertype of type
'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
 
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is
reachable as a subtype of type 'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
  Started from
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'

java.lang.String
   Serialization status
  Instantiable
   Path
  'java.lang.String' is reachable as a subtype of type 'class
java.lang.String'
  Started from 'java.lang.String'

java.lang.Throwable
   Serialization status
  Field serializable
   Path
  'java.lang.Throwable' is reachable as a supertype of type 'class
java.lang.Exception'
  'java.lang.Exception' is reachable as a supertype of type 'class
java.lang.RuntimeException'
  'java.lang.RuntimeException' is reachable as a supertype of type
'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
 
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is
reachable as a subtype of type 'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
  Started from
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'

java.util.ArrayListnet.tolgaozdemir.gwt.client.domain.Entry
   Serialization status
  Instantiable
   Path
  'java.util.ArrayListnet.tolgaozdemir.gwt.client.domain.Entry'
is reachable as a subtype of type 'class
java.util.ArrayListnet.tolgaozdemir.gwt.client.domain.Entry'
  Started from
'java.util.ArrayListnet.tolgaozdemir.gwt.client.domain.Entry'

java.util.HashMapjava.lang.String, java.lang.String
   Serialization status
  Instantiable
   Path
  'java.util.HashMapjava.lang.String, java.lang.String' is
reachable as a subtype of type 'interface
java.util.Mapjava.lang.String, java.lang.String'
  'java.util.Mapjava.lang.String, java.lang.String' is reachable
from field '_proxyInformations' of type
'net.sf.gilead.pojo.java5.LightEntity'
  'net.sf.gilead.pojo.java5.LightEntity' is reachable as a
supertype of type 'class net.tolgaozdemir.gwt.client.domain.Entry'
  'net.tolgaozdemir.gwt.client.domain.Entry' is reachable as a
subtype of type 'class net.tolgaozdemir.gwt.client.domain.Entry'
  Started from 'net.tolgaozdemir.gwt.client.domain.Entry'

java.util.IdentityHashMapjava.lang.String, java.lang.String
   Serialization status
  Instantiable
   Path
  'java.util.IdentityHashMapjava.lang.String, java.lang.String'
is reachable as a subtype of type 'interface
java.util.Mapjava.lang.String, java.lang.String'
  'java.util.Mapjava.lang.String, java.lang.String' is reachable
from field '_proxyInformations' of type
'net.sf.gilead.pojo.java5.LightEntity'
  'net.sf.gilead.pojo.java5.LightEntity' is reachable as a
supertype of type 'class net.tolgaozdemir.gwt.client.domain.Entry'
  'net.tolgaozdemir.gwt.client.domain.Entry' is reachable as a
subtype of type 'class net.tolgaozdemir.gwt.client.domain.Entry'
  Started from 'net.tolgaozdemir.gwt.client.domain.Entry'

java.util.LinkedHashMapjava.lang.String, java.lang.String
   Serialization status
  Instantiable
   Path
  'java.util.LinkedHashMapjava.lang.String, java.lang.String' is
reachable as a subtype of type 'interface
java.util.Mapjava.lang.String, java.lang.String'
  'java.util.Mapjava.lang.String, java.lang.String' is reachable
from field '_proxyInformations' of type
'net.sf.gilead.pojo.java5.LightEntity'
  'net.sf.gilead.pojo.java5.LightEntity' is reachable as a
supertype of type 'class net.tolgaozdemir.gwt.client.domain.Entry'
  'net.tolgaozdemir.gwt.client.domain.Entry' is reachable as a

Caching on AppSpot.com?

2009-08-17 Thread CI-CUBE

Hi,

I'm running an App on AppSpot.com that is controlled by an external
XML. However the App doesn't reflect any changes of the XML. Is there
an App Engine cache I might reset? Strange thing - I modified this XML
by the end of last week and the mods were considered immediately...
does this make sense?

   Ekki

GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13

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



Re: GWT-Maps - Is this a desired behavior?

2009-08-17 Thread Eric Ayers

Hi Paul,
Take a look at this demo in JavaScript:

http://code.google.com/apis/maps/documentation/overlays.html#Custom_Overlays

The demo code is called 'CustomOverlayDemo' in the HelloMaps API demo

I think part of the problem is that your code draws into the viewport
with pixel values - you need to work with lat-lng values for things to
correctly drag around in the map.  Also, you are re-creating the divs
inside of redraw() - the should be created in initialize().

-Eric.

On Sun, Aug 16, 2009 at 4:09 PM, Paul van
Hovenpaul.van.ho...@googlemail.com wrote:

 Okay, instead of displaying the divs like a chessboard pattern i get
 this output on the map:

 http://picasaweb.google.de/paul.van.hoven/GWTMaps#5370655848831663250



 On 16 Aug., 21:35, Paul van Hoven paul.van.ho...@googlemail.com
 wrote:
 I was playing with GWT-Maps to implement something for my website. My
 example uses the com.google.gwt.maps.client.overlay.Overlay abstract
 class. I want to put a couple of transparent divs over the actual map
 which will give the user some certain information. Anyway the purpose
 is not important.

 Concretly spoken: I want to overlay the map with transparent divs such
 that the resulting orientation of the div is similar to a chessboard
 pattern. But somehow it does not work although I think I made
 everything correct.

 Here is the class that extends
 com.google.gwt.maps.client.overlay.Overlay and produces (imho) the
 error.

 [code]
 public class HeatMap extends SimplePanel implements ClickHandler {

         MapWidget map;
         public HeatMap() {

                 if( map == null ) {
                         LatLng germany = LatLng.newInstance(51.15, 10.5);
                         map = new MapWidget( germany, 5 );
                         map.setSize(500px, 300px);

                         DOM.setStyleAttribute( map.getElement(), border, 
 #444 solid
 1px);
                         DOM.setStyleAttribute( map.getElement(), margin, 
 auto);
                         // Add some controls for the zoom level
                         map.addControl(new LargeMapControl());
                         map.addControl(new MapTypeControl());

                 }

                 VerticalPanel vPanel = new VerticalPanel();
                 vPanel.add( map );
                 PushButton showRectsButton = new PushButton( Go!, this );
                 showRectsButton.setStyleName(StandardButton);
                 vPanel.add(showRectsButton);
                 add( vPanel );
         }

         public void onClick(ClickEvent event) {
                 map.addOverlay( new ColoredRectangle( map ) );
         }

         private class ColoredRectangle extends Overlay {

                 MapWidget map;
                 AbsolutePanel p1,p2,p3,p4;
                 public ColoredRectangle( MapWidget map ) {
                         p1 = new AbsolutePanel();
                         p2 = new AbsolutePanel();
                         p3 = new AbsolutePanel();
                         p4 = new AbsolutePanel();
                         this.map = map;
                 }

                 @Override
                 protected Overlay copy() {
                         return new ColoredRectangle( map );
                 }

                 @Override
                 protected void initialize(MapWidget map) {
                         p1.add( new Label(1) );
                         map.getPane( MapPaneType.MAP_PANE).add(p1);
                         p2.add( new Label(2) );
                         map.getPane( MapPaneType.MAP_PANE).add(p2);
                         p3.add( new Label(3) );
                         map.getPane( MapPaneType.MAP_PANE).add(p3);
                         p4.add( new Label(4) );
                         map.getPane( MapPaneType.MAP_PANE).add(p4);
                 }

                 @Override
                 protected void redraw(boolean force) {
                         if( !force )
                                 return;

                         //p1 is placed at the top leftern side
                         DOM.setStyleAttribute( p1.getElement(), 
 backgroundColor, grey);
                         DOM.setStyleAttribute( p1.getElement(), width, 
 250+px );
                         DOM.setStyleAttribute( p1.getElement(), height, 
 150+px );
                         int left = 0;
                         int top = 0;
                         DOM.setStyleAttribute( p1.getElement(), left, 
 left+px );
                         DOM.setStyleAttribute( p1.getElement(), top, 
 top+px );

                         //p2 is placed right beside of p2
                         DOM.setStyleAttribute( p2.getElement(), 
 backgroundColor,
 orange);
                         DOM.setStyleAttribute( p2.getElement(), width, 
 250+px );
                         DOM.setStyleAttribute( p2.getElement(), height, 
 150+px );
                         left = 250;
                         top = 0;
                         

Re: JSNI Issue

2009-08-17 Thread CI-CUBE

My workaround is to use static methods (1 for each Callback) in the
base class that redirect the request to virtual members of a static
member object. This introduces some overhead but works... anyway is
there some advice how to use a true member method in an assignment to
a JS callback?

TIA,

   Ekki

GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13

CI-CUBE.BIZ feat. CubeBrowser.AppSpot.com


On Aug 13, 4:39 pm, CI-CUBE e...@ci-cube.info wrote:
 sorry, but same result

 On Aug 13, 4:36 pm, olivier nouguier olivier.nougu...@gmail.com
 wrote:

  Hi,
   I cannot test from here but could you try to replace (call and function
  definiotion of course ;) :

   initializeCBs();

  by:

   initializeCBs(this);

  HIH

  On Thu, Aug 13, 2009 at 4:30 PM, CI-CUBE e...@ci-cube.info wrote:

   Hi,

   I'm assigning a Java method M to a JS Callback. If M is static it
   works. If M is non-static I get an error when calling the M via JS.

   // THE BASE CLASS

   package com.egr.x4gpl.apps.saturn.client;

   abstract class Application {
          protected Application(String pUnused) {
                  initializeCBs();
          }

          protected native void initializeCBs() /*-{
                  $wnd.x4ResizeAppCB =
   th...@com.egr.x4gpl.apps.saturn.client.application::resizeCB();
                  $wnd.x4ResizeAppCB();
          }-*/;

          abstract public void resizeCB();
   }

   // THE DERIVED CLASS

   public class Saturn extends Application implements EntryPoint {
          Saturn() {
                  super(Unused);
          }

          public native void resizeCB() /*-{
                  $wnd.alert(non-static invoke);
          }-*/;

   // THE ERROR (on calling, not on assingment)

   [ERROR] Failed to create an instance of
   'com.egr.x4gpl.apps.saturn.client.Saturn' via deferred binding
   com.google.gwt.core.client.JavaScriptException: (RangeError): Instance
   method 'resizeCB' needed a qualifying instance (did you forget to
   prefix the call with 'this.'?)
    number: -2146828279
    description: Instance method 'resizeCB' needed a qualifying instance
   (did you forget to prefix the call with 'this.'?)
          at 
   com.egr.x4gpl.apps.saturn.client.Application.initializeCBs(Native
   Method)
          at com.egr.x4gpl.apps.saturn.client.Application.init
   (Application.java:5)
          at com.egr.x4gpl.apps.saturn.client.Saturn.init(Saturn.java:19)

   TIA for any kinda support!

     Ekki

  --
  A coward is incapable of exhibiting love; it is the prerogative of the
  brave.
  --
  Mohandas Gandhi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



remove all margin/border of FlexTable

2009-08-17 Thread Tobe

Hi,
I have a FlexTable with some rows and used setStyleName() to set a
background-color from a CSS file. I also set margin and border to 0 in
the CSS file for all elements, but still have something like margins
around the rows of the FlexTabel where I see the background-color of
the other elements where the FlexTable is located in.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: JSNI Issue

2009-08-17 Thread Thomas Broyer



On 17 août, 16:31, CI-CUBE e...@ci-cube.info wrote:
 My workaround is to use static methods (1 for each Callback) in the
 base class that redirect the request to virtual members of a static
 member object. This introduces some overhead but works... anyway is
 there some advice how to use a true member method in an assignment to
 a JS callback?

       protected native void initializeCBs() /*-{
var that = this;
            $wnd.x4ResizeAppCB = function() {
 
th...@com.egr.x4gpl.apps.saturn.client.application.resizecb()();
};

       }-*/;

It's basically the same as what you described above, without the need
for Java statics.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: At new item to a list at each position

2009-08-17 Thread Tobe

I notices, that there is still something going wrong. I colored the
boxes to see if the inner boxes are really located in the outer ones,
but it's not working. I think the problem is, that I get tableOuter
and not tableInner by calling the following lines in addInner():
Cell cellForEvent = tableOuter.getCellForEvent(event);
tableInner = (FlexTable) tableOuter.getWidget(cellForEvent.getRowIndex
(), 0).getParent();

On Aug 15, 11:42 am, Tobe tobias.jungnic...@googlemail.com wrote:
 Thanks Ian, now, it works
 I used this snippet of code in addInner() to get the corresponding
 inner FlexTable:

 Cell cellForEvent = tableOuter.getCellForEvent(event);
 tableInner = (FlexTable) tableOuter.getWidget(cellForEvent.getRowIndex
 (), 0).getParent();

 On Aug 14, 8:45 pm, Ian Bambury ianbamb...@gmail.com wrote:



  Presumably you know where they are, so you can do something like:

  FlexTable levelTwoFlexTable = (FlexTable) levelOneFlexTable.getWidget(row,
  column);

  BTW, though I'm not sure why you are getting your exceptions, here''s a way
  to add rows anywhere - you'd need two versions - one for adding a level-2
  flextable to a level-1 flextable, and another to deal with adding rows to
  your level-2 flextable. And you'd probably be better off with labels styled
  as links rather than buttons...

  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.FlexTable;
  import com.google.gwt.user.client.ui.Label;

  public class AddRowButton extends Button implements ClickHandler
  {
      private static int c = 0;

      public AddRowButton()
      {
          super(Add Row Here);
          addClickHandler(this);
      }

      @Override
      public void onClick(ClickEvent event)
      {
          Button b = (Button) event.getSource();
          FlexTable f = (FlexTable) b.getParent();
          int r = f.getCellForEvent(event).getRowIndex();
          f.insertRow(r);
          f.setWidget(r, 0, new AddRowButton());
          f.insertRow(r + 1);
          // Change the next line so it adds a level-2 flextable
          f.setWidget(r + 1, 0, new Label(Level 2 Flextable  + ++c + 
  here));
      }

  }

  If you want to try it, then all you need is the following in your
  onModuleLoad()

          FlexTable f = new FlexTable();
          f.setWidget(0, 0, new AddRowButton());
          RootPanel.get().add(f);

  Ian

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



Re: remove all margin/border of FlexTable

2009-08-17 Thread Jason Essington

have you tried
border-collapse: collapse;
in your css?

-jason
On Aug 17, 2009, at 8:41 AM, Tobe wrote:


 Hi,
 I have a FlexTable with some rows and used setStyleName() to set a
 background-color from a CSS file. I also set margin and border to 0 in
 the CSS file for all elements, but still have something like margins
 around the rows of the FlexTabel where I see the background-color of
 the other elements where the FlexTable is located in.
 


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



Re: how to deploy a GWT Application online?

2009-08-17 Thread Jason Parekh
Hey Sam,
As Lal explains below, creating the war file and deploying it into Tomcat
(or another app server) should be enough.

Could you explain how you tried to deploy it online?  How did you package it
all, where did you deploy to, etc.?

Have you tried any other apps on your server that are able to access the
database?

jason

On Mon, Aug 17, 2009 at 1:00 AM, sam sabir...@gmail.com wrote:


 I have been working on my summer GWT Application Project. Finally, I
 have created an application using eclipse. It has uses RPC, and I use
 JDBC MYSQL to access database.

 My application is almost complete; it runs fine in hosted mode and
 accesses database.

 But, today I tried to deploy it online. I could not get my client and
 server side to interact, let alone accessing database.

 Can anyone help me figure out how to deploy GWT application online?
 How do I get my client and server side to interact when deployed.
 Isn't posting the content under 'war' enough?


 Thanks,
 sam

 


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



Re: Is there a way so I can use ProjectRun AsRun on Server functionality while using the new GWT eclipse plugin?

2009-08-17 Thread Jason Parekh
Hi jmpeace,
Could you explain your use case a bit more (so in the future, we can better
support it.)

My understanding is you'd like to do infrequent GWT compiles and package
this into a WAR and run it on a server.  Is the server GWT's jetty instance
or your own app server?

You may be able to use Keith's instructions from
http://groups.google.com/group/Google-Web-Toolkit/msg/9ce13140f71e2100 if
you want to run this on your own app server.

Thanks,
jason


On Fri, Aug 14, 2009 at 4:14 PM, jmpeace jmpe...@gmail.com wrote:


 I've been using Cypal Studio so far, as it provides this
 functionality.  Is there a way to do that with the new plug in?  How
 could I launch the project in web mode without compiling every time?

 I have this situation since the client side of my app is almost
 finished and I don't really need to transcode it very often.

 Any suggestion would be greatly appreciated.
 


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



Re: Multiple Projects in Eclipse Sharing RPCs

2009-08-17 Thread Jason Parekh
Hey jhnclvr,
FYI, your message was truncated =)

On Mon, Aug 17, 2009 at 10:03 AM, jhnclvr jhnc...@gmail.com wrote:


 Hello everyone,


 


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



Re: remove all margin/border of FlexTable

2009-08-17 Thread Tobe

Now it looks better, but now I think my problem is not a CSS one

On Aug 17, 5:12 pm, Jason Essington jason.essing...@gmail.com wrote:
 have you tried
         border-collapse: collapse;
 in your css?

 -jason
 On Aug 17, 2009, at 8:41 AM, Tobe wrote:





  Hi,
  I have a FlexTable with some rows and used setStyleName() to set a
  background-color from a CSS file. I also set margin and border to 0 in
  the CSS file for all elements, but still have something like margins
  around the rows of the FlexTabel where I see the background-color of
  the other elements where the FlexTable is located in.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



TabBar design

2009-08-17 Thread MamboJumbo

I was recently trying to understand how the beautiful tabbar with
rounded corners is implemented in http://code.google.com/p/google-web-toolkit/.
DecoratedTabPanel is rounding corners for the tab bar but not for the
buttom panel. Can anyone point how to make bottom panel top corners
rounded like at the above mentioned website?
Thank you.

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



Android (1.5) Browser displays empty page

2009-08-17 Thread Michael Wiedmann

Our GWT 1.7.0 works quite fine in standard desktop browsers like FF,
IE, etc. Problems occur if I try to use Androids built in webkit
browser (both using the Android SDK emulator and a real hardware
device).

The log (spam level) in hosted mode shows that a bunch of CSS and JS
files being requested and successfully delivered. The last request I
see in the log looks like:

200 - POST /OML/SessionService (...) 14 bytes

The Android browser does not display anything (page remains blank), a
standard browser displays a login page at this point.

Any hints howto resolve this problem would be highly appreciated!

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



IE 7 'undefined' is null or not an object

2009-08-17 Thread cyberia

In IE 7, I am getting the 'undefined' is null or not an object
error. I have googled and searched for answers, but nothing has come
through yet. I am wondering if anybody else could point me to a place
to search first. I am using GWT 1.7 and app engine 1.2.2

Thanks

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



Lazy component

2009-08-17 Thread André Bertuzzi

Hi everybody

Im trying to get a textfield using a gwt-ext but when I get the text
field of the FieldSet through the command: TextField host =
(TextField) rpcfield.getComponent(0); the component is lazy. I dont
know how I can render this component before called after.

Thanks

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



Re: How to split a large application?

2009-08-17 Thread Vivian Steller

Hello David,
hey folks,

we figure exactly the scenario you describe here with our application.
It's similar to a portal based application as you describe it.

Basically, what we struggle with: Say we compile the main application
with some portlets pre-installed resulting in a single JS file. We
also provide additional modules/portlets that the user might want to
install. These modules, however, have a completely different lifecycle
than the rest of the portal. Now, if we'd compile the additional
portlets one by one, wouldn't that result in a whole bunch of
duplicated JS code e.g. for JRE emulated classes? Next, the JS code is
of course obfuscated so the names of our Java types vary from
compilation to compilation. If I'd compile each module separately it
wouldn't find any existing class from the portal application. Even
worse, I thought it would just duplicate the portal applications
classes into the portlet JS code (of course, assuming we have a call
dependency to the portal application).

The only solution to this problem we currently think of is to trigger
a complete re-compilation of the app at runtime. For instance, we try
to implement a registry where each module/portlet Jar registers and
once the registry detects changes it triggers re-compilation of the
complete javascript files. We'd likely do that in a servlet context
listener or something equivalent.

Has anyone tried something similar already? Has anyone similar
problems and/or other solutions?

Thanks!

On 11 Aug., 14:41, David david.no...@gmail.com wrote:
 Nathan,

 The use case is indeed not what you think it is. In your case I could
 just deliver the main application as a widget library and build the
 final application from this jar.

 It is not possible tocompileboth the main application and child
 applications in one unit because these are developed by different
 groups/companies. The sub applications are installed separately from
 the main applications and the main application is updated separately
 from the sub applications as well.

 When you create a portal you don't always write/compileall the
 portlets that are being deployed. Per installation the version and
 type of portlets can also be different so it is just impossible to
 deliver everything as one big application. We do not host the service
 either, so the portal is delivered as an ear that will allow appserver
 admins to configure the installed applications at runtime. So we just
 don't know what applications are used and they are not even from our
 group/company.

 David



 On Tue, Aug 11, 2009 at 12:05 PM, Nathan Wellsnwwe...@gmail.com wrote:

  I agree with Ed, but don't know that I fully understand the use
  case... I'm doing a similar thing without iframes or runAsync.

  Essentially, I created a PresenterMap that extends HashMapString,
  Presenter where Presenter is an interface that has an presentIn
  (HasWidgets) method. This method does the necessary work to load the
  UI into the given panel (of course, I separate UI-specific concerns
  into view classes). What this allows me to do is generate a
  navigation pane that has no knowledge of the underlying pages and can
  be configured for whatever navigation needs a given user/admin has.

  I know I'm kind of leaving things unclear, but I don't want to go into
  too much detail without understanding your needs.

  On Aug 11, 3:22 am, Ed post2edb...@hotmail.com wrote:
  Hi All,

  Why not use the Async functionality in 2.0? (to lazy load/run the code
  for the other apps).
  See:http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting

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



Creating Reuseable Modules

2009-08-17 Thread Rodders

GWT comes with default CSS. If I create a bunch of reuseable Modules
(packaged as Jars for use by some of our other internal development
teams) with our own corporate style, the compiled application loads 2
stylesheets (the default, and company for example).

If one of our development teams uses those Modules to create a new app
and adds some CSS specific to that app the compiled application loads
3 stylesheets (default, company and application).

These stylesheets are not minified or combined, this can't be
correct as Google's own page performance tool states that HTTP
requests should be reduced and css files combinded - I must be doing
something wrong?

However, one of the GWT example apps I've seen is loading over 1Mb
data in 59 http requests and takes about 11 secs to load...

Can anyone point me at a good tutorial on how to create reuseable
modules that don't break web app performance best practices?

Thanks.
Rodders

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



Re: At new item to a list at each position

2009-08-17 Thread Tobe

Ok, the .parent() is wrong because I have to access the tableInner
inside tableOuter. The sourcecode of tableOuter is the following:

table border=0
colgroup
col
/colgroup
tbody
tr
td
div style=position: relative; overflow-x: 
hidden; overflow-y:
hidden; 
button tabindex=0 type=button 
class=gwt-Buttonadd outer/
button
/div
/td
/tr
tr
td
div style=position: relative; overflow-x: 
hidden; overflow-y:
hidden;  class=divOuter
div class=gwt-HTML
h2outer/h2
/div
table border=0 class=divInner
colgroup
col
/colgroup
tbody
tr
td
button 
tabindex=0 type=button class=gwt-Buttonadd
inner/button
/td
/tr
/tbody
/table
/div
/td
/tr
tr
td
div style=position: relative; overflow-x: 
hidden; overflow-y:
hidden; 
button tabindex=0 type=button 
class=gwt-Buttonadd outer/
button
/div
/td
/tr
/tbody
/table

, but how can I access the inner table in the first column of the
second row which has the class=divInner attribute?

On Aug 17, 5:12 pm, Tobe tobias.jungnic...@googlemail.com wrote:
 I notices, that there is still something going wrong. I colored the
 boxes to see if the inner boxes are really located in the outer ones,
 but it's not working. I think the problem is, that I get tableOuter
 and not tableInner by calling the following lines in addInner():
 Cell cellForEvent = tableOuter.getCellForEvent(event);
 tableInner = (FlexTable) tableOuter.getWidget(cellForEvent.getRowIndex
 (), 0).getParent();

 On Aug 15, 11:42 am,Tobetobias.jungnic...@googlemail.com wrote:



  Thanks Ian, now, it works
  I used this snippet of code in addInner() to get the corresponding
  inner FlexTable:

  Cell cellForEvent = tableOuter.getCellForEvent(event);
  tableInner = (FlexTable) tableOuter.getWidget(cellForEvent.getRowIndex
  (), 0).getParent();

  On Aug 14, 8:45 pm, Ian Bambury ianbamb...@gmail.com wrote:

   Presumably you know where they are, so you can do something like:

   FlexTable levelTwoFlexTable = (FlexTable) levelOneFlexTable.getWidget(row,
   column);

   BTW, though I'm not sure why you are getting your exceptions, here''s a 
   way
   to add rows anywhere - you'd need two versions - one for adding a level-2
   flextable to a level-1 flextable, and another to deal with adding rows to
   your level-2 flextable. And you'd probably be better off with labels 
   styled
   as links rather than buttons...

   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.FlexTable;
   import com.google.gwt.user.client.ui.Label;

   public class AddRowButton extends Button implements ClickHandler
   {
       private static int c = 0;

       public AddRowButton()
       {
           super(Add Row Here);
           addClickHandler(this);
       }

       @Override
       public void onClick(ClickEvent event)
       {
           Button b = (Button) event.getSource();
           FlexTable f = (FlexTable) b.getParent();
           int r = f.getCellForEvent(event).getRowIndex();
           f.insertRow(r);
           f.setWidget(r, 0, new AddRowButton());
           f.insertRow(r + 1);
           // Change the next line so it adds a level-2 flextable
           f.setWidget(r + 1, 0, new Label(Level 2 Flextable  + ++c + 
   here));
       }

   }

   If you want to try it, then all you need is the following in your
   onModuleLoad()

           FlexTable f = new FlexTable();
           f.setWidget(0, 0, new AddRowButton());
           RootPanel.get().add(f);

   Ian

  http://examples.roughian.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to 

Re: Caching on AppSpot.com?

2009-08-17 Thread CI-CUBE

hmmm... it seems the images are loaded on demand, no cache on the App
Engine side. But why is then the xml, red by the Servlet, not
reloaded? Is there a way to refresh the App on AppSpot.com - is that
needed at all?

   Ekki

GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13

CI-CUBE.BIZ feat. CubeBrowser.AppSpot.com

On Aug 17, 4:27 pm, CI-CUBE e...@ci-cube.info wrote:
 Hi,

 I'm running an App on AppSpot.com that is controlled by an external
 XML. However the App doesn't reflect any changes of the XML. Is there
 an App Engine cache I might reset? Strange thing - I modified this XML
 by the end of last week and the mods were considered immediately...
 does this make sense?

    Ekki

 GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13

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



Re: At new item to a list at each position

2009-08-17 Thread Ian Bambury
Can we try this in words, not html :-)
You have an outer table with 'Insert' buttons in the even rows (0,2,4,...)
and child tables in the first column of the odd rows (1,3,...)

To access the first child table, you use

FlexTable inner = (FlexTable)outer.getWidget(1, 0);


Ian

http://examples.roughian.com

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



Re: Who is using smartgwt?

2009-08-17 Thread ckendrick

Sorry Tercio, I can't spend more time helping you understand the
architecture here, but suffice it to say, try building the example I
suggested (drag and drop between two very large user groups that can't
be loaded in advance) and you'll see why widget-specific caches are an
absolute necessity.

Each widget is looking at a particular subset of the data available
from the model, managed by a ResultSet which serves as a projection of
the model data needed for that particular view.  You will find the
same approach in every system that handles large datasets, from Swing
to JDBC and everywhere else - it's really worth your time to
investigate this and understand it.

I'd also appreciate it if you could stop asserting things that are
just clearly false.  SmartGWT has many, many Java override points that
allow you to deeply customize behavior - not getters/setters but
fundamentals like which cells are editable (listGrid.canEditCell()),
how data is transmitted (various DataSource APIs), many aspects of how
HTML is generated (getInnerHTML, cellFormatters, many others), and of
course, countless events.   I think you have some misconceptions which
date back to right after 1.0 was released - not every override point
from SmartClient is yet available in SmartGWT, but we are getting
closer to that all the time.

On Aug 16, 8:45 pm, Tercio Filho terciofi...@gmail.com wrote:
 On Aug 16, 7:39 pm, ckendrick charles.kendr...@gmail.com wrote:

  @tercio You're still missing the key point.  Let's try again:

  It is absolutely 100% required in an enterprise application that
  different components have different caches, potentially partially
  overlapping, on the same dataset.  A simple example is an interface
  for dragging and drop users between two different groups where both
  groups are very large and cannot be loaded in their entirety.  In
  SmartGWT this is a single DataSource, and two ResultSets on that
  DataSource.  Each ResultSet loads the first batch of members of each
  group and is capable of paging in the rest as needed.

 As I said in my first post, we cannot compare SmartGWT DataSource with
 the GXT Store, as they do different jobs, DataSource in SmartGWT is
 just a Proxy, or in GXT the Loader and the Reader, that's the function
 of the DataSource in SmartGWT, retrieve data when somebody need it.



  It is not a drawback that SmartGWT has separate caches per component.
  It's the correct architecture, and is a necessity where large datasets
  are involved.

 I disagree that this is the right way to do things, I cannot accept
 the fact that the widget manages it's data cache, widget is just a
 widget, it has nothing to do with model data.

  As I mentioned previously, if the datasets involved are small, you can
  use a clientOnly DataSource, and then there is only one central
  cache.  This is the trivial case, which is the only one GXT currently
  handles.

  In either case (clientOnly or not) APIs exist in SmartGWT that allow
  fetching data directly from the DataSource without the use of a
  component - you can both call methods like DataSource.fetchData(), or
  you can directly create a ResultSet.

 Coupling problem, why should I, a data manipulator, must care about
 this?? I just need the data, that's why the GXT Store is better, you
 have a store,  a reader and a loader, layers of decoupling. One taking
 care of another...

  Once you've absorbed all this, I think you will agree, the SmartGWT
  architecture is the correct one and the GXT architecture has
  limitations.

  Another mistatements: in SmartGWT you can extend the built-in widgets
  and other classes and override methods.  People do this all the time.

 And you CAN'T change a widget behavior in SmartGWT, at least in
 Java... you have a lot of methods that you can override, but it's just
 property setter/getters for JS code, it's internal behavior is inside
 JS code, so, no go. Even extend is uncertain.

  I have no idea why you think more code would be involved with SmartGWT
  for server integration.  People constantly say the reverse.  There may
  other misconceptions there that I could address, if you were to
  explain why you think this is.  

 About the server code I mentioned, i didn't made myself clear, I'd
 like to say exactly this(Less work for the developer). I wish I have a
 better english.. :-P

  Regardless, most professional,
  enterprise developers can easily justify a purchase of SmartGWT Pro,
  where the amount of SmartGWT-specific server code involved is
  literally zero for many cases, and very small for the others.

 Sure, a professional can justify, I didn't said the opposite.

 Anyways, let's see what Chris think about all this, it's all about
 point of view.

 Regards,

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

Suddenly getting exceptions during compile in TypeOracle annotation processing

2009-08-17 Thread martijn.spr...@gmail.com

I'm suddenly getting strange exceptions when compiling my application
that uses EJB3 objects with annotations and Gilead. The exceptions
seems to happen for different annotation objects each time, however
it's always for the same reason: NPE in the TypeOracleMediator.

I've tried this with the old version of Gilead (Hibernate4gwt 1.1.1)
and with the new version. I've also tried this with GWT 1.6.4, and
1.7.0. In every case it's giving me the same NPE.

Nothing significant has changed in my code, I've just made some
general improvements over the last few days which are working find in
hosted mode. However compile seems to be screwed up.

Does anyone have any idea what is going on here?

 The following is my compile script:
#!/bin/sh
APPDIR=`dirname $0`;
java -Xmx768M -XstartOnFirstThread -cp \
$APPDIR/src:\
$APPDIR/war/WEB-INF/lib/adapter-core-1.2.3.823.jar:\
$APPDIR/war/WEB-INF/lib/adapter4gwt-1.2.3.823.jar:\
$APPDIR/war/WEB-INF/lib/hibernate-util-1.2.3.823.jar:\
$APPDIR/../OrangeMountain_GWT_Codelib/src:\
/Users/spronk/Documents/JavaLibraries/gwtx-1.5.2.jar:\
/Users/spronk/Documents/JavaLibraries/gwt-mac-1.7.0/gwt-user.jar:\
/Users/spronk/Documents/JavaLibraries/gwt-mac-1.7.0/gwt-dev-mac.jar:\
/Users/spronk/Documents/JavaLibraries/gwt-dnd-2.6.2.jar:\
/Users/spronk/Documents/JavaLibraries/gwtext-2.0.6/gwtext.jar:\
 com.google.gwt.dev.Compiler -war $APPDIR/war $@
com.ycp.YCPClient


=== This is the stacktrace produced by the compiler:
Compiling module com.ycp.YCPClient
   Refreshing module from source
  Refreshing TypeOracle
 Processing types in compilation unit: jar:file:/Users/spronk/
Documents/workspace_ycp/YCPClient/war/WEB-INF/lib/
adapter4gwt-1.2.3.823.jar!/net/sf/gilead/emul/java5/ejb3/javax/
persistence/EntityResult.java
Found type 'EntityResult'
   [ERROR]
java.lang.ClassNotFoundException: javax.persistence.FieldResult
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.google.gwt.dev.javac.TypeOracleMediator.getClassLiteral
(TypeOracleMediator.java:763)
at
com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValueArray
(TypeOracleMediator.java:726)
at
com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue
(TypeOracleMediator.java:676)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod
(TypeOracleMediator.java:986)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethods
(TypeOracleMediator.java:1054)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration
(TypeOracleMediator.java:1444)
at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits
(TypeOracleMediator.java:389)
at com.google.gwt.dev.javac.TypeOracleMediator.refresh
(TypeOracleMediator.java:417)
at com.google.gwt.dev.javac.CompilationState.refresh
(CompilationState.java:179)
at com.google.gwt.dev.javac.CompilationState.init
(CompilationState.java:93)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
(ModuleDef.java:264)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:283)
at com.google.gwt.dev.Compiler.run(Compiler.java:170)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
88)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:82)
at com.google.gwt.dev.Compiler.main(Compiler.java:131)
[ERROR] Unexpected
java.lang.NullPointerException
at
com.google.gwt.dev.javac.TypeOracleMediator.getAnnotationElementValue
(TypeOracleMediator.java:704)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod
(TypeOracleMediator.java:986)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethods
(TypeOracleMediator.java:1054)
at com.google.gwt.dev.javac.TypeOracleMediator.resolveTypeDeclaration
(TypeOracleMediator.java:1444)
at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits
(TypeOracleMediator.java:389)
at com.google.gwt.dev.javac.TypeOracleMediator.refresh
(TypeOracleMediator.java:417)
at com.google.gwt.dev.javac.CompilationState.refresh
(CompilationState.java:179)
at com.google.gwt.dev.javac.CompilationState.init
(CompilationState.java:93)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
(ModuleDef.java:264)
at 

Compilation failing

2009-08-17 Thread Rahul

Hi,
My web application was working fine when it was running in hosted
mode, as soon as i compiled it, i got this error

[ERROR] Uncaught exception escaped
java.lang.StringIndexOutOfBoundsException: String index out of range:
16
at java.lang.String.substring(Unknown Source)
at com.example.test10.client.Test10$4.onResponseReceived(Test10.java:
330)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
(Request.java:264)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
(Request.java:236)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:227)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
(IDispatchImpl.java:126)
at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
(IDispatchProxy.java:155)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
at com.google.gwt.dev.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:235)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)


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



Re: Who is using smartgwt?

2009-08-17 Thread Tercio Filho

ckendrick, is canEditCell() a behavior or a feature?

protected native boolean canEditCell(int rowNum, int colNum) /*-{
var self =
th...@com.smartgwt.client.widgets.basewidget::getOrCreateJsObj()();
return self._canEditCell(rowNum, colNum);
}-*/;

Damn, it's behavior is inside JS code.

I'm not saying that a widget cannot have a cache, I'm saying it just
can't manage it, well, it can, but shouldn't...

Regards,

Tercio.



On Aug 17, 1:56 pm, ckendrick charles.kendr...@gmail.com wrote:
 Sorry Tercio, I can't spend more time helping you understand the
 architecture here, but suffice it to say, try building the example I
 suggested (drag and drop between two very large user groups that can't
 be loaded in advance) and you'll see why widget-specific caches are an
 absolute necessity.

 Each widget is looking at a particular subset of the data available
 from the model, managed by a ResultSet which serves as a projection of
 the model data needed for that particular view.  You will find the
 same approach in every system that handles large datasets, from Swing
 to JDBC and everywhere else - it's really worth your time to
 investigate this and understand it.

 I'd also appreciate it if you could stop asserting things that are
 just clearly false.  SmartGWT has many, many Java override points that
 allow you to deeply customize behavior - not getters/setters but
 fundamentals like which cells are editable (listGrid.canEditCell()),
 how data is transmitted (various DataSource APIs), many aspects of how
 HTML is generated (getInnerHTML, cellFormatters, many others), and of
 course, countless events.   I think you have some misconceptions which
 date back to right after 1.0 was released - not every override point
 from SmartClient is yet available in SmartGWT, but we are getting
 closer to that all the time.

 On Aug 16, 8:45 pm, Tercio Filho terciofi...@gmail.com wrote:



  On Aug 16, 7:39 pm, ckendrick charles.kendr...@gmail.com wrote:

   @tercio You're still missing the key point.  Let's try again:

   It is absolutely 100% required in an enterprise application that
   different components have different caches, potentially partially
   overlapping, on the same dataset.  A simple example is an interface
   for dragging and drop users between two different groups where both
   groups are very large and cannot be loaded in their entirety.  In
   SmartGWT this is a single DataSource, and two ResultSets on that
   DataSource.  Each ResultSet loads the first batch of members of each
   group and is capable of paging in the rest as needed.

  As I said in my first post, we cannot compare SmartGWT DataSource with
  the GXT Store, as they do different jobs, DataSource in SmartGWT is
  just a Proxy, or in GXT the Loader and the Reader, that's the function
  of the DataSource in SmartGWT, retrieve data when somebody need it.

   It is not a drawback that SmartGWT has separate caches per component.
   It's the correct architecture, and is a necessity where large datasets
   are involved.

  I disagree that this is the right way to do things, I cannot accept
  the fact that the widget manages it's data cache, widget is just a
  widget, it has nothing to do with model data.

   As I mentioned previously, if the datasets involved are small, you can
   use a clientOnly DataSource, and then there is only one central
   cache.  This is the trivial case, which is the only one GXT currently
   handles.

   In either case (clientOnly or not) APIs exist in SmartGWT that allow
   fetching data directly from the DataSource without the use of a
   component - you can both call methods like DataSource.fetchData(), or
   you can directly create a ResultSet.

  Coupling problem, why should I, a data manipulator, must care about
  this?? I just need the data, that's why the GXT Store is better, you
  have a store,  a reader and a loader, layers of decoupling. One taking
  care of another...

   Once you've absorbed all this, I think you will agree, the SmartGWT
   architecture is the correct one and the GXT architecture has
   limitations.

   Another mistatements: in SmartGWT you can extend the built-in widgets
   and other classes and override methods.  People do this all the time.

  And you CAN'T change a widget behavior in SmartGWT, at least in
  Java... you have a lot of methods that you can override, but it's just
  property setter/getters for JS code, it's internal behavior is inside
  JS code, so, no go. Even extend is uncertain.

   I have no idea why you think more code would be involved with SmartGWT
   for server integration.  People constantly say the reverse.  There may
   other misconceptions there that I could address, if you were to
   explain why you think this is.  

  About the server code I mentioned, i didn't made myself clear, I'd
  like to say exactly this(Less work for the developer). I wish I have a
  better english.. :-P

   Regardless, most professional,
   enterprise developers can 

Re: GWT-Maps - Is this a desired behavior?

2009-08-17 Thread Paul van Hoven

Thanks for the answer Eric. I will try out your hints.

On 17 Aug., 16:30, Eric Ayers zun...@google.com wrote:
 Hi Paul,
 Take a look at this demo in JavaScript:

 http://code.google.com/apis/maps/documentation/overlays.html#Custom_O...

 The demo code is called 'CustomOverlayDemo' in the HelloMaps API demo

 I think part of the problem is that your code draws into the viewport
 with pixel values - you need to work with lat-lng values for things to
 correctly drag around in the map.  Also, you are re-creating the divs
 inside of redraw() - the should be created in initialize().

 -Eric.

 On Sun, Aug 16, 2009 at 4:09 PM, Paul van





 Hovenpaul.van.ho...@googlemail.com wrote:

  Okay, instead of displaying the divs like a chessboard pattern i get
  this output on the map:

 http://picasaweb.google.de/paul.van.hoven/GWTMaps#5370655848831663250

  On 16 Aug., 21:35, Paul van Hoven paul.van.ho...@googlemail.com
  wrote:
  I was playing with GWT-Maps to implement something for my website. My
  example uses the com.google.gwt.maps.client.overlay.Overlay abstract
  class. I want to put a couple of transparent divs over the actual map
  which will give the user some certain information. Anyway the purpose
  is not important.

  Concretly spoken: I want to overlay the map with transparent divs such
  that the resulting orientation of the div is similar to a chessboard
  pattern. But somehow it does not work although I think I made
  everything correct.

  Here is the class that extends
  com.google.gwt.maps.client.overlay.Overlay and produces (imho) the
  error.

  [code]
  public class HeatMap extends SimplePanel implements ClickHandler {

          MapWidget map;
          public HeatMap() {

                  if( map == null ) {
                          LatLng germany = LatLng.newInstance(51.15, 10.5);
                          map = new MapWidget( germany, 5 );
                          map.setSize(500px, 300px);

                          DOM.setStyleAttribute( map.getElement(), border, 
  #444 solid
  1px);
                          DOM.setStyleAttribute( map.getElement(), margin, 
  auto);
                          // Add some controls for the zoom level
                          map.addControl(new LargeMapControl());
                          map.addControl(new MapTypeControl());

                  }

                  VerticalPanel vPanel = new VerticalPanel();
                  vPanel.add( map );
                  PushButton showRectsButton = new PushButton( Go!, this );
                  showRectsButton.setStyleName(StandardButton);
                  vPanel.add(showRectsButton);
                  add( vPanel );
          }

          public void onClick(ClickEvent event) {
                  map.addOverlay( new ColoredRectangle( map ) );
          }

          private class ColoredRectangle extends Overlay {

                  MapWidget map;
                  AbsolutePanel p1,p2,p3,p4;
                  public ColoredRectangle( MapWidget map ) {
                          p1 = new AbsolutePanel();
                          p2 = new AbsolutePanel();
                          p3 = new AbsolutePanel();
                          p4 = new AbsolutePanel();
                          this.map = map;
                  }

                  @Override
                  protected Overlay copy() {
                          return new ColoredRectangle( map );
                  }

                  @Override
                  protected void initialize(MapWidget map) {
                          p1.add( new Label(1) );
                          map.getPane( MapPaneType.MAP_PANE).add(p1);
                          p2.add( new Label(2) );
                          map.getPane( MapPaneType.MAP_PANE).add(p2);
                          p3.add( new Label(3) );
                          map.getPane( MapPaneType.MAP_PANE).add(p3);
                          p4.add( new Label(4) );
                          map.getPane( MapPaneType.MAP_PANE).add(p4);
                  }

                  @Override
                  protected void redraw(boolean force) {
                          if( !force )
                                  return;

                          //p1 is placed at the top leftern side
                          DOM.setStyleAttribute( p1.getElement(), 
  backgroundColor, grey);
                          DOM.setStyleAttribute( p1.getElement(), width, 
  250+px );
                          DOM.setStyleAttribute( p1.getElement(), height, 
  150+px );
                          int left = 0;
                          int top = 0;
                          DOM.setStyleAttribute( p1.getElement(), left, 
  left+px );
                          DOM.setStyleAttribute( p1.getElement(), top, 
  top+px );

                          //p2 is placed right beside of p2
                          DOM.setStyleAttribute( p2.getElement(), 
  backgroundColor,
  orange);
                          DOM.setStyleAttribute( p2.getElement(), 

Re: Compilation failing

2009-08-17 Thread Rahul

Hi,
Some more information,
when i compile the project i am getting succesful output i.e.
Compiling module com.example.test10.Test10
   Compiling 6 permutations
  Permutation compile succeeded
   Linking into war
  Link succeeded
   Compilation succeeded -- 22.428s

but now when i run it i am gettin the error. And it was working fine
in the hosted mode


On Aug 17, 1:18 pm, Rahul coolrahul18...@gmail.com wrote:
 Hi,
 My web application was working fine when it was running in hosted
 mode, as soon as i compiled it, i got this error

 [ERROR] Uncaught exception escaped
 java.lang.StringIndexOutOfBoundsException: String index out of range:
 16
         at java.lang.String.substring(Unknown Source)
         at com.example.test10.client.Test10$4.onResponseReceived(Test10.java:
 330)
         at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
 (Request.java:264)
         at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
 (Request.java:236)
         at com.google.gwt.http.client.Request.fireOnResponseReceived
 (Request.java:227)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
         at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
 (IDispatchImpl.java:126)
         at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
 (IDispatchProxy.java:155)
         at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
 (IDispatchImpl.java:294)
         at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
 (IDispatchImpl.java:194)
         at org.eclipse.swt.internal.ole.win32.COMObject.callback6
 (COMObject.java:117)
         at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
         at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
         at com.google.gwt.dev.SwtHostedModeBase.processEvents
 (SwtHostedModeBase.java:235)
         at com.google.gwt.dev.HostedModeBase.pumpEventLoop
 (HostedModeBase.java:558)
         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

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



Re: Compilation failing

2009-08-17 Thread Ian Bambury
What OS are you developing in? What browser are you testing the compiled
code in?
I suspect that you are not developing in Windows and are testing compiled
code in IE. IE will report errors that other browsers don't (yeah I know
'typical IE', but there again if it didn't report errors when it should that
would be 'typical IE' too).

If that is the case, then you need to compile with the  -PRETTY option and
find out where the error is. Or try it on a Windows machine where you will
get a proper error report.

If not, then more information would be useful.

Ian

http://examples.roughian.com


2009/8/17 Rahul coolrahul18...@gmail.com


 Hi,
 Some more information,
 when i compile the project i am getting succesful output i.e.
 Compiling module com.example.test10.Test10
   Compiling 6 permutations
  Permutation compile succeeded
   Linking into war
  Link succeeded
   Compilation succeeded -- 22.428s

 but now when i run it i am gettin the error. And it was working fine
 in the hosted mode


 On Aug 17, 1:18 pm, Rahul coolrahul18...@gmail.com wrote:
  Hi,
  My web application was working fine when it was running in hosted
  mode, as soon as i compiled it, i got this error
 
  [ERROR] Uncaught exception escaped
  java.lang.StringIndexOutOfBoundsException: String index out of range:
  16
  at java.lang.String.substring(Unknown Source)
  at
 com.example.test10.client.Test10$4.onResponseReceived(Test10.java:
  330)
  at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
  (Request.java:264)
  at
 com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
  (Request.java:236)
  at com.google.gwt.http.client.Request.fireOnResponseReceived
  (Request.java:227)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
  103)
  at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
  (IDispatchImpl.java:126)
  at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
  (IDispatchProxy.java:155)
  at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
  (IDispatchImpl.java:294)
  at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
  (IDispatchImpl.java:194)
  at org.eclipse.swt.internal.ole.win32.COMObject.callback6
  (COMObject.java:117)
  at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
 Method)
  at
 org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
  at
 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
  at com.google.gwt.dev.SwtHostedModeBase.processEvents
  (SwtHostedModeBase.java:235)
  at com.google.gwt.dev.HostedModeBase.pumpEventLoop
  (HostedModeBase.java:558)
  at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
  at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
 
  any suggestions how to remove this error ?
 


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



Re: rebuilding gwt 1.7

2009-08-17 Thread denis56

His, thanks for your replies.

I think I am missing it. Have got
 Compiling module myModule
 [java]Refreshing module from source
 [java]   Validating newly compiled units
 [java]  Removing units with errors
 [java] [ERROR] Errors in 'jar:file:/home/share/gwt-
linux-1.7.0/gwt-user.jar!/com/google/gwt/user/client/impl/
HTTPRequestImplIE6.java'
 [java][ERROR] Line 18: The import user cannot be
resolved
 [java][ERROR] Line 19: Syntax error on token
super, Identifier expected
 [java][ERROR] Line 27: JavaScriptObject cannot be
resolved to a type
 [java][ERROR] Errors in 'jar:file:/home/share/gwt-linux-1.7.0/
gwt-user.jar!/com/google/gwt/user/client/impl/HTTPRequestImplIE6.java'
 [java]   [ERROR] Line 18:  The import user cannot be resolved
 [java]   [ERROR] Line 19:  Syntax error on token super,
Identifier expected
 [java]   [ERROR] Line 27:  JavaScriptObject cannot be
resolved to a type
 [java][ERROR] Cannot proceed due to previous errors

after I replaced HTTPRequestImplIE6.java in gwt1.7 jar with the one I'
ve changed

Tried also recompiling the whole gwt 1.7, but seeing another message:
compile:
[mkdir] Created dir: /home/gwt_1.7_svn/build/out/user/bin
[gwt.javac] Compiling 802 source files to /home/gwt_1.7_svn/build/out/
user/bin
[gwt.javac] /home/gwt_1.7_svn/user/src/com/google/gwt/user/client/impl/
HTTPRequestImplIE6.java:19: identifier expected
[gwt.javac] import user.super.com.google.gwt.emul.java.lang.Override;
[gwt.javac] ^
[gwt.javac] /home/gwt_1.7_svn/user/src/com/google/gwt/user/client/impl/
HTTPRequestImplIE6.java:19: class, interface, or enum expected
[gwt.javac] import user.super.com.google.gwt.emul.java.lang.Override;
[gwt.javac]  ^
[gwt.javac] /home//gwt_1.7_svn/user/src/com/google/gwt/user/client/
impl/HTTPRequestImplIE6.java:19: class, interface, or enum expected
[gwt.javac] import user.super.com.google.gwt.emul.java.lang.Override;
[gwt.javac]   ^
[gwt.javac] 3 errors


what am I doing wrong?
thanks


On 17 Aug., 12:29, Thomas Broyer t.bro...@gmail.com wrote:
 On 17 août, 10:53, denis56 denis.ergashb...@gmail.com wrote:

  has anybody tried recompiling gwt 1.7?
 [...]
  I would like to recompile it to 
  resolvehttp://code.google.com/p/google-web-toolkit/issues/detail?id=3608for
  IE 6, Chrome and Safari.

 You do not have to recompile GWT if you only touch client
 code (given that this is code that'll be compiled to JavaScript from
 the Java *source*).

 You can either patch your gwt-user.jar (extract and modify the
 appropriate file, and repackage it within the JAR) or provide your own
 copied/modified version as an overlay (just put it earlier in the
 classpath).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Compilation failing

2009-08-17 Thread Rahul

Hi thanks for the reply

I am using an Windows XP machine and i am developing in Eclipse using
the GWT toolkit. I am using the default google explorer which one gets
while using the hosted mode. Everything was running perfectly while i
was running it. But when i clicked on the Compile/Browse button the
application gave me this error.

The error is happenning in the following part of functionality. I am
parsing an xml document and storing its attributes in a string.Then i
am reading an substring from the main string. The line says string out
of index ( from searching on google) says that there is no character
of the string on that place. When checked now, the is no value being
stored presently in the string variable, which is odd, because i
created backup of the application before hitting on compile/browse
button and its still working fine with no errors.

any ideas how should i proceed.

On Aug 17, 2:16 pm, Ian Bambury ianbamb...@gmail.com wrote:
 What OS are you developing in? What browser are you testing the compiled
 code in?
 I suspect that you are not developing in Windows and are testing compiled
 code in IE. IE will report errors that other browsers don't (yeah I know
 'typical IE', but there again if it didn't report errors when it should that
 would be 'typical IE' too).

 If that is the case, then you need to compile with the  -PRETTY option and
 find out where the error is. Or try it on a Windows machine where you will
 get a proper error report.

 If not, then more information would be useful.

 Ian

 http://examples.roughian.com

 2009/8/17 Rahul coolrahul18...@gmail.com



  Hi,
  Some more information,
  when i compile the project i am getting succesful output i.e.
  Compiling module com.example.test10.Test10
    Compiling 6 permutations
       Permutation compile succeeded
    Linking into war
       Link succeeded
    Compilation succeeded -- 22.428s

  but now when i run it i am gettin the error. And it was working fine
  in the hosted mode

  On Aug 17, 1:18 pm, Rahul coolrahul18...@gmail.com wrote:
   Hi,
   My web application was working fine when it was running in hosted
   mode, as soon as i compiled it, i got this error

   [ERROR] Uncaught exception escaped
   java.lang.StringIndexOutOfBoundsException: String index out of range:
   16
           at java.lang.String.substring(Unknown Source)
           at
  com.example.test10.client.Test10$4.onResponseReceived(Test10.java:
   330)
           at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
   (Request.java:264)
           at
  com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
   (Request.java:236)
           at com.google.gwt.http.client.Request.fireOnResponseReceived
   (Request.java:227)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
  Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at
  com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
   103)
           at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
   (IDispatchImpl.java:126)
           at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
   (IDispatchProxy.java:155)
           at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
   (IDispatchImpl.java:294)
           at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
   (IDispatchImpl.java:194)
           at org.eclipse.swt.internal.ole.win32.COMObject.callback6
   (COMObject.java:117)
           at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
  Method)
           at
  org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
           at
  org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
           at com.google.gwt.dev.SwtHostedModeBase.processEvents
   (SwtHostedModeBase.java:235)
           at com.google.gwt.dev.HostedModeBase.pumpEventLoop
   (HostedModeBase.java:558)
           at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
           at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

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



Re: At new item to a list at each position

2009-08-17 Thread Tobe

Ok, but in this case inside the (1,0) there can be some more Elements
and always the last one is the nested FlexTable I need. I
tried .getElement().getLastChild() but can't cast the received Node to
a FlexTable.

On Aug 17, 6:41 pm, Ian Bambury ianbamb...@gmail.com wrote:
 Can we try this in words, not html :-)
 You have an outer table with 'Insert' buttons in the even rows (0,2,4,...)
 and child tables in the first column of the odd rows (1,3,...)

 To access the first child table, you use

 FlexTable inner = (FlexTable)outer.getWidget(1, 0);

 Ian

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



Re: ValueChangeHandler / History does not work in Opera :-/ (neither stable or beta)

2009-08-17 Thread twdarkflame

The workaround seems to work fine :)
Tested on the demo project, and it responded to everything.
Ive put it on my main project and I'm pretty sure its working fine
there too. (cant know 100% yet, as the history stops responding on
certain functions...I suspect its due to a another part of my code
crashing in though)

Are there any side-effects of this I should be aware of? Will future
gwt upgrades change/effect this?

Cheers,
Thomas

On Aug 17, 1:24 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 16 août, 16:23, Jeff Chimene jchim...@gmail.com wrote:

  Is Opera supported?

 It was... until History code were reworked for IE8 (HTML5/
 onhashchange) support!

 Reported as issue 3956 (submitted too early, summary needs updating,
 sorry):http://code.google.com/p/google-web-toolkit/issues/detail?id=3956

 @twdarkflame, could you try the proposed workaround?

  I know it's WebKit, but even so...

 Jeff, you need a refresh, Opera's using it's own rendering engine (and
 JS engine BTW) known as Presto.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Compilation failing

2009-08-17 Thread Rahul

Hi
Some more information

I just checked that whenever i am compiling my application all the xml
files which i have stored war directory are deleted. So there are no
xml files and this is why i am getting the error. also is there any
way that those xml files are not deleted when i compiling?

But now i am hosting it on the tomcat server, where should i paste my
xml files. I pasted them C:\cbesb-2.1\tomcat\webapps\test10\test10,
( test 10 being my application name) but its not showing on the
browser.

any suggestions?


On Aug 17, 2:22 pm, Rahul coolrahul18...@gmail.com wrote:
 Hi thanks for the reply

 I am using an Windows XP machine and i am developing in Eclipse using
 the GWT toolkit. I am using the default google explorer which one gets
 while using the hosted mode. Everything was running perfectly while i
 was running it. But when i clicked on the Compile/Browse button the
 application gave me this error.

 The error is happenning in the following part of functionality. I am
 parsing an xml document and storing its attributes in a string.Then i
 am reading an substring from the main string. The line says string out
 of index ( from searching on google) says that there is no character
 of the string on that place. When checked now, the is no value being
 stored presently in the string variable, which is odd, because i
 created backup of the application before hitting on compile/browse
 button and its still working fine with no errors.

 any ideas how should i proceed.

 On Aug 17, 2:16 pm, Ian Bambury ianbamb...@gmail.com wrote:

  What OS are you developing in? What browser are you testing the compiled
  code in?
  I suspect that you are not developing in Windows and are testing compiled
  code in IE. IE will report errors that other browsers don't (yeah I know
  'typical IE', but there again if it didn't report errors when it should that
  would be 'typical IE' too).

  If that is the case, then you need to compile with the  -PRETTY option and
  find out where the error is. Or try it on a Windows machine where you will
  get a proper error report.

  If not, then more information would be useful.

  Ian

 http://examples.roughian.com

  2009/8/17 Rahul coolrahul18...@gmail.com

   Hi,
   Some more information,
   when i compile the project i am getting succesful output i.e.
   Compiling module com.example.test10.Test10
     Compiling 6 permutations
        Permutation compile succeeded
     Linking into war
        Link succeeded
     Compilation succeeded -- 22.428s

   but now when i run it i am gettin the error. And it was working fine
   in the hosted mode

   On Aug 17, 1:18 pm, Rahul coolrahul18...@gmail.com wrote:
Hi,
My web application was working fine when it was running in hosted
mode, as soon as i compiled it, i got this error

[ERROR] Uncaught exception escaped
java.lang.StringIndexOutOfBoundsException: String index out of range:
16
        at java.lang.String.substring(Unknown Source)
        at
   com.example.test10.client.Test10$4.onResponseReceived(Test10.java:
330)
        at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
(Request.java:264)
        at
   com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
(Request.java:236)
        at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:227)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
   Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at
   com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
        at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
(IDispatchImpl.java:126)
        at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
(IDispatchProxy.java:155)
        at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
        at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
        at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
   Method)
        at
   org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
        at
   org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
        at com.google.gwt.dev.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:235)
        at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:558)
        at 
com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
        at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)

any suggestions how to remove this error ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed 

Re: Creating and Importing GWT Independent Modules

2009-08-17 Thread Lucas Neves Martins

Yeah! It worked!

Sorry for the waiting, there was a reshuffle and I was working in
another project for a little while.

But your step by step guide is very useful, and the discussion heped
me too.

I followed your steps and got the class acessible in the main project,
but when I booted it, I got a nasty null pointer exception,  so when I
read your next post :  Only code that can be cross-compiled into
JavaScript should be used when
performing a GWT compilation , I realized how obvious the solution
was.

I don't know yet if there are any other ways ( I believe there is ) ,
but I made my class to implement the EntryPoint, the everything gone
smoothly well. I left the onModuleLoad method empty.

Thanks a lot Chandel , I will continue my journey on the GWT.


On 3 ago, 20:28, Sumit Chandel sumitchan...@google.com wrote:
 Hi Lucas,
 You can follow the steps below to package an existing module, say module A
 defined in project A, that you want to reuse in another project, say project
 B that defines module B which itself defines an entrypoint class.

 1) Create / move all the GWT code that you want to reuse in project A.

 2) Create / update the module XML file for module A in the normal way,
 except you no longer need to define an entry point class.

 3) Create a JAR for project A (project-a.jar), which should include 1) GWT
 source code that you want to reuse from the project, 2) The module XML file,
 3) Any other public resources referenced by the module XML file,  4) The
 binary .class files for any server-side code that you want to reuse

 4) Add the project-a.jar file to the project B classpath, as well as any
 other launch configurations related to project B (typically hosted mode and
 compile configurations).

 5) Reference the module A xml file from the module B xml file (e.g.
 inherits name=com.google.projectA.ModuleA /). Note that since the module
 A xml file should already include the inherits
 name=com.google.gwt.user.User / inherits tag, you shouldn't need to add
 that reference again to the module B xml file.

 You should be ready to go. Give those instructions a try and let us know if
 you managed to package and reuse your module.

 Hope that helps,
 -Sumit Chandel

 On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins 
 snown...@gmail.comwrote:



  Nope,

  Can anybody give a step-by-step ?

  On 29 jul, 10:49, Nuno brun...@gmail.com wrote:
   you dont need to do much thing for this...
   just create your gwt library project, you dont need to define any
   entrypoints.

   after, just click with your right button on your project, then export,
  then
   select java package

   after you only need to import
   this jar on the other project you want to use it, and on the module
   xml make reference to the xml of the library.

   you can find an example on my blog.http://tcninja.blogspot.com

   On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins 
  snown...@gmail.comwrote:

I looked it up all over the internet, but I only found this link :

   http://developerlife.com/tutorials/?p=229

I need to create a .jar with gwt views (those .java in the client
package) and then import it to other gwt project, much like they do
with the SmartGwt api.

How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers
on how to create and export GWT modules?

I follow the instructions on this link above, but it just doesn't
work, when I try to compile it, I get an error telling me that the
compiler couldn't find the class I am using, even the class is on the /
lib dir, and in my buildpath, and in the .xml with a declared inherit.

Does anybody know how do I do that?

   --
   Quer aprender a programar? acompanhe:
   Wants to learn GWT? Follow this blog -

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



Re: Creating and Importing GWT Independent Modules

2009-08-17 Thread Lucas Neves Martins

I am not a GWT expert, but I don't think this is possible.

But if you want to make life easier you could use a ant task to
automate those jar builds, copying, and classpath updating.

With ant you can do most anything you could with a ShellScript, you
know, java project wise.

To help debugging, you can export every jar with the sources inside,
there is a checkbox on the eclipse Jar export wizard.

Boa sorte!

On 14 ago, 10:48, Claudemir  Todo Bom claude...@gmail.com wrote:
 Is there a way to develop a reusable library side-by-side with another
 project? without using any jars?

 for example, i have a GWT in package com.example.application.client
 everything worked on it... then I added a new package to my eclipse
 project, calling it com.example.utils (side question: do I need to put
 client here too?), it didtn't worked... looks like the gwt.xml is all
 fine, but both gwt compiler and host mode refuses to run this way,
 telling that I may forgot to inherit some required module (I did
 placed the inherit tag for utils on aplication.gwt.xml)

 I want this to avoid the pain to have to package a jar and import it
 on my application everytime I change my utils library. This way I
 should be able to debug and edit both packages together, then, when
 the library is ready, I can export it to a jar. For now, my library is
 a subpackage of application.

 Best Regards,
 Claudemir

 On Aug 3, 8:28 pm, Sumit Chandel sumitchan...@google.com wrote:

  Hi Lucas,
  You can follow the steps below to package an existing module, say module A
  defined in project A, that you want to reuse in another project, say project
  B that defines module B which itself defines an entrypoint class.

  1) Create / move all the GWT code that you want to reuse in project A.

  2) Create / update the module XML file for module A in the normal way,
  except you no longer need to define an entry point class.

  3) Create a JAR for project A (project-a.jar), which should include 1) GWT
  source code that you want to reuse from the project, 2) The module XML file,
  3) Any other public resources referenced by the module XML file,  4) The
  binary .class files for any server-side code that you want to reuse

  4) Add the project-a.jar file to the project B classpath, as well as any
  other launch configurations related to project B (typically hosted mode and
  compile configurations).

  5) Reference the module A xml file from the module B xml file (e.g.
  inherits name=com.google.projectA.ModuleA /). Note that since the module
  A xml file should already include the inherits
  name=com.google.gwt.user.User / inherits tag, you shouldn't need to add
  that reference again to the module B xml file.

  You should be ready to go. Give those instructions a try and let us know if
  you managed to package and reuse your module.

  Hope that helps,
  -Sumit Chandel

  On Fri, Jul 31, 2009 at 10:37 AM, Lucas Neves Martins 
  snown...@gmail.comwrote:

   Nope,

   Can anybody give a step-by-step ?

   On 29 jul, 10:49, Nuno brun...@gmail.com wrote:
you dont need to do much thing for this...
just create your gwt library project, you dont need to define any
entrypoints.

after, just click with your right button on your project, then export,
   then
select java package

after you only need to import
this jar on the other project you want to use it, and on the module
xml make reference to the xml of the library.

you can find an example on my blog.http://tcninja.blogspot.com

On Wed, Jul 29, 2009 at 10:10 AM, Lucas Neves Martins 
   snown...@gmail.comwrote:

 I looked it up all over the internet, but I only found this link :

http://developerlife.com/tutorials/?p=229

 I need to create a .jar with gwt views (those .java in the client
 package) and then import it to other gwt project, much like they do
 with the SmartGwt api.

 How they did the SmartGwt api? Where is the Docs/Tutorial/Whitepapers
 on how to create and export GWT modules?

 I follow the instructions on this link above, but it just doesn't
 work, when I try to compile it, I get an error telling me that the
 compiler couldn't find the class I am using, even the class is on the 
 /
 lib dir, and in my buildpath, and in the .xml with a declared inherit.

 Does anybody know how do I do that?

--
Quer aprender a programar? acompanhe:
Wants to learn GWT? Follow this blog -

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



Refresh page on loading

2009-08-17 Thread Rahul

Hi
I want to refresh my webpage once after loading completely. I am using
this code for this

script language= JavaScript 
function MyReload()
{
window.location.reload();
}
/SCRIPT

and calling
Body onLoad= MyReload()   on body part of my html file

but this is not working
can anyone tell me where am i going wrong?

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



Re: Compilation failing

2009-08-17 Thread Rahul

thanks for the reply
i just checked that my application is running on IE
but its not running on firefox


On Aug 17, 3:23 pm, Lucas Neves Martins snown...@gmail.com wrote:
 You can try a debug from the entry point,

 check all the places where you replace layouts onto the html page.

 I don't know if your app contains sensitive data or information, but
 if not, post some code - or the whole code - so I can help you.

 Best if luck!

 On 17 ago, 15:53, Rahul coolrahul18...@gmail.com wrote:

  Hi
  Some more information

  I just checked that whenever i am compiling my application all the xml
  files which i have stored war directory are deleted. So there are no
  xml files and this is why i am getting the error. also is there any
  way that those xml files are not deleted when i compiling?

  But now i am hosting it on the tomcat server, where should i paste my
  xml files. I pasted them C:\cbesb-2.1\tomcat\webapps\test10\test10,
  ( test 10 being my application name) but its not showing on the
  browser.

  any suggestions?

  On Aug 17, 2:22 pm, Rahul coolrahul18...@gmail.com wrote:

   Hi thanks for the reply

   I am using an Windows XP machine and i am developing in Eclipse using
   the GWT toolkit. I am using the default google explorer which one gets
   while using the hosted mode. Everything was running perfectly while i
   was running it. But when i clicked on the Compile/Browse button the
   application gave me this error.

   The error is happenning in the following part of functionality. I am
   parsing an xml document and storing its attributes in a string.Then i
   am reading an substring from the main string. The line says string out
   of index ( from searching on google) says that there is no character
   of the string on that place. When checked now, the is no value being
   stored presently in the string variable, which is odd, because i
   created backup of the application before hitting on compile/browse
   button and its still working fine with no errors.

   any ideas how should i proceed.

   On Aug 17, 2:16 pm, Ian Bambury ianbamb...@gmail.com wrote:

What OS are you developing in? What browser are you testing the compiled
code in?
I suspect that you are not developing in Windows and are testing 
compiled
code in IE. IE will report errors that other browsers don't (yeah I know
'typical IE', but there again if it didn't report errors when it should 
that
would be 'typical IE' too).

If that is the case, then you need to compile with the  -PRETTY option 
and
find out where the error is. Or try it on a Windows machine where you 
will
get a proper error report.

If not, then more information would be useful.

Ian

   http://examples.roughian.com

2009/8/17 Rahul coolrahul18...@gmail.com

 Hi,
 Some more information,
 when i compile the project i am getting succesful output i.e.
 Compiling module com.example.test10.Test10
   Compiling 6 permutations
      Permutation compile succeeded
   Linking into war
      Link succeeded
   Compilation succeeded -- 22.428s

 but now when i run it i am gettin the error. And it was working fine
 in the hosted mode

 On Aug 17, 1:18 pm, Rahul coolrahul18...@gmail.com wrote:
  Hi,
  My web application was working fine when it was running in hosted
  mode, as soon as i compiled it, i got this error

  [ERROR] Uncaught exception escaped
  java.lang.StringIndexOutOfBoundsException: String index out of 
  range:
  16
          at java.lang.String.substring(Unknown Source)
          at
 com.example.test10.client.Test10$4.onResponseReceived(Test10.java:
  330)
          at 
  com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
  (Request.java:264)
          at
 com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
  (Request.java:236)
          at com.google.gwt.http.client.Request.fireOnResponseReceived
  (Request.java:227)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
  Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown 
  Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
  103)
          at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
  (IDispatchImpl.java:126)
          at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
  (IDispatchProxy.java:155)
          at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
  (IDispatchImpl.java:294)
          at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
  (IDispatchImpl.java:194)
          at org.eclipse.swt.internal.ole.win32.COMObject.callback6
  (COMObject.java:117)
          at 

Re: Multiple Projects in Eclipse Sharing RPCs

2009-08-17 Thread Lucas Neves Martins

???

What happened?

On 17 ago, 12:15, Jason Parekh jasonpar...@gmail.com wrote:
 Hey jhnclvr,
 FYI, your message was truncated =)

 On Mon, Aug 17, 2009 at 10:03 AM, jhnclvr jhnc...@gmail.com wrote:

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



Prevent duplication of records on refresh

2009-08-17 Thread Rahul

Hi,
I am reading values from the database(sql server) and then showing
them on my webpage. Reading is done on the server side and showing
them its on the client side.

The problem i am facing is that whenever i refresh the page, all the
values get duplicated on the web page and it keeps going on.

How should i proceed to prevent this? would it be a javascript module
i need to put in? or a java code in my client?


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



Re: Creating Reuseable Modules

2009-08-17 Thread Lucas Neves Martins

Yeah I know the feeling,

My app was taking around 20-30 seconds to load for the first time -
after the first load it was nearly instant

I've tested with Google Page Speed and Page Activity as well, and I
come to realize that the biggest problem is the huge amount of JS
scrips ( at least for me ), Gzip compression helped a lot, in my case,
around 7-10 seconds.

As the GWT application itself is just pure JS in the client side, a
solution I've used that helped a lot the user experience, is to load
the application in the background.

In my case, I load the login screen first - and it does it very
quickly, around 1-2 second(s) - and while the user is still logging in
the application I load all the other parts of the application,
starting from the parts I think the user will use first. So while the
user logs in, and take a look to the main page, all the application is
loading without his perception - except for the firefox status
spinner : P

And then 10-15 seconds comes to be a acceptable time, since my users
take just around that time to make a login and try to use any other
funcionality after doing it.

But of course, I agree that GWT could be better in both performance
and best practices, but if you look at the generated code, you will
see that that ship is sailed.

The browsers are not so compliant to the standards as they could, and
the guys from the GWT team can't do miracles.

Take a look at gzip compression and and partitioned loading for gwt
apps,

I know I didn't actually answered you question, but this might help
your performance.

Good luck!

On 17 ago, 07:12, Rodders david.andrew.chap...@googlemail.com wrote:
 GWT comes with default CSS. If I create a bunch of reuseable Modules
 (packaged as Jars for use by some of our other internal development
 teams) with our own corporate style, the compiled application loads 2
 stylesheets (the default, and company for example).

 If one of our development teams uses those Modules to create a new app
 and adds some CSS specific to that app the compiled application loads
 3 stylesheets (default, company and application).

 These stylesheets are not minified or combined, this can't be
 correct as Google's own page performance tool states that HTTP
 requests should be reduced and css files combinded - I must be doing
 something wrong?

 However, one of the GWT example apps I've seen is loading over 1Mb
 data in 59 http requests and takes about 11 secs to load...

 Can anyone point me at a good tutorial on how to create reuseable
 modules that don't break web app performance best practices?

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



Re: Compilation failing

2009-08-17 Thread Ian Bambury
Everything in the war file (or the rename-to in the gwt.xml file if you have
one) gets deleted. Put them somewhere else outside of it, or in the public
directory.
Ian

http://examples.roughian.com


2009/8/17 Rahul coolrahul18...@gmail.com


 thanks for the reply
 i just checked that my application is running on IE
 but its not running on firefox


 On Aug 17, 3:23 pm, Lucas Neves Martins snown...@gmail.com wrote:
  You can try a debug from the entry point,
 
  check all the places where you replace layouts onto the html page.
 
  I don't know if your app contains sensitive data or information, but
  if not, post some code - or the whole code - so I can help you.
 
  Best if luck!
 
  On 17 ago, 15:53, Rahul coolrahul18...@gmail.com wrote:
 
   Hi
   Some more information
 
   I just checked that whenever i am compiling my application all the xml
   files which i have stored war directory are deleted. So there are no
   xml files and this is why i am getting the error. also is there any
   way that those xml files are not deleted when i compiling?
 
   But now i am hosting it on the tomcat server, where should i paste my
   xml files. I pasted them C:\cbesb-2.1\tomcat\webapps\test10\test10,
   ( test 10 being my application name) but its not showing on the
   browser.
 
   any suggestions?
 
   On Aug 17, 2:22 pm, Rahul coolrahul18...@gmail.com wrote:
 
Hi thanks for the reply
 
I am using an Windows XP machine and i am developing in Eclipse using
the GWT toolkit. I am using the default google explorer which one
 gets
while using the hosted mode. Everything was running perfectly while i
was running it. But when i clicked on the Compile/Browse button the
application gave me this error.
 
The error is happenning in the following part of functionality. I am
parsing an xml document and storing its attributes in a string.Then i
am reading an substring from the main string. The line says string
 out
of index ( from searching on google) says that there is no character
of the string on that place. When checked now, the is no value being
stored presently in the string variable, which is odd, because i
created backup of the application before hitting on compile/browse
button and its still working fine with no errors.
 
any ideas how should i proceed.
 
On Aug 17, 2:16 pm, Ian Bambury ianbamb...@gmail.com wrote:
 
 What OS are you developing in? What browser are you testing the
 compiled
 code in?
 I suspect that you are not developing in Windows and are testing
 compiled
 code in IE. IE will report errors that other browsers don't (yeah I
 know
 'typical IE', but there again if it didn't report errors when it
 should that
 would be 'typical IE' too).
 
 If that is the case, then you need to compile with the  -PRETTY
 option and
 find out where the error is. Or try it on a Windows machine where
 you will
 get a proper error report.
 
 If not, then more information would be useful.
 
 Ian
 
http://examples.roughian.com
 
 2009/8/17 Rahul coolrahul18...@gmail.com
 
  Hi,
  Some more information,
  when i compile the project i am getting succesful output i.e.
  Compiling module com.example.test10.Test10
Compiling 6 permutations
   Permutation compile succeeded
Linking into war
   Link succeeded
Compilation succeeded -- 22.428s
 
  but now when i run it i am gettin the error. And it was working
 fine
  in the hosted mode
 
  On Aug 17, 1:18 pm, Rahul coolrahul18...@gmail.com wrote:
   Hi,
   My web application was working fine when it was running in
 hosted
   mode, as soon as i compiled it, i got this error
 
   [ERROR] Uncaught exception escaped
   java.lang.StringIndexOutOfBoundsException: String index out of
 range:
   16
   at java.lang.String.substring(Unknown Source)
   at
 
 com.example.test10.client.Test10$4.onResponseReceived(Test10.java:
   330)
   at
 com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
   (Request.java:264)
   at
  com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
   (Request.java:236)
   at
 com.google.gwt.http.client.Request.fireOnResponseReceived
   (Request.java:227)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
 Source)
   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
  Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at
  com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
   103)
   at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
   (IDispatchImpl.java:126)
   at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
   (IDispatchProxy.java:155)
  

Re: Linux 64bits package?

2009-08-17 Thread Lucas Neves Martins

Rajeev Dayal says: ... the next release of GWT will no longer require
that you use a
32-bit JVM. It will support a mode of execution known as
Out-of-process-hosted-mode. Instead of debugging your application
using
the hosted browser, you'll be able to debug it while it runs in a real
browser. Since the hosted browser will no longer be required, neither
will
the 32-bit SWT libraries that we bundle. If you're adventurous, you
can try
out this functionality right now - check out the GWT source, and do a
trunk
build. It should work with the plugin.

Good luck!

On 17 ago, 08:59, Luigi R. Viggiano luigi.viggi...@gmail.com
wrote:
 Hi.

 I am using Linux 64-Bit (Ubuntu 9.04) with the provided JDK 6 from Sun.

 Is it planned a 64-Bit distro for GWT? Or, as alternative, is GWT 1.7
 Out-of-process-hosted-mode ready?

 The reason why I am asking, ist that with this configuration, the -d32
 option in JDK is not working, I think it's an Ubuntu package bug, and
 this leads to problems; for example,
 using hosted mode with maven.

 P.S. I already found this 
 :http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
 But I am writing to say that ia32-sun-java6-bin doesn't solve all the
 problems: when you have to compile+run, the 32 bit JRE is not enough

 Thanks. Have a nice day.
 --Luigi

 Luigi R. Viggiano
 Web/Blog:http://www.newinstance.it
 Skype: luigi.viggiano
 My Professional Profile:http://www.linkedin.com/in/viggiano
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Post Sorting in google groups

2009-08-17 Thread Lucas Neves Martins

I don't think this is the right place to ask, but anyway I'll give it
a shot,

is there anyway that I can sort the post of the group by number of
messages?

I mean, I often like to walk around the list to answer for the
questions of the google web toolkit members, and I wish I could start
by those that are unanswered.

What if we don't see a post that has been overrun by lots of other
posts, the guy who posted will get no answer at all?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



gwt application does not run ie7

2009-08-17 Thread aftershock

Hi,
I created a gwt application

It runs under current Chrome, FIlefox,Opera, IE8

but it does not under IE7. The program does not use ie7 specific code.
Is it known bug? Is gwt not ok with ie7?
What may be the reason?


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



Re: Is it possible to clone Widgets?

2009-08-17 Thread Ice13ill

any suggestions? tips?

On Aug 13, 4:53 pm, Ice13ill andrei.fifi...@gmail.com wrote:
 If i have aWidget, in a VerticalPanel let's say, and i want to add 
 awidgetwith the same properties in another panel, is it possible 
 toclonethatwidget? Or to create aWidgetfrom that firstwidget?

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



Re: ImageBundle using AlphaImageLoader don't allow events to fire properly

2009-08-17 Thread Sumit Chandel
Thanks for reporting this, Damon. For what it's worth, this shouldn't be an
issue anymore in GWT 2.0 as Issue #3588 is looking to eliminate the use of
the AlphaImageLoader altogether, both from IE6 and IE7.
Issue #3588:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3588

http://code.google.com/p/google-web-toolkit/issues/detail?id=3588Cheers,
-Sumit Chandel

On Thu, Aug 13, 2009 at 8:42 AM, Damon Lundin damon.lun...@gmail.comwrote:


 On IE6, we've run into a problem that we don't know how to work
 around.  If you create an ImageBundle and use it for buttons in your
 application, you will run into problems where clicking on the image
 does not fire all the events that it's supposed to.  In particular,
 the blur event does not get fired.

 I have distilled the problem to some basic HTML which will show you
 the problem:

 The code below is essentially what you get when using an ImageBundle.
 If you put focus on the input field and then click the image, the text
 box does not lose focus and the blur event does not get fired.  If you
 click anywhere but the image, the blur event will get fired.  If you
 use a .gif instead of a .png and the AlphaImageLoader, clicking the
 image will cause the blur event to fire.  Note that the problem is not
 that clicking the image fires no events.  If you add an onClick
 handler below, it will fire.  It just won't fire the blur event.  This
 is particularly troublesome if your code relies on the blur event to
 update your model before handling the click event on the button.  In
 this case, the click event fires but the blur does not and your click
 handler gets a model that's not updated yet (of course we could design
 our click handlers to force an update but that's easier said than done
 in our application).

 Does anyone know of any tricks to work around this?  I know there are
 some position tricks people use to make links clickable inside such an
 area, but here all we have is an img that does have any nested
 elements.  Is there a way to have the ImageBundle compiler create
 a .gif instead of a .png (assuming all the images were .gifs in the
 first place)?

 html

script type=text/javascript
function onBlur() {
window.alert(Blurred!);
}
/script

 body

input type=text onblur=onBlur();/

DIV
clipper
IMG style=FILTER:
 progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://
 blueprint.lombardi.com/skins/Default/images/popup/talk_right.png');
 height=200 width=200 src=http://blueprint.lombardi.com/
 com.lombardi.online.gwt.pages.process.ProcessPage/clear.cache.gif/
/clipper
/DIV

 /body
 /html
 


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



Re: At new item to a list at each position

2009-08-17 Thread Ian Bambury
You should only ever have one widget in the cell. The method setWidget(int
row, int column, Widget widget) removes any existing widget.
I think you might need a design review ;-)

Ian

http://examples.roughian.com


2009/8/17 Tobe tobias.jungnic...@googlemail.com


 Ok, but in this case inside the (1,0) there can be some more Elements
 and always the last one is the nested FlexTable I need. I
 tried .getElement().getLastChild() but can't cast the received Node to
 a FlexTable.

 On Aug 17, 6:41 pm, Ian Bambury ianbamb...@gmail.com wrote:
  Can we try this in words, not html :-)
  You have an outer table with 'Insert' buttons in the even rows
 (0,2,4,...)
  and child tables in the first column of the odd rows (1,3,...)
 
  To access the first child table, you use
 
  FlexTable inner = (FlexTable)outer.getWidget(1, 0);
 
  Ian
 
  http://examples.roughian.com
 


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



Re: how to deploy a GWT Application online?

2009-08-17 Thread sam

Thanks Jason and Lal,

When I run my application in eclipse it works fine.

Then, I compiled the application by clicking the red icon ie 'GWT
Compile Project'. On settings, I picked 'log level'=all, and 'output
style'=detailed.

Finally, I get the message:Compilation succeeded -- 97.258s  after
bunch of other lines.

Then, I took the content inside the 'war' folder and posted it online
using dreamweaver.

Clientside of the application works fine.

However, when I click on something that requires to get data from
server Implementation method, then it fails and I get the error:

com.google.gwt.user.client.rpc.StatusCodeException:

As for hosting server, my server has 'apache 2.2.11.' My computer also
has WAMP with 'apache 2.2.11'.

Is there a way to deploy GWT application online with apache 2.2.11?

I am new to this, thanks for the support.

sam

On Aug 17, 11:13 am, Jason Parekh jasonpar...@gmail.com wrote:
 Hey Sam,
 As Lal explains below, creating the war file and deploying it into Tomcat
 (or another app server) should be enough.

 Could you explain how you tried to deploy it online?  How did you package it
 all, where did you deploy to, etc.?

 Have you tried any other apps on your server that are able to access the
 database?

 jason



 On Mon, Aug 17, 2009 at 1:00 AM, sam sabir...@gmail.com wrote:

  I have been working on my summer GWT Application Project. Finally, I
  have created an application using eclipse. It has uses RPC, and I use
  JDBC MYSQL to access database.

  My application is almost complete; it runs fine in hosted mode and
  accesses database.

  But, today I tried to deploy it online. I could not get my client and
  server side to interact, let alone accessing database.

  Can anyone help me figure out how to deploy GWT application online?
  How do I get my client and server side to interact when deployed.
  Isn't posting the content under 'war' enough?

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



Re: Refresh page on loading

2009-08-17 Thread Ian Bambury
2009/8/17 Rahul coolrahul18...@gmail.com


 Hi
 I want to refresh my webpage once after loading completely. I am using
 this code for this

script language= JavaScript 
function MyReload()
{
window.location.reload();
}
/SCRIPT

 and calling
 Body onLoad= MyReload()   on body part of my html file

 but this is not working
 can anyone tell me where am i going wrong?



First problem is that you are asking a JavaScript question in a GWT group
:-)

Second problem is that your webpage will loop, endlessly loading and
reloading. This a pretty basic a mistake, so maybe it would be a good idea
to search for some JavaScript tutorials or sign up to a JavaScript
beginners' group.

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



Sinking new HTML 5 DOM events?

2009-08-17 Thread Eric Kidd

GWT is a really clever piece of compiler technology!

I'm currently experimenting with HTML 5's video/ tag and GWT. For
the most part, this was very easy to get running. But event-handling
has been a major headache.

In particular, I'm trying to add a listener to ontimeupdate, which
is called whenever the current playback time changes. In JavaScript,
the code would look this:

# Tested in Firefox 3.5. (Will generate tons of alerts. Be
warned.)
var video = document.getElementsByTagName('video')[0];
video.addEventListener(timeupdate, function (event) {
window.alert(Time:  + video.currentTime);
}, true);

I've defined an appropriate set of classes (TimeUpdateEvent,
TimeUpdateHandler) and added a addTimeUpdateHandler function to my
Video widget. But this isn't enough to make things work--my timeupdate
handler is never called. (Code is attached below.)

Further investigation reveals that I'm still missing quite a few
pieces:

  DOMImpl::eventGetTypeInt - I need to add an entry for timeupdate.
  DOMImpl::sinkEvents - I need to call addEventListener
(timeupdate, ..., true).
  Event - I need to add a ONTIMEUPDATE constant.

Is there an easy way to work around this without patching my local
copy of GWT? And would it be worth either (a) making the list of
events extensible at runtime, or (b) adding a list of events taken
from the HTML 5 standard?

Thank you for such an interesting toolkit, and for any advice you can
provide on supporting custom DOM events!

Cheers,
Eric

=== begin Java code ===

public class Video extends FocusWidget {
// ... lots of code removed
public HandlerRegistration addTimeUpdateHandler(TimeUpdateHandler
handler) {
return addHandler(handler, TimeUpdateEvent.getType());
}
}

public interface TimeUpdateHandler extends EventHandler {
void onTimeUpdate(TimeUpdateEvent event);
}

public class TimeUpdateEvent extends DomEventTimeUpdateHandler {

private static final TypeTimeUpdateHandler TYPE =
new TypeTimeUpdateHandler(timeupdate, new 
TimeUpdateEvent());

public static TypeTimeUpdateHandler getType() {
return TYPE;
}

@Override
public TypeTimeUpdateHandler getAssociatedType() {
return TYPE;
}

@Override
protected void dispatch(TimeUpdateHandler handler) {
handler.onTimeUpdate(this);
}
}


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



Re: GWT Deployment on Web Hosting Sites

2009-08-17 Thread Sumit Chandel
Hi Kenneth,
As Dobes mentioned, you can definitely use any hosting service, like
GoDaddy, to deploy your GWT application. Also as mentioned, GWT generates
regular JavaScript and HTML files than any hosting service provider should
be able to handle. If you're using GWT RPC, you will need a hosting service
that provides a Java server-side environment, supporting the Servlet 2.5
specification.

For more details on all the moving parts of a deployed GWT application, both
with an RPC backend and without, check out the deployment documentation at
the link below.

Deploying a GWT Application:
http://code.google.com/webtoolkit/doc/1.6/DevGuideDeploying.html

Hope that helps,
-Sumit Chandel

On Thu, Aug 13, 2009 at 3:00 PM, khj khjac...@gmail.com wrote:


 Though I read through various articles/postings/forums/faqs discussing
 whether GWT applications could be deployed to commercial web hosting
 sites/companies, I seemed to miss the overview/summary explanation.

 Can this be done on GoDaddy, 11, etc?

 Maybe some things work, but not others?


 Thanks for any information that you might provide!

  -Kenneth


 


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



Re: Struts 1.2 and gwt

2009-08-17 Thread Sumit Chandel
Hi suzy,
There is nothing stopping you from using GWT in your Struts application. One
point of conflict I could think of is controlling application flow, as
Struts does seem to prescribe a Web 1.0 style navigation flow, however you
can definitely add GWT components to your existing Struts pages to enhance
them.

In your case, it seems like you simply want to use GWT to display data
within your Struts page. You can do this by simply coding up your GWT
component (both the widget layout and style itself along with the logic to
grab the data to be displayed from the page), and binding the component to
an element in your Struts page. You can read more details about how to bind
the component to your Struts page in the documentation linked below.

Organizing Projects - HTML Host Pages (same concept applies to a Struts
page):
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideHostPage

http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideHostPageHope
that helps,
-Sumit Chandel

On Fri, Aug 14, 2009 at 1:59 AM, Shajee Lawrence
shajeelawre...@gmail.comwrote:


 Struts tags in jsp - along with GWT - i don't think there exists a
 straight forward implementation for that. Might be, you can bring in a
 struts page (jsp) from within a GWT application because you have
 requestbuilders and other stuff. But GWT within struts - its not
 straight forward.

 On Aug 13, 11:20 pm, suzy suzy...@gmail.com wrote:
  Hi,
 
  My web application is using struts1.2 and i would like to
  integrate GWT for displaying data coming from db in a table in my
  jsp.
 
  -- can i still you struts tags in jsp along with GWT (i.e need to
  refresh table with new data)
 
  -- i need to just include the url(i.e action) in struts-config.xml
  corrrect ?
 
  if there are any tutorials on struts with GWT would help me.
 
  -- Thanks
 


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



Re: Changing a Frame's contents when HTML widgets are clicked.

2009-08-17 Thread Radu Grigore

On Aug 14, 11:27 pm, Ian Bambury ianbamb...@gmail.com wrote:
 And unless you have a good reason for it, I'd swap the DockPanel and VP for
 divs

You mean working with DivElement instead of VerticalPanel? If so, then
why?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



SmartGWT 1.2 Tile Sort Filtering Example Question Fuzzy Search / (Maybe Bug)?

2009-08-17 Thread Jan

Hi everybody,

I am just new to GWT and experiencing a little bit with SmartGWT,
implementing and trying to change the Tile Sort  Filtering Example
from the Showcase 
http://www.smartclient.com/smartgwt/showcase/#featured_tile_filtering

I am trying to implement the above example with a fuzzy search but
without the extra SearchItems, which causes the FuzzySearch to fail
and draw back on an EQUALS search.


Everything works fine with the example, but here comes my  'error' /
'bug' :
Here is an excerpt from the code from the showcase example:

code

final DynamicForm filterForm = new DynamicForm();
filterForm.setIsGroup(true);
filterForm.setGroupTitle(Search);
filterForm.setNumCols(6);
filterForm.setDataSource(AnimalXmlDS.getInstance());
filterForm.setAutoFocus(false);

TextItem commonNameItem = new TextItem(commonName);
SliderItem lifeSpanItem = new SliderItem(lifeSpan);
lifeSpanItem.setTitle(Max Life Span);
lifeSpanItem.setMinValue(1);
lifeSpanItem.setMaxValue(60);
lifeSpanItem.setDefaultValue(60);
lifeSpanItem.setHeight(50);
lifeSpanItem.setOperator(OperatorId.LESS_THAN);

SelectItem statusItem = new SelectItem(status);
statusItem.setOperator(OperatorId.EQUALS);
statusItem.setAllowEmptyValue(true);

filterForm.setFields(commonNameItem, lifeSpanItem,
statusItem);

filterForm.addItemChangedHandler(new ItemChangedHandler() {
public void onItemChanged(ItemChangedEvent event) {
tileGrid.fetchData(filterForm.getValuesAsCriteria());
}
});

/code


Three search items are created and fit together in the filterForm.
Using the form and entering just a part of a Common Name, will break
down the results with each letter I type.

Now comes the bad part:

I do not want the lifeSpanItem and statusItem any more. So I change

code
filterForm.setFields(commonNameItem, lifeSpanItem, statusItem);
/code

to
code
filterForm.setFields(commonNameItem);
/code

Now, trying to enter just a part of a Common Name will not break down
my results with each letter I type, but instead the behaviour is like
commonNameItem.setOperator(OperatorId.EQUALS)


So what I am saying is that the search works fine for searchItems
greater than just one TextField. My workaround therefore was to create
a HiddenItem as follows:
code
HiddenItem tagsItem = new HiddenItem(tags);
tagsItem.setOperator(OperatorId.EQUALS);

filterForm.setFields(commonNameItem, tagsItem);
/code

Now I think that this can't be right. Now am I missing something? Do I
have to use .setOperator on commonNameItem, if only commonNameItem is
present? If yes: Which OperatorId should I choose?


Thank you very much for your help,

Greets,

Jan





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



Re: IE8 and GWT 1.7

2009-08-17 Thread Sumit Chandel
Hi Karim,
I wasn't able to reproduce this problem using GWT 1.7.0 / WinXP / IE 8. The
starter application generated by the Google Plugin for Eclipse works as
expected in hosted mode and all supported browsers. Are there any other
symptoms of the problem you're experiencing that you could tell us that
would help figure out what's going on?

Also, have you changed the code from what was initially generated by the
plugin?

Regards,
-Sumit Chandel

On Thu, Aug 13, 2009 at 1:51 PM, karim ka...@oc.com wrote:


 I am having problem with IE8. I just used create a new Web
 Application Project as part of GWT plugin for Eclipse and then
 compile it and run it. In hosted mode everything seems fine but when I
 click compile/browse it starts the default browser which is set to
 IE8 and then the page never completely loads.
 Do not have this problem with IE6,7, FF and Chrome.

 Please help.

 Thank you.

 


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



Re: Android (1.5) Browser displays empty page

2009-08-17 Thread Thomas Broyer



On 17 août, 10:50, Michael Wiedmann wiedmann.mich...@googlemail.com
wrote:
 Our GWT 1.7.0 works quite fine in standard desktop browsers like FF,
 IE, etc. Problems occur if I try to use Androids built in webkit
 browser (both using the Android SDK emulator and a real hardware
 device).

 The log (spam level) in hosted mode shows that a bunch of CSS and JS
 files being requested and successfully delivered. The last request I
 see in the log looks like:

 200 - POST /OML/SessionService (...) 14 bytes

 The Android browser does not display anything (page remains blank), a
 standard browser displays a login page at this point.

 Any hints howto resolve this problem would be highly appreciated!

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



GWT + gears + eclipse, problem.

2009-08-17 Thread philipmac

Hey,

So I pulled the latest Galileo Eclipse release, and obtained the GWT
plugin from dl.google.
The demo helloServer app works without problem, and I have played
around with things a bit and it seems fine with the hosted browser and
so on.

I wanted to start using the Gears code, and it seems that there is no
plugin for this.  Why is this the case?

Oh well, so I pull the gears gwt stuff, and unpacked it, and dropped
the jar files into the dropins folder on my eclipse installation.
I create a project called test, and make sure it performs its
helloServer ok.

On the top of my Test.java file I then add
import com.google.gwt.gears.client.Factory;
import com.google.gwt.gears.client.database.Database;
import com.google.gwt.gears.client.database.DatabaseException;
import com.google.gwt.gears.client.database.ResultSet;
because I will be using that later.

I also add
 inherits name='com.google.gwt.gears.Gears'/
to my .gwt.xml file.

I reload the live server thing and :
Unable to find 'com/google/gwt/gears/Gears.gwt.xml' on your
classpath; could be a typo, or maybe you forgot to include a classpath
entry for source?
And it hangs on the web page at the point where it should be making
the TextField.

I suppose I am not understanding how this dropins folder is meant to
behave.

Why is it looking for Gears.gwt.xml?  There is no such file in the
gears.gwt dist.

Anyway, struggle onwards, right click on my project, go to Properties,
into the Java Build Path, Add External Jars, and stick in the external
jar file gwt-gears.jar into the project.

So, now the IDE seems a little happier with things.  I have a warning
there saying I am not using the gwt.Gears stuff, and am including it
for no reason but its happy that it knows what gwt gears is now.

The live browser thing is a total basket case now.  It no longer can
even find test.html its giving me a 404 and masses of error messages.

Ok so.. I run a compile, setting the it to debug level
information, and it compiles happily.

Note, I have not modified the code really at this point, its still the
helloServer stuff I started off with.  I just added jar file to the
project, modified the xml file, and added a few includes.

I'm running gwt-gears-1.2.1, gwt 1.7, my vm with which I run eclipse
is java 6 from sun, in Eclipse version Galileo, on Ubuntu Jaunty, on a
64 bit machine, compiling against the 32bit libs as seemingly demanded
by gwt.

Any ideas?


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



Allow other domains to access a GWT application (running on Google App Engine)

2009-08-17 Thread Everett

Hi All,

I would like to allow a particular set of other domains to access my
GWT application (running on Google App Engine).  Is this possible with
GWT and how to do it?

For example:

Let's say I have the StockWatcher application from the tutorial
running on http://stockwatcher.appspot.com.  Part of the page
StockWatcher.html are the lines

link type=text/css rel=stylesheet href=StockWatcher.css
...
script type=text/javascript language=javascript src=stockwatcher/
stockwatcher.nocache.js/script

The application is run as http://stockwatcher.appspot.com/StockWatcher.html
and everything works fine.

Now let's say I want to also allow example.com to run my StockWatcher
application.  I tell them to make a copy of StockWatcher.html in their
root directory and change the lines above to

link type=text/css rel=stylesheet href=http://
stockwatcher.appspot.com/StockWatcher.css
...
script type=text/javascript language=javascript src=http://
stockwatcher.appspot.com/stockwatcher/stockwatcher.nocache.js/
script

The application is run as http://www.example.com/StockWatcher.html
and, ideally, everything works fine.

I tried a scenario similar to this but when I viewed
http://www.example.com/StockWatcher.html I didn't see the StockWatcher
application and no errors were reported.  When I view the source of
the page everything looks fine to me.

My questions are:

1. Is this kind of application deployment possible in GWT?
2. If so, how would you go about doing it?  I'm a developer new to GWT
so I just need a kick in the right direction.
3. How would you get the example.com domain to check it against a
whitelist of allowed domains in the GWT application?

Thanks for your time,
Everett

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



GALGWT, Eclipse 3.5 / Galileo, and GWT 1.7 -- how to add this or any other GWT library to projects?

2009-08-17 Thread Julian

Hi all, firstly the GWT / AppEngine plugin for Eclipse is sensational.
To be able to deploy to production so easily is amazing.

However a basic question -- how do you add other GWT libraries?

I wanted to extend the template given by making a geolocation API call
in gwt-gears I'm struggling to figure out where to add gwt-gears.jar.

1. I added it to my project's lib folder along with the other jars
that were included in the default project but they are not presented
through the GUI as available to add.
2. Adding them as 'external jars' solves the IDE syntax checking
issues but then unsurprisingly crashes in hosted mode.

I'm missing something basic I'm sure about how to add GWT libraries --
anyone have any suggestions?

thanks!
(This is for GALGWT, Eclipse 3.5 / Galileo, and GWT 1.7)

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



Re: *.cache.html blocked by firewall - GWT team opinions please?

2009-08-17 Thread Sumit Chandel
Hi Joe,
Please see reply inlined below.

Hmm. The gwt code to load the cache.html seems to be ignoring error
 states:

 line 315:

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js?r=5513
 xhr.onreadystatechange = function() {
  // 4 == DONE
  if (xhr.readyState == 4) {

 Shouldn't we add another check like:

 if( xhr.status != 200 || xhr.status != 304 ) throwDocumentError();

 This is probably a good thing to add in do you think?


You make a good point here. I think it would make sense to have a hook that
developers could implement here for such failure cases.

Would you mind filing an issue for this in the Issue Tracker? That way,
you'll automatically be notified of updates to the issue, and I can
assigning to someone on the team for further consideration.

Issue Tracker:
http://code.google.com/p/google-web-toolkit/issues/list

Cheers,
-Sumit Chandel




 On Aug 14, 3:30 am, Joe Cole profilercorporat...@gmail.com wrote:
   Is it malformed, or missing?
 
  If I remove the file (cause a 404 response) gwt doesn't throw an error
  that I can catch. I used this to reproduce the error for testing
  purposes.
  In production, the file is there, and the user has a firewall that
  blocks it and if it returns an error page, gwt doesn't throw an error
  that I can catch. I was using the missing file to replicate it
  locally.
 
   The MD5 value is the STRONGNAME. Whether
   you can reproduce that hash is another matter; which algorithm means
   another trip through the source. If you can recalculate the hash,
   you'd simply compare that value to STRONGNAME. But you'd never get a
   chance to calculate the hash since the file's only partially received.
 
  I was hoping that the generated nocache.js would have this (or
  something) to check that the document returned by the server (or
  firewall) it loaded via xhttp was valid.
  I understand we can't regenerate it - I was trying to propose a
  solution.
  Another solution would be for the gwt script to check the response for
  an error code - is that possible?
 
   I'm under the impression that the file's missing. In which case I'd
   implement a watchdog timer in that routine. I'm guessing that Google
   doesn't implement a such a timer because there's no single
   implementation that would fit all circumstances.
 
  The file isn't missing - if I load up the cache.html file manually
  (e.g.www.mycompany.com/STRONGNAME.cache.html) at sites with a strict
  firewall we get an error document explaining that it's been blocked by
  the firewall and rationale (e.g. a high score).
 
   After reviewing the source, the onerror function doesn't get called
   when you need it for this particular issue.
 
  Agreed.
 
   Please try the cross-site linker.
 
  I've never used it before - how will this help?
 
   I'm guessing others haven't seen this since it's specific to these
   firewall settings? Or are these separate customers with different
   firewalls? I have seen on this list a very difficult to reproduce
   issue regarding RPC cargo getting truncated on the trip to the server.
   But, obviously, that's after loading the script.
 
  These are two separate customers (one university installation, one
  corporate on separate continents).
  I have seen the truncation issue before with a personal firewall
  (Norton) as well.
 
  Thanks for your help. Apologies if you are confused!
 


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



Re: *.cache.html blocked by firewall - GWT team opinions please?

2009-08-17 Thread Joe Cole

Hi Sumit,

http://code.google.com/p/google-web-toolkit/issues/detail?id=3959

Thanks,
Joe
On Aug 18, 11:26 am, Sumit Chandel sumitchan...@google.com wrote:
 Hi Joe,
 Please see reply inlined below.

 Hmm. The gwt code to load the cache.html seems to be ignoring error

  states:

  line 315:

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/c...
  xhr.onreadystatechange = function() {
       // 4 == DONE
       if (xhr.readyState == 4) {

  Shouldn't we add another check like:

  if( xhr.status != 200 || xhr.status != 304 ) throwDocumentError();

  This is probably a good thing to add in do you think?

 You make a good point here. I think it would make sense to have a hook that
 developers could implement here for such failure cases.

 Would you mind filing an issue for this in the Issue Tracker? That way,
 you'll automatically be notified of updates to the issue, and I can
 assigning to someone on the team for further consideration.

 Issue Tracker:http://code.google.com/p/google-web-toolkit/issues/list

 Cheers,
 -Sumit Chandel



  On Aug 14, 3:30 am, Joe Cole profilercorporat...@gmail.com wrote:
Is it malformed, or missing?

   If I remove the file (cause a 404 response) gwt doesn't throw an error
   that I can catch. I used this to reproduce the error for testing
   purposes.
   In production, the file is there, and the user has a firewall that
   blocks it and if it returns an error page, gwt doesn't throw an error
   that I can catch. I was using the missing file to replicate it
   locally.

The MD5 value is the STRONGNAME. Whether
you can reproduce that hash is another matter; which algorithm means
another trip through the source. If you can recalculate the hash,
you'd simply compare that value to STRONGNAME. But you'd never get a
chance to calculate the hash since the file's only partially received.

   I was hoping that the generated nocache.js would have this (or
   something) to check that the document returned by the server (or
   firewall) it loaded via xhttp was valid.
   I understand we can't regenerate it - I was trying to propose a
   solution.
   Another solution would be for the gwt script to check the response for
   an error code - is that possible?

I'm under the impression that the file's missing. In which case I'd
implement a watchdog timer in that routine. I'm guessing that Google
doesn't implement a such a timer because there's no single
implementation that would fit all circumstances.

   The file isn't missing - if I load up the cache.html file manually
   (e.g.www.mycompany.com/STRONGNAME.cache.html) at sites with a strict
   firewall we get an error document explaining that it's been blocked by
   the firewall and rationale (e.g. a high score).

After reviewing the source, the onerror function doesn't get called
when you need it for this particular issue.

   Agreed.

Please try the cross-site linker.

   I've never used it before - how will this help?

I'm guessing others haven't seen this since it's specific to these
firewall settings? Or are these separate customers with different
firewalls? I have seen on this list a very difficult to reproduce
issue regarding RPC cargo getting truncated on the trip to the server.
But, obviously, that's after loading the script.

   These are two separate customers (one university installation, one
   corporate on separate continents).
   I have seen the truncation issue before with a personal firewall
   (Norton) as well.

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



Re: 100% high TabPanel

2009-08-17 Thread David Given

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ian Bambury wrote:
[...]
 You have to calculate it and recalculate it every time the window resizes,
[...]

Aaargh!

I was really hoping not to have to do that --- my layout is complicated
and contains lots of CSS stuff, and trying to redesign all that so it's
done in code rather than CSS would be a nightmare. Also, slow. Oh, for a
real boxes-and-glue layout system...

Anyway, thanks for the help --- I shall go investigate alternatives. It
may be that I can query the size of the TabPanel's container at run
time, which would mean that I don't have to redo *all* the layout code.
Sigh.

- --
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ People who think they know everything really annoy those of us who
│ know we don't. --- Bjarne Stroustrup
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKie2If9E0noFvlzgRAjt0AKC7SnzdXDLgHkJGAPdlVxLKPcJeGQCeLQSX
sBPosDPgLFNUbBrjQHuP/es=
=QxU0
-END PGP SIGNATURE-

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



GWT 1.7 compiles null.nullMethod() into javascript for HTMLTable sub-class

2009-08-17 Thread Bob The Cheese

OK, so I'm making a custom type of table which manages a datastore,
has expandable sections, etc.

I've borrowed a couple of things off FlexTable, but modified/
simplified them.

When I run the project, I get this:
==
[ERROR] Failed to create an instance of 'vdc.module.billing.Billing'
via deferred binding
java.lang.NullPointerException: null
at com.google.gwt.user.client.ui.HTMLTable$CellFormatter.access$0
(HTMLTable.java:373)
at com.google.gwt.user.client.ui.HTMLTable.cleanCell(HTMLTable.java:
1370)
at com.google.gwt.user.client.ui.HTMLTable.setHTML(HTMLTable.java:
1006)
at vdc.module.billing.clients.invoices.widget.InvoiceGrid.init
(InvoiceGrid.java:18)
at vdc.module.billing.clients.invoices.Invoices.makeInvoiceGrid
(Invoices.java:169)
at vdc.module.billing.clients.invoices.Invoices.init(Invoices.java:
110)
at vdc.module.billing.clients.Clients.init(Clients.java:66)
at vdc.module.billing.Billing.init(Billing.java:43)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate
(ModuleSpace.java:373)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318)
at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace
(BrowserWidget.java:343)
at com.google.gwt.dev.shell.moz.BrowserWidgetMoz.access$100
(BrowserWidgetMoz.java:35)
at com.google.gwt.dev.shell.moz.BrowserWidgetMoz
$ExternalObjectImpl.gwtOnLoad(BrowserWidgetMoz.java:58)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:
1428)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
at com.google.gwt.dev.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:235)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
==

I compile the project out and run it in firefox, and pull up the error
here in the javascript:
==
function $setHTML(this$static, row, column, html){
var td;
$prepareCell(this$static, row, column);
td = null.nullMethod();
$internalClearCell(this$static, td, html == null);
if (html != null) {
null.nullMethod();
}
}
==

in particular this line:
td = null.nullMethod();

I've looked around, and can't find anything which really explains to
me what's going wrong.

Here are the methods that I've overwritten

==
@Override
protected void prepareRow(int row) {
if (row  0) {
throw new IndexOutOfBoundsException(
Cannot create a row with a negative index:  + row);
}

int rowCount = getRowCount();
for (int i = rowCount; i = row; i++) {
insertRow(i);
}
}

@Override
protected void prepareCell(int row, int column) {
prepareRow(row);
if (column  0) {
throw new IndexOutOfBoundsException(
Cannot create a column with a negative index:  + 
column);
}

int cellCount = getCellCount(row);
for (int i = cellCount; i  column; i++) {
insertCell(row, i);
}
}

@Override
public int getCellCount(int row) {
if (row  0) {
throw new IndexOutOfBoundsException(
Cannot find a row with a negative index:  + 
row);
}

// Initialize - 0 cells in a row
int count = 0;

// check if the row exists yet
int rows = getRowCount();
if (rows = row) {
count = getDOMCellCount(row);
}

return count;
}

// and the constructor
public InvoiceGrid () {
// set the headers
setHTML(0,0,nbsp;);
setText(0,1,Invoice Number);
setText(0,2,Client Name);
setText(0,3,Invoice Date);
setText(0,4,Due Date);
setText(0,5,Terms);
setText(0,6,Ageing);
setText(0,7,Amount);
setText(0,8,Status);
}
==

Can anyone help me with this? Any clues as to what I've done wrong
here?

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

Re: GWT + gears + eclipse, problem.

2009-08-17 Thread philipmac


Good news everyone!

So, I was wondering why there is two gears jars, one called gwt-gears-
noredist.jar and one called gwt-gears.jar.


Well, instead of adding gwt-gears.jar to the project, I added gwt-
gears-noredist.jar.
The above seems to work now.
I shall have to test the db functionality now.

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



Re: TabBar design

2009-08-17 Thread Arthur Kalmenson

It's natively supported CSS in Gecko and Webkit, but an image hack in
IE. Take a look at the GWT default styles to see how it's done.

--
Arthur Kalmenson



On Mon, Aug 17, 2009 at 8:02 AM, MamboJumbotorni...@googlemail.com wrote:

 I was recently trying to understand how the beautiful tabbar with
 rounded corners is implemented in 
 http://code.google.com/p/google-web-toolkit/.
 DecoratedTabPanel is rounding corners for the tab bar but not for the
 buttom panel. Can anyone point how to make bottom panel top corners
 rounded like at the above mentioned website?
 Thank you.

 


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



Re: GWT + gears + eclipse, problem.

2009-08-17 Thread philipmac


Good news everyone!

So, I was wondering why there is two gears jars, one called gwt-gears-
noredist.jar and one called gwt-gears.jar.


Well, instead of adding gwt-gears.jar to the project, I added gwt-
gears-noredist.jar.
The above seems to work now.
I shall have to test the db functionality now.

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



Re: Changing a Frame's contents when HTML widgets are clicked.

2009-08-17 Thread Ian Bambury
Divs of some description.
Maybe as id'd divs in the html. This makes it possible to radically alter
the layout without affecting functionality and allows designers to design
and programmers to program. Even if the programmer is the designer, they can
effect changes in the html and css without a recompile.

Using divs (even if you are just adding flowpanels to other flowpanels)
makes layout easier.

Tables, as everyone knows, got a really bad press when used for layout (and
VPs, HPs and DockPanels and the like are all table-based) and although there
was a lot of rubbish talked, it is easier to get a semantically significant
layout using divs (and that means text-readers - and search engines - can
make more sense of it)

DockPanels are something else again - they tempt programmers away from
better structured code IMNSHO, creating too many classes at the same level.
Which is probably fine while you are playing about and learning, but makes
maintenance in real-life applications a right bugger.

And most of these table-based panels *require* that you set heights and
widths in the code unless you want all the TDs the same size. If you create
three cells in a VP the only way to set the heights is in code - unless you
shove other widgets in there and let them expand when you set the height of
those widgets (but then if you decrease the size of the widgets, in some
browsers the table won't shrink back).

There are other consideration due to the way GWT works which means that in
large apps you might get significant performance hits if, say, you are
creating a lot of nested widgets. Using a widget has some overheads and if
you don't need to use a widget then it's probably a good practice not to use
a widget. Even if you need to do stuff dynamically in code, you can use the
HTMLPanel and shove divs in that.

A quick test showed that divs with ids in an HTMLPanel is 2.3 times faster
than div elements with ids in another div element and 13 times faster than
labels with ids in a verticalpanel. 10,000 took about 65ms, 150ms, and 850ms
respectively (averaged over a number of tests). That was in Chrome. IE7 took
between 35 and 40 seconds to put labels in a VP. Users start to notice
delays like that.

There may be quicker ways of coding it though, I just knocked 3 examples
together, but it probably gives a good idea.

Ian

http://examples.roughian.com


2009/8/17 Radu Grigore radugrig...@gmail.com


 On Aug 14, 11:27 pm, Ian Bambury ianbamb...@gmail.com wrote:
  And unless you have a good reason for it, I'd swap the DockPanel and VP
 for
  divs

 You mean working with DivElement instead of VerticalPanel? If so, then
 why?
 


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



Re: GWT + gears + eclipse, problem.

2009-08-17 Thread philipmac


Good news everyone!

So, I was wondering why there is two gears jars, one called gwt-gears-
noredist.jar and one called gwt-gears.jar.


Well, instead of adding gwt-gears.jar to the project, I added gwt-
gears-noredist.jar.
The above seems to work now.
I shall have to test the db functionality now.

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



Re: GWT 1.7

2009-08-17 Thread Farrukh Najmi

Which maven repo can I find gwt-log and specifically 2.6.2? Thanks.

On Jul 15, 1:49 pm, Fred Sauer fre...@google.com wrote:
 GWT 1.7.0 adds a new user agent value for ie8 which causes this. Please try
 that latest gwt-log-2.6.2.jar 
 fromhttp://code.google.com/p/gwt-log/downloads/list

 Thanks
 Fred



 On Wed, Jul 15, 2009 at 10:47 AM, Scooter willi...@gmail.com wrote:

  Just upgraded to GWT 1.7 and ran into the following when trying to
  build with gwt-log. I already posted on the gwt-log discussion but
  wanted to put in the main GWT list for others using gwt-log.

  Thanks

  Scooter

  Compiling module edu.scripps.hddesktop.Main
    [ERROR] Errors in 'jar:file:/Users/Scooter/java/gwt-log/gwt-
  log-2.6.0.jar!/com/allen_sauer/gwt/log/client/util/DOMUtil.java'
       [ERROR] Line 32:  Rebind result
  'com.allen_sauer.gwt.log.client.util.impl.DOMUtilImpl' cannot be
  abstract
    [ERROR] Cannot proceed due to previous errors

 --
 Fred Sauer
 Developer Advocate
 Google Inc. 1600 Amphitheatre Parkway
 Mountain View, CA 94043
 fre...@google.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Chinese words

2009-08-17 Thread Evangel

hi,brothers,when I tried to use Chinese words,some encode problems
happened.Any advices on such solution?Now with GWT 1.6.4 under windows
Xp
Thanks!

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



Re: GALGWT, Eclipse 3.5 / Galileo, and GWT 1.7 -- how to add this or any other GWT library to projects?

2009-08-17 Thread philipmac


Hey, so I've been mucking about with this for say... a couple of
hours.  And, ehh, I never actually used Eclipse until tonight, and I'm
a Perl coder.  So, ahem, take what I say with this in mind...
but, I just right click on my project, go to Properties,
into the Java Build Path, Add External Jars, and stick in the external
jar file into the project.


Although, for some magical reason of which I am unaware of, you have
to use the noredist gears jar.

Give it a try.

On Aug 17, 7:03 pm, Julian julian.har...@gmail.com wrote:
 Hi all, firstly the GWT / AppEngine plugin for Eclipse is sensational.
 To be able to deploy to production so easily is amazing.

 However a basic question -- how do you add other GWT libraries?

 I wanted to extend the template given by making a geolocation API call
 in gwt-gears I'm struggling to figure out where to add gwt-gears.jar.

 1. I added it to my project's lib folder along with the other jars
 that were included in the default project but they are not presented
 through the GUI as available to add.
 2. Adding them as 'external jars' solves the IDE syntax checking
 issues but then unsurprisingly crashes in hosted mode.

 I'm missing something basic I'm sure about how to add GWT libraries --
 anyone have any suggestions?

 thanks!
 (This is for GALGWT, Eclipse 3.5 / Galileo, and GWT 1.7)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Refresh page on loading

2009-08-17 Thread Rahul

HI Ian,
thanks for replying
i have started looking at some tutorials for javascript
but i have some more confusion.

all coding i did in gwt was in java in the client class, so for this
functionality also i need to code in the client class? or not? i need
to do javascript for tht. and if i can do in java, what is the function
( because when searched it always shows me how to do with javascript
and not in java)


On Aug 17, 6:00 pm, Ian Bambury ianbamb...@gmail.com wrote:
 2009/8/17 Rahul coolrahul18...@gmail.com





  Hi
  I want to refresh my webpage once after loading completely. I am using
  this code for this

     script language= JavaScript 
         function MyReload()
         {
                 window.location.reload();
         }
         /SCRIPT

  and calling
  Body onLoad= MyReload()   on body part of my html file

  but this is not working
  can anyone tell me where am i going wrong?

 First problem is that you are asking a JavaScript question in a GWT group
 :-)

 Second problem is that your webpage will loop, endlessly loading and
 reloading. This a pretty basic a mistake, so maybe it would be a good idea
 to search for some JavaScript tutorials or sign up to a JavaScript
 beginners' group.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Refresh page on loading

2009-08-17 Thread Ian Bambury
Why do you want to reload the page as soon as it has just loaded?
Can't you just get it right the first time?

What do you want to happen the second time that didn't happen the first
time?

Ian

http://examples.roughian.com


2009/8/18 Rahul coolrahul18...@gmail.com


 HI Ian,
 thanks for replying
 i have started looking at some tutorials for javascript
 but i have some more confusion.

 all coding i did in gwt was in java in the client class, so for this
 functionality also i need to code in the client class? or not? i need
 to do javascript for tht. and if i can do in java, what is the function
 ( because when searched it always shows me how to do with javascript
 and not in java)


 On Aug 17, 6:00 pm, Ian Bambury ianbamb...@gmail.com wrote:
  2009/8/17 Rahul coolrahul18...@gmail.com
 
 
 
 
 
   Hi
   I want to refresh my webpage once after loading completely. I am using
   this code for this
 
  script language= JavaScript 
  function MyReload()
  {
  window.location.reload();
  }
  /SCRIPT
 
   and calling
   Body onLoad= MyReload()   on body part of my html file
 
   but this is not working
   can anyone tell me where am i going wrong?
 
  First problem is that you are asking a JavaScript question in a GWT group
  :-)
 
  Second problem is that your webpage will loop, endlessly loading and
  reloading. This a pretty basic a mistake, so maybe it would be a good
 idea
  to search for some JavaScript tutorials or sign up to a JavaScript
  beginners' group.
 


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



Serverside html generation with GWT Panels

2009-08-17 Thread jd

Hi,

I was wondering if anyone has looked into whether it is possible to
replace the com.google.gwt.user.client.DOM implementation so that the
same client side code could be used to generate static html on the
server?

Cheers,

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



Is there a simple way to retrieve which index in a stack panel is active?

2009-08-17 Thread Paul

I am trying to modularize my code and was wondering if there was a
simple way to determine which panel in the 'stack' is currently open.
This would let me concentrate coding sections based on which panel is
actually active.  I hope this makes sense.

Is there any method such as:   public int getActiveIndex() ?

Thanks,

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



  1   2   >