Re: GWT Developer Plugin for Firefox 7

2011-10-07 Thread Alan Leung
Yes. I checked it in last night and tested it on all the OS.

Let me know if you have any problems with it.

On Fri, Oct 7, 2011 at 11:51 AM, Thomas Broyer  wrote:

> It's available on the GWT SVN; just a matter of time 'til it makes it to an
> official release with the auto-update process right from firefox.
>
> --
> 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/-/gMPmxLowne8J.
>
> 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.
>

-- 
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: Firefox v. Dev Plugin

2011-10-03 Thread Alan Leung
>
>
> What would be involved in automating the plugin build process?  Are we
> talking Maven + Ant + shell scripting?
>
>
Although they were usually minor, there are definitely changes in each
release.

I am trying to create scripts here and there but in reality, it is very hard
automatic  upstream API changes.


> And actually, this was more or less the answer I wanted to hear.  The
> post was a "why" much more than a "would you please fix".
>
> FWIW, I finally found
>
> ftp://ftp.mozilla.org/pub/mozilla.org/firefox/releases/
>
> Here you can get every Firefox release, not just the "supported"
> ones.  One of the big frustrations of all this was the inability to
> actually get my hands on the latest supported version, once the next
> unsupported version came out (esp. since it seemed that every time a
> new GWT Plugin came out, there'd be a new, unsupported version of
> Firefox out before I could get my hands on the now supported
> version).  Having that link takes this all from a major irritation to
> a minor one.
>
> Greg
>
> On Oct 3, 1:51 pm, Chris Conroy  wrote:
> > I've mentioned this in other threads, but I'll repeat here: Under the new
> > rapid-release model, Mozilla is intentionally breaking binary
> compatibility
> > with xpcom components on every release. We are forced to rebuild for
> every
> > platform with every release.
> >
> > Our existing processes for maintaining the plugin come from a time long
> > before this model. Due to the number of platforms that we support,
> manually
> > building a new release of the plugin takes a decent amount of time.
> Mozilla
> > has said that the binary API can change up until the official release, so
> > that rules out attempting to start on this work early. Moreover, future
> > updates will almost certainly have real breaking changes that could
> require
> > significant time to address.
> >
> > In the meantime, I would suggest running against whatever version of
> Firefox
> > is supported. If some version specific issue comes up that you must debug
> > before we can get a release out, then you may just have to build the
> plugin
> > yourself. But, these 'major' releases are really quite minor. In
> > all likelihood, any issue you want to debug in DevMode will surface in
> the
> > same way in FF6 as in FF7.
> >
> > I know this isn't the answer you (or many people) want to hear, but
> that's
> > the reality today.
> >
> > P.S.
> > I would advise people on this list to be cautious about downloading
> plugin
> > binaries from other people. It's much safer to build your own from source
> or
> > wait for an official release.
> >
> > On Mon, Oct 3, 2011 at 10:19 AM, Gregory Dougherty  >wrote:
> >
> >
> >
> >
> >
> >
> >
> > > For those of us who debug our GWT apps in Firefox, and would kind of
> > > like to keep up to date on Firefox releases, could someone from Google
> > > give a quick rundown on why it is that each of the last three (four ?)
> > > Firefox releases has broken the Dev Plugin, apparently each in new
> > > ways?  Are the people working of Firefox just doing stupid things?
> > > Does the GWT Developer Plugin just assume that it must be incompatible
> > > with any X+1.0 release?
> >
> > > Why is it that the Developer Plugin for Firefox only seems to get
> > > "cleared" for the current version of Firefox less than a week before
> > > the next ("hyper critical, be sure to replace your previous version")
> > > version comes out?
> >
> > > TIA,
> >
> > > Greg
> >
> > > --
> > > 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.
>
> --
> 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.
>
>

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



"Firefox Made Me Sad"

2011-10-03 Thread Alan Chaney

Hi Everybody.

The time wasted by plug-in developers and us poor application developers 
because of the stupid "rapid release" concept of firefox is now getting 
to be beyond a joke. I came up with the following message:


'"Rapid Release" for Firefox is stupid and broken and wastes plugin and 
application developers time. One API release a year is sufficient.'


which fits in the very limited space allowed in the feedback window 
(Firefox: Help-> Submit Feedback...-> Firefox Made Me Sad.)


If you feel the same way as I do, please find the time to send this 
message or something like it to Mozilla.


Regards

Alan



--
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 Developer Plugin for Firefox 6

2011-09-22 Thread Alan Leung
The missing plugin page is also updated.

-Alan

On Wed, Sep 21, 2011 at 7:13 AM, ialpert  wrote:

> looks like it's been updated
>
> On Sep 9, 11:33 am, Jim Douglas  wrote:
> > Any progress on the Firefox 6 plugin?  This page still reports that
> > the highest supported version is 5.0:
> >
> > http://gwt.google.com/samples/MissingPlugin/MissingPlugin.html
> >
> > On Aug 16, 2:03 pm, Chris Conroy  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Jason,
> >
> > > Unfortunately, for the time being we're unable to keep pace with
> Mozilla's
> > > new release schedule since the plugin update process is quite manual.
> We'll
> > > be sure to announce to the list when FF6 support is ready. In the
> meantime,
> > > you'll just have to fall back to <=FF5 for DevMode.
> >
> > > On Tue, Aug 16, 2011 at 3:51 PM, Jason Yin  >wrote:
> >
> > > > Hi
> >
> > > > just upgraded to firefox 6 today.. and realized GWT Developer plugin
> > > > isn't compatible with it.
> > > > any ETA on when this will be available?
> >
> > > > 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.
>
> --
> 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.
>
>

-- 
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 Developer Plugin for Firefox 6

2011-09-13 Thread Alan Leung
FYI:

I have pushed the xpi out:
https://dl.google.com/dl/gwt/plugins/firefox/1.0.10582/gwt-dev-plugin.xpi

Once I finish testing it with all the browser once more I'll make that the
default for the missing plugin page.

-Alan


On Tue, Sep 13, 2011 at 10:17 AM, snayrb99  wrote:

>
> Thank you for a very illuminating answer. It seems rather sad that FF
> plugins MUST link against a library that is browser version dependent.
> Most products I have dealt with provide some kind of adapter layer to
> allow older versions of plugins to be used with newer versions of
> software. I suppose they must have there reasons though.
>
> --
> 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.
>
>

-- 
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 Developer Plugin for Firefox 6

2011-08-30 Thread Alan Leung
FWIW, I just checked in xpi file.

If you feel adventurous, you can fetch it from the SVN and install it. 
Please let me know if you have any issues.

I plan to put it on the auto download page later this week.

I apologize for the delay.

-Alan 

-- 
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/-/hLqvyt3X56cJ.
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 Project Backup

2011-08-04 Thread Alan Chaney
Another option is to right-click the project in the package explorer, 
select "Export..." and then "Archive File" and create a zip or tar.gz 
backup. This gives you a project archive which can be imported into 
another workspace. Its likely to be much quicker than copying the whole 
workspace.


Alan


On 8/4/2011 3:32 AM, Ed wrote:

Copy your wor4kspace.

On Wed, Aug 3, 2011 at 4:13 AM, Matin Rahman  wrote:

How can i take GWT Project Backup from IDE(eclips).

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




--
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: Stop further execution till rpc completes

2011-08-01 Thread Alan Chaney
True its WidgetCollection that has a 'contains' method but a 
RootPanel.get returns a RootPanel object which is a sub-class of 
ComplexPanel.


ComplexPanel has a getWidgetIndex methods which return -1 for 
getWidgetIndex(Widget) and null for getWidgetIndex(HasWidget) when the 
requested object isn't in the widget list. You can derive your own 
'contains' logic from the above.



Its purely a matter of style, but I'd personally prefer to avoid having 
extra state flags to manipulate and would rather use state that's 
already in the data of the object in question.



Alan


On 8/1/2011 11:51 AM, Deepak Singh wrote:
There is no contains(widget) available like 
RootPanel.get("id).contains(widget).




On Mon, Aug 1, 2011 at 10:48 PM, Alan Chaney <mailto:a...@mechnicality.com>> wrote:


How about:
if (!RootPanel.get("id).contains(widget)) {
RootPanel.get("id").add(widget);

Because of the nature of javascript and web browsers the above
call is inherently "thread safe".

HTH

Alan



On 8/1/2011 9:23 AM, Deepak Singh wrote:

I am making 2 seperate RPC calls.
 Whichever is finished first, i would add
RootPanel.get("id").add(widget) into onSuccess.

I can not add same widgets two times in both onSuccess(). So i am
out of mind how to resolve this.

Any logic pls.

On Mon, Aug 1, 2011 at 9:08 PM, Jens mailto:jens.nehlme...@gmail.com>> wrote:

Its not possible to stop execution as RPC requests are async.
The only thing you can do is to put your code that has to
wait into the onSuccess method of your RPC call.

-- J.
-- 
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/-/hgRZHjACARUJ.


To post to this group, send email to
google-web-toolkit@googlegroups.com
<mailto:google-web-toolkit@googlegroups.com>.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
<mailto:google-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-toolkit@googlegroups.com
<mailto:google-web-toolkit@googlegroups.com>.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
<mailto:google-web-toolkit+unsubscr...@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-toolkit@googlegroups.com
<mailto:google-web-toolkit@googlegroups.com>.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
<mailto:google-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-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.


--
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: Stop further execution till rpc completes

2011-08-01 Thread Alan Chaney

How about:
if (!RootPanel.get("id).contains(widget)) {
RootPanel.get("id").add(widget);

Because of the nature of javascript and web browsers the above call is 
inherently "thread safe".


HTH

Alan


On 8/1/2011 9:23 AM, Deepak Singh wrote:

I am making 2 seperate RPC calls.
 Whichever is finished first, i would add 
RootPanel.get("id").add(widget) into onSuccess.


I can not add same widgets two times in both onSuccess(). So i am out 
of mind how to resolve this.


Any logic pls.

On Mon, Aug 1, 2011 at 9:08 PM, Jens <mailto:jens.nehlme...@gmail.com>> wrote:


Its not possible to stop execution as RPC requests are async. The
only thing you can do is to put your code that has to wait into
the onSuccess method of your RPC call.

-- J.
-- 
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/-/hgRZHjACARUJ.

To post to this group, send email to
google-web-toolkit@googlegroups.com
<mailto:google-web-toolkit@googlegroups.com>.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
<mailto:google-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-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.


--
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: math error: modulo

2011-07-15 Thread Alan Chaney

What other languages?

In Java '%' in this case means " the remainder of"

the "remainder of " dividing -1 by 12 is -1, as is -13 %12 or -25 % 12.

I'd be interested to know which other language does what you say.

HTH

Alan


On 7/15/2011 3:07 PM, seven.reeds wrote:

int x = 0;
int y = -1;
x = y % 12;


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

2011-06-22 Thread Alan Chaney

and did you really mean ? probably should be ...

Alan


On 6/22/2011 1:58 PM, Deepak Singh wrote:

Hi,

I have one UIBinder  ABC.ui.xml.








Now i break this into 2 other uibinders named D.ui.xml




and E.ui.xml






Now i need to add new D() and new E() in corresponding places my 
ABC.ui.xml.


How do i do it Rootpanel is accesible to child elements as parent 
element (here id='main') is already attached to rootpanel.


Kindly suggest.

Regards
Deepak

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


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

2011-06-22 Thread Alan Chaney

define a namespace in the ABC.ui.xml

xmlns:my="urn:import:com.mycompany.package.for.uistuff"  // this 
should be the package of D and E


put it just below the namespace for urn:ui:com.google.gwt.uibinder

you can call it what you like 'my' is just an example.

then




< my:D />




HTH

Alan



On 6/22/2011 1:58 PM, Deepak Singh wrote:

Hi,

I have one UIBinder  ABC.ui.xml.








Now i break this into 2 other uibinders named D.ui.xml




and E.ui.xml






Now i need to add new D() and new E() in corresponding places my 
ABC.ui.xml.


How do i do it Rootpanel is accesible to child elements as parent 
element (here id='main') is already attached to rootpanel.


Kindly suggest.

Regards
Deepak

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


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



GWT and CORS with file uploads

2011-06-21 Thread Alan Chaney

Hi

My company is developing a REST API for an asset management system and 
we wish to add support for CORS both in the server (comparatively easy) 
and also in GWT client applications.


One use case for this API is a GWT application where the user uploads a 
file from their local filing system. So far, we've done this using the 
GWT FormPanel and FileUpload classes. AFAIKS from looking at the code, 
FileUpload uses a  element in an iframe. Experiments indicate that 
cross-site uploads actually perform the transfer of data to the server, 
but cookies and special headers are not sent, and the result comes out 
as null. This is exactly as would be expected from reading the Mozilla 
development docs.


As a simple test, I tried adding the Access-Control-Allow-Origin header, 
but, of course, the '' post doesn't generate the required OPTIONS 
header and as far as firefox 4 is concerned, this is not a CORS request.


It seems to me that to properly support POST and PUT with content types 
other than text/plain we need to properly implement an HTML5 form upload 
script which uses the new FormData object. Does anyone have any 
experience of AJAX support for CORS within GWT? If so, can they point me 
to/share with me the code that they used?


Thanks in advance

Alan

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



help with ant file

2011-06-20 Thread alan
Hello,

I generated a build.xml using webAppCreateor but I can't get past the
"gwtc" target.
The javac target succeeds and generates class files in war/WEB-INF/
classes/...

When I try to compile via ant I get this error.
[ERROR]  Unable to find type 'com.mycompany.myapp.fe.client.fe'

I have 3 packages:
com.mycompany.myapp.fe.client
com.mycompany.myapp.fe.server
com.mycompany.myapp.fe.shared

and my EntryPoint class is
com.mycompany.myapp.fe.client.fe

[alan@host01]  pwd
/home/alan/workspace/myapp/frontend

[amiller@host01]  find ./war -name '*.xml'  -exec ls -lgo {} \;
-rw-rw-r--  1 547  Jun 19 07:40 war/WEB-INF/web.xml
-rw-rw-r--  1 1097  Jun 20 08:06 war/WEB-INF/classes/com/mycompany/
myapp/fe/client/fe.gwt.xml

[amiller@host01]  find ./src -name '*.xml'  -exec ls -lgo {} \;
-rw-rw-r--  1 1097  Jun 20 07:38 src/com/mycompany/myapp/fe/client/
fe.gwt.xml

Here's the ant command output:

[amiller@host01]  ant clean
Buildfile: /home/alan/workspace/myapp/frontend/build.xml

clean:
   [delete] Deleting directory /home/alan/workspace/myapp/frontend/war/
WEB-INF/classes

BUILD SUCCESSFUL
Total time: 0 seconds
[amiller@us01dsainfo01]  ant
Buildfile: /home/alan/workspace/myapp/frontend/build.xml

libs:

javac:
[mkdir] Created dir: /home/alan/workspace/myapp/frontend/war/WEB-
INF/classes
    [javac] Compiling 15 source files to /home/alan/workspace/myapp/
frontend/war/WEB-INF/classes
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: /home/alan/workspace/myapp/frontend/src/com/
mycompany/myapp/fe/server/DataLdapServiceImpl.java uses unchecked or
unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
 [copy] Copying 1 file to /home/alan/workspace/myapp/frontend/war/
WEB-INF/classes
gwtc:
 [java] Compiling module com.mycompany.myapp.fe.client.fe
 [java]Finding entry point classes
 [java]   [ERROR] Unable to find type
'com.mycompany.myapp.fe.client.fe'
 [java]  [ERROR] Hint: Previous compiler errors may have
made this type unavailable
 [java]  [ERROR] Hint: Check the inheritance chain from
your module; it may not be inheriting a required module or a module
may not be adding its source path entries properly

BUILD FAILED
/home/alan/workspace/myapp/frontend/build.xml:47: Java returned: 1

Total time: 17 seconds

-- 
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 plugin compile can not ignore a source directory

2011-06-06 Thread Alan Chaney

On 6/6/2011 7:42 AM, stuckagain wrote:
Is there a possibility in the GWT plugin to configure a source folder 
NOT to be included when doing a GWT compile ?



See

http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml

and look for "Filtering Public and Source Packages"

You can use an ant-style excludes="..." to specify classes which should 
be included. For example, in my projects I use a **/*Test.java which 
excludes all Java files in all sub-dirs which have  'Test' as the last 
part of their name. You can use whatever is the correct pattern in your 
case.


HTH

Alan




I have a separate source folder in eclipse where I put my unit tests.

These unit tests are put in the same package so that I can gain access 
to package private classes.


These classes do not need to be GWT compiled, it slows down the 
compilation and they cause many errors to be reported.


When I use DevMode I can specify the classpath to not include my test 
directory ... I need something similar in the GWT Compile.


David
--
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/-/a0FvLVJnaC1qOVlK.

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.


--
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: eclipse GWT plugin jetty server problem

2011-05-26 Thread Alan Chaney

Try running:

ps alx | grep java

and carefully check that the jetty server has shut down properly. 
Sometimes a bug can stop the server shutting down, and thus the port 
appears to be still in use when you try and start another instance.


HTH

Alan


On 5/26/2011 2:09 PM, othman wrote:

probably this command : $sudo netstat --tcp --udp --listening --
program
But why sometimes the port is free and app can run whether sometimes
the port is not? this is a strange behavior maybe related to eclipse
gwt plugin?

On May 26, 9:52 pm, othman  wrote:

there are no other processes i believe. how can i know which processes
are listening to this address? i'm using linux.

On May 26, 9:02 pm, Juan Pablo Gardella
wrote:








The error "java.net.BindException: Address already in use" indicate that you
have a process that are listening in this port.
2011/5/26 othman

Hi,
i keep having an issue with GWT eclipse (helios) plugin in Linux box
(opensuse 11.4).
sometimes if i stop the dev mode server and then try "Run as->  web
Application" it gives me the below error. sometimes this doesn't give
error and the dev mode app is started by the gwt eclipse plugin.
maybe the dev mode server remains running for sometime after i stop it
with red button at right of "development mode" view tab. any Idea what
this problem is about?
Starting Jetty on port 
Port 127.0.0.1: is already is use; you probably still have another
session active   [WARN] failed SelectChannelConnec...@127.0.0.1:
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:
77)
at
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:
205)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
304)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
565)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
   [WARN] failed Server@1f34a6
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:
137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:
77)
at
org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:
205)
at
org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:
304)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at org.mortbay.jetty.Server.doStart(Server.java:233)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:
565)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
[ERROR] shell failed in doStartupServer method
--
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.


--
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 Designer also compiles test and shared classes

2011-05-19 Thread Alan Chaney

I think that Baloe summarizes  what I'm seeing as well.
I am getting exactly the same problem. Normally, by trial and error, I 
can work out what *real* issue is, and its never anything to do with the 
(in my case) 100s of spurious errors that are emitted which are all 
because something, somewhere, is ignoring the 'excludes' attributes that 
I have in my module files. To reiterate, exactly the same project 
compiles without error when I invoke the GWT compiler from eclipse or 
from the command line.


I tried turning off the WindowBuilder->GWT->Builder->Check for client 
claspath option and it makes no difference.


I said in an earlier message that I will submit a test case - I'll try 
and do that in the next couple of days.


Alan

On 5/19/2011 4:42 AM, Baloe wrote:

Hi all,

Thanks for the hints.

I understand that GWT Designer doesn't compile anything, but it calls
GWT to perform it's compilation, but strangely enough not with the
correct paths and other settings. We do not get _any_ of these errors
when we run the gwt compilation (either by starting up the development
mode or the regular runtime mode), never. We have never seen these
errors anywhere else.


Same here


So, the main question remains the same: how do I make sure that it
only compiles certain packages, or -appearently- just takes a proper
look to the project.gwt.xml file to see which packages it should look
into, and which modules it should inherit?

Exactly.


Thanks,
Niels

On 18 mei, 16:27, Eric Clayberg  wrote:

1) GWT Designer does not compile anything. Those [ERROR] lines you are
seeing are coming from GWT itself and imply some sort of problem with
your GWT project configuration.

In my case NO.


2) $hide$ comments are used to hide code from the GWT Designer parser
(for GUI editing purposes). They have no impact on the GWT compilation
process. $hide$ tags are described here...

http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/prefe...

On May 18, 8:20 am, Baloe  wrote:








Hi,
After renaming the server package, GWT designer now even hangs on
compiling the gwt-user.jar.
For example:
Validating newly compiled units
[ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/EventBus.java'
   [ERROR] Line 24: No source code is available for type
com.google.web.bindery.event.shared.EventBus; did you forget to
inherit a required module?
   [ERROR] Line 28: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
   [ERROR] Line 28: No source code is available for type
com.google.web.bindery.event.shared.Event.Type; did you forget
to inherit a required module?
   [ERROR] Line 48: No source code is available for type
com.google.web.bindery.event.shared.Event; did you forget to
inherit a required module?
   [ERROR] Line 68: Cannot cast from GwtEvent  to
Event
   [ERROR] Line 69: No source code is available for type
com.google.web.bindery.event.shared.UmbrellaException; did you forget
to inherit a required module?
   [ERROR] Line 76: Cannot cast from GwtEvent  to
Event
[ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
LegacyHandlerWrapper.java'
   [ERROR] Line 19: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
[ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
ResettableEventBus.java'
   [ERROR] Line 27: No source code is available for type
com.google.web.bindery.event.shared.ResettableEventBus; did you forget
to inherit a required module?
   [ERROR] Line 49: Cannot cast from GwtEvent.Type  to
Event.Type
   [ERROR] Line 49: No source code is available for type
com.google.web.bindery.event.shared.Event.Type; did you forget
to inherit a required module?
   [ERROR] Line 53: No source code is available for type
com.google.web.bindery.event.shared.HandlerRegistration; did you
forget to inherit a required module?
   [ERROR] Line 59: Cannot cast from GwtEvent.Type  to
Event.Type
   [ERROR] Line 68: No source code is available for type
com.google.web.bindery.event.shared.Event; did you forget to
inherit a required module?
[ERROR] Errors in 'jar:file:/C:/Niels/eclipseWorkspace2/Goofur/lib/
gwt-2.3.0/gwt-user.jar!/com/google/gwt/event/shared/
SimpleEventBus.java'
   [ERROR] Line 27: No source code is available for type
com.google.web.bindery.event.shared.SimpleEventBus; did you forget to
inherit a required module?
   [ERROR] Line 32: Cannot cast from GwtEvent.Type  to
Event.Type
   [ERROR] Line 32: No source code is available for type
com.google.web.bindery.event.shared.Event.Type; did you

Re: Re : Re: Javadoc 'latest'

2011-05-17 Thread Alan Chaney

Thanks, Thomas for clarifying what I was trying to say.

Just to be explicit - the link in the Reference->SDK API Reference on 
the GWT main page links to:


http://google-web-toolkit.googlecode.com/svn/javadoc/latest/index.html?overview-summary.html

This 'latest' is currently version 2.2 javadocs, although there does 
seem to be a 2.3.0.rc1 available. I was just enquiring as to when the 
javadocs were going to updated to match the current release.


Alan


On 5/17/2011 1:08 PM, Thomas Broyer wrote:
David, he talks about 
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/index.html which 
is 2.2, and 
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/index.html which 
is 2.3.0.rc1 --
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.


--
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 Designer also compiles test and shared classes

2011-05-17 Thread Alan Chaney

On 5/17/2011 11:41 AM, Eric Clayberg wrote:

I woud suggest opening a bug and including a complete test case that
illustrates the exact problem you are having.


OK Eric I'll do that.


You might also turning off the "WindowBuilder>  GWT>  Builder>  Check
for 'client' classpath" preference...

http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/gwt/preferences_builder.html
Sadly, I'm seeing this problem with Designer, and there doesn't seem to 
be such an option. The implication here is that I need to install the 
full Window Builder to be able to get around this problem?


Alan




On May 17, 2:25 pm, Alan Chaney  wrote:

On 5/17/2011 11:01 AM, David Chandler wrote:>  How is the GWT compiler able to 
compile your server-side classes? GWT

Designer is correct to include any source dirs you've specified in
your gwt.xml.

I raised a related issue the other day concerning this - GWT Designer
does not seem to correctly recognize the 'excludes' attributes.

In the case below, the OP could exclude. for example, **/*Test*.java in
the module file. Although this works fine for the actual GWT compiler,
GWT Designer chucks out (in my case) thousands of errors, all of them
related to it incorrectly finding references to things like
org.junit.Assert etc. I asked if this was a known bug, and it seems that
its not, so maybe I should report it?

Alan










/dmc
On Tue, May 17, 2011 at 1:34 PM, Baloemailto:nielsba...@gmail.com>>  wrote:
 Hi all,
 Is there any way to restrict GWT Designer to only certain packages?
 We have a serieus problem with this right now. We have some entity
 classes (in the shared package) with annotations. These annotations
 are implemented server-side, and we cannot move the classes to the
 serverside because we also read/write the entity classes in the client
 package. But, GWT Designer also wants to compile these classes.
 Another thing that is happening right now is that GWT Designer starts
 also to compile our test package, which doesn't succeed because these
 classes can never be compiled at client-side.
 So, how do we restrict GWT Designer? Later on it will randomly chose
 to compile our server package as well, which means that we should put
 our /server package in another eclipse project ;)
 Thanks for any hints,
 Baloe
 --
 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
 <mailto:google-web-toolkit@googlegroups.com>.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com
 <mailto:google-web-toolkit%2bunsubscr...@googlegroups.com>.
 For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w:http://code.google.com/
b:http://googlewebtoolkit.blogspot.com/
t: @googledevtools
--
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.


--
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 Designer also compiles test and shared classes

2011-05-17 Thread Alan Chaney


On 5/17/2011 11:01 AM, David Chandler wrote:
How is the GWT compiler able to compile your server-side classes? GWT 
Designer is correct to include any source dirs you've specified in 
your gwt.xml.
I raised a related issue the other day concerning this - GWT Designer 
does not seem to correctly recognize the 'excludes' attributes.


In the case below, the OP could exclude. for example, **/*Test*.java in 
the module file. Although this works fine for the actual GWT compiler, 
GWT Designer chucks out (in my case) thousands of errors, all of them 
related to it incorrectly finding references to things like 
org.junit.Assert etc. I asked if this was a known bug, and it seems that 
its not, so maybe I should report it?


Alan





/dmc

On Tue, May 17, 2011 at 1:34 PM, Baloe <mailto:nielsba...@gmail.com>> wrote:


Hi all,

Is there any way to restrict GWT Designer to only certain packages?

We have a serieus problem with this right now. We have some entity
classes (in the shared package) with annotations. These annotations
are implemented server-side, and we cannot move the classes to the
serverside because we also read/write the entity classes in the client
package. But, GWT Designer also wants to compile these classes.

Another thing that is happening right now is that GWT Designer starts
also to compile our test package, which doesn't succeed because these
classes can never be compiled at client-side.

So, how do we restrict GWT Designer? Later on it will randomly chose
to compile our server package as well, which means that we should put
our /server package in another eclipse project ;)

Thanks for any hints,
Baloe

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




--
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools
--
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.


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



Javadoc 'latest'

2011-05-17 Thread Alan Chaney
Sorry if this has already been asked, but the 'latest' links to 2.2 at 
the moment. The trunk appears to have 2.3.0 RC1 - are there plans to 
make 2.3 final and the target of 'latest'?


Thanks

Alan

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



WindowBuilder problems

2011-05-13 Thread Alan Chaney

Hi

I'm evaluating WindowBuilder from GWT 2.3.1.

Its more stable and more useful than earlier versions. However, I'm 
encountering two major problems:


A. Error reporting is pathetic. It also seems that whatever WB does when 
it finds an error involves it parsing all the source files it can find. 
My project has a number of subsidiary GWT modules which have  excludes="**/*Test.java" />   (for example). However WB seems to 
complete ignore these and thus I get 100's of lines of spurious errors 
complaining about not being able to find files which should have been 
excluded. The program runs fine in dev. mode and compiles without error 
using the GWT compiler so the problem is specific to WB. Even then, 
frequently it won't show the actual error, and I have to resort to 
commenting out blocks of markup to see where the problem lies.



B. When you switch into XML Source mode and enter a "<", eclipse 
immediately goes unresponsive with a message 'Loading referenced 
grammars (Sleeping)" in the progress window. I've noticed that this also 
coincides with a lot of network activity. Is this an issue with a schema 
or DTD? If so, it could probably be avoided by including these in the 
distribution and setting the appropriate XML dictionary reference in 
Eclipse. Since it doesn't actually say what the 'reference grammars' 
are, there's noting that I can do but wait. Thus, I find myself with 
lots of time to send whining messages to the GWT list! Occasionally it 
never returns, and I have to terminate eclipse and start over.


I've looked around for comments on these points and found nothing 
useful. If somebody has any input on them I'd be very grateful - 
otherwise I'll report them as bugs - (where?)


Thanks In Advance

Alan








--
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/Tomcat and java.lang.NoClassDefFoundError!

2011-05-13 Thread Alan Chaney
The classes you give below are the servlet api classes - 
javax.servlet.http.HttpRequest for example.


All you need to do to access those is to add the servlet-api.jar to your 
classpath. You'll find the right copy to use in the tomcat/lib folder.


You can either add it to your classpath environment variable  or simply 
copy it to your lib folder.


I'd be interested if you have any specific reason for directly using the 
org.apache.catalina classes - that will tie your application to a 
specific release of Tomcat, and that's really not a very good idea.


Alan

HTH




On 5/12/2011 11:30 AM, ramoq wrote:

I am trying to use some of the objects in the catalina.jar in tomcat
(ie. HTTPRequest, Realm.java, ... you get the idea) however, I always
get a NoClassFoundException error. Code complies correctly,the gwt app
(war file) is deployed with no errors.

I get this when trying to use any of the org/apache/catalina/*
classes. Otherwise everything else is OK.

I know this is a classpath issue, but the catalina.jar is in the
tomcat/lib and the WEB-INF/lib just has some regular stuff (ie. gwt-
servlet.jar, gwt-maps.jar, gwt-debug-panel.jar, gwt-incubator..)

any help would be greatly appeciated.



--
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 2.3 Upgrade breaks hibernate queries?

2011-05-11 Thread Alan Chaney
I had a similar problem. I fixed it by adding a dependency on the 
Hibernate library  hibernate-validator 4.1.0 to my project. I use ivy, 
so I don't know how that works in maven. In ivy its:


rev="4.1.0.Final" conf="default" />


I found that the actual problem was caused by the annotation scan in 
hibernate determining that the validator API was being used and 
hibernate not being able to find a default annotation provider - which 
is pretty much what Trevor says below.


Regards

Alan

On 5/11/2011 8:07 AM, Trevor Skaife wrote:

My guess is that because gwt is requiring the javax validation api
that hibernate then thinks you want to validate it's configuration
which then means you need the hibernate validator.

On May 11, 8:26 am, cruser  wrote:

Hi Juan,

Thank you for the reply

I am guessing you're referring to the pom.xml??? I am not using maven or any
dependency management tool. Do you know why these extra dependencies are
needed? My project works fine without these dependencies running GWT 2.2. If
I upgrade to GWT 2.3 then it breaks.

Anyone able to explain WHY it breaks?


--
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: Configuring a GWT application in both hosted mode and Tomcat

2011-05-05 Thread Alan Chaney

Erel

On 5/5/2011 10:03 AM, Erel Segal wrote:

I have a GWT web application that I run on multiple Tomcat servers. It
happens to need some configuration, such as database username and
password, initialization data, etc. I would like to put all this info
in a configuration file, but, I where should I put the file so that my
application will find it?


Your question is really a tomcat question rather than a GWT question, in that the information you 
are providing is for the server, and

not directly for the GWT application.

My personal practice is to do the following:

1. If the information is the same in all instances, place it in a Java properties file in the 
classpath - typically a "myapp.properties" file.
Then use the ClassLoader.getResource() or ClassLoader.getResourceAsInputStream() to read it. If you 
are using Spring, you can actually inject

such a resource file into the appropriate service bean.

2. If the information is different in different environments, place the properties file in a "known 
place" for example, ${user.home}/.myapp/myapp.properties. See my comment below about starting as 
root


3. If you *really* need the option to specify the location, do it as -DpropertyfileName=your property> on the command line, and indirect all the references to the property file in the 
methods above.



* I tried to use an environment variable to tell me where the file is
located, but, I found out that the environment on Linux depends on who
starts the Tomcat server - if it is started at initialization, it's
the environment of the "root" user, but if I restart it manually, it
uses my personal environment (Windows doesn't have this problem).


Apologies for "shouting", but!

NEVER EVER RUN TOMCAT AS ROOT ON A PUBLICLY ACCESSIBLE SERVER!

This is a *huge* security hole. Either:

1. bind the server to a port above 1000 and start and run as a regular or 
restricted user.

2. Use jsvc to start the server as root and switch to a restricted user after startup. Search google 
for jsvc (its in the tomcat distro.)
IMHO this is best way to start and stop tomcat - you can have an init script and do "service tomcat 
start" and "service tomcat stop" in linux



3. Use some kind of port mapping (eg Apache + a connector or iptables) to map from port 80 if you 
really don't want to use jsvc and you must have http:80.


By restricted user I mean that I create a tomcat user who does not have a login and isn't called 
'tomcat'!. Then I start the server as this user. If I need to start the server manually, then I SSH 
as a regular use (with a port diffferent from 22) and su - and then su - tomcatuser to start the 
server. To do this, you should make all read-only tomcat and application files owned by root, and 
only those files (mainly logs and scratch areas) which *must* be written owned by tomcatuser (or 
whatever you call them). If you need access from your command line, then create a common group and 
set the appropriate s bits for shared access. Google for "linux permissions".



HTH

Regards

Alan




I am sure I am not the first one that needs to configure a GWT
application. How do the experts do this?





--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: Grid + UiBinder : Setting row level styles

2011-05-03 Thread Alan Chaney
Where are the styles defined? For example, if they are defined in the actual ui.xml file then 
shouldn't they be somthing like:


 addStyleNames="{style.OddNumberRow}" etc?

Regards

Alan

On 5/3/2011 9:25 AM, karthik reddy wrote:

...
.








...
...
The above approach is not working. In other words, the "tr" elements in the
generated html do not have any class names at all. A back up option would be
to inject styles into these rows from the UiBinder's constructors (using
getRowFormatter.addStyleName) but
I do not want to take that route for now.(I wanna try to  reserve the code
that goes into the UiBinder java class for event handling purposes only. )

Any thoughts/pointers would be much appreciated.


Note:Cross posted at
http://stackoverflow.com/questions/5864348/grid-uibinder-setting-row-level-styles

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: Problems with Godaddy hosting and server-side deserialization

2011-05-02 Thread Alan Chaney

Joe

On 5/2/2011 3:26 PM, Joe D. wrote:

Alan,
Do you have suggestions for hosting providers that you are happy with. I'm
so sick of NoDaddy and trying to fit a square peg (eg GWT) into a round hole
(eg CrapDaddy).
*Webhostingjava.net *looks interesting.
I've used what was thePlanet but has now evolved into Softlayer for several years on several 
projects quite successfully. There's also AWS and RackMount. I have no experience of 
Webhostingjava.net so I can't comment.



I've also considered moving away from GWT-RPC to JSON, as the former seems
to be the problem (if you will). Besides, GWT-RPC is not available for
Android which is a severe limitation.


Yes, that's a possibility. Good point about Android

Alan

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



Controlled shutdown of dev mode in Eclipse

2011-04-29 Thread Alan Chaney

Hi

Does anyone know a way to get Jetty to shutdown in a more orderly fashion? When you press the red 
square in the Development Mode UI, it just stops dead - consequently some of my server shutdown 
scripts don't run.


I'd like to be able to detect the servlet context listener contextDestroyed 
event.

TIA

Alan

--
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: Trying to send image to server

2011-04-29 Thread Alan Chaney

On 4/29/2011 9:17 AM, Patssay wrote:

Hi,

Thanks.
So I should have the Email class in the shared folder?

Yes

Also should the module.gwt.xml file be updated?

Yes - it should have:



it it.

But mainly, you need to make sure that your server-side classpath contains the file, because the 
server must be able to instantiate it.


That's what your original error seemed to imply. GWT de-serializes classes on the server by looking 
for the classname as a string in the RPC payload and then doing a 'Class.forName'. Thus the class 
must be available to the server classloader. To be honest, I don't understand why yours isn't if you 
are using eclipse, because the typical GWT project setup adds all the classes in the src folder to 
the classpath. Are you getting this problem when you are running under the debugger in Eclipse? or 
only when you deploy. If its the later, you should check that the *client* and *shared* .class files 
are present under WEB-INF/war/classes folder.




HTH

Alan



Actually I am trying to implement the functionality of sending email
from my gwt application.
I have the functionality up and running on the server. All it needs is
the
email addresses from the client and the image that should be sent from
the client to the server.
Hence the need for class email which has all these attributes
enclosed.
 From what I read gwt allows the user defined classes to be sent to the
server provided they are serialized.
Really appreciate your help.

Cheers,
Sayali

On Apr 29, 8:36 am, Alan Chaney  wrote:

You need to make sure that your client class is in the *server's* classpath. 
The exception below
indicates that its not.

I make it a practice to have a 'shared' package hierarchy parallel to my client 
packages and ensure
that:

A. shared is declared in the module gwt.xml file

B. shared is also available to the server C/P

HTH

Alan

On 4/29/2011 6:25 AM, Patssay wrote:










Hi,
I am trying to send an image from client to server.
I have used ImageResources on client side to load images.
but now i want to send the image to server side and send mail
from the server side?
I tried creating class on client side and made it seriablizable.
but it throws errors.
aused by: java.lang.ClassNotFoundException:
umd.hci.greetingcardmaker.client.Email
at java.lang.ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java :
352)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java :
337)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.google.gwt.user.server.rpc.RPC.getClassFromSerializedName(RPC.java:
700)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:290)
... 22 more
Email is my defined client side class.
Thanks
Sayali

--
Alan Chaney
CTO and Founder, Mechnicality, Inc.www.mechnicality.com



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: Trying to send image to server

2011-04-29 Thread Alan Chaney
You need to make sure that your client class is in the *server's* classpath. The exception below 
indicates that its not.



I make it a practice to have a 'shared' package hierarchy parallel to my client packages and ensure 
that:


A. shared is declared in the module gwt.xml file

B. shared is also available to the server C/P



HTH

Alan


On 4/29/2011 6:25 AM, Patssay wrote:

Hi,

I am trying to send an image from client to server.
I have used ImageResources on client side to load images.
but now i want to send the image to server side and send mail
from the server side?

I tried creating class on client side and made it seriablizable.
but it throws errors.

aused by: java.lang.ClassNotFoundException:
umd.hci.greetingcardmaker.client.Email
at java.lang.ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
352)
at
org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:
337)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.google.gwt.user.server.rpc.RPC.getClassFromSerializedName(RPC.java:
700)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:290)
... 22 more


Email is my defined client side class.


Thanks
Sayali




--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: can I send something like upload finished answere from HTTP servlet to my application ?

2011-04-29 Thread Alan Chaney
See FormPanel and  FileUpload in the java docs. The FormPanel.onSubmitCompleteHandler does exactly 
what you want. When your file has finished uploading the browser generates this event, and you can 
use it to hide your upload panel.

*
com.google.gwt.user.client.ui.FileUpload*

http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/index.html

Regards

Alan




On 4/28/2011 10:50 PM, Manvel Saroyan wrote:

Hi
  please tell me can I send something like upload finished answere from
HTTP servlet to my application ?
I want to create a loader when user upload the file and hide that
uploader when the upload finishes. Please tell me is there a way  to
make this trick ?




--
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: Loading thumbnails of images as links in gwt

2011-04-27 Thread Alan Chaney
I don't believe that's the full stack trace. A bit further down the screen it will probably give you 
a hint as to what happened.


Alan


On 4/27/2011 6:22 AM, Patssay wrote:

Hi,

Well, on clicking the image reload the page with different widgets.

I tried using the Clickhandler for the image but it threw a series of
exception like


com.google.gwt.event.shared.UmbrellaException: One or more exceptions
caught, see full set in UmbrellaException#getCauses
 at
com.google.gwt.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:
214)
 at
com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
103)
 at
com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:
101)
 at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:103)
 at
com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:
116)
 at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:
151)
 at com.google.gwt.user.client.ui.Image.onBrowserEvent(Image.java:
665)
 at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1310)
 at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1266)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

On Apr 22, 2:24 pm, Ben Imp  wrote:

The Image class implements HasClickHandlers, so you can just tie into that
and do whatever you need to do when your handler gets called.

-Ben


--
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: Warning while loading images from local machine

2011-04-26 Thread Alan Chaney

Well, 404 is "NOT FOUND"

and as the image path is

/Images%5Cbirthday1.jpg

I suspect that you've urlencoded the path somewhere ( %5C === '\') which is a path separator in 
windows but not a valid path separator in HTTP.  In other words, the URL for the image should be 
/Images/birthday1.jpg




HTH

Alan

On 4/26/2011 3:29 PM, Patssay wrote:

Why do I get this message when I am trying to load images from local
machine
in my GWT application?


[WARN] 404 - GET /Images%5Cbirthday1.jpg (127.0.0.1) 1408 bytes
Request headers
   Host: 127.0.0.1:
   User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
1.9.2.16) Gecko/20110319 Firefox/3.6.16 PBSTB/1.2
   Accept: image/png,image/*;q=0.8,*/*;q=0.5
   Accept-Language: en-us,en;q=0.5
   Accept-Encoding: gzip,deflate
   Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
   Keep-Alive: 115
   Connection: keep-alive
   Referer: http://127.0.0.1:/Greetings.html?gwt.codesvr=127.0.0.1:9997
Response headers
   Content-Type: text/html; charset=iso-8859-1
   Content-Length: 1408




--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: Problems with Godaddy hosting and server-side deserialization

2011-04-22 Thread Alan Chaney
I have no experience with GoDaddy, but it looks to me like they have a Java security manager in 
place. You could fix your problem by changing the security settings to allow  classes in the 
com.google.gwt.user.server.rpc.impl package access.


You may have to take this up with GoDaddy, as I suspect they may have a standard security manager 
that they use.


As a matter of interest I use tomcat regularly on other hosting providers and 
have no problems.

HTH

Alan


On 4/22/2011 7:51 AM, Andrew Calleja wrote:

Unfortunately the appengine doesn't cater for my needs as the 3000
files limit is too low for the custom skin I need to use.

Is there really no way around the above?

Thanks again,

Andrew

On Apr 21, 6:49 pm, Andrew C  wrote:

Will look it up.

Thanks David and Nino

On Apr 21, 6:18 pm, nino ekambi  wrote:








+ 1  for Appengine
You will never regret :)
2011/4/21 David Chandler

Hi Andrew,

Can anyone point me in the right direction?

May I suggest Google App Engine? :-)
/dmc
On Wed, Apr 20, 2011 at 4:55 PM, Andrew C  wrote:

Hi there,
I have developed an application using GWT and have managed to
successfully deploy it on my local tomcat server. Everything works
fine here and I am able to transmit serialized data from client to
server and vice-versa. However, when I use Godaddy hosting, on a
specific call to server, due to what I believe are restrictions on
reflection, I am getting the following exception:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessDeclaredMembers)
java.security.AccessControlContext.checkPermission(AccessControlContext.jav a:
264)
java.security.AccessController.checkPermission(AccessController.java:
427)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
java.lang.Class.checkMemberAccess(Class.java:2125)
java.lang.Class.getDeclaredConstructor(Class.java:1952)
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.instant 
iate(ServerSerializationStreamReader.java:
886)
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria 
lize(ServerSerializationStreamReader.java:
544)
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO 
bject(AbstractSerializationStreamReader.java:
61)
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
$ValueReader$8.readValue(ServerSerializationStreamReader.java:137)
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria 
lizeValue(ServerSerializationStreamReader.java:
384)
com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:296)
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi 
ceServlet.java:
186)
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi 
ceServlet.java:
224)
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract 
RemoteServiceServlet.java:
62)
javax.servlet.http.HttpServlet.service(HttpServlet.java:
709)javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor274.invoke(Unknown
Source)sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce 
ssorImpl.java:
25)
java.lang.reflect.Method.invoke(Method.java:
592)org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:
239)
java.security.AccessController.doPrivileged(Native
Method)javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:
266)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:
157)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio 
nFilterChain.java:
231)
org.apache.catalina.core.ApplicationFilterChain.access
$000(ApplicationFilterChain.java:50)
org.apache.catalina.core.ApplicationFilterChain
$1.run(ApplicationFilterChain.java:140)
java.security.AccessController.doPrivileged(Native Method)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC 
hain.java:
136)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j ava:
214)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
xt.java:
104)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex 
tValve.java:
198)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j ava:
152)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
xt.java:
104)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
137)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
xt.java:
104)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
117)
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
xt

Re: Webapp runs in development mode perfectly but fails on test server

2011-04-14 Thread Alan Chaney

Have you checked that the jar files that you require are actually in the war 
file?

The tomcat errors appear to be saying that you don't have all the jars present.

Its possible to develop gwt applications without all the jars being present in the WEB-INF/lib 
folder because gwt finds them for you as long as they are on the classpath. However, you should 
check that all the required jars are actually present in the final war.


HTH

Alan



On 4/13/2011 2:01 PM, Rob Tanner wrote:

Hi,

My webapp runs perfectly in development mode, but when I build the WAR
file and move onto a test server, I have problems.  Database
connections are failing and hitting the return key does not move the
cursor to the next field even though I that function is explicitly
look for KeyCodes.KEY_ENTER and set the focus to the next widget.

The only errors I'm seeing are in catalina.out:

Apr 13, 2011 1:44:07 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(/usr/local/java/apache-tomcat-7.0.12/webapps/
AccountRequest/WEB-INF/lib/gwt-dev.jar) - jar not loaded. See Servlet
Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Apr 13, 2011 1:44:07 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(/usr/local/java/apache-tomcat-7.0.12/webapps/
AccountRequest/WEB-INF/lib/gwt-user.jar) - jar not loaded. See Servlet
Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

I'm using jdk1.6.0_22.  Since I upgrade to gwt 2.1.1, I though
possibly that the 5.5.31 version of Tomcat might be incompatible, so I
updated to the current version 7.0.12.  A big jump, but the error is
the same.  Any ideas?

Thanks,

Rob Tanner
Linfield College



--
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: HTML5 Offline apps future support?

2011-04-01 Thread Alan Chaney

Hi Joe

I'm nothing to do with google, but your question is interesting:

On 4/1/2011 8:12 AM, joe kolba wrote:
Do you think GWT will eventually support offline app development by incorporating Webkit local 
database support?  My company I work for is currently researching developing ipad/android web 
apps.  Since we cannot run a java server efficiently on these devices we are considering going 
with HTML5, javascript and css3 to create large business applications.


1. What do you mean 'cannot run a java server efficiently'? Do you mean that you can't access an 
on-line service reliably on a mobile device?


2. Nothing is stopping you from writing a JSNI binding to anything which is available in the 
browser. If the browser has support for the feature, then you can determine that with one or two 
lines of javascript and then use it. For example, there are bindings to HTML5 features such as WebGL 
and other capabilities like XMPP (gwt-strophe). One of the nice things about GWT is that it is 
comparatively easy to extend and tune your application's capabilities because of the infrastructure 
work that Google has already done.



It seems to me that the bigger issue right now is that Webkit local database support doesn't 
actually seem to be supported in the mainstream browsers.


Regards

Alan




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



--
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: View-Presenter Interaction Patterns in Google Web Toolkit (GWT)

2011-03-01 Thread Alan Chaney

Good article. Thanks.

Alan


On 3/1/2011 7:38 AM, Geoffrey Wiseman wrote:

If you're using Model-View-Presenter with GWT (or you're thinking
about it), there are a number of different patterns you can use to co-
ordinate between your view and the corresponding presenter. Ray Ryan's
"Best Practices for Architecting your GWT App" at I/O 2009 showed off
one pattern, Daniel Danilatos refined that for his "GWT Testing Best
Practices" presentation during I/O 2010, and a third pattern was used
in the "Large-Scale Application Development and MVP" article in the
GWT wiki.  Using these and my own experiences with these patterns,
I've taken a small example, demonstrated how to apply each of these
patterns to that example, and written up some of the advantages and
disadvantages.

http://blog.codiform.com/2011/03/view-presenter-interaction-patterns-in.html

These patterns are by and large available already in the sources
above, but by bringing them together and talking about some of the
pros and cos, I hope to save some people some of the sorts of
experimentation that many of us will have already gone through to
decide which one of these patterns works best for us.




--
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: Problems with Firefox 4B12 in dev mode.

2011-02-28 Thread Alan Chaney

Hi Chris

Do you want me to file a bug report?  I haven't had a chance to test it on more than one platform 
(win7/x86_64)/GWT2.1.1 but its likely that I could test it with Vista X86_64/GWT.2.2 this afternoon PST.


Alan



On 2/28/2011 8:28 AM, Chris Conroy wrote:

Alan,

Thanks for the bug report. This appears to be a Windows specific problem for 
beta 12.

On Sun, Feb 27, 2011 at 8:35 AM, Alan Chaney <mailto:a...@mechnicality.com>> wrote:




Hmm, Firefox decided to upgrade my Win 7/64 from B11 to B12 this morning. 
I'm using GWT 2.1.1

I suspect dev mode is broken in FFB12 (although it was fine in B10 and B11)

When I try and run with FF in dev (hosted) mode I'm getting

Exception in thread "Code server for mollychat from Mozilla/5.0 (Windows NT 
6.1; WOW64;
rv:2.0b12) Gecko/20100101 Firefox/4.0b12 on
http://127.0.0.1:/MollyChat.html?gwt.codesvr=127.0.0.1:9997 @ 
7^GWSIdAe-|p~%Y/"
com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection 
lost
   at

com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:521)
   at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
   at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.SocketException: Connection reset by peer: socket write 
error
   at java.net.SocketOutputStream.socketWrite0(Native Method)
   at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
   at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
   at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
   at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
   at java.io.DataOutputStream.flush(DataOutputStream.java:106)
   at 
com.google.gwt.dev.shell.BrowserChannel$ReturnMessage.send(BrowserChannel.java:1310)
   at

com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:518)
   ... 2 more

but it still works fine in Chrome 11.0.672.2. It also works fine with FFB12 
in production mode.

Sigh... I suppose this is yet another 'upstream' issue with Mozilla 
changing their plug-in API?

If someone else can confirm this I'll report a bug.

Regards

Alan






--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

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



Problems with Firefox 4B12 in dev mode.

2011-02-27 Thread Alan Chaney



Hmm, Firefox decided to upgrade my Win 7/64 from B11 to B12 this morning. I'm 
using GWT 2.1.1

I suspect dev mode is broken in FFB12 (although it was fine in B10 and B11)

When I try and run with FF in dev (hosted) mode I'm getting

Exception in thread "Code server for mollychat from Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12) 
Gecko/20100101 Firefox/4.0b12 on http://127.0.0.1:/MollyChat.html?gwt.codesvr=127.0.0.1:9997 @ 
7^GWSIdAe-|p~%Y/" com.google.gwt.dev.shell.BrowserChannel$RemoteDeathError: Remote connection lost

at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:521)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.SocketException: Connection reset by peer: socket write 
error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
at java.io.DataOutputStream.flush(DataOutputStream.java:106)
at 
com.google.gwt.dev.shell.BrowserChannel$ReturnMessage.send(BrowserChannel.java:1310)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:518)
... 2 more

but it still works fine in Chrome 11.0.672.2. It also works fine with FFB12 in 
production mode.

Sigh... I suppose this is yet another 'upstream' issue with Mozilla changing 
their plug-in API?

If someone else can confirm this I'll report a bug.

Regards

Alan


--
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: Where do I put the Tomcat Context.xml file?

2011-02-24 Thread Alan Chaney

war/META-INF/context.xml

just create the dir and pop in the context.xml.

You should check carefully the tomcat docs w.r.t context.xml - the spec. has changed a lot between 
different versions of tomcat.


HTH

Alan

On 2/24/2011 1:44 PM, Greg Dougherty wrote:

I'm starting to use JNDI with my Servlet, for which I need to place a
context.xml file in /META-INF/context.xml for my .war file?  Where is
that in the GWT file hierarchy?  war?  war/WEB-INF?

TIA,

Greg




--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: Spring GWT Integration

2011-02-24 Thread Alan Chaney
There is no 'official' way to use Spring with GWT. Both frameworks are extremely flexible and can be 
configured in a number of different ways depending upon your application.


If you are referring to  SpringROO, then see:

http://www.springsource.org/roo

which has substantial documentation.

However, if you want to use a Spring web-app as the backend for a GWT application, the simplest way 
to do it has no impact on the GWT side at all - just build a regular Spring application, and in the 
init method of the GWT RPC or Request factory servlet, inject any services by simply retrieving the 
service beans from the WebApplicationContext. Its a bit clumsy, but it works and takes about 5 mins 
of coding.


There are more elegant ways - many of which are separate o/s projects. GIYF, I suggest. For example, 
we use the Spring MVC mechanism and have created a Handler wrapper for the GWT RPC servlet. Works 
nicely. I can supply code if requested, but there are other projects out there.



HTH

Alan


On 2/24/2011 11:48 AM, lascarayf wrote:

Why GWT team do not make a OFFICIAL GWT SPRING INTEGRATION
DOCUMENT??




--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: Best hosting provider for GWT app

2011-02-23 Thread Alan Chaney

Hi Deepak

See inline comments.

On 2/22/2011 10:37 AM, Deepak Singh wrote:

Hi All,

Lets share our experience for the hosting of gwt apps. If someone has experienced a hosting 
provider before or know the best in the market, let all should know who is the best ?

Priority should be the server speed to deliver files quickly as gwt app face 
the startup time issue.

I've used a number of hosting providers over the years, and transfer speeds are normally limited by 
the client and the ISP you are connected to. For example, I currently use what was thePlanet and is 
now called SoftLayer - I've measured transfers in the 100's of mbits from other Tier-3 providers 
when I've used wget from the command line. However, the best I can do to my workstation is  around 
26 Mbps - which is limited by Time-Warner, my ISP.


I'd say the measures of a hosting provider are (in no particular order)

1. price
2. SLA - surprising how difficult it is to get past 5/9's
3. Their response when things go wrong.

I've found Softlayer to be Ok on 1 and very good on 3. I can't remember what 
their SLA is.

YMMV

Alan

--
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: Server Push

2011-02-21 Thread Alan Chaney

Hi Nate/(Robert?)

Very interesting project.

On 2/20/2011 4:39 PM, Robert Lockwood wrote:
This project is to provide a web page GUI to control sensors that connect to other (PC104) 
computers.  The whole system, everything, will be on a "LAN" on our research aircraft and will not 
connect to the web.  I know that this is a bit unusual. This provides a "universal" GUI that is 
not required to be displayed only on our clunky FAA certified flat screen display (the display is 
OK but the "mouse" and keyboard are difficult to use).
Hmm - just to clarify - you want to be able to display on devices other than the FAA screen. Do you 
have complete control over what device upon which your GUI is being displayed? My reason for asking 
is that there's a lot of overhead involved in learning about/developing/installing a web server and 
web client applications and your use case is so far from how such applications are normally used 
that it might be worth considering alternatives. For example, you could write an RIAA application in 
Java/Swing which would reverse the normal server/client approach. Your main application could be the 
"client" and you could generate requests from the RIAA app. You could use standard java networking 
(which is much simpler than messing about with browser serialization) and implement a text book 
threaded pooling loop in less than 100 lines of code.


You could actually use other display toolkits - for example, GTK or WxWidgets if you'd prefer to 
write in C++. Or you could stick with Java and use an applet - still a perfectly viable technology 
and one that works well when you are not trying to interface to every possible version and brand of 
web browser.


These solutions may be a better fit for your application than GWT. As this is the GWT list, if you 
wish to pursue this line of discussion its probably best to contact me off list.


HTH

Regards

Alan


The main program with will be running at the same time as whatever server we install on the same 
machine and will take care of servicing the other two or three PC104s each of which will control 
one or two sensors, mostly imaging radiometers.


The web page will have buttons for the user, some kind of status log, a canvas, and probably 
popups to enable entry of text or numbers.  I expect it to be rather simple as it is only an 
interface to the controller application providing commands to the controller and receiving status 
messages. Commands allow the user to turn cameras on and off etc. and to monitor operation. 
After initialization of everything there won't be much activity.


I expect that the headless PC104s that control the sensors will boot and initialize without user 
input and then wait to connect to the master controller.


Thanks for your reply.



On Sun, Feb 20, 2011 at 3:07 PM, Alan Chaney <mailto:a...@mechnicality.com>> wrote:


Nate,

See comments below:


On 2/20/2011 11:02 AM, Nate wrote:

I just started with GWT and Eclipse and am new to Java as well - but
learning.
I'm trying to code some proof of concept apps for our larger project.
My model is that the GWT will start about at the same time that my
main application starts.

A GWT application is a way of creating a Javascript web page intended for 
AJAX operation - it
"starts" when you enter a URL in a browser and the page is fetched from the 
server (or
reloaded from a local cached version). Specifically speaking, your code 
execution is triggered
by the browser onload event for the body tag.


The user will establish a connection at some
point.  Only one user will connect at any time.

To what? You mean only one client will connect to your server app. at one 
time? Thats a very
unusual setup for a web server. Also, see above - the 'user' will establish 
a connection by
opening the URL.


The main application will enqueue status messages for delivery to the
server side when requested where they will be enqueued until requested
by the client.

Its not clear to me what you mean by "main application" - is this your 
business layer?
Normally, you run web apps inside a servlet container, which responds to 
HTTP requests from
the client (which may or may not be XHR) and then transfers a result 
page/data, which may be
HTML, XML, JSON or binary depending upon the request type. Typically these 
apps have two or
three layers - search google for "web application architecture"


 I had thought to use a timer to send the requests but
now see that it is possible to for the server to push the data
(Strings).

If you mean real server push to the client, that requires something like 
WebSockets (not
widely supported, yet) or Comet (not supported on all servers). These 
generally require 'lo

Re: Server Push

2011-02-20 Thread Alan Chaney

Nate,

See comments below:

On 2/20/2011 11:02 AM, Nate wrote:

I just started with GWT and Eclipse and am new to Java as well - but
learning.
I'm trying to code some proof of concept apps for our larger project.
My model is that the GWT will start about at the same time that my
main application starts.
A GWT application is a way of creating a Javascript web page intended for AJAX operation - it 
"starts" when you enter a URL in a browser and the page is fetched from the server (or reloaded from 
a local cached version). Specifically speaking, your code execution is triggered by the browser 
onload event for the body tag.



The user will establish a connection at some
point.  Only one user will connect at any time.
To what? You mean only one client will connect to your server app. at one time? Thats a very unusual 
setup for a web server. Also, see above - the 'user' will establish a connection by opening the URL.



The main application will enqueue status messages for delivery to the
server side when requested where they will be enqueued until requested
by the client.
Its not clear to me what you mean by "main application" - is this your business layer? Normally, you 
run web apps inside a servlet container, which responds to HTTP requests from the client (which may 
or may not be XHR) and then transfers a result page/data, which may be HTML, XML, JSON or binary 
depending upon the request type. Typically these apps have two or three layers - search google for 
"web application architecture"



  I had thought to use a timer to send the requests but
now see that it is possible to for the server to push the data
(Strings).
If you mean real server push to the client, that requires something like WebSockets (not widely 
supported, yet) or Comet (not supported on all servers). These generally require 'long running' TCP 
requests (similar to XMPP).


See:
http://en.wikipedia.org/wiki/Comet_%28programming%29

http://code.google.com/p/rocket-gwt/wiki/Comet


http://www.google.com/events/io/2010/sessions/building-real-time-apps-app-engine-feed-api.html

http://en.wikipedia.org/wiki/WebSockets

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


Also, you might like to look at the XMPP libraries (gwt-strophe and emite) - I realize that you may 
not be intending to build a chat app but XMPP also uses the 'long-running' model and you may get 
some tips and hints from looking at that stuff.




I think I understand how to use the timer method and have coded a test
case.
Ok - typically the client app can poll the server - one important issue is the frequency of the poll 
requests which should be long enough to allow the client to retrieve the data and display it to the 
user. There are four steps:


1. transit of request from client to server
2. server-side processing of request and creation of response
3. transit of response to client
4. display of data to client.

1 and 3 depend upon your uplink and downlink bandwidths
2 depends upon the server performance and processing required
4 depends upon the way in which you display the results


I think that I would prefer to have the server push the data (after
some initialization it shouldn't be frequent) but don't understand the
trade offs except that it appears that using a timer is easy but the
push code is much more complex.
Yep.  I suggest that you get a polling version to work first and then consider whether a 'push' 
version is more appropriate for your use case.

Question: Does the push model add much overhead in terms of CPU
utilization or critical resources?  If not I'll start to examine
demonstration code that I found. I would appreciate any advice.

See the attached links. It looks to me like most of the possible GWT libraries are still at a 
comparatively early stage - I suggest that until you are really familiar with all the technologies 
its a good idea to start with the simplest approach (polling), get that to work, and then consider 
some kind of 'push' technology.


HTH

Alan


--
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: customize "gwt code server disconnected overlay page"

2011-02-20 Thread Alan Chaney

On 2/20/2011 8:41 AM, Luke wrote:

1. may i know is this message only show on development or it will also
showed in production when run on tomcat?
It is only shown in development mode. If you deploy your application as a war to tomcat this message 
will never appear. See 
http://code.google.com/webtoolkit/doc/latest/DevGuideDeploying.html#DevGuideDeployingWebServer



2. any guide on how to customize this page "message" ?


You can't - your users should never see this.

Regards

Alan


--
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: Getting Error when deploying on Tomcat

2011-02-20 Thread Alan Chaney

Noor,


As Ezequiel says, it would help us to help you if we could see the logs.

On tomcat, by default the logs are in $TOMCAT_HOME/logs/catalina.out.

It would also help if you told us which O/S and which version of tomcat you 
were using.

Also, have you set $TOMCAT_HOME and $JRE_HOME (or $JAVA_HOME)?

Which port are you using? (by default, tomcat is 8080)

Have you checked your firewall settings?

Can you see the default tomcat home page?

What context are you deploying your application to? ROOT?

Regards

Alan



On 2/20/2011 9:23 AM, Ezequiel Palumbo wrote:

Hello Noor,

Well, do you use any server-side logging framework, such as Log4J? It
may be very very useful to find the root of the problems.
If not, you must use it. Logs help.
One thing: you said that you don't get errors in production mode? Did
you mean DevMode (aka Hosted) ?

Ezequiel.-

On 19 feb, 18:26, Noor  wrote:

The only thing I am not understanding is that when I'm running in
production mode, everything is running perfectly but when I am taking
the war file and placing it on external jetty or tomcat, first the
application is not loading correctly and also event the rpc is not
working



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: String Date to SQL Date

2011-02-04 Thread Alan Chaney

Hi Ross

I've always used (Simple)DateFormat.parse to convert the string to a Date object. You should then be 
able to create an instance of an SQLDate by going something like:


String dateText = // the string you have to parse.

Date parsedDate = SimpleDateFormat.parse(dateText, 0);

SQLDate sqlD = new SQLDate(parsedDate.getTime());

Alan



On 2/4/2011 9:14 AM, Ross McKinnon wrote:

Hi,

Does anyone have a tried and tested method of converting a string date
(-mm-dd) into an SQL date to insert into a database.  Every method
I find online doesnt seem to work.

Thanks,
Ross




--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: Found an inconsistent behaviour in GWT Expenses Roo application: Master-Detail Activities-Places becoming out of Sync !

2011-01-31 Thread Alan Chaney

One solution occurs to me :

Depends upon what search criteria you are using, but say you are searching on id=777, then do two 
searches...


from  as x where x.id >= 777 order by x.id limit 50 asc;
from  as x where x.id < 777 order by x.id  limit 50 desc;

and concatentate the search results. You only need to do this when moving backward, and obviously 
you can tweak the limit figures to display the info in whatever way you want.


There may be other ways...

Alan


On 1/31/2011 2:36 PM, Thomas Broyer wrote:
Oh, if you have a monotonically incremented ID, the list is sorted on that ID and contains no 
"hole", then of course it's easy to compute the range/page to show for a given ID and expect that 
ID is in the returned list. In other cases, it seems to me like it's a bit harder... Am I 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-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.



--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: Found an inconsistent behaviour in GWT Expenses Roo application: Master-Detail Activities-Places becoming out of Sync !

2011-01-31 Thread Alan Chaney

On 1/31/2011 1:11 PM, Thomas Broyer wrote:



if we bookmark place employee/777
when navigating to place employee/777 for the first time from bookmark,
how can the master activity which contains a continuous scrolling 
table/list,
highlight employee with id 777 in the list, when in fact the continuous 
scrolling list
presents only an X number of items initially, and load the rest on demand ?





That's exactly why I said there would still be "issues". That one is a non-issue though if you ask 
me: in this case, just do not attempt at selecting/highlighting the employee if it's not in the 
list; I don't think users will even notice.


I was looking at this issue  because I have a very, very large data set to explore (maybe 10,000's 
of rows) and was considering that the initial fetch would be "around" the requested ID - eg in 
zixzigma's example employe/777 would fetch employees 750 - 800 (say). This means that the list must 
be capable of expanding both forwards and backwards (towards the 0th element) but I can't see any 
reason why thats not workable. Am I wrong?


Thanks


Alan



--
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: Cannot install gwt plugin in Eclipse with Windows 7 64-bit

2011-01-29 Thread Alan Chaney
Looks like you don't have WST installed. Check your eclipse installation to see if that facet is 
there (typically part of the J2EE dev kkit)



Which 'kind' of Helios did you install? There are standard configs for Java development and J2EE 
development. I suspect that you don't have the J2EE version.
You can install the WST pack independently, but I've always found it easier just to install the J2EE 
version. If you do that GWT should just work.


I run Win 7 Professional 64 bit so I see no reason why it shouldn't work on Enterprise. You'll get a 
marginally better result by making sure that you have a 64 bit JVM and installing the 64 bit version.


HTH

Alan


On 1/28/2011 11:22 PM, Kiarash wrote:

I'm trying to install Eclipse plugin for GWT and follow the
instructions step by step as following:

- Download and install Eclipse 3.6 Helios
- Choosing>Help>Install new software... adding the address
http://dl.google.com/eclipse/plugin/3.6
- Here I see GWT plugins and>Select all, and>Next

Then I get the following message:
Cannot complete the install because one or more required items could
not be found.
   Software being installed: Google Plugin for Eclipse 3.6
1.4.2.v201012211742
(com.google.gdt.eclipse.suite.e36.feature.feature.group
1.4.2.v201012211742)
   Missing requirement: Google Plugin for Eclipse 3.6
1.4.2.v201012211742
(com.google.gdt.eclipse.suite.e36.feature.feature.group
1.4.2.v201012211742) requires
'org.eclipse.wst.common.project.facet.core 0.0.0' but it could not be
found

My computer is a Windows 7 Enterpise, 64-bit and it feels likes this
might be the problem and I am sure there is solution. Do you know how
to get GWT working here? Many thanks.




--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: Deploying GWT App onto Tomcat

2011-01-29 Thread Alan Chaney

On 1/29/2011 4:37 AM, Ross McKinnon wrote:

Hi there,

I have been trying to deploy my GWT app connected to a MySQL database
onto Tomcat! However, when I try to use it, the database connection
fails!  In my buildpath and in the tomcat lib I have the mySQL  .jar
file.

Hi Ross,

Firstly, do you mean that you have the mysql connector jar in two places? You should only have it in 
the tomcat lib folder. You do not need to explicitly add into the classpath - tomcat does that for you.


What platform are you running on?

Have you tried connecting to the database using the mysql command line client (something like 
/usr/bin/mysql or mysql.exe on windows)


There could be a lot of issues, but a good first one to check is that the 
firewall is open for 3306

When you say the connection fails are you getting a stack trace? (look in 
$TOMCAT_HOME/logs/catalina.out) If so, please post.


HTH

Alan






Does anyone know how to resolve this issue, have you encountered this
before?

Thanks,
Ross




--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

--
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: Persistent HTTP Connection

2011-01-27 Thread Alan Chaney

Try this:
http://download.oracle.com/javase/1.5.0/docs/guide/net/http-keepalive.html

and this:

http://www.io.com/~maus/HttpKeepAlive.html

The salient points are:

0. 'Keep Alive' is really a connection cache.
1. 'Keep Alive' is default on Http 1.1 (and who remembers 1.0?)
2. 'Keep Alive' is basically a way that the server caches the connections for re-use to the client - 
the operative word is cache. An idle connection will be painlessly recycled for you.

3.There is no specific Keep-Alive timeout - see 2. above.


Typically a given server can support 100+ connections - on Tomcat its a configuration setting - it 
probably is in all the other app-servers (or at least it should be...) - an 'active' connection is 
one that actually has data travelling across it, in one direction or another. A modern, high 
capacity machine can support many more.



HTH

Alan



On 1/27/2011 1:59 PM, Richi Plana wrote:



On Thu, Jan 27, 2011 at 2:38 PM, Thomas Broyer mailto:t.bro...@gmail.com>> wrote:


That's HTTP: a request and a response, within a single TCP connection (and 
using pipelining
and/or keep-alive, you could send multiple requests and receive their 
responses all in a
single TCP connection).
The fact that it's asynchronous from your point of view (the code) is a 
different thing.


This is what I meant by "keeping the persistent connection open". If multiple requests go on the 
same TCP connection, how long is it kept alive? How many operations go over it before it is 
disconnected? My concern is that a GWT application might require a persistent TCP connection with 
the app server to the point that it hits a system maximum is users leave their application on even 
though no activity is taking place.

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



--
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: App Deployment

2011-01-27 Thread Alan Chaney

Hi Ross

If its only going to be used by two people do you need internet hosting at all? Can't you just run 
it from a local server and use the basic Jetty server you get with GWT? Anyway, if you do use AWS as 
Ryan suggested (good suggestion, Ryan), the cost is trivial because its directly usage-based. A full 
month of rental for the smaller server is less than 100 bucks and that's 24x7


Alan


On 1/27/2011 11:42 AM, Ross McKinnon wrote:

Hi Ryan,

Thanks for your reply.  I will keep this in mind.

As the App will only be used by a couple of people, i do not think its
worth investing in the hosting!

However, if I become desperately stuck then I will have no option but
to proceed with investment.

Ross

On Jan 27, 5:38 pm, Ryan Mehregan  wrote:

Amazon offers many Cloud based database related solutions.
Amazon RDS (Relational Database Service) is what you need.

http://aws.amazon.com/rds/

"Amazon RDS gives you access to the full capabilities of a familiar MySQL
database.
This means the code, applications, and tools you already use today with your
existing MySQL databases work seamlessly with Amazon RDS."

It is not free, but I believe since you are not dealing with large datasets
and high volume of users,
it would be an economic choice. it is on-demand, so you pay for when you
actually use it.
"Small DB Instance is 0.11$ per hour"

I think along with Google AppEngine, Amazon WebServices is one of the
leading cloud platforms out there.
so if you gain some experience working with Amazon WS, would be a great
investment and will pay off in your career.

Ryan


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



Best way to get all InputElements within a div tag.

2010-08-06 Thread alan
I've got a web-page divided up into sections with div elements like:


   


I'd like to create a method that can get all of the valid
InputElements inside that div tag.  I get the DivElement with a:

Element parentDiv = DOM.getElementById("some-section").cast();

What is the best way to get the InputElements under 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: How to disable menu items?

2010-08-05 Thread Alan Hadsell


On Aug 4, 10:48 pm, Magnus  wrote:


> How is the mechanism when extending the standard styles? My experience is 
> that own styles are overwritten by standard.css.

Take a look at the menu sample app, contained in the gwtlib project.

http://code.google.com/p/gwtlib/source/browse/#svn/trunk/samples/menu

-- 
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 disable menu items?

2010-08-04 Thread Alan Hadsell


On Aug 4, 1:42 am, Magnus  wrote:
>
> It would be fine if someone could tell how this can be done.
>

LMGTFY: 
http://code.google.com/p/gwtlib/source/browse/#svn/trunk/src/org/gwtlib/client/menu/ui

Take a look at the gwtlib source code for the MenuBar and MenuItem
classes, which are derived from the corresponding GWT classes.  All
will be revealed!

-- 
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 disable menu items?

2010-08-03 Thread Alan Hadsell


On Aug 3, 10:28 am, Magnus  wrote:
> Thank you,
>
> but shouldn't GWT itself provide a mechanism to disable menu items?
>
> Using an additional library is not the problem for me, but using an
> additional library because of such a small functionality that should
> be present in any menu implementation is a problem for me. As a
> consequence I would end up in about a dozent libs...
>
> Isn't there another solution?
>
> Why is this missing?
>

See issue 1649: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=1649
.  As you can see, it's an "accepted" issue, but apparently not high-
enough priority to get fixed yet.  Star the issue if it's important to
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: How to disable menu items?

2010-08-01 Thread Alan Hadsell


On Aug 1, 12:25 pm, Magnus  wrote:
> Hi,
>
> I have a MenuBar with MenuItems, which I would like to selectively
> enable for defined user groups. But how can I enable/disable menu
> items?

Take a look at gwtlib: http://code.google.com/p/gwtlib/.  It has
menubars
and menu items that can be enabled and disabled.

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



Good File Upload Example

2010-07-30 Thread alan
I need to read a csv file from the hard drive to populate a table in a
dialog box.

This seems to require using the FileUpload class, but I've not found a
good example of it is use. Could anyone recommend a complete example
that could accomplish 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.



DeferredCommand. When should an RPC use it?

2010-07-16 Thread alan
I'm trying to understand when an RPC call should use a
DeferredCommand, when is should include an addPause and when an RPC
call should not use a DeferredCommand.

I'm working on a case when I've got a widget that needs to load a
dozen or so ListBoxes. Because of the service layer each one is a
different RPC call, so when this widget is loaded a dozen RPC calls
will occur at once. Since this widget doesn't need to be fully loaded
instantaneously slowing down the rate of calls and even making them
serial would be fine.

So, I put all of the calls to load this widget into a DeferredCommand
and also added a addPause to each. My observation on FireBug is the
call are all still nearly fired off simultaneously although not as
quickly. It wasn't quite what I expected.

I've got other calls that happen as part of a user pressing a button,
or on a timer that currently are not using the DeferredCommand, but
I'm wondering if they should.

Any comments on guidelines for using DeferredCommand and addPause are
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.



Widget that extends ListBox loses the width attribute in the UiBinder ui.xml file.

2010-07-07 Thread alan
I've got a class which extends ListBox.

public class ListBox extends com.google.gwt.user.client.ui.ListBox
implements HasCaption, HasWidgets {
...
}

In a ui.xml file the width attribute, which works fine for :



The "width" attribute works when this is a GWT list box, but not an
extended ListBox. Has anyone seen this. What is the proper way to get
the width attribute working with the extended class also?

-- 
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 - VerticalPanel not applicable for the argument SelectElement ...

2010-06-30 Thread alan
Thanks. Were is the best source of documentation on UiBinder tags.

-- 
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 - VerticalPanel not applicable for the argument SelectElement ...

2010-06-29 Thread alan
Background:

I'm using the UiBinder  *.ui.xml files to create a modestly complex
layout. I elected to use the DockPanel and VerticalPanel to put things
into four columns. Within each Vertical Panel I started using 
and  tags, but found they were not compatible. It is now use
 and  tags instead, but I'm still running into issues
with select tags.

Now here are a series of questions I've got.

Questions:

1) The latest error is it gets:

05:42:36.099  [ERROR] Line 47: The method add(Widget) in the type
VerticalPanel is not applicable for the arguments (SelectElement)

which I presume is for:


Discovery


What is the solution here? Does this need to turn into a 
tag?


2) More importantly, where is the best documentation for UiBuilder
tags? I'm finding that you cannot just mix some tags with HTML tags.
The documentation I'm finding isn't quite adequate.


3) What is the difference between  and
 ?

I'm familiar with GWT all the way back to version 1.4, but not the new
UiBinder feature in 2.0. What is the best book that covers that new
feature?

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



Open File on client side.

2010-06-28 Thread alan
I would like to open a file on the client side, so it can populate a
local (client-side) table. (After validating of course).  The data is
not needed on the server side.

What is the best way to do this?  It seems uploading the file to the
server would be wasteful, but can you open the file on the client
side?

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



PopUpPanel above a DialogBox.

2010-06-25 Thread alan
Hello,

 I would like to create a ToolTip effect that will display above a
dialog box.  The current code which I'll leave as a snippet here, puts
the text behind a dialog instead of top.   This code is based on a
site giving a ToolTip example. Advice on this is greatly appreciated.
Also, likes to a specific web-site page is appreciated too.

Alan

--- minimal code snippet here --
public class ToolTip extends PopupPanel {

  public ToolTip(String message, int x, int y){
  super(true);
  this.setPopupPosition(x, y);
  this.setAnimationEnabled(true);
  this.add(new Label(message));
  this.setStyleName("toolTip");
  this.show();
}
//NOTE code to hide remove to make this shorter.
}



-- 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-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: Dev plugin for firefox 3.7

2010-06-15 Thread Alan Chaney
I'm developing a large WebGL application which is currently only 
supported by the nightly builds, so the answer to your question is, 
sadly, no :-) .


I really, really want to be able to debug GWT in Firefox, so if 
necessary I'd be prepared to help with testing/building.


Alan


On 06/14/2010 02:35 PM, Jim Douglas wrote:

Firefox 3.7 is the nightly ("Minefield") build; is it possible to
switch back to the current released version (3.6.3)?


On Jun 14, 1:18 pm, Alan Chaney  wrote:
   

When I try to install the dev plugin on my Ubuntu 10.04 x64 system I get:

"No suitable plugins were found"

Seems to me that's because the 'latest' version in the plugin descriptor
is set to 3.6.

Does anyone know if there is a dev plugin build for 3.7? If not, can I
build/modify one myself?

TIA

Alan
 
   


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



Dev plugin for firefox 3.7

2010-06-14 Thread Alan Chaney

When I try to install the dev plugin on my Ubuntu 10.04 x64 system I get:

"No suitable plugins were found"

Seems to me that's because the 'latest' version in the plugin descriptor 
is set to 3.6.


Does anyone know if there is a dev plugin build for 3.7? If not, can I 
build/modify one myself?


TIA

Alan



--
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: Maven is obfuscating and GWT2.1 should not depend on it

2010-06-06 Thread Alan Chaney

+1


Blessed Geek wrote:

Maven is great when used as a "more capable Ant", but sucks when used
for everything else that it has been so far been used for (like
attempting to create the Universe in 7 days).

Maven as a build dependency and testing setup tool is not bad but the
way it has been misused for everything else so far sucks. Despite any
enthusiasm anyone else has for Maven as a all-in-one Swiss knife all-
purpose tool, my personal observation says that Maven is the wrong
tool to use to perform MVP/MVC building (as well as almost everything
else).

Maven is a good tool to be used in-house within great companies like
IBM or Google who have some spare change to hire someone to maintain
the scripts to perform esoteric tasks like MVP/MVC code preparations
and concoctions but not for small companies or contractors.

Therefore, it is a disappointment that GWT 2.1 decided to use Spring
which has a huge dependency on the abuse of use of Maven.

GWT MVP/MVC should get back to the basics of XML XSD, like what
smartgwt is doing. I am hoping the GWT architects will provide an XML
XSD client side exposure to ui widgets and provide the specs to it so
that I could write my own mavenless data-ui binding (for example in
groovy).

I would like to request GWT architects to provide an alternative to
Spring for data-ui binding, with a more direct xml xsd route.

I am also writing this to encourage people to stop misusing maven,
because it spews out a lot of entrails and unlike a compilation error
in java or c++ from which you can easily spot the error, maven is like
Perl - because when you write in Perl, you don't need an obfuscater.

  


--
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: Java array handling in JSNI

2010-05-26 Thread Alan Chaney

Thomas

Thomas Broyer wrote:


1. Is what I've just said correct?



If I correctly understood what you said, then yes.

  
Good, thanks. I work on my own, so its nice to have confirmation of 
things like this.



2. If so, why doesn't the debug runtime system generate a warning  when
encountering a 'float []' in hosted mode? Ok it crashes with an obscure
exception,
but that isn't very helpful.



Because you can pass a float[] to JSNI, just not use it as an array
from the JSNI code (but you can pass it back to the Java world: the
function returns it, and/or passes it as an argument to a Java method
call)

  

Good point. I'll let the GWT team off the hook over that one then! :-)


If you need to initialize a float [] from a client side java program and
then pass that array to a native method, you have to do something like:

float [] floats = myinstance.myMethod2CreateFloatArray();

public static native JsArrayNumber createNew() /*-{ return new Array();

}-*/;



There's JavaScriptObject.createArray().cast() for that.
  

Yes, I'd overlooked that. Thanks again.



Have a look at my JsCollections module, it has utility methods that
will copy the array in DevMode but just pass it as-is when compiled,
so it has no overhead.
http://code.google.com/p/gwt-in-the-air/
  

Will do. Sounds very useful.

Regards

Alan



--
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: New to java: where do i put new classes?

2010-05-26 Thread Alan Chaney
Actually, its nothing to do with the Java language explicitly. GWT is 
cleverly organized to make it quick and comparatively easy to build
sophisticated Ajax apps without having to get too much into the details 
of Javascript.


In a GWT project the GWT compiler cross-compiles a subset of the Java 
language to Javascript for downloading to the client browser.
You have to tell it which classes to cross-compile and so the GWT 
project layout by convention has three separate sub-packages whose names
end with 'client', 'server', 'shared'. You can also add sub-packages to 
these.


'client' and 'shared' packages are both compiled by the JRE for use in 
hosted mode, AND cross-compiled by GWT for use in production mode.
'client' is for code ONLY used in the client. 'shared' is for code 
(typically DTOs, or validation objects) which are used on both client 
and server.


You should put classes which are server side only in x.x.x.server or sub 
packages. Then you should make sure that the classpath includes any
libraries used by these packages by placing the libraries in the 
war/WEB-INF/lib folder and make sure that the JRE looks there.


The exact configuration can be controlled from within a gwt.xml file.

I suggest that you read the 
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html 
section.

See also the sections on Modules and Compile and Debug.

Be warned! There's a learning curve in using Java, a STEEP learning 
curve in using Java in web projects and another significant
learning curve to using GWT for client/server web applications. I 
suggest that you think carefully about the scope  and requirements of 
your application before

taking these 3 steps. Good luck!

HTH

Alan



m wrote:

Sorry, I'm a c# transplant. I want a create a class that will be used
on server side only. In c# I would just create a new class in the
project... learning that java doesn't work that way.  I have created a
class within the main package of my GWT project (not client, not
server, not shared, the main package).  But I don't think this works.
It wants to find a .gwt.xml file for this java class.  So... what is
the correct way to do 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.



Java array handling in JSNI

2010-05-26 Thread Alan Chaney

Hi

I'm using GWT 2.0.3

It seems to me that in hosted mode when I attempt to use (for example) a 
float[] as a parameter to a native call it silently fails.


The documentation only refers very obliquely to this:

Although Java arrays are not directly usable in JavaScript, there are 
some helper classes that efficiently achieve a similar effect: JsArray 
<http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/core/client/JsArray.html>, 
JsArrayBoolean 
<http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/core/client/JsArrayBoolean.html>, 
JsArrayInteger 
<http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/core/client/JsArrayInteger.html>, 
JsArrayNumber 
<http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/core/client/JsArrayNumber.html>, 
and JsArrayString 
<http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/core/client/JsArrayString.html>. 
These classes are wrappers around a native JavaScript array.


And, in fact, this appears to be true. If you want an array of floats, 
you must create them in a native method.


As an example, if you create a client function

public void myFunc(int x, int y, float[] z) {
   do something with z here.
}

"z" will always be 'undefined' in hosted mode (although, oddly, it seems 
that it can work in production mode.)


What does seem to work in both hosted and production mode is:

public static native JsArrayNumber getNativeArray () /*-{ return [ 0, 1, 
-5, -1, -1, -5, 1, -1, -5];}-*/;


public void myFunc2(int x, int y,  JsArrayNumber z) {
   // now if invoked something like myFunc2(5, 10, getNativeArray()) 
the array works as expected.

}

So, my questions are:

1. Is what I've just said correct?

2. If so, why doesn't the debug runtime system generate a warning  when 
encountering a 'float []' in hosted mode? Ok it crashes with an obscure 
exception,

but that isn't very helpful.

If you need to initialize a float [] from a client side java program and 
then pass that array to a native method, you have to do something like:


float [] floats = myinstance.myMethod2CreateFloatArray();

public static native JsArrayNumber createNew() /*-{ return new Array(); 
}-*/;


   public static JsArrayNumber initArray(float [] f) {
   JsArrayNumber a = createNew();
   for (float fv :f)
   a.push(fv);
   return a;
  
   };


This seems to work in both hosted and production mode. Any suggestions 
as to a better way to do this would be appreciated.


I think the documentation should be a little bit more explicit about 
this, I'd be happy to contribute.


Regards

Alan







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



Problem with code which works in compiled mode and fails in hosted mode

2010-05-24 Thread Alan Chaney

Hi

I'm using the gwtgl library. There's one method invocation in it which 
throws an exception in hosted mode but seems to work OK in compiled 
mode. I suspect that the answer is obvious... Any suggestions would be 
greatly appreciated...




The actual lines of code are:
   float [] perspectiveMatrix = createPerspectiveMatrix(45, 1, 
0.1f, 1000);
   WebGLUniformLocation uniformLocation = 
glContext.getUniformLocation(shaderProgram, "perspectiveMatrix");

   checkError();

   glContext.uniformMatrix4fv(uniformLocation, false, 
perspectiveMatrix);


and as I said, it works fine compiled and fails in hosted mode. If I 
stop the debugger at glContext.uniformMatrix4fv(  it gets there OK, 
but as soon as I step into it the debugger it fails at:


protected JsValue doInvoke(String name, Object jthis, Class[] types,
 Object[] args) throws Throwable {
   TreeLogger branch = host.getLogger().branch(TreeLogger.SPAM,
   "Invoke native method " + name, null);
   CompilingClassLoader isolatedClassLoader = getIsolatedClassLoader();
   JsValueOOPHM jsthis = new JsValueOOPHM();
   Class jthisType = (jthis == null) ? Object.class : jthis.getClass();
   JsValueGlue.set(jsthis, isolatedClassLoader, jthisType, jthis);
   branch.log(TreeLogger.SPAM, "  this=" + jsthis);

   int argc = args.length;
   JsValueOOPHM argv[] = new JsValueOOPHM[argc];
   for (int i = 0; i < argc; ++i) {
 argv[i] = new JsValueOOPHM();
 JsValueGlue.set(argv[i], isolatedClassLoader, types[i], args[i]);
 branch.log(TreeLogger.SPAM, "  arg[" + i + "]=" + argv[i]);
   }
   JsValueOOPHM returnVal = new JsValueOOPHM();
   try {
 channel.invokeJavascript(isolatedClassLoader, jsthis, name, argv,
 returnVal);   <--- EXCEPTION THROWN HERE
 branch.log(TreeLogger.SPAM, "  returned " + returnVal);
   } catch (Throwable t) {
 branch.log(TreeLogger.SPAM, "exception thrown", t);   <--- 
Exception is "invoke of 
@com.googlecode.gwtgl.binding.impl.WebGLMethodsBinding::uniformMatrix4fv(Lcom/googlecode/gwtgl/binding/WebGLUniformLocation;Z[F)" 
failed

 throw t;
   }

Thanks

Alan

(exception trace is below)


17:11:06.785 [ERROR] [webgltest] Failed to create an instance of 
'com.google.gwt.core.client.impl.SchedulerImpl' via deferred binding
com.google.gwt.core.client.JavaScriptException: (String): invoke of 
@com.google.gwt.core.client.JavaScriptObject::createArray() failed
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:195)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at 
com.google.gwt.core.client.JavaScriptObject$.createArray(JavaScriptObject.java)
at 
com.google.gwt.core.client.impl.SchedulerImpl.(SchedulerImpl.java:251)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown 
Source)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)
at 
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:422)
at 
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)

at com.google.gwt.core.client.GWT.create(GWT.java:98)
at 
com.google.gwt.core.client.impl.SchedulerImpl.(SchedulerImpl.java:76)

at com.google.gwt.core.client.impl.Impl.exit(Impl.java:207)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:374)
at 
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:185)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:380)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:222)

at java.lang.Thread.run(Unknown Source)


--
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: XML binding/mapping and GWT-RPC

2010-05-13 Thread Alan Chaney
Either I think you need to explain your use case even more, or there may 
be another way to do it.
You said in your first post that you made "intense use readin/writing of 
xml configuration files"


I assume that the files are on your server? If you are trying to set the 
contents of the elements of the xml file, then why not
use an RPC mechanism that automatically binds them to POJOs on the 
client? (you don't have to use GWT-RPC)


Then you could provide an editing interface in GWT and when you "save" 
the file in the client the reverse process allows it to

be stored on the server.

Or am I missing something? If they are stored as XML on the server you 
only need to bind/unbind them once and that should be in the RPC mechanism .


HTH

Alan


ciosbel wrote:

I need to manage xml files (already written), so i thought that
having them binded into serializable POJO's was a good choice.
But none of the technologies mentioned seemed to work in that way.

For example with JAXB you can autogenerate java classes from xsd
schema, having them serializable and usable through gwt rpc service.
But it doesn't work bacause of reflection. Xstream and XMLBeans is
the same.
Am i missing something?

On 13 Mag, 23:51, Mike  wrote:
  

Why do you need XML, and not just POJO ?

--
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 
athttp://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.



GWT /Eclipse/Tomcat

2010-05-13 Thread Alan Chaney

Hi

I need to run multiple webapps - one of which is a GWT app. To overcome 
problems with  "same origin policy", one option is to run multiple 
webapps in the same web application server. I've a lot of experience of 
doing this with Tomcat and zero with Jetty. Is it possible to use Tomcat 
as the development server for GWT inside Eclipse rather than Jetty? If 
so, how? or where is there information on how to configure it? I'm not 
asking about how to run a GWT war in a tomcat production environment  
but how to use the GWT "development mode" with Tomcat instead of Jetty.


Thanks in advance.

Alan

--
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: Resource URL rewriting (e.g. cache.html)

2010-05-12 Thread Alan Chaney

Hi Stefan and Stefan

Stefan Bachert wrote:


SSO is an other topic.
SSO depends in general from being able to redirect page.
This does not work with AJAX-driven apps, at least not out of the box.

  
I would have thought that the correct way to handle SSO is a servlet 
filter in the web application server. As an example, I was planning on 
having a simple signup/login page on my "main" web site. Once the user 
is authenticated then they can navigate to my GWT app with a servlet 
filter that checks that they are signed on, if not redirects them back 
to the login page. With Tomcat (for example) it can just use the 
standard tomcat authentication approach. Other servers have similar 
mechanisms (after all, its part of the servlet spec.)


IMHO its not the duty of the app to manage authentication/login etc. A 
good example is Gmail - you login to your Google account on a separate 
page and then go to the app itself.


Alan



When a ticket is going invalid, you have no way from the servlet to
redirect to an other page.
The request you get is a RPC without a visible page.

The server may send the GWT-App a request to open an second window for
doing authentication. This may work.
But your application must collaborate


Stefan Bachert
http://gwtworld.de



On 12 Mai, 11:09, Stefan Ludwig  wrote:
  

Hi,

does anyone knows, how the creation of the resource url in the created
GWT JavaScript works? I use GWT in a portal environment (JSR-168) so i
have to rewrite/change all URLs from where the resources are loaded
and RPC calls goes (e.g. chache.html, images and RPCs URLs).

The resources should not be loaded directly because of security/SSO
reasons. I have to find out a way to change that URLs after compile
time. It's not easy to find a way to do this because the created
JavaScript is a little bit confusing...

Thanks and regards
Stefan

--
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 
athttp://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: gwt webgl smartgwt

2010-05-11 Thread Alan Chaney
Label text appears to ignore the Alignment.CENTER (at least vertically) 
when placed within a VLayout. I haven't actually noticed anything else, 
but I didn't want to get a long way into what's going to be a very big 
project and hit a show stopper, so I'm was looking for a workaround 
should something critical turn up. So far, I've only checked one version 
of one browser on one OS.


I thought I had seen a mention that smartgwt should be used in "quirks" 
mode, but I can't find the reference. I'm happy to work with you to 
solve any issues arising out of using an "html" doctype, that's 
obviously the best solution.


I've done as you asked and placed a small sample on the forum.

Regards

Alan

ckendrick wrote:

What layout issue on what browser with what code?  This is not a known
issue, so to get it addressed, post a test case to the SmartGWT
forums:

http://forums.smartclient.com/forumdisplay.php?f=14

On May 11, 12:25 pm, Alan Chaney  wrote:
  

Hi

I've started to build an application using GWT 2 which will needs an
HTML 5 canvas element to display WebGL. I was intending to use smartgwt
for the bulk of the UI. Sadly, smartgwt gives layout problems when I add
the  required by HTML 5 to the main html page of my app.

Hopefully this will be fixed in a future version of smartgwt, but does
anyone have any ideas for a workaround? For example, could I create a
widget which wrapped an iframe and set the URL of the iframe to a page
with an html 5 doctype? I could then use this widget to "embed" my webgl
viewer.

Any suggestions welcome!

Thanks!

Alan

--
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 
athttp://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.



gwt webgl smartgwt

2010-05-11 Thread Alan Chaney

Hi

I've started to build an application using GWT 2 which will needs an 
HTML 5 canvas element to display WebGL. I was intending to use smartgwt 
for the bulk of the UI. Sadly, smartgwt gives layout problems when I add 
the  required by HTML 5 to the main html page of my app.


Hopefully this will be fixed in a future version of smartgwt, but does 
anyone have any ideas for a workaround? For example, could I create a 
widget which wrapped an iframe and set the URL of the iframe to a page 
with an html 5 doctype? I could then use this widget to "embed" my webgl 
viewer.


Any suggestions welcome!

Thanks!

Alan



--
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: Getting RichTextArea to resize

2010-05-07 Thread Alan Chaney

Hi Manolo

Manuel Carrasco Moñino wrote:

Setting the width to 100% should work
  

Yes, it did. Embarrassingly obvious really. Thanks.

Alan




-Manolo

On Thu, May 6, 2010 at 11:33 PM, Alan Chaney  wrote:
  

Hi

I'm a complete newbie to GWT. I'm using GWT 2.0.1

I've managed to create a DockLayoutPanel using the UiBinder approach where
the  contains a TabLayoutPanel and I want to place a RichTextArea
in one of the tab panes of the TabLayoutPanel. Is there any easy way for me
to get the RTA to fit the tab panel pane? Or can you point me to something
which explains how to do this?

thanks

Alan


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





  


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



Getting RichTextArea to resize

2010-05-06 Thread Alan Chaney

Hi

I'm a complete newbie to GWT. I'm using GWT 2.0.1

I've managed to create a DockLayoutPanel using the UiBinder approach 
where the  contains a TabLayoutPanel and I want to place a 
RichTextArea in one of the tab panes of the TabLayoutPanel. Is there any 
easy way for me to get the RTA to fit the tab panel pane? Or can you 
point me to something which explains how to do this?


thanks

Alan


--
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: Problems with StockWatcher

2010-04-08 Thread Alan Chaney
Well, I've worked out that if I leave off the 
?gwt.codesvr=127.0.0.1:9997 bit I can access the web app locally, by 
using either localhost or the  name.
And, as I suspect, the gwt dev plugin doesn't seem to work on Centos 5.3 
/X64.


But why on earth can't I access the Jetty server from another machine? 
Using telnet on a remote PC shows 'no connection' when trying to connect 
to GWT but works fine
with other applications on the same port - even other applications using 
Jetty! So why is GWT refusing to listen to external connections. I can't 
find any docs and I can't find any properties or configuration files 
which would seem to affect this behavior


Regards

Alan


alanmechy wrote:

I'm using Centos 5.3 X64 with the standard Firefox browser (3.0) and I
can't get the gwt dev plugin to work.

From reading various posts it seems likely that there is no support
for Linux 64 bit, and I don't want to mess about installing a 32 bit
version of firefox just for experimenting with GWT.

So I decided to connect via an instance of Firefox on my (Windows
Vista (yuck)) laptop. I've double checked the firewall etc and
although I can connect to the relevant host:port combination with
other web apps all I get when trying to connect to gwt is a "Firefox
can't establish a connection to the server at :"

I've checked with another desktop running XP which can also connect to
other apps.

What am I doing wrong?

TIA

Alan Chaney


!DSPAM:4bbcf6bb103901497319589!

  


--
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 an Image/HTML to the MenuItem of a MenuBar

2010-02-22 Thread Alan Hadsell


On Feb 22, 9:13 am, Tapas Adhikary  wrote:
> Hi All,
> How to add an image or a html  to the menu item of a menu bar ? I have a
> menu bar (vertical) of 6 menu items. I would like to add a tick(ok/right)
> image in-front of the menu item on selection. With that , I want to hide the
> tick image on select of other menu item in the menu or clicking on the
> already selected menu item again.

I'm using a local version of the MenuBar and MenuItem from GWTLib
(http://code.google.com/p/gwtlib/).  It currently does check marks,
but not the
radio button effect that you're looking for. It also supports enabling
and
disabling menu items, which is the main reason I'm using it.

I've updated it to work with GWT 2.0.2, and replace the deprecated
Listeners with
Handlers.  I have not committed it back to the project yet, as it's
still in
development (read: not completely tested), and I'm not a committer on
the project.

I'm planning to add an Action-like object to it before I'm done,
(http://java.sun.com/javase/6/docs/api/javax/swing/Action.html).  This
centralizes
the information about a particular UI-initiated action, so that
disabling the
action automatically disables all the associated UI controls (buttons,
menu items,
etc.) and the tooltips and help text are kept together.

I can send you a zip file in its current state, if you like, but with
no promises
of support or further updates, as my time available for this project
is limited.

-- 
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: Injecting Spring beans into GWT services

2010-01-18 Thread Alan Hadsell


On Jan 18, 9:53 am, Yaakov  wrote:
> Marko,
>
> Take a look at this blog which takes you step by step, explaining the
> whys as well as pros/cons of things. I believe, this is what you are
> trying to 
> accomplish:http://codetrips.blogspot.com/2009/11/following-was-contributed-by-ya...

Yaakov,

Thanks so much for posting that.  Very helpful.

Alan Hadsell
-- 
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: Should we use maven or not for a project?

2009-11-29 Thread Alan Hadsell


On Nov 28, 10:43 pm, John Armstrong  wrote:
>
> Since starting with GWT (coming from Wicket which assumes Maven) I
> have to say, I deeply miss Maven dependency management. My attempts to
> mavenize my GWT Designer projects have failed and I lack the time to
> debug and get things set-up right now (darn deadlines).
>
> The uniformity of build env is nice also but you get a lot of similar
> functionality with the GWT tools as you point out.
>
> If you find yourself managing a lot of dependencies, manually
> including jar files in support of other objectives or having to switch
> between  versions of libraries (usually internal libs for us) then I
> think you'd get great benefit out of Maven. If all your looking for is
> a compile tool in a fairly linear development environment (minimal
> branching etc) then GWT has you covered.

I've been using Ivy (http://ant.apache.org/ivy/), a dependency
management tool for Ant, and have been quite happy with it.  It fits
in quite well with GWT builds, and understands Maven-ized dependencies
(knows how to read the dependencies from pom.xml files).  Best of both
worlds, IMO.  I'm using it to do a good-sized multi-module build with
Spring, Hibernate and 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: Seriously getting beyond my capabilities with GWT....

2009-09-11 Thread Alan Hadsell

On Sep 11, 11:46 am, John V Denley  wrote:

> I have been burnt several times over the last six months, both with
> commercial organisations and individuals who have promised the world
> and then simply not delivered. Hence I am very wary of getting
> involved with anyone new.
>
> Frank, I used to be a programmer, but have moved away from it over the
> years, and have been forced back into it, due to being unable to find
> anyone else who can do a good enough job for me. I dont want to be
> doing the programming, I am an ideas man, so if you have any
> suggestions as to how i can find "competent developers" without having
> to pay them for 2 months work before finding out how good they really
> are, then I am all ears!!

Ian's point is well taken.  The best way to deal with your situation
is to structure your contract around well-defined, fixed
deliverables.  Of course, this requires a fair amount of overhead in
the initial stages: you need to write down your requirements, and
negotiate them with the supplier, and maybe involve a lawyer to make
sure the contract's good enough.  You will also pay more for doing
things this way, because the supplier needs to pay for his time to
negotiate the contract with you, and also envelope his risk.

You should start with something small.  Then, as you and the supplier
gain confidence in each other and learn to speak each other's
language, you can move to larger projects and/or an hourly contract to
reduce the overhead.  But do this cautiously; many times people who
are excellent developers are terrible analysts.

Shameless plug: I help people write good requirements for a living.


--~--~-~--~~~---~--~~
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: Composite question

2009-05-22 Thread alan m

Developers can never be trusted to do what they're told ;-) I'll pass
on your kind description of them!

But seriously, I have everything I need for css layout built in to my
widgets already (so no style is set in code; and no layout or style is
all-but-impossible in css). I was just wondering if it could be
further locked down - to spare the developers as much as constrict
them: add widgets to views, connect them up to events and data, and
don't waste your time with styles & layout. And I don't want to spend
hours pulling my hair out because css won't re-set a style, only to
discover that some renegade terrorist has buried a setWidth() or DOM
manipulation landmine somewhere in code where it doesn't belong
IMHO...

But it seems like what I want isn't easily possible. Thanks for your help.

Alan

On Thu, May 21, 2009 at 7:41 PM, Ian Bambury  wrote:
> Sorry - I was going from memory and got the widget thing wrong. :-(
> You'd have to go back to real basics to get around that.
> Or tell your client to get developers they can trust to do as they are told
> ;-)
> Is your client absolutely sure that their untrustworthy, pig-headed,
> anarchic, f***-you-mentality programmers will *never* need to set a width
> to, say, 100%? Setting absolutely everything in css will really complicate
> the css under some circumstances. There are some settings which really
> should be set in code (like setting the cell width to 100% in a
> HorizontalPanel) because they are necessary in building other widgets and
> all-but-impossible in css and/or will break if Google change that widget's
> structure
> Ian
>
> http://examples.roughian.com
>
>
> >
>

--~--~-~--~~~---~--~~
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: Composite question

2009-05-21 Thread alan m

Yes, I'm a control freak! ;-) But also my brief is to provide a widget
library with my (well, the client's) class names etc. and 100% css
layout and style, and prevent individual developers to use gwt's
setters (getters are less important) and diverge from the required
styles - consistency is paramount.

You mention that I could extend Widget rather than Composite? But
Widget also extends UIObject... maybe I should just extend Object..
and write my own API/toolkit ;-) But I would be interested in hearing
more on this.

Regards,
Alan

On Thu, May 21, 2009 at 6:46 PM, Ian Bambury  wrote:
> There is, by extending Widget, but it means more work and understanding the
> way GWT works.
> Do you have a reason for stopping certain UIObject methods being used or are
> you just a control freak :-)
> Generally speaking, those methods are there to allow your users to use the
> widget you create more flexibly. Is there a reason why you don't want them
> to know its height or set its style name?
> If you have a use case, there may be another way around the problem.
> Ian
>
> http://examples.roughian.com
>
>
> 2009/5/21 alan m 
>>
>> So... Is there any better way of blocking all these Composite methods
>> other than kludgy myWidget @Override?
>
> >
>

--~--~-~--~~~---~--~~
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: Composite question

2009-05-21 Thread alan m

So... Is there any better way of blocking all these Composite methods
other than kludgy myWidget @Override?

On Thu, May 21, 2009 at 6:23 PM, Ian Bambury  wrote:
> You are creating a composite widget which is going to be a UIObject so it
> has UIObject methods.
> But if you make a composite with three labels, then you probably don't want
> (and it wouldn't be easy) to expose the setText method for all three.
> Ian
>
> http://examples.roughian.com
>
>
> 2009/5/21 alan m 
>>
>> Hi,
>>
>> I see how Composite is useful in theory for custom widgets, to wrap
>> rather than extend specific widgets & prevent exposing all their
>> methods; but I have found that Composite itself has a LOT of methods
>> exposed, particularly the UIObject position/dimension/etc setters
>> which I had wanted hidden in the first place! It defeats the purpose
>> of using it for me - to provide component/view developers with my
>> widgets that have only my methods exposed (only mine - bwa-ha-ha-ha!).
>>
>> Am I missing something here? Is there any better way of blocking all
>> these Composite methods other than kludgy myWidget @Override?
>>
>> Thanks,
>> Alan
>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Composite question

2009-05-21 Thread alan m

sure Jeff:

  public class PanelWidget extends Composite {

   private FlowPanel div;

public PanelWidget(){
  super();
  div = new FlowPanel();
  initWidget(div);
}

public void add(Widget widget){
  div.add(widget);
}

  }

On Thu, May 21, 2009 at 6:00 PM, Jeff Chimene  wrote:
>
> On 05/21/2009 09:22 AM, alan m wrote:
>> Hi,
>>
>> I see how Composite is useful in theory for custom widgets, to wrap
>> rather than extend specific widgets&  prevent exposing all their
>> methods; but I have found that Composite itself has a LOT of methods
>> exposed, particularly the UIObject position/dimension/etc setters
>> which I had wanted hidden in the first place! It defeats the purpose
>> of using it for me - to provide component/view developers with my
>> widgets that have only my methods exposed (only mine - bwa-ha-ha-ha!).
>>
>> Am I missing something here?
>
> At first glance, yes.
>
> Can you post a short sample code snippet?
>
> You should be writing something like:
>
> public class MyWidget extends Composite {}
>
>
>
> >
>

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



Composite question

2009-05-21 Thread alan m

Hi,

I see how Composite is useful in theory for custom widgets, to wrap
rather than extend specific widgets & prevent exposing all their
methods; but I have found that Composite itself has a LOT of methods
exposed, particularly the UIObject position/dimension/etc setters
which I had wanted hidden in the first place! It defeats the purpose
of using it for me - to provide component/view developers with my
widgets that have only my methods exposed (only mine - bwa-ha-ha-ha!).

Am I missing something here? Is there any better way of blocking all
these Composite methods other than kludgy myWidget @Override?

Thanks,
Alan

--~--~-~--~~~---~--~~
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 1.6 with Maven and build system questions/survey...

2009-04-12 Thread Alan Hadsell

We were using Maven "because that's what everyone uses", but found
that it did not meet our needs.

  *  It requires a great deal of configuration to properly build a GWT
project
  *  The tools to integrate Maven/GWT/Eclipse are always in a state of
flux
  *  Some of the really nice stuff in Maven (documentation, etc.)
doesn't work well in a GWT project

We switched back to Ant, using Ivy for external dependency management,
and have been much happier.  Ivy's dependency "configurations" are
much more flexible than Maven's "scopes", and for a GWT project the
additional flexibility is needed.
--~--~-~--~~~---~--~~
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: CSS Style for single tabs of a TabBar

2009-04-08 Thread alan m

Sorry, Lord-67, but on a high volume list repeating a request without
details or quote is, to me, just an empty email saying "help". No
offence. :-)

If I understand correctly, if you can actually disable a TabBar,  at
the point you disable it you can also
add.styleName("gwt-TabBarItem-disabled") or whatever to implement your
disabled styles?

Alanj

On Wed, Apr 8, 2009 at 12:41 PM, Ian Bambury  wrote:
> You *can* get at the individual tabs using the DOM, but it will be dependent
> on the structure of the tab panel and therefore would break if that gets
> changed.
> If I were doing it, I'd just set the tab text as HTML with the style
> included - disabled or not as required.
> Ian
> http://examples.roughian.com
> >
>

--~--~-~--~~~---~--~~
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: HorizontalSplitPanel splitter image through CSS

2009-04-08 Thread alan m

It's amazing how many gwt developers don't know the basic fact that
their apps output html, css, and javascript (*NO* relation of java)
to the browser and not java - browsers don't read java! No offence to
gwt or java devs of course :-)

2009/4/7 Miloš Ranđelović :
>
> Thanks, didn't know about that :)
>
> I'll have a look as soon as I get a chance and post back what I find.
>
> On Apr 7, 4:04 pm, alan m  wrote:
>> oh sorry, you need the firebug plugin for FF, or developer toolbar
>> plugin, for IE or Chrome's built-in inspector; essential for front-end
>> work so you can actually see the html and css inserted by ajax magic
>> in the browser.
>>
>> 2009/4/7 Miloš Ranđelović :
>>
>>
>>
>> > Well, when I view the source in the browser, I only get the GWT html
>> > page with references to the JS files, so I don't know how to check
>> > that :/
>>
>> > On Apr 6, 3:14 pm, alan m  wrote:
>> >> the HorizontalSplitPanel html that gets served out to the browser,
>> >> that you're trying to use your css on, of course :-)
>>
>> >> 2009/4/6 Miloš Ranđelović :
>>
>> >> > Hi,
>>
>> >> > I'm not sure which HTML do you refer to... ?
>>
>> >> > On Apr 6, 2:33 pm, alan m  wrote:
>> >> >> What's the HTML for this?
>>
>> >> >> 2009/4/6 Miloš Ranđelović :
>>
>> >> >> > Hi,
>>
>> >> >> > What's the correct way of setting the image of the
>> >> >> > HorizontalSplitPanel splitter through CSS? I've tried several
>> >> >> > different methods, none worked. This is what I have currently:
>>
>> >> >> > .gwt-HorizontalSplitPanel .hsplitter {
>> >> >> >        background: #42453D;
>> >> >> >        background-image: url(img/horizontalSplitPanelThumb.png)
>> >> >> > }
>>
>> >> >> > I'm using GWT 1.6 RC2.
>>
>> >> >> > 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: CSS Style for single tabs of a TabBar

2009-04-08 Thread alan m

We need help to help you :-) More details please - what was the issue;
html & css browser output?

On Wed, Apr 8, 2009 at 7:37 AM, -Lord-67 <-lord...@web.de> wrote:
>
> No suggestions from anyone? Really could need some help here ...
>
> Greetings,
> -Lord-67
> >
>

--~--~-~--~~~---~--~~
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: HorizontalSplitPanel splitter image through CSS

2009-04-07 Thread alan m

oh sorry, you need the firebug plugin for FF, or developer toolbar
plugin, for IE or Chrome's built-in inspector; essential for front-end
work so you can actually see the html and css inserted by ajax magic
in the browser.

2009/4/7 Miloš Ranđelović :
>
> Well, when I view the source in the browser, I only get the GWT html
> page with references to the JS files, so I don't know how to check
> that :/
>
> On Apr 6, 3:14 pm, alan m  wrote:
>> the HorizontalSplitPanel html that gets served out to the browser,
>> that you're trying to use your css on, of course :-)
>>
>> 2009/4/6 Miloš Ranđelović :
>>
>>
>>
>> > Hi,
>>
>> > I'm not sure which HTML do you refer to... ?
>>
>> > On Apr 6, 2:33 pm, alan m  wrote:
>> >> What's the HTML for this?
>>
>> >> 2009/4/6 Miloš Ranđelović :
>>
>> >> > Hi,
>>
>> >> > What's the correct way of setting the image of the
>> >> > HorizontalSplitPanel splitter through CSS? I've tried several
>> >> > different methods, none worked. This is what I have currently:
>>
>> >> > .gwt-HorizontalSplitPanel .hsplitter {
>> >> >        background: #42453D;
>> >> >        background-image: url(img/horizontalSplitPanelThumb.png)
>> >> > }
>>
>> >> > I'm using GWT 1.6 RC2.
>>
>> >> > 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: GWT and Accesebility

2009-04-06 Thread alan m

traditionally:

// if (javascript): do javascript here
else: put your static html here for no-script users

but you could instead put the static html stuff in here so it either gets replaced by your gwt
stuff, or is unaffected by noscript browsers?

On Mon, Apr 6, 2009 at 3:49 PM, jamer  wrote:
>
> I'm making a website that I need to be accessible.
> I am designing this in JSP and I wonder if I can add any GWT Widget
> done with, so if you have Javascript enabled to load the page in GWT
> that no alternative load without Javascript.
>
> 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-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: HorizontalSplitPanel splitter image through CSS

2009-04-06 Thread alan m

the HorizontalSplitPanel html that gets served out to the browser,
that you're trying to use your css on, of course :-)

2009/4/6 Miloš Ranđelović :
>
> Hi,
>
> I'm not sure which HTML do you refer to... ?
>
> On Apr 6, 2:33 pm, alan m  wrote:
>> What's the HTML for this?
>>
>> 2009/4/6 Miloš Ranđelović :
>>
>>
>>
>> > Hi,
>>
>> > What's the correct way of setting the image of the
>> > HorizontalSplitPanel splitter through CSS? I've tried several
>> > different methods, none worked. This is what I have currently:
>>
>> > .gwt-HorizontalSplitPanel .hsplitter {
>> >        background: #42453D;
>> >        background-image: url(img/horizontalSplitPanelThumb.png)
>> > }
>>
>> > I'm using GWT 1.6 RC2.
>>
>> > 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: HorizontalSplitPanel splitter image through CSS

2009-04-06 Thread alan m

What's the HTML for this?

2009/4/6 Miloš Ranđelović :
>
> Hi,
>
> What's the correct way of setting the image of the
> HorizontalSplitPanel splitter through CSS? I've tried several
> different methods, none worked. This is what I have currently:
>
> .gwt-HorizontalSplitPanel .hsplitter {
>        background: #42453D;
>        background-image: url(img/horizontalSplitPanelThumb.png)
> }
>
> I'm using GWT 1.6 RC2.
>
> 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: PopupPanel Align Right

2009-04-03 Thread alan m

Try adding another widget on top of the panel and adding the
background to that?

If you are not familiar enough with the output html/css page structure
in your browser you should inspect this with the MS Developer Toolbar
plugin for IE and/or Firebug plugin for FF. They also allow you to
change style values in the browser to see what will work for the
layout before coding them.

Also look at

http://projectpossibility.org/projects/word_prediction/gwt-linux-1.4.60/doc/html/com.google.gwt.doc.DeveloperGuide.UserInterface.html

Especially Understanding Layout and Style Sheets sections.

BTW & OT Apologies if you know all this already. I come from a
design/html/css/javascript background so this is my daily work, but I
see how some java developers struggle with layout. They should be
delegating the front-end to a front-end designer, but then these
typically don't know java/oop! I'm learning it fast, but this can be a
problem for gwt development I think.

hth
Alanj

On Fri, Apr 3, 2009 at 9:49 AM, Hilbrand  wrote:
>
> This is a known issue; not being able to align the popup panel at the
> right side via CSS:
>
> See, issue 1538 for details: 
> http://code.google.com/p/google-web-toolkit/issues/detail?id=1538&can=5
>
> Hilbrand.
>
> On Apr 2, 5:26 pm, cj  wrote:
>> That gets me pretty close.  Thanks.
>> Though, the background image is obscured by the image that is already
>> added to the panel.  I tried adding a high z-index value in the css,
>> but that didn't fix it.
>>
>> Also, I am interested to know how to do this with html.
>>
>> Thanks
>>
>> On Apr 2, 10:09 am, alan m  wrote:
>>
>> > you could setStyleName(myCssName) on your existing panel, and then
>> > place your image with css:
>>
>> >    .myCssName {background-image:url("url");
>> > background-repeat:no-repeat; background-position:right;}
>>
>> > On Thu, Apr 2, 2009 at 4:58 PM, cj  wrote:
>>
>> > > Thanks for the correction on text-align.  Though, that still doesn't
>> > > work for me.
>> > > I've tried the float attribute.  It doesn't seem to have an affect.
>>
>> > > I should also clarify that I'm trying to right align an image on top
>> > > of an existing panel.  That is why I was originally playing with the
>> > > PopupPanel.  I've toyed with the AbsolutePanel, but that only aligns
>> > > with the left and is even less functional when it comes to re-sizing.
>>
>> > > On Apr 2, 8:43 am, alan m  wrote:
>> > >> FWIW the CSS syntax is "text-align:right;"
>>
>> > >> You could also try "float:right;" depending on what else is going on
>> > >> in the layout.
>>
>> > >> hth
>>
>> > >> Alanj
>>
>> > >> On Thu, Apr 2, 2009 at 4:23 PM, cj  wrote:
>>
>> > >> > Thanks.  I was hoping to avoid handling resize events.
>> > >> > All I want to do is align an image or text along the right side of a
>> > >> > panel.  With straight HTML and CSS this can easily be done by using
>> > >> > the align: right; style.  With GWT, I can align things with the left
>> > >> > side just fine.  The set position method aligns with top and left.
>> > >> > There doesn't seem to be support for aligning with the right side
>> > >> > (unless listeners are implemented).  This is a fundamental capability
>> > >> > of HTML that I figured would be in GWT.  I wanted to make sure that it
>> > >> > isn't part of GWT before I try implement a workaround.
>>
>> > >> > By the way, searching for aligning with the right side returns
>> > >> > virtually nothing.  There are many results on listening for resize
>> > >> > events, but I'm not looking for a hackish workaround.  I'm looking for
>> > >> > the basic HTML capability of aligning with the right side.  Is the
>> > >> > capability to aligning on the right side in GWT?
>>
>> > >> > On Apr 1, 11:15 pm, "alex.d"  wrote:
>> > >> >> Well, once set, the position of the popup doesn't change by itself
>> > >> >> when the window is resized. Why should it? You have to listen to the
>> > >> >> "resize of window"-event and set the position of the popup manually.
>> > >> >> Don't remeber the exact code lines - but you'll find plenty of
>> > >> >> examples in this use

Re: PopupPanel Align Right

2009-04-02 Thread alan m

you could setStyleName(myCssName) on your existing panel, and then
place your image with css:

   .myCssName {background-image:url("url");
background-repeat:no-repeat; background-position:right;}

On Thu, Apr 2, 2009 at 4:58 PM, cj  wrote:
>
> Thanks for the correction on text-align.  Though, that still doesn't
> work for me.
> I've tried the float attribute.  It doesn't seem to have an affect.
>
> I should also clarify that I'm trying to right align an image on top
> of an existing panel.  That is why I was originally playing with the
> PopupPanel.  I've toyed with the AbsolutePanel, but that only aligns
> with the left and is even less functional when it comes to re-sizing.
>
>
> On Apr 2, 8:43 am, alan m  wrote:
>> FWIW the CSS syntax is "text-align:right;"
>>
>> You could also try "float:right;" depending on what else is going on
>> in the layout.
>>
>> hth
>>
>> Alanj
>>
>> On Thu, Apr 2, 2009 at 4:23 PM, cj  wrote:
>>
>> > Thanks.  I was hoping to avoid handling resize events.
>> > All I want to do is align an image or text along the right side of a
>> > panel.  With straight HTML and CSS this can easily be done by using
>> > the align: right; style.  With GWT, I can align things with the left
>> > side just fine.  The set position method aligns with top and left.
>> > There doesn't seem to be support for aligning with the right side
>> > (unless listeners are implemented).  This is a fundamental capability
>> > of HTML that I figured would be in GWT.  I wanted to make sure that it
>> > isn't part of GWT before I try implement a workaround.
>>
>> > By the way, searching for aligning with the right side returns
>> > virtually nothing.  There are many results on listening for resize
>> > events, but I'm not looking for a hackish workaround.  I'm looking for
>> > the basic HTML capability of aligning with the right side.  Is the
>> > capability to aligning on the right side in GWT?
>>
>> > On Apr 1, 11:15 pm, "alex.d"  wrote:
>> >> Well, once set, the position of the popup doesn't change by itself
>> >> when the window is resized. Why should it? You have to listen to the
>> >> "resize of window"-event and set the position of the popup manually.
>> >> Don't remeber the exact code lines - but you'll find plenty of
>> >> examples in this user group - just use search ;-)
>>
>> >> On 2 Apr., 01:04, WebDude  wrote:
>>
>> >> > Is it possible to align a PopupPanel with the right side of the window
>> >> > or the right side of a panel?
>>
>> >> > I know that it could be done by getting the size of the window and
>> >> > setting the position of the PopupPanel based on that.  However, if
>> >> > window is re-sized, the popup won't move with the re-size.  This would
>> >> > be a simple "align: right" style attribute in CSS, but it gets ignored
>> >> > every time that I try to use it with a PopupPanel.
>>
>> >> > 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: PopupPanel Align Right

2009-04-02 Thread alan m

FWIW the CSS syntax is "text-align:right;"

You could also try "float:right;" depending on what else is going on
in the layout.

hth

Alanj

On Thu, Apr 2, 2009 at 4:23 PM, cj  wrote:
>
> Thanks.  I was hoping to avoid handling resize events.
> All I want to do is align an image or text along the right side of a
> panel.  With straight HTML and CSS this can easily be done by using
> the align: right; style.  With GWT, I can align things with the left
> side just fine.  The set position method aligns with top and left.
> There doesn't seem to be support for aligning with the right side
> (unless listeners are implemented).  This is a fundamental capability
> of HTML that I figured would be in GWT.  I wanted to make sure that it
> isn't part of GWT before I try implement a workaround.
>
> By the way, searching for aligning with the right side returns
> virtually nothing.  There are many results on listening for resize
> events, but I'm not looking for a hackish workaround.  I'm looking for
> the basic HTML capability of aligning with the right side.  Is the
> capability to aligning on the right side in GWT?
>
>
> On Apr 1, 11:15 pm, "alex.d"  wrote:
>> Well, once set, the position of the popup doesn't change by itself
>> when the window is resized. Why should it? You have to listen to the
>> "resize of window"-event and set the position of the popup manually.
>> Don't remeber the exact code lines - but you'll find plenty of
>> examples in this user group - just use search ;-)
>>
>> On 2 Apr., 01:04, WebDude  wrote:
>>
>> > Is it possible to align a PopupPanel with the right side of the window
>> > or the right side of a panel?
>>
>> > I know that it could be done by getting the size of the window and
>> > setting the position of the PopupPanel based on that.  However, if
>> > window is re-sized, the popup won't move with the re-size.  This would
>> > be a simple "align: right" style attribute in CSS, but it gets ignored
>> > every time that I try to use it with a PopupPanel.
>>
>> > 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
-~--~~~~--~~--~--~---



<    1   2   3   >