GWTDatePicker problem

2009-07-28 Thread Joakim Sjöberg
Hello!

 

I have run across a problem using WebDriver for automatic testing of our GWT 
application. 

On certain fields we are using the GWT DatePicker, and now when I am auto 
scripting in WebDriver

I can´t add a date to that field since its keep popping up a Calendar. Is there 
anyone who have any
hints on how to solve or get past this problem?

 

Regards

 

Artificial Solutions Scandinavia AB

Joakim Sjöberg
Developer



 


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



Reading XML

2009-07-24 Thread Joakim Sjöberg
Hello!

 

This might be the wrong forum for this question but maybe someone knows.

I have an xml file that looks something like this:

 

block

nameFK_BB_BA/name

pages

page

namedsd/name

firstPagetrue/firstPage

nextPage class=static

pageNamesdsd/pageName

/nextPage

fields

field

fieldNr1/fieldNr

fieldInstallationIdsdsd/fieldInstallationId

typeradio/type

possibleValues

string1/string

string2/string

/possibleValues

validator class=notEmpty/   
 

/field

/fields

/page

/pages

 /block

 

Is there any possibility in java to just take out the first level of nodes? In 
this case I want to take out name and pages only, so that I don´t get all the 
stuff “under” page like name etc.

Is there a way to do this?

 

// Joakim


--~--~-~--~~~---~--~~
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: Automatic Testing

2009-07-21 Thread Joakim Sjöberg

Hello Dan!

Thanks for the answer! I think that right now what we need is a simple 
end-to-end smoke test. Witch of WebDriver or
Selenium would you think is the best way to go? Do you know if any of them have 
the possibilities of getting
an xml file with data to enter during the testing to run the test with?

How does the ensureDebugId work? Is that something you add in your GWT 
application?

Many question :)

Hope to get some answers :)

// Joakim

-Original Message-
From: Google-Web-Toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Daniel Wellman
Sent: Monday, July 20, 2009 1:20 PM
To: Google Web Toolkit
Subject: Re: Automatic Testing


If you're looking to write unit or integration tests for GWT client
code, I've written an article about my experiences here:
Google Web Toolkit: Writing Ajax Applications Test-First
http://blog.danielwellman.com/2008/11/test-first-gwt-article-in-november-2008-better-software-magazine.html

If you've finished your application and want to add simple end-to-end
smoke tests, you might want to consider using WebDriver or Selenium.
To add temporary DOM IDs which only appear for testing (which will
make writing those WebDriver or Selenium tests easier), consider using
the method on UIObject called ensureDebugId:

http://tinyurl.com/mdwyky
or
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/UIObject.html#ensureDebugId%28com.google.gwt.dom.client.Element,%20java.lang.String%29

Dan


On Jul 20, 5:38 am, Joakim Sjöberg joakim.sjob...@artificial-
solutions.com wrote:
 Hello!

 I have a question that you might be able to answer. We are developing a GWT 
 application and would like some form of Automatic testing of the

 GWT application. Is there any good way to do this? Could someone please point 
 me in the right direction?

 Regards

 Joakim Sjöberg
 Developer
 Artificial Solutions Scandinavia AB


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



Automatic Testing

2009-07-20 Thread Joakim Sjöberg
Hello!

 

I have a question that you might be able to answer. We are developing a GWT 
application and would like some form of Automatic testing of the

GWT application. Is there any good way to do this? Could someone please point 
me in the right direction?

 

Regards

 

Joakim Sjöberg
Developer
Artificial Solutions Scandinavia AB

 

 


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



Problem with CSS inheritance

2009-06-08 Thread Joakim Sjöberg
Hello!

 

I have created a small template page that I will use to put different widgets 
in. It looks like follows:

div id=ic-welcomePagePanel class=ic-welcomePagePanel

div id=ic-welcomePagePanel-info 
class=ic-welcomePagePanel-info/div

div id=ic-vdaPanelWelcomePage class=ic-vdaPanelWelcomePage

div id=ic-vdaPanelWelcomePage-image 
class=ic-vdaPanelWelcomePage-image/div

div id=ic-vdaPanelWelcomePage-answerArea 
class=ic-vdaPanelWelcomePage-answerArea/div

div id=ic-vdaPanelWelcomePage-button 
class=ic-vdaPanelWelcomePage-input/div

div id=ic-vdaPanelWelcomePage-inputArea 
class=ic-vdaPanelWelcomePage-inputArea/div

/div

div id=ic-headerPanelWelcomePage 
class=ic-headerPanel-welcomePage/div

div id=ic-logoPanelWelcomePage 
class=ic-logoPanel-welcomePage/div

div id=ic-languagePanelWelcomePage 
class=ic-languagePanel-welcomePage/div

div id=ic-ntrChatPanelWelcomePage 
class=ic-ntrChatPanel-welcomePage/div

/div

 

 

And I have a CSS that looks like follows:

.ic-vdaPanelWelcomePage{

top:5%;

margin-left: 50%;

width: 8%;

border-style:solid;

border-width:thin;

border-color:#006634;

position:absolute;

}

ic-vdaPanelWelcomePage-image{

 

}

 

.ic-vdaPanelWelcomePage-answerArea{

 

}

 

.ic-vdaPanelWelcomePage-inputArea{

}

 

.ic-vdaPanelWelcomePage-input{

 

}

 

 

But it does not seem like the vdaPanelWelcomePage-image,answerArea,inputArea 
and input is inheriting the CSS from the vdaPanelWelcomePage, can anyone 
explain to why?  

 

 

Joakim Sjöberg
Developer

 


--~--~-~--~~~---~--~~
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: Unique identifier

2009-05-07 Thread Joakim Sjöberg

Hi!

Just wanted to say thank you for your help! It worked nicely!

// Joakim

-Original Message-
From: Google-Web-Toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Adligo
Sent: Thursday, May 07, 2009 1:37 AM
To: Google Web Toolkit
Subject: Re: Unique identifier


Hi,

  I would go with the HttpSession identifier, it should always be
unique (something like 1 in 1 billion chance it will duplicate over a
year).  Also if I was going to add a log to do it, I would use the
adligo i_log code (I'm partial I wrote it), but its already on in your
Servlet api so assumeing your calling a rpc mehod somewhere.

//something like...
myRPC() {
 super.getThreadLocalRequest().getSession().getId();
}

Cheers,
Scott

On May 6, 2:43 pm, Joakim Sjöberg joakim.sjob...@artificial-
solutions.com wrote:
 Hi!

 Seems good, but I still got the problem with the unique identifier, right?

 // Joakim

 -Original Message-
 From: Google-Web-Toolkit@googlegroups.com 
 [mailto:google-web-tool...@googlegroups.com] On Behalf Of Salvador Diaz
 Sent: Wednesday, May 06, 2009 4:46 PM
 To: Google Web Toolkit
 Subject: Re: Unique identifier

 You could use gwt-log:http://code.google.com/p/gwt-log/
 with a RemoteLogger

 Hope that helps,

 Salvador

 On May 6, 4:33 pm, Joakim Sjöberg joakim.sjob...@artificial-
 solutions.com wrote:
  Hi!

  Yes I know that, more or less what I want is some way to uniquely identify 
  every time a user
  goes into my page. When they do that I want to put that into a database 
  (for example time when they used
  my page) and in the end I want when they come to the end of my page (it's a 
  form page) record the time
  when they were finished. And for that I need to have a unique identifier 
  that I can use to update the
  database with.

  Hope this helps to explain more what I want.

  // Joakim

  -Original Message-
  From: Google-Web-Toolkit@googlegroups.com 
  [mailto:google-web-tool...@googlegroups.com] On Behalf Of Salvador Diaz
  Sent: Wednesday, May 06, 2009 4:16 PM
  To: Google Web Toolkit
  Subject: Re: Unique identifier

  What do you call a GWT instance ? Do you know that GWT applications
  are just HTML + js + servlets ? (servlets are the RPC implementations)

  On May 6, 12:53 pm, Joakim Sjöberg joakim.sjob...@artificial-
  solutions.com wrote:
   Hello!

   I am trying to build a function that stores data about each GWT instance 
   that is running in a database. Is there anyway
   way to get some sort of unique identifier from GWT in an easy way? I have 
   looked some at session handling, is that
   the right way to go? Should I use the RPC functionality for this?

   Joakim Sjöberg

   Technical Consultant


--~--~-~--~~~---~--~~
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: Unique identifier

2009-05-06 Thread Joakim Sjöberg

Hi!

Yes I know that, more or less what I want is some way to uniquely identify 
every time a user
goes into my page. When they do that I want to put that into a database (for 
example time when they used
my page) and in the end I want when they come to the end of my page (it's a 
form page) record the time
when they were finished. And for that I need to have a unique identifier that I 
can use to update the 
database with.

Hope this helps to explain more what I want.

// Joakim

-Original Message-
From: Google-Web-Toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Salvador Diaz
Sent: Wednesday, May 06, 2009 4:16 PM
To: Google Web Toolkit
Subject: Re: Unique identifier


What do you call a GWT instance ? Do you know that GWT applications
are just HTML + js + servlets ? (servlets are the RPC implementations)



On May 6, 12:53 pm, Joakim Sjöberg joakim.sjob...@artificial-
solutions.com wrote:
 Hello!

 I am trying to build a function that stores data about each GWT instance that 
 is running in a database. Is there anyway
 way to get some sort of unique identifier from GWT in an easy way? I have 
 looked some at session handling, is that
 the right way to go? Should I use the RPC functionality for this?

 Joakim Sjöberg

 Technical Consultant


--~--~-~--~~~---~--~~
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: Unique identifier

2009-05-06 Thread Joakim Sjöberg

Hi!

Seems good, but I still got the problem with the unique identifier, right?

// Joakim

-Original Message-
From: Google-Web-Toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Salvador Diaz
Sent: Wednesday, May 06, 2009 4:46 PM
To: Google Web Toolkit
Subject: Re: Unique identifier


You could use gwt-log:
http://code.google.com/p/gwt-log/
with a RemoteLogger

Hope that helps,

Salvador

On May 6, 4:33 pm, Joakim Sjöberg joakim.sjob...@artificial-
solutions.com wrote:
 Hi!

 Yes I know that, more or less what I want is some way to uniquely identify 
 every time a user
 goes into my page. When they do that I want to put that into a database (for 
 example time when they used
 my page) and in the end I want when they come to the end of my page (it's a 
 form page) record the time
 when they were finished. And for that I need to have a unique identifier that 
 I can use to update the
 database with.

 Hope this helps to explain more what I want.

 // Joakim

 -Original Message-
 From: Google-Web-Toolkit@googlegroups.com 
 [mailto:google-web-tool...@googlegroups.com] On Behalf Of Salvador Diaz
 Sent: Wednesday, May 06, 2009 4:16 PM
 To: Google Web Toolkit
 Subject: Re: Unique identifier

 What do you call a GWT instance ? Do you know that GWT applications
 are just HTML + js + servlets ? (servlets are the RPC implementations)

 On May 6, 12:53 pm, Joakim Sjöberg joakim.sjob...@artificial-
 solutions.com wrote:
  Hello!

  I am trying to build a function that stores data about each GWT instance 
  that is running in a database. Is there anyway
  way to get some sort of unique identifier from GWT in an easy way? I have 
  looked some at session handling, is that
  the right way to go? Should I use the RPC functionality for this?

  Joakim Sjöberg

  Technical Consultant




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



GWT with external javascripts

2009-03-06 Thread Joakim Sjöberg
Hello

 

Can anyone help me out with this? 

 

I am going to do a small demo with GWT that is going to work something like 
this:

 

I will have panels that is on o template page, this panels will be empty and 
only refer to a JavaScript
that contains panels and information etc. Is this possible? Is there any 
solution made like this?

 

 

Joakim Sjöberg

Technical Consultant

Artificial Solutions Scandinavia AB

 


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



Use Templates in GWT

2009-03-05 Thread Joakim Sjöberg

Hi!

I have an idea about using template pages in GWT? Is there anyone who has done 
this and 
have any pointers on pros and cons on this?

Regards
Joakim

--~--~-~--~~~---~--~~
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: Div in GWT?

2009-03-03 Thread Joakim Sjöberg
Hi! After some research I have realized that panels are always used J But there 
is different kinds of panels and some uses TABLES and some uses DIVs am I right 
about this?

 

We want to make our application more independent from the layout so that we can 
make different layouts for different costumers. What is the best way to achieve 
this?
Should we start using DIV panels instead? And much more use CSS to control the 
graphics? Is there anyone who has any input in this matter I would be very very 
happy J

 

Regards

Joakim Sjöberg 

 

From: Google-Web-Toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Joakim Sjöberg
Sent: Monday, March 02, 2009 8:43 AM
To: Google-Web-Toolkit@googlegroups.com
Subject: Div in GWT?

 

Hi!

 

We have created an application that uses standard html and panels. I wonder if 
there is any good way to used DIVs instead of panels?

Is there anyone who have done this that could give me some advice? Any special 
way to do it?

 

 

Joakim Sjöberg

Technical Consultant

 

Artificial Solutions Scandinavia AB

 



 


--~--~-~--~~~---~--~~
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: Div in GWT?

2009-03-03 Thread Joakim Sjöberg

Hi Joe!

Thanks for your answer, I have some questions you might be able to answer.

1. Is there any link to this HTML widget Implementation, I have looked but I 
cannot find it.

2. Could there be a possibility to create site templates that consist of DIVs 
instead, and manipulate the 
Content of these templates from the java code? Or is your idea in your opinion 
better?

3. So if I have understood correctly I should, were I today use the HTML class 
use the Div class in GWT?

Regards
Joakim


-Original Message-
From: Google-Web-Toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Joe Cole
Sent: Tuesday, March 03, 2009 10:03 AM
To: Google Web Toolkit
Subject: Re: Div in GWT?


We ended up creating our own classes for more html-like widgets.
Div (see the HTML widget implementation to get started, it's actually
a div), Span, OL/UL, Heading etc and combinations as needed.
I do believe it is the best approach for styling. If you understand
html and css you can work around the quirks easily. It's also really
easy to do it in gwt. Even though our Div class is pretty much
identical to the gwt HTML class, we think in Div/Span etc so it fits
our workflow better to use this.

The major thing I still delegate to horizontalpanels for is a row of
components with vertical alignment set to middle (e.g. image-text
alignment issues, multiple image alignment etc). I use our widgets for
pretty much every other part of layout.

Joe
On Mar 3, 9:20 pm, Joakim Sjöberg joakim.sjob...@artificial-
solutions.com wrote:
 Hi! After some research I have realized that panels are always used J But 
 there is different kinds of panels and some uses TABLES and some uses DIVs am 
 I right about this?

 We want to make our application more independent from the layout so that we 
 can make different layouts for different costumers. What is the best way to 
 achieve this?
 Should we start using DIV panels instead? And much more use CSS to control 
 the graphics? Is there anyone who has any input in this matter I would be 
 very very happy J

 Regards

 Joakim Sjöberg

 From: Google-Web-Toolkit@googlegroups.com 
 [mailto:google-web-tool...@googlegroups.com] On Behalf Of Joakim Sjöberg
 Sent: Monday, March 02, 2009 8:43 AM
 To: Google-Web-Toolkit@googlegroups.com
 Subject: Div in GWT?

 Hi!

 We have created an application that uses standard html and panels. I wonder 
 if there is any good way to used DIVs instead of panels?

 Is there anyone who have done this that could give me some advice? Any 
 special way to do it?

 Joakim Sjöberg

 Technical Consultant

 Artificial Solutions Scandinavia AB


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



Div in GWT?

2009-03-01 Thread Joakim Sjöberg
Hi!

 

We have created an application that uses standard html and panels. I wonder if 
there is any good way to used DIVs instead of panels?

Is there anyone who have done this that could give me some advice? Any special 
way to do it?

 

 

Joakim Sjöberg

Technical Consultant

 

Artificial Solutions Scandinavia AB

 


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