Re: Centering an image in a SimplePanel

2011-01-04 Thread Myles Bostwick
Don't forget also to set "display: block;" if you use the auto margins on 
the image.

-- 
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: I18N - How to set locale per code?

2011-01-04 Thread Myles Bostwick
I'm solving this problem by having the webserver do a rewrite of the URL, 
appending the appropriate language code, based on what the browser sends as 
their accepted language.  This method could easily be extended to instead 
examine a cookie that is sent in.  This way no reload is required and it 
could still be dynamic based on user preferences.

-- 
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: To GWT or Not to GWT

2010-12-16 Thread Myles Bostwick
Sure in that regard you'll have some duplication, not any way around that 
that I can see.

-- 
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: Does anyone know how to install these libraries?

2010-12-16 Thread Myles Bostwick
You might find this wiki page from your link useful. 
http://code.google.com/p/gwt-mobile-webkit/wiki/DataServiceUserGuide . As to 
whether there is a better way to develop an HTML5 page, it'd if you 
specified what exactly from the HTML5 spec you're looking to use.  Be aware 
that not all browsers support HTML5 yet and the browsers that do have 
varying degrees/implementations of support.

-- 
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: To GWT or Not to GWT

2010-12-16 Thread Myles Bostwick
Your simple case is not quite what I'm referring to. Take instead your 
simple case, but you have to recompile everything.  However, when you 
deploy, because you didn't optimize, and because you've separated your 
reusable code into separate libraries, you will have identically named files 
that each sub-app if you will can share. There is potentially some need for 
creative code splitting there so that the libraries are actual files to 
download, but those filenames are based on an md5 sum as I recall, so if the 
same content is in there, they are the same file.

The reason I say optimization would need to be turned off is so that you 
don't get a different file generated by the compiler.  Essentially giving 
you every library call a sub-app could use. Very much like the prototype or 
jquery model.

Ultimately, it's not the way GWT was intended to be used, but you'd still 
get the Java development environment and the permutation logic which is 
pretty big in the web world, so you *could* do 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: Reading annotation values in runtime

2010-12-16 Thread Myles Bostwick
There is no runtime reflection in GWT due to client code being compiled to 
javascript. What you could probably do is something with Generators and 
deferred binding. Create your view, then have a generator create a subclass 
that implements your security for all those annotated fields. Generators are 
my shiny new hammer right now though, so if someone has another idea...

-- 
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: To GWT or Not to GWT

2010-12-16 Thread Myles Bostwick
If you turn off optimization when you compile with that library module, it 
should be the same for each app which should allow you to share it. 
 Essentially that's what it sounds like you've been asking this whole time. 
 Can I use GWT to follow the same paradigm that is used for prototype and 
jquery, which is can I include one library to rule them all and just share 
that. Turning off optimization in the compiler should accomplish 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.



Browser plugins (quicktime, custom) in GWT

2010-12-15 Thread Myles Bostwick
I found http://code.google.com/p/bst-player/ for doing players the GWT way 
and it's just what I was looking for, except it seems to always include 
everything even if only a Quicktime player is used. Are there any more 
choices out there? I certainly can modify this code, but why re-invent the 
wheel if I don't have too...

-- 
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: To GWT or Not to GWT

2010-12-15 Thread Myles Bostwick
Even if the code is not being compiled together, it seems like a library 
module could be created that could then be shared by all widgets in this 
scenario.  Someone please correct me if I'm wrong.

-- 
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: CssResource @def in UiBinder

2010-12-15 Thread Myles Bostwick
I'm not sure if this is exactly what you're talking about or not, but I've 
got a common ResourceBundle that I use in my uibinder that I use like so:

Included in ui.xml


Included in view
@UiFactory /* this method allows ui.xml to access an instance of a 
resource */
public IResources getIResources() {
return IResources.INSTANCE;
}

Which allows me to use a common resource bundle across my uibinder uis.

-- 
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: Mix 'N Match units in DockLayoutPanel

2010-12-14 Thread Myles Bostwick
I retract my question. Nesting a LayoutPanel within the  and the 
CSSing it like I would with HTML accomplishes my goal.

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



Mix 'N Match units in DockLayoutPanel

2010-12-14 Thread Myles Bostwick
Hi All,

I'm attempting to use the DockLayoutPanel to create a center with a static 
width and variable width east and west.  Creating a nice center column 
that's always the same width. I can do this in HTML, but I'm trying to take 
advantage of the LayoutPanel since this is the top level layout for my app.

-- 
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: MVP Issue

2010-12-14 Thread Myles Bostwick
I solve this by passing in the presenter to the view, the view catches these 
events and calls a particular method on the presenter.  That way the 
presenter doesn't have to know anything about the view code.  Hope that's 
helpful.

-- 
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: Eclipse GWT Plugin Download

2010-12-14 Thread Myles Bostwick
My bad and good to know. 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: Eclipse GWT Plugin Download

2010-12-14 Thread Myles Bostwick
You ought to be able to startup dev mode and point that browser to the 
server.  That should prompt a request to install the plugin and I *think* 
that is grabbed locally.  Someone feel free to correct me if I'm wrong.

-- 
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: Nested Activities

2010-12-13 Thread Myles Bostwick
I'm solving this problem slightly differently. My exact problem is that
I have "plugins" into my main application that based on configuration
will be compiled in or not. So at the top level I have no idea what
activities will be present or not until compile time.


What I did was create a generator that generates my ActivityMapper at
compile time based on the Activity classes found. I then use
annotations to link activities to places or default to convention, ie.
FooActivity maps to FooPlace. Then, as you've done, my ActivityMapper
has a getActivity that returns a new instance of the activity.

-- 
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: Http Headers

2010-12-13 Thread Myles Bostwick
Another less optimal option is to let the webserver handle the
redirection based on the HTTP headers, via some sort of extension. Or
instead of writing HTTP headers you could write to the the URL and just
use some sort of Rewrite rule. 

-- 
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: Dynamically generated user navigation

2010-12-09 Thread Myles Bostwick
I'm creating a compile-time selection of views using a factory and a
generator. I bet you could accomplish your dynamic navigation based on
your xml file by using a generator.

-- 
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: Run one test in GWT source

2010-12-09 Thread Myles Bostwick
Wonderful, 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.