Blocked request without GWT permutation header (XSRF attack?)

2014-02-10 Thread lukasz . medrzycki
hi, 
I have exception 'Blocked request without GWT permutation header (XSRF 
attack?)' when I trying start my test performance. How can I resolve this 
problem?

-- 
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: DateBox getDatePicker() and setCurrentMonth()

2013-06-21 Thread Lukasz Plotnicki
Hi Jens,

this is a really good idea. Thank you for this!

Am Donnerstag, 20. Juni 2013 19:33:34 UTC+2 schrieb Jens:

 When you focus a DateBox then the method DateBox.showDatePicker() is 
 called. This method calls datePicker.setCurrentMonth() with the date parsed 
 from the TextBox text or the current date if parsing has failed (e.g. 
 because the TextBox is empty). 

 So you either have to call DateBox.setValue() with your month date or you 
 have to extend DateBox and override showDatePicker(), e.g.

 public void setMonthSuggestion(Date suggestion) {
   this.currentMonthSuggestion = suggestion;
 }

 @Override
 public void showDatePicker() {
 Date current = parseDate(false);
 if (current == null) {
   current = currentMonthSuggestion; //instead of new Date()
 }
 picker.setCurrentMonth(current);
 popup.showRelativeTo(this);
 }

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




DateBox getDatePicker() and setCurrentMonth()

2013-06-20 Thread Lukasz Plotnicki
Hi,

does anybody know, why I when I access the *DatePicker* of a *DateBox* via 
the *getDatePicker()* method and try to set it to show a specific month 
(via the *setCurrentMonth(Date month)* method), it simply does not work? 
Have I misunderstood the API? The *setCurrentMonth()* method works just 
fine if I use it on a *DatePicker* object I created myself.

Looking forward to your feedback,
Lukasz

-- 
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: DateBox getDatePicker() and setCurrentMonth()

2013-06-20 Thread Lukasz Plotnicki
I'm using 2.5.1 and the DateBox is created via ui:binder. But I also tested 
it in the simplest possible setting (generating a new GWT projetct with 
eclipse and creating a DateBox widget in code), where I observed the same 
strange behaviour. 

Am Donnerstag, 20. Juni 2013 16:45:53 UTC+2 schrieb Patrick Tucker:

 When you create the DatePicker yourself, how are you creating it?  DateBox 
 uses the no arg constructor...  If you are providing it with a bad model or 
 something like that then it would be at fault not the DateBox or DatePicker.

 On Thursday, June 20, 2013 10:42:43 AM UTC-4, Patrick Tucker wrote:

 In 2.5.1, I believe the earlier versions are the same, getDatePicker() 
 returns the actual DatePicker so it should work as advertised.

 On Thursday, June 20, 2013 5:28:39 AM UTC-4, Lukasz Plotnicki wrote:

 Hi,

 does anybody know, why I when I access the *DatePicker* of a *DateBox*via 
 the 
 *getDatePicker()* method and try to set it to show a specific month 
 (via the *setCurrentMonth(Date month)* method), it simply does not 
 work? Have I misunderstood the API? The *setCurrentMonth()* method 
 works just fine if I use it on a *DatePicker* object I created myself.

 Looking forward to your feedback,
 Lukasz



-- 
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: Joda Time Jodatime in GWT server

2013-04-17 Thread Lukasz Plotnicki
Hi,

AFAIK there is no gwt-port of jodatime available. So you will not be able 
to use jodatime in your *client *or *shared *packages as this library 
dependencies are not present in the emulated JRE on the client. If you have 
a *DTO* layer, you can then easily convert your jodatime objects in to *
java.util.Date* and use them in your client code.

HTH,
Lukasz

On Monday, April 15, 2013 11:36:15 PM UTC+2, Steve Morgan wrote:

 I'm using Jodatime in my GWT application, server only. I'm getting a 
 runtime message:  java.lang.ClassNotFoundException: 
 org.joda.time.ReadableInstant. I have included Jodatime 1.6.2 in my project 
 build path. Do I need to add an inherits ... statement as well? I am sure 
 it is something extremely simple, I just haven't found it.
 Thanks,
 Steve


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




Re: Best way to schedule periodic reminder?

2013-01-31 Thread Lukasz Plotnicki
 

Alternatively to using the Timer – as the time period you are interested in 
is quite long (1h) - you could just introduce a check on any client action, 
where you compare the time of last save call and the current time. Then you 
don't have the extra resources needed for the Timer-based solution. If you 
use an EventBus for communicating the UI and state changes, then the 
implementation would be very straightforward.


 That said, in the application I'm working on, we use the Timer solution to 
automatically sing out the user, if there is no activity within 15 min. We 
did not mention any performance problems.


 HTH,

Lukasz

Am Donnerstag, 31. Januar 2013 14:01:04 UTC+1 schrieb membersound:

 Hi,

 I would like to create a popup every hour that reminds the user to save 
 his work (of course only if the work has not been saved for 1 h).
 What is the right way to do this?

 timer.scheduleRepeating(TIME);

 and on save: timer.cancel()?

 Probably it works this way, but would this consume decent resources if 
 there is always a timer running in background? Or doesn't this matter.

 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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to upload a file only on the client side?

2013-01-30 Thread Lukasz Plotnicki
 

Hi, 

 AFAIK you can not access this file on the client as it would violate the 
sandbox principle. To do something like this, you could use the HTML5 file 
api → maybe this library will help you: 
http://code.google.com/p/lib-gwt-file/


 Cheers,

Lukasz

Am Mittwoch, 30. Januar 2013 13:26:23 UTC+1 schrieb membersound:

 Hi,

 I defined a file upload. I do not want to send the file to the server, but 
 instead directly show the content (txt file) to the user. How could I do 
 this: getting the content of the file? What am I missing?

 @UiField FormPanel form;
 @UiField FileUpload upload;
 @UiField Button submit;

 form.setEncoding(FormPanel.ENCODING_MULTIPART);
 form.setMethod(FormPanel.METHOD_POST);

 @UiHandler(submit)
 void onSubmit(ClickEvent event) {
 form.submit();
 }

 @UiHandler(form)
 void onSubmitForm(SubmitCompleteEvent evt) {
 Sysout(this never executes:  + evt.getResults());
 }

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




Re: Debug Id (or equivalent) for CellTable elements?

2013-01-25 Thread Lukasz Plotnicki
What about using XPath and combining different attributes,e.g 

driver.findElement(By.xpath(//div[contains(@class,'menuTitle') and 
contains(.,'Register Menu')]))

 We are using it and are quite happy as it is panel/layout-structure 
independent. The performance is not as good as with By.id, but acceptable. 

Am Donnerstag, 24. Januar 2013 15:16:08 UTC+1 schrieb jacob@gmail.com:

 Hi,

 I'm trying to setup Selenium unit testing for my project, and I'm 
 wondering if there is any equivalent to UiObject.ensureDebugId() for 
 elements in a CellTable, such as Column, Header, or any of the various Cell 
 types. What I have been doing is override the Column.render() method to 
 dynamically insert a div with an ID that I can find later, but this seems 
 very hacky and counter-intuitive. I can't seem to find any way to do this 
 for the Header element though.

 Using xpath to find elements in the table is not an option, as our unit 
 tests can't be tied to the structure of the GUI staying exactly the same. 
 For the same reasons, trying to find elements by text or tag name (etc. 
 etc.) wouldn't work either.

 Is there something I'm missing here, or do the CellTable elements not 
 provide this functionality?



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




Re: Problems deploying GWT app in Tomcat

2013-01-24 Thread Lukasz Plotnicki
Should it not be: 

 servlet-mapping
servlet-nameloginServlet/servlet-name
url-pattern*/betelo2/login*/url-pattern
  /servlet-mapping
  servlet-mapping
servlet-namecommonDataServlet/servlet-name
url-pattern*/betelo2/commondata*/url-pattern
  /servlet-mapping

HTH,
Lukasz

Am Donnerstag, 24. Januar 2013 08:40:52 UTC+1 schrieb Jostein:

 Here is an snippet from the Tomcat log that probably explains the problem.

 Caused by: java.lang.IllegalArgumentException: Invalid url-pattern 
 betelo2/commondata in servlet mapping
 at 
 org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3217)
 at 
 org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3192)
 at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1304)
 at 
 org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1352)
 at 
 org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)
 ...
 As a said. Everething works fine in dev mode, but I get this error when 
 deploying to Tomcat
 and here is a snippet from my web.xml

  !-- Servlets --
   servlet
 servlet-nameloginServlet/servlet-name
 servlet-classcom.fdv.betelo2.server.LoginServiceImpl/servlet-class
   /servlet
   servlet
 servlet-namecommonDataServlet/servlet-name
 
 servlet-classcom.fdv.betelo2.server.CommonDataServiceImpl/servlet-class
   /servlet

   servlet-mapping
 servlet-nameloginServlet/servlet-name
 url-patternbetelo2/login/url-pattern
   /servlet-mapping
   servlet-mapping
 servlet-namecommonDataServlet/servlet-name
 url-patternbetelo2/commondata/url-pattern
   /servlet-mapping

 I cannot see what is wrong here. I am grateful for any help.

 Regards, 
 Jostein

 kl. 11:52:30 UTC+1 onsdag 23. januar 2013 skrev Jostein følgende:

 Hi
 I have developed an application in dev mode in Eclipe for some time and 
 everything workes fine. Yesterday I tried to deploy to Tomcat, but the 
 application did not launch in the browser. 
 Then I tried the same with a basic Web Application Starter Project, 
 generated automatically when creating a new GWT project i Eclipse. The new 
 project consists of some basic functionality, RPC included.

 The deploying process goes like this (this is my understandig of how to 
 do it)
 1. Perform GWT Compile Project from the blue g dropdown in the 
 toolbar in Eclipse
 2. Use default settings in the GWT compile dialog. Press Compile.
 3. After comiling I select the .war folder in the TestTomcat project in 
 Eclipse.
 4. Then rightclick -  Export - Archive file - Next
 5. Change the To archive file to 
 D:\apache-tomcat-7.0.34\webapps\TestTomcat.war.zip - Finish
 6. Opens the D:\apache-tomcat-7.0.34\webapps folder and renames the 
 TestTomcat.war.zip to TestTomcat.war
 7. Then I restart Tomcat and now a new folder TestTomcat has been 
 created in the webapps folder

 I run my app in a browser with this url:
 http://localhost/TestTomcat/TestTomcat/war/TestTomcat.html

 The application starts as expected, but when I press the Send button 
 that is sending a name to the server I get an error message
 An error occurred while attempting to contact the server. Please check 
 your network connection and try again.

 My JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09

 a) Why doesn't RPC work?
 b) Is this the correct way to deploy GWT application in Tomcat?

 Any help is appreciated.

 Thanks
 Jostein



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




Re: call to panels using UiBinder

2013-01-24 Thread Lukasz Plotnicki
There is a variety of solution, how to address this. You could implement 
it completely by yourself, introducing some top-level object, controlling 
which view (panel) should be rendered at which time. Preferably you would 
use an event bus and change the ui events to let the top-level object 
know, that it should render a new panel in place of the old one. Happily 
you don't have to re-invent the wheel: just take a look at: 
https://developers.google.com/web-toolkit/doc/latest/DevGuideMvpActivitiesAndPlaces
 and http://code.google.com/p/gwt-platform/.

HTH,
Lukasz

Am Donnerstag, 24. Januar 2013 10:10:30 UTC+1 schrieb Crease:

 Hi,

 I would like saying that I´m new or I have little time dedicate me to GWT 
 and UiBinder

 I´m developing an application and I would like calling to various panels 
 (widgets) but I don´t know as I have do it.
 When I push a button (depend of the button that push user), I want to go 
 to a panel or other panel.

 In the attached file there is a simulation

 Thanks.


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




Re: call to panels using UiBinder

2013-01-24 Thread Lukasz Plotnicki
There is a variety of ways, how to address this. You could implement 
it completely by yourself, introducing some top-level object, controlling 
which view (panel) should be rendered at which time. Preferably you would 
use an event bus and change the ui events to let the top-level object 
know, that it should render a new panel in place of the old one. Happily 
you don't have to re-invent the wheel: just take a look at: 
https://developers.google.com/web-toolkit/doc/latest/DevGuideMvpActivitiesAndPlaces
 and http://code.google.com/p/gwt-platform/.

HTH,
Lukasz

Am Donnerstag, 24. Januar 2013 10:10:30 UTC+1 schrieb Crease:

 Hi,

 I would like saying that I´m new or I have little time dedicate me to GWT 
 and UiBinder

 I´m developing an application and I would like calling to various panels 
 (widgets) but I don´t know as I have do it.
 When I push a button (depend of the button that push user), I want to go 
 to a panel or other panel.

 In the attached file there is a simulation

 Thanks.


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




Re: Problems deploying GWT app in Tomcat

2013-01-23 Thread Lukasz Plotnicki
As Thomas already stated, the best way would be to use a proper build 
system. I use maven and maven-gwt-plugin which works just perfectly. 

But if you don't have any spare time to switch to maven right now, you will 
get your app running performing your step 1  2 and then putting everything 
in the war directory of your project into an war archive which can be easly 
deployed on tomcat.

HTH,
Lukasz

Am Mittwoch, 23. Januar 2013 11:52:30 UTC+1 schrieb Jostein:

 Hi
 I have developed an application in dev mode in Eclipe for some time and 
 everything workes fine. Yesterday I tried to deploy to Tomcat, but the 
 application did not launch in the browser. 
 Then I tried the same with a basic Web Application Starter Project, 
 generated automatically when creating a new GWT project i Eclipse. The new 
 project consists of some basic functionality, RPC included.

 The deploying process goes like this (this is my understandig of how to do 
 it)
 1. Perform GWT Compile Project from the blue g dropdown in the toolbar 
 in Eclipse
 2. Use default settings in the GWT compile dialog. Press Compile.
 3. After comiling I select the .war folder in the TestTomcat project in 
 Eclipse.
 4. Then rightclick -  Export - Archive file - Next
 5. Change the To archive file to 
 D:\apache-tomcat-7.0.34\webapps\TestTomcat.war.zip - Finish
 6. Opens the D:\apache-tomcat-7.0.34\webapps folder and renames the 
 TestTomcat.war.zip to TestTomcat.war
 7. Then I restart Tomcat and now a new folder TestTomcat has been 
 created in the webapps folder

 I run my app in a browser with this url:
 http://localhost/TestTomcat/TestTomcat/war/TestTomcat.html

 The application starts as expected, but when I press the Send button 
 that is sending a name to the server I get an error message
 An error occurred while attempting to contact the server. Please check 
 your network connection and try again.

 My JAVA_HOME=C:\Program Files\Java\jdk1.7.0_09

 a) Why doesn't RPC work?
 b) Is this the correct way to deploy GWT application in Tomcat?

 Any help is appreciated.

 Thanks
 Jostein


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



Re: Mehrbenutzerfähigkeit der Serverseite / Multiuserability serverside

2012-12-21 Thread Lukasz Plotnicki
Hi Sascha,

this depends on your server-side code and architecture. You need to provide 
more information to give us an opportunity to help you. What should your 
application do? In general, the server-side of an GWT app behave 
accordingly to the normal session-pattern (as the GWT-RPC services are 
based on Servlets)...

HTH,
Lukasz 

Am Donnerstag, 20. Dezember 2012 09:05:50 UTC+1 schrieb Sascha Hoffmann:

 Hallo ihr Lieben

 Ich habe folgendes Problem. Ich habe ein kleines GXT-Programm geschrieben 
 und musste nun vorstellen das die Serverseite die einzelnen Aufrufe nicht 
 trennt. 
 Als Beispiel:
  - Ich habe auf der Serverseite eine Variable die Client A mit dem Wert 
 TEST befüllt. Nun kann Client B diesen Wert auslesen und verändern.
 Ist das normal? Gibt es Möglichkeiten das zu ändern?

 Liebe Grüße
 Sascha



 Hello

 I have a problem. I wrote a little program and determined that the 
 serverside the calls not differt.
 A example:
 - I have a variable and Client A set the variable with TEST. Client B 
 can now read this variable or change it.
 Is this normal? Is there a possibillity to change this fact?
 http://dict.leo.org/ende?lp=endep=DOKJAAsearch=faithfullytrestr=0x8040
 Yours faithfully
 Sascha


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



Re: Can This Be Done?

2012-04-20 Thread Lukasz Plotnicki
Hi Al,

if by this functionality you mean the interactive chart, then yes: take a 
look at google apis and especially the visualization api with gwt 
integration: http://code.google.com/p/gwt-google-apis/

HTH,
Lukasz

Am Donnerstag, 12. April 2012 02:01:18 UTC+2 schrieb Al Yameen:

 Hi all,

 Can the site's functionality be replicated with GWT? 

 http://nextbigsound.com/267814/stats-Drake#267814-fans

 Thanks,
 Al


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



Re: Hibernate ClassCastException in GWT hosted mode only

2012-03-08 Thread Lukasz Plotnicki
Does anybody know a workaround (other then rollback to and old hibernate 
version) for this issue?

Am Montag, 20. Februar 2012 07:58:57 UTC+1 schrieb Artem V. Navrotskiy:

 This is Hibernate 4.0.0+ bug:
 https://hibernate.onjira.com/browse/HHH-7084



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



Re: GWT RPC not working behind Apache and Tomcat

2012-02-26 Thread Lukasz Plotnicki
Hi,

our GWT App is running in this particular setting without any problems. 
Apache forwards anything with **/OurApp* to tomcat via *AJP* protocol 
(apache tomcat AJP connector).

Are you also using AJP or mod_rewrite?

Cheers,
Lukasz

Am Samstag, 25. Februar 2012 18:25:24 UTC+1 schrieb mukarev:

 Hi folks, 

 I'try to serve two gwt webapps via one apache from one tomcat with JK 
 and I'm always running in the same error. Apache sends a 404 and tells 
 me that it's not able to find the servlet if I try to communcate via 
 RPC. 

 I have two virtual hosts pointing at the directories within tomcat 
 webapps. The webapps are running successfully as long as I don't try 
 to communicate via RPC. It seems that Apache isn't able to resolve the 
 requested service. 

 Need help, I'm sitting here around hopeless. 

 Thanks! 

 Markus


Am Samstag, 25. Februar 2012 18:25:24 UTC+1 schrieb mukarev:

 Hi folks, 

 I'try to serve two gwt webapps via one apache from one tomcat with JK 
 and I'm always running in the same error. Apache sends a 404 and tells 
 me that it's not able to find the servlet if I try to communcate via 
 RPC. 

 I have two virtual hosts pointing at the directories within tomcat 
 webapps. The webapps are running successfully as long as I don't try 
 to communicate via RPC. It seems that Apache isn't able to resolve the 
 requested service. 

 Need help, I'm sitting here around hopeless. 

 Thanks! 

 Markus

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



Re: GWT for Eclipse on linux

2011-12-06 Thread Lukasz Plotnicki
Just download and use the eclipse version from eclipse.org. I work only on 
linux (ubuntu) and had no problems whatsoever with eclipse and the google 
plugin for eclipse.

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



Re: BigBill has a newbie question...

2011-11-25 Thread Lukasz Plotnicki
Wouldn't it be easier to just use the eclipse GWT wizard for a new GWT 
project - which will create a well documented, simple 
project containing all the basic stuff which you can run and analyse and 
therefore understand quite quickly... (I'm assuming that you installed the 
google plugin for eclipse)

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



Re: Best Visualization for GWT?

2011-11-22 Thread Lukasz Plotnicki
http://www.moxiegroup.com/moxieapps/gwt-highcharts/ looks very nice.

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



Re: Login security question

2011-04-12 Thread Lukasz
Hi Leung,

if you're realizing the log in and log out functionality within
your GWT app and not with other mechanism (e.g. container based
authentication),
you just need to make sure that the log-in RPC call to the server
returns an unique sessionID to your client. For the generation of the
sessionID on the server you can use the UUID class and then just send
uuid.toString() to the client. This token/sessionId needs to be send
to the server with each RPC call to ensure the server-side check if
the session is valid, so you also need to store it in your client app,
as long as the user is signed in. On the server side you just need to
keep track of all currently valid sessionId's.

HTH,
Lukasz

On Apr 12, 12:30 pm, Leung leung1_2...@yahoo.com wrote:
 Hi

 According to article 
 LoginSecurityFAQ,http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...,
  I have a point that I really want someone to make it clear for me.

 From the article,
 Your server will then validate this login, and return a sessionID to your 
 GWT app. The GWT app will store this sessionID in a static field. For every 
 further request your GWT app makes to your server, include this sessionID in 
 the payload of the request. (Either in the JSON data or the object you are 
 transferring using GWT-RPC).

 I assume the server returns the sessionId by RPC to the client after 
 validation.
 How can I include this sessionID in the payload of the request using 
 GWT-RPC?
 How can I tell the sessionID is in the payload of the request or not in the 
 payload?

 Thanks
 Ming

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



Re: Access Service Layer inside RequestFactory EntityLocator

2011-03-25 Thread Lukasz Strzelecki
Kathiravan Tamilvanan kathir@... writes:

 
 

Did you manage to resolve this? I'm forcing with same problem rigth now.


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



Re: problem with character encoding

2011-03-22 Thread Lukasz
Hi,

is the application deployed on a tomcat? If so, then check the
server.xml configuration and especially the conncetor URI encoding
definition.

HTH,
Lukasz

On 22 Mrz., 12:32, tanteanni tantea...@hotmail.com wrote:
 i made a very simple sandbox gwt-app to get familiar with rpc and
 integrating third-party libraries. this sandbox app simply references
 a library that offers one service: returning a string read from a
 property-file within the referenced jar.

 the problem is the encoding seem to be wrong - special characters are
 being scrambled (in my case german umlauts). but why? all seem to be
 set to utf-8: my hole eclipse-workspace including the properties-file
 read from and the sandbox.html begins with:
 meta http-equiv=content-type content=text/html; charset=UTF-8

 so what could scramble the characters? where to look for wrong
 encodeing?

 thx in advance

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



Re: User roles in GWT applications

2011-03-08 Thread Lukasz
UserMgr is a simple class containing the functionality needed for the
UI to do the roles checks, login  logout user etc. The list of roles
assigned to the user is not a part of the UserMgr itself but it's a
property of the User entity -a simple HashSet to be precise. The
UserMgr has a property called currentUser which gives access to the
roles. UserMgr offers then a set of roleaccess check methods for the
presenters e.g. public boolean canEdit() etc.

HTH,
Lukasz

On 7 Mrz., 11:08, csaffi csaff...@gmail.com wrote:
 Thank you Lukasz.

  In my app I'm doing the security checks on the client- as well as on
  the server-side. After the user successfully logged into the app, the
  UserManager containes among other things a set of roles which are
  assigned to the current user enabling the role-checks without any rpc-
  callbacks. The client checks are done to provide only the necessary UI
  - only the system functions which can actually be accessed by the
  current user. The server checks provides the true security, ensuring
  that only the users with the corresponding rights can access the
  services.

 UserManager is a list of roles assigned to user-groups? So, a key-
 value table?

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



Re: User roles in GWT applications

2011-03-03 Thread Lukasz
In my app I'm doing the security checks on the client- as well as on
the server-side. After the user successfully logged into the app, the
UserManager containes among other things a set of roles which are
assigned to the current user enabling the role-checks without any rpc-
callbacks. The client checks are done to provide only the necessary UI
- only the system functions which can actually be accessed by the
current user. The server checks provides the true security, ensuring
that only the users with the corresponding rights can access the
services.

As I'm working with the gwt-presenter, I'm doing the checks also
within the Places objects. But also in the presenters if it's needed.

On 2 Mrz., 20:14, csaffi csaff...@gmail.com wrote:
 On 2 Mar, 14:31, Lukasz l.plotni...@googlemail.com wrote:

  I'm doing it by providing a self-implemented UserManager object on the
  client. It contains the currently signed in user and provides methods
  for access or role checks e.g. canEditUser(). This UserManager object
  is an singleton injected via gin into all relevant presenters (as you
  see I'm also using the MVP pattern in my app). When the presenter is
  rendering the view, it can check which functionality should be enabled
  or disabled.

  HTH,
  Lukasz

 Thank you Lukasz.
 Does UserManager check user roles server-side with an RCP call?

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



Re: User roles in GWT applications

2011-03-02 Thread Lukasz
I'm doing it by providing a self-implemented UserManager object on the
client. It contains the currently signed in user and provides methods
for access or role checks e.g. canEditUser(). This UserManager object
is an singleton injected via gin into all relevant presenters (as you
see I'm also using the MVP pattern in my app). When the presenter is
rendering the view, it can check which functionality should be enabled
or disabled.

HTH,
Lukasz

On 1 Mrz., 18:47, csaffi csaff...@gmail.com wrote:
 Hi everybody,
 I'm wondering if you could suggest me any way to implement user
 roles in GWT applications. I would like to implement a GWT
 application where users log in and are assigned roles. Based on
 their role, they would be able to see and use different application
 areas.

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



Re: Is it possible to override a ListBox()'s functionality

2011-03-02 Thread Lukasz
If I understood correctly, you would like to validate other entries
before the selection in the list... In this situation, I don't think
it is necessary to extend the ListBox() functionality - you could just
add a FocusHandler to the list and check the validations status there.

Cheers,
Lukasz

On 1 Mrz., 23:17, Rob Tanner caspersg...@gmail.com wrote:
 I have a ListBox() with 9 items that opens to display the items for
 selecting when you click on it.  There are, however, a number of other
 fields in the form that I want to validate before you can make a
 selection.  What I would like to be able to do is delay the box's
 opening until I validate the other items so that I can generate errors
 and get the invalid entries corrected.  Is that ever possible to do at
 least across the major browsers.

 I am using GWT 2.1.

 Thanks,

 Rob Tanner
 Linfield College

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



Re: refresh page problem in gwt

2011-02-09 Thread Lukasz
Could you be more specific - e.g. what does the app do? Generally (if
you didn't implement any browser history mgmt.) the browser refresh
results with a complete reload of your app and a new call to the
onModuleLoad method.

HTH
Lukasz

On 9 Feb., 07:15, harry hemangsha...@gmail.com wrote:
 i m developing a website for mobile but problem was:-

 1st time all the content we get in our browser. but after refreshing
 the page all the content and data we get from database is not
 visible.event not a single content we can visible on the page.
 page is jst empty in website.

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



Re: Checking User activity on browser

2011-01-18 Thread Lukasz
Hi,

I'm using following mechanism:

Event.addNativePreviewHandler(new NativePreviewHandler() {
@Override
public void onPreviewNativeEvent(NativePreviewEvent event) {
switch (event.getTypeInt()) {
case Event.ONKEYDOWN:
case Event.ONKEYPRESS:
case Event.ONMOUSEMOVE:
case Event.ONCLICK:
case Event.ONDBLCLICK:
case Event.ONMOUSEWHEEL:
... some logic ...
}
}
});

This enables me the react on each user's action in the current
window.

HTH,
Lukasz

On 17 Jan., 12:40, saket kumar newga...@gmail.com wrote:
 Hi All,

 Is there a way I can check if the user is active on the GWT browser page
  i.e. if he is scrolling,clicking, tabbing etc. ?  I basically need a global
 listener.

 Thanks in advance

 --
 Regards,
 Saket Kumar
 +91 9811139807

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



Re: SOP Problem with GWT 2.0.4

2010-12-08 Thread Lukasz
JSONP is a quite straight forward solution for the SOP problem and
thanks to the JsonpRequestBuilder nicely supported in GWT 2.1. But as
already mentioned the CGI service needs to be able to respond with
valid JSON data. Below some code example:

StringBuilder url = new StringBuilder(SERVICE_URL);
url.append(?
action=getAll).append(userToken=).append(userMgr.getCurrentUserToken());
/*
 * Resolving the data
 */
JsonpRequestBuilder jsonp = new JsonpRequestBuilder();
jsonp.setFailureCallbackParam(errorCallback);
jsonp.requestObject(url.toString(),
new AsyncCallbackJavaScriptObject() {

@Override
public void onFailure(Throwable caught) 
{
// some exception handling code
}

@Override
public void onSuccess(JavaScriptObject 
result) {
/*
 * Processing the provided JSON 
Data
 */
something.buildFromJSON(new 
JSONObject(

result));
}
});

HTH,
Lukasz

On 8 Dez., 14:46, bananos andrew.druche...@gmail.com wrote:
 Julio, you can try using JSONP, if your external CGI page is capable
 of returning valid JSON data.
 If it's not your case, the only possible way is to write server-side
 code at your backend, and serve data from your own host

 On Dec 8, 3:22 pm, julio antongiuli...@gmail.com wrote:







  Hi Thomas thanks for your reply.

   The xs linker only allows you to load the GWT app (*.nocache.js et
   al.) from a different origin than the HTML host page. This is
   because the default linker (std, or IFrameLinker) uses an iframe to
   load the *.cache.html and then hits the SOP when trying to communicate
   with the host page. The xs linker does not use an iframe but instead
   load *.cache.js files directly in the host page.

  Ok so it's not my case.

Have you any idea?

   There's no way a browser can contact a remote public CGI (not under
   [your] control) if that one doesn't explicitly allows it (using
   CORS), and were it the case then it would only work for those browsers
   that support CORS (recent versions of Firefox, Chrome, Safari and
   Opera; IE8 supports it but with a specific API that GWT doesn't use).

  if I paste and copy the remote cgi's url in the browser bar the data
  get displayed on it (Firefox 3.5.12, IE6 and Chrome 8).
  In this case something is still possible?

  Thanks,
  Julio

-- 
You received 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: Deploying GWT application on a web server

2010-11-24 Thread Lukasz
If you don't need any server-side logic, then you just need to put the
compiled java-script files and other resources (like images, css and
stuff) on a normal webserver.

On 23 Nov., 17:02, Kenneth Jacker khjac...@gmail.com wrote:
  Then make a WAR archive  (archive the war folder within your project
  folder) and deploy it e.g. on tomcat (copy the archive to tomcat's
  webapps directory).

  After tomcat discovered the new war and auto-deployed it, you're ready
  to go and can access the app via browser.

 What if the application doesn't need a server, any RPC?
 But just a dynamically created web page?

 How can a pure client be deployed without using 'tomcat'?  E.g., how
 about a GWT application that only displays Hello, World! (with maybe
 a Quit button)?  I know that would be stupid, but it is a simple
 example of what I want to do.

 Thanks!

 -Kenneth

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Deploying GWT application on a web server

2010-11-23 Thread Lukasz
Just compile the project using the eclipse Google - Compile option.
Then make a WAR archive  (archive the war folder within your project
folder) and deploy it e.g. on tomcat (copy the archive to tomcat's
webapps directory).

After tomcat discovered the new war and auto-deployed it, you're ready
to go and can access the app via browser.

HTH,
Lukasz

On 23 Nov., 12:28, Carlos Morell ver...@gmail.com wrote:
 Hi,

 I think that you have to deploy a war file with all your web app.

 Read this blog, maybe it answer your better than me hehehe

 http://blog.elitecoderz.net/gwt-and-tomcat-create-war-using-eclipse-t...

 :)

 2010/11/23 Noor baken...@gmail.com









  Hi,
  I have read the documentation on deployment but I have not yet figured
  how to deploy an gwt app on web server. Can someone explain me how to
  do so assume the default application created with eclipse:

  that is the server implementation in a package
  and the field verifier which is used by the server implementation in
  another package.

  thanks in advance!!

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

 --
 Enviado desde iPad

-- 
You received 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: linux + development mode

2010-10-13 Thread Lukasz
I'm working on Ubuntu 64bit.  Firefox with gwt dev. plugin works
normal. No problems whatsoever ...

On 12 Okt., 17:11, Craig yavinm...@gmail.com wrote:
 Check out this thread for some solutions:

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

 On Oct 11, 9:40 pm, Didier DURAND durand.did...@gmail.com wrote:







  It works here in Ubuntu 32bit 10.04

  Do you use 64 bits ? I have read about some issues with 64 bits

  didier

  On Oct 9, 2:18 pm, Racka hello.ra...@gmail.com wrote:

   Hi all,

   i'm using arch linux and my browser is firefox (and blackbox as window
   manager, no desktop manager at all). When i try to start a hosted mode
   session, my browser asks for the development plugin, which I allow to
   install. But when i restart my browser everything remains the same. It
   asks for the plugin. What can be a problem? I've heard that maybe I
   should recompile and make the .xpi file myself. But no luck yet...

-- 
You received 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 Junit test causes Hibernate Exception

2010-10-10 Thread Lukasz
Usually you would separate this two layers of your application - you
would have a service layer and a DAO layer. The service classes
contains the logic accessible for the client and DAO takes care only
of the data access. In this case you can write nice unit tests for
your DAO and you don't need to run them in the GWT environment. When
testing the service layer, you can then mock the dao objects as they
already tested. For the DAO implementation I would recommend the
generic dao patter (http://www.ibm.com/developerworks/java/library/j-
genericdao.html)

HTH,
Lukasz

On 9 Okt., 18:52, VrmpX vrm...@gmail.com wrote:
 Hi Lukasz,
 Thanks for the reply. About my test logic (which I'm starting to
 believe that it's wrong) is this:

 I want to test my Hibernate DAO (let's call it UserDAO) which extends
 GWT's RemoteService, so my project looks like this:

    - GWT
         - com.gwt.client
            - interface userDAO
            - interface userDAOAsync

        -  com.gwt.server
            - class userDAOImpl

 And the actual DAO code is

 public class UserDAOImpl extends RemoteServiceServlet implements
 UserDAO {

         @Override
         public User getUserByNick(String nick) {
                 Session session =
 HibernateUtil.getSessionFactory().getCurrentSession();
                 session.beginTransaction();
                 User res =
 (User)session.createCriteria(User.class).add(Restrictions.eq(nickname,
 nick)).uniqueResult();
                 session.getTransaction().commit();
                 return res;
         }

 }

 That's the reason I need to go through the GWT Servlets to test my
 DAO, because they are the same thing (which is why I think I made a
 mistake somewhere).

 Do you think there is a better way to do the same thing? Like, maybe I
 should make a DAO in its own class in the server package and call it
 via a new RPC class.

 Thanks for the time.

 On Oct 8, 12:41 pm, Lukasz l.plotni...@googlemail.com wrote:







  Can you post your actual test logic? I don't understand why do you
  need to go through the GWT servlets to do some unit testing of your
  DAO. It would be better to test the DAO logic separately.

  On 8 Okt., 04:33, VrmpX vrm...@gmail.com wrote:

   Hello,

   I'm currently using GWT 2.0.4 with Hibernate3, on Eclipse Helios, to
   create a simple web application. So far, I'm able to reach the
   database and do some RPC's to the server perfectly without any
   problem.

   The problem arises whenever I try to test out my server classes (the
   data access objects) with a JUnit test case. I've added the JUnit.jar
   (JUnit 3) and modified the Run As... properties to include the /src
   and /test folders in the classpath. Whenever I call my class methods I
   get the following exception:

   Initial SessionFactory creation failed.java.lang.NoClassDefFoundError:
   org/slf4j/impl/StaticLoggerBinder
           at
   com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract
RemoteServiceServlet.java:
   62)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   ...
   Caused by: java.lang.ExceptionInInitializerError
           at 
   com.ingsoftw.chat.util.HibernateUtil.clinit(HibernateUtil.java:
   16)
           at
   com.ingsoftw.chat.server.UserDAOImpl.getUserByNick(UserDAOImpl.java:
   15)
   ...
   Caused by: java.lang.NoClassDefFoundError: org/slf4j/impl/
   StaticLoggerBinder
           at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
           at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
           at 
   org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:
   111)
   ...
   Caused by: java.lang.ClassNotFoundException:
   org.slf4j.impl.StaticLoggerBinder
           at java.net.URLClassLoader$1.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)

   The HibernateUtil.java code is:

   public class HibernateUtil {

     private static final SessionFactory sessionFactory;

     static {
       try {
         // Create the SessionFactory from hibernate.cfg.xml
         sessionFactory = new
   Configuration().configure().buildSessionFactory();
       } catch (Throwable ex) {
         // Make sure you log the exception, as it might be swallowed
         System.err.println(Initial SessionFactory creation failed. +
   ex);
         throw new ExceptionInInitializerError(ex);
       }
     }

     public static SessionFactory getSessionFactory() {
       return sessionFactory;
     }

   }

   From what I understand, the problem lies on the fact that I haven't
   added the sl4j.jar to the test server. Is the any way to do that?

   Thanks in advance!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email

Re: GWT Junit test causes Hibernate Exception

2010-10-08 Thread Lukasz
Can you post your actual test logic? I don't understand why do you
need to go through the GWT servlets to do some unit testing of your
DAO. It would be better to test the DAO logic separately.

On 8 Okt., 04:33, VrmpX vrm...@gmail.com wrote:
 Hello,

 I'm currently using GWT 2.0.4 with Hibernate3, on Eclipse Helios, to
 create a simple web application. So far, I'm able to reach the
 database and do some RPC's to the server perfectly without any
 problem.

 The problem arises whenever I try to test out my server classes (the
 data access objects) with a JUnit test case. I've added the JUnit.jar
 (JUnit 3) and modified the Run As... properties to include the /src
 and /test folders in the classpath. Whenever I call my class methods I
 get the following exception:

 Initial SessionFactory creation failed.java.lang.NoClassDefFoundError:
 org/slf4j/impl/StaticLoggerBinder
         at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract 
 RemoteServiceServlet.java:
 62)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 ...
 Caused by: java.lang.ExceptionInInitializerError
         at com.ingsoftw.chat.util.HibernateUtil.clinit(HibernateUtil.java:
 16)
         at
 com.ingsoftw.chat.server.UserDAOImpl.getUserByNick(UserDAOImpl.java:
 15)
 ...
 Caused by: java.lang.NoClassDefFoundError: org/slf4j/impl/
 StaticLoggerBinder
         at org.slf4j.LoggerFactory.getSingleton(LoggerFactory.java:223)
         at org.slf4j.LoggerFactory.bind(LoggerFactory.java:120)
         at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:
 111)
 ...
 Caused by: java.lang.ClassNotFoundException:
 org.slf4j.impl.StaticLoggerBinder
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)

 The HibernateUtil.java code is:

 public class HibernateUtil {

   private static final SessionFactory sessionFactory;

   static {
     try {
       // Create the SessionFactory from hibernate.cfg.xml
       sessionFactory = new
 Configuration().configure().buildSessionFactory();
     } catch (Throwable ex) {
       // Make sure you log the exception, as it might be swallowed
       System.err.println(Initial SessionFactory creation failed. +
 ex);
       throw new ExceptionInInitializerError(ex);
     }
   }

   public static SessionFactory getSessionFactory() {
     return sessionFactory;
   }

 }

 From what I understand, the problem lies on the fact that I haven't
 added the sl4j.jar to the test server. Is the any way to do that?

 Thanks in advance!

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



JsonpRequestBuilder and HTTPS Problem

2010-10-06 Thread Lukasz
Hi,

After successfully implementing a JSONP callback, I changed it to use
an https url and noticed that it doesn't work. The server doesn't
receive the request and GWT shows only a timeout error. The server
side is proper configured, cause when trying the same url in the
browser, I get the expected JSON result. Is an https request not
supported with JSONPRequestBuilder or am I missing something? Here is
my code:

StringBuilder url = new StringBuilder(https://localhost:8443/
IDATService/jsonp);
url.append(?
action=getAll).append(userToken=).append(userMgr.getCurrentUserToken());
/*
* Resolving the IDAT data
*/
JsonpRequestBuilder jsonp = new JsonpRequestBuilder();
jsonp.requestObject(url.toString(),
new AsyncCallbackJavaScriptObject() {

@Override
public void onFailure(Throwable caught) {
Window.alert(caught.getLocalizedMessage());
eventBus.fireEvent(new ProcessingEvent(
IDAT couldn't been resolved!*,
Stage.END));
}

@Override
public void onSuccess(JavaScriptObject result) {
/*
 * Injecting the IDAT into the PatientDTO
 */
// PROCESSING THE DATA
eventBus.fireEvent(new ProcessingEvent(
IDAT infromation resolved*, Stage.END));
}
});

-- 
You received 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: JsonpRequestBuilder and HTTPS Problem

2010-10-06 Thread Lukasz
Thanks for the quick answer. As I'm testing the code on my dev.
workstation the certificate is self-signed - I'll try to check the
browser config.
Regarding the erros: no, neither the browser or eclipse-console show
any errors.

On Oct 6, 12:21 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On Oct 6, 10:31 am, Lukasz l.plotni...@googlemail.com wrote:

  Hi,

  After successfully implementing a JSONP callback, I changed it to use
  an https url and noticed that it doesn't work. The server doesn't
  receive the request and GWT shows only a timeout error. The server
  side is proper configured, cause when trying the same url in the
  browser, I get the expected JSON result. Is an https request not
  supported with JSONPRequestBuilder or am I missing something?

 So there's no error showing in the browser? (probably not a JS error;
 but the browser's error console could still show something) I guess
 it could be a certificate error (self-signed would be enough) with the
 browser configured to not load scripts from those kind of servers.

-- 
You received 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: JsonpRequestBuilder and HTTPS Problem

2010-10-06 Thread Lukasz
Final update: everything works fine if the browser accepted the self-
signed certificate - without this step, the JSONPReguest just won't
work. To ensure this, I just called the request url by hand in the
browser and accepted the certificate.

On 6 Okt., 12:51, Lukasz l.plotni...@googlemail.com wrote:
 Thanks for the quick answer. As I'm testing the code on my dev.
 workstation the certificate is self-signed - I'll try to check the
 browser config.
 Regarding the erros: no, neither the browser or eclipse-console show
 any errors.

 On Oct 6, 12:21 pm, Thomas Broyer t.bro...@gmail.com wrote:







  On Oct 6, 10:31 am, Lukasz l.plotni...@googlemail.com wrote:

   Hi,

   After successfully implementing a JSONP callback, I changed it to use
   an https url and noticed that it doesn't work. The server doesn't
   receive the request and GWT shows only a timeout error. The server
   side is proper configured, cause when trying the same url in the
   browser, I get the expected JSON result. Is an https request not
   supported with JSONPRequestBuilder or am I missing something?

  So there's no error showing in the browser? (probably not a JS error;
  but the browser's error console could still show something) I guess
  it could be a certificate error (self-signed would be enough) with the
  browser configured to not load scripts from those kind of servers.

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



Re: App does not display in IE 7

2010-08-23 Thread Lukasz
I have the same problem - so I would be very interested if you have
found a solution or cause of it. My assumption is, that the ie7
rendering problems are related to my own CSS - are you also using
custom CSS styles for the standard components?

Kind regards,
Lukasz

On Aug 20, 7:21 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote:
 I have a web app that displays just fine in the Mozilla browsers, but
 does not display at all in IE 7 (totally blank screen).  I'm deploying
 this through Tomcat (see previous message about Development Mode not
 working with JDK 1.5), so I can't usefully follow it in the debugger
 (the issues are on the client side, since my app does not yet do
 anything useful with the server).  Any suggestions on what might be
 going wrong?

 TIA,

 Greg

-- 
You received 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 switch presenters

2010-01-13 Thread Lukasz
HI,

I'm doing something similar in my application - but instead of passing
presenters through the event content, I'm only passing the widgets
which should be shown in the main UI area. I've one central presenter
(like e.g. AppPresenter) which listens to this event and if thrown
reorganises the UI.

Here's the code from the main presenter:

/*
 * Subscribing for the UIChangedEvent
 */
eventBus.addHandler(UIChangedEvent.TYPE, new 
UIChangedEventHandler()
{

@Override
public void onUIChange(UIChangedEvent event) {
reorganizeUI(event);
}
});


/**
 * Method which takes the given widget and places it as the main
content
 * (removing the old one)
 *
 * @param ui2Show
 */
private void reorganizeUI(UIChangedEvent e) {
if (mainContent != null)
dockLayout.remove(mainContent);
ScrollPanel sp = new ScrollPanel();
VerticalPanel wrapper = new VerticalPanel();
sp.add(wrapper);

wrapper.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_RIGHT);
DecoratedTabPanel tab = new DecoratedTabPanel();
tab.setAnimationEnabled(true);
tab.add(e.getUi2Show(), e.getEventName());
wrapper.add(tab);
wrapper.add(e.getControls());
mainContent = sp;
tab.selectTab(0);
dockLayout.add(mainContent);
fadeEffect.setEffectElement(mainContent.getElement());
fadeEffect.play();
}

HTH,
Lukasz

On 12 Jan., 15:42, mariyan nenchev nenchev.mari...@gmail.com wrote:
 Hi,

 i am having difficulties making my views to switch.
 Here is my code:
 Here is my hierarchy of presenters: AppPresenter, that contains
 HeaderPresenter and BodyPresenter:

 public class AppPresenter extends
 WidgetContainerPresenterAppPresenter.Display {

     public interface Display extends WidgetContainerDisplay {

     }

     @Inject
     public AppPresenter(Display display, EventBus bus,HeaderPresenter
 header,  BodyPresenter body) {
         super(display,bus, header, body);
     }

 }

 HeaderPresenter and BodyPresenter will never be changed.

 public class BodyPresenter extends
 WidgetContainerPresenterBodyPresenter.Display {

     public interface Display extends WidgetContainerDisplay {

     }

     @Inject
     public BodyPresenter(Display display, EventBus eventBus,
 LeftMenuPresenter menu, ContentPresenter content) {
         super(display, eventBus, menu, content);
     }

 }

 BodyPresenter contains LeftMenuPresenter and ContentPresenter
 And ContentPresenter must switch different presenters in it when something
 is picked from the left menu(or some buttons in the header are clicked).

 public class ContentPresenter extends
 WidgetContainerPresenterContentPresenter.Display {

     public interface Display extends WidgetContainerDisplay {

     }
     private MyDefaultPresenter dPresenter;

     @Inject
     public ContentPresenter(Display display, EventBus eventBus,
 MyDefaultPresenter dPresenter) {
         super(display, eventBus, dPresenter);
         this.dPresenter =dPresenter;

     }

     @Override
     protected void onBind() {
         super.onBind();
         registerHandler(eventBus.addHandler(PresenterChangedEvent.getType(),
 new PresenterChangedHandler() {
             @Override
             public void onPresenterChanged(PresenterChangedEvent event) {
                 Debugger.log(receive PresenterChangedEvent);

 ContentPresenter.this.setCurrentPresenter((WidgetPresenter?)
 event.getPresenter());
             }
         }));
     }

 }

 The PresenterChangedEvent is fired onClick event from the menu or header
 links/buttons, but nothing happens.
 And i had to pass my other presenters in the Header or LeftMenuPresenter,
 which is not quite right, they should all be passed to the ContentPresenter
 and somehow swich on event.

 Any ideas?

 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: Validating user input

2010-01-08 Thread Lukasz
Hi,

In my current project I'm using the gwt validation library (http://
sourceforge.net/projects/gwt-vl/) which supports both client- and
server-side validation and integrates itself nicly with e.g. hibernate-
validation ...

Maybe it's something you're looking for.

Kind regards,
Lukasz

On 7 Jan., 20:13, Dave ladjo...@gmail.com wrote:
 Hi,
     Could someone point me to some resources that shows how to
 validate user input. Specifically, to remove harmful javascript
 injection attacks etc. I would like to see the validation code done at
 both server and client. I have searched already and I come across
 issues related to XSS and forged request etc.
-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Is there a widget/panel that mimics the zoom/scroll functions that are used in google maps?

2008-10-31 Thread Lukasz Kucharski

You can try this one:

http://gwtsandbox.com/?q=node/33

Or if  you want to scroll and zoom static tiled images you can try one
of maps implementations like Sasha maps or gwt openlaers but i doubt
this is a good way to do it.

Cheers mate!
lkc

2008/10/31 naterator [EMAIL PROTECTED]:

 Sorry to bump my own topic, but does anyone have any ideas?  Are there
 any widgets/libraries that would help me out with data like this?

 Thanks,
 ~N

 On Oct 8, 3:03 pm, naterator [EMAIL PROTECTED] wrote:
 I'm looking to put together some pedigree building software, much like
 that used at sites like geni.com andgenoom.com, and I'm wondering if
 there is a gwt widget or extension that allows for the user to zoom
 and scroll like you can in google maps.

 In this case, the content matter will be pedigree data, not maps, but
 the same user controls seem to apply here.  Any suggestions?

 thanks,
 ~N
 




-- 
Pozdrawiam

Lukasz Kucharski
[EMAIL PROTECTED]

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



Using gwt-json-rpc with JROCK json rpc for .NET

2008-10-13 Thread Lukasz Kucharski

Hello there!

We're gonna  be integrating GWT and .NET IIS hosted services in our
next project.

From the research I've managed to do so far I concluded that it would
be nice to have gwt-json-rpc and JAYROCK json-rpc implementation for
.NET talking one to another.

Did anyone use those libraries together. What are current limitations
of gwt-json-rpc and how does it compare to standard GWT RPC
implementation. Are there any limitations as far as types are
concerned, what about complex object graphs?

What is current status of this project - did anyone use it in
production environment?

I heard there were problems using gwt-json-rpc in hosted mode, can
anyone confirm that?

Best Regards

Lukasz Kucharski
[EMAIL PROTECTED]

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