Good knowledge source for GWTEvent Handling?

2010-07-06 Thread crojay78
Hi,

actually I trying to understand in detail the GWTEvent Handling, does
anyone has good links to articles or something else helpful for that?
I

Thanks for your responses

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



Re: Easily fixable: Issue 2892 Option Element warnings

2010-07-06 Thread Jurriaan Mous
Thanks for the reply! Somehow didn't know I could send in patches as I
missed the functionality in the GWT google code issue tracker. :)

The patch is now on Rietveld and I also signed a CLA.

Now I hope this patch gets applied soon :)
http://gwt-code-reviews.appspot.com/632803/show

Jurriaan

On Jul 5, 11:39 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 5 juil, 13:06, Jurriaan Mous arque...@gmail.com wrote:


  I would like to bring an old Issue 2892 to your attention. Some option
  fields used as date selectors in our application keep outputting many
  annoying warnings. Causing a 15 to 20 second wait before we could
  continue on some views. Particularly year selection has a lot of years
  because they are for selecting birth days of older people. We could
  set the logging level higher but then we don't see the normal logs we
  included in testing.

  The fix is very simple. Somebody could remove the returns from the
  methods that should return a void to remove the warning. This is a
  very small task but not yet done in the years in the existence of the
  issue report. It would make us very happy to properly test those views
  with option elements in our app. :)

  The issue with a proposed 
  fix:http://code.google.com/p/google-web-toolkit/issues/detail?id=2892
  (I am arquelis in the issue and posted a possible fix months ago)

  Could somebody in the list find a way to have this issue fixed? You
  will be in our eternal gratitude! :)

 Seehttp://code.google.com/webtoolkit/makinggwtbetter.html#submittingpatches

 Sending patches makes things faster than explaining a fix. If you can
 add a unittest (in this case, it shouldn't be necessary), it's even
 better. But more than that, signing the Contributor License Agreement
 is probably a must fr contributions to be accepted.

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



Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread tarik
Dear Sir,
We are developing an application using GWT, this application is very
heavy of widgets, we are using a datatable that is developed in
JQuery. We are suffering from a big memory leak. I did not find yet a
way to resolve this problem can anyone help me please. The problem we
have is that the memory on the hosted machine keeps increasing all the
time. Can you please propose anyway to decrease the consumption of
memory on my application? Please it is an urgent matter.
nd
help!

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



Web Runtime Curriculum Advanced v1.0 Beta

2010-07-06 Thread James Baker
Hey Guys
Was going through this great Curriculum from Forum Nokia website,
thought to share it with you.
This set contains the following lectures: WRT widget structure, Ajax,
UI Development, Platform Services, Performance, and Homescreen
Widgets.
Topics covered are:
•   Symbian^3
•   Tools
•   IDE
•   Aptana Studio
•   Training
•   UI
•   UI Design
•   Web Technology
•   Web Runtime (WRT)
•   Widget for S60
Download it here http://bit.ly/dw0rMJ

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



Re: How to put a CellTable into a fixed relative sized div?

2010-07-06 Thread jantekb
Still no solution.. Do you think this might be a bug?

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



Re: Image Format Conversion + alternative to FileOutputStream

2010-07-06 Thread hriess
Here is a part from a servlet I use to scale pictures:

protected void doPost(HttpServletRequest request,
HttpServletResponse response) throws ServletException, 
IOException
{
...
String angleStr = request.getParameter(angle);
...
// scale the image
ParameterBlock parameterBlock = new ParameterBlock();
parameterBlock.addSource(convertedImage);
parameterBlock.add(scale);
parameterBlock.add(scale);
parameterBlock.add(0.0f);
parameterBlock.add(0.0f);
parameterBlock.add(new InterpolationNearest());
PlanarImage scaledImage = JAI.create(scale, parameterBlock);

// create a jpeg stream
ByteArrayOutputStream byteArrayOutputStream = new
ByteArrayOutputStream();
JAI.create(encode, scaledImage, byteArrayOutputStream, jpeg);
ServletOutputStream servletOutputStream = response
.getOutputStream();
servletOutputStream.write(byteArrayOutputStream.toByteArray());

On the client side use the GWT image method 'setUrl' to pass the
parameters to te servlet (angle in the example).
Maybe I've misunderstood, but this istn't really a GWT problem.

I hope this helps
Holger

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



gson module problem

2010-07-06 Thread Ahmed Shoeib
Welcome ,

i add gson lib version 1.4

and i face a problem when trying to inherit it in the gwt.xml file

how i can fix this problem ???


thanks ,
ahmed shoeib

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



Re: onSuccess() return value other than void?

2010-07-06 Thread day_trader
Thanks for the replies thus far.

That all makes sense. I did have strong doubts about the likelihood of
what I wanted but as I am not an expert in the field I thought it was
better to make sure.

Actually, my problems would be solved quite quickly if I got around my
initial problem that led to this posting. Basically, there is a class
in my client side, under myApp.client.models.SomeModel that I need to
pass to the server. The problem is that the server cannot see this
class as I get an error when I try to compile it. My question is: How
do I check if the class is on my SERVER classpath?

Thanks :)

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



Re: gson module problem

2010-07-06 Thread Harald Pehl
You cannot use gson in GWT. See
http://groups.google.com/group/google-gson/browse_thread/thread/6c3d6476113282e/d09bb094eca25a97
for more infos.

If you need a JSON parser for GWT take a look at Piriti (http://
code.google.com/p/piriti/).

- Harald

On 6 Jul., 12:30, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:
 Welcome ,

 i add gson lib version 1.4

 and i face a problem when trying to inherit it in the gwt.xml file

 how i can fix this problem ???

 thanks ,
 ahmed shoeib

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



Re: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread metrixon
First of all: DON'T PANIC - the possibility of a good answer does
not correlate with the number of exclamation marks used in the subject
or text.

Now concerning your problem:
your problem description is very vague - essentially you are saying:
my application does not work - tell me how to fix it. If the memory
consumption increases on the machine that is hosting your application,
the problem has nothing to do with GWT at all, since all the
javascript code is generated at compile time and executed on the
client side (in the browser).
Your description indicates that your server side code is leaking
memory. The best way to fix this problem is to thoroughly analyse your
application's runtime behaviour by profiling the application with
tools like JProfiler, Yourkit or the NetBeans Profiler.


On 6 Jul., 11:12, tarik tarikkan...@gmail.com wrote:
 Dear Sir,
 We are developing an application using GWT, this application is very
 heavy of widgets, we are using a datatable that is developed in
 JQuery. We are suffering from a big memory leak. I did not find yet a
 way to resolve this problem can anyone help me please. The problem we
 have is that the memory on the hosted machine keeps increasing all the
 time. Can you please propose anyway to decrease the consumption of
 memory on my application? Please it is an urgent matter.
 nd
 help!

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



Re: JSON Problem

2010-07-06 Thread André Moraes
I don't think that the Gson project can be used as a GWT module.

Looks like it is for pure java development, not GWT development.

Take a look at: http://code.google.com/p/piriti/

http://code.google.com/p/piriti/This project is a GWT library that provide
JSON and XML facilities.

On Tue, Jul 6, 2010 at 5:22 AM, Ahmed Shoeib
ahmedelsayed.sho...@gmail.comwrote:

 i face this problem
 how i can fix it

 the problem



 /AdminPanel.java'
 [ERROR] Line 139: No source code is available for type
 com.google.gson.Gson; did you forget to inherit a required module?


 Thanks,
 ahmed shoeib


 On Jul 5, 9:33 pm, André Moraes andr...@gmail.com wrote:
  The response comes async.
 
  When the response from the server arrives at the client the method
  onResponseReceived in the RequestCallback object is called, if an
  error hapens the the onErrormethod is called.
 
  The RequestCallback object is the second parameter in the sendRequest
  function call.
 
  public void onResponseReceived(Request
  request, Response response)
  {
  if (response.getStatusCode()
  == 200 || response.getStatusCode()
  == 304)
  {
  JavaScriptObject
  responseData =
  JsonHelper.stringToJso(response.getText()).cast());
  // use the response
  }
  else
  {
  // invalid response
  }
  }
  @Override
  public void onError(Request request,
  Throwable exception) {
  // error on the resquest
  }
  });
 
  On 5 jul, 15:01, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:
 
   you told me how to send request from client to server
 
   now i want how yo get data from server to use it in client
 
   and the data in json
 
   On Jul 5, 8:12 pm, André Moraes andr...@gmail.com wrote:
 
This code is quite simple
 
The line:
 
 re = rb.sendRequest(jsonrpc-call= + JsonHelper.jsoToString(call),
new RequestCallback()
 
prepare a AJAX call to the server and make your javascript object to
 a
string using JsonHelper.jsoToString.
In ther server the json-string will be accessible by the parameter
jsonrpc-call.
 
The line:
 
if (response.getStatusCode()
== 200 || response.getStatusCode()
== 304)
{
JavaScriptObject
responseData =
JsonHelper.stringToJso(response.getText()).cast());
// use the response
}
 
get the response wrote by the server and make i availabe as a
JavaScriptObject.
 
You can use the JSONObject class to populate and read a
JavaScriptObject.
 
You can read more about JSON + GWT at:
 
   
 http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuide...
andhttp://
 code.google.com/intl/webtoolkit/webtoolkit/articles/using_gwt_...
On 5 jul, 12:50, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:
 
 i want a simple example to describe it
 cause i need it as soon as possible
 
 On Jul 5, 6:18 pm, André Moraes andr...@gmail.com wrote:
 
  re = rb.sendRequest(jsonrpc-call= +
 JsonHelper.jsoToString(call),
  new RequestCallback() {
 
  @Override
  public void
 onResponseReceived(Request request, Response response)
  {
  if
 (response.getStatusCode() == 200 || response.getStatusCode()
  == 304)
  {
  JavaScriptObject
 responseData =
  JsonHelper.stringToJso(response.getText()).cast());
  // use the response
  }
  else
  {
  // invalid response
  }
  }
 
  @Override
  public void onError(Request
 request, Throwable exception) {
  // error on the resquest
  }
  });
 
  public class JsonHelper {
 
  public static String jsoToString(JavaScriptObject jso) {
  if (isJsonLibraryDefined()) {
  return 

Re: How GWT-RPC handles polymorphic serialization?

2010-07-06 Thread André Moraes
?

2010/7/5 André Moraes andr...@gmail.com

 The GWT has the standard GWT-RPC to make easier to create RPC calls
 and fetch data from the server, but this tool only works if we have
 Java on the server side.

 In my current project, the server side will be .NET based.

 So I wrote a JSON-RPC library which implements the JSON-RPC standard
 to provide RPC facilities.

 The library is OK but I don't have the serialization facilities and I
 need to manually populate a JavaScriptObject with the information that
 i want transfered.

 I started now to write a automated serialization for the objects based
 on Annotations and Generatos, but i don't know how to discover the
 type of my object at runtime.

 I have a lot of polymorphic associations and will be nice to have some
 of those  in my DTO's.

 So is there a way that I can get the type of a Object in GWT at
 runtime or I need to provide some Interface that my DTO's will need to
 implement that will have a method which returns some value that
 identify the type?

 If I need to use the Interface approach, is there a way that using
 generators I change the code of the class and then implement in a
 automated way? (Whithout defining the generator for each class in the
 module.gwt.xml)

 Thanks.

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




-- 
André Moraes
Analista de Desenvolvimento de Sistemas
andr...@gmail.com
http://andredevchannel.blogspot.com/

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



Re: align the widgets in DocLayoutPanel

2010-07-06 Thread Merih
Hello all,


I've created  a new Vertical Panel and I've added it in East Edge.
Than I put the FlexTable in the Vertical Panel. But I still didnt
align it on right side. I still cant change the position.. :(


private DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
private VerticalPanel vPanel = new VerticalPanel();
private FlexTable testFlexTable = new FlexTable();


p.addNorth(new HTML(north), 5);
p.addSouth(new HTML(south), 2);
p.addEast(vPanel,40);
p.addWest(new HTML(west));
p.add(new HTML(center));


testFlexTable.setText(0, 0, Symbol);
testFlexTable.setText(0, 1, Price);
testFlexTable.setText(0, 2, Change);
testFlexTable.setText(0, 3, Remove);


// I have tried to set the position of the Vertical Panel. But It
didnt worked. It is still left side..


vPanel.add(testFlexTable);
vPanel.setHorizontalAlignment(HasAlignment.ALIGN_RIGHT);
vPanel.setCellHorizontalAlignment(testFlexTable,
HasAlignment.ALIGN_RIGHT);


any idea?


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



Joseph Favara/HQ/Corp/OAI is out of the office.

2010-07-06 Thread Joseph . Favara

I will be out of the office starting  07/06/2010 and will not return until
07/07/2010.

I will respond to your message when I return. If this is urgnet please
contact Paul Frasceschini at 105628

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



Re: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread Daniel Le Clere
Use the new data table widget in gwt 2.1 M2

On Jul 6, 10:40 pm, metrixon metri...@gmail.com wrote:
 First of all: DON'T PANIC - the possibility of a good answer does
 not correlate with the number of exclamation marks used in the subject
 or text.

 Now concerning your problem:
 your problem description is very vague - essentially you are saying:
 my application does not work - tell me how to fix it. If the memory
 consumption increases on the machine that is hosting your application,
 the problem has nothing to do with GWT at all, since all the
 javascript code is generated at compile time and executed on the
 client side (in the browser).
 Your description indicates that your server side code is leaking
 memory. The best way to fix this problem is to thoroughly analyse your
 application's runtime behaviour by profiling the application with
 tools like JProfiler, Yourkit or the NetBeans Profiler.

 On 6 Jul., 11:12, tarik tarikkan...@gmail.com wrote:



  Dear Sir,
  We are developing an application using GWT, this application is very
  heavy of widgets, we are using a datatable that is developed in
  JQuery. We are suffering from a big memory leak. I did not find yet a
  way to resolve this problem can anyone help me please. The problem we
  have is that the memory on the hosted machine keeps increasing all the
  time. Can you please propose anyway to decrease the consumption of
  memory on my application? Please it is an urgent matter.
  nd
  help!

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



Re: align the widgets in DocLayoutPanel

2010-07-06 Thread Stefan Bachert
Hi,

this works.

public class A implements EntryPoint {
  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
p.addNorth(new HTML(north), 5);
p.addSouth(new HTML(south), 4);
HTML east = new HTML(div style='float: right;'east/div);
p.addEast(east, 20);
p.addWest(new HTML(west), 6);

Style style = p.getElement().getStyle();
style.setPosition(Position.ABSOLUTE);
style.setLeft(0, Unit.PX);
style.setRight(0, Unit.PX);
style.setTop(0, Unit.PX);
style.setBottom (0, Unit.PX);
RootPanel.get().add(p);
   }
}

Stefan Bachert
http://gwtworld.de

On Jul 2, 6:06 pm, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 try

 DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
 p.addNorth(new HTML(north), 5);
 p.addSouth(new HTML(south), 2);
 HTML east = new HTML(east);
 east.getElement().getStyle().setProperty(marginRight, auto);
 p.addEast(east, 20);
 p.addWest(new HTML(west), 2);

 Not tested yet

 Stefan Bacherthttp://gwtworld.de

 On Jul 2, 10:28 am, nasionalem sakarya.me...@gmail.com wrote:

  Hello,

  I'm new in GWT development and need some help.
  I use GWT 2.0 and in my project I have a  DockLayoutPanel which
  inculudes north, south, east and west. I have added a widget in East
  edge. But Its on right side of the East edge. How can I align the
  widget to the right side in East edge?

  // Sample Code

  DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
  p.addNorth(new HTML(north), 5);
  p.addSouth(new HTML(south), 2);
  p.addEast(new HTML(east), 20);
  p.addWest(new HTML(west), 2);

  p.addEast(sampleWidget,20);

  //I have tried this
  //
  mainPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
  //But it just align the things (texts, buttons...) to right side in
  the widget.
  // The widget still right side

  Thanks

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



Re: SuggestBox question - is it possible to react on sub sequences of the words?

2010-07-06 Thread crojay78
Thanks for your reponses.

So now I know that it is addtionally effort to do it, so I can talk to
my project manager :-)
I just wanted to be sure, that there is not a easy/fast way to do it.

On 4 Jul., 10:30, Sebastian Rothbucher
sebastian.rothbuc...@clarities.de wrote:
 Hi, I guess you have to provide an own SuggestionOracle which searches
 a List with a search algorithm that is a s good as possible... - I did
 provide an own suggestion oracle for another occation and it works
 quite well...

 On Jul 2, 5:21 pm, crojay78 croja...@googlemail.com wrote:



  Hi,

  I am using the suggest box in my app. Now I'm searching for the
  possibility to change the filter. Is it possible to change the
  behaviour so that not only words which start with the input will be
  suggested also words where the input occurs anywhere in the name.

  If I have a list like this

  Jim
  Tim
  Mike
  Frank

  Now it just reacts if you hit the first character. But I want that if
  you type in im you would have Jim and Tim as suggestions

  Thanks

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



Re: Make a Banner rotator whit ClientBundle or Java Script Nativ, what do you recomended?

2010-07-06 Thread Stefan Bachert
Hi,

Your question sounds like you want to add ads.

ClientBundle is good for small static images. But do you want to
recompile your app each time when an ads changes?

Stefan Bachert
http://gwtworld.de



On 5 Jul., 14:10, Jero jero.carr...@gmail.com wrote:
 It is possible to insert multiple images with ClienteBundle and make a
 banner rotator? or make whit java script?

 Thanks Very much,
 Greetigs
 Jero.

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



Best way to handle multiple ajax calls of the same widget

2010-07-06 Thread Thiago Miranda de Oliveira
Hi.
I'm working in a page that has some items that if the user clicks at
one, a table will be updated with an ajax call that brings the
information about the item clicked.
The problem is that when the user choose a item ( making the ajax call
A ) and them choose another ( making the ajax call B without waiting
for the first ajax call to complete ) sometimes the ajax call B
completes before the A one and them the widget updates the table with
the B data. After the A completes, the table updates with the A data
and thats the problem.
Is there a way to control that? I was thinking in abort the first call
but I really don't know how to do that. Has anyone come across with
this issue and has a good way to solve that?

The code:
dispatch.executeWithCache(new GetMedia(id),
new AsyncCallbackGetMediaResult() {

@Override
public void onFailure(Throwable caught) 
{
table.removeAllRows();
table.setHTML(0, 0, Connection 
Failure);
t.cancel();
}

@Override
public void onSuccess(GetMediaResult 
result) {
t.cancel();
if (result.getMediaList() != 
null) {
if (mediaList != null) {

mediaList.clear();
}
mediaList = 
result.getMediaList();
$(#projects h1, 
getElement()).html(Conta strong + id + /
strong com strong + mediaList.size() + /strong campanhas);
initFill(15, 1);
if (status != null) {
updateTable(0, 
15, status);
}
}
}
});

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



Re: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread tarik kandil
when I am testing my application on IE6, the problem that I find, is that
the memory consumption keeps increasing. The same thing for Firefox.
Besides, I apologize because my web application is running but once  I click
too many times the memory increases and it crashes. Can you please tell me
how I can fix this? Thank you in advance. I am using a data table that has
been developed in JQuery. And it seems that when I go to another page My
application still references the same datatable. I want to know if there
exist a way to delete all the doms and divisions that every time I create my
table. If there exist any methods that I can add on the unload method when I
detach my widget. Honestly it is an urgent matter, can you help me please?
Thank you.

On Tue, Jul 6, 2010 at 1:16 PM, Daniel Le Clere daniel.lecl...@gmail.comwrote:

 Use the new data table widget in gwt 2.1 M2

 On Jul 6, 10:40 pm, metrixon metri...@gmail.com wrote:
  First of all: DON'T PANIC - the possibility of a good answer does
  not correlate with the number of exclamation marks used in the subject
  or text.
 
  Now concerning your problem:
  your problem description is very vague - essentially you are saying:
  my application does not work - tell me how to fix it. If the memory
  consumption increases on the machine that is hosting your application,
  the problem has nothing to do with GWT at all, since all the
  javascript code is generated at compile time and executed on the
  client side (in the browser).
  Your description indicates that your server side code is leaking
  memory. The best way to fix this problem is to thoroughly analyse your
  application's runtime behaviour by profiling the application with
  tools like JProfiler, Yourkit or the NetBeans Profiler.
 
  On 6 Jul., 11:12, tarik tarikkan...@gmail.com wrote:
 
 
 
   Dear Sir,
   We are developing an application using GWT, this application is very
   heavy of widgets, we are using a datatable that is developed in
   JQuery. We are suffering from a big memory leak. I did not find yet a
   way to resolve this problem can anyone help me please. The problem we
   have is that the memory on the hosted machine keeps increasing all the
   time. Can you please propose anyway to decrease the consumption of
   memory on my application? Please it is an urgent matter.
   nd
   help!

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




-- 
Tarik Kandil
Consultant Informatique

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



Re: How GWT-RPC handles polymorphic serialization?

2010-07-06 Thread Paul Stockley
You need to use deferred binding i.e. GWT.create and write a code
generator. I suggest you check out the GWT source code from SVN and
look at their RPC generator code.

On Jul 6, 8:54 am, André Moraes andr...@gmail.com wrote:
 ?

 2010/7/5 André Moraes andr...@gmail.com





  The GWT has the standard GWT-RPC to make easier to create RPC calls
  and fetch data from the server, but this tool only works if we have
  Java on the server side.

  In my current project, the server side will be .NET based.

  So I wrote a JSON-RPC library which implements the JSON-RPC standard
  to provide RPC facilities.

  The library is OK but I don't have the serialization facilities and I
  need to manually populate a JavaScriptObject with the information that
  i want transfered.

  I started now to write a automated serialization for the objects based
  on Annotations and Generatos, but i don't know how to discover the
  type of my object at runtime.

  I have a lot of polymorphic associations and will be nice to have some
  of those  in my DTO's.

  So is there a way that I can get the type of a Object in GWT at
  runtime or I need to provide some Interface that my DTO's will need to
  implement that will have a method which returns some value that
  identify the type?

  If I need to use the Interface approach, is there a way that using
  generators I change the code of the class and then implement in a
  automated way? (Whithout defining the generator for each class in the
  module.gwt.xml)

  Thanks.

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

 --
 André Moraes
 Analista de Desenvolvimento de Sistemas
 andr...@gmail.comhttp://andredevchannel.blogspot.com/

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



Get the event associated with the flex table row

2010-07-06 Thread Anky
Hi,

The idea here is to copy a row from one flex table to another. Copying
is okay but when the copied row gets inserted as a new row in target
flex table, the row looses the event associated with it. Each row is a
composite widget consists of a label and button. The button has a
delete functionality and label has some load functionality on double
click. Is there any way to retain the events associated with button
and label as a row so that when copied to another table should
function the same way as it was in the previous table.

Thanks,
Ankit

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



Re: GWT 2.0.4 is now available

2010-07-06 Thread jhulford
Sorry, what I meant was, projects developed at Google rarely utilize
Maven.

On Jul 4, 10:55 am, Mikael Couzic mikaelcou...@gmail.com wrote:
  I'm pretty sure the GWT group is not providing them because very
  few, if any, projects internally utilize maven.

 I do not agree. I use Maven, I believe many GWT projects use Maven,
 and the GWT group should make the effort to manage GWT releases on the
 Maven central repository.

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



Re: Image Format Conversion + alternative to FileOutputStream

2010-07-06 Thread rohit jain
I was able to make the above code work with changes. But yours seems a
good approach as well.
Thank you for the help :)


On Jul 6, 3:21 pm, hriess hriess.chemn...@t-online.de wrote:
 Here is a part from a servlet I use to scale pictures:

         protected void doPost(HttpServletRequest request,
                         HttpServletResponse response) throws 
 ServletException, IOException
 {
         ...
         String angleStr = request.getParameter(angle);
         ...
         // scale the image
         ParameterBlock parameterBlock = new ParameterBlock();
         parameterBlock.addSource(convertedImage);
         parameterBlock.add(scale);
         parameterBlock.add(scale);
         parameterBlock.add(0.0f);
         parameterBlock.add(0.0f);
         parameterBlock.add(new InterpolationNearest());
         PlanarImage scaledImage = JAI.create(scale, parameterBlock);

         // create a jpeg stream
         ByteArrayOutputStream byteArrayOutputStream = new
 ByteArrayOutputStream();
         JAI.create(encode, scaledImage, byteArrayOutputStream, jpeg);
         ServletOutputStream servletOutputStream = response
                         .getOutputStream();
         servletOutputStream.write(byteArrayOutputStream.toByteArray());

 On the client side use the GWT image method 'setUrl' to pass the
 parameters to te servlet (angle in the example).
 Maybe I've misunderstood, but this istn't really a GWT problem.

 I hope this helps
 Holger

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



Re: GWT 2.0.4 is now available

2010-07-06 Thread Frederic Conrotte
It'll probably come with GWT 2.1, because of the integration with Spring Roo 
which requires Maven

good news, thanks!

On Jul 6, 4:15 pm, jhulford jhulf...@gmail.com wrote:
 Sorry, what I meant was, projects developed at Google rarely utilize
 Maven.

 On Jul 4, 10:55 am, Mikael Couzic mikaelcou...@gmail.com wrote:

   I'm pretty sure the GWT group is not providing them because very
   few, if any, projects internally utilize maven.

  I do not agree. I use Maven, I believe many GWT projects use Maven,
  and the GWT group should make the effort to manage GWT releases on the
  Maven central repository.

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



Re: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread tarik kandil
Can you tell me the name of the new datatable in this version? thank you

On Tue, Jul 6, 2010 at 1:16 PM, Daniel Le Clere daniel.lecl...@gmail.comwrote:

 Use the new data table widget in gwt 2.1 M2

 On Jul 6, 10:40 pm, metrixon metri...@gmail.com wrote:
  First of all: DON'T PANIC - the possibility of a good answer does
  not correlate with the number of exclamation marks used in the subject
  or text.
 
  Now concerning your problem:
  your problem description is very vague - essentially you are saying:
  my application does not work - tell me how to fix it. If the memory
  consumption increases on the machine that is hosting your application,
  the problem has nothing to do with GWT at all, since all the
  javascript code is generated at compile time and executed on the
  client side (in the browser).
  Your description indicates that your server side code is leaking
  memory. The best way to fix this problem is to thoroughly analyse your
  application's runtime behaviour by profiling the application with
  tools like JProfiler, Yourkit or the NetBeans Profiler.
 
  On 6 Jul., 11:12, tarik tarikkan...@gmail.com wrote:
 
 
 
   Dear Sir,
   We are developing an application using GWT, this application is very
   heavy of widgets, we are using a datatable that is developed in
   JQuery. We are suffering from a big memory leak. I did not find yet a
   way to resolve this problem can anyone help me please. The problem we
   have is that the memory on the hosted machine keeps increasing all the
   time. Can you please propose anyway to decrease the consumption of
   memory on my application? Please it is an urgent matter.
   nd
   help!

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




-- 
Tarik Kandil
Consultant Informatique

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



Re: RPC - which exception types may be used???

2010-07-06 Thread Magnus
Hi,

what if an SQLException occurrs on the server?

in MyServiceImpl.java:

 public boolean saveRecord (Record rec) // throws Exception
 {
  try
  {
   dbs.saveUser (usr);
  }
  catch (SQLException e)
  {
   // create MyException and throw it?
  }

  return (true);
 }

Should I define an own Exception type or can I pass SQLException over
RPC somehow?

Thanks
Magnus


On Jul 5, 10:24 pm, andreas horst.andrea...@googlemail.com wrote:
 From what I know you can use any type of exception, but:

 - GWT needs to know the source (file) of the exception (it's either in
 an inherited module or in your 'client' code or what ever package you
 declared in your *.gwt.xml)
 - it needs to be serializable (implement Serializable and do not
 forget empty constructor)

 That's it I think.

 Andreas

 On 5 Jul., 18:55, Magnus alpineblas...@googlemail.com wrote:

  Hi,

  I am trying to implement an RPC call that loads a record from a
  database:

   User loadUser (String nickname) throws Exception;

  I tried different Exception types:

  SQLException: results in mystic errors (not serializable)
  Exception: results in error uncaught exception at the service call
  IllegalArgumentException: works, but is not that what I want

  Question 1:
  What Exception types may be used for RPC?

  Question 2:
  Where (which source files) do I have to declare the exception?
  Service
  ServiceAsync
  ServiceImpl

  Thanks
  Magnus

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



Re: RPC - which exception types may be used???

2010-07-06 Thread Magnus
Hi,

another point is: If I declare my own exception type SystemService,
and if I let the method throw this exception in all three
implementation files (...Service, ...ServiceAsync, ...ServiceImpl),
then I get an uncaught exception compiler error at the service
invocation point.

But this is not the case in the GreetingService example...

What do I have to do that I can invoke the service callback without
try/catch?

Thanks
Magnus

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



Re: Execute commands between RPC requests

2010-07-06 Thread Bruno Santos
Thank you Thomas, but I can not, please see where this error:

I created a class MyRpcRequestBuilder:
public class MyRpcRequestBuilder extends RpcRequestBuilder {
public MyRpcRequestBuilder() {
// Do something here
}

public void doSetCallback(RequestBuilder rb, RequestCallback callback) {
// Do something here
}

public void doFinish(RequestBuilder rb) {
// Do something here
}
}

Interface xxxServiceAsync:
public interface xxxServiceAsync {
public RequestBuilder method(String variable, AsyncCallbackVoid 
callback);
}

And in class I try to use the feature do so:
xxxServiceAsync Service = GWT.create (xxxService.class);
RpcRequestBuilder theBuilder = new MyRpcRequestBuilder();
...
try {
service.metodo (variable, new AsyncCallbackVoid() {
public void onSuccess(Void result) {
// Do something here
}
public void onFailure (Throwable caught) {
// Do something here
}
}).send();
} catch (Exception ex) {
Window.alert (ex.getMessage ());
}

The error is: callback can not be null

And one more question doSetCallback the method used to when he
initiates the request or have to use another?

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



Re: Execute commands between RPC requests

2010-07-06 Thread Bruno Santos
I forgot to tell you that I'm doing this too
((ServiceDefTarget)service).setRpcRequestBuilder(theBuilder);
after
RpcRequestBuilder theBuilder = new MyRpcRequestBuilder();

but the error continues

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



Re: RPC - which exception types may be used???

2010-07-06 Thread andreas
1) I'm not sure if you can use SQLException since its source code is
probably not known by GWT (it's not in an inherited module) so you
better catch it and throw your own exception just like you suggested

2) I'm not 100% sure but I don't think the async service definition
can throw exceptions; it just sort of wraps your service as an async
version where the return type is wrapped in a async callback, the true
service logic (return type, parameters and exception) is in the
service and its implementation; also the exception thrown by the
service method is accessible in the onFailure() method if the async
callback

Try removing the throws in your async service, it should work.

Andreas

On 6 Jul., 18:29, Magnus alpineblas...@googlemail.com wrote:
 Hi,

 another point is: If I declare my own exception type SystemService,
 and if I let the method throw this exception in all three
 implementation files (...Service, ...ServiceAsync, ...ServiceImpl),
 then I get an uncaught exception compiler error at the service
 invocation point.

 But this is not the case in the GreetingService example...

 What do I have to do that I can invoke the service callback without
 try/catch?

 Thanks
 Magnus

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



Re: GWT and telnet connections

2010-07-06 Thread Łukasz P .
I have another question, as I said I want to send responses from the
server to the client but is it secure using GWT-RPC?

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



Re: GWT Visualization not compiling on Netbeans

2010-07-06 Thread Benju
I also have this problem.

On Jun 17, 5:17 pm, Luiz Gustavo Arruda gu.e...@gmail.com wrote:
 Hi guys!

 The following issue is happening when I'm trying to compile my project with
 as Visualization module on Netbeans.

 I've update all jars, (ajaxloader and gwt-visualization it self).

 Here is:

 Validating newly compiled units
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/visualizations/IntensityMap.j 
 ava'
          [ERROR] Line 56: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/DataView.java'
          [ERROR] Line 61: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 73: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 81: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 93: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/DataTable.java'
          [ERROR] Line 140: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/visualizations/ImageChart.jav a'
          [ERROR] Line 113: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/visualizations/Gauge.java'
          [ERROR] Line 71: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/visualizations/AnnotatedTimeL 
 ine.java'
          [ERROR] Line 127: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 199: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 373: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 385: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/CommonOptions.java'
          [ERROR] Line 61: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/visualizations/GeoMap.java'
          [ERROR] Line 70: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/VisualizationUtils.java'
          [ERROR] Line 30: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 44: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
    Finding entry point classes

 Anyone knows what is this all about?

 Best regards.

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



Re: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread Matthias Groß
Hi,

I doubt that you will get any definite answers if you don't provide a
more thorough analysis of your problem.

Generally just try to release all references to heavy-weight objects
you don't need anymore as soon as possible. This holds true especially
for global instances, e.g. singletons.
If that doesn't help consider using weak references (see
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ref/WeakReference.html).

/Matthias

P.S.:
Also use less exclamation marks please.

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



Re: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread Marcus Vinícius Bastos de Andrade
Hello there,

Executing locally my project, after a long time of browser refreshs of my
application, the Jetty freezes.
I have identified that is a memory leak problem of Jetty, then I've added
the following VM args to my pom.xml

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
configuration
runTarget${gwt.runtarget.html}/runTarget
extraJvmArgs
*-server -Xms1024m -Xmx1024m -XX:MaxPermSize=512m -XX:ParallelGCThreads=20
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:SurvivorRatio=8
-XX:TargetSurvivorRatio=75 -XX:MaxTenuringThreshold=0 -XX:+AggressiveOpts
-XX:-TraceClassUnloading -Dsun.io.useCanonCaches=false
-Dsun.net.client.defaultConnectTimeout=6
-Dsun.net.client.defaultReadTimeout=6*
 /extraJvmArgs
**
*
*
I hope that works for you ;)

best regards


2010/7/6 Matthias Groß f0r7y@googlemail.com

 Hi,

 I doubt that you will get any definite answers if you don't provide a
 more thorough analysis of your problem.

 Generally just try to release all references to heavy-weight objects
 you don't need anymore as soon as possible. This holds true especially
 for global instances, e.g. singletons.
 If that doesn't help consider using weak references (see
 http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ref/WeakReference.html).

 /Matthias

 P.S.:
 Also use less exclamation marks please.

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




-- 
Marcus Vinícius Bastos de Andrade
http://twitter.com/mynameisflaw
+55 31 9823-3606

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



Re: GWT 2.0.4 is now available

2010-07-06 Thread Arthur Kalmenson
It's true, Spring Roo is current dependent on Maven, so it makes sense
for GWT support for Maven to improve. However, I've used the gwt maven
codehaus plugin in previous projects and it works well:
http://mojo.codehaus.org/gwt-maven-plugin-1.2/

--
Arthur Kalmenson



On Mon, Jul 5, 2010 at 5:43 PM, Thomas Broyer t.bro...@gmail.com wrote:


 On 4 juil, 16:55, Mikael Couzic mikaelcou...@gmail.com wrote:
  I'm pretty sure the GWT group is not providing them because very
  few, if any, projects internally utilize maven.

 I do not agree. I use Maven, I believe many GWT projects use Maven,
 and the GWT group should make the effort to manage GWT releases on the
 Maven central repository.

 It'll probably come with GWT 2.1, because of the integration with
 Spring Roo which requires Maven (don't ask me why, that's what I've
 been told).
 We're starting a new project at work, with many server-side modules,
 so we chose to use Maven; and I'm therefore using the GWT 2.1.0-M2
 Maven repository: 
 http://google-web-toolkit.googlecode.com/svn/2.1.0.M2/gwt/maven/

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



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



Re: Best way to handle multiple ajax calls of the same widget

2010-07-06 Thread hriess
Far away to understand your code I would recommend to disable all
buttons (A,B,...) if the user presses button A. In the RPCs onSucces/
onError methods reactivate all buttons. To avoid that all buttons
become disabled for ever if the server doesn't answer, implement a
timeout with a timer. Start this timer simultaneous with the 'A' RPC
call.
GWT buttons can change their appearance in the 'disabled' state with
CSS. So the user can see, that's not possible to press button B or
button A twice.
Although I think users are familiar with the asynchronous behavior of
the internet.
Another approach would be that thread B stops thread A on the server
if it is still running. I've done this in connection with table paging
to stop a cache filling thread. And it was a nightmare. But sometimes
you have to stop time-consuming threads on the server if the user
decides at once to call up some other information.
Holger

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



Re: Slow OOPHM on Windows 7 64 bit

2010-07-06 Thread Kyle
Not to be a pest, but does anyone have any suggestions on fixing
incredibly slow OOPHM on Windows x64?

On Jun 30, 11:54 pm, Kyle kyle.unverfe...@gmail.com wrote:
 I've recently upgraded my OS to Win7 x64, and Dev Mode is impossibly
 slow. The initial load used to take 10 seconds, and now it takes three
 minutes to loadOOPHM. My machine is a brand new MacBook Pro, if that
 matters. I've tested with Chrome, Firefox, and IE8, and all display
 the same long load time. I've tried eclipse 3.5 (Galileo) and 3.6
 (Helios), and I've tried both x86 and x64 JDK and JVMs, but the same
 behavior occurs. Any help 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Best way to handle multiple ajax calls of the same widget

2010-07-06 Thread Thiago Miranda de Oliveira
Sorry about the messy code, and thanks for the answer!! I'll try the
first one.

On Jul 6, 3:52 pm, hriess hriess.chemn...@t-online.de wrote:
 Far away to understand your code I would recommend to disable all
 buttons (A,B,...) if the user presses button A. In the RPCs onSucces/
 onError methods reactivate all buttons. To avoid that all buttons
 become disabled for ever if the server doesn't answer, implement a
 timeout with a timer. Start this timer simultaneous with the 'A' RPC
 call.
 GWT buttons can change their appearance in the 'disabled' state with
 CSS. So the user can see, that's not possible to press button B or
 button A twice.
 Although I think users are familiar with the asynchronous behavior of
 the internet.
 Another approach would be that thread B stops thread A on the server
 if it is still running. I've done this in connection with table paging
 to stop a cache filling thread. And it was a nightmare. But sometimes
 you have to stop time-consuming threads on the server if the user
 decides at once to call up some other information.
 Holger

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



Re: How GWT-RPC handles polymorphic serialization?

2010-07-06 Thread cretz
Class.getName() is emulated

On Jul 6, 9:04 am, Paul Stockley pstockl...@gmail.com wrote:
 You need to use deferred binding i.e. GWT.create and write a code
 generator. I suggest you check out the GWT source code from SVN and
 look at their RPC generator code.

 On Jul 6, 8:54 am, André Moraes andr...@gmail.com wrote:

  ?

  2010/7/5 André Moraes andr...@gmail.com

   The GWT has the standard GWT-RPC to make easier to create RPC calls
   and fetch data from the server, but this tool only works if we have
   Java on the server side.

   In my current project, the server side will be .NET based.

   So I wrote a JSON-RPC library which implements the JSON-RPC standard
   to provide RPC facilities.

   The library is OK but I don't have the serialization facilities and I
   need to manually populate a JavaScriptObject with the information that
   i want transfered.

   I started now to write a automated serialization for the objects based
   on Annotations and Generatos, but i don't know how to discover the
   type of my object at runtime.

   I have a lot of polymorphic associations and will be nice to have some
   of those  in my DTO's.

   So is there a way that I can get the type of a Object in GWT at
   runtime or I need to provide some Interface that my DTO's will need to
   implement that will have a method which returns some value that
   identify the type?

   If I need to use the Interface approach, is there a way that using
   generators I change the code of the class and then implement in a
   automated way? (Whithout defining the generator for each class in the
   module.gwt.xml)

   Thanks.

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

  --
  André Moraes
  Analista de Desenvolvimento de Sistemas
  andr...@gmail.comhttp://andredevchannel.blogspot.com/



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



Re: xs linker does not support all GWT features?

2010-07-06 Thread cretz
http://code.google.com/p/google-web-toolkit/issues/detail?id=5046
mentions it's already in trunk and will likely make the 2.1 final
release.

On Jul 5, 9:22 pm, Jay kry...@tpg.com.au wrote:
 Is there an issue in the issue tracker in regards to this? I would
 like to track when and if this fix makes it into a release, but
 couldn't find anything by searching on xs linker and code
 splitting

 On Jul 3, 12:31 pm, Brendan Kenny bcke...@gmail.com wrote:

  Not sure if you meant to write just to me or reply to the list, but
  I'll forward this on to everyone.

  Shortly after I wrote that post it was discussed on the Contributors
  list that there was indeed a fundamental issue preventing the xs
  linker from working with code splitting, but that a patch was in the
  works. The fix landed on trunk in March

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/c...

  but I'm not sure if that made it into 2.0.4 (or whatever) or if it
  will be released with 2.1.

  On Tue, Jun 29, 2010 at 12:58 AM, Danny Goovaerts

  danny.goovae...@gmail.com wrote:
   I have exactly the same request,i.e. use the xs linker together with
   code splitting (I use code splitting to chunk up a rather large
   application (800k), but even then it is advantageous to have caching
   of the js modules when using
   https).
   DId anyone try to make the changes mentioned below? Did you succeed?

   Thanks in advance,

   Danny

   On 12 feb, 01:30, Brendan Kenny bcke...@gmail.com wrote:
   On Feb 11, 3:52 pm, Jonas Huckestein jonas.huckest...@me.com wrote:

Hi everybody,

does anybody know why thexslinker does not supportcode-splitting?
Are there any other features that are not fully supported?

I am currently trying to build a framework that allows for easy wave
gadget development in GWT (including side-by-side testing of gadgets
in hosted mode). Given the shortcomings of the gwt-gadget linker
(which produces only one huge code file instead of one for each
permutation), we were trying to figure out what else we could do over
at the wave dev group. (you can follow the discussion 
here:http://groups.google.com/group/google-wave-api/browse_thread/thread/2...
)

It would be nice to get some statement on this from a googler. Since
Wave is developed using GWT I would like to be able to develop
extensions using GWT, as well.

Cheers,
Jonas

--
Jonas Huckesteinhttp://thezukunft.com

   Hi Jonas,

   Yes, the iframe (std) linker was the only official primary linker set
   up to handlecode splitting. I only use that linker and haven't dug
   too deeply, so I don't know if that was done because of a fundamental
   problem, for performance/efficiency reasons, or if was just left as an
   exercise to developers since there wasn't much of a call for it.

   If it's one of the latter two, it shouldn't be hard to adapt code from
   the iframe and selectionscript linkers and incorporate it into a
   version of thexslinker. If you aren't already familiar with it, the
   key method is doEmitCompilation() in SelectionScriptLinker.
   CompilationResult artifacts have a String array of the js code
   associated with that permutation, each entry containing a code
   fragment. The linker prepares the primary fragment to load correctly,
   but subsequent fragments are just output directly to a matching
   subdirectory.

  http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/dev/core/src/com..



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



Re: gson module problem

2010-07-06 Thread eggsy84
Hi all,

With the latest versions of GWT you don't have to use any other
libraries.

GWT now comes with something known as Javascript Overlays that you can
utilise to convert JSON into Objects.

See here:

http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html

Also I have made a bit of a discussion on my blog here:

http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays-with-jsonprequestbuilder/

Hope this helps,

Eggsy

On Jul 6, 1:38 pm, Harald Pehl harald.p...@googlemail.com wrote:
 You cannot use gson in GWT. 
 Seehttp://groups.google.com/group/google-gson/browse_thread/thread/6c3d6...
 for more infos.

 If you need a JSON parser for GWT take a look at Piriti (http://
 code.google.com/p/piriti/).

 - Harald

 On 6 Jul., 12:30, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  Welcome ,

  i add gson lib version 1.4

  and i face a problem when trying to inherit it in the gwt.xml file

  how i can fix this problem ???

  thanks ,
  ahmed shoeib

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



Re: JSON Problem

2010-07-06 Thread eggsy84
Hi all,

(As mentioned on the following post:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/b7c280baf2375841#
)

With the latest versions of GWT you don't have to use any other
libraries.

GWT now comes with something known as Javascript Overlays that you can
utilise to convert JSON into Objects.

See here:

http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html

Also I have made a bit of a discussion on my blog here:

http://eggsylife.co.uk/2010/04/22/gwt-2-jsonp-and-javascript-overlays-with-jsonprequestbuilder/

Hope this helps,

Eggsy

On Jul 6, 1:44 pm, André Moraes andr...@gmail.com wrote:
 I don't think that the Gson project can be used as a GWT module.

 Looks like it is for pure java development, not GWT development.

 Take a look at:http://code.google.com/p/piriti/

 http://code.google.com/p/piriti/This project is a GWT library that provide
 JSON and XML facilities.

 On Tue, Jul 6, 2010 at 5:22 AM, Ahmed Shoeib
 ahmedelsayed.sho...@gmail.comwrote:



  i face this problem
  how i can fix it

  the problem

  /AdminPanel.java'
          [ERROR] Line 139: No source code is available for type
  com.google.gson.Gson; did you forget to inherit a required module?

  Thanks,
  ahmed shoeib

  On Jul 5, 9:33 pm, André Moraes andr...@gmail.com wrote:
   The response comes async.

   When the response from the server arrives at the client the method
   onResponseReceived in the RequestCallback object is called, if an
   error hapens the the onErrormethod is called.

   The RequestCallback object is the second parameter in the sendRequest
   function call.

                                   public void onResponseReceived(Request
   request, Response response)
   {
                                           if (response.getStatusCode()
   == 200 || response.getStatusCode()
   == 304)
                                           {
                                                   JavaScriptObject
   responseData =
   JsonHelper.stringToJso(response.getText()).cast());
               // use the response
                                           }
                                           else
                                           {
               // invalid response
                                           }
                                   }
                                   @Override
                                   public void onError(Request request,
   Throwable exception) {
                                           // error on the resquest
                                   }
                           });

   On 5 jul, 15:01, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

you told me how to send request from client to server

now i want how yo get data from server to use it in client

and the data in json

On Jul 5, 8:12 pm, André Moraes andr...@gmail.com wrote:

 This code is quite simple

 The line:

  re = rb.sendRequest(jsonrpc-call= + JsonHelper.jsoToString(call),
 new RequestCallback()

 prepare a AJAX call to the server and make your javascript object to
  a
 string using JsonHelper.jsoToString.
 In ther server the json-string will be accessible by the parameter
 jsonrpc-call.

 The line:

                                         if (response.getStatusCode()
 == 200 || response.getStatusCode()
 == 304)
                                         {
                                                 JavaScriptObject
 responseData =
 JsonHelper.stringToJso(response.getText()).cast());
             // use the response
                                         }

 get the response wrote by the server and make i availabe as a
 JavaScriptObject.

 You can use the JSONObject class to populate and read a
 JavaScriptObject.

 You can read more about JSON + GWT at:

 http://code.google.com/intl/webtoolkit/webtoolkit/doc/latest/DevGuide...
 andhttp://
  code.google.com/intl/webtoolkit/webtoolkit/articles/using_gwt_...
 On 5 jul, 12:50, Ahmed Shoeib ahmedelsayed.sho...@gmail.com wrote:

  i want a simple example to describe it
  cause i need it as soon as possible

  On Jul 5, 6:18 pm, André Moraes andr...@gmail.com wrote:

                           re = rb.sendRequest(jsonrpc-call= +
  JsonHelper.jsoToString(call),
   new RequestCallback() {

                                   @Override
                                   public void
  onResponseReceived(Request request, Response response)
   {
                                           if
  (response.getStatusCode() == 200 || response.getStatusCode()
   == 304)
                                           {
                                                   JavaScriptObject
  responseData =
   JsonHelper.stringToJso(response.getText()).cast());
               // use the response
                                           }
   

How to select a value from dropDown menu...

2010-07-06 Thread Ravi kumar
hi i have one application where i have dropdown(listBox) menu to select
items.
now i want to take those selected item and store it in datastore.
how do i take those selected item in a variable so that i can store it in
datastore?


Regards,
Ravi Kumar Chaurasia
ravikumarchaura...@gmail.com
http://ravikumardk.blogspot.com/
Dept of Information Technology
NIT,Durgapur

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



JSON no cache data access

2010-07-06 Thread txciggy
Hi,

In my GWT application, I am using JSON async callback mechanism
(JSONP) to retrieve data from server side. Earlier I used cgi-bin perl
scripts on server side to retrieve data and return http object back to
the client (browser) via async callback function call. I figured that
resource usage is much higher for cgi-bin scripts. Hence I moved away
from cgi-bin scripts and instead resorted to passing data directly
from a data file in web root's path through a HTTP get request. That
is I am populating a data file located at WEB-ROOT/json/query_data
periodically. This is being updated a separate polling process on the
same server. This is read by client periodically to fetch JSON data.
Instead of calling a cgi-bin script such as WEB-ROOT/cgi-bin/query.pl
which does nothing but read query_data and package it into a HTTP
header and passes it back through output stream back to client, I am
attempting to directly read the JSON data file in my new
implementation where the data file is pre-formatted to look like a
callback function call.

eg: INITIALLY
--

WEB-ROOT/json/query_data:

{..},...{..}

which is just an array of JSON objects.

WEB-ROOT/cgi-bin/query.pl :

#!/usr/bin/perl
use CGI;
use Fcntl qw(:DEFAULT :flock);

$q = CGI-new();
print $q-header();

# Read data from /tmp/json/query_data on an exclusive file lock
open($file,  /tmp/json/query_data)
or die {\type\:\JSONError\}\n;
flock($file, LOCK_SH)
or die {\type\:\FileLockError\}\n;
@raw_data=$file;
close($file)
or die can't close file: $!;

# Print JSON objects
print callback123([;
foreach $line(@raw_data) {
print $line;
}
print ]);;

When this script is called by client side code, JSON data from
query_data is packaged into callback123(); so that data is
transferred over as a JSON object through a asynchronous callback
mechanism. In my current implementation, I chose to bypass the above
cgi-bin script  and instead, directly access the /tmp/json/query_data
file by creating a symbolic link in WEB-ROOT so that client can access
this file by just specifying URL http://IPADDR/json/query_data.

CURRENTLY:
---

WEB-ROOT/json/query_data:

callback123([{..},...{..}]);


client calls - http://IPADDR/json/query_data and expects JSON object
to be returned. This seems to work fine for the first request. However
subsequent requests still fetch cached data from previous
http://IPADDR/json/query_data access. I verified this by opening the
above URL on browser. On repeated navigation to this URL, instead of
getting updated data, I keep getting stale data from previous trial
and only a page refresh seems to actually go and fetch updated info.
How do I go around this?

Thanks,
Rajiv

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



IS there a way to add buttons to stack panel header?

2010-07-06 Thread lou_tribal
Hello, I would like to use a stack panel to control a list of data and
would like to know if there is a way to add buttons to a stack panel
header? I managed to create the content of the stack panel header with
a title on the left and a label on the right as button or link but
I cannot find out how to add any click handler on it. Is there a way
to put a button in a stackpanel header or should I code my own
stackpanel supporting that feature? 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Best way to style every other item?

2010-07-06 Thread Brett Thomas
Hey, I want to create a panel with a list of questions, with every other
question shaded to make it more visible. Advice on the best way to do this
in GWT?

One option is the CSS :nth-item tag, but looks like that has incomplete
support. When Drupal populates a list, it automatically adds a -even or -odd
class to items; that seems better. Another option is to add a class like
this manually when you add an item to the list, but then removing an item
becomes a pain. Maybe there is a better way to do this automatically that I
am missing? Let me know...

Thanks for the help,
Brett

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



Re: Problem with code which works in compiled mode and fails in hosted mode

2010-07-06 Thread CarToro
Hi Alan,

It looks like you haven't received many replies yet. I ran into the
same problem, but I managed to find a solution. Albeit not the most
elegant, it did allow me to carry on working.

OK, your problem is around here

 The actual lines of code are:
         float [] perspectiveMatrix = createPerspectiveMatrix(45, 1,
 0.1f, 1000);
         WebGLUniformLocation uniformLocation =
 glContext.getUniformLocation(shaderProgram, perspectiveMatrix);
         checkError();

         glContext.uniformMatrix4fv(uniformLocation, false,
 perspectiveMatrix);


Right?
There seem to be a problem with the binding and how it parses certain
arguments. So, for instance, in the case of the FlatShader or the
BasicShader3D, the issue with the matrices was solved here:

http://code.google.com/p/gwt-g3d/issues/detail?id=2can=1q=TBasicShader3D%20setModelViewMatrix%20causes%20JavaScript%20error

Basically, it needed to replace the following code:

public void setProjectionMatrix(Matrix4f value) {
gl.uniformMatrix(getUniformLocation(uProjectionMatrix), 
value);
}

with:
public void setProjectionMatrix(Matrix4f value) {
// gl.uniformMatrix(getUniformLocation(uProjectionMatrix), 
value);

float[] matrixValue = MatrixUtils.toFloatArray(value);
WebGLUniformLocation mvMatrixLoc =
getUniformLocation(uProjectionMatrix);
gl.uniformMatrix4fv(mvMatrixLoc, false,
WebGLFloatArray.createArray(matrixValue));
}

And similarly with the ModelView. As you can see, in your case the
perspectiveMatrix needs to be passed in as
WebGLFloatArray.createArray(perspectiveMatrix).

Hope this helps you, and let's hope the guys manage to get this fix
into their next release. I've been trying other WebGL wrappers for
GWT, but it does seem like these guys have gone further than anybody.
Funny thing though is that their examples do not work with Google's
chromium, but with Mozilla's minefield. Go figure.

Regards.

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



addDomHandler with Internet Explorer

2010-07-06 Thread tihom
I am calling addDomHandler with ChangeHandler as described here:
http://stackoverflow.com/questions/3098694/enabling-and-disabling-save-button-on-a-gwt-page

The problem is that for IE the change event is not firing for listbox
changes.  This works in Chrome and Firefox.

Any thoughts?

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



create web service inside GWT project

2010-07-06 Thread Arian Prins
Hello people,
I have a hard time figuring out what would be the best approach for my
problem.

I'd like to communicate some info from the server (side logic) to an
MS-Office macro. I could always use ODBC to let the office macro query
the database directly but that just feels like a kludge. I've got a
lot of objects in my application in which a lot of processing is
already implemented.

So, I figure, the best way would be to create a web service (SOAP?)
inside the gwt server-side implementation that can be queried by
outside applications.

I've done a lot of searching, but haven't really found any definitive
way that would be best. Should I use an existing RPC/SOAP/JSON library
and try to integrate it into GWT's structure (how to configure
web.xml? etc. etc.)? Is there something already provided by google or
in de code projects?

Any thoughts and tips would be greatly appreciated.

Arian Prins.


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



How to access particular text in RichText area to read back attributes or alter them?

2010-07-06 Thread UncleBob
I sent a version of the note below to the GWT Rich-Text Editor group.
But then I noticed that there are a number of discussions of RichText
in this much larger group.  I need all the help I can get  ;-)


I would like some guidance on how to go about designing an app that
would do things such as the following:

The server downloads text, as an array (Collection) of tokens
(Strings), which would be displayed in the text area.
Other arrays of information would be downloaded that could be used to
decorate the text.
For example, say we downloaded information about which of the tokens
or token groups are the names of companies.
The user would have a menu that includes the item Companies.
When that menu item is selected, the text for the companies would be
highlighted in red.

The basic question for this type of app is: How do I access particular
Strings and alter their styling?
Is DOM the way to go?

In the dual problem, how would I discover a String that the user has
selected and designated as a company - one that was not on the
original list?
The String chosen would be returned to the server to update its list
of company names.

This type of application is typical of many apps that would be of
great benefit to researchers in natural language processing.
There are about 600 members of the mailing list at my site,
bionlp.org, many of who would be interested in such apps.

Any and all suggestions, leads, etc., most welcome.

   - Bob


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



Re: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread Olivier
Hi,

We get the same issue in our application, lots of widget many refresh
of content, add and remove widget.
Usualy we noticed that we kept widget in a list as a member of a
composite.
When the composite was removed the list stay in memory, so to solve
the problem we implement a cleaning method overriding the onUnload()
method called by GWT framework.

regards

Olivier

On Jul 6, 9:53 am, tarik kandil tarikkan...@gmail.com wrote:
 when I am testing my application on IE6, the problem that I find, is that
 the memory consumption keeps increasing. The same thing for Firefox.
 Besides, I apologize because my web application is running but once  I click
 too many times the memory increases and it crashes. Can you please tell me
 how I can fix this? Thank you in advance. I am using a data table that has
 been developed in JQuery. And it seems that when I go to another page My
 application still references the same datatable. I want to know if there
 exist a way to delete all the doms and divisions that every time I create my
 table. If there exist any methods that I can add on the unload method when I
 detach my widget. Honestly it is an urgent matter, can you help me please?
 Thank you.

 On Tue, Jul 6, 2010 at 1:16 PM, Daniel Le Clere 
 daniel.lecl...@gmail.comwrote:



  Use the new data table widget in gwt 2.1 M2

  On Jul 6, 10:40 pm, metrixon metri...@gmail.com wrote:
   First of all: DON'T PANIC - the possibility of a good answer does
   not correlate with the number of exclamation marks used in the subject
   or text.

   Now concerning your problem:
   your problem description is very vague - essentially you are saying:
   my application does not work - tell me how to fix it. If the memory
   consumption increases on the machine that is hosting your application,
   the problem has nothing to do with GWT at all, since all the
   javascript code is generated at compile time and executed on the
   client side (in the browser).
   Your description indicates that your server side code is leaking
   memory. The best way to fix this problem is to thoroughly analyse your
   application's runtime behaviour by profiling the application with
   tools like JProfiler, Yourkit or the NetBeans Profiler.

   On 6 Jul., 11:12, tarik tarikkan...@gmail.com wrote:

Dear Sir,
We are developing an application using GWT, this application is very
heavy of widgets, we are using a datatable that is developed in
JQuery. We are suffering from a big memory leak. I did not find yet a
way to resolve this problem can anyone help me please. The problem we
have is that the memory on the hosted machine keeps increasing all the
time. Can you please propose anyway to decrease the consumption of
memory on my application? Please it is an urgent matter.
nd
help!

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

 --
 Tarik Kandil
 Consultant Informatique

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



Does it exist a place to suggest improvement ?

2010-07-06 Thread Olivier
Hi there.

I am wondering if there is a place to suggest needs of improvement for
GWT.
I am working on a project and we tried to put in place some
architecture that needs some improvement.
For the time being we are using as it is, but soon we will have to
refactor.
And I think this is part of the community exchange, not only code but
idea to make GWT better and better.

Olivier

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



Re: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread tarik kandil
Can you tell me what you have implemented in this methode please, can you
show me the methode implementation, thank you.

On Tue, Jul 6, 2010 at 3:49 PM, Olivier olivier.dau...@gmail.com wrote:

 Hi,

 We get the same issue in our application, lots of widget many refresh
 of content, add and remove widget.
 Usualy we noticed that we kept widget in a list as a member of a
 composite.
 When the composite was removed the list stay in memory, so to solve
 the problem we implement a cleaning method overriding the onUnload()
 method called by GWT framework.

 regards

 Olivier

 On Jul 6, 9:53 am, tarik kandil tarikkan...@gmail.com wrote:
  when I am testing my application on IE6, the problem that I find, is that
  the memory consumption keeps increasing. The same thing for Firefox.
  Besides, I apologize because my web application is running but once  I
 click
  too many times the memory increases and it crashes. Can you please tell
 me
  how I can fix this? Thank you in advance. I am using a data table that
 has
  been developed in JQuery. And it seems that when I go to another page My
  application still references the same datatable. I want to know if there
  exist a way to delete all the doms and divisions that every time I create
 my
  table. If there exist any methods that I can add on the unload method
 when I
  detach my widget. Honestly it is an urgent matter, can you help me
 please?
  Thank you.
 
  On Tue, Jul 6, 2010 at 1:16 PM, Daniel Le Clere 
 daniel.lecl...@gmail.comwrote:
 
 
 
   Use the new data table widget in gwt 2.1 M2
 
   On Jul 6, 10:40 pm, metrixon metri...@gmail.com wrote:
First of all: DON'T PANIC - the possibility of a good answer does
not correlate with the number of exclamation marks used in the
 subject
or text.
 
Now concerning your problem:
your problem description is very vague - essentially you are saying:
my application does not work - tell me how to fix it. If the memory
consumption increases on the machine that is hosting your
 application,
the problem has nothing to do with GWT at all, since all the
javascript code is generated at compile time and executed on the
client side (in the browser).
Your description indicates that your server side code is leaking
memory. The best way to fix this problem is to thoroughly analyse
 your
application's runtime behaviour by profiling the application with
tools like JProfiler, Yourkit or the NetBeans Profiler.
 
On 6 Jul., 11:12, tarik tarikkan...@gmail.com wrote:
 
 Dear Sir,
 We are developing an application using GWT, this application is
 very
 heavy of widgets, we are using a datatable that is developed in
 JQuery. We are suffering from a big memory leak. I did not find yet
 a
 way to resolve this problem can anyone help me please. The problem
 we
 have is that the memory on the hosted machine keeps increasing all
 the
 time. Can you please propose anyway to decrease the consumption of
 memory on my application? Please it is an urgent matter.
 nd
 help!
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  Tarik Kandil
  Consultant Informatique

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




-- 
Tarik Kandil
Consultant Informatique

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



Re: Execute commands between RPC requests

2010-07-06 Thread Bruno Santos
solve the problem, the interface replaces the RequestBuilder by void,
removed the .send() and in the method doSetCallback of the class
MyRpcRequestBuilder added the following line:
rb.setCallback (callback);
And in the method doFinish:
rb.setHeader (STRONG_NAME_HEADER, GWT.getPermutationStrongName ());

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



Re: GWT Confluence Plugin

2010-07-06 Thread Tom Davies
I haven't actually done this, but essentially you'd include the files
created by GWT as web resources in your plugin.

Your macro module would render a div to be enhanced by GWT, and would
also call requireResources to include the generated GWT files.

RPC endpoints would be servlet modules.

It might be a good idea to write a trivial version of your plugin
using plain javascript first, just to get to grips with the basic
mechanics of macros and web resources.

Tom

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



Re: Does it exist a place to suggest improvement ?

2010-07-06 Thread Jaroslav Záruba
Making GWT Better http://code.google.com/webtoolkit/makinggwtbetter.html
GWT issue tracker http://code.google.com/p/google-web-toolkit/issues/entry

Cheers
  JZ

On Tue, Jul 6, 2010 at 7:30 PM, Olivier olivier.dau...@gmail.com wrote:

 Hi there.

 I am wondering if there is a place to suggest needs of improvement for
 GWT.
 I am working on a project and we tried to put in place some
 architecture that needs some improvement.
 For the time being we are using as it is, but soon we will have to
 refactor.
 And I think this is part of the community exchange, not only code but
 idea to make GWT better and better.

 Olivier

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



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



Re: Urgent!!!!!!!!!!!!!!!!!!!!!!!!!!! GWT 2 Memory leak

2010-07-06 Thread tarik kandil
First, I would like to mention that I am using GWT2.0. I have a problem in a
data table that I have developed using JQuery, I have many widgets, and I am
using gwittir binding. Besides, I am using bindable collection in my
datatable. After analysing my application, I found that there are some
elements that are not deleted in IE6. Also, the memory keeps incrceasing all
the time. Even if i change to a new page or i refresh the memory keeps
increasing when i filtre or go to another page or I do any action(memory
leak). Can you please tell me how to avoid the increasing of the memory
through the whole application, add methods to delete elements when i go from
page to page, or something like this. Thank you in advance.

2010/7/6 Matthias Groß f0r7y@googlemail.com

 Hi,

 I doubt that you will get any definite answers if you don't provide a
 more thorough analysis of your problem.

 Generally just try to release all references to heavy-weight objects
 you don't need anymore as soon as possible. This holds true especially
 for global instances, e.g. singletons.
 If that doesn't help consider using weak references (see
 http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ref/WeakReference.html).

 /Matthias

 P.S.:
 Also use less exclamation marks please.

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




-- 
Tarik Kandil
Consultant Informatique

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



Standards Mode + Decorated Popup Panel + IE == FAIL

2010-07-06 Thread lineman78
I am having a problem where I have changed to standards mode in order
to use layout panels, but it seems to have broken decorated popup
panel in IE(the popup shows, but the rest of the screen turns white
behind it).  I have taken a very rough look with Firebug Lite and
didn't see anything obvious and was just wondering if anyone else has
seen this problem.  Again, I have not done a whole lot of debugging
yet, but I am in standards mode with IE6 and a DockLayoutPanel as my
root.  When I click on the button to pop up the popup shows up, but
everything else goes white, but as soon as you resize the window
everything paints correctly again.  Is there a way to tell the browser
to manually do a repaint maybe?

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



Re: BigDecimal - Can you add it to 2.1 version

2010-07-06 Thread Carl Pritchett
 The Harmony team is not involved, I'm just some random guy.

My mistake - I  thought the BigDecimal code was based on Harmony's
BigDecimal as it was mentioned in response to an issue I raised.

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



Re: onSuccess() return value other than void?

2010-07-06 Thread Sunny
Hi day_trader

As far as i can think is that you are trying to pass an object with
the data of the class..

now to make your class go to the server side all you need to do is to
move it to a package that is in the package that is *not* mentioned in
your your_gwt_xml.gwt.xml file as the classes in these
packages,which are mentioned in the gwt.xml file, get ajaxified and
sent on to the client.

Hope this helps.

Sunny.

On Jul 6, 5:04 pm, day_trader mwmcmul...@gmail.com wrote:
 Thanks for the replies thus far.

 That all makes sense. I did have strong doubts about the likelihood of
 what I wanted but as I am not an expert in the field I thought it was
 better to make sure.

 Actually, my problems would be solved quite quickly if I got around my
 initial problem that led to this posting. Basically, there is a class
 in my client side, under myApp.client.models.SomeModel that I need to
 pass to the server. The problem is that the server cannot see this
 class as I get an error when I try to compile it. My question is: How
 do I check if the class is on my SERVER classpath?

 Thanks :)

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



Re: How to put a CellTable into a fixed relative sized div?

2010-07-06 Thread Sunny
hi jantekb

this is definetely not a bug but you can say more of a feature.:-)
the reason bieng is that when you are giving the size in px you are
mentioning the absolute size so the fixed size thus you observed that
but when you are giving the size in percentage there is no refrence to
any fixed size so it resizes according to widgets added on to it to
observe the desired result i would rather suggest to first create a
panel with a Definite static size and then work with relative size
on it to get your desired result.

hope this helps

Sunny.


On Jul 6, 3:14 pm, jantekb jant...@gmail.com wrote:
 Still no solution.. Do you think this might be a bug?

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



-XdisableClassMetadata compiler flag - Was [Re: Hiding fully qualified class name sent to the browser]

2010-07-06 Thread moorsu
Hi,

I tried to use the compiler flag *-XdisableClassMetadata* to replace the
classnames
as suggested by Olivier. But the classnames still appear in the *.cache.html
files.

I tried both in maven POM.xml also in the Google Eclipse Plugin.

My POM.xml code snippet like this

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
version${gwt-maven-plugin.version}/version
configuration
disableCastCheckingtrue/disableCastChecking
disableClassMetadatatrue/disableClassMetadata
resourcesOnPathfalse/resourcesOnPath
runTargetsrc/main/webapp/index.html/runTarget
webappDirectorysrc/main/webapp/webappDirectory
styleOBF/style
extraJvmArgs-Xmx2048m -Xss4024k/extraJvmArgs
/configuration
executions
execution
goals
goalcompile/goal
/goals
/execution
/executions
/plugin

What is the right way to achieve this?

thanks
moorsu.



On Wed, Jun 23, 2010 at 8:50 PM, Olivier Monaco olivier.mon...@free.frwrote:

 Hi,

 If your problem comes from class name included in the JavaScript files
 (and affected to some properties of JavaScript object), you can try to
 use the following optimization:


 http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization

 Olivier

 On Jun 22, 3:55 pm, moorsu moo...@gmail.com wrote:
  Hi,
 
  Would it be possible to obfuscate the fully qualified class name which
  is
  visible at the browser if you use firebug?.
 
  I would like to see it as a.b.c.d instead
  com.mycompany.myproduct.mypackage.MyClassName.
  Also I do not use the same domain object as model but use Lists and
  Maps to send data to
  browser.
 
  thanks!

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



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



Re: How to get the row number of a flex table

2010-07-06 Thread Sunny
hi Vik,

try
FlexCellFormatter formatter =
FlexTable.getCellFormatter().getRowNum();

hope this helps

Sunny.

On Jul 6, 9:09 am, aditya sanas 007aditya.b...@gmail.com wrote:
 you can set buttons ID by the method getElement().setId();

 you can set Id as row number and as whenever button get clicked you will
 have to check its id by

 getElement().getId() which is row number that we had set.

 --
 Aditya



 On Mon, Jul 5, 2010 at 8:53 AM, Vik vik@gmail.com wrote:
  Hie

  I have a table extending a FlexTable.

  In every row there is Button. On clicking this button I want to know the
  row number of the table. Any idea on how to achieve this?

  Thankx and Regards

  Vik
  Founder
 www.sakshum.com
 www.sakshum.blogspot.com

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubs­cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.- 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Session/realising user login

2010-07-06 Thread rapsli
... this can't be that hard?

On Jul 5, 10:35 pm, rapsli raphaelschae...@gmail.com wrote:
 Hi

 I'm trying to build some kind of user login:

 Password  username form - submit send RPC request to server. Server
 checks password and stores username in session.

 Then I have a timebased call, that checks the server (via RPC -
 method is called isLoggedIn()) if the user is logged in. If not, Gui
 is going to be blocked and login form will be displayed.

 Part of my isLoggedIn method looks like this:
 HttpServletRequest req = getThreadLocalRequest();
 getThreadLocalRequest().getSession(false);

 getThreadLocalRequest() returns null. Google told me that this was
 because of the way GWT is implementing Servlets (Front Controller
 pattern). I though could not find the correct way of doing it. Help
 would be nice.

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



Re: User management in GWT

2010-07-06 Thread Carl Pritchett
 Ben Alex did a wonderful presentation in Sweden

http://vimeo.com/12641333

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



gwt plugin for firefox 4 beta 1

2010-07-06 Thread Vik
Hie

I am unable to run gwt stuff on firefox 4 beta 1 due to missing google gwt
plugin. How to get it?

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com

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



Re: JSON no cache data access

2010-07-06 Thread Jeroen Janssen
Hi,

I was wondering in your GWT code, do you cleanup the script after
processing the callback?

If you look at: 
http://code.google.com/intl/nl-NL/webtoolkit/doc/latest/tutorial/Xsite.html
there is some
documentation with regards to

[5] Before the timeout function completes, it removes the new
script element and the callback function from window.

Could it be that the your script is not removed from the browser yet
and as a result, will not reload correctly?

Best regards,

Jeroen Janssen

On 7 jul, 00:33, txciggy rajiv.r...@gmail.com wrote:
 Hi,

 In my GWT application, I am using JSON async callback mechanism
 (JSONP) to retrieve data from server side. Earlier I used cgi-bin perl
 scripts on server side to retrieve data and return http object back to
 the client (browser) via async callback function call. I figured that
 resource usage is much higher for cgi-bin scripts. Hence I moved away
 from cgi-bin scripts and instead resorted to passing data directly
 from a data file in web root's path through a HTTP get request. That
 is I am populating a data file located at WEB-ROOT/json/query_data
 periodically. This is being updated a separate polling process on the
 same server. This is read by client periodically to fetch JSON data.
 Instead of calling a cgi-bin script such as WEB-ROOT/cgi-bin/query.pl
 which does nothing but read query_data and package it into a HTTP
 header and passes it back through output stream back to client, I am
 attempting to directly read the JSON data file in my new
 implementation where the data file is pre-formatted to look like a
 callback function call.

 eg: INITIALLY
 --

 WEB-ROOT/json/query_data:

 {..},...{..}

 which is just an array of JSON objects.

 WEB-ROOT/cgi-bin/query.pl :

 #!/usr/bin/perl
 use CGI;
 use Fcntl qw(:DEFAULT :flock);

 $q = CGI-new();
 print $q-header();

 # Read data from /tmp/json/query_data on an exclusive file lock
         open($file,  /tmp/json/query_data)
                 or die {\type\:\JSONError\}\n;
         flock($file, LOCK_SH)
                 or die {\type\:\FileLockError\}\n;
         @raw_data=$file;
         close($file)
                 or die can't close file: $!;

 # Print JSON objects
 print callback123([;
 foreach $line(@raw_data) {
         print $line;}

 print ]);;

 When this script is called by client side code, JSON data from
 query_data is packaged into callback123(); so that data is
 transferred over as a JSON object through a asynchronous callback
 mechanism. In my current implementation, I chose to bypass the above
 cgi-bin script  and instead, directly access the /tmp/json/query_data
 file by creating a symbolic link in WEB-ROOT so that client can access
 this file by just specifying URL http://IPADDR/json/query_data.

 CURRENTLY:
 ---

 WEB-ROOT/json/query_data:

 callback123([{..},...{..}]);

 client calls - http://IPADDR/json/query_data and expects JSON object
 to be returned. This seems to work fine for the first request. However
 subsequent requests still fetch cached data from previous
 http://IPADDR/json/query_data access. I verified this by opening the
 above URL on browser. On repeated navigation to this URL, instead of
 getting updated data, I keep getting stale data from previous trial
 and only a page refresh seems to actually go and fetch updated info.
 How do I go around this?

 Thanks,
 Rajiv

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



[gwt-contrib] JSIO vs Overlay Types

2010-07-06 Thread Daniel Bell
Hi Guys,
I have a question for you about Overlay Types and the JSIO library.
I'm working on a GWT interface to the Google Maps JavaScript API, and
am wondering about the difference in performance between the two
approaches.
With JSIO I've been using wrapper objects that each contain an
instance of a JavaScriptObject being wrapped, and contain a reference
to a singleton instance of the flyweight wrapper. My guess is that the
performance would be better if I used Overlay Types instead, but I am
just guessing. Do you know (roughly) what the difference in
performance is between the two approaches?
Thanks for your help,
Daniel

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


[gwt-contrib] Re: Comment on NoClassMetadataOptimization in google-web-toolkit

2010-07-06 Thread codesite-noreply

Comment by moorsu:

Please note that the spelling of the compile flag.

It should be -XdisableClassMetadata


For more information:
http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization

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


[gwt-contrib] Re: Comment on NoClassMetadataOptimization in google-web-toolkit

2010-07-06 Thread codesite-noreply

Comment by moorsu:

Please note the spelling of the compiler flag.

It should be
{{{
-XdisableClassMetadata
}}}


For more information:
http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization

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


Re: [gwt-contrib] JSIO vs Overlay Types

2010-07-06 Thread John Tamplin
On Tue, Jul 6, 2010 at 3:08 AM, Daniel Bell daniel.r.b...@gmail.com wrote:

 I have a question for you about Overlay Types and the JSIO library.
 I'm working on a GWT interface to the Google Maps JavaScript API, and
 am wondering about the difference in performance between the two
 approaches.
 With JSIO I've been using wrapper objects that each contain an
 instance of a JavaScriptObject being wrapped, and contain a reference
 to a singleton instance of the flyweight wrapper. My guess is that the
 performance would be better if I used Overlay Types instead, but I am
 just guessing. Do you know (roughly) what the difference in
 performance is between the two approaches?


First question - why aren't you using the official GWT APIs for Maps instead
of writing your own?  http://code.google.com/p/gwt-google-apis/  If there is
something you need that isn't included, why not contribute to that rather
than create your own from scratch?

Overlay types are a bit more efficient and don't require a generator running
which makes DevMode faster, but I don't think there is a lot of difference.

-- 
John A. Tamplin
Software Engineer (GWT), Google

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

Re: [gwt-contrib] JSIO vs Overlay Types

2010-07-06 Thread Eric Ayers
Overlay types are the way to go.  The gwt-maps API use jsio because it
predates overlay types.

On Jul 6, 2010 11:18 AM, John Tamplin j...@google.com wrote:
 On Tue, Jul 6, 2010 at 3:08 AM, Daniel Bell daniel.r.b...@gmail.com
wrote:

 I have a question for you about Overlay Types and the JSIO library.
 I'm working on a GWT interface to the Google Maps JavaScript API, and
 am wondering about the difference in performance between the two
 approaches.
 With JSIO I've been using wrapper objects that each contain an
 instance of a JavaScriptObject being wrapped, and contain a reference
 to a singleton instance of the flyweight wrapper. My guess is that the
 performance would be better if I used Overlay Types instead, but I am
 just guessing. Do you know (roughly) what the difference in
 performance is between the two approaches?


 First question - why aren't you using the official GWT APIs for Maps
instead
 of writing your own? http://code.google.com/p/gwt-google-apis/ If there is
 something you need that isn't included, why not contribute to that rather
 than create your own from scratch?

 Overlay types are a bit more efficient and don't require a generator
running
 which makes DevMode faster, but I don't think there is a lot of
difference.

 --
 John A. Tamplin
 Software Engineer (GWT), Google

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

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

Re: [gwt-contrib] JSIO vs Overlay Types

2010-07-06 Thread Daniel Bell
Thanks for the feedback. The reason I'm not using the official Maps API is
that I need to use version 3 of the JavaScript API, which isn't supported by
the GWT Google APIs project yet. The more developed of the GWT Maps
Libraries (http://code.google.com/p/gwt-google-maps-v3/) uses JSIO for
everything, rather than overlay types, so I'm concerned about performance in
the case that lots (hundreds or so) of objects are being rendered on the
map. At the moment it's looking like I'll contribute some changes there.
Thanks again,
Daniel

On 7 July 2010 03:20, Eric Ayers zun...@google.com wrote:

 Overlay types are the way to go.  The gwt-maps API use jsio because it
 predates overlay types.

 On Jul 6, 2010 11:18 AM, John Tamplin j...@google.com wrote:
  On Tue, Jul 6, 2010 at 3:08 AM, Daniel Bell daniel.r.b...@gmail.com
 wrote:
 
  I have a question for you about Overlay Types and the JSIO library.
  I'm working on a GWT interface to the Google Maps JavaScript API, and
  am wondering about the difference in performance between the two
  approaches.
  With JSIO I've been using wrapper objects that each contain an
  instance of a JavaScriptObject being wrapped, and contain a reference
  to a singleton instance of the flyweight wrapper. My guess is that the
  performance would be better if I used Overlay Types instead, but I am
  just guessing. Do you know (roughly) what the difference in
  performance is between the two approaches?
 
 
  First question - why aren't you using the official GWT APIs for Maps
 instead
  of writing your own? http://code.google.com/p/gwt-google-apis/ If there
 is
  something you need that isn't included, why not contribute to that rather
  than create your own from scratch?
 
  Overlay types are a bit more efficient and don't require a generator
 running
  which makes DevMode faster, but I don't think there is a lot of
 difference.
 
  --
  John A. Tamplin
  Software Engineer (GWT), Google
 
  --
  http://groups.google.com/group/Google-Web-Toolkit-Contributors

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


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