UIBinder Loading Panel

2010-03-29 Thread JB70
Hi, This is another newbie question. I have set up a left navigation
panel and would like to know how to display a panel when a link is
clicked? I want to display the FormPanel when a validation link is
clicked on the left panel.Thanks for your answers.

!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui

  ui:image field='logo' src='logo.gif'/

  ui:style
  .statusDiv {
text-align: right;
margin: 1em;
  }

  .linksDiv {
text-align: left;
  }

  @if user.agent ie6 {
.logo {
  background-image: url(logo_ie6.gif);
  width: 140px;
  height: 75px;
  position: absolute;
}
  } @else {
@sprite .logo {
  gwt-image: 'logo';
  position: absolute;
}
  }
  /ui:style

  g:HTMLPanel
div class={style.statusDiv}
  div class='{style.linksDiv}'
g:Anchor href='javascript:;'
ui:field='memberValidation'Member Validation/g:Anchor
g:Anchor href='javascript:;' ui:field='enrollMember'Enroll
Member/g:Anchor
  /div
/div
  /g:HTMLPanel
/ui:UiBinder

ui:UiBinder
  xmlns:ui='urn:ui:com.google.gwt.uibinder'
  xmlns:g='urn:import:com.google.gwt.user.client.ui'
  xmlns:main='urn:import:com.poc.client'

  g:DockLayoutPanel unit='EM'
g:north size='5'
  main:TopPanel ui:field='topPanel' /
/g:north

g:center
  g:DockLayoutPanel
g:west size='150'
  main:LeftPanel ui:field='leftPanel' /
/g:west

g:center
  main:FormPanel ui:field='formPanel' /
/g:center
  /g:DockLayoutPanel
/g:center
  /g:DockLayoutPanel

/ui:UiBinder

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



notification of server side shutdown within Servlet

2010-03-29 Thread Hamlet D'Arcy
I need to be notified when the server side of my GWT application is
shutting down . Specifically, one of my RemoteServiceServlet
subclasses is initializing a resource that must be properly released
when the system shuts down (an ehcache cache to be exact).

In other frameworks I have used, I was given a method to override or
listener to implement that would call me back when the container was
shutting down my app.

Is anything like this available in GWT?
Or should I try to wire in a Tomcat shutdown listener of some sort?

Thanks in advance,

Hamlet D'Arcy

-- 
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: notification of server side shutdown within Servlet

2010-03-29 Thread Muhammad Saifullah
Every servlet is HttpServlet so destroy() method resides in HttpServlet.
so you need to override that destroy() in your class and before shutting
down of your application server
instruction pointer of VM automatically enters into the overrided destroy()
method and if you write
resource cleaning algorigthm ,then algorithm will be execute.but if you
write infinite loop then control canot
get outside of destroy method and application server cant be shutting down.

hope this will help

On Mon, Mar 29, 2010 at 4:32 PM, Hamlet D'Arcy hamlet...@gmail.com wrote:

 I need to be notified when the server side of my GWT application is
 shutting down . Specifically, one of my RemoteServiceServlet
 subclasses is initializing a resource that must be properly released
 when the system shuts down (an ehcache cache to be exact).

 In other frameworks I have used, I was given a method to override or
 listener to implement that would call me back when the container was
 shutting down my app.

 Is anything like this available in GWT?
 Or should I try to wire in a Tomcat shutdown listener of some sort?

 Thanks in advance,

 Hamlet D'Arcy

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



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



Re: Few Openings in UI

2010-03-29 Thread Ralf B
Details?

On Mon, Mar 29, 2010 at 5:56 AM, sridevi macherla
sridevimache...@gmail.com wrote:
 Hi,

 Few openings in User Interface on Java/J2EE in my organization, anyone
 willing to relocate to bangalore and are interested.  Can send me their
 resumes at the earliest.

 Profile:
 Exp 4+
 UI: Java/J2EE/Servlets/JSP ( Core Java should be strong).
 Location : Bangalore.

 Thanks
 Sri

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


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



Re: panel set width with percentage

2010-03-29 Thread Pondmouse
I haven't used % with those widgets before, but if you can't do it why
not try get the browser Window.getClientWidth() and then fire a
resize event to keep sizes in check

On Mar 27, 5:21 pm, kozura koz...@gmail.com wrote:
 Try using one of the new LayoutPanels rooted in RootLayoutPanel, these
 seem to work much better for resizable % based layout.

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



Re: Session management in GWT

2010-03-29 Thread olivier nouguier
Hi,
Do you mean I GWT (ui) code when talk in admindashboard.jsp.
If true:
 provide a service (GWT-RPC/json) to retrieve information from.
else:
 not a GWT question.

On Mon, Mar 29, 2010 at 6:20 AM, Vik vik@gmail.com wrote:

 Hie

 I have a index.html page with a login module (build in gwt) embedded into
 it.
 Once the user provide authentication details and hit login button
 I am redirecting the user to a new page named AdminDashboard.jsp

 Now, I will be creating and embedding a dashboard using GWT components on
 this page.
 The question I have is how do i pass the user details from the login module
 to admindashboard.jsp?
  Please note that I am
 using Window.Location.replace(/ui/page/AdminDashboard.jsp);  to navigate
 to dashboard page.

 Further, what is used in GWT to store the data in a session and then
 validating it before user actions?

 Thankx and Regards

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

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




-- 
A coward is incapable of exhibiting love; it is the prerogative of the
brave.
--
Mohandas Gandhi

-- 
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: Object nog in gwt.rpc file?

2010-03-29 Thread Ed
Thanks for the idea Kozura.

I just solved the issue after spending staring at the issue more and
more...
The problem was quite simple, I was just looking in the wrong
direction.
One of the nested-nested-nested association of Administrator wasn't
implementing Serializable.
Because of lack of information I wasn't looking in the correct
direction (even do I had similar issues a long time ago :( ).
I remember having sumitted one or two issues (about a year ago) about
this strange rpc errors when something doesn't work. I hope (I am
convinced) that the new DeRPC will improve this.

Talking about the RPC mechanism, I don't think it' not ready yet for
complex (enterprise-like) applications, like explained here:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4701

Ed



On Mar 28, 11:00 pm, kozura koz...@gmail.com wrote:
 Maybe just throw the relevant bits of MemberDto and AdministratorDto
 classes up here - all the members and the constructor?

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



Safari Windows takes 100% on example page

2010-03-29 Thread mably
Hi everybody,

Does anyone know why Safari on Windows takes 100% CPU when displaying
this simpe example page :

http://gwt.google.com/samples/Showcase/Showcase.html

I've the same problem on my GWT 2.0 application, it's quite annoying
for my Safari users.

Is Safari on Windows not fully compatible with GWT ?

Thanx for your help.

François
Bordeaux, FRANCE

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



getCookie() doesn't find a cookie set in the RPC Servlet

2010-03-29 Thread Paul
I'm setting a cookie in my GWT RPC Servlet:

public class NiueRpcServiceImpl extends RemoteServiceServlet
implements NiueRpcService {

  
  javax.servlet.http.Cookie c = new Cookie(SessionId, );
  c.setValue(1234);
  c.setMaxAge(-1);
  HttpServletResponse httpServletResponse =
this.getThreadLocalResponse();
  httpServletResponse.addCookie(c);
  


But on the client side getCookie() always returns null:

   String sessionId = Cookies.getCookie(SessionId);
   if (sessionId != null){
 ...


If I use a sniffer, the cookie is in the header as expected, and if I
call setCookie(test) in the client code and then investigate the
Header, the test cookie looks the same as my SessionId cookie..

I'm hoping to set and clear the cookie on the server side, and the
client side picks it up and includes it in some of it's RPC calls.

Any help would be appreciated.
Cheers
Paul

-- 
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: Few Openings in UI

2010-03-29 Thread Manish Kumar
Hi Sri

 

Could I please know a bit more detailed information on the requirement and
about the  company?

 

Regards

Manish

 

From: google-web-toolkit@googlegroups.com
[mailto:google-web-tool...@googlegroups.com] On Behalf Of sridevi macherla
Sent: Monday, March 29, 2010 10:26 AM
To: undisclosed-recipients:
Subject: Few Openings in UI

 

Hi,

Few openings in User Interface on Java/J2EE in my organization, anyone
willing to relocate to bangalore and are interested.  Can send me their
resumes at the earliest.

Profile:
Exp 4+
UI: Java/J2EE/Servlets/JSP ( Core Java should be strong).
Location : Bangalore.

Thanks
Sri

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

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



Re: Safari Windows takes 100% on example page

2010-03-29 Thread Ian Bambury
It's OK on my machine

What versions are you running?

Ian

http://examples.roughian.com


On 29 March 2010 11:44, mably fm2...@mably.com wrote:

 Hi everybody,

 Does anyone know why Safari on Windows takes 100% CPU when displaying
 this simpe example page :

 http://gwt.google.com/samples/Showcase/Showcase.html

 I've the same problem on my GWT 2.0 application, it's quite annoying
 for my Safari users.

 Is Safari on Windows not fully compatible with GWT ?

 Thanx for your help.

 François
 Bordeaux, FRANCE

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



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



Re: Few Openings in UI

2010-03-29 Thread sridevi macherla
Hi Manish,

This openiings for Java 4- 8 years of experience and GWT would be much more
advantage.

for Netapp bangalore.

bye

On Mon, Mar 29, 2010 at 10:54 AM, Manish Kumar man...@oakdeneindia.comwrote:

  Hi Sri



 Could I please know a bit more detailed information on the requirement and
 about the  company?



 Regards

 Manish



 *From:* google-web-toolkit@googlegroups.com [mailto:
 google-web-tool...@googlegroups.com] *On Behalf Of *sridevi macherla
 *Sent:* Monday, March 29, 2010 10:26 AM
 *To:* undisclosed-recipients:

 *Subject:* Few Openings in UI



 Hi,


 Few openings in User Interface on Java/J2EE in my organization, anyone
 willing to relocate to bangalore and are interested.  Can send me their
 resumes at the earliest.

 Profile:
 Exp 4+
 UI: Java/J2EE/Servlets/JSP ( Core Java should be strong).
 Location : Bangalore.

 Thanks
 Sri

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

 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

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

 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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



Re: Safari Windows takes 100% on example page

2010-03-29 Thread Francois MASUREL
Hi Ian, thanx for your answer.

I'm running Safari for Windows v4.0.5 on Windows XP SP3 (I have the same pb
at home on Vista).

The page loads fine, but the wheel on the right of the address bar keeps
running and CPU goes up to 100%.

Some javascript seems to be looping indefinitely, I can pause it in the
WebInspector.

François



On Mon, Mar 29, 2010 at 2:18 PM, Ian Bambury ianbamb...@gmail.com wrote:

 It's OK on my machine

 What versions are you running?

 Ian

 http://examples.roughian.com


 On 29 March 2010 11:44, mably fm2...@mably.com wrote:

 Hi everybody,

 Does anyone know why Safari on Windows takes 100% CPU when displaying
 this simpe example page :

 http://gwt.google.com/samples/Showcase/Showcase.html

 I've the same problem on my GWT 2.0 application, it's quite annoying
 for my Safari users.

 Is Safari on Windows not fully compatible with GWT ?

 Thanx for your help.

 François
 Bordeaux, FRANCE

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


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


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



Re: Blur before click

2010-03-29 Thread Subhrajyoti Moitra
some mouse
over/out listeners on the popup so you know if the mouse is inside of
it, and set a flag so you know not to hide it if the mouse is in it.
Then maybe also hide it separately when the user makes a selection..

Thanks for this tip. this idea got the job done and more. thanks again!!

Cheers..
Subhro.

On Fri, Mar 26, 2010 at 9:16 PM, kozura koz...@gmail.com wrote:

 You probably want to be a bit more sophisticated, since other
 manipulations you may do with the table, like scrolling/moving through
 choices may also cause your textbox to lose focus.  I'd put some mouse
 over/out listeners on the popup so you know if the mouse is inside of
 it, and set a flag so you know not to hide it if the mouse is in it.
 Then maybe also hide it separately when the user makes a selection.
 Will take some experimentation with permutations of these events to
 get the effect you're looking for.

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



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



Re: Few Openings in UI

2010-03-29 Thread Ralf B
Amazing. I think I will take it, I don't need to know about anything
about your project -- if you have one -- logistics, pay, company/team
information etc. I guess for you its enough to tell that you have a
job and an internet connection.

Good luck! :D

Ralf

On Mon, Mar 29, 2010 at 1:25 PM, sridevi macherla
sridevimache...@gmail.com wrote:
 Hi Manish,

 This openiings for Java 4- 8 years of experience and GWT would be much more
 advantage.

 for Netapp bangalore.

 bye

 On Mon, Mar 29, 2010 at 10:54 AM, Manish Kumar man...@oakdeneindia.com
 wrote:

 Hi Sri



 Could I please know a bit more detailed information on the requirement and
 about the  company?



 Regards

 Manish



 From: google-web-toolkit@googlegroups.com
 [mailto:google-web-tool...@googlegroups.com] On Behalf Of sridevi macherla
 Sent: Monday, March 29, 2010 10:26 AM
 To: undisclosed-recipients:
 Subject: Few Openings in UI



 Hi,

 Few openings in User Interface on Java/J2EE in my organization, anyone
 willing to relocate to bangalore and are interested.  Can send me their
 resumes at the earliest.

 Profile:
 Exp 4+
 UI: Java/J2EE/Servlets/JSP ( Core Java should be strong).
 Location : Bangalore.

 Thanks
 Sri

 --

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

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

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


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



Internationalization via GWT

2010-03-29 Thread zizou84
Hi
I would like to use gwt intrernationalization
i have succeded to use Static String Internationalization method and i
have added in my HTML page
meta id=langue name=gwt:property content=locale=fr
Now , i would like to change the language from my login page;I have
added  in my login form a combobox to select the language of the
application
i tryed to change the DOM generated to select another language:


Element lang = DOM.getElementById(langue);
lang.setAttribute(content, locale=en);

but the languge doesn't chang
How could i modify the language from my combobox

-- 
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: Can someone brief out about MVP

2010-03-29 Thread gengstrand
In MVC, the model is heavy with business rules and data access, the
view contains the presentation logic, and the controller is typically
a framework component with an XML configuration to drive it. In MVP,
the model is lightweight POJO value objects, the view is mockable, and
the presentation is specific to the model and the view. It is the
presentation that has all the dependencies and glue code for the model
and the view. You get more code coverage in your unit testing with MVP
so MVP and TDD go together.

I also talk about MVP in this presentation.

http://www.dynamicalsoftware.com/gwt


On Mar 28, 10:40 pm, sridevi macherla sridevimache...@gmail.com
wrote:
 Hi,

 Can someone brief out about Model View Presenter architecture...

 Thanks

 Sri

-- 
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: Modifying gwt-user.jar

2010-03-29 Thread rvd
Well, I almost have it right.  I downloaded the 1.4 version from
http://google-web-toolkit.googlecode.com/svn/releases/1.4 but doing so
introduced a bug that had been removed by 1.4.62.  So, what version
did I actually compile by downloading and compiling from the 1.4
version tree.?  Should it have automatically had the subsequent point
release fixes for 1.4 in it?

I may have to move away from IntelliJ IDEA as an IDE for home use.  I
use it so seldom that I end up having to do upgrades just to fix
deprecated code, or to jump through hoops like these.

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



PagingScrollTable running example please???

2010-03-29 Thread crojay78
Hi,

I am searching for a running example for PagingScrollTable from
incubator project. Can somebody provide me something, for me its
always easier to understand the stuff by playing a bit with the code.

I found a maven example but I could import it to eclipse so that it
works.


Thanks a lot

-- 
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: Multiple entry points or multiple widgets?

2010-03-29 Thread ome
By module inheriting I meant inherits ... in the config of the main
application as well as you mentioned the places where the app makes
calls to this submodules directly.

Thanx a lot for the detailed recommendation anyway. I think we'll
stick to this model in the end, as it is still not difficult to
develop and test submodules independently. Though their updates will
affect the whole application recompile and redeployment.

On Mar 26, 6:35 pm, kozura koz...@gmail.com wrote:
 Well I'm not sure what you mean by the main module inheriting the
 submodules.   From what you described, the main module sets up the
 general framework of the page, and then insert the various, fairly
 independent submodules based on data or user interactions.

 This is exactly what code splitting is designed for.  Yes, you are
 still writing the whole thing as one giant monolithic application.
 But if the submodules are written as fairly independent components
 with a small number of entry points and few (best: no) places where
 the main app makes specific calls into particular submodules (read:
 use Observers or abstract classes/interfaces), then you can set up
 those entry points as code splits.  GWT then uses aggressive
 dependency checking to optimally fragment the code to only load what
 is needed for a given module when it gets used.  So you get the best
 of both approaches - you can write your application without having to
 deal with the complexities of splitting it up into multiple
 components, but still get the huge benefits of optimal dynamic
 loading.

 This works especially well if the framework you are using is pure GWT
 java, vs a wrapped javascript library.  The dependency checking is at
 the method level, so it will figure out what pieces of the framework
 each code split needs, and as more submodules are loaded will ensure
 the correct bits of framework are also loaded.

 As you mention, the GWT compiler does operate on the entire
 application, so it recompiles everything, every time.  If you're using
 OOPHM for development, this really mainly impacts deployment time.

 So again I highly recommend this method for this type of application,
 let the tool do the work rather than trying to come up with a
 complicated scheme that will be suboptimal and hard to maintain.

 On Mar 26, 2:27 am, ome max.okoro...@gmail.com wrote:



  Yes, sure I've seen this. You could easily load lots of code
  asynchronously using both approaches. But you will not remove
  dependencies in the compile time and main module will still inherit
  all other submodules, right? And if you change one module you have to
  recompile everything?

-- 
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 Incubator scrolltable

2010-03-29 Thread crojay78
Hi,

i am also interested in the source code of this, it's easier to
understand the stuff...

Hopefully somebody provide it...

Thanks

On 21 Mrz., 21:31, Kwame iweg...@gmail.com wrote:
 Does anyone have the full source code for this paging scroll table
 demo:http://collectionofdemos.appspot.com/demo/com.google.gwt.gen2.demo.sc...

-- 
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 Incubator scrolltable

2010-03-29 Thread mariyan nenchev
Download the jar lib?

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



Problem with Asynchronous callback

2010-03-29 Thread Andrea
I have the method getAddress() that take in input an array of cities.
For each city I use the Asyncronous method getLatLng() that return me
the coordinates and I save them in an ArrayList called
listaCoordinateCittaUtente.
But when I use the ArrayList after the call of the method getAddress()
it is empty.
I tried to resolve this problem with the Timer class but it isn't the
better solution.
How can I resolve this problem???

public void getAddress(String address[]){
  final int nCicli=address.length;

   for (int i = 0; i  nCicli; i++) {
 final String nomeCitta=address[i];
 geocoder.getLatLng(nomeCitta, new LatLngCallback(){
 public void onFailure(){
 Window.alert(nomeCitta +  non esiste);
 }
 public void onSuccess(LatLng point){
 listaCoordinateCittaUtente.add(point);
 map.addOverlay(new Marker(point));
 map.setCenter(point);
 }
 });
}
 }

-- 
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: closing port

2010-03-29 Thread Rajeev Dayal
Are you using the Google Plugin for Eclipse?

When you say that the project did not terminate normally, what exactly
happened? Did you kill the GWT Java process?

On Fri, Mar 26, 2010 at 1:28 PM, imgnik ytbr...@gmail.com wrote:

 if my gwt project did not terminate properly, the localhost port will
 still be occupied.

 how do i close that manually? it is giving me error saying port is in
 use.

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



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



Re: Problem with Asynchronous callback

2010-03-29 Thread Eric Ayers
I think you can trace what's going on by putting in a few calls to
Window.alert().  The calls to getLatLng() have to go across to
Google's servers and may take many milliseconds to return.  You need
some kind of mechanism to make sure all of the LatLngCallbacks fire
before looking at listaCoordinateCittaUtente

On Mon, Mar 29, 2010 at 11:39 AM, Andrea andrea.mor...@gmail.com wrote:
 I have the method getAddress() that take in input an array of cities.
 For each city I use the Asyncronous method getLatLng() that return me
 the coordinates and I save them in an ArrayList called
 listaCoordinateCittaUtente.
 But when I use the ArrayList after the call of the method getAddress()
 it is empty.
 I tried to resolve this problem with the Timer class but it isn't the
 better solution.
 How can I resolve this problem???

 public void getAddress(String address[]){
      final int nCicli=address.length;

       for (int i = 0; i  nCicli; i++) {
         final String nomeCitta=address[i];
                 geocoder.getLatLng(nomeCitta, new LatLngCallback(){
         public void onFailure(){
                 Window.alert(nomeCitta +  non esiste);
         }
         public void onSuccess(LatLng point){
                 listaCoordinateCittaUtente.add(point);
                 map.addOverlay(new Marker(point));
                 map.setCenter(point);
         }
         });
        }
  }

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





-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA
Sign up now for Google I/O 2010: May 19-20, http://code.google.com/io

-- 
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: Multiple entry points or multiple widgets?

2010-03-29 Thread kozura
Ah right inherit keyword, not OO inheritance, they probably should
have used import or include instead to be more correct!  Good luck
with your app, I wouldn't worry at all about compile time if you get a
good user and development experience.

On Mar 29, 9:13 am, ome max.okoro...@gmail.com wrote:
 By module inheriting I meant inherits ... in the config of the main
 application as well as you mentioned the places where the app makes
 calls to this submodules directly.

 Thanx a lot for the detailed recommendation anyway. I think we'll
 stick to this model in the end, as it is still not difficult to
 develop and test submodules independently. Though their updates will
 affect the whole application recompile and redeployment.

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



Re: Problem with Asynchronous callback

2010-03-29 Thread kozura
Hi Andrea,
I assume you mean the listaCoordinateCittaUtente list doesn't have any
data after this call?  This is the point of an asynchronous call, you
can't predict how long the call will take to come back from the
server, so you actually need to design your app to use the data only
once it is completed.  It looks like you sortof do that with
map.addOverlay, where you're doing something to your map is once the
call comes back; you need to consider the list in the same way.  In
this case, it won't have the complete result until onSuccess has been
called nCicli times.

Also, if there really are many addresses, you would be much better off
making your RPC call take the entire list at once.  For one, there are
only two connections allowed at a time, so making many calls will
quickly cause a bottleneck - one call will be much more efficient than
many.  For two, I'm assuming you actually want to associate these
returned points with their addresses.  There is no guarantee of the
order that onSuccess will be called with the return values, so even
once it is completely filled, lista... list won't be in the same order
as the address array.  Finally, with one call you'll actually know for
sure when the operation is done - the single call of onSuccess.

jk

On Mar 29, 9:39 am, Andrea andrea.mor...@gmail.com wrote:
 I have the method getAddress() that take in input an array of cities.
 For each city I use the Asyncronous method getLatLng() that return me
 the coordinates and I save them in an ArrayList called
 listaCoordinateCittaUtente.
 But when I use the ArrayList after the call of the method getAddress()
 it is empty.
 I tried to resolve this problem with the Timer class but it isn't the
 better solution.
 How can I resolve this problem???

 public void getAddress(String address[]){
       final int nCicli=address.length;

        for (int i = 0; i  nCicli; i++) {
          final String nomeCitta=address[i];
                  geocoder.getLatLng(nomeCitta, new LatLngCallback(){
          public void onFailure(){
                  Window.alert(nomeCitta +  non esiste);
          }
          public void onSuccess(LatLng point){
                  listaCoordinateCittaUtente.add(point);
                  map.addOverlay(new Marker(point));
                  map.setCenter(point);
          }
          });
         }
  }

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



Re: Problem with Asynchronous callback

2010-03-29 Thread Andrea
Thanks for your answer.

It's only few days that I use this technology so please tell me how I
can make my RPC call takes the entire list at once.
I can't understand the first solution, can you give me an example of
it??

Andrea

On 29 Mar, 17:54, kozura koz...@gmail.com wrote:
 Hi Andrea,
 I assume you mean the listaCoordinateCittaUtente list doesn't have any
 data after this call?  This is the point of an asynchronous call, you
 can't predict how long the call will take to come back from the
 server, so you actually need to design your app to use the data only
 once it is completed.  It looks like you sortof do that with
 map.addOverlay, where you're doing something to your map is once the
 call comes back; you need to consider the list in the same way.  In
 this case, it won't have the complete result until onSuccess has been
 called nCicli times.

 Also, if there really are many addresses, you would be much better off
 making your RPC call take the entire list at once.  For one, there are
 only two connections allowed at a time, so making many calls will
 quickly cause a bottleneck - one call will be much more efficient than
 many.  For two, I'm assuming you actually want to associate these
 returned points with their addresses.  There is no guarantee of the
 order that onSuccess will be called with the return values, so even
 once it is completely filled, lista... list won't be in the same order
 as the address array.  Finally, with one call you'll actually know for
 sure when the operation is done - the single call of onSuccess.

 jk

 On Mar 29, 9:39 am, Andrea andrea.mor...@gmail.com wrote:



  I have the method getAddress() that take in input an array of cities.
  For each city I use the Asyncronous method getLatLng() that return me
  the coordinates and I save them in an ArrayList called
  listaCoordinateCittaUtente.
  But when I use the ArrayList after the call of the method getAddress()
  it is empty.
  I tried to resolve this problem with the Timer class but it isn't the
  better solution.
  How can I resolve this problem???

  public void getAddress(String address[]){
        final int nCicli=address.length;

         for (int i = 0; i  nCicli; i++) {
           final String nomeCitta=address[i];
                   geocoder.getLatLng(nomeCitta, new LatLngCallback(){
           public void onFailure(){
                   Window.alert(nomeCitta +  non esiste);
           }
           public void onSuccess(LatLng point){
                   listaCoordinateCittaUtente.add(point);
                   map.addOverlay(new Marker(point));
                   map.setCenter(point);
           }
           });
          }
   }- Nascondi testo citato

 - Mostra testo citato -

-- 
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: PagingScrollTable running example please???

2010-03-29 Thread Felipe
HI, Here's an example :

publicMyClass implement EntryPoint , PageLoadHandler {


public void onModuleLoad() {

tableModel = new TestTableModel();
cachedTableModel = new CachedTableModelTestModel(tableModel);
cachedTableModel.setPreCachedRowCount(100);
cachedTableModel.setPostCachedRowCount(100);

pagingScrollTable = new
PagingScrollTableTestModel(cachedTableModel, data, header ,
getDefTable () );
pagingScrollTable.setPageSize(3);
pagingScrollTable.setEmptyTableWidget(new HTML (No hay nada para
ver));
pagingScrollTable.setWidth(400px);
pagingScrollTable.setHeight(200px);
pagingScrollTable.setFooterGenerated(true);
pagingScrollTable.setCellSpacing(0);
 
pagingScrollTable.setResizePolicy(ScrollTable.ResizePolicy.FILL_WIDTH);

  FixedWidthGridBulkRendererTestModel bulkRenderer = new
FixedWidthGridBulkRendererTestModel(pagingScrollTable.getDataTable(),
 
pagingScrollTable);
  pagingScrollTable.setBulkRenderer(bulkRenderer);
  pagingScrollTable.addPageLoadHandler(this);

   PagingOptions p = new PagingOptions(pagingScrollTable);
   RootPanel.get().add( pagingScrollTable );
   RootPanel.get().add( p );

  }

public void onPageLoad(PageLoadEvent event) {

cachedTableModel.clearCache();
cachedTableModel.setRowCount(tableModel.getRowCount()); /* 
cantidad
de filas dinamicas */
pagingScrollTable.redraw();

}

}

not implemented here: TableModel ( get data from the source ),
tableDefinition ( how to display data) ,

I hope helped you !
saludos.


On 29 mar, 11:07, crojay78 croja...@googlemail.com wrote:
 Hi,

 I am searching for a running example for PagingScrollTable from
 incubator project. Can somebody provide me something, for me its
 always easier to understand the stuff by playing a bit with the code.

 I found a maven example but I could import it to eclipse so that it
 works.

 Thanks a lot

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



scrolling table and RPC data

2010-03-29 Thread jaga
I need a ScrollTable to behave as a PagingScrollTable with regards to
pulling data from a server, but without paging. I thought I could use
ScrollHandler to hear when scrolling has stopped. Then I could
request more data from the server from row m to n and add it to my
existing cache. Anyone got any neat ways of doing this in GWT or knows
any existing code they could point me to. If it works like the
PagingScrollTable with it's RPC request callbacks and Cache that would
be even better. Best regards, Jaga

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



Re: Problem with Asynchronous callback

2010-03-29 Thread kozura
Sync version:
ListLatLng getLatLngs(ListString addresses);

Async version:
void getLatLngs(ListString addresses, AsyncCallbackListLatLng
cb);

onSuccess(ListLatLng result)
{
listaCoordinateCittaUtente = result;
doStuffWithResults...;
}

-- 
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: Service per Servlet?

2010-03-29 Thread cetina
Thanks for your information.  :)

On Mar 28, 7:34 am, Dan danpr...@gmail.com wrote:
 You can have many methods in oneservice. It works fine for me, and is
 certainly less work.

 It would be a good idea for the methods in serviceImpl to call other
 methods to do the work, so the source for that class doesn't get
 unmanageable.

 On Mar 26, 1:54 pm, cetina maxtorz...@gmail.com wrote:



  Hi im a newbie in GWT and i have a very basic question.

  What im doing its create a 1 RPCService( GWTService, GWTServiceAsync
  and GWTServiceImpl)
   with many methods in GWTService and GWTServiceAsync and in the
  GWTServiceImpl i implement all of those methods,
  my question is this is correct or if i have to create aservice(ex:
  GWTService2, GWTServiceAsync2 and GWTServiceImpl2)  permethod?

  I know that GWTServiceImpl its a servlet do i have to create many
  servlets for many services?
  Do i have to create aservicepermethod? or i can use the same
 serviceclases   ( GWTService, GWTServiceAsync and GWTServiceImpl) for
  all my methods??

-- 
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: Safari Windows takes 100% on example page

2010-03-29 Thread Ian Bambury
Yep, does the same for me on 4 - I was on 3.x before because I get fed up
with Apple trying to take over my PC every time you load anything - iTunes,
Apple Update and so on - Netscape used to do that and look what happened to
them.

Anyway, I installed 4.something and it does the same for me.

[sigh Off to clean all the crap out of the system, then...]


Ian

http://examples.roughian.com


On 29 March 2010 13:33, Francois MASUREL f.masu...@gmail.com wrote:

 Hi Ian, thanx for your answer.

 I'm running Safari for Windows v4.0.5 on Windows XP SP3 (I have the same pb
 at home on Vista).

 The page loads fine, but the wheel on the right of the address bar keeps
 running and CPU goes up to 100%.

 Some javascript seems to be looping indefinitely, I can pause it in the
 WebInspector.

 François



 On Mon, Mar 29, 2010 at 2:18 PM, Ian Bambury ianbamb...@gmail.com wrote:

 It's OK on my machine

 What versions are you running?

 Ian

 http://examples.roughian.com


 On 29 March 2010 11:44, mably fm2...@mably.com wrote:

 Hi everybody,

 Does anyone know why Safari on Windows takes 100% CPU when displaying
 this simpe example page :

 http://gwt.google.com/samples/Showcase/Showcase.html

 I've the same problem on my GWT 2.0 application, it's quite annoying
 for my Safari users.

 Is Safari on Windows not fully compatible with GWT ?

 Thanx for your help.

 François
 Bordeaux, FRANCE

 --
 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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


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


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



image help

2010-03-29 Thread Chris
does anyone know if there is a way to disable someone from right
clicking on an image and being able to save it?  i am trying to make
an application where people can purchase images but if they can just
right click it and Save Image As there isn't any point.  Any
suggestions would be great.

thanks

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



Re: help integrating GWT project to an existing Web Project (on Tomcat) within Eclipse

2010-03-29 Thread aish sundar
Hi Keith,

Thanks a lot for the detailed steps. We are in the process of
integrating the projects. However we have some doubts in the process.

1) FooServer -(i) I am assuming this can be the pre-existing Dynamic
Web project, which we want to integrate with the GWT project. So from
my example, this will be TestWeb, right?
(ii) You wrote FooServer will contain your server-
side code and WAR directory + static resources (HTML, CSS, etc.),  .
(a) Does server-side code mean
the code within the server package of my GWT project i.e.,
GreetingServiceImpl.java? I am assuming FooServer will also have the
code associated with my pre-existing web project as well.
(b) How and from where do I get
the WAR directory? Is this the WAR folder generated in my GWT
project? Should I just simply copy the WAR folder from the GWT project
over to my FooServer or is there any other way to generate it?


2) Which project should the TestUI.gwt.xml file, the one that
defines the modules and entry point go?

3) It will be great if you can include a SCREENSHOT of your expanded
WORKSPACE so that we can clearly see the layout of the various
projects and which component goes where.

Here's an overview of what we have done following your instructions.
let us know if anything looks wrong.

I initially had 2 projects FooServer (web project) and a TestUI (GWT
project).

(1) FooServer (Dynamic Web project, which contains the server side
code of the GWT proj)
  src
  TestUI.gwt.xml ( don't know if this should go here)
  com.server (newly added GWT server code)
 GreetingServiceImpl

  war (copied from TestUI)
  testui (which has the generated js etc)
  WEB-INF
 classes
 lib
web.xml
  TestUI.css
  TestUI.html

  WebContent
  appPages
  META-INF
  WEB-INF
 lib
  web.xml

  TestUI.html and TestUI.css (static HTML pages and CSS)


(2) FooClient (to contain the client side code of the GWT proj)

   src
  com.client
   TestUI.java
GreetingServiceAsync.java (asynch
RPC interface)


(3) FooShared (to contain the shared and the synch interface)
   src
  com.shared
   Sharedclass1.java
SharedClass2.java
GreetingService.java (synch RPC
interface)

Thanks in advance ,

Aish

 Hey all,

 Ok, now that the Google Plugin for Eclipse 1.3.2 is out, here are some
 instructions for setting up a GWT application split across multiple projects
 (client, server, and shared code in separate projects).  Note that this will
 *only *work in *Eclipse for Java EE* with *GPE 1.3.2*, so verify that you
 have both installed before attempting.  This procedure *won't* work if
 you're using App Engine, since there is no WTP server adapter for App
 Engine.

 Also, I'm assuming that your application uses *GWT 2.0.3* and you're using
 GWT RPC, so your server will provide at least one RPC service.  If you're
 not using RPC, just skip the relevant parts,

    1. Create 3 projects: we'll call them FooServer, FooClient, and FooShared
    for the purposes of this walkthrough.  FooClient will contain your GWT
    client-side code, FooServer will contain your server-side code and WAR
    directory + static resources (HTML, CSS, etc.), and FooShared will contain
    code that is shared between the client and server (e.g. GWT RemoteService
    interfaces).  FooServer should be a Dynamic Web Project; FooClient and
    FooShared can be regular Java projects.
    2. Enable GWT for all 3 projects (project properties  Google  Web
    Toolkit).  *NOTE: If you're not using GWT RPC, you don't need to enable
    GWT on FooServer*).
    3. If your project uses the Apache Tomcat library, ensure that the GWT
    SDK library is above it on your project's classpath (project properties 
    Java Build Path  Order and Export). Otherwise, you may get a
    java.lang.NoSuchMethodError when launching your application in development
    mode.
    4. Add code to FooClient. You'll need at least one GWT module and an
    entrypoint class.  If you're using GWT RPC, you'll also need your service
    async interfaces as well (see the GWT docs for more details).  If don't 
 have
    existing code to work with, just generate a new Web Application project and
    pilfer the files from there (renaming things as necessary, of course).
    5. Add code to FooShared.  If you're using GWT RPC, this is where your
    RPC synchronous interfaces go.  Also, any classes that you use on both the
    client and the server should go here.
    6. Add code to FooServer.  Add your HTML pages, CSS 

Re: help integrating GWT project to an existing Web Project (on Tomcat) within Eclipse

2010-03-29 Thread aish sundar
Hi Keith,

Thanks a lot for the detailed steps. We are in the process of
integrating the projects. However we have some doubts in the process.

1) FooServer -(i) I am assuming this can be the pre-existing Dynamic
Web project, which we want to integrate with the GWT project. So from
my example, this will be TestWeb, right?
(ii) You wrote FooServer will contain your server-
side code and WAR directory + static resources (HTML, CSS, etc.),  .
(a) Does server-side code mean
the code within the server package of my GWT project i.e.,
GreetingServiceImpl.java? I am assuming FooServer will also have the
code associated with my pre-existing web project as well.
(b) How and from where do I get
the WAR directory? Is this the WAR folder generated in my GWT
project? Should I just simply copy the WAR folder from the GWT project
over to my FooServer or is there any other way to generate it?


2) Which project should the TestUI.gwt.xml file, the one that
defines the modules and entry point go?

3) It will be great if you can include a SCREENSHOT of your expanded
WORKSPACE so that we can clearly see the layout of the various
projects and which component goes where.

Here's an overview of what we have done following your instructions.
let us know if anything looks wrong.

I initially had 2 projects FooServer (web project) and a TestUI (GWT
project).

(1) FooServer (Dynamic Web project, which contains the server side
code of the GWT proj)
  src
  TestUI.gwt.xml ( don't know if this should go here)
  com.server (newly added GWT server code)
 GreetingServiceImpl

  war (copied from TestUI)
  testui (which has the generated js etc)
  WEB-INF
 classes
 lib
web.xml
  TestUI.css
  TestUI.html

  WebContent
  appPages
  META-INF
  WEB-INF
 lib
  web.xml

  TestUI.html and TestUI.css (static HTML pages and CSS)


(2) FooClient (to contain the client side code of the GWT proj)

   src
  com.client
   TestUI.java
GreetingServiceAsync.java (asynch
RPC interface)


(3) FooShared (to contain the shared and the synch interface)
   src
  com.shared
   Sharedclass1.java
SharedClass2.java
GreetingService.java (synch RPC
interface)

Thanks in advance ,

Aish

 Hey all,

 Ok, now that the Google Plugin for Eclipse 1.3.2 is out, here are some
 instructions for setting up a GWT application split across multiple projects
 (client, server, and shared code in separate projects).  Note that this will
 *only *work in *Eclipse for Java EE* with *GPE 1.3.2*, so verify that you
 have both installed before attempting.  This procedure *won't* work if
 you're using App Engine, since there is no WTP server adapter for App
 Engine.

 Also, I'm assuming that your application uses *GWT 2.0.3* and you're using
 GWT RPC, so your server will provide at least one RPC service.  If you're
 not using RPC, just skip the relevant parts,

    1. Create 3 projects: we'll call them FooServer, FooClient, and FooShared
    for the purposes of this walkthrough.  FooClient will contain your GWT
    client-side code, FooServer will contain your server-side code and WAR
    directory + static resources (HTML, CSS, etc.), and FooShared will contain
    code that is shared between the client and server (e.g. GWT RemoteService
    interfaces).  FooServer should be a Dynamic Web Project; FooClient and
    FooShared can be regular Java projects.
    2. Enable GWT for all 3 projects (project properties  Google  Web
    Toolkit).  *NOTE: If you're not using GWT RPC, you don't need to enable
    GWT on FooServer*).
    3. If your project uses the Apache Tomcat library, ensure that the GWT
    SDK library is above it on your project's classpath (project properties 
    Java Build Path  Order and Export). Otherwise, you may get a
    java.lang.NoSuchMethodError when launching your application in development
    mode.
    4. Add code to FooClient. You'll need at least one GWT module and an
    entrypoint class.  If you're using GWT RPC, you'll also need your service
    async interfaces as well (see the GWT docs for more details).  If don't 
 have
    existing code to work with, just generate a new Web Application project and
    pilfer the files from there (renaming things as necessary, of course).
    5. Add code to FooShared.  If you're using GWT RPC, this is where your
    RPC synchronous interfaces go.  Also, any classes that you use on both the
    client and the server should go here.
    6. Add code to FooServer.  Add your HTML pages, CSS 

Re: help integrating GWT project to an existing Web Project (on Tomcat) within Eclipse

2010-03-29 Thread aish sundar
Hi Keith,

Thanks a lot for the detailed steps. We are in the process of
integrating the projects. However we have some doubts in the process.

1) FooServer -(i) I am assuming this can be the pre-existing Dynamic
Web project, which we want to integrate with the GWT project. So from
my example, this will be TestWeb, right?
(ii) You wrote FooServer will contain your server-
side code and WAR directory + static resources (HTML, CSS, etc.),  .
(a) Does server-side code mean
the code within the server package of my GWT project i.e.,
GreetingServiceImpl.java? I am assuming FooServer will also have the
code associated with my pre-existing web project as well.
(b) How and from where do I get
the WAR directory? Is this the WAR folder generated in my GWT
project? Should I just simply copy the WAR folder from the GWT project
over to my FooServer or is there any other way to generate it?


2) Which project should the TestUI.gwt.xml file, the one that
defines the modules and entry point go?

3) It will be great if you can include a SCREENSHOT of your expanded
WORKSPACE so that we can clearly see the layout of the various
projects and which component goes where.

Here's an overview of what we have done following your instructions.
let us know if anything looks wrong.

I initially had 2 projects FooServer (web project) and a TestUI (GWT
project).

(1) FooServer (Dynamic Web project, which contains the server side
code of the GWT proj)
  src
  TestUI.gwt.xml ( don't know if this should go here)
  com.server (newly added GWT server code)
 GreetingServiceImpl

  war (copied from TestUI)
  testui (which has the generated js etc)
  WEB-INF
 classes
 lib
web.xml
  TestUI.css
  TestUI.html

  WebContent
  appPages
  META-INF
  WEB-INF
 lib
  web.xml

  TestUI.html and TestUI.css (static HTML pages and CSS)


(2) FooClient (to contain the client side code of the GWT proj)

   src
  com.client
   TestUI.java
GreetingServiceAsync.java (asynch
RPC interface)


(3) FooShared (to contain the shared and the synch interface)
   src
  com.shared
   Sharedclass1.java
SharedClass2.java
GreetingService.java (synch RPC
interface)

Thanks in advance ,

Aish

 Hey all,

 Ok, now that the Google Plugin for Eclipse 1.3.2 is out, here are some
 instructions for setting up a GWT application split across multiple projects
 (client, server, and shared code in separate projects).  Note that this will
 *only *work in *Eclipse for Java EE* with *GPE 1.3.2*, so verify that you
 have both installed before attempting.  This procedure *won't* work if
 you're using App Engine, since there is no WTP server adapter for App
 Engine.

 Also, I'm assuming that your application uses *GWT 2.0.3* and you're using
 GWT RPC, so your server will provide at least one RPC service.  If you're
 not using RPC, just skip the relevant parts,

    1. Create 3 projects: we'll call them FooServer, FooClient, and FooShared
    for the purposes of this walkthrough.  FooClient will contain your GWT
    client-side code, FooServer will contain your server-side code and WAR
    directory + static resources (HTML, CSS, etc.), and FooShared will contain
    code that is shared between the client and server (e.g. GWT RemoteService
    interfaces).  FooServer should be a Dynamic Web Project; FooClient and
    FooShared can be regular Java projects.
    2. Enable GWT for all 3 projects (project properties  Google  Web
    Toolkit).  *NOTE: If you're not using GWT RPC, you don't need to enable
    GWT on FooServer*).
    3. If your project uses the Apache Tomcat library, ensure that the GWT
    SDK library is above it on your project's classpath (project properties 
    Java Build Path  Order and Export). Otherwise, you may get a
    java.lang.NoSuchMethodError when launching your application in development
    mode.
    4. Add code to FooClient. You'll need at least one GWT module and an
    entrypoint class.  If you're using GWT RPC, you'll also need your service
    async interfaces as well (see the GWT docs for more details).  If don't 
 have
    existing code to work with, just generate a new Web Application project and
    pilfer the files from there (renaming things as necessary, of course).
    5. Add code to FooShared.  If you're using GWT RPC, this is where your
    RPC synchronous interfaces go.  Also, any classes that you use on both the
    client and the server should go here.
    6. Add code to FooServer.  Add your HTML pages, CSS 

Re: image help

2010-03-29 Thread Sudeep S
i am not sure if this is a right approach...how about placing a transparent
div over the image.
would that work.

On Tue, Mar 30, 2010 at 12:22 AM, Chris thechris...@gmail.com wrote:

 does anyone know if there is a way to disable someone from right
 clicking on an image and being able to save it?  i am trying to make
 an application where people can purchase images but if they can just
 right click it and Save Image As there isn't any point.  Any
 suggestions would be great.

 thanks

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



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



Re: Problem with Asynchronous callback

2010-03-29 Thread Sripathi Krishnan
Andrea,

You must read the great beer analogy out here -
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f?pli=1

--Sri


On 29 March 2010 22:47, kozura koz...@gmail.com wrote:

 Sync version:
 ListLatLng getLatLngs(ListString addresses);

 Async version:
 void getLatLngs(ListString addresses, AsyncCallbackListLatLng
 cb);

 onSuccess(ListLatLng result)
 {
listaCoordinateCittaUtente = result;
doStuffWithResults...;
 }

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



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



Re: image help

2010-03-29 Thread Sripathi Krishnan

 but if they can just right click it and Save Image As there isn't any
 point.


Disabling right click is no solution. Its trivial to figure out the link of
the image and then download it directly. Div overlays also won't help. As
long as the user can see it, there is always going to be a way for him to
download it.

You should -

   - Only show a smaller size, low resolution image before the user
   purchases it
   - Apply a watermark/logo on the free image, so that there isn't any merit
   in using the image directly.

--Sri



On 30 March 2010 02:42, Sudeep S sudee...@gmail.com wrote:

 i am not sure if this is a right approach...how about placing a transparent
 div over the image.
 would that work.

 On Tue, Mar 30, 2010 at 12:22 AM, Chris thechris...@gmail.com wrote:

 does anyone know if there is a way to disable someone from right
 clicking on an image and being able to save it?  i am trying to make
 an application where people can purchase images but if they can just
 right click it and Save Image As there isn't any point.  Any
 suggestions would be great.

 thanks

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


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


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



Re: Safari Windows takes 100% on example page

2010-03-29 Thread Brendan Kenny
hmm, I get the same thing. Some of my own GWT projects do it as well,
whether local or remote, but not all of them. this is in safari 4.0.4
on Windows 7.

does anyone know the specifics of the logic of the loading... wheel
and what would cause it not to cease?
-profiling of my projects within safari shows all the execution time
(100% on one core) is taking place within program and not user js
code
-a good way to crash safari (mine at least): have the web inspector
open and set to the resources tab, then navigate to one of these
forever-loading GWT pages

that last point is clearly a problem with safari, but could indicate a
root cause. is there safari-specific loading code that works around
some *mac-only* safari-specific shenanigans? chrome has no problem
with it...

On Mar 29, 1:21 pm, Ian Bambury ianbamb...@gmail.com wrote:
 Yep, does the same for me on 4 - I was on 3.x before because I get fed up
 with Apple trying to take over my PC every time you load anything - iTunes,
 Apple Update and so on - Netscape used to do that and look what happened to
 them.

 Anyway, I installed 4.something and it does the same for me.

 [sigh Off to clean all the crap out of the system, then...]

 Ian

 http://examples.roughian.com

 On 29 March 2010 13:33, Francois MASUREL f.masu...@gmail.com wrote:



  Hi Ian, thanx for your answer.

  I'm running Safari for Windows v4.0.5 on Windows XP SP3 (I have the same pb
  at home on Vista).

  The page loads fine, but the wheel on the right of the address bar keeps
  running and CPU goes up to 100%.

  Some javascript seems to be looping indefinitely, I can pause it in the
  WebInspector.

  François

  On Mon, Mar 29, 2010 at 2:18 PM, Ian Bambury ianbamb...@gmail.com wrote:

  It's OK on my machine

  What versions are you running?

  Ian

 http://examples.roughian.com

  On 29 March 2010 11:44, mably fm2...@mably.com wrote:

  Hi everybody,

  Does anyone know why Safari on Windows takes 100% CPU when displaying
  this simpe example page :

 http://gwt.google.com/samples/Showcase/Showcase.html

  I've the same problem on my GWT 2.0 application, it's quite annoying
  for my Safari users.

  Is Safari on Windows not fully compatible with GWT ?

  Thanx for your help.

  François
  Bordeaux, FRANCE

  --
  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.comgoogle-web-toolkit%2Bunsubs
   cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

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

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

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



Re: Safari Windows takes 100% on example page

2010-03-29 Thread Brendan Kenny
Also worth noting that the showcase will cease with the loading if
you just open the rich text area under text input on the left.

Other projects I have that have the same problem don't have rich text
areas or code splitting, though.

On Mar 29, 5:47 pm, Brendan Kenny bcke...@gmail.com wrote:
 hmm, I get the same thing. Some of my own GWT projects do it as well,
 whether local or remote, but not all of them. this is in safari 4.0.4
 on Windows 7.

 does anyone know the specifics of the logic of the loading... wheel
 and what would cause it not to cease?
 -profiling of my projects within safari shows all the execution time
 (100% on one core) is taking place within program and not user js
 code
 -a good way to crash safari (mine at least): have the web inspector
 open and set to the resources tab, then navigate to one of these
 forever-loading GWT pages

 that last point is clearly a problem with safari, but could indicate a
 root cause. is there safari-specific loading code that works around
 some *mac-only* safari-specific shenanigans? chrome has no problem
 with it...

 On Mar 29, 1:21 pm, Ian Bambury ianbamb...@gmail.com wrote:



  Yep, does the same for me on 4 - I was on 3.x before because I get fed up
  with Apple trying to take over my PC every time you load anything - iTunes,
  Apple Update and so on - Netscape used to do that and look what happened to
  them.

  Anyway, I installed 4.something and it does the same for me.

  [sigh Off to clean all the crap out of the system, then...]

  Ian

 http://examples.roughian.com

  On 29 March 2010 13:33, Francois MASUREL f.masu...@gmail.com wrote:

   Hi Ian, thanx for your answer.

   I'm running Safari for Windows v4.0.5 on Windows XP SP3 (I have the same 
   pb
   at home on Vista).

   The page loads fine, but the wheel on the right of the address bar keeps
   running and CPU goes up to 100%.

   Some javascript seems to be looping indefinitely, I can pause it in the
   WebInspector.

   François

   On Mon, Mar 29, 2010 at 2:18 PM, Ian Bambury ianbamb...@gmail.com wrote:

   It's OK on my machine

   What versions are you running?

   Ian

  http://examples.roughian.com

   On 29 March 2010 11:44, mably fm2...@mably.com wrote:

   Hi everybody,

   Does anyone know why Safari on Windows takes 100% CPU when displaying
   this simpe example page :

  http://gwt.google.com/samples/Showcase/Showcase.html

   I've the same problem on my GWT 2.0 application, it's quite annoying
   for my Safari users.

   Is Safari on Windows not fully compatible with GWT ?

   Thanx for your help.

   François
   Bordeaux, FRANCE

   --
   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.comgoogle-web-toolkit%2Bunsubs
cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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

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

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



Announcing Mvp4g 1.1.0: EventBus + MVP architecture just a few annotations away

2010-03-29 Thread plcoirier
Like the previous version, Mvp4g 1.1.0 helps you build GWT
applications easily following best practices shown by Ray Ryan (MVP,
Event Bus and Dependency Injection), but now it is even easier because
you can do it with only one Java interface and a few annotations (and
you now have a strongly-typed event bus).

It also includes:
-integration of GWT 2.0 Code splitting feature: divide your
application into modules and load the module's code only when you need
it.
-optimization features: lazy loading of presenters  views (build your
views  presenters only when you need them)

For example, this is the code you need to create an event bus with 4
events:

@Events( startView = CompanyListView.class, module =
CompanyModule.class, debug = false )
public interface CompanyEventBus extends EventBus {

@Event( handlers = CompanyEditPresenter.class )
public void goToEdit( CompanyBean company );

@Event( handlers = CompanyDisplayPresenter.class )
public void goToDisplay( CompanyBean company );

@Event( handlers = { CompanyListPresenter.class,
CompanyDisplayPresenter.class } )
public void companyCreated( CompanyBean newBean );

@Event( handlers = CompanyListPresenter.class )
public void companyDeleted( CompanyBean newBean );

}


This is how you would define an event to load a child module using the
GWT code splitting feature:

@Events( startView = MainView.class, historyOnStart = true, debug =
false )
@ChildModules( { @ChildModule( moduleClass =
CompanyModule.class ), ... )
public interface MainEventBus extends EventBusWithLookup {

@Event( modulesToLoad = CompanyModule.class, ... )
public void goToCompany();

}

Examples and documentation are provided to illustrate the framework at
http://code.google.com/p/mvp4g

-- 
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: getCookie() doesn't find a cookie set in the RPC Servlet

2010-03-29 Thread Paul
Ok, I tracked it down. When setting the cookie in the servlet, I need
to set the path, then the gwt client can see the cookie.

 
  javax.servlet.http.Cookie c = new Cookie(SessionId, );
  c.setValue(1234);
  c.setMaxAge(-1);
  c.setPath(/);
  this.getThreadLocalResponse().addCookie(c);
  

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



Re: image help

2010-03-29 Thread abhiram wuntakal
Hey I have this not-so-technical work around for u.

 Apply a Mouse over handler for the image. on a mouse-over, just change the
image to some other image (probably a smaller one which says Dude, U cant
download this!!!) and again on a Mouse-out bring back the original image.

 Guess that will solve your problem and people will not be able to download
it...

 But as Sripathi says, it would be better to show a smaller size, low
resolution image, as people can always do a ScreenPrint and extract exactly
that image alone!!

 Hope a combination of these two things would solve ur problem.

~ Abhi


On Tue, Mar 30, 2010 at 3:02 AM, Sripathi Krishnan 
sripathikrish...@gmail.com wrote:

 but if they can just right click it and Save Image As there isn't any
 point.


 Disabling right click is no solution. Its trivial to figure out the link of
 the image and then download it directly. Div overlays also won't help. As
 long as the user can see it, there is always going to be a way for him to
 download it.

 You should -

- Only show a smaller size, low resolution image before the user
purchases it
- Apply a watermark/logo on the free image, so that there isn't any
merit in using the image directly.

 --Sri




 On 30 March 2010 02:42, Sudeep S sudee...@gmail.com wrote:

 i am not sure if this is a right approach...how about placing a
 transparent div over the image.
 would that work.

 On Tue, Mar 30, 2010 at 12:22 AM, Chris thechris...@gmail.com wrote:

 does anyone know if there is a way to disable someone from right
 clicking on an image and being able to save it?  i am trying to make
 an application where people can purchase images but if they can just
 right click it and Save Image As there isn't any point.  Any
 suggestions would be great.

 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


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


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


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



Re: Session management in GWT

2010-03-29 Thread Vik
hie yes gwt (ui)/

can u please point me to a bit more details on gwt-rpc/json mechanism on
doing so?


Thankx and Regards

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


On Mon, Mar 29, 2010 at 2:39 PM, olivier nouguier 
olivier.nougu...@gmail.com wrote:

 Hi,
 Do you mean I GWT (ui) code when talk in admindashboard.jsp.
 If true:
  provide a service (GWT-RPC/json) to retrieve information from.
 else:
  not a GWT question.

 On Mon, Mar 29, 2010 at 6:20 AM, Vik vik@gmail.com wrote:

 Hie

 I have a index.html page with a login module (build in gwt) embedded into
 it.
 Once the user provide authentication details and hit login button
 I am redirecting the user to a new page named AdminDashboard.jsp

 Now, I will be creating and embedding a dashboard using GWT components on
 this page.
 The question I have is how do i pass the user details from the login
 module to admindashboard.jsp?
  Please note that I am
 using Window.Location.replace(/ui/page/AdminDashboard.jsp);  to navigate
 to dashboard page.

 Further, what is used in GWT to store the data in a session and then
 validating it before user actions?

 Thankx and Regards

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

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




 --
 A coward is incapable of exhibiting love; it is the prerogative of the
 brave.
 --
 Mohandas Gandhi

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


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



Re: Scroll techniques for mobile phones

2010-03-29 Thread Vasem Want
I think you are missing the calibration event for the
android , usually we have event only for one hardware
but for android u will have to handle an extra handler

On Thu, Mar 25, 2010 at 2:18 PM, Sekhar sek...@allurefx.com wrote:

 How are folks (or is anyone) doing page scrolls for GWT apps on mobile
 phones? I'm having a bad time getting things going on say Android.
 E.g., the scroll bar doesn't appear at all (either with ScrollPanel or
 with a overflow: scroll CSS setting). Similarly, the handlers are just
 not picking up mouse events like mouse-move consistently. Ideal would
 be to simulate the native app behavior like the page scrolls up/down
 with gestures or mouse drags, but anything similar would help too.

 Please share your experiences and workarounds. As web based apps
 become popular on Android/iPhone/etc., we have to make GWT work
 reliably on mobile. I'm building a web version of an Android with GWT,
 and it's working well otherwise, and I'm pretty excited. I'd
 appreciate any help/direction you can give to fix the scrolling issue.

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



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



Re: [gwt-contrib] Re: CSS Selector Engine

2010-03-29 Thread Manuel Carrasco Moñino
Hello,

I have been using gwtquery for months in many projects where SEO is
needed. Is in these kinds of projects with a lot of
javascript and SEO, that GWT + gwtquery combination is a fantastic
solution (test, reusing, compression,  ...).

Unfortunately gwtquery has not been updated in a year (I know Ray has
been over-worked this time), and there is not a stable release. I sent
a big patch to the project a year ago, and now I have to use a patched
version of the trunk with many fixes.

Lately, we at Apache-Hupa (The webmail of James written in gwt) are
thinking to use it to change the behavior of 'html' messages (change
links actions, classes, etc..), but we can not include the library
until a non SNAPSHOT release is available.

So, I vote for continuing the developing of this great library, or
include its features in gwt.

PS: Ray, I'd like to have comitter access to gwtquery to send a bunch
of fixes I have (if possible).

Best Regards
Manolo



On Thu, Feb 11, 2010 at 4:17 AM, jarrod jarrod.carl...@gmail.com wrote:
 Well count me in for whatever I can do to help get support for a
 selector engine into GWT or a well supported community project.
 Admittedly, I am no browser quirk guru (which explains why I love
 GWT!), but I'll offer my services any way I can.

 It's obviously not release-grade, but I did throw up a project to
 provide Java bindings for Sizzle:
 http://code.google.com/p/gwt-sizzle/

 For now, I'm trying to keep it stupid simple. Just the bare minimum to
 return a set of Nodes, given a selector. Maybe I can eventually get
 the Sizzle code ported to GWT code to take advantage of deferred
 binding in the compiler.

 Thoughts?



 On Feb 9, 11:37 pm, Bruce Johnson br...@google.com wrote:
 And if we can get GwtQuery to the point where a lot of people really like
 it, I think we'd seriously consider rolling it into GWT proper.



 On Tue, Feb 9, 2010 at 11:34 PM, Ray Cromwell cromwell...@gmail.com wrote:
  GwtQuery was developed before Gwt 2.0 and it's been a while since it's
  been updated, but I believe it always was the intent for it to be a
  'proving ground' for bringing CSS selectors and jQuery like
  functionality into GWT core. Besides GWT 2.0 and/or IE8, let me know
  any issues that are most important to you. Perhaps I can grant those
  interested in helping comitter access.

  -Ray

  On Tue, Feb 9, 2010 at 8:12 PM, jarrod jarrod.carl...@gmail.com wrote:
   Yes, I am quite familiar with the project and have tried using it
   several times. Unfortunately, it does not work very well with GWT 2.0,
   does not support IE8, and appears to be dead as far as code
   maintenance. I certainly wish that weren't the case, but given the
   outstanding issues and lack of any code commits... what can you do?

 http://code.google.com/p/gwtquery/issues/list?can=1q=colspec=ID+Typ...

   On Feb 9, 10:26 pm, John Tamplin j...@google.com wrote:
   On Tue, Feb 9, 2010 at 9:51 PM, jarrod jarrod.carl...@gmail.com
  wrote:
I have to believe this topic has been broached before, but why does
GWT not contain any kind of CSS selector engine?

More and more I am using GWT to build JavaScript API tools for this
that or the other, and often this means integration with non-GWT code
(read: hand-written HTML, CSS and JavaScript).

Tool kits like JQuery and Dojo provide great helper methods for
manipulating the DOM via CSS selectors - a feature that is distinctly
absent from GWT. And yet, because of the vast differences in browser
support for various CSS selector methods (and CSS support itself), it
seems like a perfect fit for GWT, given the deferred binding
capabilities the compiler offers.

I do not believe GWT needs to support all the fancy helper shortcut
methods that other toolkits provide. Most of the extra features like
animation already have reasonable equivalents in GWT, and JQuery's
method chaining is just a hard-to-read way of minifying your code -
something GWT also already does. :-)

Probably my favorite CSS engine right now is Sizzle JS (http://
sizzlejs.com/) and I can't imagine it would be hard to write GWT
bindings for this library (it has three public methods in the API!).
In fact, if I can't find them with a quick Google search, maybe I'll
start a new project to do so.

The bindings would be a good start, but this is definitely a feature
I'd like to see get first-class support in GWT.

   Have you seenhttp://code.google.com/p/gwtquery/wiki/GettingStarted?

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

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

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

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

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to 

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

2010-03-29 Thread codesite-noreply

Comment by ap.forrest:

When we log into our product we launch a new browser window, also we  
unfortunately use iFrames as a result of legacy code. Both scenarios make  
it awkward to set the 'gwt.hosted' property on the appropriate URLs. Has  
anyone else had a similar issue or aware of a workaround? Is there an  
alternative to setting that property on the URL?



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

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


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

2010-03-29 Thread codesite-noreply

Comment by alyxandorjames:

Note to everyone reading this,
This guide is somewhat dated.

FOR UP TO DATE GUIDELINES, GO TO
http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html


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

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] Re: RPC policy files usage?

2010-03-29 Thread Ed
Hi,

This issue was driving me nuts..  It costs me so much time to update
these policy files (re-deploy/restart server). I even ended up with
around 100 policy files whereas I only need about 10 (for different
gwt app's against the same backend), but I didn't dare to clean them
as I didn't know which could be removed :(..

Anyway, I implemented my own SerializationPolicy that I like to share
here...
The idea: I copied much of the code from the
StandardSerializationPolicy class.
My implementation is listed below. It's basically the same as the
standard policy file, but instead the serialization and
deserialization whitelists aren't Map's but some general Class that
implements HasContainsClass?.

So the next thing to do is: implement you own policy-rule file that
implement HasContainsClass? and inject it, that's it.
I have two implementation of this HasContains: one that contains an
allowed and not allowed list of classes. And one that, instead of
classes, contains a list of allowed and not allowed Class names. This
latter version allows to use open end names, by defining a name as
for example: com.bla.* that matches any name that start with
com.bla.. This makes it very friendly to define allowed/not allowed
patterns. You could even add your own implementation to allow more
complex pattern's.
I have tested it and use it online now, and so far I am happy with the
result and safes me quite a bit of time...


The code:
-
public final class SerializationPolicySimpleP extends
HasContainsClass? extends SerializationPolicy {

private final P deserializationWhitelist;

private final P serializationWhitelist;

public SerializationPolicySimple(P serializationWhitelist, P
deserializationWhitelist) {
Args.notNull(serializationWhitelist, deserializationWhitelist);
this.deserializationWhitelist = deserializationWhitelist;
this.serializationWhitelist = serializationWhitelist;
}

@Override
public boolean shouldDeserializeFields(Class? clazz) {
return isFieldSerializable(clazz, serializationWhitelist);
}

@Override
public boolean shouldSerializeFields(Class? clazz) {
return isFieldSerializable(clazz, deserializationWhitelist);
}

@Override
public void validateDeserialize(Class? clazz) throws
SerializationException {
Args.exprNotTrueMsg(!isInstantiable(clazz,
deserializationWhitelist), ClassNotDeserializable, clazz);
}

@Override
public void validateSerialize(Class? clazz) throws
SerializationException {
Args.exprNotTrueMsg(!isInstantiable(clazz, 
serializationWhitelist),
ClassNotSerializable, clazz);
}

/**
 * Field serializable types are primitives and types on the specified
 * whitelist.
 */
private boolean isFieldSerializable(Class? clazz, P whitelist) {
if (clazz.isPrimitive()) {
return true;
}
else {
return whitelist.contains(clazz);
}
}

/**
 * Instantiable types are primitives and types on the specified
whitelist
 * which can be instantiated.
 */
private boolean isInstantiable(Class? clazz, P whitelist) {
if (clazz.isPrimitive()) {
return true;
}
else {
return whitelist.contains(clazz);
}
}

}
-

And:

public final class ContainsAllowedString implements HasContainsClass?
 {

private boolean allowHasPreferenceOverNotAllow;

private final CollectionString allowed;

private final CollectionString notAllowed;

/**
 * All allowed.
 */
public ContainsAllowedString() {
this(null, null);
}

/**
 * The allowed and not allowed lists can both be null, such that all
is allowed.
 * All collection items can have an open end through the end
character '*' to match only the beginning of the name for a match.
 * For example: entry com.bla.* will match any values starting with
com.bla. like com.bla.sit.
 *
 * @param allowed can contain items with an open end (*) to match
only the beginning of a name.
 * @param notAllowed can contain items with an open end.
 * @see UtilsMiscSafe#isAllowedString(String, Collection, Collection,
boolean)
 */
public ContainsAllowedString(CollectionString allowed,
CollectionString notAllowed) {
this.allowed = allowed;
this.notAllowed = notAllowed;
}

public final boolean isAllowHasPreferenceOverNotAllow() {
return allowHasPreferenceOverNotAllow;
}

public final void setAllowHasPreferenceOverNotAllow(boolean yes) 

[gwt-contrib] [google-web-toolkit] r7804 committed - Eclipse code formatter, do not insert space before array initializer....

2010-03-29 Thread codesite-noreply

Revision: 7804
Author: sco...@google.com
Date: Mon Mar 29 04:39:30 2010
Log: Eclipse code formatter, do not insert space before array initializer.

This change fixes the conflict with checkstyle when initializing an  
anootation value with an array.


http://code.google.com/p/google-web-toolkit/source/detail?r=7804

Modified:
 /trunk/eclipse/settings/code-style/gwt-format.xml

===
--- /trunk/eclipse/settings/code-style/gwt-format.xml	Wed Jan  9 13:36:36  
2008
+++ /trunk/eclipse/settings/code-style/gwt-format.xml	Mon Mar 29 04:39:30  
2010

@@ -115,7 +115,7 @@
 setting  
id=org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression  
value=do not insert/
 setting  
id=org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation  
value=do not insert/
 setting id=org.eclipse.jdt.core.formatter.comment.format_block_comments  
value=true/
-setting  
id=org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer  
value=insert/
+setting  
id=org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer  
value=do not insert/
 setting  
id=org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration  
value=insert/
 setting  
id=org.eclipse.jdt.core.formatter.alignment_for_binary_expression  
value=16/
 setting  
id=org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer  
value=do not insert/


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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] [google-web-toolkit] r7805 committed - Add a HasKey interface and a maxColumns param for SideBySideTreeView...

2010-03-29 Thread codesite-noreply

Revision: 7805
Author: r...@google.com
Date: Mon Mar 29 04:52:13 2010
Log: Add a HasKey interface and a maxColumns param for SideBySideTreeView
Note: the location of the getKey() method needs further thought

Review at http://gwt-code-reviews.appspot.com/277801

Review by: j...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=7805

Added:
 /trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/HasKey.java
Modified:
 /trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/Column.java
  
/trunk/bikeshed/src/com/google/gwt/bikeshed/tree/client/SideBySideTreeNodeView.java
  
/trunk/bikeshed/src/com/google/gwt/bikeshed/tree/client/SideBySideTreeView.java

 /trunk/bikeshed/src/com/google/gwt/bikeshed/tree/client/TreeViewModel.java
  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/Columns.java
  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/tree/client/TreeSample.java
  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/validation/client/Validation.java


===
--- /dev/null
+++ /trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/HasKey.java	Mon  
Mar 29 04:52:13 2010

@@ -0,0 +1,35 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.bikeshed.list.client;
+
+/**
+ * An interface for extracting a key from a value.  The extracted key
+ * must contain suitable implementations of hashCode() and equals().
+ *
+ * @param C the value type for which keys are to be returned
+ */
+public interface HasKeyC {
+
+  /**
+   * Return a key that may be used to identify values that should
+   * be treated as the same in UI views.
+   *
+   * @param value a value of type C.
+   * @return an Object that implements appropriate hashCode() and equals()
+   * methods.
+   */
+  Object getKey(C value);
+}
===
--- /trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/Column.java	Mon  
Mar 22 05:11:01 2010
+++ /trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/Column.java	Mon  
Mar 29 04:52:13 2010

@@ -36,18 +36,33 @@
  */
 // TODO - when can we get rid of a view data object?
 // TODO - should viewData implement some interface? (e.g., with  
commit/rollback/dispose)

-public abstract class ColumnT, C, V {
+public abstract class ColumnT, C, V implements HasKeyT {
   protected final CellC, V cell;
-  protected MapT, V viewDataMap = new HashMapT, V();
   protected FieldUpdaterT, C, V fieldUpdater;
+  protected MapObject, V viewDataMap = new HashMapObject, V();

   public Column(CellC, V cell) {
 this.cell = cell;
   }

+  public boolean consumesEvents() {
+return cell.consumesEvents();
+  }
+
+  /**
+   * Returns a key to be used to associate view data with the given object.
+   * The default implementation simply returns the object.
+   */
+  public Object getKey(T object) {
+return object;
+  }
+
+  public abstract C getValue(T object);
+
   public void onBrowserEvent(Element elem, final int index, final T object,
   NativeEvent event) {
-V viewData = viewDataMap.get(object);
+Object key = getKey(object);
+V viewData = viewDataMap.get(key);
 V newViewData = cell.onBrowserEvent(elem,
 getValue(object), viewData, event, fieldUpdater == null ? null
 : new ValueUpdaterC, V() {
@@ -56,7 +71,7 @@
   }
 });
 if (newViewData != viewData) {
-  viewDataMap.put(object, newViewData);
+  viewDataMap.put(key, newViewData);
 }
   }

@@ -76,6 +91,4 @@
   protected FieldUpdaterT, C, V getFieldUpdater() {
 return fieldUpdater;
   }
-
-  protected abstract C getValue(T object);
-}
+}
===
---  
/trunk/bikeshed/src/com/google/gwt/bikeshed/tree/client/SideBySideTreeNodeView.java	 
Fri Mar 26 06:15:07 2010
+++  
/trunk/bikeshed/src/com/google/gwt/bikeshed/tree/client/SideBySideTreeNodeView.java	 
Mon Mar 29 04:52:13 2010

@@ -20,6 +20,7 @@
 import com.google.gwt.dom.client.Document;
 import com.google.gwt.dom.client.Element;
 import com.google.gwt.dom.client.Style;
+import com.google.gwt.dom.client.Style.Display;
 import com.google.gwt.dom.client.Style.Position;
 import com.google.gwt.dom.client.Style.Unit;
 import com.google.gwt.user.client.ui.RequiresResize;
@@ -39,6 +40,8 @@

   private int level;

+  private int maxColumns;
+
   private String path;

   /**
@@ -47,17 +50,19 @@
* @param tree the parent {...@link 

[gwt-contrib] [google-web-toolkit] r7808 committed - Edited wiki page through web user interface.

2010-03-29 Thread codesite-noreply

Revision: 7808
Author: sp...@google.com
Date: Mon Mar 29 08:30:22 2010
Log: Edited wiki page through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=7808

Modified:
 /wiki/CodeSplitting.wiki

===
--- /wiki/CodeSplitting.wikiTue Jul 21 13:52:01 2009
+++ /wiki/CodeSplitting.wikiMon Mar 29 08:30:22 2010
@@ -1,5 +1,12 @@
 #summary Design document and user manual for code splitting

+strongemThis wiki page is no longer maintained.  Code splitting is now  
documented in the GWT user manual:

+
+[http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html]
+/em/strong
+
+
+
 =Introduction =

 As AJAX apps develop, the !JavaScript part of the application tends to

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] [google-web-toolkit] r7807 committed - Checkstyle fixes

2010-03-29 Thread codesite-noreply

Revision: 7807
Author: r...@google.com
Date: Mon Mar 29 05:18:51 2010
Log: Checkstyle fixes

http://code.google.com/p/google-web-toolkit/source/detail?r=7807

Modified:
  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksDesktop.java
  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksMobile.java

 /trunk/dev/core/src/com/google/gwt/dev/Permutation.java

===
---  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksDesktop.java	 
Fri Mar 26 06:15:07 2010
+++  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksDesktop.java	 
Mon Mar 29 05:18:51 2010

@@ -49,7 +49,7 @@
 import java.util.Map;

 /**
- * Entry point classes define codeonModuleLoad()/code.
+ * Desktop client for the stocks demo.
  */
 public class StocksDesktop implements EntryPoint, Updater {

===
---  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksMobile.java	 
Fri Mar 26 06:15:07 2010
+++  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/stocks/client/StocksMobile.java	 
Mon Mar 29 05:18:51 2010

@@ -1,3 +1,18 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
 package com.google.gwt.sample.bikeshed.stocks.client;

 import com.google.gwt.bikeshed.list.client.PagingTableListView;
@@ -19,9 +34,14 @@
 import com.google.gwt.user.client.ui.RootPanel;
 import com.google.gwt.user.client.ui.Widget;

+/**
+ * Mobile client for the stocks demo.
+ */
 public class StocksMobile {

-  interface Binder extends UiBinderWidget, StocksMobile {}
+  interface Binder extends UiBinderWidget, StocksMobile {
+  }
+
   private static final Binder binder = GWT.create(Binder.class);

   /**
@@ -99,17 +119,17 @@

   @UiFactory
   PagingTableListViewStockQuote createFavoritesWidget() {
-PagingTableListViewStockQuote listView = new  
PagingTableListViewStockQuote(
+PagingTableListViewStockQuote favorite = new  
PagingTableListViewStockQuote(

 favoritesListModel, 10);

-listView.addColumn(Columns.tickerColumn, new TextHeader(ticker));
-listView.addColumn(Columns.priceColumn, new TextHeader(price));
-listView.addColumn(Columns.changeColumn, new TextHeader(change));
-listView.addColumn(Columns.sharesColumn, new TextHeader(shares));
-listView.addColumn(Columns.dollarsColumn, new TextHeader(value));
-listView.addColumn(Columns.profitLossColumn, new  
TextHeader(profit/loss));

-
-return listView;
+favorite.addColumn(Columns.tickerColumn, new TextHeader(ticker));
+favorite.addColumn(Columns.priceColumn, new TextHeader(price));
+favorite.addColumn(Columns.changeColumn, new TextHeader(change));
+favorite.addColumn(Columns.sharesColumn, new TextHeader(shares));
+favorite.addColumn(Columns.dollarsColumn, new TextHeader(value));
+favorite.addColumn(Columns.profitLossColumn, new  
TextHeader(profit/loss));

+
+return favorite;
   }

   /**
@@ -143,4 +163,3 @@
 favorites.size(), favorites);
   }
 }
-
===
--- /trunk/dev/core/src/com/google/gwt/dev/Permutation.java	Thu Mar 25  
12:00:47 2010
+++ /trunk/dev/core/src/com/google/gwt/dev/Permutation.java	Mon Mar 29  
05:18:51 2010

@@ -72,7 +72,7 @@

   /**
* This is called to merge two permutations that either have identical  
rebind

-   * answers or were explicitly collapsed using collapse-property
+   * answers or were explicitly collapsed using collapse-property.
*/
   public void mergeFrom(Permutation other, SortedSetString  
liveRebindRequests) {

 if (getClass().desiredAssertionStatus()) {

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] [google-web-toolkit] r7809 committed - Mail sample app to work on selection concepts

2010-03-29 Thread codesite-noreply

Revision: 7809
Author: r...@google.com
Date: Mon Mar 29 05:42:31 2010
Log: Mail sample app to work on selection concepts

http://code.google.com/p/google-web-toolkit/source/detail?r=7809

Added:
 /trunk/bikeshed/src/com/google/gwt/bikeshed/list/shared/SelectionModel.java
 /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/mail
 /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/mail/MailSample.gwt.xml
 /trunk/bikeshed/src/com/google/gwt/sample/bikeshed/mail/client
  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/mail/client/MailSample.java

 /trunk/bikeshed/war/Mail.css
 /trunk/bikeshed/war/Mail.html
Modified:
 /trunk/bikeshed/src/com/google/gwt/bikeshed/cells/client/ButtonCell.java
 /trunk/bikeshed/src/com/google/gwt/bikeshed/cells/client/Cell.java
 /trunk/bikeshed/src/com/google/gwt/bikeshed/cells/client/CheckboxCell.java
 /trunk/bikeshed/src/com/google/gwt/bikeshed/cells/client/TextInputCell.java
  
/trunk/bikeshed/src/com/google/gwt/bikeshed/list/client/PagingTableListView.java
  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/validation/client/ValidatableInputCell.java


===
--- /dev/null
+++  
/trunk/bikeshed/src/com/google/gwt/bikeshed/list/shared/SelectionModel.java	 
Mon Mar 29 05:42:31 2010

@@ -0,0 +1,28 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.bikeshed.list.shared;
+
+/**
+ * A model for selection within a list.
+ *
+ * @param T the data type of records in the list
+ */
+public interface SelectionModelT {
+
+  boolean isSelected(T object);
+
+  void setSelected(T object, boolean selected);
+}
===
--- /dev/null
+++  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/mail/MailSample.gwt.xml	 
Mon Mar 29 05:42:31 2010

@@ -0,0 +1,25 @@
+?xml version=1.0 encoding=UTF-8?
+!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit  
0.0.999//EN http://google-web-toolkit.googlecode.com/svn/tags/0.0.999/distro-source/core/src/gwt-module.dtd;

+module rename-to='mail'
+  !-- Inherit the core Web Toolkit stuff.--
+  inherits name='com.google.gwt.user.User'/
+  inherits name='com.google.gwt.bikeshed.list.List'/
+  inherits name='com.google.gwt.bikeshed.tree.Tree'/
+
+  !-- Inherit the default GWT style sheet.  You can change   --
+  !-- the theme of your GWT application by uncommenting  --
+  !-- any one of the following lines.--
+  inherits name='com.google.gwt.user.theme.standard.Standard'/
+  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
+  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --
+
+  !-- Other module inherits  --
+
+  !-- Specify the app entry point class. --
+  entry-point  
class='com.google.gwt.sample.bikeshed.mail.client.MailSample'/

+
+  !-- Specify the paths for translatable code--
+  source path='client'/
+  source path='shared'/
+
+/module
===
--- /dev/null
+++  
/trunk/bikeshed/src/com/google/gwt/sample/bikeshed/mail/client/MailSample.java	 
Mon Mar 29 05:42:31 2010

@@ -0,0 +1,195 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.sample.bikeshed.mail.client;
+
+import com.google.gwt.bikeshed.cells.client.CheckboxCell;
+import com.google.gwt.bikeshed.cells.client.FieldUpdater;
+import com.google.gwt.bikeshed.cells.client.TextCell;
+import com.google.gwt.bikeshed.list.client.Column;
+import com.google.gwt.bikeshed.list.client.Header;
+import com.google.gwt.bikeshed.list.client.PagingTableListView;
+import com.google.gwt.bikeshed.list.shared.ListListModel;
+import com.google.gwt.bikeshed.list.shared.SelectionModel;
+import com.google.gwt.core.client.EntryPoint;
+import com.google.gwt.user.client.ui.RootPanel;
+
+import 

[gwt-contrib] Remove JDK 1.6-isms; fix a checkstyle warning (issue281801)

2010-03-29 Thread rice

Reviewers: Lex,

Description:
Remove JDK 1.6-isms; fix a checkstyle warning


Please review this at http://gwt-code-reviews.appspot.com/281801/show

Affected files:
  M dev/core/src/com/google/gwt/core/linker/IFrameLinker.java
  M user/src/com/google/gwt/core/client/impl/CrossSiteLoadingStrategy.java
  M user/test/com/google/gwt/precompress/linker/PrecompressLinkerTest.java
  M user/test/com/google/gwt/user/rebind/rpc/BlacklistTypeFilterTest.java


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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] [google-web-toolkit] r7810 committed - Making a snapshot branch as a direct copy from trunk at r7809.

2010-03-29 Thread codesite-noreply

Revision: 7810
Author: sp...@google.com
Date: Mon Mar 29 09:55:42 2010
Log: Making a snapshot branch as a direct copy from trunk at r7809.

http://code.google.com/p/google-web-toolkit/source/detail?r=7810

Added:
 /branches/snapshot-2010.03.26

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


Re: [gwt-contrib] Remove JDK 1.6-isms; fix a checkstyle warning (issue281801)

2010-03-29 Thread Scott Blum
Dan, I actually just submitted without review the @Overrides removals.

On Mon, Mar 29, 2010 at 12:29 PM, r...@google.com wrote:

 Reviewers: Lex,

 Description:
 Remove JDK 1.6-isms; fix a checkstyle warning


 Please review this at http://gwt-code-reviews.appspot.com/281801/show

 Affected files:
  M dev/core/src/com/google/gwt/core/linker/IFrameLinker.java
  M user/src/com/google/gwt/core/client/impl/CrossSiteLoadingStrategy.java
  M user/test/com/google/gwt/precompress/linker/PrecompressLinkerTest.java
  M user/test/com/google/gwt/user/rebind/rpc/BlacklistTypeFilterTest.java


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

 To unsubscribe from this group, send email to
 google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to
 this email with the words REMOVE ME as the subject.


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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this 
email with the words REMOVE ME as the subject.


Re: [gwt-contrib] Remove JDK 1.6-isms; fix a checkstyle warning (issue281801)

2010-03-29 Thread Scott Blum
On Mon, Mar 29, 2010 at 1:05 PM, Scott Blum sco...@google.com wrote:

 Dan, I actually just submitted without review the @Overrides removals.


Well, not the one in CrossSiteLoadingStrategy, my patch was older.

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this 
email with the words REMOVE ME as the subject.


[gwt-contrib] [google-web-toolkit] r7811 committed - Removing interface @Overrides for Java 1.5 compatibility....

2010-03-29 Thread codesite-noreply

Revision: 7811
Author: sco...@google.com
Date: Mon Mar 29 07:02:30 2010
Log: Removing interface @Overrides for Java 1.5 compatibility.

Review by: sp...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=7811

Modified:
  
/trunk/user/test/com/google/gwt/precompress/linker/PrecompressLinkerTest.java
  
/trunk/user/test/com/google/gwt/user/rebind/rpc/BlacklistTypeFilterTest.java


===
---  
/trunk/user/test/com/google/gwt/precompress/linker/PrecompressLinkerTest.java	 
Fri Mar 26 13:29:42 2010
+++  
/trunk/user/test/com/google/gwt/precompress/linker/PrecompressLinkerTest.java	 
Mon Mar 29 07:02:30 2010

@@ -54,28 +54,23 @@
   this.hasMultipleValues = hasMultipleValues;
 }

-@Override
 public int compareTo(MockConfigurationProperty o) {
   return getName().compareTo(o.getName());
 }

-@Override
 public String getName() {
   return name;
 }

-@Override
 @Deprecated
 public String getValue() {
   return values.get(0);
 }

-@Override
 public ListString getValues() {
   return values;
 }

-@Override
 public boolean hasMultipleValues() {
   return hasMultipleValues;
 }
@@ -87,38 +82,31 @@
   }

   private class MockLinkerContext implements LinkerContext {
-@Override
 public SortedSetConfigurationProperty getConfigurationProperties() {
   return new TreeSetConfigurationProperty(Arrays.asList(
   propLeaveOriginals, propPathRegexes));
 }

-@Override
 public String getModuleFunctionName() {
   return MockModule;
 }

-@Override
 public long getModuleLastModified() {
   return 0;
 }

-@Override
 public String getModuleName() {
   return MockModule;
 }

-@Override
 public SortedSetSelectionProperty getProperties() {
   return new TreeSetSelectionProperty();
 }

-@Override
 public boolean isOutputCompact() {
   return true;
 }

-@Override
 public String optimizeJavaScript(TreeLogger logger, String jsProgram) {
   return jsProgram;
 }
===
---  
/trunk/user/test/com/google/gwt/user/rebind/rpc/BlacklistTypeFilterTest.java	 
Fri Mar 26 13:29:42 2010
+++  
/trunk/user/test/com/google/gwt/user/rebind/rpc/BlacklistTypeFilterTest.java	 
Mon Mar 29 07:02:30 2010

@@ -50,19 +50,16 @@
   this.name = name;
 }

-@Override
 public String getName() {
   return name;
 }

-@Override
 public ListString getValues() {
   return values;
 }
   }

   private class MockPropertyOracle implements PropertyOracle {
-@Override
 public ConfigurationProperty getConfigurationProperty(String  
propertyName)

 throws BadPropertyValueException {
   if (propertyName.equals(propRpcBlacklist.getName())) {
@@ -71,14 +68,12 @@
   throw new BadPropertyValueException(No property named  +  
propertyName);

 }

-@Override
 @Deprecated
 public String getPropertyValue(TreeLogger logger, String propertyName)
 throws BadPropertyValueException {
   return getConfigurationProperty(propertyName).getValues().get(0);
 }

-@Override
 @Deprecated
 public String[] getPropertyValueSet(TreeLogger logger, String  
propertyName)

 throws BadPropertyValueException {
@@ -86,7 +81,6 @@
   new String[0]);
 }

-@Override
 public SelectionProperty getSelectionProperty(TreeLogger logger,
 String propertyName) throws BadPropertyValueException {
   throw new BadPropertyValueException(No property named  +  
propertyName);


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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] [google-web-toolkit] r7812 committed - Deleting this manually created snapshot branch. There's a new script ...

2010-03-29 Thread codesite-noreply

Revision: 7812
Author: sp...@google.com
Date: Mon Mar 29 10:28:53 2010
Log: Deleting this manually created snapshot branch.  There's a new script  
in town.


http://code.google.com/p/google-web-toolkit/source/detail?r=7812

Deleted:
 /branches/snapshot-2010.03.26

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] [google-web-toolkit] r7813 committed - Created new snapshot branch via:...

2010-03-29 Thread codesite-noreply

Revision: 7813
Author: sp...@google.com
Date: Mon Mar 29 10:31:06 2010
Log: Created new snapshot branch via:
svn cp -r7809 https://google-web-toolkit.googlecode.com/svn/trunk \
 
https://google-web-toolkit.googlecode.com/svn/branches/snapshot-2010.03.29-r7809


http://code.google.com/p/google-web-toolkit/source/detail?r=7813

Added:
 /branches/snapshot-2010.03.29-r7809

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] Skeletal support for tracking generator dependencies and skipping (issue283801)

2010-03-29 Thread spoon

Reviewers: Lex,

Description:
Skeletal support for tracking generator dependencies and skipping
reruns of generators.


Please review this at http://gwt-code-reviews.appspot.com/283801/show

Affected files:
  M dev/core/src/com/google/gwt/dev/DevModeBase.java
  M dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java
  M dev/core/src/com/google/gwt/dev/resource/ResourceOracle.java
  M dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java
  M dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java
  M dev/core/src/com/google/gwt/dev/shell/StandardRebindOracle.java
  A  
dev/core/src/com/google/gwt/dev/shell/generatordeps/PriorRealizationResults.java
  A  
dev/core/src/com/google/gwt/dev/shell/generatordeps/RuleRealizeCache.java

  A dev/core/src/com/google/gwt/dev/shell/generatordeps/SillyCache.java
  M dev/core/test/com/google/gwt/dev/javac/impl/MockResourceOracle.java
  M user/src/com/google/gwt/resources/ext/ResourceGeneratorUtil.java


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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] Re: Skeletal support for tracking generator dependencies and skipping (issue283801)

2010-03-29 Thread spoon

There are three main parts to focus on:

1. The interface RuleRealizeCache is what must be implemented to track
dependencies and decide when a previous result can be reused.  Please
see the comments in that file for how the API works.

2. ResourceOracle can have a dependency tracker plugged into it.  Every
request made to the oracle is echoed to the dependency tracker.  Please
notice how straightforward the pattern is.

3. SillyCache uses ResourceOracle's dependency tracking hook to find out
what resources are used when executing each rule.



http://gwt-code-reviews.appspot.com/283801/show

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] Re: Add support for creating Grid elements using UiBinder. (issue154810)

2010-03-29 Thread rjrjr

Thanks for your patience, Marko, and sorry to be so inconsiderate of
your time.


http://gwt-code-reviews.appspot.com/154810/diff/1001/1002
File user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
(right):

http://gwt-code-reviews.appspot.com/154810/diff/1001/1002#newcode37
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:37:
private String maxColumns;
There is no reason for these to be instance variables, should be local
to parse

http://gwt-code-reviews.appspot.com/154810/diff/1001/1002#newcode42
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:42:
maxColumns = elem.consumeRequiredIntAttribute(COLUMNS_ATTRIBUTE);
Neither of these should be required. We can just count up the rows and
columns for them.

http://gwt-code-reviews.appspot.com/154810/diff/1001/1002#newcode48
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:48: if
(row = Integer.parseInt(maxRows)) {
Should not parse this over and over again.

Also, maxRows could well be a field reference, so you won't know its
actual value at compile time. Use
FieldReferenceConverter.hasFieldReferences(String) to judge if you can
even make the check. (If it's not a field ref, it is definitely a
parseable int literal or an exception will have been thrown by
XMLElement.consumeIntAttribute, presuming that is correctly written to
use IntAttributeParser.)

http://gwt-code-reviews.appspot.com/154810/diff/1001/1002#newcode59
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:59:
private void parseRow(XMLElement elem, String fieldName, UiBinderWriter
writer, int row) throws UnableToCompleteException {
Many lines too long here.

http://gwt-code-reviews.appspot.com/154810/diff/1001/1002#newcode63
user/src/com/google/gwt/uibinder/elementparsers/GridParser.java:63:
writer.die(Trying to add more rows then specified by rows attribute.);
These are columns, not rows. All the issues above about maxRows apply
here as well.

http://gwt-code-reviews.appspot.com/154810/diff/1001/1004
File user/src/com/google/gwt/uibinder/rebind/XMLElement.java (right):

http://gwt-code-reviews.appspot.com/154810/diff/1001/1004#newcode575
user/src/com/google/gwt/uibinder/rebind/XMLElement.java:575: return
consumeRequiredAttribute(name, getIntType());
As noted in GridParser, you actually don't want it to be required.

http://gwt-code-reviews.appspot.com/154810/diff/1001/1005
File user/src/com/google/gwt/user/client/ui/Grid.java (right):

http://gwt-code-reviews.appspot.com/154810/diff/1001/1005#newcode60
user/src/com/google/gwt/user/client/ui/Grid.java:60: *
lt;g:textCell
In other parsers we have consciously not bothered with text support when
there is parallel html support. There's no real point to it. I think you
should just drop g:textCell

http://gwt-code-reviews.appspot.com/154810/diff/1001/1005#newcode67
user/src/com/google/gwt/user/client/ui/Grid.java:67: *  lt;g:row
This example is wrong. I can't put HTML straight into a custom cell, it
has to hold a widget, right?

http://gwt-code-reviews.appspot.com/154810/diff/1001/1006
File
user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java
(right):

http://gwt-code-reviews.appspot.com/154810/diff/1001/1006#newcode2
user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java:2:
* Copyright 2009 Google Inc.
2010

http://gwt-code-reviews.appspot.com/154810/diff/1001/1006#newcode28
user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java:28:
* A unit test. Guess what of.
Eponymous unit test. I'm trying to get less snarky.

http://gwt-code-reviews.appspot.com/154810/diff/1001/1006#newcode42
user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java:42:
* Test with g:customCell tag.
wrong, might as well delete the javadoc.

http://gwt-code-reviews.appspot.com/154810/diff/1001/1006#newcode176
user/test/com/google/gwt/uibinder/elementparsers/GridParserTest.java:176:
public void testValidChild() throws UnableToCompleteException,
SAXException,
Should add a test that field refs in rows and columns work.

http://gwt-code-reviews.appspot.com/154810/diff/1001/1009
File user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml
(right):

http://gwt-code-reviews.appspot.com/154810/diff/1001/1009#newcode608
user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml:608:
gwt:cell
Shouldn't these be custom cells? What's actually showing up in the
output?

http://gwt-code-reviews.appspot.com/154810/show

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] Re: Add support for creating Grid elements using UiBinder. (issue154810)

2010-03-29 Thread rjrjr

One other note: your patch is very likely to land after
http://gwt-code-reviews.appspot.com/241801, and may need to be tweaked.
Take a look at the element parser changes there to get a feel for it.

http://gwt-code-reviews.appspot.com/154810/show

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] Make ServletValidator not use Jetty (issue284801)

2010-03-29 Thread scottb

Reviewers: bobv,

Message:
Please review.

Description:
See http://code.google.com/p/google-web-toolkit/issues/detail?id=4760


Please review this at http://gwt-code-reviews.appspot.com/284801/show

Affected files:
  M dev/core/src/com/google/gwt/dev/ServletValidator.java
  M dev/core/test/com/google/gwt/dev/ServletValidatorTest.java


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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] SelectionScriptLinker was setting the wrong timestamp on (issue287801)

2010-03-29 Thread spoon

Reviewers: scottb,

Description:
SelectionScriptLinker was setting the wrong timestamp on
the generated selection script when used in production mode.
It mistakenly thought it was in dev mode.

Review by: sco...@google.com

Please review this at http://gwt-code-reviews.appspot.com/287801/show

Affected files:
  M  
dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java
  M  
user/test/com/google/gwt/core/ext/linker/impl/SelectionScriptLinkerUnitTest.java



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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] Re: SelectionScriptLinker was setting the wrong timestamp on (issue287801)

2010-03-29 Thread scottb

LGTM

http://gwt-code-reviews.appspot.com/287801/show

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] The servlet now reads the enum name from a properties file. Thus, the servlet (issue286802)

2010-03-29 Thread amitmanjhi

Reviewers: Ray Ryan,

Description:
The servlet now reads the enum name from a properties file. Thus, the
servlet
portion responsible for all READ operations is a stock servlet.

Patch by: amitmanjhi
Review by: rjrjr (desk review)


Please review this at http://gwt-code-reviews.appspot.com/286802/show

Affected files:
  M  
bikeshed/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java

  M bikeshed/src/com/google/gwt/requestfactory/shared/RequestFactory.java
  M  
bikeshed/src/com/google/gwt/requestfactory/shared/impl/RequestDataManager.java

  M bikeshed/src/com/google/gwt/sample/expenses/gen/EmployeeRequestImpl.java
  M bikeshed/src/com/google/gwt/sample/expenses/gen/ReportRequestImpl.java
  M  
bikeshed/src/com/google/gwt/sample/expenses/server/ExpensesDataServlet.java
  M  
bikeshed/src/com/google/gwt/sample/expenses/shared/ExpenseRequestFactory.java

  A bikeshed/war/WEB-INF/classes/servlet.properties


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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] Re: The servlet now reads the enum name from a properties file. Thus, the servlet (issue286802)

2010-03-29 Thread rjrjr

LGTM, with one comment nit below.

http://gwt-code-reviews.appspot.com/286802/show

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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] BinaryEmittedArtifact now forces subclasses to implement getLastModified. (issue288801)

2010-03-29 Thread scottb

Reviewers: Lex,

Message:
Please review.

Description:
Also:
- Link.legacyLink once again deletes the module output directory, fixing
r6497.
- Intermediate linking individual permutations into a jar now preserves
the timestamp.


Please review this at http://gwt-code-reviews.appspot.com/288801/show

Affected files:
  M dev/core/src/com/google/gwt/core/ext/linker/BinaryEmittedArtifact.java
  M  
dev/core/src/com/google/gwt/core/ext/linker/impl/BinaryOnlyArtifactWrapper.java
  M  
dev/core/src/com/google/gwt/core/ext/linker/impl/JarEntryEmittedArtifact.java

  M dev/core/src/com/google/gwt/dev/Link.java


Index:  
dev/core/src/com/google/gwt/core/ext/linker/BinaryEmittedArtifact.java
diff --git  
a/dev/core/src/com/google/gwt/core/ext/linker/BinaryEmittedArtifact.java  
b/dev/core/src/com/google/gwt/core/ext/linker/BinaryEmittedArtifact.java
index  
1828b1fc682c3cccb59171e450a5bb4a4764261f..54679fba20e5d0119bb17a156e0be4115abf8306  
100644

--- a/dev/core/src/com/google/gwt/core/ext/linker/BinaryEmittedArtifact.java
+++ b/dev/core/src/com/google/gwt/core/ext/linker/BinaryEmittedArtifact.java
@@ -31,4 +31,10 @@ public abstract class BinaryEmittedArtifact extends  
EmittedArtifact {

   protected BinaryEmittedArtifact(String partialPath) {
 super(StandardLinkerContext.class, partialPath);
   }
+
+  /**
+   * Force subclasses to define.
+   */
+  @Override
+  public abstract long getLastModified();
 }
Index:  
dev/core/src/com/google/gwt/core/ext/linker/impl/BinaryOnlyArtifactWrapper.java
diff --git  
a/dev/core/src/com/google/gwt/core/ext/linker/impl/BinaryOnlyArtifactWrapper.java  
b/dev/core/src/com/google/gwt/core/ext/linker/impl/BinaryOnlyArtifactWrapper.java
index  
3cf6fca6a50f208abc35dc4d963bf9d1d510b3a4..b3c868b778f791f94c1b5b6446d1df93ed478c32  
100644
---  
a/dev/core/src/com/google/gwt/core/ext/linker/impl/BinaryOnlyArtifactWrapper.java
+++  
b/dev/core/src/com/google/gwt/core/ext/linker/impl/BinaryOnlyArtifactWrapper.java
@@ -40,4 +40,9 @@ public class BinaryOnlyArtifactWrapper extends  
BinaryEmittedArtifact {

   throws UnableToCompleteException {
 return underlyingArtifact.getContents(logger);
   }
+
+  @Override
+  public long getLastModified() {
+return underlyingArtifact.getLastModified();
+  }
 }
Index:  
dev/core/src/com/google/gwt/core/ext/linker/impl/JarEntryEmittedArtifact.java
diff --git  
a/dev/core/src/com/google/gwt/core/ext/linker/impl/JarEntryEmittedArtifact.java  
b/dev/core/src/com/google/gwt/core/ext/linker/impl/JarEntryEmittedArtifact.java
index  
1c1885e2280206f55f703a23ac9dd78b13fa05cb..89678d266ecff3eb60da29c1ca131ad1f0110b12  
100644
---  
a/dev/core/src/com/google/gwt/core/ext/linker/impl/JarEntryEmittedArtifact.java
+++  
b/dev/core/src/com/google/gwt/core/ext/linker/impl/JarEntryEmittedArtifact.java
@@ -83,4 +83,9 @@ public class JarEntryEmittedArtifact extends  
BinaryEmittedArtifact {

   throw new UnableToCompleteException();
 }
   }
+
+  @Override
+  public long getLastModified() {
+return entry.getTime();
+  }
 }
Index: dev/core/src/com/google/gwt/dev/Link.java
diff --git a/dev/core/src/com/google/gwt/dev/Link.java  
b/dev/core/src/com/google/gwt/dev/Link.java
index  
cbaf11358ac863217c801b24dfc62b5e1480a960..eaa6ae4f76a029b609355b741bcfb45e57873ad0  
100644

--- a/dev/core/src/com/google/gwt/dev/Link.java
+++ b/dev/core/src/com/google/gwt/dev/Link.java
@@ -154,10 +154,10 @@ public class Link {
 module, precompileOptions);
 ArtifactSet artifacts = doSimulatedShardingLink(logger, module,
 linkerContext, generatedArtifacts, permutations, resultFiles);
-OutputFileSet outFileSet = new OutputFileSetOnDirectory(outDir,
-module.getName() + /);
-OutputFileSet extraFileSet = new OutputFileSetOnDirectory(outDir,
-module.getName() + -aux/);
+OutputFileSet outFileSet = chooseOutputFileSet(outDir, module.getName()
++ /);
+OutputFileSet extraFileSet = chooseOutputFileSet(outDir,  
module.getName()

++ -aux/);
 doProduceOutput(logger, artifacts, linkerContext, outFileSet,  
extraFileSet);

   }

@@ -216,7 +216,9 @@ public class Link {
 } else {
   jarEntryPath = target/ + art.getPartialPath();
 }
-jar.putNextEntry(new ZipEntry(jarEntryPath));
+ZipEntry ze = new ZipEntry(jarEntryPath);
+ze.setTime(art.getLastModified());
+jar.putNextEntry(ze);
 art.writeTo(logger, jar);
 jar.closeEntry();
   }


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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] Removes the completely spurious generatedResource directory. (issue289801)

2010-03-29 Thread scottb

Reviewers: jat, bobv,

Description:
The generatedResource directory was an artifact of earlier times.  We
were literally writing generated resources out to temporary files, just
so we could immediately read them back in.  This should speed up
generators by avoiding most disk I/O.

Please review this at http://gwt-code-reviews.appspot.com/289801/show

Affected files:
  M  
dev/core/src/com/google/gwt/core/ext/linker/impl/StandardGeneratedResource.java

  M dev/core/src/com/google/gwt/dev/CompilePerms.java
  M dev/core/src/com/google/gwt/dev/Compiler.java
  M dev/core/src/com/google/gwt/dev/DevMode.java
  M dev/core/src/com/google/gwt/dev/DevModeBase.java
  M dev/core/src/com/google/gwt/dev/GWTCompiler.java
  M dev/core/src/com/google/gwt/dev/GWTShell.java
  M dev/core/src/com/google/gwt/dev/Precompile.java
  M dev/core/src/com/google/gwt/dev/javac/StandardGeneratorContext.java
  M dev/core/src/com/google/gwt/dev/shell/ShellModuleSpaceHost.java
  M dev/core/src/com/google/gwt/dev/util/Util.java
  M dev/core/test/com/google/gwt/dev/shell/StandardGeneratorContextTest.java


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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.


[gwt-contrib] Implements a reduced scope ValueStore. It's responsible for posting change events (issue290801)

2010-03-29 Thread rjrjr

Reviewers: amitmanjhi,

Description:
Implements a reduced scope ValueStore. It's responsible for posting
change events
to the event bus, and for collecting changes to domain objects. You can
tell
it's working because the editing feature of the Expense app now actually
refreshes its table.

Review by: amitman...@google.com

Please review this at http://gwt-code-reviews.appspot.com/290801/show

Affected files:
  M  
bikeshed/src/com/google/gwt/requestfactory/client/impl/AbstractListJsonRequestObject.java
  M  
bikeshed/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java

  D bikeshed/src/com/google/gwt/requestfactory/shared/EntityKey.java
  M bikeshed/src/com/google/gwt/requestfactory/shared/EntityListRequest.java
  M bikeshed/src/com/google/gwt/requestfactory/shared/Id.java
  M bikeshed/src/com/google/gwt/requestfactory/shared/RequestFactory.java
  M bikeshed/src/com/google/gwt/requestfactory/shared/Version.java
  M bikeshed/src/com/google/gwt/sample/expenses/client/DetailsRequester.java
  M bikeshed/src/com/google/gwt/sample/expenses/client/EmployeeList.java
  M  
bikeshed/src/com/google/gwt/sample/expenses/client/EntityListPresenter.java

  M bikeshed/src/com/google/gwt/sample/expenses/client/Expenses.java
  M bikeshed/src/com/google/gwt/sample/expenses/client/ExpensesScaffold.java
  M bikeshed/src/com/google/gwt/sample/expenses/client/Shell.java
  M bikeshed/src/com/google/gwt/sample/expenses/gen/EmployeeRequestImpl.java
  M  
bikeshed/src/com/google/gwt/sample/expenses/gen/ExpenseRequestFactoryImpl.java

  M bikeshed/src/com/google/gwt/sample/expenses/gen/ReportRequestImpl.java
  M  
bikeshed/src/com/google/gwt/sample/expenses/server/ExpensesDataServlet.java

  A bikeshed/src/com/google/gwt/sample/expenses/shared/EmployeeChanged.java
  M bikeshed/src/com/google/gwt/sample/expenses/shared/EmployeeKey.java
  M  
bikeshed/src/com/google/gwt/sample/expenses/shared/ExpenseRequestFactory.java
  M  
bikeshed/src/com/google/gwt/sample/expenses/shared/ExpensesEntityKey.java

  A bikeshed/src/com/google/gwt/sample/expenses/shared/ReportChanged.java
  M bikeshed/src/com/google/gwt/sample/expenses/shared/ReportKey.java
  A bikeshed/src/com/google/gwt/user/client/ui/HasValue.java
  D bikeshed/src/com/google/gwt/user/client/ui/HasValueList.java
  A bikeshed/src/com/google/gwt/user/client/ui/TakesValue.java
  A bikeshed/src/com/google/gwt/user/client/ui/TakesValueList.java
  A bikeshed/src/com/google/gwt/valuestore/client/RecordKey.java
  A bikeshed/src/com/google/gwt/valuestore/client/ValueStoreJsonImpl.java
  M bikeshed/src/com/google/gwt/valuestore/client/ValuesImpl.java
  M bikeshed/src/com/google/gwt/valuestore/shared/DeltaValueStore.java
  D bikeshed/src/com/google/gwt/valuestore/shared/Path.java
  A bikeshed/src/com/google/gwt/valuestore/shared/PrimitiveProperty.java
  M bikeshed/src/com/google/gwt/valuestore/shared/Property.java
  A bikeshed/src/com/google/gwt/valuestore/shared/RelationshipProperty.java
  M bikeshed/src/com/google/gwt/valuestore/shared/ValueRef.java
  M bikeshed/src/com/google/gwt/valuestore/shared/ValueStore.java
  M bikeshed/src/com/google/gwt/valuestore/shared/Values.java
  A bikeshed/src/com/google/gwt/valuestore/shared/ValuesChangedEvent.java
  A bikeshed/src/com/google/gwt/valuestore/shared/ValuesKey.java


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

To unsubscribe from this group, send email to 
google-web-toolkit-contributors+unsubscribegooglegroups.com or reply to this email with 
the words REMOVE ME as the subject.