Re: UiBinder Internationalization - Search/Find Non-Internationalized Strings?

2011-05-30 Thread spierce7
Thank you very much. I'll look into it.

On May 30, 4:05 am, Jānis Ābele janis.ab...@gmail.com wrote:
 Look athttp://code.google.com/p/gwt-platform/wiki/MergeLocale, it does what
 you want.

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



UiBinder Internationalization - Search/Find Non-Internationalized Strings?

2011-05-27 Thread spierce7
Is there a fast way to find non-internationalized strings/attributes
in GWT? I have way to many ui binder files to search through by hand.
Has someone found a creative way to automatically find them?

-- 
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: UiBinder - Add Mouse Handler to Panel or Grid

2010-10-12 Thread spierce7
Thanks a lot! This worked. I really appreciate this!

On Oct 10, 6:31 pm, Gal Dolber gal.dol...@gmail.com wrote:
 You can use a FocusPanel or extend any panel and implement the mouse events
 on it 
 (http://code.google.com/p/google-web-toolkit-incubator/wiki/GwtEventSy...
 help)

 Best





 On Sun, Oct 10, 2010 at 5:00 PM, spierce7 spier...@gmail.com wrote:
  I can't find a way to add a Mouse Handler to a GWT Panel or a Grid
  while using UiBinder.

  I basically need a way that I can detect the following over a Grid:
  1. Detect what cell the event is happening in.
  2. Detect Mouse Up Event
  3. Detect Mouse Down Event
  4. Detect Mouse Out Event
  5. Detect Mouse Over Event

  I had planned to try and do this with the absolute panel overlayed on
  top of the Grid. I could detect these events on the AbsolutePanel,
  then based off of the location of the event, determine what cell the
  event would have taken place in had the AbsolutePanel not have been
  overlayed on top of the Grid, and then act accordingly. I now find out
  that the exact same restrictions are placed upon the panels in terms
  of click handlers, and don't have many options.

  I just need to find a way to get the above events to work on the Grid.
  What would you recommend? Not using UiBinder, I was using DomHandlers,
  which seam to be disabled in UiBinder (am I wrong?).

  Any help is VERY appreciated. Thanks!

  ~Scott

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

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



UiBinder - Add Mouse Handler to Panel or Grid

2010-10-10 Thread spierce7
I can't find a way to add a Mouse Handler to a GWT Panel or a Grid
while using UiBinder.

I basically need a way that I can detect the following over a Grid:
1. Detect what cell the event is happening in.
2. Detect Mouse Up Event
3. Detect Mouse Down Event
4. Detect Mouse Out Event
5. Detect Mouse Over Event

I had planned to try and do this with the absolute panel overlayed on
top of the Grid. I could detect these events on the AbsolutePanel,
then based off of the location of the event, determine what cell the
event would have taken place in had the AbsolutePanel not have been
overlayed on top of the Grid, and then act accordingly. I now find out
that the exact same restrictions are placed upon the panels in terms
of click handlers, and don't have many options.

I just need to find a way to get the above events to work on the Grid.
What would you recommend? Not using UiBinder, I was using DomHandlers,
which seam to be disabled in UiBinder (am I wrong?).

Any help is VERY appreciated. Thanks!

~Scott

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



Re: how to handle mouseOver event for FlexTable

2010-08-18 Thread spierce7
This code is from my class that extends Grid:

public GridMouseHandler gridMouseHandler = new GridMouseHandler(this);

Later on in the workings of one of the functions I add my mouse
handlers. For grids or flex tables they must currently be implemented
as dom handlers:
addDomHandler(gridMouseHandler,
MouseDownEvent.getType());
addDomHandler(gridMouseHandler, MouseUpEvent.getType());
addDomHandler(gridMouseHandler, MouseMoveEvent.getType());

My function that finds which cell the mouse event happened on:
public int[] getCellForEvent(MouseEvent? event) {
final Element td =
getEventTargetCell(Event.as(event.getNativeEvent()));
if (td == null) {
return null;
}
final Element tr = DOM.getParent(td);
final Element table = DOM.getParent(tr);
int returnEventPosition[] = new int[2];
returnEventPosition[rowPos] = DOM.getChildIndex(table, tr);
returnEventPosition[colPos] = DOM.getChildIndex(tr, td);
eventPosition[rowPos] = returnEventPosition[rowPos];
eventPosition[colPos] = returnEventPosition[colPos];
return returnEventPosition;
}

My GridMouseHandler class is just: public class GridMouseHandler
implements MouseDownHandler, MouseUpHandler, MouseMoveHandler { and
then implements the required methods such as onMouseUp, or
onMouseMove, and when the mouse moves you can have them call a
specific function. One of the functions you will want to call is your
own function for finding which cell the event happened on, and then
acting accordingly.

Using this same method you can do similar things for any of the mouse
handlers with Grid.


On Aug 18, 3:42 am, Aditya 007aditya.b...@gmail.com wrote:
 Hi,

 I m trying to create a flextable which can handle mouseOver and
 mouseOut events..

 I want to change the style of row which receives mouseOver and adds
 style accordingly.

 same for mouseOut..

 Is anyone has implemented it...?

 Thank you.

 Regards,

 Aditya

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



Re: Generate Random String

2010-08-17 Thread spierce7
AH! I didn't think to search just java! Stupid me. Thanks so much.

On Aug 17, 12:49 am, Jim Douglas jdoug...@basis.com wrote:
 I did this google search:

 http://www.google.com/search?q=java+generate+random+alphanumeric+string

 That returns more suggestions that you could possibly need; take your
 pick.  The first link returned from that search has several
 suggestions:

 http://stackoverflow.com/questions/41107/how-to-generate-a-random-alp...

 On Aug 16, 9:05 pm, spierce7 spier...@gmail.com wrote:

  What would be the best way to generate a random string in GWT with no
  slashes (/ or \), preferably just capitol letters and numbers. How
  would I do this? I'm surprised I can't turn up any information in
  searches. I'm looking to do this Server Side, meaning in java, rather
  than javascript. Thanks!

  ~Scott

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



Storing Session ID in cookie, and then what?

2010-08-17 Thread spierce7
Hey,

I'm currently making a site that has my own logins that I'm making (I
know Google provides something, but I need my own login system), and
I've been trying to figure out sessions for quite a while now. I've
found a few tutorials, and one of the sites that I was reading is
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ

There is a section there on How to Remember Logins. I know how to
get the session ID and store it on the client in a cookie through an
RPC call. What I don't understand is, eventually after a day or so,
the user comes back and I'm supposed to get the session ID from the
cookie and send it back to the server. What am I supposed to do on the
server in order to securely evaluate if session ID is still legal, and
pull up all the necessary information about the user?

Additional questions:
1. What would make the session ID change?
2. What if the user was on a laptop, and the user went somewhere else.
Would he still be able to be securely logged back in without having to
type in his login and password again?

Thanks!

~Scott

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



Generate Random String

2010-08-16 Thread spierce7
What would be the best way to generate a random string in GWT with no
slashes (/ or \), preferably just capitol letters and numbers. How
would I do this? I'm surprised I can't turn up any information in
searches. I'm looking to do this Server Side, meaning in java, rather
than javascript. Thanks!

~Scott

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



Acris Security and App Engine

2010-08-13 Thread spierce7
I've been trying to find out more information about sessions in GWT,
as I couldn't figure out how to get them to work, and something that I
stumbled across is Acris, which has a Security implementation. I've
been reading about it and I can't find detailed information on how to
use maven to setup a gwt project, and I'm so confused as to how maven
works, or what it's actual purpose is even. However, Acris is
something I'm very interested in using.

I was searching around trying to figure out how I could do this, and I
happened across a post of someone telling someone that acris couldn't
be implemented onto projects hosted with AppEngine. Is this true?

Also, does anyone have some detailed steps as to how I setup Maven
with GWT and Eclipse? I've installed maven on eclipse, but now (from
what I gather, I'm taking a leap and concluding this) I have to do
some setup in my pom.xml file. I don't know if this is before or after
the creation of the project, but I can't figure out how to create a
project either, so overall I'm very confused. I'd be thankful for any
help at all in this area.

~Scott

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



Hosting Entire Website on AppEngine? Integrating GWT into your website?

2010-08-10 Thread spierce7
There isn't any way to host an entire website on AppEngine is there?
It doesn't seem like it, I just thought I'd ask. So if that's the
case, how am I supposed to integrate GWT into my application? an
iFrame? Does GWT have any write-ups about this? What if I need the
rest of my website to have access to the same database my application
is using. Is my only option at that point alternative hosting?

What if I want my entire website to use GWT components, and a GWT RIA
integrated into a specific part? That's what I'm trying to accomplish,
and I don't know javascript worth squat, so what am I supposed to do?
I need the entire site to have access to the database, so I'm thinking
about buying hosting, and using my-sql as my db, but I'm not sure what
hosts can run gwt server side applications either. Any information you
guys have or experiences with this would be great!

~Scott

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



Re: Hosting Entire Website on AppEngine? Integrating GWT into your website?

2010-08-10 Thread spierce7
Joe,

Thanks for your fast reply. I figured you'd have you use google's
database solution, but I thought it was called datastore. Either way
I'm fine with that as long as it works, however using multiple less
than operators across multiple entities would be convenient.

One of my questions was how would you have a gwt application (or
applicationS) spanning multiple html files, however you have your
entire website it seems on a single html file. I'm not sure how you
did that with your GWT app, but I'm gonna look through your source
code and see if I can't figure out how. Through doing that, AppEngine
is able to host your entire website, which is what I'd like.

I actually have a good portion of my GWT app written. I've got RPC
calls working, and I have the ability to use JDO, and make objects
persistent, however I've been getting weird errors, and haven't been
able to get my queries to work once. So I started thinking about other
things and these questions started coming to mind. I thought that if I
wasn't going to be able to host my site completely on app engine, why
would I even bother with this, and not just use SQL? So apparently I'm
going to keep chugging it out with AppEngine. Thanks!

~Scott

On Aug 10, 8:50 am, Joe Hudson joe...@gmail.com wrote:
 Hi Scott,

 That is what I am doing withhttp://www.gwtmarketplace.com.  The catch
 is that you currently have to use their BigTables DB but supposedly in
 the third quarter they will be adding relational database support.

 You need to register an app engine account and then register a google
 apps account for the domain of your choice and map the app engine
 account to that domain.  You can browse the source code for
 gwtmarketplace here if you are 
 interested:http://code.google.com/p/gwtmarketplace/source/browse/

 I am using Objectify (http://code.google.com/p/objectify-appengine/)
 as the data access utility but you could also use JPA as well.

 As far as what hosts can run GWT - a simple web server like Apache can
 do that as your GWT application will be compiled to static recources
 to be served.  You will still need servlets or some other mechanism
 for data access - I use servlets with RPC calls (http://
 code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html)

 Hope this helps...

 Joe

 On Aug 10, 7:59 am, spierce7 spier...@gmail.com wrote:

  There isn't any way to host an entire website on AppEngine is there?
  It doesn't seem like it, I just thought I'd ask. So if that's the
  case, how am I supposed to integrate GWT into my application? an
  iFrame? Does GWT have any write-ups about this? What if I need the
  rest of my website to have access to the same database my application
  is using. Is my only option at that point alternative hosting?

  What if I want my entire website to use GWT components, and a GWT RIA
  integrated into a specific part? That's what I'm trying to accomplish,
  and I don't know javascript worth squat, so what am I supposed to do?
  I need the entire site to have access to the database, so I'm thinking
  about buying hosting, and using my-sql as my db, but I'm not sure what
  hosts can run gwt server side applications either. Any information you
  guys have or experiences with this would be great!

  ~Scott

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



UIBinder + DOMHandler?

2010-08-10 Thread spierce7
Hey guys, I know that UIBinder disables DOM Events, but I have an
application that uses DOM Handlers in order to tell when a mouse up
event, or mouse over event has taken place on my grid, and what cell
it took place with. The issue is that since UIBinder disables DOM
Events, I can't get my DOM handlers to work either. I'm making an
application with GWT, that I'd like to use UIBinder, but there is this
one part of the application that will being used maybe 10% of the time
that requires DOMHandlers to work until GWT adds more mouse event
options for Grid. Is there any way that I can get UIBinder to work for
most of my program, but for part of my program get it to work through
building the UI with function calls?

Or perhaps is there a way to get my dom handler to work with UIBinder?

Any help at all, or even ideas would be great! Thanks!

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



Re: Hosting Entire Website on AppEngine? Integrating GWT into your website?

2010-08-10 Thread spierce7
Thank you very much for your replies earlier today. Due to the link to
your app (and even the source code!), you've completely changed/
corrected my view of how GWT is supposed to be used. I was stuck in
the PHP mindset of multiple websites, and I've read that GWT is used
to make Rich Internet Applications probably 15 times, but I didn't
really understand how it was supposed to fit together until I saw your
app, so thank you very much.

~Scott

On Aug 10, 11:00 am, Joe Hudson joe...@gmail.com wrote:
 It very well could be called datastore - I just recalled a name from
 memory...

 As far as the multiple files, you can have as many GWT application
 files as you  want - the each require an EntryPoint class though.  And
 if you want just plain static files and resources, you can do that as
 well... you would just put them directly under the war directory of
 your application.  One thing to note - AFAIK, you can't make a change
 to a single resource and upload that - you have to upload the whole
 site again.  But, google has a nice versioning system so you can
 upload multiple versions of your app to test and then move a version
 to the default version when you are ready.

 Joe

 On Aug 10, 9:22 am, spierce7 spier...@gmail.com wrote:



  Joe,

  Thanks for your fast reply. I figured you'd have you use google's
  database solution, but I thought it was called datastore. Either way
  I'm fine with that as long as it works, however using multiple less
  than operators across multiple entities would be convenient.

  One of my questions was how would you have a gwt application (or
  applicationS) spanning multiple html files, however you have your
  entire website it seems on a single html file. I'm not sure how you
  did that with your GWT app, but I'm gonna look through your source
  code and see if I can't figure out how. Through doing that, AppEngine
  is able to host your entire website, which is what I'd like.

  I actually have a good portion of my GWT app written. I've got RPC
  calls working, and I have the ability to use JDO, and make objects
  persistent, however I've been getting weird errors, and haven't been
  able to get my queries to work once. So I started thinking about other
  things and these questions started coming to mind. I thought that if I
  wasn't going to be able to host my site completely on app engine, why
  would I even bother with this, and not just use SQL? So apparently I'm
  going to keep chugging it out with AppEngine. Thanks!

  ~Scott

  On Aug 10, 8:50 am, Joe Hudson joe...@gmail.com wrote:

   Hi Scott,

   That is what I am doing withhttp://www.gwtmarketplace.com.  The catch
   is that you currently have to use their BigTables DB but supposedly in
   the third quarter they will be adding relational database support.

   You need to register an app engine account and then register a google
   apps account for the domain of your choice and map the app engine
   account to that domain.  You can browse the source code for
   gwtmarketplace here if you are 
   interested:http://code.google.com/p/gwtmarketplace/source/browse/

   I am using Objectify (http://code.google.com/p/objectify-appengine/)
   as the data access utility but you could also use JPA as well.

   As far as what hosts can run GWT - a simple web server like Apache can
   do that as your GWT application will be compiled to static recources
   to be served.  You will still need servlets or some other mechanism
   for data access - I use servlets with RPC calls (http://
   code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html)

   Hope this helps...

   Joe

   On Aug 10, 7:59 am, spierce7 spier...@gmail.com wrote:

There isn't any way to host an entire website on AppEngine is there?
It doesn't seem like it, I just thought I'd ask. So if that's the
case, how am I supposed to integrate GWT into my application? an
iFrame? Does GWT have any write-ups about this? What if I need the
rest of my website to have access to the same database my application
is using. Is my only option at that point alternative hosting?

What if I want my entire website to use GWT components, and a GWT RIA
integrated into a specific part? That's what I'm trying to accomplish,
and I don't know javascript worth squat, so what am I supposed to do?
I need the entire site to have access to the database, so I'm thinking
about buying hosting, and using my-sql as my db, but I'm not sure what
hosts can run gwt server side applications either. Any information you
guys have or experiences with this would be great!

~Scott

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

Exception while dispatching incoming RPC call Object Manager has been closed (repost)

2010-08-09 Thread spierce7
Hey, I've been trying to get my RPC Call to AppEngine to work since
last Wed, with no luck. My issue now seems to be with my query. I'm
willing to post any code needed, but I just want to get this working,
as this has completely halted me on any further progress on my app.
Everything looks like it should be working. Here is my
TestServiceImpl.java :


package com.spierce7.gwt.test.server;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.logging.Logger;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import javax.jdo.Query;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.spierce7.gwt.test.client.TestService;
import com.spierce7.gwt.test.shared.PersistentShift;

public class TestServiceImpl extends RemoteServiceServlet implements
TestService{
private static final Logger LOG =
Logger.getLogger(TestServiceImpl.class.getName());
private static final PersistenceManagerFactory PMF =
JDOHelper.getPersistenceManagerFactory(transactions-optional);

public void addShift(Date startDate, Date endDate) {
PersistenceManager pm = getPersistenceManager();
try {
pm.makePersistent(new
PersistentShift(startDate, endDate));
} finally {
pm.close();
}
}

public ListPersistentShift getShifts() {
PersistenceManager pm = getPersistenceManager();
ListPersistentShift results = new
ArrayListPersistentShift();

Query query = pm.newQuery(PersistentShift.class);
query.setFilter(search == 1);

try {
results = (ListPersistentShift)
query.execute();
} finally {
pm.close();
}
return results;
}

private PersistenceManager getPersistenceManager() {
return PMF.getPersistenceManager();
}
}

___

My addShift function works fine, and I can add objects to the database
just fine. I just can't retrieve them. I finally changed the objects
in the database to all have an int variable called search, and it's
always set to 1. When I call the getShifts() method though, it gives
me this error:

javax.servlet.ServletContext log: Exception while dispatching incoming
RPC call
Object Manager has been closed
org.datanucleus.exceptions.NucleusUserException: Object Manager has
been closed
at
org.datanucleus.ObjectManagerImpl.assertIsOpen(ObjectManagerImpl.java:
3876)
at
org.datanucleus.ObjectManagerImpl.getFetchPlan(ObjectManagerImpl.java:
376)
at org.datanucleus.store.query.Query.getFetchPlan(Query.java:
497)
at org.datanucleus.store.appengine.query.DatastoreQuery
$6.apply(DatastoreQuery.java:631)
at org.datanucleus.store.appengine.query.DatastoreQuery
$6.apply(DatastoreQuery.java:630)
at
org.datanucleus.store.appengine.query.LazyResult.resolveNext(LazyResult.java:
94)
at org.datanucleus.store.appengine.query.LazyResult
$LazyAbstractListIterator.computeNext(LazyResult.java:215)
at
org.datanucleus.store.appengine.query.AbstractIterator.tryToComputeNext(AbstractIterator.java:
132)
at
org.datanucleus.store.appengine.query.AbstractIterator.hasNext(AbstractIterator.java:
127)
at org.datanucleus.store.appengine.query.LazyResult
$AbstractListIterator.hasNext(LazyResult.java:169)
at java.util.AbstractCollection.toString(Unknown Source)
... (it goes on)

___

I saw some examples where queries are ended with query.closeAll(), and
I tried that also, but I get a different error telling me something
couldn't be serialized from the datanucleus. At this point I just want
it to work. Any help, or any ideas would be great. Let me know if
you'd like some other code posted.

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



Re: HTML Table

2010-08-09 Thread spierce7
Why are you doing HTMLTable table = new Grid(rows, 2);? Try doing Grid
table = new Grid(rows,2); or HTMLTable table = new HTMLTable(rows, 2);
(assuming syntax for HTMLTable)

On Aug 9, 3:25 am, Sanjay Jain snj...@gmail.com wrote:
 Hi to all
 I am using  HTML table, and for setting title of the table I am using
 setTitle(My Table);
 But it is not working:
 Here is my code:

 HTMLTable table = new Grid(rows, 2);
 table.setTitle(My Table);

 Is there other property need to be set?
 Please help
 Thanks in advance

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



Re: onModuleLoad() Before Page Load

2010-08-09 Thread spierce7
I'm not familiar with a lot of the things that you are using, however
GWT has a method that it calls after the widget that the method is
attached to is loaded. It's called onLoad(). Typically, when I've used
it in the past, it's because I was extending a widget, say a Grid, and
then I would override the onLoad() method. I'm not sure how you would
implement it into a completely custom widget though. You might be able
to put the iframe in a HTMLPanel or something, and call the onLoad()
method. Either way, I think this may be what your looking for. Hope
this helps!

On Aug 6, 9:54 pm, Ryan McDonald ryan.mcdona...@gmail.com wrote:
 To my understanding, the compiled GWT file module-name.nocache.js
 blocks page evaluation when it is loading. When it finishes, it
 creates a hidden iframe that begins to load the module-name.cache.js
 file but it does NOT block page evaluation and loads asynchronously.

 In my GWT module I define a native Javascript function using JSNI that
 adds a widget to the page.

 I use a Velocity Template that dynamically generates divs with unique
 ids, then call my Javascript method that I defined using JSNI to
 attach the widget to the specific div.

 The problem is that when my page is loading, and the Velocity Template
 calls my Javascript method, the hidden iframe has not finished loading
 the module-name.cache.js that defines the method.

 Is there a way to make the module-name.cache.js file load
 synchronously so that it will block page evaluation until it finishes
 loading? Or make onModuleLoad() run before the page loads completely?
 Something along these lines?

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



Re: bug in Animation class

2010-08-09 Thread spierce7
I'm going to be delving into the animation world in the next few
weeks. Thanks very much for this. I'll try to keep this in mind if I
have any issues.

On Aug 6, 11:24 am, Michael michael.vill...@gmail.com wrote:
 Hi,

 I didn't see a place to post bugs, so I am submitting it to the group.

 I've been working with GWT for a one off project on our 
 website,www.studyisland.com. I was attempting to use the Animation class (in
 package com.google.gwt.animation.client) and could not figure out a
 way to get an animation of an Image object to replay when I clicked on
 it. I tried both rerunning the original Animation instance recreating
 the instance and attempting to run it. My code is identical to the
 example in the GWT showcase, with the exception that I create 3 unique
 animations, one for each image on the page.

 The showcase animation can be replayed, but in my case, where 3
 animations existed the animations could not.

 Digging into the Animation class, it is obvious why this is by the
 line of code in the method run(int duration, double startTime):

 // Restart the timer if there is the only animation
     if (animations.size() == 1) {
       animationTimer.schedule(DEFAULT_FRAME_DELAY);
     }

 So, you can't re-run an animation if you create more than one
 animation instance on your page. Thats fine, there may be some
 limitation that I'm unaware of to prevent this. I'll just reset the
 Animation class back to its initial state and start over... but I
 can't because the animations are driven by an array called
 animations that is a private static member of the class, and there
 are no accessible methods to reset it.

 Fortunately the easy solution for me is to just copy all of the code
 in the Animation class into a new class, and add a method
 resetAnimations to take care of this.

 public static void resetAnimations() {
   animations.clear();
   animations = null;

 }

 I just call this before re-running any animations, and everything
 works fine.

 Now, I consider myself pretty good with Java, but I'm not a javascript
 expert so I can't say for sure whether doing this is safe or why the
 original programmers didnt include this functionality initially.
 However, I think it very likely that there will be other GWT users in
 the future who might encounter this issue, hence I think it should be
 addressed.

 If you have any questions about my writeup here, or would like some
 code or something like that, feel free to email me:
 michael.vill...@gmail.com.

 I'm loving GWT by the way. Thanks to everyone who has contributed!
 -Michael

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



Re: Cell click events for incubator's FixedWidthGrid

2010-08-09 Thread spierce7
Are you only wanting to tell if a cell was clicked, or are you wanting
to use specifics, such as the MouseUpHandler, MouseOverHandler, etc.?

If you are using the Grid and all you want to do is tell which cell
was clicked, Grid has a function called addClickHandler() (only works
with the click handler to tell if it was clicked), and you can use the
getCellForEvent() method to retrieve the actual cell object, and from
there call the methods (I think getRow(), and getIndex()), to get the
row and column that it's in.

If you want to do MouseUp handlers etc, shoot me an e-mail and I can
help you with that. That's a bit more convoluted.

On Aug 7, 7:55 pm, Strannik outofvo...@gmail.com wrote:
 Hello,

 Does anyone know how to figure out which cell was clicked on in the
 FixedWidthGrid from the gwt incubator?

 Using grid.addTableListener(...) seems to be deprecated a while ago
 and does nothing (it probably worked in pre gwt-1.6).

 The GWT API reccomends to use:
 HTMLTable.getCellForEvent(com.google.gwt.event.dom.client.ClickEvent)

 however the incubator FixedWidthGrid extends it's own HTMLTable which
 does not even support adding click handlers.

 It is still possible to use .addRowSelectionHandler(..) though that
 does not appear to tell you which cell on a row was clicked.

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



Re: GWT Popup Menu - Close on losing focus

2010-08-09 Thread spierce7
Are you wanting it to close when you lose focus, or simply when your
mouse exits the panel? In my mind, the popup would lose focus when
you actually click outside of the popup, rather than just moving the
mouse out of it. I'm going to address the question in regards to your
mouse exiting the panel as it would be the more difficult thing to do.

I'm not sure what you are using for a pop-up method, but I would
recommend taking a look at the MouseOutHandler, and the
MouseOverHandler. I would add a MouseOutHandler to the popup, so if
they moved the mouse out, it would call a method where you could close
the popup. Another way to do this is if when the popup comes up, you
could create an invisible panel that is in front of your entire
program, but still is behind your popup popup, and give it a
MouseOverHandler so that whenever it is moused over (meaning whenever
you mouseover any part of your program that is not your popup) it will
call a method, that you can have close the popup. Something I'd
consider beforehand is, what if their mouse is not in the popup when
it's created, then it will close really really fast before they have
time to read it. You would have to make sure they mouse over the popup
prior to it being able to close.

If you wanted to do it the focus way, I'd do the latter method listed
above, but rather than using a mouse over handler for the invisible
panel, I'd use a mouse click handler, or MouseDownHandler.

If you are new to GWT Events, I'd recommend taking a look at the
following links:

http://code.google.com/webtoolkit/doc/latest/DevGuideUiHandlers.html
http://gwttutorials.com/2009/07/29/using-gwt-events/

On Aug 6, 1:40 pm, MJ mjones...@gmail.com wrote:
 I have a menubar with several Popup menus.  I would like the popups to
 close if I mouse outside the area of the popup.  I have tried a couple
 of things but nothing seems to work.

 Any suggestions would be greatly appreciated,

 Thanks in advance

 MJ

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



Exception while dispatching incoming RPC call Object Manager has been closed

2010-08-08 Thread spierce7
Hey, I've been trying to get my RPC Call to AppEngine to work since
last Wed, with no luck. My issue now seems to be with my query. I'm
willing to post any code needed, but I just want to get this working,
as this has completely halted me on any further progress on my app.
Everything looks like it should be working. Here is my
TestServiceImpl.java :


package com.spierce7.gwt.test.server;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.logging.Logger;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;
import javax.jdo.Query;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.spierce7.gwt.test.client.TestService;
import com.spierce7.gwt.test.shared.PersistentShift;

public class TestServiceImpl extends RemoteServiceServlet implements
TestService{
private static final Logger LOG =
Logger.getLogger(TestServiceImpl.class.getName());
private static final PersistenceManagerFactory PMF =
JDOHelper.getPersistenceManagerFactory(transactions-optional);

public void addShift(Date startDate, Date endDate) {
PersistenceManager pm = getPersistenceManager();
try {
pm.makePersistent(new PersistentShift(startDate, 
endDate));
} finally {
pm.close();
}
}

public ListPersistentShift getShifts() {
PersistenceManager pm = getPersistenceManager();
ListPersistentShift results = new 
ArrayListPersistentShift();

Query query = pm.newQuery(PersistentShift.class);
query.setFilter(search == 1);

try {
results = (ListPersistentShift) query.execute();
} finally {
pm.close();
}
return results;
}

private PersistenceManager getPersistenceManager() {
return PMF.getPersistenceManager();
}
}
___

My addShift function works fine, and I can add objects to the database
just fine. I just can't retrieve them. I finally changed the objects
in the database to all have an int variable called search, and it's
always set to 1. When I call the getShifts() method though, it gives
me this error:


javax.servlet.ServletContext log: Exception while dispatching incoming
RPC call
Object Manager has been closed
org.datanucleus.exceptions.NucleusUserException: Object Manager has
been closed
at
org.datanucleus.ObjectManagerImpl.assertIsOpen(ObjectManagerImpl.java:
3876)
at
org.datanucleus.ObjectManagerImpl.getFetchPlan(ObjectManagerImpl.java:
376)
at org.datanucleus.store.query.Query.getFetchPlan(Query.java:497)
at org.datanucleus.store.appengine.query.DatastoreQuery
$6.apply(DatastoreQuery.java:631)
at org.datanucleus.store.appengine.query.DatastoreQuery
$6.apply(DatastoreQuery.java:630)
at
org.datanucleus.store.appengine.query.LazyResult.resolveNext(LazyResult.java:
94)
at org.datanucleus.store.appengine.query.LazyResult
$LazyAbstractListIterator.computeNext(LazyResult.java:215)
at
org.datanucleus.store.appengine.query.AbstractIterator.tryToComputeNext(AbstractIterator.java:
132)
at
org.datanucleus.store.appengine.query.AbstractIterator.hasNext(AbstractIterator.java:
127)
at org.datanucleus.store.appengine.query.LazyResult
$AbstractListIterator.hasNext(LazyResult.java:169)
at java.util.AbstractCollection.toString(Unknown Source)
... (it goes on)

___

I saw some examples where queries are ended with query.closeAll(), and
I tried that also, but I get a different error telling me something
couldn't be serialized from the datanucleus. At this point I just want
it to work. Any help, or any ideas would be great. Let me know if
you'd like some other code posted.

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



Transferring data from client to server: Do extra methods add more information that is sent to the server?

2010-08-06 Thread spierce7
If I'm transferring an object that has some persistent data in it to
be saved on the server, from the client to the server (or vice versa),
does me having extra methods in the object, increase the amount of
data transferred between the server and the client? What about extra
variables that are not persisted?

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



Re: Please help - GWT application will not load in IE!

2010-08-06 Thread spierce7
I hate issues like this. Unfortunately, particularly since GWT is
young, I've gotten something working in one browser, only to find it
doesn't work in another browser. Typically I just find a more common
way of going through something.

What I'd recommend is (although it's time consuming), is to comment
out the method that builds your entry GUI, and start adding stuff back
slowly until you get the issue. Try to get it down and figure out
exactly what isn't able to load in I.E. The fact that nothing is
loading makes me think it might be one of the outside layers, perhaps
try some inner layers of the GUI and see what works and what doesn't.

If I got your code, that's what I'd end up doing any ways. Errors like
this can just happen for random reasons, and to my knowledge there
isn't a well this works in all the other browsers, but not I.E.
error. Google has been good about fixing those if I'm not mistaken.

On Aug 6, 7:41 am, Xandel xandelf...@gmail.com wrote:
 Alright, so I tried RootLayoutPanel.get() instead of RootPanel.get()
 and something interesting... The site still does not load up at all
 but there is no Exception thrown and not caught compilation error
 anymore...

 Not sure if that helps... Will keep looking for answers - but please,
 if you require any more information to try and help me solve this just
 ask away!

 Other information I can give you is I am using the MVP design pattern
 as suggested by the GWT team based off their contacts example. So
 while I don't necessarily call
 RootLayoutPanel.get().add(myMainLayoutPanel)) directly I do set
 RootLayoutPanel.get() as a container and then later add the
 myMainLayoutPanel to it. Comes to the same thing I suppose. Just
 trying to think of anything that may help!

 Thanks!

 Xandel

 On Aug 5, 7:15 pm, Katharina Probst kpro...@google.com wrote:

  Maybe it's just me, but it's kind of hard to tell from your description what
  could be wrong.

  I do see that you're using RootPanel mixed with LayoutPanel.  Try adding the
  LayoutPanels to the RootLayoutPanel (something like
  RootLayoutPanel.get().add(myMainLayoutPanel)).

  Also, I assume you compiled your app for the IE permutation(s)?

  kathrin

  On Thu, Aug 5, 2010 at 11:43 AM, Xandel xandelf...@gmail.com wrote:
   Hi there,

   Can somebody please assist me - I have spent the last 3 months writing
   a GWT application and I cannot get it to work in Internet Explorer.
   It's my first GWT application. It works fine in Firefox and Chrome. In
   internet explorer it just doesn't load up.

   Here are some details:

   I am using GWT 2.0.3 developed on Ubuntu 9.03 using Eclipse. At first
   my application was loading from a div tag deep within the DOM's body
   tag - it was like this because I was making use of html and css to
   build a friendly border around the app. All that would happen was
   that the html and images would all load - but my app wouldn't show. I
   have now since moved the application to use the RootPanel.get() so
   that it loads straight from the body tag - no luck, nothing loads up
   at all.

   While my app is simple, it contains a lot of panels within each other
   to build the layout, the main panel being a LayoutPanel. I have tried
   it in quirks-mode and standards-mode and both don't seem to work.

   Another problem I was having which seems to have gone away I described
   on this post on StackOverflow:

  http://stackoverflow.com/questions/3033073/gwt-in-ie8-exception-throw...

   Please can somebody help me. I have already posted on this forum and
   received no help. If anyone has any ideas, or suggestions - I really
   will be appreciative! I can also provide the link to the site on
   request.

   Thanks in advance - if anyone actually sees this.

   Xandel

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

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



Re: add mouse handlers for document body?

2010-08-06 Thread spierce7
What do you mean by document body?

You might want to look into a DOMHandler. That's how I got mouse move
handlers to work on my grid. Grid's don't have an obvious method that
allows you to add a MouseMoveHandler like a lot of other things do
(grids only have addMouseClickHandler). I'd take a look again at what
you want to add the handler too and make sure it doesn't have an
obvious method like that.

Another option is wrapping things in an HTMLPanel, which would allow
you to add a MouseMoveHandler, etc.

~Scott

On Aug 5, 10:11 pm, Randy S. randy.sarg...@gmail.com wrote:
 I'd like to add a MouseMoveHandler and MouseUpHandler to the
 document's body, but haven't discovered how.  Thanks in advance to
 anyone who can answer this.

 -- Randy

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



Re: Database and GWT

2010-08-06 Thread spierce7
Why does no one want to use AppEngine?

On Aug 5, 5:56 pm, Diego Venuzka dvenu...@gmail.com wrote:
 Hi!
 After some hours without sleep to solve my compilation problem, i stop in
 another problem. I'll need to insert data in database, and how GWT can help
 with this? Or i can insert using the tradicional method with Java?
 Thanks =)

 --
 Diego Venuzka

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



Re: uibinder and css

2010-08-06 Thread spierce7
I hope this helps:

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

Look at the Hello Stylish World Example. Good luck!

On Aug 6, 9:38 am, Thomas Van Driessche
thomas.van.driessch...@gmail.com wrote:
 Hi,

 I have a question on using css in gwt.

 I know you can give the ui:style component a src to a css file.
 But what if you want to use the css that is linked in the html page
 from which the javascript from the gwt project is called?

 i tried this:

 g:Button addStyleNames=action ui:field=btnSearch/g:Button

 And in the css file from the host html page i have put:

 .action {
    background-color: green;

 }

 Is this possible?
 Because our javascript that was compiled is called from other html
 pages to.

 kind regards,
 Thomas

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



Error Doing RPC Call with my own return type: org.datanucleus.exceptions.ClassNotResolvedException

2010-08-06 Thread spierce7
Hey, so I can save data to app engine in an entity of type
PersistentShift, a class I made to save shift information. I've got
2 objects I'm saving within the class. Both are Date objects. One is
startDate, one is endDate. I wanted to be able to query the server,
and have a return type of PersistentShift. In order to do this it was
recommended that I put my Persistent shift class in the Shared
package, as opposed to having one in the client package, and one in
the server package. I've done this, and got it to where I can save
data again, but now I'm getting an error when I try to query that
data. Below is the relevant code. My code compiles with no errors:


package com.spierce7.gwt.scheduler.client;

public class Scheduler implements EntryPoint {

private final SchedulerServiceAsync schedulerService =
GWT.create(SchedulerService.class);
public boolean timerSet = false;


public void onModuleLoad() {
//Date startDate = new Date();
//Date endDate = new Date();
//endDate.setHours(endDate.getHours()+1);

//addShift(startDate, endDate);

loadShifts();

}

private void loadShifts() {
schedulerService.getShifts(new
AsyncCallbackListPersistentShift() {
public void onFailure(Throwable error) {
Window.alert(error.getMessage());
}
public void onSuccess(ListPersistentShift results) {
Window.alert(Shift Retrieved Successfully!);
}
});
}
}

==
package com.spierce7.gwt.scheduler.shared;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public final class PersistentShift implements IsSerializable {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
public Long id;
@Persistent
public Date startDate;
@Persistent
public Date endDate;

public PersistentShift() {}

public PersistentShift(Date startDate, Date endDate) {
this.startDate = startDate;
this.endDate = endDate;
}

}

===
package com.spierce7.gwt.scheduler.server;

public class SchedulerServiceImpl extends RemoteServiceServlet
implements SchedulerService {
private static final Logger LOG =
Logger.getLogger(SchedulerServiceImpl.class.getName());
private static final PersistenceManagerFactory PMF =
JDOHelper.getPersistenceManagerFactory(transactions-optional);

public void addShift(Date startDate, Date endDate) {
PersistenceManager pm = getPersistenceManager();
try {
pm.makePersistent(new PersistentShift(startDate, 
endDate));
} finally {
pm.close();
}
}

public ListPersistentShift getShifts() {
PersistenceManager pm = getPersistenceManager();
ListPersistentShift results = new 
ArrayListPersistentShift();

try {
//Query query = pm.newQuery(PersistentShift.class);
//query.setFilter();
//query.declareParameters(SchedulerDate startDate 
SchedulerDate
endDate);
//query.setOrdering(startDate);
Query query = pm.newQuery(SELECT * FROM 
PersistentShift);
results = (ListPersistentShift) query.execute();
} finally {
pm.close();
}
return results;
}

private PersistenceManager getPersistenceManager() {
return PMF.getPersistenceManager();
}
}

===

My server is calling the get shifts method, and this is the error I'm
getting:

org.datanucleus.store.query.AbstractJDOQLQuery init: Candidate class
for JDOQL single-string query (PersistentShift) could not be resolved
PersistentShift
org.datanucleus.exceptions.ClassNotResolvedException: PersistentShift
at org.datanucleus.util.Imports.resolveClassDeclaration(Imports.java:
194)
at
org.datanucleus.store.query.AbstractJDOQLQuery.init(AbstractJDOQLQuery.java:
114)
at
org.datanucleus.store.appengine.query.JDOQLQuery.init(JDOQLQuery.java:
68)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
Source)
...


Any help or suggestions are very welcome! Thanks!

~Scott

-- 
You received this message because you are subscribed to the Google Groups 

Re: How to use gwt to synchronize outlook to get the appoitments of calendar

2010-08-06 Thread spierce7
Your talking about a client side program that goes into the users
system and pulls data?

On Aug 6, 12:52 pm, victor QIN bienvenue...@gmail.com wrote:
 Hello,

    I want to use gwt to connect with outlook and get the appointments
 of outlook. Is there any api for that? Thanks a lot.

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



Worth Upgrading to Eclipse Helios?

2010-08-06 Thread spierce7
Is it worth upgrading to Eclipse Helios? It sounds like some people
are having some issues with it.

Does not having Helios have anything to do with why I haven't been
able to upgrade through the natural upgrade feature in Eclipse to 2.04
GWT?

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



Re: ExceptionInInitializerError during an RPC call.

2010-08-05 Thread spierce7
Nevermind. Someone helped me figure this out. The problem was that my
new class that was in the shared package was extending VerticalPanel,
a non-serializable object. Obviously an issue.

On Aug 5, 8:42 pm, spierce7 spier...@gmail.com wrote:
 I'm getting an error while trying to save an object to the database.
 I'm keeping it simple. I'm just saving an event with a key, a start
 date, and an end date. I had the ability to save an event to the
 server working with an Event class on the server that was
 @PersistenceCapable, and an Event class on the client. The problem
 came in when I was trying to use Event as a return type, as my Service
 and Async methods couldn't tell the difference, and it was recommended
 that I make my Event class in the shared package. Now I've deleted my
 server Event class, and moved my Event class from the client package
 to the shared package. I made it implement IsSerializable, and added
 the proper @PersistenceCapable annotations etc. Now I'm getting this
 error and can't figure out why. Any help would be great! Thanks!

 javax.servlet.ServletContext log: Exception while dispatching incoming
 RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract void
 com.spierce7.gwt.test.client.EventService.addShift(java.util.Date,java.util 
 .Date)'
 threw an unexpected exception: java.lang.ExceptionInInitializerError
         at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 378)
         at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 581)

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



Re: AE / GWT Newb: How to do RPC Call with my own return type?

2010-08-04 Thread spierce7
Thanks so much! I'll give this a shot.

On Aug 4, 4:06 pm, Thomas Dvornik amp...@gmail.com wrote:
 Hey spierce,

 Your event class needs to go in the shared package
 (com.spierce7.gwt.test.shared.Event). Both the server and client will
 use that class. The Event should implement IsSerializable, and have an
 empty constructor at the minimum. As with all serialized objects, all
 it's members need to be serializable. If your using java.util.Date,
 you should be fine.

 Tom

 On Aug 3, 7:14 pm, spierce7 spier...@gmail.com wrote:



  Hey guys, I've been mess making an app for a while now, and I've
  finally got something that is able to save an entity on the server.
  That entity (to keep it simple) is of type Event. It has 2 Date
  objects: startDate and endDate. I understand how to do queries and
  what not, but what I found my program encountering issues with is in
  my method within the ServiceImpl, getEvents(), it's having a difficult
  time distinguishing between my client side Event object and my server
  side. This creates issues when I try to have my return type as
  ListEvent. How should I be handling this? Does the client side Event
  object need to be serializable? I've tried this, still without much
  luck.

  On the client side Service, and ServiceAsync classes, should I be
  declaring the types through the server side object? Example:
  public Listcom.spierce7.gwt.test.server.Event getEvents();
  or should I perhaps be doing the same thing, but with the client side
  on the server? I've tried both of these, but can't seem to get it to
  be happy with whatever I put. Any direction in this would be greatly
  appreciated! Thanks!

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



AE / GWT Newb: How to do RPC Call with my own return type?

2010-08-03 Thread spierce7
Hey guys, I've been mess making an app for a while now, and I've
finally got something that is able to save an entity on the server.
That entity (to keep it simple) is of type Event. It has 2 Date
objects: startDate and endDate. I understand how to do queries and
what not, but what I found my program encountering issues with is in
my method within the ServiceImpl, getEvents(), it's having a difficult
time distinguishing between my client side Event object and my server
side. This creates issues when I try to have my return type as
ListEvent. How should I be handling this? Does the client side Event
object need to be serializable? I've tried this, still without much
luck.

On the client side Service, and ServiceAsync classes, should I be
declaring the types through the server side object? Example:
public Listcom.spierce7.gwt.test.server.Event getEvents();
or should I perhaps be doing the same thing, but with the client side
on the server? I've tried both of these, but can't seem to get it to
be happy with whatever I put. Any direction in this would be greatly
appreciated! Thanks!

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



Error using my own widgets with UIBinder

2010-07-04 Thread spierce7
Hey, I'm getting an error using my own widgets in UIBinder. In this
I'm using the DockLayoutPanel, and everything works fine until I swap
the Label that everything was working with in g:north with my own
widget, WeeklyHeader. I'm getting the following error:
 [ERROR] [scheduler] Unable to load module entry point class
com.spierce7.gwt.scheduler.client.Scheduler (see associated exception
for details)
com.google.gwt.user.client.ui.AttachDetachException: One or more
exceptions caught, see full set in AttachDetachException#getCauses
at
com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:
85)
at com.google.gwt.user.client.ui.Panel.doAttachChildren(Panel.java:
162)
at com.google.gwt.user.client.ui.Widget.onAttach(Widget.java:289)
(... it continues)

Here is my code. I'll separate them by dashes:

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:my='urn:import:com.spierce7.gwt.calendar.client'

g:DockLayoutPanel unit='EM'
g:north size='5'
my:WeeklyHeader /
/g:north
g:center size='5'
g:LabelBody/g:Label
/g:center
g:west size='10'
g:HTML
ul
liSide bar/li
liSide bar/li
liSide bar/li
/ul
/g:HTML
/g:west
/g:DockLayoutPanel
/ui:UiBinder

public class CalendarUI extends Composite {

private static CalendarUIUiBinder uiBinder =
GWT.create(CalendarUIUiBinder.class);
interface CalendarUIUiBinder extends UiBinderWidget, CalendarUI {}

public CalendarUI() {
initWidget(uiBinder.createAndBindUi(this));
RootLayoutPanel.get().add(uiBinder.createAndBindUi(this));
}
}

The WeeklyHeader Class extends Grid:
public class WeeklyHeader extends Grid {



The best guess I've got is that my widget is supposed to extend
something, or implement something. I can't figure it out for the life
of me. Any help is much 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Error Using My Own Widgets in UIBinder

2010-06-27 Thread spierce7
Still finding a similar error:
[ERROR] In g:DockLayoutPanel unit='EM', g:north must contain a
widget, but found my:WeeklyHeader ui:field='header'

I am allowed to use my own widgets right? Again, not really sure what
to do... Everything looks right... Am I supposed to have some code in
the SchedulerUI.java that references these widgets maybe? My
SchedulerUI.java has almost nothing in it.

package com.spierce7.gwt.scheduler.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class SchedulerUI extends Composite {

private static SchedulerUIUiBinder uiBinder = GWT
.create(SchedulerUIUiBinder.class);

interface SchedulerUIUiBinder extends UiBinderWidget, SchedulerUI {
}
}

On Jun 27, 7:07 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 27 juin, 00:16, spierce7 spier...@gmail.com wrote:



  Hey, I'm trying to convert my layout to UI Binder because my current
  layout is a bit laggy. It's giving me an error though: [ERROR]
  [scheduler] In g:DockLayoutPanel unit='EM', g:north must contain a
  widget, but found my:WeeklyHeader

  I read the first 3/4 of what's 
  onhttp://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html
  but can't really find anything on this, except for using the prefix
  my. I'm not familiar with XML Layout creation, and I've been
  scouring the internet for tutorials, but I can't really find anything
  but people using your basic GWT layout widgets. Perhaps what I'm
  missing something on the basic usage of this. I'm trying to start
  simple. Here is my XML:

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

 You forgot the urn:import: part. It should read:

    xmlns:my=urn.import:com.spierce7.gwt.scheduler.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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Error Using My Own Widgets in UIBinder

2010-06-26 Thread spierce7
Hey, I'm trying to convert my layout to UI Binder because my current
layout is a bit laggy. It's giving me an error though: [ERROR]
[scheduler] In g:DockLayoutPanel unit='EM', g:north must contain a
widget, but found my:WeeklyHeader

I read the first 3/4 of what's on 
http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html
but can't really find anything on this, except for using the prefix
my. I'm not familiar with XML Layout creation, and I've been
scouring the internet for tutorials, but I can't really find anything
but people using your basic GWT layout widgets. Perhaps what I'm
missing something on the basic usage of this. I'm trying to start
simple. Here is my XML:

!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
xmlns:my=com.spierce7.gwt.scheduler.client
g:DockLayoutPanel unit='EM'
g:north
my:WeeklyHeader ui:field='header' /
/g:north
g:center
my:WeeklyAbsolutePanel ui:field='panel'
my:WeeklyGrid ui:field='grid' /
/my:WeeklyAbsolutePanel
/g:center
/g:DockLayoutPanel
/ui:UiBinder



And here is the old code I've got commented out that I'm trying to
eventually replace:
VerticalPanel verticalPanel = new VerticalPanel();
final WeeklyHeader weeklyHeader = new WeeklyHeader();
ScrollPanel scrollPanel = new ScrollPanel();
WeeklyAbsolutePanel weeklyPanel = new WeeklyAbsolutePanel();
final WeeklyGrid weeklyGrid = new WeeklyGrid(weeklyHeader,
weeklyPanel);

weeklyHeader.setWeeklyGrid(weeklyGrid);

verticalPanel.setWidth(100%);
verticalPanel.setStyleName(verticalPanel);
verticalPanel.setSpacing(0);
scrollPanel.setHeight(800px);

weeklyPanel.add(weeklyGrid);
scrollPanel.add(weeklyPanel);
verticalPanel.add(weeklyHeader);
verticalPanel.add(scrollPanel);
RootPanel.get().add(verticalPanel);

Any help is appreciated. Thanks! (I'd like a link to a better tutorial
as well, if anyone has one)

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



UIBinder Benefits?

2010-06-20 Thread spierce7
Does using the UI Binder provide any benefits? I watched some of the I/
O conference, and it seemed like they made reference that the UI
Binder using the browsers native rendering engine (or something like
that), and it being a lot faster, but they didn't really specify
whether that was the layout panels, or using the ui binder.

What are the benefits to using the UIBinder, and where can I learn to
use 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: UIBinder Benefits?

2010-06-20 Thread spierce7
thanks :-)

On Jun 20, 9:39 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
 http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html

 I think you will have idea of the benefits once you start reading that. :)

 On Mon, Jun 21, 2010 at 3:23 AM, spierce7 spier...@gmail.com wrote:
  Does using the UI Binder provide any benefits? I watched some of the I/
  O conference, and it seemed like they made reference that the UI
  Binder using the browsers native rendering engine (or something like
  that), and it being a lot faster, but they didn't really specify
  whether that was the layout panels, or using the ui binder.

  What are the benefits to using the UIBinder, and where can I learn to
  use 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-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

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



Needs Scroll Panel and Resize Help

2010-06-19 Thread spierce7
Hey, I'm trying to make a program that is very similar to Google
Calendar. One of the things I'm currently trying to implement, is I
want the top line in the grid to maintain stationary, while the rest
of the calendar is scrollable (this way the dates over the columns are
always visible. So I broke the first row of the calendar off into it's
own Object called weeklyHeader, and set it to the same style so that
it would match, but now since it's apart I have to have it resize, and
the way I've currently figured out how to do that, I'm not very happy
with, as it's laggy. I've also noticed that now since I've added the
resize handler, the entire browser lags when I resize it (Make the
browser window small, and play around with it and you'll see what I'm
talking about). What else can I do to fix this?

My second issue that I'm dealing with is I'm trying to add a scroll
panel to the actual calendar part, however the only way I've gotten
this to work is through setting an actual pixel height rather than a
percent, and I think I need it to be a percent. I can't have it as a
percent though because their is one other widget that takes up 19
pixels above it. What can I do to make the scroll panel have dynamic
height in terms of browser height?

Here is a link to my program so you can see what I am talking about:
http://internetexample.appspot.com/

Here is my EntryPoint code so you can understand how I have things
currently set up:
public class Scheduler implements EntryPoint {
public boolean timerSet = false;

public void onModuleLoad() {
VerticalPanel verticalPanel = new VerticalPanel();
final WeeklyHeader weeklyHeader = new WeeklyHeader();
ScrollPanel scrollPanel = new ScrollPanel();
WeeklyAbsolutePanel weeklyPanel = new WeeklyAbsolutePanel();
final WeeklyGrid weeklyGrid = new WeeklyGrid(weeklyHeader,
weeklyPanel);

weeklyHeader.setWeeklyGrid(weeklyGrid);

verticalPanel.setWidth(100%);
verticalPanel.setStyleName(verticalPanel);
verticalPanel.setSpacing(0);
scrollPanel.setHeight(800px);

weeklyPanel.add(weeklyGrid);
scrollPanel.add(weeklyPanel);
verticalPanel.add(weeklyHeader);
verticalPanel.add(scrollPanel);
RootPanel.get().add(verticalPanel);

final Timer resizeTimer = new Timer() {
@Override
public void run() {
weeklyHeader.onLoad(); //this calls a an 
overridden onLoad() where
I have the super.onLoad() called and
setWidth(weeklyGrid.getOffsetWidth() + px);
timerSet = false;
}
};

// Handle window Resizing
Window.addResizeHandler(new ResizeHandler() {
public void onResize(ResizeEvent event) {
if(!timerSet){
resizeTimer.schedule(50);
timerSet = true;
}
}
});
}
}

ANY help would be greatly appreciated. I'm a GWT newb pretty much
trying to figure things out as I go along, so please don't assume I
may have done something I should have. Thanks!

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



Get Width of Browser Scroll Bar?

2010-06-19 Thread spierce7
Is there a way to get the width of the scroll bar for the browser?

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



Stop Cell Selections in a Grid

2010-06-17 Thread spierce7
Hey, I have a grid where I have some click and drag features on, but
the problem is whenever I drag, the grid will select multiple rows of
cells in the grid. How can I keep this from happening, besides using
the css select option:

.notclickable { cursor: default; user-select: none; -moz-user-select:
none; -webkit-user-select: none; } 

That only works in a few browsers, and I need something to work on all
major browsers. Someone recommended the Event.sinkEvents but I have no
idea how to apply this to a grid or other objects. Any help in any
direction would be 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Stop Cell Selections in a Grid

2010-06-17 Thread spierce7
I was playing around with the CSS option, and it doesn't work in IE. I
need something that works in all major browsers.

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



Get today's date, and the first day of this week's date?

2010-06-08 Thread spierce7
Hey guys, I just found out that the Java Calendar class isn't
compatible with GWT (Assumed it was since Date was). I'm a Java newb
and spent a few hours figuring out how to do what I wanted to do with
the Calendar class, and I'm clueless how to do this with GWT, so any
help would be appreciated.

1. Get today's date.
2. Using the current date, get the date of the first day of the week
(Sunday), and I think I might need to know how to get the end date
also.
3. How to Add and subtract a number of days to a date.
4. I need to know how to parse all the above questions information
into a string.

Off the top of my head, that's what I'm trying to do. 1 More question:
5. Would it improve performance while handling a start date and an end
date for an event, instead of keeping an end date, calculating the
duration that the event would last, rather than calculating the date?
Would it even be worth it? (A friend recommended this)

6. Are we seeing any updates coming for working with dates? I'm
currently using GWT 2.03.

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



Re: Adding event handler to the document

2010-06-08 Thread spierce7
I'd be interested to know this as well. Something like this isn't
possible with a click handler, but perhaps with a keypress handler?

On Jun 8, 4:54 pm, Raziel raziel...@gmail.com wrote:
 What's the best way to add an event handler (for example for keyboard
 events) to the entire document?

 I need something more general than the FocusPanel; specially because
 I cannot attach a FocusPanel to my application's body.

 I've seen some solutions sinking events and using
 addNativePreviewHandler but it seems kinda overly complicated for
 something that should probably be no more than a line of code. Then
 there's also warnings like Please note that nondeterministic behavior
 will result if more than one GWT application registers preview
 handlers. See issue 3892 for details. that tell me I should be extra
 careful with this.

 Thanks

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



Re: Get today's date, and the first day of this week's date?

2010-06-08 Thread spierce7
Guys, thank you so much for your replies! I've got my program doing
what I needed it to :-) Thank you very much!

Lothar, your code works (at least for the current date) :
DateTimeConstants constants =
LocaleInfo.getCurrentLocale().getDateTimeConstants();
int firstDay = Integer.parseInt(constants.firstDayOfTheWeek()) - 1;
int offset = firstDay - date.getDay();
date.setDate(date.getDate() + offset);

However, I can't find a way to get the first day of the week for any
given date. For instance, lets say I wanted to find the first day of
the week for September 27th, 2010, how would I do that?

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



Re: Touchscreen laptops - access touch events?

2010-06-05 Thread spierce7
I don't think there is a way to access touch events in and of
themselves. Touch screens are just simply another way of controlling
the mouse for the computer. In terms of phones, when they touch a
link, its equivalent to them clicking the link. Basically what I'm
saying is that a touch event should be looked at by the browser, and
thus GWT, as just simply a mouse click/move.

On Jun 5, 8:54 pm, Dominik Steiner dominik.j.stei...@googlemail.com
wrote:
 Hi there,

 is there a way to get touch events from touchscreen laptops or desktop
 computers? Am I right that only the iphone and android browser support
 touch events so far? So that it is not possible to access those touch
 events from the touchscreen computers?

 Thanks

 Dominik

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



How to not allow users to select something, say a grid?

2010-06-05 Thread spierce7
I've got a Grid with click handlers inside of an Absolute Panel. When
I'm clicking the grid to trigger some of the events, particularly with
drag events, I've noticed that different parts of my grid are selected/
highlighted. Is there a way to control this and turn this off for
different widgets? I'd also like to be able to do this with my labels.

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



Get Grid HTML objects for Cells within a Grid so that I can add Mouse/ClickHandlers?

2010-06-03 Thread spierce7
Hey, I need to be able to have events within a grid for mouse overs,
mouse ups, etc for individual cells on a grid and since it seems that
I can't add a click handler for mouse overs etc for the whole grid,
I'd like to be able to get at the individual HTML objects for cells,
or an html object that's consistent for each cell or row or column, so
that I can add different mouse handlers to them, and don't have to add
my own html objects to each cell.

Any thoughts?

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



How do I detect Mouse Up, Mouse Out, Mouse Over, etc on Grid Cells?

2010-06-02 Thread spierce7
I need to be able to do this efficiently in a 50X8 Grid. I need it for
the individual cells within the grid. It seems that all I can get to
work on my grid is a simple click handler.

Grid.addClickHandler(this);
and then whenever a click event occurs (a click down and then a click
up in the same cell), it fires public void onClick(ClickEvent event).
I need much more usability than this for my individual cells.

I was playing around with the idea of possibly adding a blank html
object to each of the cells and having it fill the cells, but this
seems like it would be slow, and I would run into some problems down
the road with table borders. Is there a way that I could access the
Grids native HTML cell objects themselves? If I could somehow access
those I would be able to add click handlers and what not. Still not an
ideal method, but better than adding my own HTML panels and dealing
with border issues.

Do I have any other options?

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



Re: Dialog Box Dragging?

2010-06-01 Thread spierce7
This is probably not the best way, but you could try the dnd library,
and set up the message box as dragable via that library, and then that
wouldn't be able to happen possibly.

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

The examples show how to do it pretty well. You wouldn't need anything
too advanced either.

On Jun 1, 10:25 am, Tristan tristan.slomin...@gmail.com wrote:
 Haven't done this, but you should be able to write a handler when you
 release the mouse button that checks the dialog box position and if it
 is off the visible screen (outside some safe area you define), it
 places it in the center.

 On May 31, 10:59 pm, Sabbir leo.sh...@gmail.com wrote:

  When a DialogBox is dragged off the screen and realease ur mouse,
  everthing gets locked. Cant even see the dialog box to drag back...

  any solutions?

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



Need a way to get width of each column in a Grid

2010-05-31 Thread spierce7
I'm trying to find a way to get the specific width of each column
individually within a grid. Height isn't as important, but I wouldn't
mind knowing that either. I don't need the table total width, but
rather specific columns.

Getting the absolute location of a cell, column, or row might also
work. I've been looking for over an hour now and can't seem to find a
way.

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



Re: Need a way to get width of each column in a Grid

2010-05-31 Thread spierce7
Never mind guys. Figured it out. Just in case there are any searches:

public CellFormatter cellFormatter = new CellFormatter();
public Element cellElement;

and then I made 2 methods that I found very useful within my class
that extends Grid:

public int getColumnWidth(int column) {
cellElement = cellFormatter.getElement(0, column);
return cellElement.getClientWidth();
}

public int getColumnOffset(int column) {
cellElement = cellFormatter.getElement(0, column);
return cellElement.getOffsetLeft();
}

in the getElement function you can specify a row also, but I chose to
use 0 because all my columns in a given row have the same width. Be
wary though, I've noticed it rounds. I used a similar method to get
the total width for the table, and then I subtracted all the column
widths while the borders were set to 0, and the result I got was -3.
So there is slight rounding going on, which is why I found the
getOffsetLeft method of Element so useful since its more accurate for
me to get exactly where something is placed.

Best of luck!

On May 31, 10:33 pm, spierce7 spier...@gmail.com wrote:
 I'm trying to find a way to get the specific width of each column
 individually within a grid. Height isn't as important, but I wouldn't
 mind knowing that either. I don't need the table total width, but
 rather specific columns.

 Getting the absolute location of a cell, column, or row might also
 work. I've been looking for over an hour now and can't seem to find a
 way.

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



Re: Add a Widget into/onto Grid without resizing Grid Cell/Column

2010-05-30 Thread spierce7
Anyone? Any thoughts?

On May 27, 10:51 am, spierce7 spier...@gmail.com wrote:
 Hey, I'm making a calendar-like application, and right now I'm just
 messing around with different options. One of the things I absolutely
 need is to be able to place a group of widgets/panel on a panel on or
 over a table/grid that I've set up with click listeners, and have the
 Grid not resize to accomodate the size of the widgets/panel. Up until
 now I've just been using a single widget for tests, so I've been using
 a SimplePanel(), but I need to add a top and a bottom to the widget
 now, so I need to use a VerticalPanel(). I've got the program set up
 so that when I click a blank cell on the table, it creates a label and
 places it there. It's been doing what I wanted it to do, as in adding
 the label to the Grid, and not re-sizing the row to fit it's size
 (Here is an example:http://internetexample.appspot.com/If you view
 it in Firefox, it does what I want it too, but if you do it in chrome,
 it doesn't do what I want it to). How can I properly get it to work in
 all browsers, preferably with a label and a few widgets within a
 VerticalPanel. Thanks!

 ~Scott

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



Add a Widget into/onto Grid without resizing Grid Cell/Column

2010-05-27 Thread spierce7
Hey, I'm making a calendar-like application, and right now I'm just
messing around with different options. One of the things I absolutely
need is to be able to place a group of widgets/panel on a panel on or
over a table/grid that I've set up with click listeners, and have the
Grid not resize to accomodate the size of the widgets/panel. Up until
now I've just been using a single widget for tests, so I've been using
a SimplePanel(), but I need to add a top and a bottom to the widget
now, so I need to use a VerticalPanel(). I've got the program set up
so that when I click a blank cell on the table, it creates a label and
places it there. It's been doing what I wanted it to do, as in adding
the label to the Grid, and not re-sizing the row to fit it's size
(Here is an example: http://internetexample.appspot.com/ If you view
it in Firefox, it does what I want it too, but if you do it in chrome,
it doesn't do what I want it to). How can I properly get it to work in
all browsers, preferably with a label and a few widgets within a
VerticalPanel. Thanks!

~Scott

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



onLoad?

2010-05-26 Thread spierce7
Hey guys, I'm creating a class that extends Label, and for some reason
whenever I create an instance of it, it doesn't load the onLoad()
class when it's instantiated. I've got it set up the exact same way I
have a class that extends grid, that properly uses onLoad, but for
some reason this isn't.

The idea occurred to me that I don't even really know what onLoad does
exactly. What is the difference between onLoad and a constructor, and
how should I be using them differently? (yes I did a search). Out of
curiosity how does onModuleLoad() fit into the mix also? Thanks!

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



Add a Widget over a grid that extends over multiple cells?

2009-12-29 Thread spierce7
Hey, in your opinion is it possible to add a panel over top of a grid
that extends over multiple cells? My goal is to have the panel snap to
the grid. If you don't think it's possible, please let me know too.
Thanks!

--

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




Re: DropZap web demo built using GWT

2009-12-28 Thread spierce7
nice game! I found it pretty difficult though. I couldn't get halfway
through the second level.

On Dec 28, 7:35 pm, amich...@gmail.com amich...@gmail.com wrote:
 Hello,

 Check it out:

 http://dropzap.appspot.com

 Amir

--

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




GWT Noob: Click Handlers and Grid/Flex Table

2009-12-27 Thread spierce7
Alright, so I am trying for the life of me to understand how to do
this. I'm a GWT noob at the moment, and I'm really struggling to
understand how to fully implement clickhandlers in a grid or flex
table to figure out where they are clicking within the grid.
Apparently from what I can see so far is that individual click
handlers for each location in the grid were not meant to be
implemented. Instead it seems that I can implement a single click
handler for the entire grid, and then somehow using getCellForEvent
(ClickHandler handler) I can figure out where was clicked and then
have it react, but I can't seem to figure out how to implement
getCellForEvent() into my code. Here's what I'm using:

private Grid calendarGrid = new Grid(4,4);
private int cellNum;

public void onModuleLoad() {
// Put some values in the grid cells.
for (int row = 0; row  4; ++row) {
  for (int col = 0; col  4; ++col)
calendarGrid.setText(row, col, ( + row + ,  + col + ));
}
calendarGrid.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
getCellForEvent(event);
}
});

RootPanel.get().add(calendarGrid);

}

What I'm ultimately trying to do:
I'm trying to make something very similar to what's here:
http://google.latest.gwt-web-calendar.appspot.com/
I need to make a calendar-ish program but have some unique
functionality. Everything will be easy enough, but I need to have an
in-depth understanding of how to manipulate the events on such a
calendar once I have it made. The reason I bring this up, is because I
currently intend to have the calendar aspect just be one big grid, and
act according to clicks and drags. I'm not sure if this is a very
efficient way though, and I can't figure how I would display multiple
events, but once I get that figured out I need to have the events
dragable. That seems manageable on a grid (I think), I'm just not sure
how I would limit events to parts of a grid space.

So my questions:
1. How would I implement getCellForEvent into my above code?

2. Do you think my current idea of how to implement my program idea is
going to be effective? Is there perhaps another way you feel I should
do it?

3. What way would you recommend I handle events within the calendar?
That seems to be the part that I'm having the most difficulty
conceptualizing at the moment.

Thanks in advance!

~Scott

--

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




Re: GWT Noob: Click Handlers and Grid/Flex Table

2009-12-27 Thread spierce7
I finally figured out my own answer to question 1. I had to make an
HTMLTable.Cell object and set it equal to the results of the
getCellForEvent(event), then from there call some functions to get the
cell indexes. I had tried that but forgot to capitalize the C in Cell.
Anyways, I'd still really love input on questions 2 and 3. :-)

On Dec 27, 10:00 pm, spierce7 spier...@gmail.com wrote:
 Alright, so I am trying for the life of me to understand how to do
 this. I'm a GWT noob at the moment, and I'm really struggling to
 understand how to fully implement clickhandlers in a grid or flex
 table to figure out where they are clicking within the grid.
 Apparently from what I can see so far is that individual click
 handlers for each location in the grid were not meant to be
 implemented. Instead it seems that I can implement a single click
 handler for the entire grid, and then somehow using getCellForEvent
 (ClickHandler handler) I can figure out where was clicked and then
 have it react, but I can't seem to figure out how to implement
 getCellForEvent() into my code. Here's what I'm using:

 private Grid calendarGrid = new Grid(4,4);
         private int cellNum;

         public void onModuleLoad() {
                 // Put some values in the grid cells.
             for (int row = 0; row  4; ++row) {
               for (int col = 0; col  4; ++col)
                 calendarGrid.setText(row, col, ( + row + ,  + col + ));
             }
             calendarGrid.addClickHandler(new ClickHandler() {
                 public void onClick(ClickEvent event) {
                         getCellForEvent(event);
                 }
             });

             RootPanel.get().add(calendarGrid);

         }

 What I'm ultimately trying to do:
 I'm trying to make something very similar to what's 
 here:http://google.latest.gwt-web-calendar.appspot.com/
 I need to make a calendar-ish program but have some unique
 functionality. Everything will be easy enough, but I need to have an
 in-depth understanding of how to manipulate the events on such a
 calendar once I have it made. The reason I bring this up, is because I
 currently intend to have the calendar aspect just be one big grid, and
 act according to clicks and drags. I'm not sure if this is a very
 efficient way though, and I can't figure how I would display multiple
 events, but once I get that figured out I need to have the events
 dragable. That seems manageable on a grid (I think), I'm just not sure
 how I would limit events to parts of a grid space.

 So my questions:
 1. How would I implement getCellForEvent into my above code?

 2. Do you think my current idea of how to implement my program idea is
 going to be effective? Is there perhaps another way you feel I should
 do it?

 3. What way would you recommend I handle events within the calendar?
 That seems to be the part that I'm having the most difficulty
 conceptualizing at the moment.

 Thanks in advance!

 ~Scott

--

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




How can I work with other people's code in Eclipse?

2009-12-24 Thread spierce7
Hey guys, I've been trying for the longest time now to find a way to
work with other peoples open source projects in eclipse. I've got
their project in a jar file, and I'm trying to find a way to pull it
into eclipse and make some modifications. Any help would be much
appreciated! Thanks!

~Scott

--

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




Re: Need to use GWT to make a program similar to Google Calendar, How would you do it?

2009-10-07 Thread spierce7

@Chris, The first link you gave was actually the link that I
originally linked. I'd love to see Ray Ryan's talk on Model View
Presenter design though.
Also, that DND library is pretty awesome though! That is definitely
useful! Thank you for that!

@Paul, That calendar is much better made than the one I found... Thank
you for that. I think I might end up just trying to edit that rather
than re-create the wheel. Or at least try to understand how he did it,
and maybe get a better idea for how to make mine. Thank you!

On Oct 6, 11:23 am, Paul Robinson ukcue...@gmail.com wrote:
 You might like to take a look here as well:
    http://code.google.com/p/ftr-gwt-library/

 Chris Ramsdale wrote:
  This sounds like a great project and the Calendar example
  http://google.latest.gwt-web-calendar.appspot.com/ that you are
  working from has some nice layout and UI elements. There are several
  routes that you can take in terms of design, each with their own set
  of pros and cons. GWT is quite flexible, and even if you choose to
  implement this solution with a single large table (that I assume
  represents the main calendar grid) you can easily flip to a model
  where the table contains child elements that are themselves
  responsible for handling various events. You won't pigeon hole
  yourself.  

  I've included some useful GWT related info below that should help you
  get started on design as well as drag and drop (DND) implementation.

  Ray Ryan's talk regarding Model View Presenter design:
 http://google.latest.gwt-web-calendar.appspot.com/

  Fred Sauer's GWT compatible DND library:
 http://code.google.com/p/gwt-dnd/

  Hope this helps,
  Chris Ramsdale

  On Tue, Oct 6, 2009 at 10:14 AM, spierce7 spier...@gmail.com
  mailto:spier...@gmail.com wrote:

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



How to open and edit a library in Eclipse?

2009-10-07 Thread spierce7

Hey, I've been wondering the best way to do this for a while. Now it's
something I need to do. I need to be able to get at the source code,
and specifically edit this: http://code.google.com/p/ftr-gwt-library/

What is the best way to go about editing it with eclipse? Ideally I'd
like to have the whole thing be it's own project, but either way I'd
love some help doing this. 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: Need to use GWT to make a program similar to Google Calendar, How would you do it?

2009-10-06 Thread spierce7

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



Need to use GWT to make a program similar to Google Calendar, How would you do it?

2009-10-05 Thread spierce7

I found this online: http://google.latest.gwt-web-calendar.appspot.com/

Again, my goal is to make something similar to that, but something
that's more customized to my needs. Instead of editing his code, I'm
just going to make my own so I'll learn during the process as well.
I'm reasonably experienced with programming, and I've spent a few
hours here and there over the past few weeks reading over some
articles and going through some of the tutorials for GWT. I think I'm
ready to kind of dive head first and give this a shot, but I figured
I'd ask for some advice beforehand since I don't have a ton of
experience creating GUI interfaces.

So right now, I'm looking at making a few panels, and inside one of
the panels having a big table, then having click/drag listeners
respond by changing cell color as I drag over something. Somehow
though, I kind of feel like this isn't going to leave me with a very
good working or good looking product. Right now, I think it's more
important to get everything working, and smooth everything up later,
but at the same time, I'd rather not just flat out waste time, so I'd
love any input you can give me. 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
-~--~~~~--~~--~--~---



Is Google Web Toolkit for me?

2009-09-02 Thread spierce7

Hey, I'm looking to make a webapp, and right now I'm really intrigued
by what the Google Web Toolkit offers. I'm familiar with PHP, MySQL,
HTML, and CSS from a few years ago, and I've taken a few Java classes
a few years back. Right now I'm trying to make a Web App that is very
similar to a calendar that is going to manipulate dates and times and
what not. I was going to use AJAX to connect with the server, and PHP
to manipulate the dates etc. Anyways, I read some articles, such as
this: 
http://www.ryandoherty.net/2007/04/29/why-google-web-toolkit-rots-your-brain/
and was wondering what you guys have experienced with this. I LOVE
google products, so I figured this couldn't be bad, but I thought I'd
get a second oppinion before I started devoting large amounts of time
learning to do something to just find that I'd have been better off
sticking with PHP, JS,  CSS.

By the way, I'm going to need to integrate with a web database. The
obvious one for me was MySQL, but that was mainly because PHP
integrates so easily with it. What kind of options do I have with this
while using GWT? I'd rather not have to have GWT integrate with PHP,
and then MySQL, or some other ridiculous thing. What options do I have
here? 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
-~--~~~~--~~--~--~---