Re: chrome upgrade scrolling issues

2013-08-26 Thread Andy King
I have Chrome version 29.0.1547.57 m on Windows 7 and the scrolling 
appears to work correctly, that is, when I go to one of the other places 
the scrollbar is at the top of the panel.

On Monday, August 26, 2013 9:27:10 AM UTC-7, EMan wrote:

 my computer (mac) just upgraded to the latest version of chrome.  It seems 
 now my site has an odd issue with scrolling.  When I scroll down a page and 
 then click a link to a new place, it stays scrolled in the old position.

 You can see this at www.sorave.com.  scroll to the middle of the page, 
 then click on the header connect,  you can see it stays scrolled in the 
 middle of the page, even though it is a new place.

 This only happens on chrome, and only after I applied the latest chrome 
 update.
 Version 29.0.1547.57

 anyone else have this issue?

 Thanks.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Changing the Displayed Value in a DataGrid

2013-07-17 Thread Andy King
I am trying to modify the value that is displayed in a DataGrid cell after 
the user has entered or modified the existing value.  For example, if the 
user enters 5/6/12 I want the cell to display 05/06/2012 when the user 
exits the cell.  Here is the code that creates the column:

final TextInputCell fosterDateStartCell = new TextInputCell();
final ColumnIFosterHistoryProxy, String fosterDateStartColumn;
fosterDateStartColumn = new ColumnIFosterHistoryProxy, 
String(fosterDateStartCell) {
@Override
public String getValue(final IFosterHistoryProxy fosterHistory) {
final String date = fosterHistory.getFosterDateStart();
if (GLGWTUtil.isEmpty(date)) {
return ;
}
return date.substring(4, 6) + / + date.substring(6, 8) + / + 
date.substring(0, 4);
}
};
fosterDateStartColumn.setFieldUpdater(new FieldUpdaterIFosterHistoryProxy, 
String() {
@Override
public void update(final int index, final IFosterHistoryProxy 
fosterHistory, final String value) {
final String[] dateParts = value.split(/);
if (dateParts.length != 3) {
return;
}
final int month = Integer.valueOf(dateParts[0]);
final int day = Integer.valueOf(dateParts[1]);
final int year = Integer.valueOf(dateParts[2]);
final String date = (year  100 ? 2000 + year : year) + (month  10 
? 0 : ) + month +
(day  10 ? 0 : ) + day;
getEditDTO(fosterHistory, 
ECacheUpdateType.Update).setFosterDateStart(date);
final ViewData viewData = new ViewData(date.substring(4, 6) + / + 
date.substring(6, 8) +
   / + date.substring(0, 4));
fosterDateStartCell.setViewData(fosterHistory.getFosterHistoryId(), 
viewData);
fosterHistoryGrid.redraw();
}
});
fosterDateStartColumn.setSortable(true);
fosterHistoryGrid.addColumn(fosterDateStartColumn, Start Date);
fosterHistoryGrid.setColumnWidth(fosterDateStartColumn, 10ex);


The getValue() method is working well ... if the value in the proxy object 
is 20120506 then I see 05/06/2012 in the cell.  But the update() method 
is not showing the correct value ... if the user enters 5/6/12 then I do 
not see 05/06/2012 (the value in the cell is still 5/6/12 after the 
update() method has executed).  Note that the setFosterDateStart() method 
does not cause the update to be sent to the server; it simply sets the 
value in the editable proxy object.  Also note that the 
getFosterHistoryId() method returns the stable identifier value for the 
IFosterHistoryProxy object, and that the key provider for the selection 
model associated with the DataGrid is using that identifier.

Many thanks for any help!

Andy

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Unable to find '.gwt.xml' on your classpath (again)

2013-04-10 Thread Andy King
Well, I found a solution, although I don't know why the original project 
doesn't work. The fact that the project ran with no problem on one machine, 
but had problems on the other machine, seemed to point to a difference in 
configuration. I renamed the .html file, TimeToPlay.html, to 
TimeToPlay2.html, and changed the run configuration to point to it. This 
was successful, and the application now runs. If I change the name (an run 
configuration) back to TimeToPlay.html then it appears that a different 
html file is being picked up ... I just can't figure out where it's coming 
from.

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




Unable to find '.gwt.xml' on your classpath (again)

2013-04-08 Thread Andy King
I am at my wits end with this problem ... I've looked at suggested 
solutions, but none have worked.  Here is the (all-too-familiar) error that 
I see in the GWT Development Mode window:

[DEBUG] [fosterapet] - Loading inherited module 'fosterapet'
[ERROR] [fosterapet] - Unable to find 'fosterapet.gwt.xml' on your 
classpath; could be a typo, or maybe you forgot to include a classpath 
entry for source?
[ERROR] [fosterapet] - Failed to load module 'fosterapet' from user agent 
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) 
Chrome/26.0.1410.43 Safari/537.31' at 127.0.0.1:51716

The project that is referenced in this error, fosterapet, is unrelated to 
the project that I'm working on ... I don't want to inherit the gwt.xml 
file from the fosterapet project.  I have the new project on two machines, 
and it works without a problem on one of the machines.  On the machine that 
gives the above error I have even deleted the entire project (deleting the 
contents on disk), deleted the run configuration for the project, and 
imported the project from SVN.  I then right-clicked on the project (in 
Eclipse) and selected Run As - Web Application, and get the same error. 
 I just don't know where the reference to the fosterapet project is 
coming from.  I've searched all files under the project directory using 
grep, and there doesn't appear to be any mention of fosterapet.  Note 
that there is no gwt-unitCache directory when I try to run the project for 
the first time.  Perhaps there's something in the browser (Chrome) that is 
cached?

I am so sorry to ask what seems to be a question that has been answered 
many times before.  The only difference that I see in my situation is that 
the referenced file is not something that I even want in this project.  I 
really appreciate any help that is offered!

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




Re: Need some help with Totoe and XML

2013-03-27 Thread Andy King
Where is this XML located?  Are you receiving on the client machine 
somehow?  I realize that Totoe is a client-side parser and helper, but it 
would be useful to have some context for why you're doing.  Also, what have 
you tried already?

On Wednesday, March 27, 2013 8:01:14 AM UTC-7, skippy wrote:

 I have this XML: 
 I need to get at Group Name=ACCT00305” and at all the children and 
 values like this: 
 ACCT000   31MEB0009 
 NAME055  Miss Taylor R Williams 



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




Re: XMLParser Problems

2013-03-20 Thread Andy King


I don't know of any way to use XPath against the GWT XML library, but 
that's not to say that you can't do so.  In my work with it I just walk 
through the Document object and extract the elements and attributes into my 
own structure.  If you know the structure of your XML ahead of time then 
this is really very easy.

Andy

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




Re: XMLParser Problems

2013-03-17 Thread Andy King
First, it appears that your XML is invalid ... your last child element has 
a beginning tag of ACCT005 and an ending tag of vlst.  Assuming that 
this isn't your only problem, I think you are just not getting the child 
nodes of the item element, but instead you are getting the child nodes of 
the document (which would be the item element node).  This is how I'd 
fulfill your requirements:

  final Document doc = XMLParser.parse(item);
  final Element itemElement = 
(Element)doc.getElementsByTagName(item).item(0);
  Node node = itemElement.getFirstChild();
  while (node != null) {
if (node.getNodeType() == Node.ELEMENT_NODE) {
  // node is an account element
}
node = node.getNextSibling();
  }

Note that not all child nodes will necessarily be Element nodes ... hence 
the check for NodeType == Node.ELEMENT_NODE.

Andy

On Thursday, March 14, 2013 6:02:13 AM UTC-7, skippy wrote:

 I am trying to load this xml file into a hashmap or list using XMLParser.  
 What ever I try, I keep getting a node list of 1 with all the nodes in it.
  
 Here is an example of the xml file:
 ...


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




Re: Eclipse, GWT, which class to use and how to call it via a hyperlink?

2013-01-16 Thread Andy King
Glyn, just my two cents ... please take it with a grain of salt if you 
don't like it! ... it appears that you have programming experience, and I 
am impressed that you have got as far as you have ... my recommendation is 
that you go through a Java book (e.g., Head First Java) and a GWT book 
(e.g., GWT In Action, 2nd Edition) before trying to proceed with a major 
project.  I don't think it will take you much time to get through the Java 
training, and when you start the GWT book you could just develop your 
application as you learn.

On Monday, January 14, 2013 3:34:32 PM UTC-7, Glyndwr Bartlett wrote:

 I am new to both java and GWT and am using Eclipse (Juno with the GWT 
 plugin) to develop an application for a volunteer organisation. I have 
 created a class called AwardTracker (in org.AwardTracker.client) which is 
 my entry point. This displays a standard login page. I followed a tutorial 
 for this and it is working. The next part I want to implement is to build a 
 page to create an account. For this I have a “Create an account” hyperlink 
 on the login page. I have created a new Package 
 (org.AwardTracker.client.CreateAccount) to hold this class. 

 To create the class I am selecting, at the top of the page, Create new 
 visual classes / GWT / GWT Java UI / Composite is this the correct one?

 Once I have created the page how do I call it with the following event 
 handler?

  Hyperlink hprlnkCreateAnAccount = *new* Hyperlink(Create an 
 account, *false*, newHistoryToken);

  hprlnkCreateAnAccount.addAttachHandler(*new* Handler() {

 *public* *void* onAttachOrDetach(AttachEvent event) {
 }
 Thanks,
 Glyn


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/mK6ybsxo1FQJ.
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 integrate Jsoup in GWT

2013-01-04 Thread Andy King
It appears that Jsoup may be intended for use on the server-side of the 
application, and yet you are using it on the client side.  If you want to 
use it in the client then you'll have to make the source code available to 
the GWT compiler, and the source is in the 
jsoup-1.7.1-sources.jarhttp://jsoup.org/packages/jsoup-1.7.1-sources.jar 
file. 
 Are you sure you want to execute the Jsoup routines from the client?  I 
would probably run Jsoup on the server and communicate with it from the 
client using GWT RPC.

On Friday, January 4, 2013 4:20:51 AM UTC-7, Kaustav Mukherjee wrote:

 I am trying to develop a simple app with *Jsoup*. For that, I have 
 replaced the default code in the *StockWatcher.java* file from GWT with 
 my code, which requires *Jsoup*. I have downloaded the *Jsoup* *jar* file 
 from http://jsoup.org/download (the first link), and placed it in the *
 StockWatcher/war/WEB-INF/lib* folder. After this, the *Jsoup* classes are 
 imported into the class all right (there is no red colored cross sign on 
 those import lines), but while trying to run the app, I am getting an error 
 as shown in the figure. Can anyone give me a step by step help on what to 
 do now? I am new to GWT.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/u5ggULFpDKIJ.
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: ByteBuffer to String

2013-01-04 Thread Andy King
I don't think ByteBuffer is available in GWT ... can you use the first 
solution suggested here: 
http://stackoverflow.com/questions/88838/how-to-convert-strings-to-and-from-utf8-byte-arrays-in-java

On Thursday, January 3, 2013 8:17:11 AM UTC-7, Andres Q wrote:

 Hi!

 I have the following Java code

 import com.google.common.base.Charsets;
 import java.nio.ByteBuffer;

 ByteBuffer msg = ... // a ByteBuffer that contains a String
 String s = Charsets.UTF_8.decode(msg).toString();

 this works fine in Java, but when I try to compile it with GWT I get:

 The method decode(ByteBuffer) is undefined for the type Charset

 What's the proper way, in GWT, to obtain a String (encoded in UTF-8) 
 that's inside a ByteBuffer?

 Thanks!

 ps: this question has also been asked in 
 StackOverflowhttp://stackoverflow.com/questions/14141432/bytebuffer-to-string-in-gwt,
  
 if anyone wants to answer there and gain some rep


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/_dsLsraHmncJ.
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: losing focus on the page when popup comes

2013-01-02 Thread Andy King
Is this for something like a login screen?  I've done this by creating a 
widget ... the UiBinder XML file is as follows (this is in 
LoginWidget.ui.xml):

ui:UiBinder
  xmlns:ui='urn:ui:com.google.gwt.uibinder'
  xmlns:g='urn:import:com.google.gwt.user.client.ui'
  g:FlowPanel
g:LabelLogin is required/g:Label
g:TextBox ui:field='userIdTextBox'User ID/g:TextBox
g:PasswordTextBox 
ui:field='passwordTextBox'Password/g:PasswordTextBox
g:Button ui:field='okButton'OK/g:Button
  /g:FlowPanel
/ui:UiBinder

In the Java source file (LoginWidget.java) I create the UiBinder object in 
the LoginWidget constructor using:

ILoginWidgetBinder = GWT.create(ILoginWidgetBinder.class);
setWidget(binder.createAndBindUi(this));

When I want to display the login request screen I call the login() method:

public void login() {
  setGlassEnabled(true);
  show();
  center();
}

When the OK button is clicked and a response received from the server to 
the login credentials the onSuccess() method executes the hide() method 
to hide the login widget.

On Wednesday, January 2, 2013 7:50:03 AM UTC-7, sreenivas wrote:

 Hi,

 I want to make my complete page to loose focus when popup comes. I mean i 
 should not be able to click any widgets in the background when popup 
 appears. For now, I am able to get the pop up , but I am able to click the 
 buttons in the background page. How should i achieve this blur mechanism on 
 background when popup opens?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/4_jzegSFiRMJ.
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: The purpose of GWt

2012-11-21 Thread Andy King
You can try this: http://lmgtfy.com/?q=gwt+animation+examples

But seriously, there are so many examples available!  Even the GWT showcase 
has an example 
(http://gwt.google.com/samples/Showcase/Showcase.html#!CwAnimation).

On Wednesday, November 21, 2012 1:13:21 PM UTC-7, Goran Bojanic wrote:

 Hi everybody, I was reading little about gwt and I have not found that it 
 is possible to animate objects with gwt. What do i in fact want is to 
 animate shapes in my google site?
 Best regards, Goran


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/iGEfK9HAgbEJ.
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.



Another Request Factory Example (using MySQL)

2012-11-21 Thread Andy King
I have started to create another example/tutorial, this time using MySQL 
for the data (the first example just held the data in memory).  The example 
has some way to go before it is complete, but it may help others even in 
its current state.  The first part of the tutorial includes instructions 
for pulling the code from Google Code and for creating the database table. 
 Here's the link to the first part: GWT Request Factory  
MySQLhttp://greatlogic.com/?p=223. 
 If you didn't go through the first tutorial, which is here: A GWT Request 
Factory Journey http://greatlogic.com/?p=33, then that may be a good idea 
to do first.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bTnlq7AuijoJ.
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.



Configuring .properties file into my project

2012-08-12 Thread King Sam
Hi GWT guys,

Good day to all.

I am working on GWT now and trying to learn every corner of the project. At 
this point of time, I am struck up with configuring the .properties file.

I am using a .properties file in my client package. In that I have given a 
server name defined to a variable(ipAddress1).

I have used interface in the client package and used annotations in that to 
get that server name.

This interface i have used in my client application to get the server name 
from .properties file.

1) Now here, If I need to change the server name in future, I need to 
change in .properties file as well as Interface. Its not a good practice. 
How can I handle this situation?

2) How can I configure the .properties file to my whole project?

3) If the above way is the only process to get all the data in .properties 
file, how can I handle that without using the Constants package in the 
interface?

Here is my sample code:

.properties
---

ipAddress1 = dtjhbtibadm;

Const_Interface.java
-

import com.google.gwt.i18n.client.Constants;

public interface Const_Interface extends Constants{
@DefaultStringValue(dtjhbtibadm)
String ipAddress1();

}

Client App:
---

public class MyApp implements EntryPoint{
..
..
public void onModuleLoad() {
.
.
public void onClick(ClickEvent event) {
Const_Interface cons_intr = (Const_Interface) 
GWT.create(Const_Interface.class);
java.lang.String ipAddress1 = cons_intr.ipAddress1();
java.lang.String ipAddress= ipAddress1;

*.gwt.xml
-

inherits name=com.google.gwt.i18n.I18N/

Jars:
--
gwt-user 1.6.4.jar


Thanks in advance,

Sampath Girish M



 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NWT0JoLNRgcJ.
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.



Class in package can't be resolved to a type

2009-06-05 Thread Dan King

Hi everyone,

I have a GWT project. In that project I created a common package
com.projectName.common When I reference a class from the project I
dont' have an issue in Eclipse. The problem is the GWT Compiler is
unable to compile my code.

I receive errors when trying to use the classes in the common package
that they cannot be resolved to a type

Here is an example. I have a class called testClass in the common
package and I am trying to use it in the entry point for my project:

[ERROR] Line 38: testClass cannot be resolved to a type

Any help is greatly appreciated.

Thanks,
Dan
--~--~-~--~~~---~--~~
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.6.4 war deployment

2009-06-03 Thread Noel King

It can be done using the cypal gwt eclipse plugin by going file 
export  web  war file I used this prior to eclipse plugin.  I use
google gwt for running in eclipse and cypal one for war only now.  I
also believe there is ant script out there have just not used it yet

Cheers

Noel

On Jun 2, 6:24 pm, Miguel Méndez mmen...@google.com wrote:
 We don't currently support exporting to a war from the IDE.  You could do a
 clean build in eclipse, then perform a GWT compile, then you can simply war
 the contents of the war folder.
 We are tracking the export war request as part of the following 
 issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=3584.

 On Tue, Jun 2, 2009 at 12:57 PM, Efren efren.villama...@gmail.com wrote:

  Is there a way to deploy a Eclipse GWT Project to a war file ?
  Im using Eclipse 3.4, GWT 1.6.4, GWT plugin for Eclipse. I want to
  deploy to Websphere Application Server Community Edition server.

 --
 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: Returning to Java after a long lapse and starting with GWT. Any recommended books that cover both?

2009-06-01 Thread Noel King

Hi

Agree with Lars here the documentation on GWT website is excellent
and
If you use eclipse plugin you should be up and running.  I have read a
number
 of the GWT books and think GWT in Practice  is great book for showing
the bigger
picture for GWT demonstrating other technologies it integrates with.
Other than that
Google Web Toolkit Applications was another good read.  Have not
looked lately but you
Should ask yorself how up todate some of these books really are GWT
has made some
Excellent enhancements over last few releases which would not be
picked up in older books

Cheers

Noel

On May 31, 6:58 pm, vogella lars.vo...@googlemail.com wrote:
 Hi,

 I recommed to start with a few GWT online tutorials and see what your
 learning need is.

 Best regards, Lars

 On 30 Mai, 20:50, paw shalo...@gmail.com wrote:

  I've read a few posts with recommended books for GWT, but I haven't
  touched Java since around 1996.  Should I study up on Java before
  learning GWT or do any of the GWT books cover enough Java to learn as
  I go?

  Thanks for any help and 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
-~--~~~~--~~--~--~---



Re: Deployment of default GWT application.

2009-05-05 Thread Dan King

I figured this out. All you need to do is copy the whole war folder
into the Tomcat deploy folder. On Ubuntu that folder is located at /
var/lib/tomcat6/webapps

So say if you have a project named testProject create that folder in
the Tomcat deploy folder, giving you /var/lib/tomcat6/webapps/
testProject

Then reload Tomcat (this may not be needed) and in your browser browse
to http://server address:8080/testProject

And your new app should be loaded. 8080 is the default port used by
Tomcat.

On Apr 28, 1:27 am, Dan King dankin...@gmail.com wrote:
 It works fine when running/debugging in the hosted mode.

 I have Tomcat installed on a separate server but I am not really sure
 how to get it to serve the Java part of the project.

 On Apr 27, 5:01 am, Vitali Lovich vlov...@gmail.com wrote:

  On Mon, Apr 27, 2009 at 4:51 AM, newtoGWT ganesh@gmail.com wrote:

   Did you test your application in hosted mode? try debugging it in the
   hosted mode..

  That kind of defeats the whole deployment aspect of his question.   This
  only helps if you need to debug an error in your application logic, not
  configuration or integration (I'm assuming that he's already done this since
  he talks about deployment to apache).

   On Apr 27, 2:38 am, Dan King dankin...@gmail.com wrote:
Hi there,

Can anyone give me any instructions on how to deploy the default GWT
application. I have successfully gotten the client to appear properly
in the browser by reference it as a website in Apache. The problem I
am getting is when I click Send to send the name to the server I
receive a Remote Procedure Call - Failure message. I'm not sure what I
need to do. Any help is greatly appreciated as I am new to web
development and GWT.

  Apache is an HTTP server.  RPC requires a Java servlet (i.e. served by
  something like Tomcat, JBoss, Glassfish, etc).  Are you properly integrating
  the two?  Typically, AFAIK, you use your Java servlet server to also serve
  the HTML.  I have no experience with deployment of this kind, so I dunno
  (I'm assuming that it is possible to integrate Apache + some Java server - I
  don't even have a clue either way).

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



Size of panels.

2009-05-05 Thread Dan King

I am having some difficulty with the display of a a bunch of panels.

I need a specific layout and am adding a HorizontalPanel with two
Labels on it to a VerticalPanel, named x, with a Label on top and the
HorizontalPanel on the bottom and then adding the VerticalPanel, named
x, to another HorizontalPanel, three times with just different text in
the top Label on VerticalPanel x. Now I have set the size so they fill
100% of the space available. For some reason though the Label with the
different text alters the sizes of the VerticalPanel x's.

Is this normal, how do I make them all the same size?

This is a confusing question so I added the source to what I am doing.

Thanks for any help provided.

private VerticalPanel createClasses(int numOfClasses) {

VerticalPanel classesVPanel = new VerticalPanel();
classesVPanel.setWidth(100%);
for (int i = 0; i  numOfClasses; ++i) {

classesVPanel.add(createClassPanel(Class 
+ Integer.toString(i + 1), 75, 34, 62));
}

return classesVPanel;
}

private VerticalPanel createEssayPanel(int percentMarked) {

HorizontalPanel classHPanel = new HorizontalPanel();
classHPanel.setWidth(100%);

if (percentMarked != 0) {

Label marked = new Label(a);
marked.setStyleName(markedLabel);
marked.setWidth(100%);
classHPanel.add(marked);
classHPanel.setCellWidth(marked, 
Integer.toString(percentMarked)
+ %);
}

if (percentMarked != 100) {

Label waiting = new Label(a);
waiting.setStyleName(unmarkedLabel);
waiting.setWidth(100%);
classHPanel.add(waiting);
int percentWaiting = 100 - percentMarked;
classHPanel.setCellWidth(waiting, 
Integer.toString(percentWaiting)
+ %);
}

VerticalPanel classVPanel = new VerticalPanel();
classVPanel.setWidth(100%);

classVPanel.setBorderWidth(1);

Label essayLabel = new Label(Essay);
essayLabel.setStyleName(classLabel);
classVPanel.add(essayLabel);
classVPanel.add(classHPanel);

return classVPanel;
}

private VerticalPanel createPeerPanel(int percentFinished) {

HorizontalPanel classHPanel = new HorizontalPanel();
classHPanel.setWidth(100%);

if (percentFinished != 0) {

Label marked = new Label(a);
marked.setStyleName(markedLabel);
marked.setWidth(100%);
classHPanel.add(marked);
classHPanel.setCellWidth(marked, 
Integer.toString(percentFinished)
+ %);
}

if (percentFinished != 100) {

Label waiting = new Label(a);
waiting.setStyleName(unmarkedLabel);
waiting.setWidth(100%);
classHPanel.add(waiting);
int percentWaiting = 100 - percentFinished;
classHPanel.setCellWidth(waiting, 
Integer.toString(percentWaiting)
+ %);
}

VerticalPanel classVPanel = new VerticalPanel();
classVPanel.setWidth(100%);

classVPanel.setBorderWidth(1);

Label essayLabel = new Label(Peer );
essayLabel.setStyleName(classLabel);
classVPanel.add(essayLabel);
classVPanel.add(classHPanel);

return classVPanel;
}

private VerticalPanel createAssignmentPanel(int percentFinished) {

HorizontalPanel classHPanel = new HorizontalPanel();
classHPanel.setWidth(100%);

if (percentFinished != 0) {

Label marked = new Label(a);
marked.setStyleName(markedLabel);
marked.setWidth(100%);
classHPanel.add(marked);
classHPanel.setCellWidth(marked, 
Integer.toString(percentFinished)
+ %);
}

if (percentFinished != 100) {

Label waiting = new Label(a);
waiting.setStyleName(unmarkedLabel);
waiting.setWidth(100%);
classHPanel.add(waiting);
int 

Deployment of default GWT application.

2009-04-27 Thread Dan King

Hi there,

Can anyone give me any instructions on how to deploy the default GWT
application. I have successfully gotten the client to appear properly
in the browser by reference it as a website in Apache. The problem I
am getting is when I click Send to send the name to the server I
receive a Remote Procedure Call - Failure message. I'm not sure what I
need to do. Any help is greatly appreciated as I am new to web
development and GWT.

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: No Image of Charts

2009-01-14 Thread King

Anybody here ???
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



No Image of Charts

2009-01-12 Thread King

Hello Guys,

I implemented, the example of gwt-ext charts from the web-site
http://www.gwt-ext.com/demo-charts/ the first example with the lines,
in to my projekt.

I only changed a few little things but now no image is visible ? why ?

If i copy the source code 1 to 1 alone in one projekt without my
porjekt the line chart exampe works

this is the source code, of the implemented version from the line
chart example

package se1.gwt.client;

import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.i18n.client.NumberFormat;
import com.gwtext.client.data.*;

import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.Viewport;
import com.gwtext.client.widgets.chart.yui.LineChart;
import com.gwtext.client.widgets.chart.yui.NumericAxis;
import com.gwtext.client.widgets.chart.yui.SeriesDefY ;
import com.gwtext.client.widgets.form.Label;
import com.gwtext.client.widgets.form.NumberField;
import com.gwtext.client.widgets.form.TextField;
import com.gwtext.client.widgets.grid.*;
import com.gwtext.client.widgets.grid.event.EditorGridListenerAdapter;
import com.gwtext.client.widgets.layout.VerticalLayout;


 public class Ansicht4 extends Composite /*implements EntryPoint*/ {

public Ansicht4() {

final Panel absolutePanel = new Panel();
initWidget(absolutePanel);
/*
final Label ansicht2Label = new Label(Ansicht2);
absolutePanel.add(ansicht2Label, 24, 0);
 Panel panel = new Panel();
 panel.setPaddings(15);

 panel.setLayout(new VerticalLayout(15));
*/
 MemoryProxy proxy = new MemoryProxy(getData());
 RecordDef recordDef = new RecordDef(
 new FieldDef[]{
 new StringFieldDef(month),
 new FloatFieldDef(rent),
 new FloatFieldDef(utilities)
 }
 );

 ArrayReader reader = new ArrayReader(recordDef);
 final Store store = new Store(proxy, reader);
 store.load();

 SeriesDefY[] seriesDef = new SeriesDefY[]{

 new SeriesDefY(Rent, rent),
 new SeriesDefY(Utilities, utilities)

};

 NumericAxis currencyAxis = new NumericAxis();
 currencyAxis.setMinimum(800);
 currencyAxis.setLabelFunction(formatCurrencyAxisLabel);
 final LineChart chart = new LineChart();
 chart.setTitle(Monthly Expenses);
 chart.setWMode(transparent);
 chart.setStore(store);
 chart.setSeries(seriesDef);
 chart.setXField(month);
 chart.setYAxis(currencyAxis);
 chart.setDataTipFunction(getDataTipText);
 chart.setExpressInstall(js/yui/assets/
expressinstall.swf);
 chart.setWidth(500);
 chart.setHeight(400);

 absolutePanel.add(chart);


 Renderer renderer = new Renderer() {
 public String render(Object value, CellMetadata
cellMetadata, Record record, int rowIndex, int colNum, Store store)
{
NumberFormat nf = NumberFormat.getCurrencyFormat();
 return nf.format(((Number) value).doubleValue());
 }
 };
 ColumnConfig monthConfig = new ColumnConfig(Month, month,
150, true);
 TextField monthField = new TextField();
 monthField.setSelectOnFocus(true);
 monthConfig.setEditor(new GridEditor(monthField));

 NumberField rentField = new NumberField();
 rentField.setSelectOnFocus(true);

 ColumnConfig rentConfig = new ColumnConfig(Rent, rent,
100, true);
 rentConfig.setEditor(new GridEditor(rentField));
 rentConfig.setRenderer(renderer);

 NumberField utilitiesField = new NumberField();
utilitiesField.setSelectOnFocus(true);

 ColumnConfig utilitiesConfig = new ColumnConfig(Utilities,
utilities, 100, true);
 utilitiesConfig.setEditor(new GridEditor(utilitiesField));
 utilitiesConfig.setRenderer(renderer);

 ColumnModel columnModel = new ColumnModel(new ColumnConfig[]
{
monthConfig,
 rentConfig,
 utilitiesConfig
 });

 EditorGridPanel grid = new EditorGridPanel();
 grid.setStore(store);
 grid.setClicksToEdit(1);
 grid.setColumnModel(columnModel);
 grid.setWidth(360);

 grid.addEditorGridListener(new EditorGridListenerAdapter()
{
 public void onAfterEdit(GridPanel grid, Record record,
String field, Object newValue, Object oldValue, int rowIndex, int
colIndex) {
 store.commitChanges();
 chart.refresh();
 }
 });

 absolutePanel.add(grid);

 Viewport viewport = new Viewport(absolutePanel);
 }

 private static Object[][] getData() {
 return 

Re: Error's , PLEASE HELP ME :)

2009-01-09 Thread King

hello guys,

at first i thank you all for the big feedback!

I solved the problem :) I have asked friend who helped me

thank you 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
-~--~~~~--~~--~--~---



Images not displaying after Upload

2009-01-03 Thread Noel King

GWT: 1.5.2

Hi,

I am having a problem displaying images after they have been uploaded
to through my web application.  My file upload screen has the file
upload component, with a scaling mechanism sitting behind it, which
all works perfectly.  Once a file has been upload the upload service
returns the URL of the created image back to the client, which I then
use on the client side to add a new image object to my preview panel
on the same page, however the image does not display.

Ultimately, I get a string and build the following code to display the
image on the preview panel
using
//imagefolder =images, which is the name of my base folder in build/
classes/com/mydev/web/ui/public
//URL = returned URL from file upload for example
2/2008/11/30/1230664382652
//ImageSizes.SMALL = small
//ImageSizes.IMAGETYPE = JPG
//full URL equals images/2/2008/11/30/1230664382652small.JPG

Image newImage = new Image(imageFolder+/+URL+ ImageSizes.SMALL
+.+ImageSizes.IMAGETYPE);

However once this displays on the screen the image does not appear but
the empty box instead.  What bothers me is that if I add the following
code to my preview panel the image displays on a recompile:

Image newImage = new Image(images/
2/2008/11/30/1230664382652small.JPG);

Ok so I am not left with logically trying to understand what is the
difference/problem here and I been thinking along the lines of:
1.  Input Streams from upload not closed when create image object
first, however since I can open the image and see all details
correctly in the folder structure I do not think this is the issue.
2.  There may be a need to do a refresh on the panel, which I am
currently trying to investigate.

I have been investigating and debugging this for about 3 days now and
have had no luck searching forums.  I am hoping somebody here with a
deeper understanding of how browsers/GWT handles image retrieval can
point me in the right directions.  Any help with this would be much
appreciated.

Thanks,

Noel

--~--~-~--~~~---~--~~
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: Error's , PLEASE HELP ME :)

2008-12-30 Thread King


 This looks like the problem-tab in Eclipse. More interesting would
 be the log-window of the server when you start your project in
 hosted mode.

I get the same error message like before in hosted mode:

[ERROR] Unable to load module entry point class
se1.gwt.client.StringCounterClient (see associated exception for
details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' ist Null oder kein Objekt
 number: -2146823281
 description: '$wnd.Ext.StatusBar' ist Null oder kein Objekt
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.clinit(Component.java:108)
at se1.gwt.client.StringCounterClient.onModuleLoad
(StringCounterClient.java:22)

But i dont understand, why i get the error symbol on the public folder
in the gwt projekt... I included the file system of gwt-ext after that
i have a red, x on the icon of the public folder!


 If you're not using GWT 1.5 you should change your JDK to 1.4 BTW.

I use GWT 1.5.3 ...


 If nothing works you might consider changing the list to the
 mailing-list of GWT-Ext. They also reside at Google Groups but
 the people should be different.

how can i change it ?


thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: Error's , PLEASE HELP ME :)

2008-12-30 Thread King


 This looks like the problem-tab in Eclipse. More interesting would
 be the log-window of the server when you start your project in
 hosted mode.

I get the same error message like before in hosted mode:

[ERROR] Unable to load module entry point class
se1.gwt.client.StringCounterClient (see associated exception for
details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' ist Null oder kein Objekt
 number: -2146823281
 description: '$wnd.Ext.StatusBar' ist Null oder kein Objekt
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.clinit(Component.java:108)
at se1.gwt.client.StringCounterClient.onModuleLoad
(StringCounterClient.java:22)

But i dont understand, why i get the error symbol on the public folder
in the gwt projekt... I included the file system of gwt-ext after that
i have a red, x on the icon of the public folder!


 If you're not using GWT 1.5 you should change your JDK to 1.4 BTW.

I use GWT 1.5.3 ...


 If nothing works you might consider changing the list to the
 mailing-list of GWT-Ext. They also reside at Google Groups but
 the people should be different.

how can i change it ?


thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: Error's , PLEASE HELP ME :)

2008-12-29 Thread King

Hello Lothar :)

I will explain my problem in german... Maybe than we wont have this
communication problems :)

Also ich habe schon einiges versucht und gegoogelt habe ich auch
schon...

Meine Vermutung ist einfach, es stimmt was mit EntryPoint{ und
onModulLoad() .. was nicht! Die zweite Fehlermeldung kann man ja
ausser acht lassen, weil
es sich auf das erste Problem bezieht!

würde mich fruen wenn mir da jemand erklär was es so mit entrypoint
und so auf sich hat

LG

--~--~-~--~~~---~--~~
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: Error's , PLEASE HELP ME :)

2008-12-28 Thread King



On 27 Dez., 14:12, Lothar Kimmeringer j...@kimmeringer.de wrote:
 King schrieb:

  com.google.gwt.core.client.JavaScriptException: (TypeError):
  '$wnd.Ext.StatusBar' ist Null oder kein Objekt

 Have you searched for this error-message using your search-engine
 of least mistrust? There should be a lot of threads about this.



  I use:
 [...]
  GWT-EXT: 2.0.5.3

 the wrapper-classes but not the Javscript-library of Ext...

 Regards, Lothar



which search engine do you mean ? Do mean that I habe to search in the
Internet ?... Can you explain it to me clearlear ?

I included the gwt-ext.jar file in eclipse ?


--~--~-~--~~~---~--~~
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: Error's , PLEASE HELP ME :)

2008-12-28 Thread King



On 27 Dez., 14:12, Lothar Kimmeringer j...@kimmeringer.de wrote:
 King schrieb:

  com.google.gwt.core.client.JavaScriptException: (TypeError):
  '$wnd.Ext.StatusBar' ist Null oder kein Objekt

 Have you searched for this error-message using your search-engine
 of least mistrust? There should be a lot of threads about this.



  I use:
 [...]
  GWT-EXT: 2.0.5.3

 the wrapper-classes but not the Javscript-library of Ext...

 Regards, Lothar



which search engine do you mean ? Do mean that I habe to search in the
Internet ?... Can you explain it to me clearlear ?

I included the gwt-ext.jar file in eclipse ?


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



Error's , PLEASE HELP ME :)

2008-12-26 Thread King

Hello Guys,

I get the following Error Message, if I try to run the chart example
from the page http://www.gwt-ext.com/demo-charts/#lineChart ... I
included the source code in my projekt , I only rename the
source to StringCounterClient, dont ask why :) !

The Error Message is:
[ERROR] Unable to load module entry point class
se1.gwt.client.StringCounterClient (see associated exception for
details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' ist Null oder kein Objekt
 number: -2146823281
 description: '$wnd.Ext.StatusBar' ist Null oder kein Objekt
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.clinit(Component.java:108)

the secon error Message is:
[ERROR] Failure to load module 'se1.gwt.StringCounterClient'

I get this messages on the the shell (Web-Browser) if i want to run
the projekt as a gwt application
...

Technical details:
I use:
Eclipse 3.4.1
GWT: 1.5.3
GWT-EXT: 2.0.5.3

this is the source code of GWT-EXT Charts, with the changes from me on
line 18:

package se1.gwt.client;


 import com.google.gwt.core.client.EntryPoint;
 import com.google.gwt.i18n.client.NumberFormat;
 import com.gwtext.client.data.*;
 import com.gwtext.client.widgets.Panel;
 import com.gwtext.client.widgets.Viewport;
 import com.gwtext.client.widgets.chart.yui.LineChart;
 import com.gwtext.client.widgets.chart.yui.NumericAxis;
 import com.gwtext.client.widgets.chart.yui.SeriesDefY;
 import com.gwtext.client.widgets.form.NumberField;
 import com.gwtext.client.widgets.form.TextField;
 import com.gwtext.client.widgets.grid.*;
 import
com.gwtext.client.widgets.grid.event.EditorGridListenerAdapter;
 import com.gwtext.client.widgets.layout.VerticalLayout;

 public class StringCounterClient implements EntryPoint {

public void onModuleLoad() {

 Panel panel = new Panel();
 panel.setPaddings(15);

panel.setLayout(new VerticalLayout(15));

 MemoryProxy proxy = new MemoryProxy(getData());
 RecordDef recordDef = new RecordDef(
 new FieldDef[]{
 new StringFieldDef(month),
 new FloatFieldDef(rent),
 new FloatFieldDef(utilities)
 }
 );

 ArrayReader reader = new ArrayReader(recordDef);
 final Store store = new Store(proxy, reader);
 store.load();

 SeriesDefY[] seriesDef = new SeriesDefY[]{

 new SeriesDefY(Rent, rent),
 new SeriesDefY(Utilities, utilities)

 };

 NumericAxis currencyAxis = new NumericAxis();
 currencyAxis.setMinimum(800);
 currencyAxis.setLabelFunction(formatCurrencyAxisLabel);
 final LineChart chart = new LineChart();
 chart.setTitle(Monthly Expenses);
 chart.setWMode(transparent);
 chart.setStore(store);
 chart.setSeries(seriesDef);
 chart.setXField(month);
 chart.setYAxis(currencyAxis);
 chart.setDataTipFunction(getDataTipText);
 chart.setExpressInstall(js/yui/assets/
expressinstall.swf);
 chart.setWidth(500);
 chart.setHeight(400);

 panel.add(chart);


 Renderer renderer = new Renderer() {
 public String render(Object value, CellMetadata
cellMetadata, Record record, int rowIndex, int colNum, Store store)
{
 NumberFormat nf = NumberFormat.getCurrencyFormat();
 return nf.format(((Number) value).doubleValue());
 }
 };
 ColumnConfig monthConfig = new ColumnConfig(Month, month,
150, true);
 TextField monthField = new TextField();
 monthField.setSelectOnFocus(true);
 monthConfig.setEditor(new GridEditor(monthField));

 NumberField rentField = new NumberField();
 rentField.setSelectOnFocus(true);

 ColumnConfig rentConfig = new ColumnConfig(Rent, rent,
100, true);
 rentConfig.setEditor(new GridEditor(rentField));
 rentConfig.setRenderer(renderer);

 NumberField utilitiesField = new NumberField();
 utilitiesField.setSelectOnFocus(true);

 ColumnConfig utilitiesConfig = new ColumnConfig(Utilities,
utilities, 100, true);
 utilitiesConfig.setEditor(new GridEditor(utilitiesField));
 utilitiesConfig.setRenderer(renderer);

 ColumnModel columnModel = new ColumnModel(new ColumnConfig[]
{
 monthConfig,
 rentConfig,
 utilitiesConfig
 });

 EditorGridPanel grid = new EditorGridPanel();
 grid.setStore(store);
 grid.setClicksToEdit(1);
 grid.setColumnModel(columnModel);
 grid.setWidth(360);

 grid.addEditorGridListener(new EditorGridListenerAdapter()
{
 public void onAfterEdit(GridPanel grid, Record record,
String field, Object newValue, Object oldValue, int rowIndex, int
colIndex) {

Implement a Calender to the Navigation on the left side

2008-12-02 Thread King

hello everybody,

I start to programming with GWT Designer yesterday... My Question is,
if anybody knows how i can implement a small calender to the left
panel! I didnt do it before in java or something else... Is there a
easy way ???

Thank you very much!!!

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



applicationCreator failed to start

2008-11-15 Thread Google King

Hi.
applicationCreator faild to start in my windows sys.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



gwt downloading

2008-11-08 Thread Google King

Hi;
Who I can download gwt perfectly?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



gwt zipped file problem

2008-11-03 Thread Google King

Hi,
i want to start using [google web toolkit] but i meet problem with
extracting the zipped file (gwt-windows-1.5.2.zip) in my computer
windows , i used Winzip and Winrar which gives me error massage that
the compressed file is defective or somthing like that.
pls help me to solve this problem.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



gwt-windows-1.5.2.zip Problem

2008-10-30 Thread Google King

Hi,
i want to start using [google web toolkit] but i meet problem with
extracting the zipped file (gwt-windows-1.5.2.zip) in my computer
windows , i used Winzip and Winrar which give me error massage that
the compressed file is defective or somthing like that
pls help me to solve this problem


--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---