A year or two ago, I wrapped flash with gwt with relatively little
work.
in flash: expose your IO methods that you want gwt to access by adding
them to the root window.
in gwt: expose any IO methods you want flash to access by doing
$wnd.MY_IO = {
'method1' : function(a){@com.mydomain.someStaticMe
e web browser that is wrapped by eclipse.
Note, the failed OS was win7x64. I saw someone else on a similar
thread also had problems on this particular OS.
Hopefully this helps anyone debugging / work-arounding the situation.
On May 24, 5:30 pm, Alyxandor Aristocles wrote:
> Wait, nevermin
I'm setting up on a linux
box to see if this helps.
If anyone does find / have a link to the 2.2.0 google plugin repo, I
would love you forever if you could post it for me =}
Thanks =}
On May 24, 4:38 pm, Alyxandor Aristocles wrote:
> I found the old repository from a manifest of the update
to show the list of old versions of the eclipse plugin when
search for "google eclipse plugin downgrade".
Many thanks to Alex Humesky for helping me by email with this issue.
His help lead to me finding this link.
On May 21, 3:27 pm, Alyxandor Aristocles wrote:
> Hi,
>
> I
Hi,
I have a project with multiple admins from multiple apps accounts. At
first I tried deploying, and had transitioning issues with the
account, which I resolved, and still it did not work. So I tried
another account from a different apps domain that was already
transitioned, and got the same p
Ok, I see where you're going, and I've been there A few times.
No, seperate root entry points have completely separate obfuscation
patterns, and will never share java objects. You CAN do it if you're
willing to collapse down to JSNI on every transaction, but this can be
costly and inefficien
As to your questions about Module-A and Module-B, you don't HAVE to
make the interfaces for Module-B available in Module-A; but if you
also want to use those interfaces in Module-C, it will be more
efficient to download the interfaces first, in Module-A, so both
Module-B and Module-C can implement
Yes. You definitely want to load entire modules to make the best use
of runAsync.
I forgot to mention the inclusion of a class object in the call... It
uses the classname of {preferable} the "root" or "control" class in
the module, the one that does all your "work"... This, I believe, is
so th
> Is there a way i can try these? the documents i got along with the milestone
> download doesn't contain anything about 2.0 Milestone 1 and its Features? i
> was hoping if some one could point me to examples of Declarative UI and Code
> Splitting examples?
Check the mail sample for declarativ
You can't attack the post-RSA password field, but if there's any point
along the way that the password is passed inside javascript, it might
be possible for a script-injection attacker to overwrite your
functions / add getter functions to prototypes and post your password
using something like rsa.
You can make your own widgets with custom html without wrappers, just
be careful because event listening often relies on the proper html
elements being present to operate properly {spans can be wonky when it
comes to KeyListeners}
The following code is for a simple widget that you can send arbitr
Sounds like you've got static code blocks executing for both modules
because they are in the same package.
To make two mutually-exclusive modules, you need to put the different
modules in different packages... In fact, you'll need three packages
at least... One for common classes, and one each
Pretty sure your inner classes need @Embedded annotations...
http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Embedded_Classes
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit"
A little sample code would be nice... Maybe an online public build or
something to inspect with Firebug...
Can't really help without more info! All I can think of is to inspect
the dom and make sure all form elements are being properly removed...
--~--~-~--~~~---~--~
Not sure for plain-jane GWT, but appengine builds {using the google
plugin with appengine enabled} chokes on 2.4... Maybe I'm not doing
something right, but you should just try changing the values and
finding out whether they build or not...
--~--~-~--~~~---~--~~
Y
It depends on how secure you want to be.
If you aren't dealing with sensitive information, build one module
that using an internal boolean value to determine how to run depending
on authentication, and set that value using rpc or cookies, or however
you do your authentication.
If you want the mo
@Override
public native int getLeft(Element elem)
/*-{
try {
var computedStyle = $doc.defaultView.getComputedStyle(elem,
null);
var Left = computedStyle.getPropertyValue("left");
return Left.indexOf("px") == -1 ? 0 : parseInt(Left.substr(0,
Left.length - 2));
} cat
You can insert xml into a regular html document if you properly
namespace every element, and then you can grab the text of the xml and
use GWT XmlParser to turn it into DOM; I believe it wraps the native
FF support anyway... Just be careful of IE, as it WILL parse
everything the same, but any Xml
Sweet! DANKE!
--~--~-~--~~~---~--~~
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
Hey all,
I've been having a slight problem plaguing me of late, and thought to
post this solution for anyone else experiencing the same issue.
There's already a few bugs filed for variations of this, but they're a
little different, on older builds of GWT, so rather than doing +1 on
an old bug rep
Like dean said, just getting your php scripts present won't let you
run php scripts in hosted mode. Even if you deploy to a php-enabled
server, requesting .php returns text, namely, the php source.
If you don't want to run caucho, you could try another somewhat
underhanded approach... Use the G
You need a gwt.xml module in the Common package, anywhere below the
code you want to include. These files don't need an EntryPoint in the
java source, they just need to be present. You can even leave the
source + classes {you MUST have source, classes aren't enough} in
their jar, just create the
Hm, I'm not sure what you're getting at... Which output? In the
hosted mode browser? Just click refresh to update changes. If that
doesn't work, close hosted mode and open it again {changing
configuration files like web.xml require a restart}. Or do you mean
the compiled output? Cos you have
Ok, seriously, I'm here, trying to help, and you keep giving me
terrible ratings for it?
...SHALLOW!
Oh, and please give me another one-star for this post as well I
know I'm not a doctor or anything, but I'm doing my best.
--~--~-~--~~~---~--~~
You received
Does your jar have "source attached"? Also, try putting a copy in
your war/WEB-INF/lib folder.
What build method do you use? IDE? Ant? Cypal... Don't use Cypal
anymore, the official GWT + Appengine plugin works like a dream,
provided your source level and source compliance level are set to
1
Ya, having datanucleus around to solve all our problems is pretty
sweet...
You should worry whether your Long id will survive a trip through
GWT
http://openlandscape.wordpress.com/2008/02/24/google-web-toolkits-gwt...
http://www.ongwt.com/post/2008/02/25/GWT-and-the-Java-long-data-type
Als
Do your homework!
http://openlandscape.wordpress.com/2008/02/24/google-web-toolkits-gwt-fake-long/
http://www.ongwt.com/post/2008/02/25/GWT-and-the-Java-long-data-type
How hard is using (Long)?
--~--~-~--~~~---~--~~
You received this message because you are subsc
Fred's methods are rock solid, look near the middle of the page for
the super-source hack needed to make Key happy for the client side.
There are very few restrictions on what can go into the client side,
{file operations and bytecode enhancements, mainly}. To make life
easier, don't try to use a
If you change one file name, you must change all three; Service,
ServiceAsync and ServiceImpl. Then, go to your web.xml in war/WEB-INF
file, and make sure the classnames there have changed as well.
--~--~-~--~~~---~--~~
You received this message because you are sub
Wow, I'm a fool.
The end.
--~--~-~--~~~---~--~~
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 ema
Aye aye! Firebug is key! You can right click an element in HTML tab,
click "add attribute", type style ENTER overflow-x:hidden ENTER, then
in the right hand panel, you can add / edit styles w/ autocomplete.
To add a new style in the css panel, just click on any entry, and
press enter until you g
Hm, I slogged through the code, but didn't really notice anything out
of place... What I didn't see was any references to padding, try
setting it to 0px as well. Then, inside the test page, do:
Window.setMargin("0px 0px 0px 0px"); and Window.enableScrolling
(false);, in case it's your div making
@alex.d -> The only way to make the "two panel" approach work would be
to use Salvador's ScrollHandler linkage, plus a function to loop
through each row of both tables, measure the max height of each row,
and apply that height to an element inside each table; just beware
browser differences when m
Good to hear.
Sorry about the "hack.java.io" part, I don't sleep much, so I
sometimes slip up ;-)
Basically, there's nothing you can do about your IDE... I always have
a couple errors now that I use super-source, but I like to think of
them like, "Error: GWT is too powerful for Java to handle,
Check your file sizes without the calls, then check them again with
the calls. File size will be number of classes * average package name
length.
The performance issue will be basically none. The actually class in
the prototypes is an integer, that just points to the name. Don't
worry about sp
Obfucated code returns obfuscated class names, I believe. Test to
find out... It did so in 1.5 for me, and I have to hardcode the class
names when I wanted to use them.
Personally, I just use gwt-log,
http://code.google.com/p/gwt-log/wiki/GettingStarted
and include short String descriptions I
If you aren't worried about modifying your xml, one way to do it
WITHOUT servlets {as java servers are not always available} is to read
the file using GWT HttpRequest {must ensure text/plain content-type,
more later...}, Parse it into XML, then translate that into JSNI or
Java Objects. I prefer J
Even if you do package all your code in a jar, you should keep at
least one module and entry point OUTSIDE the jar, so the compiler has
some raw source to start with. Also check that you're including your
packaged jar in your build process.
If you just want to reuse your code, you can just inclu
OH YA!
I just remembered... I was having other problems with IE due to the
compiler over-optimizing IE scripts... One issue was with
ImageResource.getUrl()... It's was an internal method used to create
resources, but if I didn't manually "touch" the method {calling it
once in an onModuleLoad e
Step one: Upgrade to 1.6.4, it fixed most of my problems. The upgrade
is backwards-compatible, just replace the jars and ignore all the
deprecation warnings; you can clear those when you see fit.
Step two: Check your History methods. Make sure you've included the
History iframe {needed only by
I certainly know what your problem is!
You need the gwt incubator. Those are the new Styling classes that
are almost ready for production gwt, but kept elsewhere because they
aren't fully up to spec {CssResource uses Image Sprites with data
URI's for good browsers, and the old ImageBundle-like c
You need an RPC call for authentication, and at least one more for
every other type of call you want the user to perform. If you're
worried about whether or not the user is still authenticated, use
session variables and session cookies... Please don't ever make a
boolean MayIDoSomething() AND a
However you would use sIFR with javascript, you wrap in java native
methods...
I don't know about it, or feel like learning it right now, but it goes
something like this:
Include the script tag in your gwt.xml module definition, ensuring
that all .js and .swf are in your page.
Wrap native calls
Use em units {0.5 em}...
Percent can sometimes be wonky if your DecoratedTabPanel is the child
of an object with font-size set in px or pt.
A quick google shows:
http://www.thesug.org/Blogs/kyles/archive/2009/04/17/CSS_FontSize_em_vs_px_vs_pt_vs_percent.aspx.aspx
If this doesn't work, just inspe
Does User implement Serializable or IsSerializable? You have to use
at least one to tell GWT that you want to send it over the wire.
I'm having a little trouble understanding your situation, please post
you file structure, and if possible, User.java or your .gwt.xml
modules...
/foo/bar/Common.g
Does DbPojo.gwt.xml have element in it? Cos by
default, gwt looks for source from /path/to/Module.gwt.xml /path/to/
client. You use source to change this {just be wary, I haven't done
this since 1.4, and it was a little buggy about setting the source
path back to client...
Cheers!
--~--~--
In 'Nix:
#!/bin/sh
cd /home/uname/workspace/yourproject/war
ncftpput -mRDD -u USERACCOUNT -p PASSWORD ftp.somedomain.com /remote/
upload/path *
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" gro
If it an iframe-border {like, a border attribute}, or is it white
padding inside the page you're loading?
Your css border has to be "0px none". The none is most important, and
the px is used to prevent browser incompatibilities... Try to always
include units...
If you can't figure out style pro
Are you getting a "wrong package error"? Because if you aren't, you
should!
Also, you've got to make your java.io hack-pack-age another level
deeper... You don't need to make two different source folders, that's
just to minimize IDE confusions
Try this...
test/
src/
fireNativeEvent it deprecated, so don't use it.
I've heard of a very dirty hack that uses native code to skip past the
private-ness of the Gwt Event system, but it is too much of a hack to
promote anywhere.
Better yet, rather than trying to fire an event with some kind of
synthetic event, you wo
@Thomas, AYE! Your example does work best, provided users don't Ctrl
+Click to open in a new Window.
My iframe example was certainly incomplete. I leave the History
tokens alone {don't inject directional "do not fire" tokens}, until
the user clicks the close button or opens a new link. THEN, i
Good to know!
I haven't tried 64 bit since 7.1... Maybe now I'll give it a go.
Do you use any virtual headers? I'm not sure, but I heard they were
still buggy on 64 bit builds...
/Searches
So, it works fine, but vBox just doesn't support 64-bit virtual
machines... No biggy.
...Maybe it's ti
The honest truth?
As I tend to, I overcomplicate everything.
Basically, all of my Panels are absolutely positioned on the screen as
a ratio of screen width and height.
All of my widgets get the proprietary IE css property hasLayout=-1.
This is the style property to look for when debugging your
...A stack trace or some code for this problem would be nice
Cheers!
--~--~-~--~~~---~--~~
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@googlegroup
Aye aye!
...I like to overcomplicate everything.
I think the div wrapper is needed for IE... It's got problems with
making links properly size themselves.
Also, IE6 has no :hover or :active support and IE7 has no :active
support.
...Of course, I prefer it when IE must go without nicer styling
Aye aye;
To add to Ian's response, the module definition files do three things:
A) When you inherit any module.gwt.xml {say, com.example.util.A}, you
add access to all the source in that modules package, as if you used:
import com.example.util.*; Note, this causes ALL static code calls in
the p
Go to code.google.com and search on gwt.
You'll find a metric whackload of results. There's also a list in the
regular GWT docs of third-party-extensions; many of them are quite
powerful.
If you want to maintain consistency with future versions of gwt, I
recommend that you do not stray too far
I'm really not sure, but I'd recommend checking out the Appengine
google group first... http://groups.google.com/group/google-appengine-java?hl=en
There's over a hundred posts a day there, so I'm sure someone there
with a little more expertise than yours truly will be of more help.
Out of curios
Two things:
A) HostedMode opens at a specific size to remind you that many users
have smaller browsers windows, so you can test to make sure your app
will look good at 800x600 without having to change your screen
resolution. If it's not a layout issue, and simply personal
preference, there is ano
A little known secret... You CAN in fact, change ANYTHING using
gwt... It's called the super-source method, and it lets you replace
whole entire files from any jar or jre library you want. I won't go
into great detail, as you can read about it in
http://code.google.com/p/bunsenandbeaker/wiki/De
Hey, In GWT 1.6, you don't need to put files into your app's source
folder; instead, put it directly into the war folder. In this way,
the HostedMode server will know to update when the file changes, as
opposed to having to manually recompile the file every time you write
to it. Consider using a
Have you checked out the HyperlinkOverride in the Incubator? It uses
deferred binding to replace the old Hyperlink class with a new one
that will allow users to Ctrl+click the link to open it in a new
Window. It simply overrides the onBrowserEvent method, and acts when
event.getTypeInt()==Event.
I checked it out on FF, and when I clicked on something, a dialog
popped up, asking for authentication {don't worry, I didn't try any
hackery}.
My guess is that FF uses a separate thread for pop ups, whilst IE uses
your pages rendering thread for the pop up, and that freezes your
display.
Try a
http://code.google.com/p/gwt-log/
--~--~-~--~~~---~--~~
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, se
On second thought, don't bother with my answers
http://groups.google.com/group/google-appengine-java?hl=en
I'm sure a thousand other people there know more than me on this
subject.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
Is that the whole Category class, or is there more?
Because, if you have a persistent field with a null value, it gets
skipped by index operations.
The low-level query will succeed because an equality test on the
primary key uses the default, built-in automatic index table, whilst
all other quer
@Darkflame, @Isaac, @Netbeans Users - If you're having problems with
your IDE, or your IDE is not as plugin-friendly as Eclipse, use an ant
build script. Ant is IDE independant, and it can be run from within
the IDE.
GWT Webappcreator will make one for you, and if that's not good
enough, here's
YourWidget.addDomHandler(new KeyUpHandler(){
public void onKeyUp(KeyUpEvent event) {
// TODO Auto-generated method stub
}
}, KeyUpEvent.getType());
Just like real DOM, you've got to manually add Ke
Well, your first issue is IE6. It has TERRIBLE box model support. If
you don't already know about it, shed a few tears now for all the
hours you and every web developer has and will spend on it.
a,div,img {
border: 0px none;
min-width: 0;
}
Using css, you can fix some of the b
gwt uses an option called super-source to let you literally replace
one class with another. It's dangerous mojo and potentially
dangerous, but you basically make a seperate module whereever you want
{com.example for now}, and in that whatever.gwt.xml, you put:
THEN, if you want to overrid
Aye, not only must each one be in a gwt module, whatever build method
you use must know to put proj2 into proj1. If you use Eclipse IDE {or
other IDE} to build, you should right click the project, go to
properties, edit the BUILD or SOURCE path, and include the other
project.
If you prefer to us
Arun, we'd be more than glad to help, but we'll need more details.
What kind of Widgets are you using {AbsolutePanel, HorizontalPanel,
YourSweetCustomPanel}?
Is your host page document in quirks more {HTML transitional} or
standards more {HTML strict}?
...Don't try using xhtml doctypes, or IE wi
I forgot to mention, your life will be much easier if you use Eclipse
Ganymede from eclipse.org, not the repositories. Maybe it's changed
since I made the switch, but the last time I got Eclipse out of the
repo, I got some VERY odd stack traces that amounted to only one
logical answer: Get it fro
sudo apt-get install galternatives
You won't have to use synaptic to remove stuff, you can just change
defaults.
I use the sun binaries for everything gwt; openJDK is nice, but Sun
makes and updates java, so I'll look past it's proprietary-ness just
this once.
Now that you've made the wonderful
Hi all,
This isn't really a problem, I'm just curious to see if anyone else
has had the same experience as me, and possibly get a little advice
from the Masters...
I like using JavaScriptObject extensions instead of Collections...
About a year ago I noticed that over half of my small projects we
Aye, use deferred binding to override any direct references to the
code you want to include.
Be careful of static fields that are auto initialized, and static code
blocks, as you CANNOT override these. Even if you never access the
static object, GWT must inc
I've seen IE die on page loads where you check History.getToken()
right away and there is no token, so make sure you test {with a
cleared cache} http://your.site/page and http://your.site/page#at.
They behave differently, and sometimes, waiting a little with a timer
to check History.getToken() or
George's hack with the boolean for "don't do history stuff" is
actually a surprisingly good way to deal with History Events.
In order to achieve History events from multiple sources with multiple
targets, some validation on HistoryToken is needed, and using a
boolean variable will let you change
Aye,
I use the "absolute-floating-trick" too Just be careful of using
left:100% or top:100%, it will work with CSS2Compatibility, but not
CSS1 {IE6, I'm pointin at you!} will balk and anything that's supposed
to float on the right or bottom might wind up 100% of screen width
{unless you're wi
I've had some luck with adding multiple module-definitions in my build
file.
Instead of just x.dt or x.gwtlogin, put both {in ant}
So, after having my errors pointed out to me, I did my research and
realized that I was talking about HandlerRegistrations, not
HandlerManager. Oops...
...I've been trying to avoid as much of the Collections routines in
favor of custom JSNI stacks; they might obscure bugs, but they run
much fast
This is true,
I was thinking of this later, and saw that in many cases, this COULD
be done,
And it can be done outside of the gwt compiler, if you like.
Some fancy regexp to find functions with EXACT method bodies and
renaming+deletion could potentially decrease file sizes dramatically,
but only
82 matches
Mail list logo