UiBinder and MVP: Problem with SuggestBox and CellBrowser

2012-07-17 Thread Oscar Perez
Hi,
I am fairly new to GWT and still trying to figure out how things work. I am 
trying the activities and places tutorial and found a chicken-egg 
problem... I am trying to use a suggestbox but the problem is that takes a 
suggestoracle in the constructor. If I create the view beforehand (since it 
is an expensive object) how do I pass the suggestoracle to the suggestbox? 
I take, of course, that suggestoracle should belong to the presenter.. With 
CellTable is fairly easy because does have a setModel method but in 
CellBrowser / SuggestBox I cannot figure out how to proceed...
Thanks!
Oscar

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



Re: How to redirect HTML inside a dialogbox

2011-07-06 Thread Oscar
Hi jhulford,

Thanks again for your time,

I agree that the embedded site should be able to open a new tab/window. What 
I don't want is the iframe to have access to the parent.

I guess that what I'm trying to do is something like a sandboxed iframe. 
Nonetheless, when I try to use sandboxed iframe with Firefox (5.0) it just 
ignores the sandbox  attribute.

Would there be a way to make it work?

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



Re: How to redirect HTML inside a dialogbox

2011-07-04 Thread Oscar
Hi again!

Thanks for your reply. 

If I am understanding it right, I should use the anchor for the links 
contained inside the iframe, right? 

The thing is that I don't have access to the embedded content. I want to 
show an external website inside the iframe but I don't want it to send users 
away from my site.

Is it possible?

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



Re: How to redirect HTML inside a dialogbox

2011-06-30 Thread Oscar
Hi jhulford,

Thanks for your answer!

What you say works great for most pages although when the page wants to open 
a new window this is opened in a new window/tab in the browser. Is there a 
way to capture these events and avoid opening a new page?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/sTa45CqBfQMJ.
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 redirect HTML inside a dialogbox

2011-06-29 Thread Oscar
Hi all,

I'm new at GWT and I'm trying to create a dialogbox that shows a
website from an external URL. I would also like that when the user
clicks a link, the content generated appears inside the same
dialogbox.

Right now when the user clicks on a link it redirects to a whole new
page as the user clicks to an HTML link.

I would like to do this without having to have access to the HTML code
from the server side.

Is it possible?

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



Re: GWT.create([AnyService]) hangs only on hosted mode

2011-01-12 Thread Oscar Herrera
Well, looking at the issues db I found issue 2507 that relates
something similar, not with GWT.create but they relate an
incompatibility issue on mac, that they used to fix by using "-d32"
when starting the server, the thing is that i've tried that solution
and it doesn't work. I'm working right now on having soylatte
installed that allows me to run java apps on 32-bit, on the mean time
I setup a VM on my mac using VirtualBox and WinXP, and installed java
32 bits on it, and the app works perfect.

I think the issue on mac is me as the user not being able to manage
which version of the JVM I want to have running (or at least I have
not found a way so far, I've tried changing where java command points
to, but anyway seems only to be one version of Java installed on my
machine and I have not found any way to have another version different
than the one coming with the OS installed/running, that's why I'm
trying with SoyLatte).

If I get to have more information on this I'll let you know,

Thank you,



On Jan 12, 3:19 am, Y2i  wrote:
> Strange, there have been no issues for me running GWT 2.1.0 and 2.1.1 on
> 64-bit Ubuntu 10.04.
>
> GWT issues database is 
> here:http://code.google.com/p/google-web-toolkit/issues/list
>
> --
> Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
> Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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.create([AnyService]) hangs only on hosted mode

2011-01-11 Thread Oscar Herrera
After 70+ hours working on this issue, I found what is causing it!, on
my mac I'm using JVM 64 bits, the same on that windows 7 machine using
an core i5 processor. After desperate tests I took my wife's computer
running windows 7 and the project runs ok there, the only difference I
could find after a while looking was the JVM version, it has 32 bits,
so I downloaded the jvm 32 bits and installed it on my windows 7
machine instead of the 64 bits, and it worked smoothly, now I'm trying
to find a way to have a 32-bits version of java running on my mac...

what's the process for reporting an issue to the gwt team?, I think
this clearly is one!

anyway, thank you for those who took the time to read on the issue,
although no answers were provided!

Oscar H


On Dec 30 2010, 12:29 pm, Oscar Herrera 
wrote:
> Hi, I've been working on a project for more than eight months using
> GWT without any issue, recently I upgraded to version 2.1 and since
> then anytime I call GWT.create([AnyService]) the browser hangs. It
> used to show me an OutOfMemoryException so I set Xmx to 4096m,
> XX:MaxPermSize to 1024m and -Xss to 1024k (I know is a lot but
> otherwise I get the OOME), since then the OOME stoped showing but the
> page never shows, nothing shows on the server log, nor on the GWT
> console.
>
> I though the issue might be related to the browser, so I've tried
> using IE, FF, Safari and Chrome, and the same behavior is shown on all
> of them. This issue happens to me as well when working on Mac OS (snow
> leopard), and using Windows 7.
>
> If I run the site in web mode then everything works ok, the thing is
> that debugging becomes impossible since the project currently has more
> than 30 modules, so compiling everything is not an option (takes a
> little more than 30 minutes to compile all of them).
>
> I'm using Maven with the plugin version 2.1.0-1, and I've tried with
> gwt libs 2.1.0 and 2.1.1 and none of them works for me. I also found
> some other posts from people reporting similar issues and there seems
> not to be a solution so far.
>
> Can anyone give me a clue on what the issue could be?

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



Re: problem migrating to 2.1 application hags

2010-12-30 Thread Oscar Herrera
I think it might be the same issue I'm having, does this only happens
to you on hosted mode? or does it happens as well when running on web
mode?, have you tried setting a log before GWT.create([AnyService])
and another one after it?, I get to only see the first one, then the
browser and the GWT console hang and get a message on the server log
indicating OutOfMemoryException.

I'm using maven instead of ant. My application worked fine up to
version 2.1M3, after I upgraded to 2.1.0 don't work.



On Dec 28, 4:31 pm, smida02  wrote:
> I've been using GWT for 2.5 years and haven't really had any problems
> upgrading until now.
> I do not use Eclipse for building, I use ANT. Also I should mention
> that I'm on Linux. I changed my ANT build.xml from
>
> 
>         
>         
>         
>         
>     
>
> to reference the 2.1.1 jars, cleaned and built. I didn't receive any
> errors but I noticed that the GWT build took a LOT longer than it did
> in 2.0.2. About 25% longer.
> When I attempt to run the app it simply hangs and I eventually get the
> Awe Shucks message as if the JavaScript is in a tight loop. I've also
> tried this in devmode
> and the same thing happened. I haven't seen any errors in the devmode
> console nor have I seen any errors in the browser console.
>
> I changed my ANT build.xml file back to reference the 2.0.2 jars
> cleaned and built and the application came up fine. At this point I'm
> not sure how to get to the bottom of the problem.
> Any help would be appreciated. Has any one else had similar issues? Is
> the 2.1.1 GWT complier a lot slower for everyone else?

-- 
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.create([AnyService]) hangs only on hosted mode

2010-12-30 Thread Oscar Herrera
Hi, I've been working on a project for more than eight months using
GWT without any issue, recently I upgraded to version 2.1 and since
then anytime I call GWT.create([AnyService]) the browser hangs. It
used to show me an OutOfMemoryException so I set Xmx to 4096m,
XX:MaxPermSize to 1024m and -Xss to 1024k (I know is a lot but
otherwise I get the OOME), since then the OOME stoped showing but the
page never shows, nothing shows on the server log, nor on the GWT
console.

I though the issue might be related to the browser, so I've tried
using IE, FF, Safari and Chrome, and the same behavior is shown on all
of them. This issue happens to me as well when working on Mac OS (snow
leopard), and using Windows 7.

If I run the site in web mode then everything works ok, the thing is
that debugging becomes impossible since the project currently has more
than 30 modules, so compiling everything is not an option (takes a
little more than 30 minutes to compile all of them).

I'm using Maven with the plugin version 2.1.0-1, and I've tried with
gwt libs 2.1.0 and 2.1.1 and none of them works for me. I also found
some other posts from people reporting similar issues and there seems
not to be a solution so far.

Can anyone give me a clue on what the issue could be?

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



Server-side invoking GWT RPC services

2009-10-06 Thread Oscar

Is it possible to invoke GWT RPC services server side in some way?

(
I think I need this, since I would like to use multiple databases with
Hibernate using Gilead, and one service for each database,
(
and Gilead's services are of the type PersistentRemoteService,
which inherits GWT:s
RemoteServiceServlet.
)
)
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Role-based validation for RPC calls on a separate server

2009-05-28 Thread Oscar

We currently have role-based validation implemented for all of our RPC
calls, however, our PSG guys don't want the validation to occur on the
same machine.  Ideally, they want 1 machine to validate the RPC
request (in the DMZ), and if it succeeds, then it gets passed along
into the Tomcat instance which is deployed on the Internal Network.
Does anyone know how to do this?

Obviously one solution is to have GWT deserialize the request on the
"validation" server (DMZ), validate the request, and if it succeeds,
pass the request along.  However, this seems like a lot of work to
me.  Is there a way to inspect the POST payload and extract the RPC
call being made (as a String) and then check it against a permission
table?  I know that for the the package name and RPC name are in the
POST as plain-text, so it should be possible, but I'm not sure of a
reliable way of extracting that information.

If anyone has any ideas, I would love to hear them!


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



exclude specific classes from obfuscation

2008-09-21 Thread Oscar

I have a class, call it Foo(), that I am passing between 2 Frames by
serializing it down to a Map of Strings.  It looks something like
this:

class Foo {
...

public Map toMap() { /* put all values I care about
into a hashmap as strings */ }

public static Foo fromMap(Map map) { /* deserialize
*/ }
}

The issue is that when JavaScript obfuscation is turned on I get
errors when calling fromMap() because Map.get() seems to be undefined.
As long as obfuscation isnt enabled everything works as expected.   Is
it possible to have an exclusion list for the obfuscation so that Foo
doesn't get obfuscated?  Since Map.get() seems to be the issue, I
suppose that is the class I would need to exclude.

Alternatively, is it possible to pass an object between 2 Frames some
other way that doesnt require me to serialize down to Strings?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Passing an Object from one Frame to another

2008-09-19 Thread Oscar

I have an application where 2 IFrames are being used.  In one Frame, I
have a DTO object that I would like to send to the other Frame.  The
DTO object is Serializable, but aside from that, I dont know what the
contents of it are.

Is there a clever way to pass this Object from one Frame to another?
It appears the answer is to serialize the object to a string then pass
the string across.  I know I can do this manually or with JSON, or
some other such device, but I'm hoping there is a way to do this using
GWT Serialization.  Does anyone know how I can accomplish this?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC SuggestOracle on high latency connections

2008-09-03 Thread Oscar

Solved it!  My bad...

For anyone else who gets stuck on this problem, the answer is that you
need to provide some sort of sequencing in your SuggestOracle/
Callback.  What I ended up doing was maintaining a sequence number in
the SuggestOracle and passing the current sequence number into the
callback.  Then before the RPC Callback writes its results to the
Suggest Callback, ensure that its sequence number is >= the current
sequence number in the Suggest Oracle.  This way, if newer results
come in before older results, only the newer results will ever be
displayed.

This is obviously due to the fact that the RPC is async, so you have
no guarantees on when you will end up receiving your suggestions.  All
in all, an easy solution to the problem and it seems to make the
widget flow a little nicer in the application since the suggestions
dont end up fluttering so much.


On Sep 3, 9:58 am, Oscar <[EMAIL PROTECTED]> wrote:
> Sorry if this post appears twice... I posted yesterday, and now I
> can't find it!  :)
>
> I am having a problem using GWT's SuggestBox on FF3 when the custom
> SuggestOracle calls an RPC on a webserver that is geographically far
> away.  What seems to be happening is that an earlier query completed
> AFTER the final query, which ultimately results in the wrong
> suggestions being displayed.
>
> For example, assume "X" displays 20 results, and "XYZ" displays 1
> result.  If the user types "XYZ" really quickly, multiple RPC requests
> will be sent to the webserver, which is fine.  I can see these
> requests being processed, and I can see each one of them sending the
> correct results back to the client.  However, the suggestions that end
> up being displayed are the results for the "X" or "XY" query, not
> "XYZ".  Has anyone else encountered this?  Any idea how to resolve
> it?  So far I have only been able to reproduce this issue with FF3,
> but if it is an ordering issue, it should be reproducible with any
> browser.  I will try to test this later today to make sure, but I was
> hoping someone else has seen this problen and resolved it already.
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



RPC SuggestOracle on high latency connections

2008-09-03 Thread Oscar

Sorry if this post appears twice... I posted yesterday, and now I
can't find it!  :)

I am having a problem using GWT's SuggestBox on FF3 when the custom
SuggestOracle calls an RPC on a webserver that is geographically far
away.  What seems to be happening is that an earlier query completed
AFTER the final query, which ultimately results in the wrong
suggestions being displayed.

For example, assume "X" displays 20 results, and "XYZ" displays 1
result.  If the user types "XYZ" really quickly, multiple RPC requests
will be sent to the webserver, which is fine.  I can see these
requests being processed, and I can see each one of them sending the
correct results back to the client.  However, the suggestions that end
up being displayed are the results for the "X" or "XY" query, not
"XYZ".  Has anyone else encountered this?  Any idea how to resolve
it?  So far I have only been able to reproduce this issue with FF3,
but if it is an ordering issue, it should be reproducible with any
browser.  I will try to test this later today to make sure, but I was
hoping someone else has seen this problen and resolved it already.

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---