Re: Last Page too big in SimplePager

2011-11-09 Thread vaibhav gwt
Hi
I am using GWT2.3 Celltable

I'm using SimplePager and I want to show 11 items(users) per page.
1 empty records + 10 actual records = 11 records per page so
PageSize=11

 All my data is 36 items. I want to show text in Simple pager such way
that
Pager should display following values in my pager when PageSize=11 (I
am setting 1 empty record in grid)
i.e 1-10 of 36 11-20 of 36 21-30 of 36 31-36 of 36

Currently I am getting lots of issue like last  page showing
unexpected records. (expected 7 = 1 empty + 6 actual records)
pager showing unexpected startIndex ,lastIndex and
dataSize(totalRecordCount)

I am stuck in this pager  issue.

Any help or guidance in this matter would be appreciated


Does anyone know what's going wrong?

On Apr 27, 8:03 pm, "bstockiph...@googlemail.com"
 wrote:
> I fixed the bug with the invalid enabled "nextpage" button while
> setting setRangeLimited(false) by overwriting the hasNextPage()
> method:
>
> /* (non-Javadoc)
>                          * @see
> com.google.gwt.user.cellview.client.SimplePager#hasNextPage()
>                          */
>                         @Override
>                         public boolean hasNextPage() {
>
>                                 if(this.getPage()<(this.getPageCount()-1)) {
>                                         return true;
>                                 }
>                                 return false;
>                         }
>
> On Apr 6, 8:32 pm, Patrick Tucker 
> wrote:
>
>
>
>
>
>
>
> >  It seems my original reply didn't get recorded properly, so I will try
> > again with less detail...
>
> > I noticed that if you call setRangeLimited(false), you get the behavior that
> > you expect, but the forward buttons do not get grayed out.
>
> > If you look at setPageStart(int) is uses isRangeLimited and display's
> > isRowCountExact() values to determine whether or not pageSize records should
> > be shown.  If both are true you will get yourpageof pageSize.  It seems to
> > me that if isRangeLimited, meaning "whether or not thepagerange should be
> > limited to the actual data", is true you would want to only see the 5
> > remaining records instead of a fullpageof pageSize records.
>
> > So what I did was copy AbstractPager into my project and change
> > isRangeLimited to !isRangeLimited in setPageStart(int).  See code below:
> >   protected void setPageStart(int index) {
> >     if (display != null) {
> >       Range range = display.getVisibleRange();
> >       int pageSize = range.getLength();
> >       if (!isRangeLimited && display.isRowCountExact()) {
> >         index = Math.min(index, display.getRowCount() - pageSize);
> >       }
> >       index = Math.max(0, index);
> >       if (index != range.getStart()) {
> >         display.setVisibleRange(index, pageSize);
> >       }
> >     }
> >   }
>
> > You could also extend SimplePager and accomplish the same thing...
>
> > Can someone from the GWT team comment on this?
>
> > Thanks,
> > Pat

-- 
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: How to Refresh a View?

2011-11-09 Thread Victor Lujan
Thank you, I would like to dig deeper into this.

So, I'm using Activities/Places so I understand what you say about
creating a new Place.   The Activity Mapper will then ask which is the
current Place and will create a new activity which will load the same
view? Is that correct? And this new activity and this place will
somehow need to tell the View which components to load, right?

Makes sense.

Is this recommendable?


On Nov 9, 9:16 pm, Markus Zywitza  wrote:
> There are two techniques:
>
> To change the main view, which is presumably tied to the URL,you
> should open a new Place. Any secondary widgets (sidebar, status bar
> etc.) should be notified via EventBus of the new main content and act
> accordingly.
>
> --Markus
>
> 2011/11/10 Victor Lujan :
>
>
>
>
>
>
>
> > Oops , I really Hope this question doesnt get ignored !
> > If there is some fundamental flaw on the question please tell me : )
> > Anything can help. Remember I'm new at GWT, but im sure that I can get to
> > understand you.
> > Thx!
>
> > --
> > 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/-/z6dOLb9zQeYJ.
> > 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: How to Refresh a View?

2011-11-09 Thread Markus Zywitza
There are two techniques:

To change the main view, which is presumably tied to the URL,you
should open a new Place. Any secondary widgets (sidebar, status bar
etc.) should be notified via EventBus of the new main content and act
accordingly.

--Markus

2011/11/10 Victor Lujan :
> Oops , I really Hope this question doesnt get ignored !
> If there is some fundamental flaw on the question please tell me : )
> Anything can help. Remember I'm new at GWT, but im sure that I can get to
> understand you.
> Thx!
>
> --
> 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/-/z6dOLb9zQeYJ.
> 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: How to determine *at runtime* which permutation is used?

2011-11-09 Thread Hilco Wijbenga
On 9 November 2011 17:37, Danny Kirchmeier  wrote:
> You can use GWT.getPermutationStrongName()

Thank you.

Unfortunately, this gives me: F0A79CA92B424357F8F0A6170AD004B9. Is
there a way to turn this into something readable?

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

2011-11-09 Thread David Guo
I'll try it in Win7 64 bit to see if it works or not.
If not,maybe i CAN rebuild it on my own.

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

2011-11-09 Thread David Guo
Now FF8 has already  lanched,so the new GWT plugin still need to 
rebuild.

-- 
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/-/3ySZum0w9k4J.
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: WindowBuilder/GWT Designer error

2011-11-09 Thread chris
Very similar to the OP, I've found myself reaching a 
java.lang.IllegalArgumentException within GWT Designer. Now that we started 
getting this error, we can't use it to open files that had previously 
worked, including some that were created wholly within GWT Designer. GWT 
Designer worked as expected until a few days ago when we changed our 
project hierarchy. Immediately after that change, we started getting this 
error:
 

> *Internal Error *
>GWT Designer encountered unexpected internal error. 
>This could be caused by a GWT Designer bug or by a 
> misconfiguration issue, conflict, partial update, etc.  

   java.lang.IllegalArgumentException: Path must include project and 
> resource name: /index.html


What does "/index.html" have to do with anything? I'm completely unsure how 
to get around this problem, and the method described in the original post 
doesn't help.

Thanks,
Chris

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



classloader can not load class from annotation

2011-11-09 Thread bhomass
I am integrating a mvp4g into java Play. I am running into an
unexpected error, related to Thread based context classloader. When
the code gets to TypeOracleMediator, line 750 in the
resolveAnnotationValue method,

try {
  return Class.forName(valueType.getClassName(), false,
  Thread.currentThread().getContextClassLoader());
} catch (ClassNotFoundException e) {
  logger.log(TreeLogger.ERROR, "Annotation error: cannot
resolve "
  + valueType.getClassName(), e);
  return null;
}
  }

I get a ClassNotFoundException. I double checked the returned
classloader and verified that the classpath does not include the
project classes directory.

How can I fix this problem? I don't see a way to add a classpath into
the classloader (it is a subclass or URLClassLoader). Should I simply
create a new URLClassLoader with the classes dir added as an url path?

-- 
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: How to Refresh a View?

2011-11-09 Thread Victor Lujan
Oops , I really Hope this question doesnt get ignored !

If there is some fundamental flaw on the question please tell me : ) 
Anything can help. Remember I'm new at GWT, but im sure that I can get to 
understand you.

Thx!

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



Re: How to determine *at runtime* which permutation is used?

2011-11-09 Thread Danny Kirchmeier
You can use 
GWT.getPermutationStrongName()

You can choose to write that to the screen like so
RootPanel.get().add(new Label(GWT.getPermutationStrongName()));

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



How to determine *at runtime* which permutation is used?

2011-11-09 Thread Hilco Wijbenga
Hi all,

It would be helpful to see which permutation is being downloaded by
the browser. Is there a way to determine *at runtime* which
permutation (or at least which browser permutation) is being used?

It would be fine if extra work is needed during the build to generate
this information. Perhaps there is some sort of trigger/event at the
start of each permutation's compilation? Any ideas?

Cheers,
Hilco

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



Is it possible to select menuItem onMouseOver?

2011-11-09 Thread Ahmed
Hello,
I realize a web application that  run commands displayed in menuItem.
These commands may depend on each other, for example if a command C
depends on B, B depends on A  to execute C we must execute in order A-
> B-> C. In short, I would like to improve the feedback on my
application and select menuItems automatically when the mouse is over
a command that depends on them.
Thanks in advance for your helps.
NB: I use GWT 2.3

-- 
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: Reload Place using getWhere()

2011-11-09 Thread Jens
1.) You can do a Window.Location.reload() which will reload your page which 
in turn will load the same place again (url does not change and should 
reflect the current app state).

2.) A different way would be to create a custom PlaceController that 
provides a method like .forcedGoTo(Place newPlace) which would skip the 
equals() check between getWhere() and the new place. PlaceController is a 
pretty simple class, take a look at its source code.

3.) Maybe you could also copy some code from the PlaceController if you 
dont want to introduce a custom PlaceController:

public class PlaceUtils {

  public static void reloadCurrentPlace(PlaceController.Delegate delegate, 
EventBus eventBus, PlaceController placeController) {
Place where = placeController.getWhere();
//Taken from PlaceController.maybeGoTo()
PlaceChangeRequestEvent willChange = new PlaceChangeRequestEvent(where);
eventBus.fire(willChange);
String warning = willChange.getWarning();
//Taken from PlaceController.goTo()
if(warning == null || delegate.confirm(warning)) {
  eventBus.fire(new PlaceChangeEvent(where));
}
  }

}

Haven't tried it but maybe it works. Thats basically what 
PlaceController.goTo() does but without the equals check (and this code 
also does not update the "where" instance variable of PlaceController as 
its not possible from outside. But as the code works on the same place 
instance the whole time it does not have to update the "where" variable). 
The default implementation of PlaceController.Delegate is 
PlaceController.DefaultDelegate.

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



Reload Place using getWhere()

2011-11-09 Thread Mark Wengranowski
Hi Everyone,

Just wondering if anyone knows a way to reload the applications
current place in the following way:

PlaceController.goto(PlaceController.getWhere());

What happens is that the place controller realizes that it's the same
place your trying to go to so it doesn't do anything.

I could write an extremely long if statement that compares getWhere()
to all of my places but that seems a little long winded to do a simple
thing. ie:

if( (PlaceController.getWhere() instanceof TestPlace){
  PlaceController.goto(new TestPlace());
}else if(...

any simple workarounds would be greatly appreciated. I'm using the
activities and places mvp pattern.

Cheers,
-Mark

-- 
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: Basic JavaScript onClick not getting called from inside GWT richTextarea

2011-11-09 Thread gangurg gangurg
Its not possible to use Anchor and ClickHandlers inside RichTextArea
directly . I could convert the anchor to element , but again events would
not get intercepted .



On Wed, Nov 9, 2011 at 9:09 AM, Danny Kirchmeier wrote:

> No idea. Seems to me that you should be using an Anchor and ClickHandlers
> instead of that native method, but I may not understand exactly why you
> need that.
>
> --
> 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/-/d9XJS0kOQzYJ.
>
> 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 and reports

2011-11-09 Thread Shalin Lazar
Thanks. Will get started reading up. I'm still not certain whether I should
use gwt as opposed to good old swing. In terms of performance on a relative
average server (3.0 dual core, 4gb ram, ubuntu server), would gwt's
performance be suitable to serve say 15 users at an instance? I'm still
planning on using ejb with web services, and now I've got the reports as
well.

>From your experience, would the system be fast enough? Performance and
stability are a priority. gwt vs swing if I may.

Thanks again.
On Nov 9, 2011 12:04 PM, "Jens"  wrote:

> GWT would make a server request and the server will build the PDF file.
>
> We store the Jasper design XML (created with iReport) in a database and
> the server would fetch the xml, compile it and then fill it to generate the
> PDF. For simple reports we directly use a query to fill the report and for
> more complex reports we have custom datasource.
>
> Works well.
>
> -- 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/-/g-imKnQWTlwJ.
> 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.



IE not downloading external scripts included in UiBinder

2011-11-09 Thread frostedsugar
I have some external Javascript files in my GWT app that I only want
to download when the user accesses the section that requires them.

I included the JS files in a UiBinder page like this:





The files won't necessarily be downloaded as soon as the view is
initialized, so when I load the view, I check for an exception
indicating that the external code isn't accessible and try again until
the view can be created without an exception.

This works in Firefox but it doesn't work in IE7/IE8. I used AJAX
Edition to trace what's happening in IE, and a request for the file is
made but it doesn't download anything, the size is 0. Firefox
correctly downloads the file.

Any idea what's going on?

Or is there a better way to do this? I originally had the JS includes
in the module's xml file and split the module's code off via
GWT.runAsync calls, but that didn't work, the compiler put the JS
references into the main module.cache.html so they got downloaded
immediately.

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



HtmlUnit not running GWT js - onInjectionDone

2011-11-09 Thread MH
I'm trying to use htmlunit as recommended to return ?
_escaped_fragment_ queries by Google's crawler

I ask htmlunit to load my html page which contains a GWT program and
call waitForBackgroundJavaScript().

However the page then returned  by .asXml() has not got any GWT
components. The only processing that has occurred is the insertion of
the following:


//.onInjectionDone('')
//]]>


I don't know if it's relevant but htmlunit output these cryptic error
messages:

com.gargoylesoftware.htmlunit.javascript.StrictErrorReporter
runtimeError
SEVERE: runtimeError: message=[Automation server can't create object
for 'ChromeTab.ChromeFrame'.] sourceName=[http://127.0.0.1:/
com.procyor.Procyor/com.procyor.Procyor.nocache.js] line=[16]
lineSource=[null] lineOffset=[0]

com.gargoylesoftware.htmlunit.html.SimpleHTMLParserListener error
SEVERE: Empty document. (http://gaeHack_about/blank 1:6)

Any help 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-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.4 installation

2011-11-09 Thread Sachin Sreenivasan
Hi TBirch,

  Thanks for the advice. I did that and now I was able to install GWT
conveniently. But I have 2 more problems.

   - I dont see the Design Mode option at all which I used to see in my
   prev GWT versions.
   - I dont even see the Deploy Module option and I am not able to generate
   a war file which I can deploy in Tomcat.

  Can you please help me with this issue?

Regards,
Sachin

On Wed, Nov 9, 2011 at 7:37 PM, TBirch  wrote:

> Sachin,
> I had the same problem for a long time and finally downloaded the gwt
> zip file and installed locally.
> Follow the link on this note on the download page: Note: As an
> alternative to installing from the update site, you can install the
> Google Plugin for Eclipse by downloading and installing an archive of
> the update site.
> Thanks
>
> On Nov 8, 2:05 pm, sachin sreenivasan 
> wrote:
> > Hello people,
> >
> >   I am really struggling to install the GWT2.4 + Eclipse. I tried
> > different versions of Eclipse. In some of them I dont see the the
> > deploy module option at all and so I cant generate the war file. I
> > then tried with Eclipse Indigo. When I do an Install Software with
> thehttp://dl.google.com/eclipse/plugin/3.7link, the installation takes a
> > very long and then stops at a point where I get this error.
> >
> > An error occurred while collecting items to be installed
> > session context was:(profile=epp.package.jee,
> > phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
> > action=).
> > Unable to read repository athttp://
> dl.google.com/eclipse/plugin/3.7/plugins/com.google.gdt.eclips
> > Read timed out
> > Unable to read repository athttp://
> dl.google.com/eclipse/plugin/3.7/plugins/com.google.gdt.eclips
> > Read timed out
> >
> >   Got this error lot many times. Not sure why this error comes up.  I
> > have been struggling since a month to get this plugin installed. Can
> > someone please tell me what possibly is the best set of software
> > combiantion (GWT + Eclipse) for Windows 7 and the appropriate links
> > and steps for the same.
> >
> >  For the earlier GWT versions, I used to have an installable file for
> > the GWT designer and then I used to point the GWT package within that.
> > Can someone tell me if such a thing is possible even now with the
> > latest GWT?
> >
> > Hoping for some proper advice from this GWT community.
> >
> > Regards,
> > Sachin
>
> --
> 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: MenuBar - how can I cause it to wrap?

2011-11-09 Thread Danny Kirchmeier
The MenuBar uses a table, with each item being a table cell. AFAIK, you're 
not going to have any luck getting that to wrap. 

You should be able to check to see if any of the items are flowing out of 
the window and have those move themselves into a "More" menu item. 

-- 
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/-/JDFbSI3_jWsJ.
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: Using DockPLayoutPanel - can I get an autoexpanding south widget?

2011-11-09 Thread King_V
Danny, Thomas,

Thanks for the suggestions.

I actually came up with a workaround - though Thomas, I think I like
the HeaderPanel idea, and may adapt it to my project instead.

What I'm doing currently is:
1) Attach a DockLayoutPanel to the RootPanel
2) Attach a DockPanel to the CENTER of the DockLayoutPanel - DockPanel
has the following style added - width: 100%
3) Attach a MenuBar to the NORTH part of the DockPanel
4) Attach a FlowPanel to the SOUTH part of the DockPanel - FlowPanel
has the following styles added - position: absolute; bottom: 0;

This seems to have done the trick for me.

Now if only I could get the MenuBar to wrap if the browser window is
too small... but that's something I asked about in a more recent post.


-- 
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: MenuBar - how can I cause it to wrap?

2011-11-09 Thread King_V
Uh, let me clarify my structure - what I've described above is more or
less accurate, but the DockPanel is specifically the CENTER item of
the DockLayoutPanel.

Also, I should mention that the individual items will wrap in the menu
bar (ie: an item that is called "File Menu" rather than just "File"
will break the two words into two lines if need be), but the MenuBar
tries to force everything to be a single row.

Other than that, the rest of my post applies.  Sorry for any confusion.

-- 
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: Basic JavaScript onClick not getting called from inside GWT richTextarea

2011-11-09 Thread Danny Kirchmeier
No idea. Seems to me that you should be using an Anchor and ClickHandlers 
instead of that native method, but I may not understand exactly why you 
need that.

-- 
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/-/d9XJS0kOQzYJ.
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: Using DockPLayoutPanel - can I get an autoexpanding south widget?

2011-11-09 Thread Thomas Broyer
Have you looked at the 
HeaderPanel? 
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/HeaderPanel.html

-- 
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/-/449BRmg4GdgJ.
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: Using DockPLayoutPanel - can I get an autoexpanding south widget?

2011-11-09 Thread Danny Kirchmeier

>
> Now, my initial instinct is to somehow try and determine whether or  not 
> the FlowPanel needs to vertically resize (how do I determine this?  Can it 
> be determined?) and then use DockLayoutPanel.setWidgetSize to perform the 
> resizing "manually". 

 
Sounds like a good approach. On the bottom flow panel, you can use 
element.getScrollHeight()
 and 
either getOffsetHeight or getClientHeight(I can't remember, sorry), to 
determine if you need to expand the flow panel. You should check this when 
the window is resized or when an item is added. When the scroll height is 
larger than the offset/client height, use DockLayoutPanel.setWidgetSize to 
resize the panel.

-- 
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/-/J8O2dRgN6toJ.
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: What is current state/fix of/for deprecated PlaceController constructor

2011-11-09 Thread Jens
Hehe I hate it when this yellow "1 new message" box appears just when 
clicking on "post" and both new posts are basically the same :)

-- 
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/-/G-9RiDdIxeYJ.
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: What is current state/fix of/for deprecated PlaceController constructor

2011-11-09 Thread Jens

>
> my problem is that i use the event bus within some activities outside of 
> start(..) and there i always should use the bindary-One. 
>

Why should you? Assuming you only have one global event bus, the one 
provided by the start() method and the injected one are basically the same. 
The one provided by start() is just a wrapper around your global event bus 
obtained via injection (the one you gave the ActivityManager). Every method 
of this wrapper is delegated to your global event bus.

Its totally fine to store the event bus and also use it in other activity 
methods.

Activity.start(, EventBus eventBus) {
  this.eventBus = eventBus;
  this.eventBus.addHandler();
} 

Sure if you store it the activity has an "old" import statement as the 
start() method provides an "old" event bus. But on the day GWT kicks the 
old event bus you can simply run a global search and replace on your java 
files to correct the imports (class name is the same)

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



MenuBar - how can I cause it to wrap?

2011-11-09 Thread King_V
All,

Ok, playing around with GWT in general, MenuBar right now in
particular.

I have a situation where a demo app screen I have is more or less
looking how I want it to.

But, I have an issue with MenuBar, and didn't know if there was a
simple way around it.  If the user shrinks the screen so that all the
menu items in the MenuBar don't fit horizontally, they do NOT wrap as
you'd expect in a standard application, but instead simply get cut
off.

Is there a way to get the MenuBar to wrap its contents if there's not
enough horizontal space for them to fit on a single line?


The structure of my screen is:

RootPanel
 - DockLayoutPanel
 - - DockPanel (addStyleName used to give a style that sets width:
100%;)
 - - - NORTH - MenuBar
 - - - SOUTH - FlowPanel (addStyleName used to give a style that sets
position:absolute; bottom: 0;)

Thanks in advance!

-- 
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: What is current state/fix of/for deprecated PlaceController constructor

2011-11-09 Thread Thomas Broyer


On Wednesday, November 9, 2011 4:59:12 PM UTC+1, tanteanni wrote:
>
> thx for clarification jens.
>
> my problem is that i use the event bus within some activities outside of 
> start(..) and there i always should use the bindary-One. So in such 
> activities i have two different EventBuses. the bindary-One is imported the 
> other one is explicitly set in start method.
>

Out of curiosity, why should you "always use the web.bindery one"?

Either you add handlers to it, and using the global bus directly could be a 
source of memory leaks (you forget to remove your handlers, and the bus 
then keeps holding references to your activity, even after it's stopped and 
supposedly disposed), adding your handlers to the bus passed to the start 
method would have the same effect re. your handlers, except that they're 
automatically removed when the activity is stopped (onStop or onCancel) so 
you're guaranteed to not leak.
Or you fire events, and then again, the bus passed to the start method will 
simply delegate to the global bus (the one passed to the ActivityManager), 
so it's not an issue either. Even after the activity is stop you can still 
fire events on that bus (if for instance you do it from AsyncCallbacks or 
Receivers; e.g. the user clicks "save" then navigates before the server 
responds, maybe you ask him to confirm –return a non-null value from 
maybeStop– but he chooses to go away nonetheless, so the activity is 
stopped; when the server responds, you can still fire an event on the bus, 
for instance to show a notification that the object has correctly be saved).


Oh, and the field in your activity holding the eventbus can still use the 
web.bindery type, as the gwt bus extends the web.bindery one:

import com.google.web.bindery.event.shared.EventBus;
class MyActivity extends AbstractActivity {
   EventBus bus;

   @Override
   public void start(AcceptsOneWidget panel, 
com.google.gwt.event.shared.EventBus bus) {
  this.bus = bus;
  // do your initialization stuff
   }

   private void fireFooEvent() {
  this.bus.fireEvent(new FooEvent());
   }
}

And to be sure that an activity never uses /imports the wrong EventBus i 
> did it in all activities. (someone could add some code to an activity that 
> uses/needs an eventbus and if at this point in time the wrong import is 
> present (because the start -method needs it) it won't work - some injector 
> error will occur)
>

To make sure you don't use/import the wrong event bus, simply watch for 
"import com.google.gwt.event.shared." in your files (except if you're 
importing GwtEvent); in most cases, I guess you'll have type mismatch 
errors (trying to assign a web.bindery bus to a gwt variable) or 
deprecation warnings (if you have a variable of type "gwt EventBus", then 
the compiler will resolve constructor/method overloads using that bus too, 
which are deprecated as you noted earlier: ActivityManager, 
PlaceController, etc.)
And of course, watch for these errors when compiling: "Rebind result 
'com.google.gwt.event.shared.EventBus' cannot be abstract" ;-)
(I unfortunately don't have any real experience on this though, as we're 
stuck with an old version of GWT before things were moved to web.bindery; 
too many customizations –yes, you could say "abuses"– of RF that make it 
hard to update)

-- 
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/-/wl21K36FcP0J.
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: Basic JavaScript onClick not getting called from inside GWT richTextarea

2011-11-09 Thread gangurg gangurg
Any thoughts ?

On Mon, Nov 7, 2011 at 1:58 PM, gangurg gangurg  wrote:

>
> The following code works fine if i do HTML = new HTML(" onclick=window.test()>Hi 123I'); ( Meaning HelloWorld gets Printed )
> But the same HTML from inside a RichTextArea does not get printed .
>
> I am doing missing something here
>
>
>
> MyPanel
> {
>
>  RichTextArea ss = new RichTextArea ();
>  ss.stHTML("Hi 123I");
>
>   public static native void exportMyFunction2(MyPanel x) /*-{
> $wnd.call = function () {
>x.@myPackage.MyPanel::test()();
>}
>
> }-*/;
>
>
>public void test()
> {
> GWT.log("Hello World");
> }
>
>
> }
>

-- 
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: SuggestBox with RequestFactory

2011-11-09 Thread Mark Wengranowski
Thanks. I should be able to figure it out from here but more source
code is always helpful.

On Nov 8, 7:34 pm, Ashwin Desikan  wrote:
> have you checked out the sample in the following location.
>
> http://jectbd.com/?p=45
>
> the example uses an RPC connection, but that can be easily replaced
> with RF. This has example of how to implement filtering and restrict
> the number of results from server.
>
> one option for you would be to use a range query on the server.
>
> I implemented a dynamic version based on the above sample code. i
> currently restrict my results to 75 currently and I perform a query
> only after the user has typed in 3 characters to reduce the number of
> calls to server, but would soon be changing to a range query. If you
> are interested can share my work.
>
> thanks
> Ashwin
>
> On Wednesday 09 November 2011 05:14:41 AM IST, Mark Wengranowski wrote:
>
>
>
>
>
>
>
> > Hi Everyone,
>
> > I was wondering if anyone knows of a source code example that uses
> > requestfactory, a suggestbox and a dynamic suggest oracle?
>
> > I already have suggestboxes that i populate with a list of strings
> > from a RF call but  need a more dynamic approach for a search tool.
> > The list is way too long to load all of the answers so i need to
> > create a suggest oracle that makes an RF call after each key is typed.
>
> > All i can find is examples for RPC.
>
> > Thanks,
> > -Mark

-- 
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: What is current state/fix of/for deprecated PlaceController constructor

2011-11-09 Thread tanteanni
thx for clarification jens.

my problem is that i use the event bus within some activities outside of 
start(..) and there i always should use the bindary-One. So in such 
activities i have two different EventBuses. the bindary-One is imported the 
other one is explicitly set in start method. 
And to be sure that an activity never uses /imports the wrong EventBus i 
did it in all activities. (someone could add some code to an activity that 
uses/needs an eventbus and if at this point in time the wrong import is 
present (because the start -method needs it) it won't work - some injector 
error will occur)


-- 
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/-/NYEKf_E-_pkJ.
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 8

2011-11-09 Thread Thad
Thanks, Alan. After uninstalling the FF7 plug-in, I restarted FF8 and
loaded this. My first attempt to use it was successful. I'll keep you
posted.

For your records, I'm running FF on OpenSuSE 11.4, 32-bit with GWT 2.3
(gonna run 2.4 as soon as I get permission to drop support from some
old Mac servers).

BTW, I was attempting to do the same thing, but was unable to build
Firefox so I'd have the libraries and headers necessary for plugin-
sdks/gecko-sdks/gecko-8.0.0. I cloned mozilla-central overnight. This
morning I created .mozconfig and ran make -f client.mk but quickly got
the error ".../client.mk:282: *** Could not find autoconf 2.13.
Stop." This I don't understand: Why would it require 2.13 exactly? (I
have 2.68 in the path.) I was gonna play with the AUTOCONF setting in
client.mk when I saw your announcement.

Thanks again.

On Nov 9, 5:07 am, Alan Leung  wrote:
> Hi all:
>
> I just finished building / testing the FF8 dev mode plugin for Linux 32 bit
> (http://www.sendspace.com/file/h8wgmn)
>
> More to come tomorrow.
>
> Again, if you are using FF8 already. I'd greatly appreciate if you give
> that a try and let me know when you see anything weird.
>
> -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: Cancel CellList selection

2011-11-09 Thread Thomas Broyer
Try with a custom CellPreviewEvent.Handler; possibly delegating to a 
DefaultSelectionEventManager
 for 
the default behavior.

-- 
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/-/HZVpT5vjFOIJ.
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 8.0 just released

2011-11-09 Thread Евгений
Hi 

gwt-dev-plugin.xpi
 need 
to be updated

Thanks

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



How to Refresh a View?

2011-11-09 Thread Victor Lujan
Hi everyone,

I'm starting a GWT project, I'm using both MVP and Activities/Places.
I have a certain amount of views
per page (lets say 5). I gave this views the name of their position in
the page, lets say TopView, MiddleView, etc.

When a button is clicked I would like to change the content of
MiddleView to change some customized widgets
to another.
My first question would be: How can I tell GWT to refresh that view?
Second question: Is this the way to go or should i make the button
change the Place , which would make an Activity pick another View?

The thing is, I would rather have a small amount of views and recycle
them by changing their contents, if possible. If this is not the way
to go and its better to have an unlimited amout of Views then I can do
that too. But I wanted to ask you first.

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.



Cancel CellList selection

2011-11-09 Thread Yann
Hello,

Is there a way to cancel a user selection of a row in a "CellList" ?
I can't find something like a "BeforeSelectionHandler" on a
"TabLayoutPanel".
I would like to be able to prompt a message indicating that the
current edited object of the CellList has not been saved if the user
clicks on another cell.
Any idea ?

Thanks.
Yann.

-- 
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 FlexTable performance

2011-11-09 Thread Dmitry
Hi,

I'm working on GWT project where we are using FlexTable to display
some data. I know that we should probably be using CellTable as it has
better performance, but FlexTable is easier to style (style specific
cells) and makes it easier to update specific cell.

To receive updates for the table we're using WebSockets. The problem
we're facing right now is high CPU load when there're more than 100
updates per second coming through WebSockets. Each message from
WebSocket connection contains updates for several cells in the table.
So in practice there're more than 100 updates per second that should
be rendered in the FlexTable. CPU load on my 3GHz i5 with 4GB RAM is
around 50%. If I disable actual rendering of the data (comment out
setText() method calls) then CPU load goes down to 5-10%. So I know
that DOM updates are the bottleneck, not the other parts of the code.

Would it be better to
1) use Grid instead?
2) switch to CellTable (but how to make singe cell updates then)?
3) use JS/JSNI to work with DOM instead of FlexTable setText()?

I've tried to google if someone had similar problems with FlexTable,
but found only the general opinion that it is just slow, nothing
specific. We have application prototype done purely in JavaScript and
with same 100 updates per second CPU load is around 15%

-- 
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 compiler vs. generics

2011-11-09 Thread Tomek Kup...
Guys,
I found critical issue with GWT Compiler (gwt version is 2.4.0) and
java generics. I included into my project Lambdaj library and gwt
compiler says:

--- gwt-maven-plugin:2.4.0:compile (default-cli) @ gwtmvntest ---
[INFO] auto discovered modules [kuprowski.gwtmvntest]
[INFO] Compiling module kuprowski.gwtmvntest
[INFO]Validating newly compiled units
[INFO]   Ignored 2 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to
see all errors.
[INFO][ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Failed to get
JNode
[INFO]  at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:140)
[INFO]  at
com.google.gwt.dev.jjs.impl.TypeMap.internalGet(TypeMap.java:242)
[INFO]  at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:138)
[INFO]  at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:130)
[INFO]  at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
[INFO]  at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:1144)
[INFO]  at sun.reflect.GeneratedMethodAccessor25.invoke(Unknown
Source)
[INFO]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
[INFO]  at java.lang.reflect.Method.invoke(Method.java:597)
[INFO]  at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:577)
[INFO]  at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:
603)
[INFO]  at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processStatement(GenerateJavaAST.java:1765)
[INFO]  at sun.reflect.GeneratedMethodAccessor40.invoke(Unknown
Source)
[INFO]  at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
[INFO]  at java.lang.reflect.Method.invoke(Method.java:597)
[INFO]  at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:577)
[INFO]  at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:
638)
[INFO]  at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processStatements(GenerateJavaAST.java:1846)
[INFO]  at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processMethod(GenerateJavaAST.java:1513)
[INFO]  at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processType(GenerateJavaAST.java:501)
[INFO]  at
com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(GenerateJavaAST.java:
2958)
[INFO]  at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
608)
[INFO]  at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
33)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:
284)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:
233)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:
145)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:232)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:198)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
[INFO]  at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
[INFO]  at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
82)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[INFO]   [ERROR] : public final class
ch.lambdaj.Lambda
[INFO]  extends java.lang.Object
[INFO] /*   fields   */
[INFO] private static final [unresolved] Unresolved type
ch.lambdaj.function.aggregate.Sum SUM
[INFO] private static final [unresolved] Unresolved type
ch.lambdaj.function.aggregate.Min MIN
[INFO] private static final [unresolved] Unresolved type
ch.lambdaj.function.aggregate.Max MAX
[INFO] private static final [unresolved] Unresolved type
ch.lambdaj.function.aggregate.Concat CONCAT
[INFO] /*   methods   */
[INFO] [unresolved] private void ()
[INFO] [unresolved] public static T aggregate(java.lang.Object,
Unresolved type ch.lambdaj.function.aggregate.Aggregator)
[INFO] [unresolved] public static T aggregate(java.lang.Object,
Unresolved type ch.lambdaj.function.aggregate.Aggregator, A)
[INFO] [unresolved] public static T aggregateFrom(Iterable,
Unresolved type ch.lambdaj.function.aggregate.Aggregator)
[INFO] [unresolved] public static T aggregateFrom(Iterable, Class, Unresolved type ch.lambdaj.function.aggregate.Aggregator)
[INFO] [unresolved] public static Unresolved type
ch.lambdaj.function.argument.Argument argument(T)
[INFO] [unresolved] public static Unresolved type
ch.lambdaj.function.convert.Converter>
as(java.lang.Object)
[INFO] [unresolved] public static Unresolved type
ch.lambdaj.function.convert.Converter>
as(java.lang.String, java.lang.Object)
[INFO] [unresolved] public static java.lang.Number
avg(java.lang.Object)
[INFO] [unresolved

GWT a breadbcrumb for NooBS like me.

2011-11-09 Thread Steven Peterson
From: SampleClient.java
/**
* Create a remote service proxy to talk to the server-side Greeting
service.
*/private final GreetingServiceAsync greetingService = GWT
.create(GreetingService.class);


From: GreetingServiceAsync.java
/**
 * The async counterpart of GreetingService.
 */
public interface GreetingServiceAsync {
void greetServer(String input, AsyncCallback callback)
throws IllegalArgumentException;
}


When GreetingServiceAsync is an interface, from which we obtain an
object. - Yet... What the hell is in that thing!
Can I answer my own question?
What the heck does GWT do?

FROM: 
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/core/client/GWT.html

com.google.gwt.core.client
Class GWT

java.lang.Object
  com.google.gwt.core.client.GWT
public final class GWT
extends java.lang.Object
Supports core functionality that in some cases requires direct support
from the compiler and runtime systems such as runtime type information
and deferred binding.

Ok, sounding pretty hardcore. Lets grok this deferred binding thing:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsDeferred.html
Crazy,


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



Document.get().getScrollHeight() returns same value always ?

2011-11-09 Thread Ed
I call "Document.get().getScrollHeight()" when I have a scrolling area
such that it returns something like 1600.
When I remove widgets such that the vertical scrolling appears, and
call this method again, it returns the same value :(

Why?
I tested it in IE7 and FF 7 (GWT 2.3).

For some reason it always returns the highest value. It returns the
small value when no vertical scrolling appears, but when it once
returned a high value when vertical scrolling is present, it will
return this same high value when I remove this widgets again such that
no vertical scrolling appears.
BTW: the widgets are really removed from the DOM and not just made
invisible.

- Ed

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



Training on Google-web-toolkit

2011-11-09 Thread lavanya kannan
Hi,

We are basically a Technical Corporate Training Company. If you know any
individual or Corporate looking for GWT - Google Web Toolkit Training, pls
let us know. We have a team of 15+yrs exp. staff.
Thanks 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: looking for a way to fire the F11 key event

2011-11-09 Thread Thomas Broyer
Simply put: you can't. See https://wiki.mozilla.org/Gecko:FullScreenAPI for 
the rationale.

You'll see however at the very end of that page that Firefox and WebKit 
(Safari and Chrome, and many more) have implemented the proposed API:

   - 
   
http://blog.pearce.org.nz/2011/09/mozilla-full-screen-api-progress-update.html
   - 
   
http://peter.sh/2011/01/javascript-full-screen-api-navigation-timing-and-repeating-css-gradients/
 (you 
   can try it already in Chrome 17 (dev channel or canari build))
   

-- 
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/-/_E8aGZY7EbUJ.
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: looking for a way to fire the F11 key event

2011-11-09 Thread Paul Robinson

This is really about what you can do from javascript. See:
http://stackoverflow.com/questions/1125084/how-to-make-in-javascript-full-screen-windows-stretching-all-over-the-screen

and

http://stackoverflow.com/questions/7495373/how-to-make-browser-full-screen-using-f11-key-event-through-javascript

which seem to suggest you can't do it.

Paul

On 09/11/11 13:49, David wrote:

Most browsers have a built in fullscreen mode via the F11 key.
I have a requirement to add a "full screen mode" button to my gwt app
and am looking for a way to fire the F11 Event


F11_KEY = 122;

NativeEvent f11Event = Document.get().createKeyPressEvent(false,
false, false, false, F11_KEY);

Both of these solutions don't seem to work:
 1)   DomEvent.fireNativeEvent(f11Event, this);
 2)   ..getElement().dispatchEvent(f11Event);


Has anyone tried this before?

Thanks
David



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

2011-11-09 Thread TBirch
Sachin,
I had the same problem for a long time and finally downloaded the gwt
zip file and installed locally.
Follow the link on this note on the download page: Note: As an
alternative to installing from the update site, you can install the
Google Plugin for Eclipse by downloading and installing an archive of
the update site.
Thanks

On Nov 8, 2:05 pm, sachin sreenivasan 
wrote:
> Hello people,
>
>   I am really struggling to install the GWT2.4 + Eclipse. I tried
> different versions of Eclipse. In some of them I dont see the the
> deploy module option at all and so I cant generate the war file. I
> then tried with Eclipse Indigo. When I do an Install Software with 
> thehttp://dl.google.com/eclipse/plugin/3.7link, the installation takes a
> very long and then stops at a point where I get this error.
>
> An error occurred while collecting items to be installed
> session context was:(profile=epp.package.jee,
> phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
> action=).
> Unable to read repository 
> athttp://dl.google.com/eclipse/plugin/3.7/plugins/com.google.gdt.eclips
> Read timed out
> Unable to read repository 
> athttp://dl.google.com/eclipse/plugin/3.7/plugins/com.google.gdt.eclips
> Read timed out
>
>   Got this error lot many times. Not sure why this error comes up.  I
> have been struggling since a month to get this plugin installed. Can
> someone please tell me what possibly is the best set of software
> combiantion (GWT + Eclipse) for Windows 7 and the appropriate links
> and steps for the same.
>
>  For the earlier GWT versions, I used to have an installable file for
> the GWT designer and then I used to point the GWT package within that.
> Can someone tell me if such a thing is possible even now with the
> latest GWT?
>
> Hoping for some proper advice from this GWT community.
>
> Regards,
> Sachin

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



looking for a way to fire the F11 key event

2011-11-09 Thread David
Most browsers have a built in fullscreen mode via the F11 key.
I have a requirement to add a "full screen mode" button to my gwt app
and am looking for a way to fire the F11 Event


F11_KEY = 122;

NativeEvent f11Event = Document.get().createKeyPressEvent(false,
false, false, false, F11_KEY);

Both of these solutions don't seem to work:
1)   DomEvent.fireNativeEvent(f11Event, this);
2)   ..getElement().dispatchEvent(f11Event);


Has anyone tried this before?

Thanks
David

-- 
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 on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-11-09 Thread Jens
Are there any new information about the Safari 5.1 plugin?

-- 
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/-/BszeHSSUJfAJ.
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 Developer Plugin for Firefox 8

2011-11-09 Thread Alan Leung
Hi all:

I just finished building / testing the FF8 dev mode plugin for Linux 32 bit
(http://www.sendspace.com/file/h8wgmn)

More to come tomorrow.

Again, if you are using FF8 already. I'd greatly appreciate if you give
that a try and let me know when you see anything weird.

-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 and reports

2011-11-09 Thread Jens
GWT would make a server request and the server will build the PDF file. 

We store the Jasper design XML (created with iReport) in a database and the 
server would fetch the xml, compile it and then fill it to generate the 
PDF. For simple reports we directly use a query to fill the report and for 
more complex reports we have custom datasource.

Works well.

-- 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/-/g-imKnQWTlwJ.
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.