Re: Facebook like/send buttons: using XFBML from GWT

2011-05-23 Thread KaffeineComa
Hi Librarian, We had *some* success in getting the FB buttons to work by hosting them on a JSP, and then viewing them via an iframe in the GWT app. You'll still potentially have rendering issues, as the FB buttons like to open popup divs when clicked, and it can be tricky to make things display

Facebook like/send buttons: using XFBML from GWT

2011-05-05 Thread KaffeineComa
Has anyone had any success getting Facebook Like/Send buttons to work using XFBML? The issues I'm running into are: 1. I want to show the buttons dynamically, based on the user "navigating" to a particular state of my GWT app. I'm fine with including the FB script in my host page, as long as I

Re: integrating adBrite with UIBinder- escaping ampersands in XML

2011-04-18 Thread KaffeineComa
Hmm, so a little more progress on the JSNI front. The following seems to get the remote script at least attached to the DOM. But it results in "Warning: a call to document.write() from an asynchronously-loaded external script was ignored" in Firefox. I guess this is SOP that I'm running into

Re: how to return errors from RequestFactoryServlet?

2011-04-04 Thread KaffeineComa
Hi Thomas, On Friday, April 1, 2011 9:27:56 PM UTC-4, Thomas Broyer wrote: > Construct a ServerFailure from a given Throwable. You can then pass > specific "tokens" that your client code will be able to analyze (if needed), > but more importantly, you can tell whether the error should be cons

Re: how to return errors from RequestFactoryServlet?

2011-04-01 Thread KaffeineComa
Hi Khiem, thanks for your reply. Are you saying that RequestFactoryServlet must be extended, and an ExceptionHandler must be installed somehow? If so, what exactly does the ExceptionHandler need to do? My server code is already throwing exceptions; it's just that they're not getting propagate

how to return errors from RequestFactoryServlet?

2011-03-31 Thread KaffeineComa
Like the asker of this question: http://stackoverflow.com/questions/5277084/handling-gwt-requestfactory-server-error-responses I'd like to be able to return errors to the front-end when RequestFactoryServlet encounters a problem. Thrown exceptions never seem to result in onFailure() or onViola

Re: how to aggregate entities using RequestFactory

2011-03-06 Thread KaffeineComa
Ah, I thought I had to have a separate RequestContext for each entity, each with magic naming conventions. Upon closer reading, the naming conventions only have to be in the entities themselves (e.g. "findEntity"), not in the RequestContext. That helps a lot Thomas, thank you. -- You receive

how to aggregate entities using RequestFactory

2011-03-06 Thread KaffeineComa
I have a page that acts as an editor for multiple distinct entity classes- Person and Skills. So when I save my changes, I end up having two separate calls: personRequest.persist().using(person) skillRequest.persist().using(skill) Is there a way to create an aggregate parent entity for these

Re: how to secure RequestFactory in GWT 2.2

2011-03-03 Thread KaffeineComa
Kathiravan, I believe that a large part of the discussion in that FAQ has to do with implementing "remember me" functionality, whereby you persist the session information (or some hash thereof) in a cookie. I'm not using that functionality, and so I'm simply relying on the session management pr

Re: how to secure RequestFactory in GWT 2.2

2011-03-03 Thread KaffeineComa
Hi Thomas, Thank you. I actually came to the same solution just a few minutes after posting my plea for help. Here's my code, for anyone else who'd like to benefit: http://stackoverflow.com/questions/4557286/how-to-handle-security-constraints-using-gwt-2-1s-requestfactory/5183802#5183802 It

Re: how to secure RequestFactory in GWT 2.2

2011-03-03 Thread KaffeineComa
OK, I feel as if I'm solving this problem via Rubber duck debugging; sitting down to phrase my question reveals a potential solution: - create MyRequestFactoryServlet that extends RequestFactoryServlet (I didn't realize this was an opti

Re: how to secure RequestFactory in GWT 2.2

2011-03-03 Thread KaffeineComa
FWIW, I also tried securing my services layer by using a servlet Filter (same way that I'm using a PersistenceFilter to manage by EntityManager{Factory}). I was hoping to query the user's session for a "loggedInUser" object, but was stymied by the fact that the Filter interface only has a Servl

Re: how to secure RequestFactory in GWT 2.2

2011-03-03 Thread KaffeineComa
Hey Google GWT developers, could we get a response to this question please? You've created this elaborate editors framework that lots of people are trying to adopt, but there seems to be no way to secure it on the server side. Without any server-side checks, attackers are free to query, modify

how to secure RequestFactory in GWT 2.2

2011-03-01 Thread KaffeineComa
I tried securing my RequestFactoryServlet using the recommendation found here, but apparently that's out of date, as the UserInformation class does not seem to exist in GWT 2.2. What's the current recommendation for

Re: how to ensure a single EntityManager per request?

2011-02-15 Thread KaffeineComa
Ah, good catch. Example updated, 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.

Re: how to ensure a single EntityManager per request?

2011-02-15 Thread KaffeineComa
Hi Y2i, I applied your suggestion and it does indeed work, thank you. Details (including code) of what I am currently using are available here . Thanks -- You received t

how to ensure a single EntityManager per request?

2011-02-13 Thread KaffeineComa
It's been mentioned that in order for chained persistence to work with RequestFactory, you have to use the same EntityManager instance for a given request. What's the best way to accomplish that? I tried creating my own EntityManager factory based on ThreadLocal, but I wasn't sure when it woul

Re: clicking outside of widget seems to disable NativePreviewHandler ONKEYPRESS

2010-11-28 Thread KaffeineComa
a ProtectedDisplay, which requires me to pass around a reference to my original panel. But it works. On Nov 27, 8:03 pm, KaffeineComa wrote: > I'm using a NativePreviewHandler to intercept ONKEYPRESS events > application-wide. I'm doing this so that I can implement a customized &

clicking outside of widget seems to disable NativePreviewHandler ONKEYPRESS

2010-11-27 Thread KaffeineComa
I'm using a NativePreviewHandler to intercept ONKEYPRESS events application-wide. I'm doing this so that I can implement a customized text entry widget (example at http://www.quickbrownfrog.com/#!typing:lesson:lesson001.xml:1). It's been working fine, but I recently noticed a problem on IE8: if th

Re: proper way to loop Animations

2010-11-22 Thread KaffeineComa
Thanks, > John LaBanca > jlaba...@google.com > > On Mon, Nov 22, 2010 at 6:45 PM, KaffeineComa wrote: > > > > > Curiously, if I call run() via a ScheduledCommand off of my > > onComplete() it works fine. > > > On Nov 22, 6:34 pm, KaffeineComa wrote:

Re: proper way to loop Animations

2010-11-22 Thread KaffeineComa
Curiously, if I call run() via a ScheduledCommand off of my onComplete() it works fine. On Nov 22, 6:34 pm, KaffeineComa wrote: > I have a simple anonymous Animation extension that manipulates an > element's backgroundColor. It works fine, until I try to "loop" the >

proper way to loop Animations

2010-11-22 Thread KaffeineComa
I have a simple anonymous Animation extension that manipulates an element's backgroundColor. It works fine, until I try to "loop" the animation by calling run() via onComplete. This causes the JVM to crash hard with: Invalid access of stack red zone 0x1674b6fe8 rip=0x1010c307f This is in Safar

groups.google.com pagerank seems off

2010-11-19 Thread KaffeineComa
Often when googling for various GWT-related issues I get results that point to the site osdir.com. Apparently this site scrapes the GWT group for its content, which it then surrounds with various ads. It's slow to load and hard to read (the content column is rather small in comparison to the ads).

Re: extending PushButton results in "invalid child namespace" error in UIBinder

2010-11-07 Thread KaffeineComa
Ah, so simple. Thanks! On Nov 5, 2:53 am, Amir Kashani wrote: > Instead of use > > The namespace of the child element must match that of its parent. > > - Amir > > On Nov 4, 5:47 pm,KaffeineComa wrote: > > > > > I have a simple class that extends PushButton

extending PushButton results in "invalid child namespace" error in UIBinder

2010-11-04 Thread KaffeineComa
I have a simple class that extends PushButton to add a tooltip-like popup. It seems that if I try to use this class in UIBinder with PushButton's upFace, I get an "invalid child namespace" error: previous lesson I have the namespace defined properly as xmlns:widgets

text widget for highly customized data entry?

2010-10-03 Thread KaffeineComa
I'm trying to implement a kind of "guided typing" widget for data entry, in which the user's text entry is highly controlled and filtered. When the user types a particular character I need to intercept and filter it before displaying it in the widget. Imagine if you will, a Unix shell embedded as a

text widget for highly customized data entry?

2010-10-03 Thread KaffeineComa
I'm trying to implement a kind of "guided typing" widget for data entry, in which the user's text entry is highly controlled and filtered. When the user types a particular character I need to intercept and filter it before displaying it in the widget. Imagine if you will, a Unix shell embedded as a

1.6.4 on FreeBSD 7.1 segfaults

2009-05-12 Thread KaffeineComa
Trying to compile GWT 1.6.4 under FreeBSD is causing the JVM to segfault. Our build server is based on FreeBSD, so we just trying to get the stuff to compile; not running hosted mode or anything that I would expect to need native libs. I do see that Maven is including gwt-dev-1.6.4-linux.jar in

Re: GWT 1.6 with Maven and build system questions/survey...

2009-04-30 Thread KaffeineComa
I'm curious how folks are adapting to this new layout. How many of you are letting GWT write its output to war/**, and how many are going the maven approach and moving things to target/war/** ? Personally, I much prefer the maven idea of keeping source and generated files separate. However, I d

single row in PagingScrollTable does not have proper height in IE7

2009-04-21 Thread KaffeineComa
I'm using the PagingScrollTable from GWT Incubator version 1.5- Dec_28. When I have only a single row in the table, the table height shrinks such that the row is no longer visible. If I add more rows, everything is properly sized.It seems as if maybe the height of the horizontal scrollbar is