gwt tomcat unix doesn't work

2014-02-21 Thread fedex
Hi everyone

I am using tomcat version 6 in the unix server. When I try to run the sh 
version.sh file I get an error saying bad version. bin/bootstrap is not 
working i believe. I checked the jdk and jre version . They are compatible 
. I used commands java -version and javac -version to check the 
compatibility of java and compiler version. 

Recently I developed an application using GWT framework. When I deploy the 
application on the local tomcat server it wrks greats in the windows. I am 
using jdk 1.7 and jre7 in my local and verified on both tomcat version 6 & 
7. The application worked great and have no issues. I used ANT script to 
package the application so to deploy on unix server. I used the same ANT 
script to build the package when I deployed on local tomcat. 

Can anyone suggest what exactly could have gone wrong. Based on the error I 
understand compiler is not compatible to java version. When I run the sh 
version.sh in unix it showed the JRE HOME variable as /usr folder. I found 
in that folder java and jre compatible. Please help . Thanks 

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


gwt compilation issue

2014-02-19 Thread fedex
For my current Gwt project when I compile the project it creates  web-inf 
folder outside the war folder. 

Initially While working on project I accidentally deleted war folder and I 
kind of setup the folder manually by copying the files from my backup 
folder. I am not sure if this is the reason for it..if yes what I am 
suppose to do.

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


static methods question

2013-09-23 Thread fedex
Static methods executes at compile time then it executes before the object 
construction (as they get constructed during run time). But in our main 
method we create a class object and invoke class methods right . How does 
this happen when the method execution is happening at compile time it 
should throw an exception for object construction. Can you explain

public class animal {

public void behaviour() {
System.out.println("I am a dog");
}

}

public class Tiger {
public static void main(String[] args) { 
Animal ani = new Animal();  // here we are construction animal object which 
gets created runtime. How come static method gets executed then?   
  ani.behaviour(); 
  
 }
}

sorry this is not related to GWt 

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


Question regarding keydownhandler event

2013-08-26 Thread fedex
Hi everyone,
For my first keydownevent for the suggestbox How i can get the char value 
of the key I pressed. Currently I am obtaining the null value ? How can I 
avoid this

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


suggest box with rpc call - question

2013-08-26 Thread fedex
Hi everyone,

I am placing an suggestbox on the front interface whhere upon typing any 
value or letter corresponding list matching to that letter needs to appear. 
I am using keydownhandler event to obtain this.As you can see the below 
code I am making an RPC call to obtain the list of data from the oracle 
database . Suppose user has typed in letter 'D' the following query runs 
"String sql = "select NAME from DOM_REFERENCE_TABLE where DESCRIPTION = 
'NationalAccountDetails' AND NAME LIKE upper ('" + tablename +"%') ORDER BY 
NAME ASC";

where tablename value is 'D' so it pulls all the values from database 
starting with letter 'D'. This list will be added to the oracle object as 
shown in the response of RPC call. So, my problem is the list that needs to 
appear when user types in letter'D' doesn't happen for the first time but 
happens when user types in 'Next time'. I guess you people understood what 
I am trying to say. As the list gets added to oracle with keydown event it 
is not showing at that time but it will show for next event. But I need the 
matching list to be shwon in the same event. How can I achieve this? 


private MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
private SuggestBox suggestBox = new SuggestBox(oracle);

Key down event:
suggestBox.addKeyDownHandler(new KeyDownHandler(){
public void onKeyDown(KeyDownEvent event) {
// TODO Auto-generated method stub
String tablename = suggestBox.getValue();
if (tablename != null && !tablename.isEmpty()) {
datamartClientImpl.retrieveNATLData(tablename);
}
}

});

Response from RPC call
public void updateSuggestBox(DomesticDMAHistBean domesticDMAHistBean) {
oracle.addAll(domesticDMAHistBean.getNatldesc()); // obtaining the list 
with startin letter 'D'
hPanel.remove(Metrics);
hPanel.remove(bttnDomesticNATLHist);
vPanel.clear();
vPanel.add(suggestBox);
hPanel.add(vPanel);
hPanel.add(Metrics);
hPanel.add(bttnDomesticNATLHist);
}

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


SuggestBox with keydownhandler event - Question

2013-08-26 Thread fedex
Hi everyone,

For my application, I am adding a suggestbox on the front interface so when 
user types in any letter corresponding list (we won't add the list to the 
interface. It will be shown as the user types in and changes 
correspondingly when the letters changes as we generally see in online 
websites) matching to that letter needs to appear on the front interface. I 
am using keydownhandler event to obtain this.As you can see the below code, 
I am making an RPC call to obtain the list of data from the oracle database 
. Suppose user has typed in letter 'D' the following query runs 
"String sql = "select NAME from DOM_REFERENCE_TABLE where DESCRIPTION = 
'NationalAccountDetails' AND NAME LIKE upper ('" + tablename +"%') ORDER BY 
NAME ASC";

where tablename value is 'D', so it gets all  values starting with letter 
'D' from database. This list will then be added to the oracle 
(MultiWordSuggestOracle) object as shown in the below code(see at Response 
of RPC call Tag). So, the problem is the list that needs to appear when 
user types in letter'D' doesn't happen for the first time but happens when 
user types in Next time. I guess you people understood what I am trying to 
say. As the list gets added to oracle with keydown event it is not showing 
at that time but it will show for next event. But I need the matching list 
to be shown in the same event. How can I achieve this? Any suggestions? Let 
me know I need to clarify more on this. Thanks in advance

Code:


// Object Declaration
private MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
private SuggestBox suggestBox = new SuggestBox(oracle);

// Key down event:
suggestBox.addKeyDownHandler(new KeyDownHandler(){
public void onKeyDown(KeyDownEvent event) {
// TODO Auto-generated method stub
String tablename = suggestBox.getValue();
if (tablename != null && !tablename.isEmpty()) {
datamartClientImpl.retrieveNATLData(tablename);
}
}

});

// Response from RPC call
public void updateSuggestBox(DomesticDMAHistBean domesticDMAHistBean) {
oracle.addAll(domesticDMAHistBean.getNatldesc()); // obtaining the list 
with startin letter 'D'
hPanel.remove(Metrics);
hPanel.remove(bttnDomesticNATLHist);
vPanel.clear();
vPanel.add(suggestBox);
hPanel.add(vPanel);
hPanel.add(Metrics);
hPanel.add(bttnDomesticNATLHist);
}

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


doesn't allow to create a keydownhandler for the suggest box

2013-08-23 Thread fedex
Hi,

I am trying to create a keydownhandler event for the suggest box but it 
won't allow me to do so? why

It shows this error
" The method addKeyDownHandler(KeyDownHandler) in the type SuggestBox is 
not applicable for the arguments (new KeyDownHandler(){})"


Here is my code:

private MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();
private SuggestBox suggestBox = new SuggestBox(oracle);
suggestBox.addKeyDownHandler(new KeyDownHandler(){

@Override
public void onKeyDown(KeyDownEvent event) {
// TODO Auto-generated method stub
 }
  });

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


Re: issue with tomcat server

2013-08-21 Thread fedex
hey juno

how to check how many records I am putting in the memory? 

On Wednesday, August 21, 2013 9:14:01 AM UTC-5, Juan Pablo Gardella wrote:
>
> I've created a file with 6M of records using 
> http://ostermiller.org/utils/CSV.html without java heap memory issue. I 
> think increment the memory it is a workaround and isn't the solution. Check 
> how much records you are putting in memory.
>
>
>
>
> 2013/8/21 Michael Joyner >
>
>> You need to change how much memory java is allowed to allocate for the 
>> tomcat process. The default is rather small.
>>
>>
>> On Tue, Aug 20, 2013 at 4:56 PM, fedex 
>> > wrote:
>>
>>> For my application I am writing 1 million records to the csv file. It 
>>> works fine when I run in dev mode but when I deploy the application on 
>>> tomcat it throws java heap memory issue? why?
>>>  
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Google Web Toolkit" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> To post to this group, send email to 
>>> google-we...@googlegroups.com
>>> .
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

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


Re: issue with tomcat server

2013-08-21 Thread fedex
how to change it? any idea?

On Wednesday, August 21, 2013 9:10:22 AM UTC-5, Michael Joyner wrote:
>
> You need to change how much memory java is allowed to allocate for the 
> tomcat process. The default is rather small.
>
>
> On Tue, Aug 20, 2013 at 4:56 PM, fedex 
> > wrote:
>
>> For my application I am writing 1 million records to the csv file. It 
>> works fine when I run in dev mode but when I deploy the application on 
>> tomcat it throws java heap memory issue? why?
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to 
>> google-we...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>

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


exception when deployed on tomcat - Please help

2013-08-21 Thread fedex
I built an application where I write 1 million row of data to the csv file. 
It works great when I deploy the application on dev mode(jetty server) but 
when I deployed the same application on tomcat I get the below 
exception.Please Can anyone suggest what could be the reason?



Exception in thread "http-bio-8080-exec-5" java.lang.OutOfMemoryError: Java 
heap space
at sun.util.resources.TimeZoneNames.getContents(TimeZoneNames.java:201)
at 
sun.util.resources.OpenListResourceBundle.loadLookup(OpenListResourceBundle.java:125)
at 
sun.util.resources.OpenListResourceBundle.loadLookupTablesIfNecessary(OpenListResourceBundle.java:113)
Exception in thread "http-bio-8080-AsyncTimeout" 
java.lang.OutOfMemoryError: Java heap space
org.apache.catalina.connector.CoyoteOutputStream@18174a0
at 
java.util.concurrent.ConcurrentLinkedQueue.iterator(ConcurrentLinkedQueue.java:667)
at 
org.apache.tomcat.util.net.JIoEndpoint$AsyncTimeout.run(JIoEndpoint.java:153)
at java.lang.Thread.run(Thread.java:722)

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


issue with tomcat server

2013-08-20 Thread fedex
For my application I am writing 1 million records to the csv file. It works 
fine when I run in dev mode but when I deploy the application on tomcat it 
throws java heap memory issue? why?

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


need to send any value from server to client to stop the display page loading

2013-08-14 Thread fedex
i,

In my current application I am writing a huge data to write the csv file. 
For passing the values from client to server I used GWT-RPC call to send 
the data to server. Now, I need to send some value from server to client 
once the query is executed to stop the display page loading. How can I 
achieve this? is there any way where we can send the data from server to 
client 

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




Re: Export CellTable's selected rows into a csv file

2013-08-13 Thread fedex
one way to achieve this is to use the session object to store the values 
that you sent to the server side and in your httpservlet class obtain them 
and write to the excel file

On Monday, January 31, 2011 9:22:37 AM UTC-6, Ido wrote:
>
> Hi,
>
> I'm about to implement a new feature in my web application, in which csv 
> file is generated out of a selection module of a CellTable.
> Use case:
> my client selects rows in a CellTable --> clicks on an Export button --> 
> download csv file. 
>
> As I see it, these should be the actions once Export button is clicked:
> 1. Collect all selected objects from the selection module.
> 2. Send list to my server using RPC command.
> 3. Generate csv file out of the list.
> 3. "Send" the file to the client.
>
> I've already implemented the first 3 actions , However, did not manage to 
> find any solution for the 4th.
> Just don't have any idea how can my server "send" the file to the user.
>
> I've been looking over the net for any solution but couldn't find a thing.
>
> Will appreciate any answer,
> Thanks a lot,
> Ido
>

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




animated gif not animating

2013-08-13 Thread fedex
Hi,

Animation gif is not animation while loading the GWT application. here is 
the code I used

HTML:


DATAMART

   Loading



CSS
#Loading-Message {
display: block;
position: absolute;
top: 40%;
left: 55%;
text-align: center;
margin-left: -100px;
}

Entry Class:
DOM.setInnerHTML(RootPanel.get("Loading-Message").getElement(), "");

I am missing anything? 




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




my GWT application doesn't open in chrome or firefox.

2013-07-31 Thread fedex
Hi,

My GWT application doesn't work with the chrome or firefox. It works only 
in IE explorer. I was thinking if it has to do anything with the meta tag 
definition in the html


this is how I defined it currently. Please let me know. Thanks,

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




ERROR: to help protect your security internet explorer blocked this site from downloading

2013-07-31 Thread fedex
In my application I will be downloading a csv file. When the run the GWT 
application in dev mode and copy the url to IE it shows this message. I was 
told to add the dev mode url to the trusted sites but in the trusted sites 
it won't accept http portals. How can I change the dev mode URL to https? 
if else is there anyway i can overcome this issue. And one more thing is my 
URL won't work on google chrome or firefox. It only works in IE. Is there 
any reason?

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




only RPC call completes rest of my code should execute - how should I do it - very urgent please

2013-07-29 Thread fedex
Hi everyone,

I have an interface where the user selects the values and upon clicking the 
download button the selected values runs in the sql query and the obtained 
data is written to csv file. 

I am doing an RPC call to send the user selected values from the interface 
to the server. And on the server side I am storing these values in the http 
session variable. And I am retrieving these values in the servlet class 
which has a funtionality to write a data to csv file. Because the values 
send to the server is a RPC call, my initial session value remains zero ( 
first download click) and it writes nothing to the csv file though i have 
selected values from the user. On second click of download button it writes 
the data of the first selected values. How can expedite the RPC call or how 
can I make a RPC to synchronize call ? Can someone please suggest a 
possible to overcome this? Thanks a lot in advance 

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




only RPC call completes rest of my code should execute - how should I do it

2013-07-29 Thread fedex
I am storing the values in the session by making an rpc call. So, to get 
the values of this first the rpc call has to omplete and there by i can get 
the sored values and write my own condition. I can I acheive this? What 
condition can I have to make sure that first RPC call completes and execute 
later?

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




Re: rpc call - static methods is not working

2013-07-29 Thread fedex
sorry correction , at the end I mean the senddomesticdata method 

On Monday, July 29, 2013 2:17:17 PM UTC-5, fedex wrote:
>
> Hi everyone,
>
> I am trying to define a static method in the service interface to make an 
> rpc call. But it doesn't allow me to do so. here I am pasting my code
>
> Client class 
>
> public void sendDomesticData(String product,String dma,String 
> yrmnths,String dist,String metrics) { 
> String url = GWT.getModuleBaseURL() + "domesticservice";
> domesticServiceAsync = (DomesticServiceAsync) GWT
> .create(DomesticService.class);
> ServiceDefTarget endpoint = (ServiceDefTarget) domesticServiceAsync;
> endpoint.setServiceEntryPoint(url);
> domesticServiceAsync.sendDomesticData(product,dma,yrmnths,dist,metrics,new 
> Domestichandler() );
> }
>
> public class Domestichandler implements AsyncCallback {
>
> @Override
> public void onFailure(Throwable caught) {
> String error = caught.getMessage();
> System.out.println(error);
>  }
>
> public void onSuccess(Void result) {
> System.out.println("perfect");
>  }
>  }
>
> Service 
> public interface DomesticService extends RemoteService {
>  public  void sendDomesticData(String product,String dma,String 
> yrmnths,String dist,String metrics);
>
> }
>
> public interface DomesticServiceAsync {
>  void sendDomesticData(String product,String dma,String yrmnths,String 
> dist,String metrics,AsyncCallback callback);
> }
>
> server side -
>
> public  void sendDomesticData(String product, String dma,
> String yrmnths, String dist, String metrics) { 
> System.out.println(product); 
> }
>
> Basically I am trying to send the values from the front interface to the 
>  server side and I don't want any return value. But the values passed to 
> the server side should be stored globally in the server class so i can 
> access those values in different method. I tried changing all the 
> senddomestic values to static but it won't allow me to do so? why? 
>

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




rpc call - static methods is not working

2013-07-29 Thread fedex
Hi everyone,

I am trying to define a static method in the service interface to make an 
rpc call. But it doesn't allow me to do so. here I am pasting my code

Client class 

public void sendDomesticData(String product,String dma,String 
yrmnths,String dist,String metrics) { 
String url = GWT.getModuleBaseURL() + "domesticservice";
domesticServiceAsync = (DomesticServiceAsync) GWT
.create(DomesticService.class);
ServiceDefTarget endpoint = (ServiceDefTarget) domesticServiceAsync;
endpoint.setServiceEntryPoint(url);
domesticServiceAsync.sendDomesticData(product,dma,yrmnths,dist,metrics,new 
Domestichandler() );
}

public class Domestichandler implements AsyncCallback {

@Override
public void onFailure(Throwable caught) {
String error = caught.getMessage();
System.out.println(error);
 }

public void onSuccess(Void result) {
System.out.println("perfect");
 }
 }

Service 
public interface DomesticService extends RemoteService {
 public  void sendDomesticData(String product,String dma,String 
yrmnths,String dist,String metrics);

}

public interface DomesticServiceAsync {
 void sendDomesticData(String product,String dma,String yrmnths,String 
dist,String metrics,AsyncCallback callback);
}

server side -

public  void sendDomesticData(String product, String dma,
String yrmnths, String dist, String metrics) { 
System.out.println(product); 
}

Basically I am trying to send the values from the front interface to the 
 server side and I don't want any return value. But the values passed to 
the server side should be stored globally in the server class so i can 
access those values in different method. I tried changing all the 
senddomestic values to static but it won't allow me to do so? why? 

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




Re: how to send huge list of data to the server side from client interface in GWT

2013-07-25 Thread fedex
I don't want to use RPC call because since I have to just send the list to 
server and don't need any response back. is it possible using RPC?

On Thursday, July 25, 2013 1:21:58 PM UTC-5, Jens wrote:
>
> Why don't you use any of GWT's server communication features? 
> RequestFactory, GWT-RPC, RequestBuilder?
>
> -- J.
>

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




how to send huge list of data to the server side from client interface in GWT

2013-07-25 Thread fedex
Hi everyone,


In my current application I have to send huge list of data to the server 
side which will be passed to the oracle query. Currently I am using 
window.Location.replace(quertstring) method to pass the list where  by 
using request parameters we can obtain the client interface values. But it 
seems to be an issue since it doesn't allow ampersand values to pass & even 
If the list is huge the socket connection ends. Is there a way i can 
overcome these issues? Any  framework in GWT can help me resolving this?

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




Re: Google GWT with Eclipse eats up disk space -

2013-07-24 Thread fedex
how do I look for it? can we have any java code to make sure all these 
files get deleted?

On Wednesday, July 24, 2013 11:31:11 AM UTC-5, Timothy Spear wrote:
>
> Look for hidden files as a starting point. 
> Eclipse Version, GWT Version and OS would also be helpful. 
>
> Tim
>
> On Jul 24, 2013, at 12:15 PM, fedex > 
> wrote:
>
> Before I started working on the GWt project I have 50 to 60 GB space in 
> hard disk. I am currently building an application using GWT. I found that 
> my hard disk space is keep getting reduced every day and now i am left with 
> only 200 MB. I have folder users in which i have all my project files and 
> rest. The user folder shows the size as 199GB and when I see the indiviudal 
> file sixe of the folders in it they seem far less. They won't consummate to 
> 199 GB.  I have no idea what's happening? Every time when i compile the 
> project it eats away my hard disk. Please help me resolve this issue. 
> Thanks, 
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-web-toolkit+unsubscr...@googlegroups.com .
> To post to this group, send email to 
> google-we...@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>

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




Google GWT with Eclipse eats up disk space -

2013-07-24 Thread fedex
Before I started working on the GWt project I have 50 to 60 GB space in 
hard disk. I am currently building an application using GWT. I found that 
my hard disk space is keep getting reduced every day and now i am left with 
only 200 MB. I have folder users in which i have all my project files and 
rest. The user folder shows the size as 199GB and when I see the indiviudal 
file sixe of the folders in it they seem far less. They won't consummate to 
199 GB.  I have no idea what's happening? Every time when i compile the 
project it eats away my hard disk. Please help me resolve this issue. 
Thanks,

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




Re: How to use connection pooling in gwt

2013-07-16 Thread fedex
make an rpc call..you have many examples online on how to make a rpc call

On Tuesday, July 16, 2013 4:05:11 AM UTC-5, Prabhu wrote:
>
>
> Hi,
> I need to use the connection pooling in gwt.How can i configure and 
> how to write application.If any one have the example please provide to me.
> Thank you.
>

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




cursor movement should show the fullform of abbreviation

2013-07-16 Thread fedex
I have a listbox with the abbreviations of the database table name. When I 
move my cursor on any particular table name it should show its full form. 
How to do it. Thanks,

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




Re: GWT 2.4 & Jetty nocache.js files

2013-06-27 Thread fedex
hey can I use the same code for my application? what else will change if I 
have to use for mine? This filter will help us with cache issues right?

On Wednesday, July 18, 2012 10:57:41 AM UTC-5, brent...@gmail.com wrote:
>
> I figured out the answer.  All I had to do was add this to my web.xml file.
>
>  
>
>  default
>
>  org.eclipse.jetty.servlet.DefaultServlet
>
>  
>
>  cacheControl
>
>  public, max-age=0, must-revalidate
>
>  
>
> 
>
> 
>
>  default
>
>  /myApp/*.nocache.js
>
> 
>
> Thanks!
>
>
> On Wednesday, July 18, 2012 10:50:15 AM UTC-4, brent...@gmail.com wrote:
>>
>> In this gwt 
>> web
>>  says 
>> to place a *.htaccess config file like this to avoid caching main 
>> javascript gwt application.
>>
>> 
>>   ExpiresActive on
>>   ExpiresDefault "now"
>>   Header merge Cache-Control "public, max-age=0, must-revalidate"
>> 
>>
>> 
>>   ExpiresActive on
>>   ExpiresDefault "now plus 1 year"
>> 
>>
>> Is there a way to do the same with Jetty ? (whithout needing to use httpd 
>> jetty module)
>>
>> We're using an embedded jetty container version 7.3.1.v20110307.
>>
>

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




Re: Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host - while writing to the csv file

2013-06-27 Thread fedex
would you mind if you can show me some sample code how to do it, Please. 
Thanks

On Tuesday, June 25, 2013 4:51:33 PM UTC-5, jhulford wrote:
>
> It's because the browser is closing the connection, that's what the 
> wrapped exception means.  The user is either hitting the stop button or 
> navigating away or the file you're writing is taking way too long to write 
> out and the browser (or a proxy along the way) is closing out the socket 
> before everything is written.
>
> You probably need to run this csv process in a background processing queue 
> of some sort.
>
> On Monday, June 24, 2013 3:43:40 PM UTC-5, Shashank Beerla wrote:
>>
>> Can anyone please suggest how to resolve this exception. I implemented a 
>> code which writes huge data to the csv file. I don't know why the 
>> connection is getting out.
>>
>>
>>
>> org.mortbay.jetty.EofException
>> org.mortbay.jetty.EofException
>> org.mortbay.jetty.HttpConnection$Output@f09f9a
>> at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
>> at 
>> org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:566)
>> at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:911)
>> at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297)
>> at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
>> at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
>> at java.io.BufferedWriter.flush(BufferedWriter.java:254)
>> at 
>> com.fedex.forecast.datamart.server.util.CSVFileDownloadServlet.writeCsv(CSVFileDownloadServlet.java:180)
>> at 
>> com.fedex.forecast.datamart.server.util.CSVFileDownloadServlet.doPost(CSVFileDownloadServlet.java:75)
>> at 
>> com.fedex.forecast.datamart.server.util.CSVFileDownloadServlet.doGet(CSVFileDownloadServlet.java:38)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
>> at 
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
>> at 
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>> at 
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
>> at 
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
>> at 
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> at 
>> org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
>> at 
>> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>> at org.mortbay.jetty.Server.handle(Server.java:324)
>> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
>> at 
>> org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>> at 
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
>> at 
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
>> Caused by: java.io.IOException: An existing connection was forcibly 
>> closed by the remote host
>> at sun.nio.ch.SocketDispatcher.write0(Native Method)
>> at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51)
>> at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94)
>> at sun.nio.ch.IOUtil.write(IOUtil.java:51)
>> at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450)
>> at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:160)
>> at 
>> org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:207)
>> at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:693)
>> ... 28 more
>>
>>

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




date in the csv file doesn't update unless I stop the application and restart it

2013-06-27 Thread fedex
Hi everyone,

I am writing a huge data list to the csv file. When I start the application 
and click on download the csv file open with the time and date. If i select 
different options on my interface and click download without closing the 
server (jetty -inbuilt for GWT) the time still shows the same. It won't get 
update. But the data written gets update  based on my selection from 
interface When i close the application and restart it then the time gets 
update. why is it so? is it because of cookies? 

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