Templating for deferred binding / code generation

2011-03-02 Thread Harald Pehl
In my current project I'm using deferred binding to generate code. The code 
generation is heavily based on writer.write(String), writer.indent() and 
writer.outdent(): 

writer.write("%s = new %s<%s>();", var1, collectionImplementation, paramType
);
writer.write("for (Element %s : %s) {", elementVariable, elementsVariable);
writer.indent();
writer.write("if (%s != null) {", valueVariable);
writer.indent();
writer.write("%s.add(%s);", valueVariable, valueVariable);
writer.outdent();
writer.write("}");
writer.outdent();
writer.write("}");

The whole process became very complex and error-prone. I'm thinking about to 
use velocity templates. Has anyone already used velocity templates for 
code generation? Is this a good idea? What do you think?

- Harald 

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



Re: User roles in GWT applications

2011-03-02 Thread csaffi
A possible solution could be to make an RPC call to the server during
onModuleLoad. This RPC call would generate the necessary Widgets and/
or place them on a panel and then return this panel to the client end.

What do you think about this?

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



Re: Editor with ListBox in UiBinder

2011-03-02 Thread George Moschovitis
Eh? can you elaborate on this?

thanks for the help!
-g.

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



Re: Example to test RequestFactory in JRE

2011-03-02 Thread Thomas Broyer
Here: 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/requestfactory/server/RequestFactoryJreTest.java

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



Re: Example to test RequestFactory in JRE

2011-03-02 Thread koma
Yes, but it's got more the unresolved dependies.
Why is this not in the GWT jars ?
Are the test classes omitted from the packaged jar ?

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



Accessing the new Google Recipe Database

2011-03-02 Thread Jambi
Hi there,

is it possible to query somehow the new Recipe Database that Google
offers? It would be cool if I could Access the Database so I could use
the recipes. Unfortunately, the service is not offered in Gemany, yet.
Is there an API? Any ideas?

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



Custom Components & Widget.getOffsetWidth

2011-03-02 Thread Jerome Thoma
Hi,
I am building a custom GWT 2.1 toolbar widget that allows the insertion of 
spacers. The width of these spacers is adjusted so that components are 
always distributed evenly across the width of the toolbar (e.g. button - 
spacer -button - spacer -button creates a toolbar with one button left-, 
center- and right-aligned).
The basic calculuation is:
size of toolbar = size of all components + size of spacers
In Safari this calculation does not work precisely, if I get the size of 
components using .getOffsetWidth(), the last component is always wrapped 
into the next line. I tested my calculations with the Safari Inspector and 
all values seem to be correct. So a parent div tag with a width of w cannot 
hold sub-tags whose widths add up to exactly w or even w-2. Any clue what 
this might be caused by?
Furthermore I am struggling with GWT "hooks". After adding all components to 
the toolbar I need to initially scale the spacers. For this I need the 
values of getOffsetWidth() to be correct. I tried performing this 
calculation in onAttach and onLoad, but the width of the parent component 
(FlowPanel) is not yet set. Is there another method that is called the 
initialization of a component after the component has been inserted into the 
DOM?

Thanks for your help
Jerome

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



Re: Editor for Primitive Types

2011-03-02 Thread Thomas Broyer
See 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5864&q=editor%20primitive
Workaround at: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=5544

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



Re: How to implement custom "find" methods in GWT+roo scaffolding app

2011-03-02 Thread Zed
As far as I see no one is going to answer me.
I found https://jira.springsource.org/browse/ROO-1595 and if I got
them right there is NO custom finder methods available at this time
(it's still openned).
Without them I can't use generated Request object and possibly all
over stuff.
If you don't want to explain just say am I right or not. If I can't
use custom finder methods I just leave roo and do everything by hands.

On 1 мар, 12:50, Zed  wrote:
> At the moment I moved forward. In ROO-931 its says us "At the moment
> the gwt setup command generates request objects for all finder
> methods" (from 
> herehttps://jira.springsource.org/browse/ROO-931?page=com.atlassian.jira).
> I added 'finder' using Roo shell command: finder add
> findEmployeesByDepartmentEquals
> After that Roo generated me an Aspect:
>
> privileged aspect Employee_Roo_Finder {
>
>     public static Query
> Employee.findEmployeesByDepartmentEquals(String department) {
>         if (department == null || department.length() == 0) throw new
> IllegalArgumentException("The department argument is required");
>         EntityManager em = Employee.entityManager();
>         Query q = em.createQuery("SELECT Employee FROM Employee AS
> employee WHERE employee.department = :department");
>         q.setParameter("department", department);
>         return q;
>     }
>
> and added anotation to Employee.java:  @RooEntity(finders =
> {"findEmployeesByDepartmentEquals"})
> but no request objects generated. My EmployeeRequest.java (generated
> and maintained by Roo) looks as follows (I can't see finder methods
> there):
>
> @RooGwtMirroredFrom("org.springsource.roo.extrackgae.server.domain.Employee ")
> @ServiceName("org.springsource.roo.extrackgae.server.domain.Employee")
> public interface EmployeeRequest extends RequestContext {
>
>     abstract Request countEmployees();
>
>     abstract
> Request st.EmployeeProxy>>
> findAllEmployees();
>
>     abstract
> Request st.EmployeeProxy>>
> findEmployeeEntries(int firstResult, int maxResults);
>
>     abstract
> Request
> findEmployee(Long id);
>
>     abstract
> InstanceRequest oyeeProxy,
> java.lang.Void> remove();
>
>     abstract
> InstanceRequest oyeeProxy,
> java.lang.Void> persist();
>
> }
>
> Tell me please where I'm wrong? How to make finder methods works?
>
> On 25 фев, 17:00, Zed  wrote:
>
>
>
>
>
>
>
> >     Hellow everyone, I started to deal with GWT+roo scaffolding ap and
> > found the idea very cool. Thank you guys!
> > But I found it hard for me to understanf how to implement custom
> > "find" methods like for example -  findAllEmployeesByName.
> > I looked all the documentations and it's written there that I can add
> > this method to Entity object itself like this:
>
> >  @RooJavaBean
> >  @RooToString
> >  @RooEntity
> > public class Employee {
>
> > .
>
> >     @NotNull
> >     private String displayName;
>
> >     @SuppressWarnings("unchecked")
> >     public static List findAllEmployeesByName(String name){
> >         return entityManager().createQuery("select ... from Employee
> > o").getResultList();
> >     }}
>
> > I added it but nothing happend. No code generation started.
> > I see all finder methods are in Aspects which are generated by Roo
> > itself and I can't put my code there.
> > Can you guys give me some hint please.
>
> > With respect
> > Andrew Efremov

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



Re: User roles in GWT applications

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

HTH,
Lukasz

On 1 Mrz., 18:47, csaffi  wrote:
> Hi everybody,
> I'm wondering if you could suggest me any way to implement "user
> roles" in GWT applications. I would like to implement a GWT
> application where users log in and are assigned "roles". Based on
> their role, they would be able to see and use different application
> areas.
>
> Thank you very much in advance for your help!

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



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

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

Cheers,
Lukasz

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

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



Re: View-Presenter Interaction Patterns in Google Web Toolkit (GWT)

2011-03-02 Thread Pierre
Thanks for this great article.

> I would be interested to hear from creators/users of the MVP
> frameworks out there (gwt-mvp, gwt-platform, gwt-presenter, mvp4g,
> etc.) about which approach is used in each of the frameworks or if the
> frameworks are approach-agnostic.

Any approach can be used with mvp4g. Also the new ReverseView feature
coming with mvp4g-1.3.0 makes it really easy to implement the View
Delegate approach.

Concerning the activity / places approach, you can have the same
control on your navigation thanks to the navigation event feature
(also coming with mvp4g-1.3.0).

The main difference with the GWT MVP framework is that you will have
to write a lot less boilerplate code with Mvp4g but you will still
have a strongly typed solution.

Pierre

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



Re: GWT 2.2 Canvas support for IE6 (GWTCanvasImplIE6)

2011-03-02 Thread Philip Rogers
Because of the difficulty of supporting IE6 fully via VML (including
text, etc.) and still having reasonable performance, there aren't
plans to support it at this time.

The new Canvas implementation in GWT should have complete support
across FF3.5, Chrome, Safari, and IE9, but there isn't a fallback
provided for the older browsers.

On Mar 1, 10:31 pm, Craig Mitchell  wrote:
> Hi,
>
> Are there any plans for Canvas to support IE6?  It was supported via
> GWTCanvasImplIE6 in the gwt-incubator.jar which would implement the
> Canvas functionality via VML.
>
> Thanks.

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



Re: GWT 2.2 Canvas support for IE6 (GWTCanvasImplIE6)

2011-03-02 Thread Kurtt Lin
Even partially supporting is welcomed, and developers should have known
about its IE6's poor performance, thus avoid rendering lots elements.
Actually i want Canvas in IE 6/7/8 badly.
T T


On Wed, Mar 2, 2011 at 9:55 PM, Philip Rogers  wrote:

> Because of the difficulty of supporting IE6 fully via VML (including
> text, etc.) and still having reasonable performance, there aren't
> plans to support it at this time.
>
> The new Canvas implementation in GWT should have complete support
> across FF3.5, Chrome, Safari, and IE9, but there isn't a fallback
> provided for the older browsers.
>
> On Mar 1, 10:31 pm, Craig Mitchell  wrote:
> > Hi,
> >
> > Are there any plans for Canvas to support IE6?  It was supported via
> > GWTCanvasImplIE6 in the gwt-incubator.jar which would implement the
> > Canvas functionality via VML.
> >
> > Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Does GWT has any support for data binding?

2011-03-02 Thread Jeff Larsen
>From 2.1 on it has databinding added. Check out the editor framework. 

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

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



Re: Custom Components & Widget.getOffsetWidth

2011-03-02 Thread JN
There is only onLoad I think. getOffsetWidth can only give you the correct 
value if the element is already rendered by the browser, otherwise its zero. 
Its also zero if the element is attached to the DOM but display:none (or 
maybe display:hidden) is set on some parent element as the browser won't 
render it. Maybe a deferred command could help you (see 
Scheduler.get().schedule() )

But wouldn't it be easier to define three areas in you toolbar, one for each 
position: left, center, right and then put toolbar buttons in these areas? 
At least thats what I do. These areas can be positioned with css (the center 
area may be tricky but the left and right area are just divs with 
float:left, float:right).

In your custom toolbar composite you could add methods like

@UiChild
public void addLeft(Widget w) { //add w to left aligned area }

@UiChild
public void addRight(Widget w) { //add w to right aligned area }

With these methods you can use the toolbar in UiBinder like


  
 //your left aligned toolbar buttons
  
  
 //your right aligned toolbar buttons
  


That way you do not have to calculate anything and css will do the work for 
you.

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



GWT double click event on Shape type objects

2011-03-02 Thread Rujuta Deshpande
Hi,

I am creating an application with drag drop functionality, using the dnd
libraries. Now, i want to connect to objects that are double clicked on
consecutively using the connectors from connectors library. This is working
fine, but I have to add a double click event for each shape  of the shape
array that I have used. This shape array consists of the shapes of images
that were dragged and dropped .

I want to use a generic method, that listens to a double click event being
fired on any shape object from array list of shapes( that I plan to use) ,
so that I can automatically retrieve the index of the shape which was double
clicked and send this to the connection method.  Can you please suggest an
efficient way to this this, I am relatively new to GWT and even Java .

Thanks,
RD

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



Styeling a ListBox

2011-03-02 Thread K
Hi,

I wish to change the way ListBox looks using CSS

- Change the border color - Tried using the usual border-color:red.
Worked on Firefox. No effect on IE Still the standard blue color
- Change the Color of the arop down arrow. No idea how to go about
doing it.

regards
K

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



Re: How to simplify your GwtEvent classes and have fun doing it!

2011-03-02 Thread Brian Bonner
Stephen,

This is *awesome*.   I recently picked GWT back up...but I couldn't *stand* 
digging these glorified ditches called Events (and all their gorp) and 
Handlers.

I've just started playing with it and look forward to working with @GwtEvent 
and @GwtDispatch.

Thanks!

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



Reproduce Firefox ListBox behaviour in IE

2011-03-02 Thread gigi81
I've a problem with Internet Explorer and ListBox. In my code I have
fixed the width of ListBox. In Firefox if an option is longer than the
list box, you can see all the content when you click on the ListBox -
in IE instead it's truncated.

How I can have the same effect of Firefox into IE?

Thanks for your help

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



Re: .nocache.js not found

2011-03-02 Thread Bin Wu
>
> does
>  src="HelloGwt/HelloGwt.nocache.js">
> help ?


You probably also need







to get it work, otherwise it will be the full path(full package name) for
the javascript.

On 2 March 2011 10:07, FrugoFrog  wrote:

> > [WARN] 404 - GET /.nocache.js (127.0.0.1)
>
> does
>  src="HelloGwt/HelloGwt.nocache.js">
> help ?
>
>
> 2011/2/27 Celinio :
> > Hi,
> > I am new to GWT 2.2
> >
> > I am using Helios with the GWT plugin.
> > I created a simple Hello World example.
> >
> > The content of the module file HelloGwt.gwt.xml is :
> >
> > 
> >  2.2.0//EN"
> > "
> http://google-web-toolkit.googlecode.com/svn/tags/2.2.0/distro-source/core/src/gwt-module.dtd
> ">
> > 
> > 
> > 
> > 
> > 
> >
> > The content of the HelloGwt (EntryPoint) class is :
> >
> > package oge.gwt.chap24.hello.client;
> >
> > import com.google.gwt.core.client.EntryPoint;
> > import com.google.gwt.user.client.ui.Label;
> > import com.google.gwt.user.client.ui.RootPanel;
> >
> > public class HelloGwt implements EntryPoint {
> >
> > @Override
> > public void onModuleLoad() {
> > // TODO Auto-generated method stub
> > RootPanel.get().add(new Label("cool"));
> >
> > }
> >
> > }
> >
> > And finally Hello.html :
> >
> > 
> > 
> >   
> > 
> > Hello33
> >  > src=".nocache.js">
> >   
> >
> >   
> >  > style="position:absolute;width:0;height:0;border:0">
> >
> >   
> > 
> >
> > The problem is that nothing shows up in the browser. It is supposed to
> > display "cool". It displays the title though : "Hello33".
> >
> > I get this message in the Eclipse console :
> > [WARN] 404 - GET /.nocache.js (127.0.0.1) 1397 bytes
> >Request headers
> >   Host: 127.0.0.1:
> >   User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; fr;
> rv:1.9.2.13)
> > Gecko/20101203 Firefox/3.6.13
> >   Accept: */*
> >   Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
> >   Accept-Encoding: gzip,deflate
> >   Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> >   Keep-Alive: 115
> >   Connection: keep-alive
> >   Referer:
> http://127.0.0.1:/Hello.html?gwt.codesvr=127.0.0.1:9997
> >   Cache-Control: max-age=0
> >Response headers
> >   Content-Type: text/html; charset=iso-8859-1
> >   Content-Length: 1397
> >
> > Any idea ? It's like it cannot find that .nocache.js file.
> > Thanks for helping.
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/google-web-toolkit?hl=en.
> >
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Regards,

Bin Wu | *BluePoint *| 03 9296 5100 | 0423 710 288 |
*www.bluepoint.net.au*

BluePoint has Gone *Google*!

*Each day, thousands of companies are going Google by switching to Google
Apps – a web-based suite of messaging and collaboration applications. It's
all hosted by Google, and designed with security and reliability in mind,
saving your company the frustrations and hassles of managing traditional IT
solutions yourself.** Call BluePoint for more information or view the cloud
calculator  to calculate your potential business
savings.*

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



Hosting web application on production server.

2011-03-02 Thread dg
I will develop a web application using GWT, MySQL and Apache Tomcat
server. Once I develop my application, I have to show it to my client
in a production environment

I am not very clear on this part. I understand that I am using Apache
Tomcat as an application server. on my own machine. Can I show it on
Windows running IIS?. Do I have to install Apache Tomcat there also?
Can someone please explain?



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



Using HashMap with ValueProxy

2011-03-02 Thread shelbot
Hello,

I have a ValueProxy interface with methods which return HashMap. For
ex:
HashMap getSomething();

When I try to compile this I get the following error:
 [ERROR] Invalid Request parameterization java.util.Map

Can you please explain me how to use Maps with ValueProxy.

Thanks!

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



Editor for Primitive Types

2011-03-02 Thread -sowdri-
Dear All,

I've an Editor to display an Entity, which has got an 'int' value. I'm using 
NumberLabel for the field. 

But I'm getting the following error, which is of course understandable. 

>> [ERROR] [icc] - Found unexpected type int while evauating path "age" 
using getter expression ""

Kindly help me on the correct usage for binding primitive types in Editor 
framework.

Thanks in advance!

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



Editor framework and Command pattern

2011-03-02 Thread Tobias
Hello,

I'd like to port an older GWT application to GWT 2.2 and make use of the 
Editor framework and the Requestfactory to reduce some code. The current 
application uses the command pattern to provide an undo/redo functionality. 
For databinding, each model class has extensive listener interfaces 
(onTitleChanged(), onDescriptionChanged(), etc) and widgets are updated by 
using these listeners. Accordingly, each possible change through a widget is 
reflected in a separate command class. Because all of this is handwritten 
code, it amounts to quite a lot of clutter.

I can rather easily replace the underlying data model with EntityProxies to 
simplify server communication. But can I use the Editor framework, or parts 
of it, to implement a command pattern? Possibly be providing my own kind of 
EditorDriver?

The driver would need to be able to register changes in the child 
editors/widgets instantly (onBlur, etc), create a command and put it on the 
stack. Also the driver needs to register "outside" changes (like the undo 
button) to the entity and update the the child editors accordingly. Is this 
possible? I realize that I need to write a couple of deferred binding 
generators, but does it make sense to (partly) use the Editor infrastructure 
for this, or is it just not at all designed for that?

Regards,
Tobias

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



[WARN] Could not instantiate listener

2011-03-02 Thread murray
I recently updated my app to use GWT 2.2 and AppEngine 1.42
GIN 1.5 and GUICE 2.0.

Prior to this I was using  2.1.1 and Gin 1.0 and Guice 2.0 with no
issues.

After the update the following error appears...

[WARN] Could not instantiate listener

and I cannot figure out what is wrong.
 I have another app saved  form back in 12/10 that uses
the same infrastructure and format (except 2.1 and gn 2.0)
When I fired it up I set it to use GWT 2.2 and AppEndine 1.42
Gin 1.5 an guice 2.0. and It works ...

Believe me! nothing is different between the two app from the
point of view of code.

Here is thstack trace

Logging to JettyLogger(null) via
com.google.apphosting.utils.jetty.JettyLogger
Successfully processed C:\development\nubeworkspace12272010_good\n5\war
\WEB-INF/appengine-web.xml
Successfully processed C:\development\nubeworkspace12272010_good\n5\war
\WEB-INF/web.xml
[WARN] Could not instantiate listener
com.diddy.n5.server.MYGuiceContextListener
java.lang.ClassNotFoundException:
com.diddy.n5.server.MYGuiceContextListener
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:
176)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.mortbay.jetty.handler.ContextHandler.loadClass(ContextHandler.java:
1101)
at
org.mortbay.jetty.webapp.WebXmlConfiguration.initListener(WebXmlConfiguration.java:
630)
at
org.mortbay.jetty.webapp.WebXmlConfiguration.initWebXmlElement(WebXmlConfiguration.java:
368)
at
org.mortbay.jetty.webapp.WebXmlConfiguration.initialize(WebXmlConfiguration.java:
289)
at
org.mortbay.jetty.webapp.WebXmlConfiguration.configure(WebXmlConfiguration.java:
222)
at
org.mortbay.jetty.webapp.WebXmlConfiguration.configureWebApp(WebXmlConfiguration.java:
180)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1247)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
467)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at
com.google.appengine.tools.development.JettyContainerService.startContainer(JettyContainerService.java:
186)
at
com.google.appengine.tools.development.AbstractContainerService.startup(AbstractContainerService.java:
149)
at
com.google.appengine.tools.development.DevAppServerImpl.start(DevAppServerImpl.java:
219)
at
com.google.appengine.tools.development.gwt.AppEngineLauncher.start(AppEngineLauncher.java:
119)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
The server is running at http://localhost:/


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



Re: User roles in GWT applications

2011-03-02 Thread Ben Imp
This is basically what I have implemented in my system as well.  Our
user roles are in the DB and I keep a copy on the client so all of the
presenters can inspect it to see what the user can do.

I should mention that double-checking the permissions on the server
side for all requests is a very good idea.  A clients words are not to
be trusted.

-Ben

On Mar 2, 7:31 am, Lukasz  wrote:
> I'm doing it by providing a self-implemented UserManager object on the
> client. It contains the currently signed in user and provides methods
> for access or role checks e.g. canEditUser(). This UserManager object
> is an singleton injected via gin into all relevant presenters (as you
> see I'm also using the MVP pattern in my app). When the presenter is
> rendering the view, it can check which functionality should be enabled
> or disabled.
>
> HTH,
> Lukasz
>
> On 1 Mrz., 18:47, csaffi  wrote:
>
> > Hi everybody,
> > I'm wondering if you could suggest me any way to implement "user
> > roles" in GWT applications. I would like to implement a GWT
> > application where users log in and are assigned "roles". Based on
> > their role, they would be able to see and use different application
> > areas.
>
> > Thank you very much in advance for your help!

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



Re: Custom Components & Widget.getOffsetWidth

2011-03-02 Thread Jerome Thoma
Cheers, the solution you propose is definitely better and I first 
implemented it as well. In fact a toolbar with a right and left area was 
what I was initially aiming for... without much success. The little detail 
that has escaped my attention (or is not documented?) is that you can 
integrate a component with multiple child tags into UiBinder using the add* 
syntax. I remember reading that you can only use the methods related to 
HasWidgets in your own widgets? Without it you have to add all buttons by 
hand, which eliminates using @UiHandler annotations as well, hence my 
decision to build a toolbar with only one area and auto-adjusting spacers.

Thanks for your help and your detailed answer, much appreciated!
Have a nice day
Jerome

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



Re: Celltable w/ selectionModel and ActionCells

2011-03-02 Thread John LaBanca
r9788 adds a new BlacklistEventTranslator and WhitelistEventTranslator for
use in DefaultSelectionEventManager.  Using these, you can disable/enable
selection for specific columns.
http://code.google.com/p/google-web-toolkit/source/detail?r=9788

DefaultSelectionEventManager manager =
DefaultSelectionEventManager.createBlacklistManager(0,
3); // Ignore clicks on columns 0 and 3
SelectionModel model = new SingleSelectionModel();
cellTable.setSelectionModel(model, manager);

Hope this helps with this issue.  You can wait for GWT 2.3, or just copy the
BlacklistEventTranslator code into your app and call
DefaultSelectionEventManager.createCustomManager(myBlacklistEventTranslator).

Thanks,
John LaBanca
jlaba...@google.com


On Tue, Feb 22, 2011 at 12:09 PM, John LaBanca  wrote:

> You can try overriding ActionCell#handlesSelection() to return true to
> disable the default selection.  We might need to do so for all interactive
> cells and change the JavaDoc of Cell#handlesSelection() to clarify that it
> can be used to simply disable default selection.  But in general, this is
> what handlesSelection() was designed to do.
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
>
> On Tue, Feb 22, 2011 at 8:44 AM, Thomas Visser wrote:
>
>> ActionCell already returns false for handlesSelection(). If a cell
>> declares to handle the selection, the default way of (de)selecting, by
>> clicking in the row, does not work anymore. Then it is the value-
>> updater's task to do so. I recently wrote something about it in a blog
>> post. See for more information:
>> http://thoughtsofthree.com/2011/02/creating-a-gwt-radiobuttoncell/
>> (paragraph "Depending on and handling the selection")
>>
>> On Feb 22, 5:30 am, Patrick Tucker  wrote:
>> > I haven't played with this a whole bunch but have you looked at
>> > handlesSelection?  I was under the impression that by setting this to
>> > false you indicate that a particular cell type  is not allowed to
>> > determine selection state?
>> >
>> > Like if you have a checkboxcell it can be the only cell that
>> > determines whether or not the row is selected.
>> >
>> > On Feb 11, 2:09 pm, "Henry H."  wrote:
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > > yeah, i had the feeling i have to ditch the selectionModel.
>> > > thanks for your help...
>> >
>> > > On Feb 11, 6:28 am, Thomas Visser  wrote:
>> >
>> > > > This is not possible. In your case, the click event is always also
>> > > > given to the SelectionModel.
>> >
>> > > > See line 971 in CellTable (http://www.google.com/codesearch/p?
>> > > > hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/
>> > > > CellTable.java&q=CellTable%20package:http://google-web-toolkit
>> > > > %5C.googlecode%5C.com&sa=N&cd=1&ct=rc):
>> >
>> > > > if (selectionModel != null && "click".equals(eventType) && !
>> > > > handlesSelection) {
>> > > > selectionModel.setSelected(value, true);
>> >
>> > > > }
>> >
>> > > > As you can see, if you could make the handlesSelection boolean true,
>> > > > the selectionModel will not be updated. This boolean is true if one
>> > > > (or more) cell(s) declare(s) to handle the selection. ActionCell
>> does
>> > > > not do that. What you can do is create your own cell, make it handle
>> > > > the selection, and use it for all the columns that you want to be
>> > > > clickable.
>> >
>> > > > On Feb 11, 1:42 am, "Henry H."  wrote:
>> >
>> > > > > hi,
>> > > > > i have a celltable with a selectionModel but also a column of
>> > > > > actioncells.
>> > > > > the selectionModel and actioncells both handle click events, but
>> when
>> > > > > i click the action cell, it also triggers the selectionmodel click
>> > > > > handler.
>> > > > > is it possible to prevent this? Or do i have to nix the
>> selectionModel
>> > > > > and go with clickable cells on the row?
>> >
>> > > > > thanks.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Styeling a ListBox

2011-03-02 Thread Ben Imp
You can probably simulate a red border by surrounding the list box
with a div, which you could add a border color to.  IE should actually
listen to that one.  I don't think you can style the drop down arrow
at all.  From my understanding, form elements are kind of limited in
how you can alter their appearance.

-Ben

On Mar 2, 9:27 am, K  wrote:
> Hi,
>
> I wish to change the way ListBox looks using CSS
>
> - Change the border color - Tried using the usual border-color:red.
> Worked on Firefox. No effect on IE Still the standard blue color
> - Change the Color of the arop down arrow. No idea how to go about
> doing it.
>
> regards
> K

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



Re: Hosting web application on production server.

2011-03-02 Thread Ben Imp
I'm pretty sure IIS can't handle Java servlets, at least not out of
the box (someone please correct me if I am mistaken).  I'd want to be
testing on the same application server as I was deploying on anyway.

-Ben

On Mar 1, 11:07 pm, dg  wrote:
> I will develop a web application using GWT, MySQL and Apache Tomcat
> server. Once I develop my application, I have to show it to my client
> in a production environment
>
> I am not very clear on this part. I understand that I am using Apache
> Tomcat as an application server. on my own machine. Can I show it on
> Windows running IIS?. Do I have to install Apache Tomcat there also?
> Can someone please explain?

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



Re: Hosting web application on production server.

2011-03-02 Thread David Chandler
Hi dg,

Are you using GWT-RPC, RequestFactory, or other code from gwt-servlet? If
not, the GWT app is just HTML+JS+CSS+images that you can deploy to any Web
server.

/dmc

On Wed, Mar 2, 2011 at 11:45 AM, Ben Imp  wrote:

> I'm pretty sure IIS can't handle Java servlets, at least not out of
> the box (someone please correct me if I am mistaken).  I'd want to be
> testing on the same application server as I was deploying on anyway.
>
> -Ben
>
> On Mar 1, 11:07 pm, dg  wrote:
> > I will develop a web application using GWT, MySQL and Apache Tomcat
> > server. Once I develop my application, I have to show it to my client
> > in a production environment
> >
> > I am not very clear on this part. I understand that I am using Apache
> > Tomcat as an application server. on my own machine. Can I show it on
> > Windows running IIS?. Do I have to install Apache Tomcat there also?
> > Can someone please explain?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Re: User roles in GWT applications

2011-03-02 Thread zixzigma
could you please explain, why the check on client-side is necessary, if the 
server does the check ?

and on the client-side, do you mean having a UserRoles object, which 
contains user's permission ?

Thank You

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



Re: Using HashMap with ValueProxy

2011-03-02 Thread zixzigma
I believe Map is not supported, only Set and List.

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



Re: User roles in GWT applications

2011-03-02 Thread zixzigma
if using GWT Activities, do you think it is better to perform the check in 
Activities themselves or in ActivityMappers (or ActivityFactories) ?

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



Re: View-Presenter Interaction Patterns in Google Web Toolkit (GWT)

2011-03-02 Thread Brian Reilly
> Hi,
> so is this the correct approach for it http://tinypic.com/r/236vq0/7 ?
>
> When the Activity is created it gets the instance of the view and
> creates a new presenter. It binds these two together. When the
> activity is stopped (by place change) the presenter has to be set to
> null.

That seems about right to me. Both activities and presenters are
considered lightweight objects and are therefore disposable. In fact,
for your highest level widgets, a single class may fill the roles of
both activity and presenter.

-Brian

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



Re: View-Presenter Interaction Patterns in Google Web Toolkit (GWT)

2011-03-02 Thread Kayode Odeyemi
Gal, guit seems to be heavily dependent on uibinder. Can you help with
a full online/offline reference of uibinder?

Regards

On 3/2/11, Brian Reilly  wrote:
>> Hi,
>> so is this the correct approach for it http://tinypic.com/r/236vq0/7 ?
>>
>> When the Activity is created it gets the instance of the view and
>> creates a new presenter. It binds these two together. When the
>> activity is stopped (by place change) the presenter has to be set to
>> null.
>
> That seems about right to me. Both activities and presenters are
> considered lightweight objects and are therefore disposable. In fact,
> for your highest level widgets, a single class may fill the roles of
> both activity and presenter.
>
> -Brian
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com 
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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



Re: Using HashMap with ValueProxy

2011-03-02 Thread shelbot
Thanks for the reply. Is maps not supported in RequestFactory or whole
GWT? Because I believe I saw maps in the white list.
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html#Package_java_util

On Mar 2, 9:12 am, zixzigma  wrote:
> I believe Map is not supported, only Set and List.

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



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

2011-03-02 Thread Rob Tanner
While that sounds good in theory, in practice it makes for a messy
screen.  When error is detected I open a DialogueBox() centered on the
window and depending where on the windows the ListBox() is, it expands
right on top the DialogueBox().  While that is technically just an
annoyance, it still generates phone calls and/or email to the help
desk.

However, I found an acceptable workaround (and it might, in fact, be
the preferred option).  I'm using a change handler and do the
validation of other entries at that point. Since the ListBox() is no
longer expanded, there is no messy stuff on the window.

Thanks,
Rob


On Mar 2, 5:40 am, Lukasz  wrote:
> If I understood correctly, you would like to validate other entries
> before the selection in the list... In this situation, I don't think
> it is necessary to extend the ListBox() functionality - you could just
> add a FocusHandler to the list and check the validations status there.
>
> Cheers,
> Lukasz
>
> On 1 Mrz., 23:17, Rob Tanner  wrote:
>
> > I have a ListBox() with 9 items that opens to display the items for
> > selecting when you click on it.  There are, however, a number of other
> > fields in the form that I want to validate before you can make a
> > selection.  What I would like to be able to do is delay the box's
> > opening until I validate the other items so that I can generate errors
> > and get the invalid entries corrected.  Is that ever possible to do at
> > least across the major browsers.
>
> > I am using GWT 2.1.
>
> > Thanks,
>
> > Rob Tanner
> > Linfield College
>
>

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



I have a problem with GWT 2.1 development mode

2011-03-02 Thread Rob Tanner
Hi,

I've lost some functionality that I depend on when I upgraded from 1.7
to 2.1.  Basically, I do my development work on a Mac and in
development mode, I can view the work in process on both Safari and
Firefox.  Using VMware, I'm also running Windows 7 on the same
physical box.  Often times, what looks gorgeous in Safari and Firefox
is atrocious on IE (what do you expect, it's IE).  When I was using
GWT 1.7, I could cut and paste the URL into IE on the virtual, and
view the app there as well.  Now, it seems, I'm unable to do that.
After I correct the URL to include the actual name of the host machine
rather than the 127.0.0.1 in the original URL, both IE and Firefox, on
the Windows side, report that they are unable to connect.  I also have
a Tomcat server that I use in servlet development, and browsers on the
Windows side can connect to that just fine so I don't believe that
this is a VMware issue.

Thanks,

Rob Tanner
Linfield College

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



WindowBuilder encountered unexpected internal error. Please contact support

2011-03-02 Thread cri
I've got a composite with a CellTable in it. When I try to bring up
the composite in GWT Designer, I get the exception referenced below. I
suspect the problem is due to the fact that my project uses the gwt
2.1 version of the sdk, while I'm using the latest version (2.2) of
the gwt eclipse plugin. If this is the cause of the problem, is there
a workaround that will allow me to continue using version 2.1 of the
SDK? According to my understanding of the GWT docs, you should be able
to use the latest version of the GWT Eclipse plugin, with older
versions of the SDK. Thanks


org.eclipse.wb.internal.core.utils.check.AssertionFailedException:
null argument: Can not find method setRowData(java.util.List) in class
com.google.gwt.user.cellview.client.CellTable
at org.eclipse.wb.internal.core.utils.check.Assert.fail(Assert.java:
224)
at
org.eclipse.wb.internal.core.utils.check.Assert.isNotNull(Assert.java:
173)
at
org.eclipse.wb.internal.core.utils.reflect.ReflectionUtils.invokeMethod(ReflectionUtils.java:
833)
at
com.google.gdt.eclipse.designer.model.widgets.cell.CellTableInfo.replaceCustomColumns(CellTableInfo.java:
146)
at
com.google.gdt.eclipse.designer.model.widgets.cell.CellTableInfo.refresh_afterCreate(CellTableInfo.java:
106)
at
org.eclipse.wb.core.model.ObjectInfo.refresh_afterCreate(ObjectInfo.java:
611)
at
org.eclipse.wb.core.model.JavaInfo.refresh_afterCreate(JavaInfo.java:
1214)

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



Re: View-Presenter Interaction Patterns in Google Web Toolkit (GWT)

2011-03-02 Thread Gal Dolber
The official UiBinder docs are valid for guit, the ui.xml part is 100% valid
but the java part of the docs is not, you can easily translate it.

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

*@UiField -> @ViewField*

The difference between this two is that a @UiField can be of any type (i.e
Button, Label) and a @ViewField can also be an interface (i.e HasText,
HasHtml), as I mention before you also get interface
emulation.
As you can only bind interface you also get to bind the same field twice:
{{{
@ViewField
HasText username;

@ViewField("username")
HasFocus usernameFocus;
}}}

*@UiHandler -> @ViewHandler*

Here the difference is that the way you declare the binding:
//UiHandler

@UiHandler("button")

  void handleClick(ClickEvent e) {

Window.alert("Hello, AJAX");

  }


// ViewHandler: two ways of doing it:

@ViewHandler
  void button$click() {
Window.alert("Hello, AJAX");

  }

@ViewHandler(event=ClickEvent.class, fields="button")
  void handleClick() {
Window.alert("Hello, AJAX");

  }


The other difference is the @ViewHandler supports a plugin system based on
annotations, guits plugins:

   - @StopPropagation : call event.stopPropagation();
   - @PreventDefault : call event.preventDefault();
   - @KeyCode : only valid for key events, filters the key code
   - @MouseButton : only valid for mouse events, filters the mouse button
   - @HasAttribute : filters that the element that cause the event have some
   dom attributes
   - @HasClass : filters that the element that cause the event have some
   classes
   - @RunAsync : run the method async
   - @UserAction : fire a user action event when the event happens

You can also write your own plugins.

Regards

On Wed, Mar 2, 2011 at 2:45 PM, Kayode Odeyemi  wrote:

> Gal, guit seems to be heavily dependent on uibinder. Can you help with
> a full online/offline reference of uibinder?
>
> Regards
>
> On 3/2/11, Brian Reilly  wrote:
> >> Hi,
> >> so is this the correct approach for it http://tinypic.com/r/236vq0/7 ?
> >>
> >> When the Activity is created it gets the instance of the view and
> >> creates a new presenter. It binds these two together. When the
> >> activity is stopped (by place change) the presenter has to be set to
> >> null.
> >
> > That seems about right to me. Both activities and presenters are
> > considered lightweight objects and are therefore disposable. In fact,
> > for your highest level widgets, a single class may fill the roles of
> > both activity and presenter.
> >
> > -Brian
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> > http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> >
>
>
> --
> Odeyemi 'Kayode O.
>
> B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
> Professional),
> Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer
>
> Website: http://sinati.com 
> Socialize with me: http://profile.to/charyorde,
> http://twitter.com/charyorde,
>
> http://www.google.com/profiles/dreyemi
> Skype:drecute
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

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



Re: Using HashMap with ValueProxy

2011-03-02 Thread Jeff Schwartz
Hash maps are supported. I use one for a local cache.

On Wed, Mar 2, 2011 at 12:56 PM, shelbot  wrote:

> Thanks for the reply. Is maps not supported in RequestFactory or whole
> GWT? Because I believe I saw maps in the white list.
>
> http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html#Package_java_util
>
> On Mar 2, 9:12 am, zixzigma  wrote:
> > I believe Map is not supported, only Set and List.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

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



Re: how to secure RequestFactory in GWT 2.2

2011-03-02 Thread Kathiravan Tamilvanan
I am also looking for some recommendation for this.

I have read this link 
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ and 
also wanted to implement the security with RequestFactory. But as the 
article suggests, the session id should be sent on the payload of the 
request instead of the cookie approach.

The following questions come to my mind

1. Do we need to send the session id on each method on the RequestContext? 
If so how do we validate this on the Server side?

2. Does servlet filter help in validating the session before every request? 
I am not really sure how to get the RequestContext session id parameter from 
the servlet filter . Is it even right thinking?






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



Firefox 4.0b12 and gwt 2.2.0

2011-03-02 Thread Harold Comere
Hi all,

I am under windows 7 64 bit, trying to launch any web app with GWT 2.2.0
under minefield ( firefox 4.0b12 ) and firefox crash with this exception :


The server is running at http://localhost:/
> Exception in thread "Code server for test from Mozilla/5.0 (Windows NT 6.1;
> WOW64; rv:2.0b12) Gecko/20100101 Firefox/4.0b12 on
> http://127.0.0.1:/Test.html?gwt.codesvr=127.0.0.1:9997 @
> f'2"c=:0e4L`%7m@"
> com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection
> lost
> at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:521)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.net.SocketException: Connection reset by peer: socket write
> error
> at java.net.SocketOutputStream.socketWrite0(Native Method)
> at java.net.SocketOutputStream.socketWrite(Unknown Source)
> at java.net.SocketOutputStream.write(Unknown Source)
> at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
> at java.io.BufferedOutputStream.flush(Unknown Source)
> at java.io.DataOutputStream.flush(Unknown Source)
> at
> com.google.gwt.dev.shell.BrowserChannel$ReturnMessage.send(BrowserChannel.java:1310)
> at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:518)
> ... 2 more
>
>
I reproduce it by simply create a new default web app then try to launch it
...
I have not this issue under linux ... any guess ?

Regards,
Harold

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



Re: how to secure RequestFactory in GWT 2.2

2011-03-02 Thread Jeff Schwartz
On Wed, Mar 2, 2011 at 1:48 PM, Kathiravan Tamilvanan wrote:

> I am also looking for some recommendation for this.
>
> I have read this link
> http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ 
> and
> also wanted to implement the security with RequestFactory. But as the
> article suggests, the session id should be sent on the payload of the
> request instead of the cookie approach.
>
> The following questions come to my mind
>
> 1. Do we need to send the session id on each method on the RequestContext?
> If so how do we validate this on the Server side?
>

IMO if a GET exposes sensitive data to the client then I would say it
should. Also, if a request is a POST then I would say it should. For
everything else it would depend on the nature of the application and the
data. For instance, does the application fall under the guidelines of an
industry's governance board like many financial applications and
specifically those related to banking and the credit card industries.

You can validate the session id by comparing it to the Session object's
session id as follows (show in the context of a RemoteServiceServlet):

HttpSession session = getThreadLocalRequest().getSession(true);
String sid = session.getId();
if (!clientSid.equals(sid)) {
throw new MyInvalidSessionException();
}

MyInvalidSessionException is a custom exception class derived from Throwable
and can be caught in the onFailure methods of each RPC call.

>
> 2. Does servlet filter help in validating the session before every request?
> I am not really sure how to get the RequestContext session id parameter from
> the servlet filter . Is it even right thinking?
>

Yes if you were to use the session id in the request header which isn't a
good idea and no if you are using RPC because the filter will be called
prior to the serialization of your payload forcing you to resort to bit
twiddling with the request headers to get at it.


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



-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

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



Re: User roles in GWT applications

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

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

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



Re: User roles in GWT applications

2011-03-02 Thread csaffi
On 2 Mar, 16:41, Ben Imp  wrote:
> This is basically what I have implemented in my system as well.  Our
> user roles are in the DB and I keep a copy on the client so all of the
> presenters can inspect it to see what the user can do.
>
> I should mention that double-checking the permissions on the server
> side for all requests is a very good idea.  A clients words are not to
> be trusted.
>
> -Ben

Thank you Ben.
How do you keep a copy of user roles on the client?

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



Re: Using HashMap with ValueProxy

2011-03-02 Thread koma
Not supported, my guess :

Requests can be parameterized with the following types:

   - Built-in value types: BigDecimal, BigInteger, Boolean, Byte, Enum, 
   Character, Date, Double, Float, Integer, Long, Short, String, Void
   - Custom value types: any subclass of ValueProxy
   - Entity types: any subclass of EntityProxy
   - Collections: List or Set, where T is one of the above value or 
   entity types

Note that primitive types are not supported. Instead, use the corresponding 
wrapper types. Instance methods that operate on an entity itself, like 
persist() and remove(), return objects of type InstanceRequest rather than 
Request. This is explained further in the next section.


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

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



Re: Using HashMap with ValueProxy

2011-03-02 Thread Jeff Schwartz
sorry for posting this. i didn't have the original question - just the one
below. never mind lol

On Wed, Mar 2, 2011 at 1:44 PM, Jeff Schwartz wrote:

> Hash maps are supported. I use one for a local cache.
>
>
> On Wed, Mar 2, 2011 at 12:56 PM, shelbot wrote:
>
>> Thanks for the reply. Is maps not supported in RequestFactory or whole
>> GWT? Because I believe I saw maps in the white list.
>>
>> http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html#Package_java_util
>>
>> On Mar 2, 9:12 am, zixzigma  wrote:
>> > I believe Map is not supported, only Set and List.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>
>
> --
> *Jeff Schwartz*
> http://jefftschwartz.appspot.com/
> http://www.linkedin.com/in/jefftschwartz
> follow me on twitter: @jefftschwartz
>
>


-- 
*Jeff Schwartz*
http://jefftschwartz.appspot.com/
http://www.linkedin.com/in/jefftschwartz
follow me on twitter: @jefftschwartz

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



encodedRequest cannot be empty

2011-03-02 Thread tjmcc18
I just updated my app from 2.0.4 to 2.1.1.  Now I am intermittently
seeing the following error:

Exception while dispatching incoming RPC call
java.lang.IllegalArgumentException: encodedRequest cannot be empty
at com.google.gwt.user.server.rpc.RPC.decodedRequest(RPC.java:228)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
205)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
243)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)

The error seems to come and go.  Never saw it until I upgraded.  Has
anyone seen this before?  Any ideas how to fix it?

-TJ

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



Re: how to secure RequestFactory in GWT 2.2

2011-03-02 Thread Kathiravan Tamilvanan
Jeff,
 Do you have any idea how to do session validation with RequestFactory 
approach.

 I am using RequestFactory with a  ServiceLocator to locate my spring 
service layer. I would like to validate the session, when a request is made 
through the RequestFactory, before invoking the Spring service layer. Do you 
have any recommendation on this?

Thanks,
Kathir

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



Re: Setting first column width CSS in CellBrowser via DOM API

2011-03-02 Thread Joe Schmoe
Can you please show a few lines of code how to access the
SplitLayoutPanel from within a subclass of CellBrowser. I can't get it
to work.

Thanks



On Feb 3, 7:55 pm, John LaBanca  wrote:
> We haven't had a change to fix this yet.  CellBrowser uses a
> SplitLayoutPanel that has a fairly complicated structure, so DOM
> manipulation isn't likely to work.
>
> As a workaround, you can get access to the SplitLayoutPanel in CellBrowser
> and set the widget width directly.  Subclass CellBrowser and override
> getWidget() to return a SplitLayoutPanel, then do the following:
>
> SplitLayoutPanel splitPanel = cellBrowser.getWidget();
> splitPanel.setWidgetSize(splitPanel.getWidget(0), 400.0);
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
>
> On Wed, Feb 2, 2011 at 9:38 PM, sevendays  wrote:
> > I raised query around a month ago about setting the width of the first
> > column in a CellBrowser in GWT. There is a bug that stops this from
> > occurring - it always displays with a default width of 200px because this is
> > the generated HTML for the wrapper divs:
>
> > 
> > 
>
> > My original post is here:
> >https://groups.google.com/d/msg/google-web-toolkit/Zmz_1XDq4dI/R2LxcP...
>
> > So as a work around I am trying to set the width style dynamically through
> > the GWT DOM API. Here is some sample code showing my approach:
>
> > Button test = new Button("Test");
> > test.addClickHandler(new ClickHandler() {
> > @Override
> > public void onClick(ClickEvent event) {
> > Element browserElement = browser.getElement();
> >  NodeList browserChildNodes = browserElement.getChildNodes();
>
> > for (int i=0; i >  Node n = browserChildNodes.getItem(i);
> > int divCount = 0;
> > if (n.getNodeType() == Node.ELEMENT_NODE) {
> >  Element e = Element.as(n);
> > if (e.getTagName().equalsIgnoreCase("DIV")) {
> > System.out.println("Before mod: " + e.getAttribute("style"));
> >  if (divCount == 2) {
> > Style s = e.getStyle();
> > e.setId("col1");
> >  s.setWidth(400.00, Unit.PX);
> > e.setAttribute("style", "position: absolute; overflow: hidden; left: 0px;
> > top: 0px; bottom: 0px; width: 400px;");
> >  } else if (divCount == 3) {
> > e.setId("col1Dragger");
> > e.setAttribute("style", "position: absolute; overflow: hidden; left: 400px;
> > top: 0px; bottom: 0px; width: 8px;");
> >  }
> >  System.out.println("After mod: " + e.getAttribute("style"));
> >  divCount++;
> > }
> > }
> > }
> >  }
> > });
>
> > However, when 'button Test is clicked, it makes no difference to the style
> > attribute. The 'after mod' println shows the same results as 'before mod'.
> > Checking the HTML, also shows no change.'  I have also tried the above code
> > in the initialization code for the CellBrowser; nothing changes in the
> > rendered HTML.
>
> > I am sure I am looking at the right divs, as a println of the style
> > attibute matches perfectly.
>
> > setId(), also has no effect.
>
> > I have also tried e.getStyle().setProperty("width", Unit.PX), and this had
> > no effect.
>
> > Why is the DOM manipulation having no effect?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Ganymede Eclipse Older GWT Plugin link needed

2011-03-02 Thread Shameem
Hi All,
I am facing the same issues with Eclips 3.4 (Part of RAD7.5). Did any
one found the old Ganymede Plugin URL?
Can someone please help.
Thanks
Shameem

On Mar 1, 2:13 am, vinayak kulkarni  wrote:
> Hi,
> I also get the same error while installing the GWTpluginto eclipse
> 3.4.2.
> May i know as to why this error occurs?
>
> On Feb 22, 7:12 am, Mulder  wrote:
>
>
>
> > I get the following error-
>
> > Cannot complete the request.  See the details.
>
> > Unsatisfied dependency:
> > [com.google.gdt.eclipse.suite.e34.feature.feature.group 2.2.0.v201102111801]
> > requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.wb.core.xml.feature.feature.group/0.9­­.0
>
> > Unsatisfied dependency:
> > [com.google.gwt.eclipse.sdkbundle.e34.feature.2.2.0.feature.group
> > 2.2.0.v201102111801] requiredCapability:
> > org.eclipse.equinox.p2.iu/com.google.gdt.eclipse.suite.e34.feature.feature.­­group/2.2.0
>
> > Unsatisfied dependency:
> > [com.google.appengine.eclipse.sdkbundle.e34.feature.1.4.2.feature.group
> > 1.4.2.v201102111801] requiredCapability:
> > org.eclipse.equinox.p2.iu/com.google.gdt.eclipse.suite.e34.feature.feature.­­group/2.2.0
>
> > Unsatisfied dependency:
> > [com.google.gdt.eclipse.suite.e34.feature.feature.group 2.2.0.v201102111801]
> > requiredCapability:
> > org.eclipse.equinox.p2.iu/org.eclipse.wb.core.xml.feature.feature.group/0.9­­.0
>
> > I need the GWT older versions download link.- Hide quoted text -
>
> - Show quoted text -

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



Re: Setting first column width CSS in CellBrowser via DOM API

2011-03-02 Thread Joe Schmoe
Can you please show code how to do this?
Don't see how I can get access to the SplitLayoutPanel.

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



GWT Eclipse 3.4 Plugin version 1.4.0.v201010280047

2011-03-02 Thread Shameem
Hi,
I am using IBM RAD7.5 (Based on Eclipse 3.4) and can not install
latest GWT Eclipse 3.4  Plugin. I get the following error below.
One of my coworker install older version successfully couple of months
back, his version is as follow, GWT Eclipse 3.4 Plugin version
1.4.0.v201010280047
Can someone plese point me out where I can download or find "GWT
Eclipse 3.4 Plugin version 1.4.0.v201010280047"
or look into the error message below and help me to resolve this.

Thanks for your help.

Cannot complete the request.  See the details.
Unsatisfied dependency:
[com.google.gdt.eclipse.suite.e34.feature.feature.group
2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/
org.eclipse.mylyn.commons.ui/0.0.0
Unsatisfied dependency:
[com.google.gdt.eclipse.suite.e34.feature.feature.group
2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/
org.eclipse.mylyn.commons.ui/0.0.0
Unsatisfied dependency:
[com.google.gdt.eclipse.suite.e34.feature.feature.group
2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/
org.eclipse.wb.core.xml.feature.feature.group/0.9.0
Unsatisfied dependency: [com.google.gdt.eclipse.suite
2.2.0.v201102111801] requiredCapability: osgi.bundle/
org.eclipse.mylyn.commons.ui/0.0.0
Unsatisfied dependency: [com.google.gdt.eclipse.suite
2.2.0.v201102111801] requiredCapability: osgi.bundle/
org.eclipse.mylyn.commons.ui/0.0.0
Unsatisfied dependency: [org.eclipse.rcp.feature.group
3.4.0.v20080324a-989JERhEk-jWnd5IY8K5tjxB] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt.win32.win32.x86/
[3.4.0.v3448f,3.4.0.v3448f]
Unsatisfied dependency: [org.eclipse.rcp.feature.group
3.4.0.v20080324a-989JERhEk-jWnd5IY8K5tjxB] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.osgi/
[3.4.0.v20080605-1900,3.4.0.v20080605-1900]
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.osgi/
[3.4.1.R340x_v20080806,3.4.1.R340x_v20080806]] and
Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.osgi/
[3.4.0.v20080605-1900,3.4.0.v20080605-1900]] can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.osgi/
[3.4.1.R340x_v20080806,3.4.1.R340x_v20080806]] and
Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.osgi/
[3.4.0.v20080605-1900,3.4.0.v20080605-1900]] can be satisfied.
Cannot find a solution where both Match[requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.osgi/
[3.4.1.R340x_v20080806,3.4.1.R340x_v20080806]] and
Match[requiredCapability: org.eclipse.equinox.p2.iu/org.eclipse.osgi/
[3.4.0.v20080605-1900,3.4.0.v20080605-1900]] can be satisfied.
Unsatisfied dependency: [org.eclipse.help.feature.group
1.0.0.v20080603-7r7xEHJEJkZu5nE6Q4Qrtvu6JZ9L] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.rcp.feature.group/
[3.4.0.v20080324a-989JERhEk-jWnd5IY8K5tjxB,3.4.0.v20080324a-989JERhEk-
jWnd5IY8K5tjxB]
Unsatisfied dependency: [org.eclipse.pde.feature.group
3.4.0.v20080603-7T7U-E_EkMNrNKb39WcMC] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.jdt.feature.group/[3.0.0,4.0.0)
Unsatisfied dependency: [org.eclipse.pde.feature.group
3.4.0.v20080603-7T7U-E_EkMNrNKb39WcMC] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.platform.feature.group/
[3.0.0,4.0.0)
Unsatisfied dependency: [org.eclipse.wb.core.feature.feature.group
0.9.0.r34x201102111430] requiredCapability: org.eclipse.equinox.p2.iu/
org.eclipse.pde.feature.group/3.2.0
Unsatisfied dependency: [org.eclipse.jdt.feature.group
3.4.0.v20080603-2000-7o7tEAXEFpPqqoXxgaBhhhq] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.platform.feature.group/
[3.4.0,4.0.0)
Unsatisfied dependency:
[com.google.gdt.eclipse.designer.editor.feature.feature.group
2.2.0.r34x201102111505] requiredCapability: org.eclipse.equinox.p2.iu/
org.eclipse.wb.core.feature.feature.group/0.9.0.r34x201102111430
Unsatisfied dependency: [org.eclipse.rcp.feature.group
3.4.0.v20080324a-989JERhEk-jWnd5IY8K5tjxB] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.osgi/
[3.4.0.v20080605-1900,3.4.0.v20080605-1900]
Unsatisfied dependency: [org.eclipse.rcp.feature.group
3.4.0.v20080324a-989JERhEk-jWnd5IY8K5tjxB] requiredCapability:
org.eclipse.equinox.p2.iu/org.eclipse.swt.win32.win32.x86/
[3.4.0.v3448f,3.4.0.v3448f]
Unsatisfied dependency: [org.eclipse.platform.feature.group
3.4.0.v20080610-9I96EhtEm-T_5LxIsybz-3MdGZmOA3uwv7Ka_M]
requiredCapability: org.eclipse.equinox.p2.iu/
org.eclipse.help.feature.group/
[1.0.0.v20080603-7r7xEHJEJkZu5nE6Q4Qrtvu6JZ9L,
1.0.0.v20080603-7r7xEHJEJkZu5nE6Q4Qrtvu6JZ9L]
Unsatisfied dependency: [com.google.gdt.eclipse.maven
2.2.0.v201102111801] requiredCapability: osgi.bundle/
com.google.gdt.eclipse.suite/0.0.0
Unsatisfied dependency:
[com.google.gdt.eclipse.suite.e34.feature.feature.group
2.2.0.v201102111801] requiredCapability: org.eclipse.equinox.p2.iu/
com.google.gdt.eclipse.maven/[2.2.0.v201102111801,2.2.0.v201102111801]
Unsatisfied dependency:
[com.google.gdt.

GWT multiple html pages

2011-03-02 Thread Dhanu Musham
hi,
 I am very new to Gwt, in my application i want to maintain two html
pages one for login purpose and other one is actual my application.
when user comes, initally LOGIN page is appeared, after successful
login then shows actual my application.
my problem is how can i maintain two html pages in my application?
with valid example explanation is more useful

thanks.

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



Re: User roles in GWT applications

2011-03-02 Thread Ben Imp
Depends on the situation, but in general its much easier on users if
things they can't do/edit aren't shown to them.  Or, alternatively, if
they are shown, be shown with some visual indicator of restricted
access.  A panel full of blank values with no UI feedback is somewhat
unintuitive.  A panel with a shadowbox over it that says "ADMINS
ONLY", for example, makes a bit more sense, and will get you many
fewer support calls.

I maintain a collection of user role objects in my application model,
which is available to all presenters in the application.  The
presenters can each poke at this to see what they should be
displaying.

-Ben

On Mar 2, 11:10 am, zixzigma  wrote:
> could you please explain, why the check on client-side is necessary, if the
> server does the check ?
>
> and on the client-side, do you mean having a UserRoles object, which
> contains user's permission ?
>
> Thank You

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



Re: Firefox 4.0b12 and gwt 2.2.0

2011-03-02 Thread Chris Conroy
http://code.google.com/p/google-web-toolkit/issues/detail?id=6084

On Wed, Mar 2, 2011 at 1:52 PM, Harold Comere wrote:

> Hi all,
>
> I am under windows 7 64 bit, trying to launch any web app with GWT 2.2.0
> under minefield ( firefox 4.0b12 ) and firefox crash with this exception :
>
>
> The server is running at http://localhost:/
>> Exception in thread "Code server for test from Mozilla/5.0 (Windows NT
>> 6.1; WOW64; rv:2.0b12) Gecko/20100101 Firefox/4.0b12 on
>> http://127.0.0.1:/Test.html?gwt.codesvr=127.0.0.1:9997 @
>> f'2"c=:0e4L`%7m@"
>> com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection
>> lost
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:521)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
>> at java.lang.Thread.run(Unknown Source)
>> Caused by: java.net.SocketException: Connection reset by peer: socket
>> write error
>> at java.net.SocketOutputStream.socketWrite0(Native Method)
>> at java.net.SocketOutputStream.socketWrite(Unknown Source)
>> at java.net.SocketOutputStream.write(Unknown Source)
>> at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
>> at java.io.BufferedOutputStream.flush(Unknown Source)
>> at java.io.DataOutputStream.flush(Unknown Source)
>> at
>> com.google.gwt.dev.shell.BrowserChannel$ReturnMessage.send(BrowserChannel.java:1310)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:518)
>> ... 2 more
>>
>>
> I reproduce it by simply create a new default web app then try to launch it
> ...
> I have not this issue under linux ... any guess ?
>
> Regards,
> Harold
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Async lazy load on scrolling (pagingscrolltable / celltable)

2011-03-02 Thread ciosbel
Just to say that CellTable (and all widgets that implements 
HasKeyboardPagingPolicy) has a KeyboardPagingPolicy that can be set to 
INCREASE_RANGE in order to append the next page instead switching to it. 
Showcase shows this functionality with a CellList, using a 
ShowMorePagerPanel (that extends AbstractPager) that uses an inner 
ScrollPanel to update the current range once the scrollbar reaches the end.
For the Async part, i think a simple AsyncDataProvider should do the trick.

Unfortunately, PagingScrollTable does not have such a policy... :(

cios.

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



Re: GWT multiple html pages

2011-03-02 Thread Kayode Odeyemi
There are no pages in GWT. Only widgets. You have a single page, on
which all your widgets are attached to. You must have heard about MVP,
which is a design pattern to help you manage how you move from one
widget to another. Just do some more digging & u'll find the answer.

On 3/2/11, Dhanu Musham  wrote:
> hi,
>  I am very new to Gwt, in my application i want to maintain two html
> pages one for login purpose and other one is actual my application.
> when user comes, initally LOGIN page is appeared, after successful
> login then shows actual my application.
> my problem is how can i maintain two html pages in my application?
> with valid example explanation is more useful
>
> thanks.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Odeyemi 'Kayode O.

B.Sc(Hons) Econs, Application Developer & Systems Engineer (Sun Certified
Professional),
Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer

Website: http://sinati.com 
Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde,

http://www.google.com/profiles/dreyemi
Skype:drecute

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



Re: I have a problem with GWT 2.1 development mode

2011-03-02 Thread Thomas Broyer
Your browsers should display this page, which contains the instructions to 
solve the issue: 
http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM
See also 
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#What_options_can_be_passed_to_development_mode


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



Re: Failing to install Google Web Toolkit Eclipse plugin

2011-03-02 Thread arnaultbona...@yahoo.com
To anwser myself it was a network error, using a different WiFi
hotspot I was able to install the plugin successfully.

Thank you for dropping a note.

Thanks,

Arnault.

On 1 mar, 00:09, "arnaultbona...@yahoo.com" 
wrote:
> Hello All,
>
> I don't know if others have encountered the same problem but it
> happens that the GWT eclipse plugin installation fails with the
> following error:
>
> An error occurred while collecting items to be installed
> session context was:(profile=epp.package.java,
> phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
> action=).
> Unable to read repository 
> athttp://dl.google.com/eclipse/plugin/3.6/plugins/com.google.gwt.eclips
> Read timed out
>
> Others plugins installed fine (Google plugin and Google App Engine
> plugin), only the google web toolkit has problem downloading the
> sdkbundle jar file.
> I thought I would post about this error in case others have similar
> problem.
>
> Any help would be greatly appreciated as I'm just starting with GWT.
>
> Thanks and regards,
>
> Arnault.

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



Re: I have a problem with GWT 2.1 development mode

2011-03-02 Thread Rob Tanner
Thanks!  adding -bindAddress argument resolved the problem.


On Mar 2, 1:24 pm, Thomas Broyer  wrote:
> Your browsers should display this page, which contains the instructions to
> solve the 
> issue:http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM
> See 
> alsohttp://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebu...

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



howto check HTML5 audio tag supported in a browser

2011-03-02 Thread Armishev, Sergey
I am new to HTML5 and have this simple question: what is the best way to
check that HTML5  tag is supported on the browser? In general I
would like to be able to check for all/most of HTML5 tags. The only
library I found is Modernizr from http://diveintohtml5.org/detect but it
doesn't check for  . Anybody knows and can recommend other
libraries? Any GWT based libraries?

 

-Sergey 


_ 
This electronic message and any files transmitted with it contains
information from iDirect, which may be privileged, proprietary
and/or confidential. It is intended solely for the use of the individual
or entity to whom they are addressed. If you are not the original
recipient or the person responsible for delivering the email to the 
intended recipient, be advised that you have received this email
in error, and that any use, dissemination, forwarding, printing, or copying 
of this email is strictly prohibited. If you received this email
in error, please delete it and immediately notify the sender.
_ 


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



Re: howto check HTML5 audio tag supported in a browser

2011-03-02 Thread John LaBanca
GWT has an Audio widget for HTML5 audio support:
com.google.gwt.media.client.Audio.isSupported()

Thanks,
John LaBanca
jlaba...@google.com


On Wed, Mar 2, 2011 at 6:29 PM, Armishev, Sergey wrote:

>  I am new to HTML5 and have this simple question: what is the best way to
> check that HTML5  tag is supported on the browser? In general I would
> like to be able to check for all/most of HTML5 tags. The only library I
> found is Modernizr from http://diveintohtml5.org/detect but it doesn’t
> check for  . Anybody knows and can recommend other libraries? Any GWT
> based libraries?
>
>
>
> -Sergey
>
>
> _
> This electronic message and any files transmitted with it contains
> information from iDirect, which may be privileged, proprietary
> and/or confidential. It is intended solely for the use of the individual
> or entity to whom they are addressed. If you are not the original
> recipient or the person responsible for delivering the email to the
> intended recipient, be advised that you have received this email
> in error, and that any use, dissemination, forwarding, printing, or
> copying of this email is strictly prohibited. If you received this email
> in error, please delete it and immediately notify the sender.
> _
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: GWT 2.2 Canvas support for IE6 (GWTCanvasImplIE6)

2011-03-02 Thread Craig Mitchell
+1.  Partial support would be great as there are a lot of IE 6/7/8
users out there.

http://www.w3schools.com/browsers/browsers_explorer.asp


On Mar 3, 1:22 am, Kurtt Lin  wrote:
> Even partially supporting is welcomed, and developers should have known
> about its IE6's poor performance, thus avoid rendering lots elements.
> Actually i want Canvas in IE 6/7/8 badly.
> T T
>
>
>
>
>
>
>
> On Wed, Mar 2, 2011 at 9:55 PM, Philip Rogers  wrote:
> > Because of the difficulty of supporting IE6 fully via VML (including
> > text, etc.) and still having reasonable performance, there aren't
> > plans to support it at this time.
>
> > The new Canvas implementation in GWT should have complete support
> > across FF3.5, Chrome, Safari, and IE9, but there isn't a fallback
> > provided for the older browsers.
>
> > On Mar 1, 10:31 pm, Craig Mitchell  wrote:
> > > Hi,
>
> > > Are there any plans for Canvas to support IE6?  It was supported via
> > > GWTCanvasImplIE6 in the gwt-incubator.jar which would implement the
> > > Canvas functionality via VML.
>
> > > Thanks.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Is it possible to add widgets as MenuItems?

2011-03-02 Thread Fotos Georgiadis
Nope you cannot add widgets in MenuItems. A MenuItem can either accept a 
MenuBar (to form hierarchies) or good 'ol plain HTML.
That makes it a little bit more difficult to create more "interactive" 
menus. I suggest you have look at PopupPanel in combination with your menu 
bar.

-fotos

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



Overlay types and type erasure

2011-03-02 Thread Christopher
I'm using overlay types and I'm wondering if Java's type erasure is at
play.

What I have is a class that calls the following native code:

  private final native T evalJSONPayload(String jsonText) /*-{
 return $wnd.JSON.parse(jsonText);
  }-*/;

...where T extends JavaScriptObject and is being substituted thus:

JsArray

This was working fine until I introduced
SomeOtherClassExtendingJavaScriptObject. I now appear to get casts to
SomeClassExtendingJavaScriptObject when I want
SomeOtherClassExtendingJavaScriptObject.

Any guidance appreciated.

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



Re: Overlay types and type erasure

2011-03-02 Thread Christopher
Apologies for the post - it looks as though it might be an unrelated issue. 
Overlay type casting within arrays looks to be just fine.

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



anyway to create proxy classes with fields having values from the real entity class automatically?

2011-03-02 Thread JosephLi
Entity proxies created via requestContext.create(...) does not have
the correct default value defined in the real entity class, anyone how
to easily get around that without manually setting it before passing
it to the driver.edit(...)?

Thanks,
Joseph

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



Re: Refreshing a celltree

2011-03-02 Thread xwise
Yes I have. A few times... I think the problem is that it's just very
different than how I implemented things (my code looks more like
what's described in the api:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/cellview/client/CellTree.html).
And also the showcase example a bit complicated/large... at least for
my little stressed out brain. It would be nice if someone could just
either tell me how it's done (like call this method on this class), or
just provided a very tiny example showing a tree (with like one parent
and 2 children) where the child visibly changes when selected. That
would be great... I'm hoping such an example already exists and I just
haven't found it.

On Feb 28, 9:40 pm, Y2i  wrote:
> Have you had a chance to look at the 
> showcase:http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree

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



Can't install google eclipse plugin on fresh Helios install.

2011-03-02 Thread Andrew Hughes
Hi All,

I've noticed a lot of posts that people are having trouble updating their
eclipse plugins (starting ~14th Feb 2011). I'm not updating, I have a fresh
Helios install that won't install the plugin or sdk from
http://dl.google.com/eclipse/plugin/3.6.

Would anyone be able to confirm this problem or explain it? it's really
annoying.

Cheers :)


An error occurred while collecting items to be installed
session context was:(profile=epp.package.java,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer,2.2.0.r36x201102111505
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.UiBinder,2.2.0.r36x201102111505
No repository found containing:
org.eclipse.update.feature,com.google.gdt.eclipse.designer.editor.feature,2.2.0.r36x201102111505
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted,2.2.0.r36x201102111446
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted.1_6,2.2.0.r36x201102111446
No repository found containing: osgi.bundle,
com.google.gdt.eclipse.designer.hosted.1_6.ie,2.2.0.r36x201102111446
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted.1_6.super,2.2.0.r36x201102111446
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0,2.2.0.r36x201102111446
No repository found containing: osgi.bundle,
com.google.gdt.eclipse.designer.hosted.2_0.ie,2.2.0.r36x201102111446
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0.super,2.2.0.r36x201102111446
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0.webkit,2.2.0.r36x201102111446
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_0.webkit_win32,2.2.0.r36x201102111446
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_2,2.2.0.r36x201102111446
No repository found containing: osgi.bundle,
com.google.gdt.eclipse.designer.hosted.2_2.ie,2.2.0.r36x201102111446
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted.2_2.webkit,2.2.0.r36x201102111446
No repository found containing:
org.eclipse.update.feature,com.google.gdt.eclipse.designer.hosted.feature,2.2.0.r36x201102111446
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted.lib,2.2.0.r36x201102111446
No repository found containing:
osgi.bundle,org.eclipse.wb.core,0.9.0.r36x201102111430
No repository found containing:
osgi.bundle,org.eclipse.wb.core.databinding,0.9.0.r36x201102111430
No repository found containing:
osgi.bundle,org.eclipse.wb.core.databinding.xml,0.9.0.r36x201102111443
No repository found containing:
org.eclipse.update.feature,org.eclipse.wb.core.feature,0.9.0.r36x201102111430
No repository found containing:
osgi.bundle,org.eclipse.wb.core.lib,0.9.0.r36x201102111430
No repository found containing:
osgi.bundle,org.eclipse.wb.core.xml,0.9.0.r36x201102111443
No repository found containing:
org.eclipse.update.feature,org.eclipse.wb.core.xml.feature,0.9.0.r36x201102111443
No repository found containing:
osgi.bundle,org.eclipse.wb.css,0.9.0.r36x201102051550
No repository found containing:
org.eclipse.update.feature,org.eclipse.wb.css.feature,0.9.0.r36x201102051550
No repository found containing:
osgi.bundle,org.eclipse.wb.jdt.fragment,0.9.0.r36x201102111430
No repository found containing:
osgi.bundle,org.eclipse.wb.os,0.9.0.r36x201102111430
No repository found containing:
osgi.bundle,org.eclipse.wb.os.win32,0.9.0.r36x201102111430
No repository found containing:
osgi.bundle,org.eclipse.wb.runtime,0.9.0.r36x201102111430
No repository found containing:
osgi.bundle,org.eclipse.wb.runtime.lib,0.9.0.r36x201102111430

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



Re: GWT 2.2 Canvas support for IE6 (GWTCanvasImplIE6)

2011-03-02 Thread Jan Mostert
GWT-graphics supports IE6 via VML and renders everything else via Vector

Supported browsers

The library has been tested to work with the following browsers:

   - Internet Explorer 6 and newer
   - Firefox 3.0 and newer
   - Safari 3.2 and newer
   - Opera 9.6 and newer
   - Google Chrome


http://code.google.com/p/gwt-graphics/

--
Jan Vladimir Mostert
BEngSci

MyCee Technologies


On Thu, Mar 3, 2011 at 1:58 AM, Craig Mitchell  wrote:

> +1.  Partial support would be great as there are a lot of IE 6/7/8
> users out there.
>
> http://www.w3schools.com/browsers/browsers_explorer.asp
>
>
> On Mar 3, 1:22 am, Kurtt Lin  wrote:
> > Even partially supporting is welcomed, and developers should have known
> > about its IE6's poor performance, thus avoid rendering lots elements.
> > Actually i want Canvas in IE 6/7/8 badly.
> > T T
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Mar 2, 2011 at 9:55 PM, Philip Rogers  wrote:
> > > Because of the difficulty of supporting IE6 fully via VML (including
> > > text, etc.) and still having reasonable performance, there aren't
> > > plans to support it at this time.
> >
> > > The new Canvas implementation in GWT should have complete support
> > > across FF3.5, Chrome, Safari, and IE9, but there isn't a fallback
> > > provided for the older browsers.
> >
> > > On Mar 1, 10:31 pm, Craig Mitchell  wrote:
> > > > Hi,
> >
> > > > Are there any plans for Canvas to support IE6?  It was supported via
> > > > GWTCanvasImplIE6 in the gwt-incubator.jar which would implement the
> > > > Canvas functionality via VML.
> >
> > > > Thanks.
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > 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-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



ImageResource - ClientBundle Java script exception

2011-03-02 Thread Matej Jelovcan
Hey guys.

I am having a bit of a problem with ClientBungle implementation. I am
trying to link it to a animated gif. When I do that the page loads
fine but on the place where that animated gif should be at there is
nothing. And jetty reports this error for IE client:
com.google.gwt.core.client.JavaScriptException: (Error): Invalid argument.

My clientbundle implementation is really simple
public interface Images extends ClientBundle
{   
public static final Images INSTANCE =  GWT.create(Images.class);

@Source("images/loading.gif")
ImageResource loading();

@Source("images/panorama.png")
ImageResource banner();

@Source("images/uploadStill.jpg")
ImageResource uploadOut();

@Source("images/upload2.gif")
ImageResource uploadOver();
}

all of the above load fine with exception of the upload2.gif. This one
just does not want to work. I have zero idea why.

If I reference it by URL, it works perfect.

Any ideas?
Thanks.

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



maintain two html pages in gwt

2011-03-02 Thread Dhanu Musham
hi,
can i maintain two html pages in gwt, one for Login.html and after
successful login then shows actual my application,
else for one html page, how can i manage login validation checking
server and how can i redirect actual my application

thanks,

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



Re: anyway to create proxy classes with fields having values from the real entity class automatically?

2011-03-02 Thread JosephLi
I found this thread:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/aa022f56d9c837db/65c27dbba8927ab9?lnk=gst&q=Proxy+default+values#65c27dbba8927ab9

The solution requires a trip back to the server to create the object
with initialization then pass it back to the client through the usual
requestFactory. Would be nice if that trip back to the server is not
needed.

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



Re: ImageResource - ClientBundle Java script exception

2011-03-02 Thread Matej Jelovcan
Ah, fixed it by moving ClientBundle interface into the same
pachage/folder as images are. So that now instead of
@Source("images/upload2.gif") i use @Source("upload2.gif") and it's
fine.


On 3/3/11, Matej Jelovcan  wrote:
> Hey guys.
>
> I am having a bit of a problem with ClientBungle implementation. I am
> trying to link it to a animated gif. When I do that the page loads
> fine but on the place where that animated gif should be at there is
> nothing. And jetty reports this error for IE client:
> com.google.gwt.core.client.JavaScriptException: (Error): Invalid argument.
>
> My clientbundle implementation is really simple
> public interface Images extends ClientBundle
> { 
>   public static final Images INSTANCE =  GWT.create(Images.class);
>   
>   @Source("images/loading.gif")
> ImageResource loading();
>   
>   @Source("images/panorama.png")
> ImageResource banner();
>
>   @Source("images/uploadStill.jpg")
> ImageResource uploadOut();
>   
>   @Source("images/upload2.gif")
> ImageResource uploadOver();
> }
>
> all of the above load fine with exception of the upload2.gif. This one
> just does not want to work. I have zero idea why.
>
> If I reference it by URL, it works perfect.
>
> Any ideas?
> Thanks.
>

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