Re: Palette: can not load component com.google.gwt.user.client.ui.TextArea

2010-11-19 Thread Eric Clayberg
This is typically caused by a bug in OpenJDK. If you run Eclipse using
the latest Sun/Oracle JVM instead, it should be fine.

On Nov 11, 8:26 am, Meeta Krishnamurthi  wrote:
> Hey
>
> I am using the GWT Designer downloaded from the latest Update Site for
> Eclipse 3.6.
>
> I seem to be unable to add any of the TextBox Controls (TextBox,
> TextArea, PasswordTextBox) those inheriting from TextBoxBase from the
> Palette. Clicking on any of these generates the following error in the
> Designer Editor Erros
>
> Palette: can not load component com.google.gwt.user.client.ui.TextArea
> Stack trace:
>
> java.beans.IntrospectionException: type mismatch between read and
> write methods
>         at
> java.beans.PropertyDescriptor.findPropertyType(PropertyDescriptor.java:
> 657)
>         at
> java.beans.PropertyDescriptor.setWriteMethod(PropertyDescriptor.java:
> 318)
>         at java.beans.PropertyDescriptor.(PropertyDescriptor.java:140)
>         at
> com.instantiations.designer.core.utils.reflect.ReflectionUtils.addPropertyD 
> escriptor(ReflectionUtils.java:
> 1256)
>         at
> com.instantiations.designer.core.utils.reflect.ReflectionUtils.getPropertyD 
> escriptors(ReflectionUtils.java:
> 1200)
>         at
> com.instantiations.designer.core.model.description.rules.StandardBeanProper 
> tiesRule.begin(StandardBeanPropertiesRule.java:
> 37)
>         at org.apache.commons.digester.Digester.startElement(Digester.java:
> 1563)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(A 
> bstractSAXParser.java:
> 504)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyE 
> lement(AbstractXMLDocumentParser.java:
> 182)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scan 
> StartElement(XMLDocumentFragmentScannerImpl.java:
> 1315)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl
> $FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2723)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocu 
> mentScannerImpl.java:
> 624)
>         at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scan 
> Document(XMLDocumentFragmentScannerImpl.java:
> 486)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co 
> nfiguration.java:
> 810)
>         at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co 
> nfiguration.java:
> 740)
>         at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
> 110)
>         at
> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstract 
> SAXParser.java:
> 1208)
>         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
> $JAXPSAXParser.parse(SAXParserImpl.java:525)
>         at org.apache.commons.digester.Digester.parse(Digester.java:1887)
>         at
> com.instantiations.designer.core.model.description.helpers.ComponentDescrip 
> tionHelper.getDescription0(ComponentDescriptionHelper.java:
> 361)
>         at
> com.instantiations.designer.core.model.description.helpers.ComponentDescrip 
> tionHelper.getDescription0(ComponentDescriptionHelper.java:
> 266)
>         at
> com.instantiations.designer.core.model.description.helpers.ComponentDescrip 
> tionHelper.getDescription(ComponentDescriptionHelper.java:
> 236)
>         at
> com.instantiations.designer.core.editor.palette.model.entry.ComponentEntryI 
> nfo.ensureDescriptions(ComponentEntryInfo.java:
> 237)
>         at
> com.instantiations.designer.core.editor.palette.model.entry.ComponentEntryI 
> nfo.createTool(ComponentEntryInfo.java:
> 362)
>         at
> com.instantiations.designer.core.editor.palette.model.entry.ToolEntryInfo
> $1.runObject(ToolEntryInfo.java:28)
>         at
> com.instantiations.designer.core.editor.palette.model.entry.ToolEntryInfo
> $1.runObject(ToolEntryInfo.java:1)
>         at
> com.instantiations.designer.core.utils.execution.ExecutionUtils.runObjectLo 
> g(ExecutionUtils.java:
> 268)
>         at
> com.instantiations.designer.core.editor.palette.model.entry.ToolEntryInfo.a 
> ctivate(ToolEntryInfo.java:
> 23)
>         at com.instantiations.designer.core.editor.palette.DesignerPalette
> $3.activate(DesignerPalette.java:253)
>         at
> com.instantiations.designer.core.controls.palette.PaletteComposite.selectEn 
> try(PaletteComposite.java:
> 206)
>         at com.instantiations.designer.core.controls.palette.PaletteComposite
> $EntryFigure$1.mouseUp(PaletteComposite.java:726)
>         at com.instantiations.draw2d.EventManager
> $2.invokeListener(EventManager.java:217)
>         at com.instantiations.draw2d.EventManager.sendEvent(EventManager.java:
> 177)
>         at
> com.instantiations.draw2d.EventManager.handleMouseEvent(EventManager.java:
> 164)
>         at com.instantiations.draw2d.EventManager.mouseUp(EventManager.java:
> 155)
>         at sun.reflect.NativeMethodAccessorI

Re: Styling Login Widget

2010-11-19 Thread Nicholas
I was looking specifically at the GWT LoginWidget.  I don't see it
exposing any properties that I could use to style things the way I
want.  I guess I could always just re-implement the widget myself and
expose some style properties that can be assigned?

On Nov 19, 1:22 pm, PhilBeaudoin  wrote:
> I do all my styling using UiBinder and CssResource, with HTMLPanel you
> can write all the HTML you need to make your app look perfect. This is
> how we did BookedIn:http://corp.bookedin.net/(check the live demo)
>
> Cheers,
>
>     Philippe
>
> On Nov 18, 5:03 pm, Nicholas  wrote:
>
>
>
>
>
>
>
> > I have the loginWidget in my application, and would like to customize
> > the styling.  For instance, bold the email address, and make the sign-
> > out link look like a link (blue and underlined).  What is the correct
> > way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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 kill a GWT request which has not yet completed

2010-11-19 Thread Gaurav Vaish
RPC request cannot be cancelled.

Use the method Request::cancel() with RequestBuilder.

Request req = requestBuilder.send(...);
req.cancel(); //when needed.


--
Happy Hacking,
Gaurav Vaish
www.mastergaurav.com


On Nov 20, 12:47 am, Sunit Katkar  wrote:
> I Googled and also this group but could not find an answer.
>
> Here is the use case:
>
> 1) User enters a value in a textfield and clicks Submit button
> 2) The GWT RPC request has been sent to the server where it will take some
> time to process. (Say 10 or 15 seconds)
> 3) But before the request can be seviced by the server and and the
> onSuccess() is called on the client side, the user needs to do something
> else, which requires that this request be killed.
>
> How do you kill a just fired GWT RPC request? We cannot provide a separate
> UI button which the user clicks to send a KILL request to the server with a
> request id, etc. However, we can allow for 'kill just fired request' code
> when user navigates to another part of the screen or does the new action.
>
> Any ideas?
>
> 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.



GWT Facebook problem

2010-11-19 Thread branni
Hi,
We use fb:like tag to add facebook plugin to our webapp, but it isn't
rendered on the server although in the localhost is works fine.
I think the async methods delay the DOM loading and the facebook's
parser doesn't find the fb:like tag.

Do you know anything about it?

Thanks,

bran

-- 
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: Saving contents of RichTextArea?

2010-11-19 Thread Gaurav Vaish
You have three choices:

- Use flash's offline storage feature
- Use Google gears (less chances of having it installed)
- Use Silverlight (works only on Windows)


--
Happy Hacking,
Gaurav Vaish
www.mastergaurav.com


On Nov 20, 5:30 am, Jeff Chimene  wrote:
> You don't have access to the local file system in that way. You could upload
> the text to the server, then send it as a separate file via a GET.
>
> On Fri, Nov 19, 2010 at 4:41 PM, Neil Halelamien  wrote:
> > Does anybody have pointers on how one might go about saving the contents of
> > a RichTextArea to a file on a client's machine? Hopefully this question
> > isn't too general...
>
> > -- Neil
>
> > --
> > 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.



Re: Multiple modules compilation

2010-11-19 Thread Lechat
Maybe I fogot to mention that the modules are ment to be independent
and thus have no dependecy between themselfs, so unsuccessful
compilation of one module does not affect other modules.

-- 
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: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-19 Thread Thomas Broyer

On 19 nov, 23:04, Karthik Ramachandran 
wrote:
> I'm running into this problem on XP with Maven 2.2.1, STS 2.5.1 Release.
>
> Interesting enough if I run Maven gwt:run everything seems to work fine.
> Which suggests there is a bug within GPE as opposed to maven gwt plugin. I
> also don't remember this bug occurring with last milestone release of STS.

FWIW, I have *no* problem with Eclipse Helios (3.6, updated to SR1)
with GPE 1.4.0.v201010280102 and m2eclipse 0.10.2.20100623-1649 on
Windows XP Pro SP3
(if I understand correctly the issue, when launching DevMode, my
index.jsp and other things like that from my "war directory" –$
{project.build.directory}/${project.build.finalName}, i.e. target/
– would vanish)

-- 
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: Saving contents of RichTextArea?

2010-11-19 Thread Jeff Chimene
You don't have access to the local file system in that way. You could upload
the text to the server, then send it as a separate file via a GET.

On Fri, Nov 19, 2010 at 4:41 PM, Neil Halelamien  wrote:

> Does anybody have pointers on how one might go about saving the contents of
> a RichTextArea to a file on a client's machine? Hopefully this question
> isn't too general...
>
> -- Neil
>
> --
> 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.



Saving contents of RichTextArea?

2010-11-19 Thread Neil Halelamien
Does anybody have pointers on how one might go about saving the contents of
a RichTextArea to a file on a client's machine? Hopefully this question
isn't too general...

-- Neil

-- 
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: Ability to set element id trough UIBinder widget

2010-11-19 Thread Jack
Maybe you can do something like:

public class MyTextBox extends TextBox {

...

  public void setElementId(String id) {
this.getElement().setId(id);
  }

}

and in UiBinder use

  


Maybe UiBinder calls MyTextBox.setElementId("usernameInput"). Haven't
tested it but I think it could work. But its not a nice solution.


On 15 Nov., 18:12, Janusz  wrote:
> Hello,
>   I've been looking for a way to set DOM element id trough UIBinder
> but I couldn't find any solution. Example of what I'd like to do:
>
> 
>   Some label
>   
> 
>
> Id like this to be rendered as:
> 
>   Some label
>   
> 
>
> Sadly this doesn't work the way I wanted it to. As far as I can
> understand id attribute in UIBinder is treated as an id for XML
> element that is being parsed by UIBinder processor. I've tried things
> like JSP/JSF syntax:
>
>   
>
> but this doesn't work either. Does anyone know if it is possible in
> UIBinder to set an id for resulting DOM element? Currently to achieve
> this one has to go to java code and use field.getElement().setId().
>
> Thanks

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



Re: Hierarchical cellTable

2010-11-19 Thread John LaBanca
CellTable doesn't currently support something like this.  We're planning on
adding expanding rows in GWT 2.2.  Out of curiosity, do you need a full
blown CellTreeTable, or do you just one to expand one level deep?

Thanks,
John LaBanca
jlaba...@google.com


On Fri, Nov 19, 2010 at 5:27 PM, ycol  wrote:

> hi All,
> I am looking to create a Hierarchical cellTable to achieve something
> like on this page
>
> http://www.trirand.net/examples/hierarchy/subgrid_3_levels/default.aspx
>
> Is this possible using gwt?
> Can someone provide me sample code or let me know what the steps would
> be?
> Please help
> Thanks in Advance
> GWTNewbie
>
> --
> 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.



Re: design pattern for common functionality between Activities

2010-11-19 Thread Marcin Misiewicz
And you are definitely right.

On Nov 19, 8:05 pm, koma  wrote:
> How I understand things, a display region is a dynamic part of a
> webpage;
>
> Depending on the place you're at, a display region is populated with a
> specific activity.
> A activity manager is the manager of a display region and decides the
> right activity to show up for a given display region when a certain
> page is showing.
>
> So, in terms of your question : a display region can be a dynamic
> menu, a sidebar, a logout/login link not the entire group.
> An example
>
> page with menu displayregion, maincontent displayregion, sidebar
> displayregion
>
> example page #ContactDetailsPage:FooBar
> +> sidebar display region will be instructed by the sidebar-
> activitymanager to start the activity GrandChildrenActivity (display
> grandchildren in side bar)
> +> maincontact display region will be instructed by the
> maincontentarea-activitymanager to start the activity
> ContactDetailsActivity (display contact details in main content area)
> +> menu display region will be instructed by the menu-activitymanager
> to start the activity MenuActivity (show the menu)
>
> example page #Login
> +> sidebar display region will be instructed by the sidebar-
> activitymanager to display nothing (NULL)
> +> maincontact display region will be instructed by the
> maincontentarea-activitymanager to start the activity LoginActivity
> (display login page)
> +> menu display region will be instructed by the menu-activitymanager
> to start the activity WelcomeActivity (show a welcome msg)
>
> etc etc.
>
> So far my understanding.
>
> Koen

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



Hierarchical cellTable

2010-11-19 Thread ycol
hi All,
I am looking to create a Hierarchical cellTable to achieve something
like on this page

http://www.trirand.net/examples/hierarchy/subgrid_3_levels/default.aspx

Is this possible using gwt?
Can someone provide me sample code or let me know what the steps would
be?
Please help
Thanks in Advance
GWTNewbie

-- 
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: Google Plugin In Spring Source Toolkit seems to be wipping out the project on run.

2010-11-19 Thread Karthik Ramachandran
I'm running into this problem on XP with Maven 2.2.1, STS 2.5.1 Release.

Interesting enough if I run Maven gwt:run everything seems to work fine.
Which suggests there is a bug within GPE as opposed to maven gwt plugin. I
also don't remember this bug occurring with last milestone release of STS.

Karthik

On Thu, Nov 18, 2010 at 7:13 PM, Chris  wrote:

>
> On Nov 18, 6:03 pm, Rajeev Dayal  wrote:
> > Hey Chris,
> >
> > A few questions:
> >
> > -what operating system are you on?
> > -I noticed that you have the gwt-user.jar and gwt-dev.jar explicitly on
> your
> > build classpath. Did you add those entries? If you navigate over to the
> > Project Properties -> Google -> Web Toolkit page, what SDK is selected?
> >
>
> I'm working in Windows XP.  The gwt-*.jar dependencies were
> automatically added after - to answer your last question - I
> configured the 2.1.0 SDK in project properties after upgrading the SDK/
> plugin.  I'm fairly certain gwt-dev.jar shouldn't be a compile-time
> dependency, right?  In any event, building/GWT-compiling work just
> fine, the only problem is starting up dev mode.
>
> I think I can reconfigure maven to explode the resources zip file to
> src/main/webapp instead of target/ before compilation so
> this likely won't be a long-term problem, but its still a change from
> the behavior using the 1.3.3 plugin.
>
> Many thanks,
> - C
>
> --
> 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.



Cell Table paging

2010-11-19 Thread Andigator
I have a very large list that I want to page through with CellTable,
but I don't want to push all the rows up to the client in one big
chunk.  In the past, I have done this with Pojos and RPC, but now I'm
using RequestFactory.

What I'd like to do is retrieve the next page from the server (when
onRangeChanged gets called).  Is there any way to manage a collection
like that through RequestFactory?

-- 
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 Designer crashes - GWT Designer 8.1 Beta + STS 2.5.1

2010-11-19 Thread Javid Jamae
I'm running Springsource Tools Suite 2.5.1. I set up GWT and the GWT
designer (using the beta update site with the 20101118xxx release).
When I try to bring up the designer view, Java crashes and gives me a
dump file in the STS root directory. The key stacktrace in that file
is as follows. Any help you could provide on how I can get past this
would be very helpful. Thanks!


Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j
com.instantiations.designer.gwt.webkit.BrowserShellWebKitImplWin32._makeShot(Ljava/
lang/Number;)Ljava/lang/Number;+0
j
com.instantiations.designer.gwt.webkit.BrowserShellWebKitImplWin32.makeShot()Lorg/
eclipse/swt/graphics/Image;+5
j
com.instantiations.designer.gwt.webkit.BrowserShellWebKit.createBrowserScreenshot()Lorg/
eclipse/swt/graphics/Image;+4
j
com.instantiations.designer.gwt.model.widgets.support.GWTState.createBrowserScreenshot()Lorg/
eclipse/swt/graphics/Image;+12
j
com.instantiations.designer.gwt.model.widgets.UIObject_Info.fetchImage(Ljava/
lang/Object;)V+4
j
com.instantiations.designer.gwt.model.widgets.UIObject_Info.refresh_fetch()V
+57
j  com.instantiations.designer.core.model.ObjectInfo$5$1.run()V+17
j
com.instantiations.designer.core.utils.execution.ExecutionUtils.runDesignTime(Lcom/
instantiations/designer/core/utils/execution/RunnableEx;)V+9
j  com.instantiations.designer.core.model.ObjectInfo$5.run()V+8
j  com.instantiations.designer.core.model.ObjectInfo.doRefresh(Lcom/
instantiations/designer/core/utils/execution/RunnableEx;)V+1
j  com.instantiations.designer.core.model.ObjectInfo.refresh()V+25
j
com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF(Lorg/
eclipse/core/runtime/IProgressMonitor;)V+121
j  com.instantiations.designer.core.editor.DesignPage.access$10(Lcom/
instantiations/designer/core/editor/DesignPage;Lorg/eclipse/core/
runtime/IProgressMonitor;)V+2
j  com.instantiations.designer.core.editor.DesignPage$7$1.run()V+11
j  org.eclipse.swt.widgets.Synchronizer.syncExec(Ljava/lang/Runnable;)V
+121
j  org.eclipse.ui.internal.UISynchronizer.syncExec(Ljava/lang/
Runnable;)V+91
j  org.eclipse.swt.widgets.Display.syncExec(Ljava/lang/Runnable;)V+64
j  com.instantiations.designer.core.editor.DesignPage$7.run(Lorg/
eclipse/core/runtime/IProgressMonitor;)V+27
j  org.eclipse.jface.operation.ModalContext.runInCurrentThread(Lorg/
eclipse/jface/operation/IRunnableWithProgress;Lorg/eclipse/core/
runtime/IProgressMonitor;)V+6
j  org.eclipse.jface.operation.ModalContext.run(Lorg/eclipse/jface/
operation/IRunnableWithProgress;ZLorg/eclipse/core/runtime/
IProgressMonitor;Lorg/eclipse/swt/widgets/Display;)V+48
j  org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ZZLorg/eclipse/
jface/operation/IRunnableWithProgress;)V+30
j
com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF_withProgress()V
+27
j
com.instantiations.designer.core.editor.DesignPage.internal_refreshGEF()Z
+24
j
com.instantiations.designer.core.editor.UndoManager.refreshDesignerEditor()V
+12
j  com.instantiations.designer.core.editor.UndoManager.activate()V+32
j
com.instantiations.designer.core.editor.DesignPage.handleActiveState_True()V
+30
j
com.instantiations.designer.core.editor.DesignPage.handleActiveState(Z)V
+10
j
com.instantiations.designer.core.editor.multi.DefaultMultiMode.showPage(Lcom/
instantiations/designer/core/editor/IDesignPage;)V+91
j  com.instantiations.designer.core.editor.multi.DefaultMultiMode
$1.widgetSelected(Lorg/eclipse/swt/events/SelectionEvent;)V+14
j  org.eclipse.swt.widgets.TypedListener.handleEvent(Lorg/eclipse/swt/
widgets/Event;)V+1003
J  org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/
widgets/Event;)V
j  org.eclipse.swt.widgets.Widget.sendEvent(Lorg/eclipse/swt/widgets/
Event;)V+25
j  org.eclipse.swt.widgets.Widget.sendEvent(ILorg/eclipse/swt/widgets/
Event;Z)V+73
j  org.eclipse.swt.widgets.Widget.sendEvent(ILorg/eclipse/swt/widgets/
Event;)V+4
j  org.eclipse.swt.widgets.Widget.notifyListeners(ILorg/eclipse/swt/
widgets/Event;)V+19
j  org.eclipse.swt.custom.CTabFolder.setSelection(IZ)V+57
j  org.eclipse.swt.custom.CTabFolder.onMouse(Lorg/eclipse/swt/widgets/
Event;)V+783
j  org.eclipse.swt.custom.CTabFolder$1.handleEvent(Lorg/eclipse/swt/
widgets/Event;)V+215
J  org.eclipse.swt.widgets.EventTable.sendEvent(Lorg/eclipse/swt/
widgets/Event;)V
j  org.eclipse.swt.widgets.Widget.sendEvent(Lorg/eclipse/swt/widgets/
Event;)V+25
j  org.eclipse.swt.widgets.Display.runDeferredEvents()Z+92
j  org.eclipse.swt.widgets.Display.readAndDispatch()Z+69
j  org.eclipse.ui.internal.Workbench.runEventLoop(Lorg/eclipse/jface/
window/Window$IExceptionHandler;Lorg/eclipse/swt/widgets/Display;)V+9
j  org.eclipse.ui.internal.Workbench.runUI()I+555
j  org.eclipse.ui.internal.Workbench.access$4(Lorg/eclipse/ui/internal/
Workbench;)I+1
j  org.eclipse.ui.internal.Workbench$7.run()V+55
j  org.eclipse.core.databinding.observable.Realm.runWithDefault(Lorg/
eclipse/core/databinding/observable/Realm;Ljava/lang/Runnable;)V+12
j  org.eclipse.ui.inter

Multiple modules compilation

2010-11-19 Thread Lechat
Hi there,

we are working on a project where GWT modules are compiled dynamicaly
on application server. In order to improve compile performance we
compile several modules at once using command line compiler like
this :

java -cp  com.google.gwt.dev.Compiler  module-1 module-2 module-3 module-n

This works fine, but issue rises when one module contains compilation
error(s), in that case the whole compilation process exits in the
middle and there are some modules left uncompiled. Is there any way to
force the compilator to continue on the next module even previous
module did not compile successfuly?

Thanks
Petr

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



How to kill a GWT request which has not yet completed

2010-11-19 Thread Sunit Katkar
I Googled and also this group but could not find an answer.

Here is the use case:

1) User enters a value in a textfield and clicks Submit button
2) The GWT RPC request has been sent to the server where it will take some
time to process. (Say 10 or 15 seconds)
3) But before the request can be seviced by the server and and the
onSuccess() is called on the client side, the user needs to do something
else, which requires that this request be killed.

How do you kill a just fired GWT RPC request? We cannot provide a separate
UI button which the user clicks to send a KILL request to the server with a
request id, etc. However, we can allow for 'kill just fired request' code
when user navigates to another part of the screen or does the new action.

Any ideas?

Thanks.

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



Re: CellList -- is prefilled sizing possible?

2010-11-19 Thread Sunit Katkar
We studied the new offerings - CellList, CellTable and find them very
promising and a step in the right direction. However, there are some
customisations which are achieving with FlexTable which cannot be directly
translated to these new widgets. So till a few more GWT releases where these
widgets are made more 'advanced' and 'customizable' it makes no sense for us
to convert to them.

I would wait for a few more releases before making the switch to these new
widgets.

- Sunit Katkar
http://sunitkatkar.blogspot.com/



On Fri, Nov 19, 2010 at 10:42 AM, Johan Rydberg
wrote:

> On 11/19/10 7:31 PM, John LaBanca wrote:
>
>> CellTable/CellList and the pager (RangeChangeHandler) were designed to
>> support infinite scrolling.  We created the version in Showcase as a proof
>> of concept.  It helps to think about the scrolling mechanism (Pager) and the
>> CellTable separately.  The CellTable can display a visible range, which is a
>> subset of the total range.  The Pager determines which range is show.  The
>> trick with infinite scrolling is to correlate the vertical position of the
>> scrollbar (which doesn't have to be the native scrollbar) with a range.
>>
> Yeah, but I was more thinking about the current impl of CellTable, which is
> doing this with
> a standard  element.  To me it seems impossible to add a
> scroll-table around just
> the content of a CellTable.
>
> It would be nice if CellTable could have been split into AbstractCellTable
> and CellTable, where
> CellTable uses -elements and AbstractCellTable really don't care how
> stuff is
> rendered.
>
>
>
> --
> 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.



Re: Handling inbound soap message

2010-11-19 Thread Sunit Katkar
We use SOAP as the means to send messages to and fro from our UI server
(which hosts the GWT application) to our API server.

We are using Apache CXF for creating outbound soap messages from the API
server. On the UI server end, we have generated a client jar from the WSDL
definitions and have installed this jar on the UI server. So the servlets on
the UI server access the data as the java objects which were created on the
API server.

This way, the GWT servlets dont have to deal with marshalling/unmarshalling
XML data. We did this because tomorrow, the requirement may change from SOAP
to something else. I know that XML is neutral but re-inventing what CXF
offers on UI server side to parse/generate XML for to and fro communication
makes unnecessary overhead and custom code.



- Sunit Katkar
http://sunitkatkar.blogspot.com/



On Thu, Nov 18, 2010 at 9:00 AM, Ken  wrote:

> I would like to use GWT in my next project but a non-negotiable
> requirement is the ability to receive an incoming soap message and
> parse through the xml information.  Essentially we are registering to
> be notified of events and the notification is delivered to an endpoint
> you supply (which would be the GWT service) and is a POST of a soap
> message, with a content type of text/xml.
>
> I'm unable to figure a way to allow GWT to receive this message.  I
> have tried to override doPost (like doGet) in my implementation that
> extends RemoteServiceServlet but doPost is final in GWT.   I also
> noticed that for post's GWT expects text/x-gwt-rpc, unfortunately I
> have no control over the service so text/xml is sent.
>
> My hope is that there's a way I can intercept or receive the POST
> within my GWT implementation and then subsequently parse the soap
> message which should just be parsing xml at that point.
>
> Thanks for any suggestions.
>
> --
> 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.



Re: Styling Login Widget

2010-11-19 Thread PhilBeaudoin
I do all my styling using UiBinder and CssResource, with HTMLPanel you
can write all the HTML you need to make your app look perfect. This is
how we did BookedIn:
http://corp.bookedin.net/ (check the live demo)

Cheers,

Philippe

On Nov 18, 5:03 pm, Nicholas  wrote:
> I have the loginWidget in my application, and would like to customize
> the styling.  For instance, bold the email address, and make the sign-
> out link look like a link (blue and underlined).  What is the correct
> way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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.



How does HTML5 change the way we write GWT apps ?

2010-11-19 Thread zixzigma
Hello Everyone,

I have been reading about HTML5, and impressive improvements it
brings.

I was wondering how do you think HTML5 will change the way we write
GWT apps or apps in Java web frameworks in general ?

I personally think whether you developt MVP or MVC,  only the way View
is rendered will be changed,
and the trend is to get more work done on the client. embracing
statelessness, and REST.
more importantly applications are going to be even more interactive
than the way they are today.

do you expect web frameworks provide APIs for taking advantage of
HTML5 ?

What does HTML5 mean for Java Web Development ?




-- 
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: design pattern for common functionality between Activities

2010-11-19 Thread koma
How I understand things, a display region is a dynamic part of a
webpage;

Depending on the place you're at, a display region is populated with a
specific activity.
A activity manager is the manager of a display region and decides the
right activity to show up for a given display region when a certain
page is showing.

So, in terms of your question : a display region can be a dynamic
menu, a sidebar, a logout/login link not the entire group.
An example

page with menu displayregion, maincontent displayregion, sidebar
displayregion

example page #ContactDetailsPage:FooBar
+> sidebar display region will be instructed by the sidebar-
activitymanager to start the activity GrandChildrenActivity (display
grandchildren in side bar)
+> maincontact display region will be instructed by the
maincontentarea-activitymanager to start the activity
ContactDetailsActivity (display contact details in main content area)
+> menu display region will be instructed by the menu-activitymanager
to start the activity MenuActivity (show the menu)

example page #Login
+> sidebar display region will be instructed by the sidebar-
activitymanager to display nothing (NULL)
+> maincontact display region will be instructed by the
maincontentarea-activitymanager to start the activity LoginActivity
(display login page)
+> menu display region will be instructed by the menu-activitymanager
to start the activity WelcomeActivity (show a welcome msg)

etc etc.

So far my understanding.

Koen

-- 
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 MVP ActivityMapper with GIN

2010-11-19 Thread Fabio
Hi,

I solved this problem with the following approach:

1) Create an ActivityFactory superclass.

public abstract class ActivityFactory {
protected abstract Activity create(EventBus eventBus, V view, P
place);

protected ActivityFactory(final EventBus eventBus, final V view) {
eventBus.addHandler(ActivityRequestEvent.TYPE, new
ActivityRequestEvent.Handler() {
@Override
protected Activity createActivity(Place place) {
try {
return create(eventBus, view, (P) 
place);
} catch (ClassCastException e) {
return null;
}
}
});
}
}

2) ActivityFactories will listen to the EventBus for
ActivityRequestEvents.

public class ActivityRequestEvent extends
GwtEvent {
public abstract static class Handler implements EventHandler {
private void onEvent(ActivityRequestEvent e) {
if (!e.isLive())
GWT.log(ActivityRequestEvent.class.getName() + 
" ignored");
else {
e.activity = createActivity(e.place);
if (e.activity!=null)
e.kill();
}
}

protected abstract Activity createActivity(Place place);
}

public final Place place;
private Activity activity;

public ActivityRequestEvent(Place place) {
this.place = place;
}

public Activity getActivity() {
return activity;
}

public static final Type TYPE = new Type();

@Override
public Type getAssociatedType() {
return TYPE;
}

@Override
protected void dispatch(Handler handler) {
handler.onEvent(this);
}

@Override
protected void revive() {
if (activity!=null)
throw new IllegalStateException("Activity already 
resolved, cannot
revive this event!");
super.revive();
}
}

3) Every Activity must provide an inner Factory extending
ActivityFactory. Doing so, every Activity will have an ActivityFactory
listening to ActivityRequestEvents on EventBus.

public class SearchContactsActivity extends AbstractActivity {
private final EventBus eventBus;
private final SearchContactsView view;
private final SearchContactsPlace place;

public SearchContactsActivity(EventBus eventBus, SearchContactsView
view, SearchContactsPlace place) {
this.eventBus = eventBus;
this.view = view;
this.place = place;
}

@Override
public void start(final AcceptsOneWidget panel, EventBus eventBus) {
  // do something
}

public static class Factory extends
ActivityFactory {
@Inject
public Factory(EventBus eventBus, SearchContactsView view) {
super(eventBus, view);
}

@Override
protected Activity create(EventBus eventBus, SearchContactsView
view, SearchContactsPlace place) {
return new SearchContactsActivity(eventBus, view, 
place);
}
}
}

4) At GIN Module, ActivityFactories will be created and passed as
arguments within an ActivityManager singleton call.
Additionally, ActivityMapper fires new ActivityRequestEvent(place) to
the eventBus. If any factory answers this event, ActivityMapper will
have the activity it shold return in its getActivity(place) call.

public class Experience21Module extends AbstractGinModule {
@Override
protected void configure() {
}

@Provides @Singleton
public EventBus eventBus() {
return new SimpleEventBus();
}

@Provides @Singleton
public PlaceController placeController(EventBus eventBus) {
return new PlaceController(eventBus);
}

@Provides @Singleton
public ActivityManager activityManager(final EventBus eventBus,
SearchContactsActivity.Factory searchActivityFactory,
EditContactActivity.Factory editActivityFactory) {
return new ActivityManager(new ActivityMapper() {
@Override
public final Activity getActivity(Place place) {
ActivityRequestEvent event = new 
ActivityRequestEvent(place);
eventBus.fireEvent(event);
return event.getActivity();
}
}, eventBus)

Re: What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread Brett Thomas
Well, have you programmed in java before? If not, learning GWT could be a
nightmare...

Are you planning to combine GWT/jQuery with a drupal/wordpress backend? If
that's the case, I'd say definitely jQuery. GWT is best with single-page
apps like GMail, where you switch between views without a page refresh.
Drupal and Wordpress are not.

Also keep in mind Drupal 7 is already integrated with jQuery and jQuery UI,
and many of the drupal plugins (best part about drupal IMO) use them.

That said, 6 months in, I love GWT, and I'm extremely glad I chose it for my
site.

On Fri, Nov 19, 2010 at 11:41 AM, András Csányi wrote:

> On 19 November 2010 14:31, Jeff Schwartz  wrote:
> > IMO both.
>
> +1
>
> --
> - -
> --  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
> http://facebook.com/andras.csanyi
> --  ""Trust in God and keep your gunpowder dry!" - Cromwell
>
> --
> 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.



Re: Application loads with blank page on Firefox 4 beta 6

2010-11-19 Thread madein
I had the same issue couple of days ago, but as far as I remember, at
that time I was using gwt 2.0.4.
I do not have FF4 installed at home so I can not reporoduce it right
away.
Are you sure it's not a bug in FF?

br/M


On 19 Lis, 09:06, keyvez  wrote:
> I have also filed an issue with GWT on 
> this.http://code.google.com/p/google-web-toolkit/issues/detail?id=5606
>
> I hope I am not the only one with the issue.
>
> On Nov 17, 11:21 pm, keyvez  wrote:
>
> > Hi,
>
> > I think this might be a bug in the new gwt 2.1 sdk. When I create a
> > new web application project in eclipse and compile and run it in web
> > mode on FF4 beta 6, I see a blank page.
>
> > On debugging in firebug, the following errors was thrown:
>
> > reference to undefined property m.external.gwtOnLoad
> > reference to undefined property document.documentMode
>
> > Please help.
>
> > Thanks,

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



Re: GWT MVP ActivityMapper with GIN

2010-11-19 Thread David Chandler
Done.

/dmc

On Fri, Nov 19, 2010 at 7:01 AM, Brian Reilly  wrote:
> This is going to be a recurring question here and the source of much
> frustration for anyone who doesn't ask or read this group. It would be nice
> if someone would update that piece of the documentation.
> -Brian
>
> On Tue, Nov 16, 2010 at 10:35 PM, Ashton Thomas 
> wrote:
>>
>>
>> http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2ed199a42c500156/9cf373ccdbd1b43a
>>
>> "Unfortunately, the mere mention of a need for something does not
>> imply
>> its current availability :-) I wrote the Activities and Places doc and
>> really should have left GIN out of it for the time being."
>>
>>
>> On Nov 16, 10:10 pm, zixzigma  wrote:
>> > from GWT MVP documentation for Activity Mapper:
>> >
>> > "[ActivityMapper] will likely have lots of code like "if (place
>> > instanceof SomePlace) return new SomeActivity(place)". A better way to
>> > implement the chain of nested ifs would be with a GIN module."
>> >
>> > Can someone please provide some tips on how GIN injection can replace
>> > the nested IFs ?
>> >
>> > I am familiar with GIN and have set it up, and use it, but have no
>> > idea how it can be used in this case ?
>> >
>> > http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd...
>> >
>> > 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-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.
>



-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.blogspot.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-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: CellList -- is prefilled sizing possible?

2010-11-19 Thread Johan Rydberg

On 11/19/10 7:31 PM, John LaBanca wrote:
CellTable/CellList and the pager (RangeChangeHandler) were designed to 
support infinite scrolling.  We created the version in Showcase as a 
proof of concept.  It helps to think about the scrolling mechanism 
(Pager) and the CellTable separately.  The CellTable can display a 
visible range, which is a subset of the total range.  The Pager 
determines which range is show.  The trick with infinite scrolling is 
to correlate the vertical position of the scrollbar (which doesn't 
have to be the native scrollbar) with a range.
Yeah, but I was more thinking about the current impl of CellTable, which 
is doing this with
a standard  element.  To me it seems impossible to add a 
scroll-table around just

the content of a CellTable.

It would be nice if CellTable could have been split into 
AbstractCellTable and CellTable, where
CellTable uses -elements and AbstractCellTable really don't care 
how stuff is

rendered.


--
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: CellList -- is prefilled sizing possible?

2010-11-19 Thread John LaBanca
CellTable/CellList and the pager (RangeChangeHandler) were designed to
support infinite scrolling.  We created the version in Showcase as a proof
of concept.  It helps to think about the scrolling mechanism (Pager) and the
CellTable separately.  The CellTable can display a visible range, which is a
subset of the total range.  The Pager determines which range is show.  The
trick with infinite scrolling is to correlate the vertical position of the
scrollbar (which doesn't have to be the native scrollbar) with a range.

Thanks,
John LaBanca
jlaba...@google.com


On Fri, Nov 19, 2010 at 12:42 PM, Johan Rydberg
wrote:

> On 11/18/10 10:32 PM, John LaBanca wrote:
>
>> The scrollbars are a separate widget called ShowMorePagerPanel.  CellList
>> doesn't have scrollbars by default.
>>
>> http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ShowMorePagerPanel.java
>>
>> If you look at the constructor, you'll see that we add a ScrollHandler
>> that modifies the visible Range when the user scrolls.  If you want to
>> implement an infinite scrollbar, you would need to do something similar,
>> which means you need a way to map scroll position to row indexes.  It can be
>> pretty tricky to get it right, but you can probably find a lot of examples
>> online.
>>
> Is it even possible (today) to do this for CellTable ?
>
> --
> 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.



Re: design pattern for common functionality between Activities

2010-11-19 Thread tastic
Is each display region the entire group of things, or are we saying
that a display region is something like the header of the page with a
menu or the footer of the page with links? If each display region is
the entire group, then I understand the concept of going to a new
place for each, which ultimately dictates the view to show. However,
if each display region is an individual component on the page, using
an activity mapper does not make sense. Please advise. Thank you.

On Nov 19, 9:26 am, Thomas Broyer  wrote:
> On 19 nov, 07:03, tastic  wrote:
>
> > I have been reading Thomas Broyer's blog now for a full day and am
> > still having an issue with loading my application. Attached it the
> > EntryPoint. If you can tell me what I might be doing wrong that would
> > be awesome.
>
> No where you add the different SimplePanel instances to your
> LayoutPanel.

-- 
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: CellList -- is prefilled sizing possible?

2010-11-19 Thread Johan Rydberg

On 11/18/10 10:32 PM, John LaBanca wrote:
The scrollbars are a separate widget called ShowMorePagerPanel. 
 CellList doesn't have scrollbars by default.

http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/ShowMorePagerPanel.java

If you look at the constructor, you'll see that we add a ScrollHandler 
that modifies the visible Range when the user scrolls.  If you want to 
implement an infinite scrollbar, you would need to do something 
similar, which means you need a way to map scroll position to row 
indexes.  It can be pretty tricky to get it right, but you can 
probably find a lot of examples online.

Is it even possible (today) to do this for CellTable ?

--
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: Sample App using DI/Gin, MVP, UiBinder, etc

2010-11-19 Thread Brian Reilly
Ashton,

It's good that you're doing this. I think we need some good examples of how
to put together a GWT application using GWT 2.0/2.1 features, GIN, etc.

I took a quick look at some of the code (still planning to look more) and I
have a couple of comments.

* I almost did the same thing as you to get a singleton PlaceController...
creating a provider class and binding PlaceController to that in singleton
scope. I had started out with a simple @Provider method in my GIN module,
but then adding bind(PlaceController.class).in(Singleton.class) was
overriding that. Finally, I found that I could just use a @Singleton
annotation on the method as well, so putting this in my GIN module works
beautifully:

@Provides
@Singleton
PlaceController providePlaceController(EventBus eventBus) {
PlaceController placeController = new PlaceController(eventBus);
return placeController;
}


* I notice that you're injecting instances of your activities into your
activity mapper. Activities are meant to be fairly lightweight objects, as
opposed to the views that represent them, so they don't need to be
singletons (which they effectively are since you have a single app with a
single injected activity mapper). It's probably not necessarily a problem
unless your activities have state associated with them (such as the entity
that the user is currently working with), which you have to be careful to
clear out between uses with different data. The same can be said about
places.

There are probably some flaws with how I'm thinking about activities. I'm
still trying to learn how best to do all of this myself. I'm looking forward
to seeing the finished version of your example.

-Brian

On Thu, Nov 18, 2010 at 10:38 AM, Daghan  wrote:

> Hi Ashton,
>
> Have you figured out a way to pass anything but SimplePanel objects to
> activityManager.setDisplay() function?
>
> I am trying to figure out how to pass
> activityManager.setDisplay(composite)
>
> Thanks.
>
> On Oct 28, 6:52 am, Ashton Thomas  wrote:
> > I will definitely try to post a video. It just puts the pressure on to
> > actually do a good job!
> >
> > Thanks very much,
> > -Ashton
> >
> > On Oct 28, 2:12 am, StrongSteve  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Very nice idea. Thanks a lot for your effort.
> >
> > > Will there be a recording of the seminar for all of us on the other
> > > side of the pond? ;)
> >
> > > Greetings
> > > Stefan
> >
> > > On Oct 28, 4:19 am,AshtonThomas wrote:
> >
> > > > Here is a direct link to the source code:
> http://github.com/ashtonthomas/gwt-seminar
> >
> > > > I will continue to update the code for this site as well as the
> > > > content on this app. Over the next few weeks I will post a lot of
> > > > different sample code.
> >
> > > > Hopefully it will help others get started quicker!
> >
> > > > On Oct 27, 8:16 pm,AshtonThomas wrote:
> >
> > > > > Hey Everyone,
> >
> > > > > I am working on a seminar for GWT 2.1 that will happen in late
> > > > > November. But I will be putting together a lot of sample code. I
> have
> > > > > already pushed one app to github:
> >
> > > > >http://gwt.acrinta.com/
> >
> > > > > I am still working on this, so expect updates
> >
> > > > > Cheers!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-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.



Re: What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread András Csányi
On 19 November 2010 14:31, Jeff Schwartz  wrote:
> IMO both.

+1

-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  ""Trust in God and keep your gunpowder dry!" - Cromwell

-- 
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: What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread Christian Goudreau
I don't really use any jQuery plugins, but you can find some GQuery plugin
here:
http://code.google.com/p/gwtquery-plugins/

but maybe GQuery is / going to support jQueries plugins?

I don't know, but I'm not a big fan of wrapping javascript. It makes my code
harder to test with pure JUnit test. Also, there's plenty of open source gwt
project out there that can do almost anything you're searching for.

Cheers,

On Fri, Nov 19, 2010 at 10:46 AM, ep  wrote:

> btw: how do you use jQuery's plugins with GQuery? I didnt found an API
> so had to integrate jQuery for its plugins, GQuery for better API on
> effects and wrapped the plugins via JSNI, but maybe GQuery is / going
> to support jQueries plugins?
>
> On 19 Nov., 16:41, Christian Goudreau 
> wrote:
> > Personally, I use both with a little distinction, I use GQuery instead of
> > jQuery. GWT and jQuery are two different things to me and can be used in
> > conjunction while making great web application.
> >
> > Cheers,
> >
> > On Fri, Nov 19, 2010 at 10:30 AM, Didier Durand  >wrote:
> >
> >
> >
> > > Hi,
> >
> > > My 2 cents:
> >
> > > a) learning curve for GWT higher than JQuery
> > > b) You can't work efficiently with GWT if you don't master html, http,
> > > javascript anyway...
> > > c) GWT is great because you come back to compile mode: your code is
> > > correct much faster and you don't have to write lots of unit test to
> > > confirm that nothing wrong happens at run time when you change your
> > > app in the more risk env of an interpreted language (js)
> > > d) GWT is also great because you can leverage the best equipped
> > > language in terms of tooling: Java for unit tests (Junit), quality
> > > measurement (findbugs, pmd), code coverage (cobertura), profiling,
> > > etc
> > > e) with GWT, you don't deal with the broswer type at all (at least in
> > > theory...) so you code faster
> > > f) if back-end is java also, you face a single technology for the
> > > client and the server side -> more manageable and simpler to handle by
> > > a single person.
> >
> > > But, I agree with what was said before: the ticket to entry is bigger.
> > > So, probably not suited to a small app.
> >
> > > regards
> >
> > > didier
> >
> > > On Nov 19, 3:34 pm, massimo malvestio 
> > > wrote:
> > > > In my opionion it depends on the complexity of your project.
> > > > If you have to write a webapp / site with a complex interface that it
> has
> > > to
> > > > be feeded with a large amount of data, or you want to reserve the
> > > capability
> > > > to scale, and you have a couple of weeks to study gwt, choose gwt.
> > > > If you have not time enough to learn gwt, or, you don't need to
> manage
> > > > complex data exchange between client and server but you want an eye
> candy
> > > > web gui, learn jquery, it's quite easy to learn and use and you got
> tons
> > > of
> > > > plugins ready to be used.
> > > > I use both of them anyway, because, in my opinion, they are
> > > complementary,
> > > > use the weapon more suitable for the size of your target :-P
> >
> > > --
> > > 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.
> >
> > --
> > Christian Goudreauwww.arcbees.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-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.
>
>


-- 
Christian Goudreau
www.arcbees.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-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: What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread ep
btw: how do you use jQuery's plugins with GQuery? I didnt found an API
so had to integrate jQuery for its plugins, GQuery for better API on
effects and wrapped the plugins via JSNI, but maybe GQuery is / going
to support jQueries plugins?

On 19 Nov., 16:41, Christian Goudreau 
wrote:
> Personally, I use both with a little distinction, I use GQuery instead of
> jQuery. GWT and jQuery are two different things to me and can be used in
> conjunction while making great web application.
>
> Cheers,
>
> On Fri, Nov 19, 2010 at 10:30 AM, Didier Durand 
> wrote:
>
>
>
> > Hi,
>
> > My 2 cents:
>
> > a) learning curve for GWT higher than JQuery
> > b) You can't work efficiently with GWT if you don't master html, http,
> > javascript anyway...
> > c) GWT is great because you come back to compile mode: your code is
> > correct much faster and you don't have to write lots of unit test to
> > confirm that nothing wrong happens at run time when you change your
> > app in the more risk env of an interpreted language (js)
> > d) GWT is also great because you can leverage the best equipped
> > language in terms of tooling: Java for unit tests (Junit), quality
> > measurement (findbugs, pmd), code coverage (cobertura), profiling,
> > etc
> > e) with GWT, you don't deal with the broswer type at all (at least in
> > theory...) so you code faster
> > f) if back-end is java also, you face a single technology for the
> > client and the server side -> more manageable and simpler to handle by
> > a single person.
>
> > But, I agree with what was said before: the ticket to entry is bigger.
> > So, probably not suited to a small app.
>
> > regards
>
> > didier
>
> > On Nov 19, 3:34 pm, massimo malvestio 
> > wrote:
> > > In my opionion it depends on the complexity of your project.
> > > If you have to write a webapp / site with a complex interface that it has
> > to
> > > be feeded with a large amount of data, or you want to reserve the
> > capability
> > > to scale, and you have a couple of weeks to study gwt, choose gwt.
> > > If you have not time enough to learn gwt, or, you don't need to manage
> > > complex data exchange between client and server but you want an eye candy
> > > web gui, learn jquery, it's quite easy to learn and use and you got tons
> > of
> > > plugins ready to be used.
> > > I use both of them anyway, because, in my opinion, they are
> > complementary,
> > > use the weapon more suitable for the size of your target :-P
>
> > --
> > 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.
>
> --
> Christian Goudreauwww.arcbees.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-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: What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread Christian Goudreau
Personally, I use both with a little distinction, I use GQuery instead of
jQuery. GWT and jQuery are two different things to me and can be used in
conjunction while making great web application.

Cheers,

On Fri, Nov 19, 2010 at 10:30 AM, Didier Durand wrote:

> Hi,
>
> My 2 cents:
>
> a) learning curve for GWT higher than JQuery
> b) You can't work efficiently with GWT if you don't master html, http,
> javascript anyway...
> c) GWT is great because you come back to compile mode: your code is
> correct much faster and you don't have to write lots of unit test to
> confirm that nothing wrong happens at run time when you change your
> app in the more risk env of an interpreted language (js)
> d) GWT is also great because you can leverage the best equipped
> language in terms of tooling: Java for unit tests (Junit), quality
> measurement (findbugs, pmd), code coverage (cobertura), profiling,
> etc
> e) with GWT, you don't deal with the broswer type at all (at least in
> theory...) so you code faster
> f) if back-end is java also, you face a single technology for the
> client and the server side -> more manageable and simpler to handle by
> a single person.
>
> But, I agree with what was said before: the ticket to entry is bigger.
> So, probably not suited to a small app.
>
> regards
>
> didier
>
> On Nov 19, 3:34 pm, massimo malvestio 
> wrote:
> > In my opionion it depends on the complexity of your project.
> > If you have to write a webapp / site with a complex interface that it has
> to
> > be feeded with a large amount of data, or you want to reserve the
> capability
> > to scale, and you have a couple of weeks to study gwt, choose gwt.
> > If you have not time enough to learn gwt, or, you don't need to manage
> > complex data exchange between client and server but you want an eye candy
> > web gui, learn jquery, it's quite easy to learn and use and you got tons
> of
> > plugins ready to be used.
> > I use both of them anyway, because, in my opinion, they are
> complementary,
> > use the weapon more suitable for the size of your target :-P
>
> --
> 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.
>
>


-- 
Christian Goudreau
www.arcbees.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-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: What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread ep
i guess jquery would be best for drupal / wordpress to achieve web2.0
effects. I mean GWT can be used just as a cross compiler, i.e. if you
want to build complex OOP driven masterpiece with no widgets and dont
want to pseudo OOP on javascript. so its all about the problem to
solve

wud be good to know your intention? p.s. as for CMS you can also try
vosao :)

On 18 Nov., 18:48, kachaloo  wrote:
> Hi,
> I am currently deciding in which technology should I put more time in
> and learn . I have been working with drupal and wordpress since 4
> months and I like the platforms.
>
> As for the browser side work I am a bit confused whether I should put
> more time in
>
> google web toolkit + drupal  / word press
>
> or
>
> jquery + drupal / wordress
>
> Thank you in advance for sharing your views,
> Kachaloo

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



Is there a way to use i18n in a shared class that works on client and server too?

2010-11-19 Thread nacho
I have some Validators classes. I use those classes in the client
code, so I think to use Constants:

For example, in some part of my AccountValidator I have this:

errors.add(myConstants.accountTypeRequired());

That works great for GWT compiled code. But what about if I need to
use this same validator on the server and I want to send the errors on
a Exception through the rpc service?

How can I handle i18n in a class that I use in server classes and in
client classes?

-- 
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: CellTable column text alignment

2010-11-19 Thread John LaBanca
I created an issue to track this:
http://code.google.com/p/google-web-toolkit/issues/detail?id=5623

I'll try
to get it into GWT 2.1.1, but we're coming down to the wire.

Thanks,
John LaBanca
jlaba...@google.com


On Fri, Nov 19, 2010 at 4:38 AM, Klaus  wrote:

> We have exactly the same problem. Seems this is not possible; same for
> vertical alignment (bottom, middle, top). You can only set one style
> for all columns.
>
>
>
> On 17 Nov., 21:06, Pravin  wrote:
> > Any suggestions on text alignment ?
> >
> > On Nov 11, 9:11 am, Lukas Herman  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Thanks for pointing this out.
> > > This adds class name to colgroup col, where only limited subset of CSS
> > > properties is allowed (http://www.w3.org/TR/CSS2/tables.html#columns).
> > > Unfortunately text-align is ignored when set on  element.
> > > Anyway, addColumnStyleName() requires additional index over added
> > > columns. A typical use case for this scenario is: create table
> > > displaying row data from the database, displaying firstcolumnis ID
> > > number right aligned, nextcolumnis NAME text centered etc..
> > > WhileCellTableAPI defines addColumn(Column), specifying additional
> > > style properties on addedcolumnwould require to maintain
> additionalcolumnindex property to reference currently addedcolumn.
> >
> > > From my point of view thecolumnstyle name is clearly a property
> ofColumnclass.
> >
> > > With regards
> > > Lukas Herman
> >
> > > On 10 lis, 19:36, John LaBanca  wrote:
> >
> > > > Can you useCellTable#addColumnStyleName() to add the text-align
> property to
> > > > the col element for thecolumn?
> >
> > > > Thanks,
> > > > John LaBanca
> > > > jlaba...@google.comon Wed, Nov 10, 2010 at 11:01 AM, Lukas Herman <
> herni...@gmail.com> wrote:
> > > > > Hello,
> > > > > is there any way to set text-align property onCellTablecolumn? The
> > > > > currentCellTablecode allows only static cellStyle to be applied to
> > > > > tdClasses.
> > > > > I would expect an optionalColumnclass cellStyle property, which
> > > > > would be appended to tdClasses during rendering.
> >
> > > > > --
> > > > > 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 cr...@googlegroups.com>
> > > > > .
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-web-toolkit?hl=en.-Hidequoted 
> > > > >text -
> >
> > > - Show quoted text -
>
> --
> 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.



Re: What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread Didier Durand
Hi,

My 2 cents:

a) learning curve for GWT higher than JQuery
b) You can't work efficiently with GWT if you don't master html, http,
javascript anyway...
c) GWT is great because you come back to compile mode: your code is
correct much faster and you don't have to write lots of unit test to
confirm that nothing wrong happens at run time when you change your
app in the more risk env of an interpreted language (js)
d) GWT is also great because you can leverage the best equipped
language in terms of tooling: Java for unit tests (Junit), quality
measurement (findbugs, pmd), code coverage (cobertura), profiling,
etc
e) with GWT, you don't deal with the broswer type at all (at least in
theory...) so you code faster
f) if back-end is java also, you face a single technology for the
client and the server side -> more manageable and simpler to handle by
a single person.

But, I agree with what was said before: the ticket to entry is bigger.
So, probably not suited to a small app.

regards

didier

On Nov 19, 3:34 pm, massimo malvestio 
wrote:
> In my opionion it depends on the complexity of your project.
> If you have to write a webapp / site with a complex interface that it has to
> be feeded with a large amount of data, or you want to reserve the capability
> to scale, and you have a couple of weeks to study gwt, choose gwt.
> If you have not time enough to learn gwt, or, you don't need to manage
> complex data exchange between client and server but you want an eye candy
> web gui, learn jquery, it's quite easy to learn and use and you got tons of
> plugins ready to be used.
> I use both of them anyway, because, in my opinion, they are complementary,
> use the weapon more suitable for the size of your target :-P

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



groups.google.com pagerank seems off

2010-11-19 Thread KaffeineComa
Often when googling for various GWT-related issues I get results that
point to the site osdir.com.  Apparently this site scrapes the GWT
group for its content, which it then surrounds with various ads. It's
slow to load and hard to read (the content column is rather small in
comparison to the ads).

Why does this site come up ahead of groups.google.com? Here's an
example:

http://www.google.com/search?client=safari&rls=en&q=gwt+safari+crash&ie=UTF-8&oe=UTF-8

When I try this search I get an osdir.com link, as well as www.mail-archive.com
link right on the first page of results. However groups.google.com
doesn't even appear in the first 3 pages! It seems very odd that the
original content gets leap-frogged by these sites that feed off of it.
I'm sure this happens to many other Google Groups, and perhaps this
isn't the best forum to bring this up, but something is off, and I
hope that it can be addressed.

Thanks

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



Re: RootLayoutPanel strange code using MVP

2010-11-19 Thread david
Thanks Thomas.  This is clear now.

On Nov 19, 9:20 am, Thomas Broyer  wrote:
> On 18 nov, 22:40, david  wrote:
>
>
>
> > On Nov 18, 12:42 pm, Thomas Broyer  wrote:
>
> > > If I understand you correctly, you'd like to have a glasspanel above
> > > the "previous activity" while the "new one" starts? (until it calls
> > > AcceptsOneWidget#setWidget to "reveal" itself) ?
> > > IMO you should do this on your AcceptsOneWidget itself, not from
> > > within your activities:
> > > final SimplePanel realDisplay = new SimplePanel();
> > > myActivitymanager.setDisplay(new AcceptsOneWidget {
> > >     public void setWidget(IsWidget w) {
> > >         if (w == null) {
> > >            // show a glass panel
> > >         } else {
> > >            // hide the glass panel, then:
> > >            realDisplay.setWidget(x);
> > >         }
> > >     }
>
> > > });
>
> > This looks like a good example for a basic dialog not a separate
> > activity that needs to be render its view in a glasspanel.   So let me
> > try an give a better example.
>
> > There are actually two scenarios  which I believe the invocation of
> > showWidgetr(null) in myActivityManager.onPlaceChange(.. )  trips me
> > up.
>
> > Scenario 1) Consider an app with a dozen or more independent
> > Activities.  Let's say one of these independent activities will
> > manifest in a popup ( layer.. glasspanel... ).  This is not a simple
> > dialog but an independent activity and it may appear above any of the
> > other activity places in the app.  Using the pattern described inMVP
> > part I or part II  this was fairly straightforward because the widget
> > representing the container was not touched until the Presenter
> > responsible for rendering itself as a glass panel was ready to
> > initialize its view.    However with the latest mcv 2.1 framework ,
> > the container is cleared as a result of the request to go to the new
> > place .  See show showWidgetr(null) in
> > myActivityManager.onPlaceChange(.. ) .  As a result, the glasspanel
> > renders over a blank page.
>
> If you ActivityManager's Display always displays a glasspanel over the
> previous activity when called as setWidget(null), then I guess you
> won't have the problem.
> You could have a problem however if this ActivityManager's could
> receive 'null' values because there's no activity returned by the
> associated ActivityMapper; but I'm pretty sure that wouldn't happen in
> your case, and you could workaround this by having your ActivityMapper
> return a NullActivity instead that calls setWidget(new IsWidget()
> { public Widget asWidget() { return null; }) (because in the code I
> gave, you only test w==null, not Widget.asWidgetOrNull(w)==null, so
> there's a difference between a null IsWidget and an IsWidget that
> returns a null Widget).
>
> > Scenario 2) Consider  View1 in Activity1 with a goToActivity2
> > button.   Activity2 makes a fairly long ,  albeit async,  rpc call so
> > a progress indicator is required.  In addition , the View2 served by
> > Activity2 has nothing interesting on it except for  the data coming
> > back from the async rpc call.    Therefore it would be better to show
> > the progress indicator on View1's goToActivity2 button.     Using the
> > pattern described inMVPpart I or part II  one would simply call the
> > container.setWigdet(view2)  in the onSuccess method of the RPC
> > call.      However with the latest mcv 2.1 framework , the container
> > is cleared as a result of the request to go to the new place .  See
> > show showWidgetr(null) in myActivityManager.onPlaceChange(.. ) .  As a
> > result,  View1 clears immediately and an blank page is shown  until
> > the rpc comes back in Activity2.
>
> Again, using the code I gave (minus the glass panel, but still special-
> casing 'null'), you wouldn't have the problem, and it's the
> responsibility of Activity1/View1 to display the indicator in the
> button.

-- 
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 can I truncate an image before upload

2010-11-19 Thread Ice13ill
Well, i haven't found a library yet... If someone knows one, please
let me know.

On Nov 19, 4:44 pm, ep  wrote:
> before HTML5 its not possible in javascript to transform images, but
> you can ask google, if found library you can simply use it within GWT.
> Elsewise, just get your image uploaded - and transform it on the
> server
>
> On 19 Nov., 15:35, Ice13ill  wrote:
>
>
>
>
>
>
>
> > Well, I was thinking about creating a temp copy of the image, scale it
> > and upload the new image.
> > But i don't want to use other technologies (Java applet or JavaFx).
> > Other gwt libraries are ok.
>
> > On Nov 19, 4:16 pm, Didier Durand  wrote:
>
> > > Hi,
>
> > > GWT translate Java to Javascript to run on the client side.
>
> > > This javascript is then in the usual sandbox preventing access to pc
> > > files: I would say that what you want to achieve is not possible
> > > because of this js architecture unless you go to very special tricks
> > > requiring additional component. 
> > > Seehttp://www.baconbutty.com/blog-entry.php?id=29
>
> > > didier
>
> > > On Nov 19, 3:07 pm, Ice13ill  wrote:
>
> > > > Is it possible to resize an image (thus creating an image with a
> > > > smaller size) using GWT?
> > > > Let's say i have a 5Mb picture, but before i upload it to the server i
> > > > want to automatically resize it to be smaller that 1Mb
> > > > How can i do that ?

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



Re: gwt-dnd

2010-11-19 Thread ALEXEI BARBONI
Thank you for the reply

I found the answer.
When I call makeDraggable method I can pass 2 parameters. One is the
Draggable widget and the other one is the child "part" of the widget to drag
and drop.

Thanks

2010/11/9 ciosbel 

> Of course it is possible.
> See live demos
> http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragAndDropDemo/DragAndDropDemo.html
> The demo 8 should tell you how (see java sources).
>
> I think you have to tell the drag controller to make a given panel
> draggable by a given child.
> i.e.
>
> // make the panel draggable by its header
> dragController.makeDraggable(verticalPanel, header);
>
> Hope that helps.
>
> On Nov 9, 2:03 am, Alexei Telles  wrote:
> > Hi Everybody
> >
> > I need some drag and drop's in my application.
> > Searching GWT group I found gwt-dnd.
> >
> > I tried some examples and works fine.
> >
> > But I need to be able to drag and drop a widget that will contain some
> > textboxes, buttons, hyperlinks, etc...
> >
> > I am a little confuse.
> > Is possible to make this with gwt-dnd?
> >
> > The way I did following some examples when I click in a textbox, or a
> > button, etc...inside the dragable widget, the textbox does note get
> > the focus.
> >
> > Any advice?
> >
> > 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-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.



Re: problem while saving entity with collection while using RequestFactory :"sideEffects":{"DELETE"

2010-11-19 Thread will0
Hi

I'm having the same problem. I have a class named Survey which
contains a list of SurveyReplicates (see code below).  My app edits
both the Survey and the SurveyReplicates then sends the whole lot to
the server.

@Entity
public class Survey {
.

@OneToMany(mappedBy="survey", fetch=FetchType.EAGER)
public List getSurveyReplicates() {
return surveyReplicates;
}
}

Much like the OP, when persist is called on the parent object Survey,
none of the survey replicates are persisted.  A little debugging shows
that none of the updates arrive in the SurveyReplicates in the
persist() method on Survey, however the JSON sent to the server
contains the updates to the SurveyReplicates.  Updates to the Survey
do arrive.

I wonder if anyone could tell me if persisting object graphs with one-
to-many relationships is supported?
I'm using GWT tip-of-trunk, but saw the same behaviour in 2.1.0.

Thanks

Will Temperley


On Nov 11, 2:49 pm, agi  wrote:
> Hello,
>
> I've started to useRequestFactoryin my project, but I have following
> problem.
>
> I have  Classes
>
> class Professor
> {
> @ManyToMany(...)
>  List subjects;
> ///setters getters etc
>
> }
>
> I  have created all needed architecture (Proxys, Requests etc)
>
> In my application I do :
> 1) I am fetching List of all Subjects  from the database.
>  final SubjectRequest request =requestFactory.subjectRequest();
>   request.findAll().fire( new Receiver>() ...
>
> It works just fine.
>
> 2) Then I am creating new instance of Professor
>
>       request =requestFactory.professorRequest();
>       professor = request.create( ProfessornProxy.class );
>      professor.setSubjects(new ArrayList());
>
>      // subject is taken from the list which was downloaded before
>     professor.getSubjects().add(subject);
>
> 3) then i want to save it into database
>
> request.save().using( professor ).fire( new Receiver() ...
>
> 4) Unfortunately the list of subjects isn't propagated to the server
> side.. When I look on Professor class in the debug on the server side
> I see only empty array. So the  Professor is saved into database but
> without any dependencies to Subjects
>
> Besides on FireBug console in POST Responce I see message
>
> {"result":null,"sideEffects":{"DELETE":[{"!
> id":"org.test.subjectpr...@185"}]},"related":{}}
>
> Can somebody tell me what I am doing wrong? and how to save Professor
> class properly with all lists?
> I have also tried to use with("subjects") but it didn't help..
>
> greetings,
> agata

-- 
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 can I truncate an image before upload

2010-11-19 Thread ep
before HTML5 its not possible in javascript to transform images, but
you can ask google, if found library you can simply use it within GWT.
Elsewise, just get your image uploaded - and transform it on the
server

On 19 Nov., 15:35, Ice13ill  wrote:
> Well, I was thinking about creating a temp copy of the image, scale it
> and upload the new image.
> But i don't want to use other technologies (Java applet or JavaFx).
> Other gwt libraries are ok.
>
> On Nov 19, 4:16 pm, Didier Durand  wrote:
>
> > Hi,
>
> > GWT translate Java to Javascript to run on the client side.
>
> > This javascript is then in the usual sandbox preventing access to pc
> > files: I would say that what you want to achieve is not possible
> > because of this js architecture unless you go to very special tricks
> > requiring additional component. 
> > Seehttp://www.baconbutty.com/blog-entry.php?id=29
>
> > didier
>
> > On Nov 19, 3:07 pm, Ice13ill  wrote:
>
> > > Is it possible to resize an image (thus creating an image with a
> > > smaller size) using GWT?
> > > Let's say i have a 5Mb picture, but before i upload it to the server i
> > > want to automatically resize it to be smaller that 1Mb
> > > How can i do that ?

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



Re: How can I truncate an image before upload

2010-11-19 Thread Ice13ill
Well, I was thinking about creating a temp copy of the image, scale it
and upload the new image.
But i don't want to use other technologies (Java applet or JavaFx).
Other gwt libraries are ok.

On Nov 19, 4:16 pm, Didier Durand  wrote:
> Hi,
>
> GWT translate Java to Javascript to run on the client side.
>
> This javascript is then in the usual sandbox preventing access to pc
> files: I would say that what you want to achieve is not possible
> because of this js architecture unless you go to very special tricks
> requiring additional component. 
> Seehttp://www.baconbutty.com/blog-entry.php?id=29
>
> didier
>
> On Nov 19, 3:07 pm, Ice13ill  wrote:
>
>
>
>
>
>
>
> > Is it possible to resize an image (thus creating an image with a
> > smaller size) using GWT?
> > Let's say i have a 5Mb picture, but before i upload it to the server i
> > want to automatically resize it to be smaller that 1Mb
> > How can i do that ?

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



Re: What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread massimo malvestio
In my opionion it depends on the complexity of your project.
If you have to write a webapp / site with a complex interface that it has to
be feeded with a large amount of data, or you want to reserve the capability
to scale, and you have a couple of weeks to study gwt, choose gwt.
If you have not time enough to learn gwt, or, you don't need to manage
complex data exchange between client and server but you want an eye candy
web gui, learn jquery, it's quite easy to learn and use and you got tons of
plugins ready to be used.
I use both of them anyway, because, in my opinion, they are complementary,
use the weapon more suitable for the size of your target :-P

-- 
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: design pattern for common functionality between Activities

2010-11-19 Thread Thomas Broyer


On 19 nov, 07:03, tastic  wrote:
> I have been reading Thomas Broyer's blog now for a full day and am
> still having an issue with loading my application. Attached it the
> EntryPoint. If you can tell me what I might be doing wrong that would
> be awesome.

No where you add the different SimplePanel instances to your
LayoutPanel.

-- 
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: RootLayoutPanel strange code using MVP

2010-11-19 Thread Thomas Broyer


On 18 nov, 22:40, david  wrote:
> On Nov 18, 12:42 pm, Thomas Broyer  wrote:
>
> > If I understand you correctly, you'd like to have a glasspanel above
> > the "previous activity" while the "new one" starts? (until it calls
> > AcceptsOneWidget#setWidget to "reveal" itself) ?
> > IMO you should do this on your AcceptsOneWidget itself, not from
> > within your activities:
> > final SimplePanel realDisplay = new SimplePanel();
> > myActivitymanager.setDisplay(new AcceptsOneWidget {
> >     public void setWidget(IsWidget w) {
> >         if (w == null) {
> >            // show a glass panel
> >         } else {
> >            // hide the glass panel, then:
> >            realDisplay.setWidget(x);
> >         }
> >     }
>
> > });
>
> This looks like a good example for a basic dialog not a separate
> activity that needs to be render its view in a glasspanel.   So let me
> try an give a better example.
>
> There are actually two scenarios  which I believe the invocation of
> showWidgetr(null) in myActivityManager.onPlaceChange(.. )  trips me
> up.
>
> Scenario 1) Consider an app with a dozen or more independent
> Activities.  Let's say one of these independent activities will
> manifest in a popup ( layer.. glasspanel... ).  This is not a simple
> dialog but an independent activity and it may appear above any of the
> other activity places in the app.  Using the pattern described in MVP
> part I or part II  this was fairly straightforward because the widget
> representing the container was not touched until the Presenter
> responsible for rendering itself as a glass panel was ready to
> initialize its view.    However with the latest mcv 2.1 framework ,
> the container is cleared as a result of the request to go to the new
> place .  See show showWidgetr(null) in
> myActivityManager.onPlaceChange(.. ) .  As a result, the glasspanel
> renders over a blank page.

If you ActivityManager's Display always displays a glasspanel over the
previous activity when called as setWidget(null), then I guess you
won't have the problem.
You could have a problem however if this ActivityManager's could
receive 'null' values because there's no activity returned by the
associated ActivityMapper; but I'm pretty sure that wouldn't happen in
your case, and you could workaround this by having your ActivityMapper
return a NullActivity instead that calls setWidget(new IsWidget()
{ public Widget asWidget() { return null; }) (because in the code I
gave, you only test w==null, not Widget.asWidgetOrNull(w)==null, so
there's a difference between a null IsWidget and an IsWidget that
returns a null Widget).

> Scenario 2) Consider  View1 in Activity1 with a goToActivity2
> button.   Activity2 makes a fairly long ,  albeit async,  rpc call so
> a progress indicator is required.  In addition , the View2 served by
> Activity2 has nothing interesting on it except for  the data coming
> back from the async rpc call.    Therefore it would be better to show
> the progress indicator on View1's goToActivity2 button.     Using the
> pattern described in MVP part I or part II  one would simply call the
> container.setWigdet(view2)  in the onSuccess method of the RPC
> call.      However with the latest mcv 2.1 framework , the container
> is cleared as a result of the request to go to the new place .  See
> show showWidgetr(null) in myActivityManager.onPlaceChange(.. ) .  As a
> result,  View1 clears immediately and an blank page is shown  until
> the rpc comes back in Activity2.

Again, using the code I gave (minus the glass panel, but still special-
casing 'null'), you wouldn't have the problem, and it's the
responsibility of Activity1/View1 to display the indicator in the
button.

-- 
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 can I truncate an image before upload

2010-11-19 Thread Didier Durand
Hi,

GWT translate Java to Javascript to run on the client side.

This javascript is then in the usual sandbox preventing access to pc
files: I would say that what you want to achieve is not possible
because of this js architecture unless you go to very special tricks
requiring additional component. See 
http://www.baconbutty.com/blog-entry.php?id=29

didier

On Nov 19, 3:07 pm, Ice13ill  wrote:
> Is it possible to resize an image (thus creating an image with a
> smaller size) using GWT?
> Let's say i have a 5Mb picture, but before i upload it to the server i
> want to automatically resize it to be smaller that 1Mb
> How can i do that ?

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



How can I truncate an image before upload

2010-11-19 Thread Ice13ill
Is it possible to resize an image (thus creating an image with a
smaller size) using GWT?
Let's say i have a 5Mb picture, but before i upload it to the server i
want to automatically resize it to be smaller that 1Mb
How can i do that ?

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



Re: Plans for GWT incubator

2010-11-19 Thread Gilles B
Thank you for this update, this is a good news.

I Just want to point ou that not only the PagingScrollTable is
necessary but the basic ScrollTable Too!

The current and new CellTable can't replace this one (no resize, no
fixed/min/max col size, difficulities to define various cell styles
and to manage content. eg. disable a button in a cell, manage a set of
buttons depending on row state inside a DeckPanel -to manage a
changing status- or display any GWT Widget in a cell). The key is the
capacity to assign any Widget in a Cell rather than defining a new
Cell type for each different case with specific html renderer.

Gilles.

On 17 nov, 19:57, John LaBanca  wrote:
> *If you do not use the GWT incubator, you can ignore this email.*
>
> GWT Community -
>
> The plan for the GWT incubator is to replace PagingScrollTable with
> Enterprise CellTable in GWT 2.2 (hopefully Q1 2011), then deprecate and stop
> supporting incubator for future GWT releases.  Our hope is that we can focus
> on new widgets and features that improve and replace the incubator widgets.
>
> Many of the Widgets and features implemented in incubator have already been
> moved to GWT trunk.  The main exception is PagingScrollTable, which has wide
> use even as it is becoming outdated.  We are working on an Enterprise
> version of CellTable that will support all of the important features
> PagingScrollTable such as inline scrolling, fixed width columns, column
> resizing, and multiline headers.  Combined with the speed of Cells,
> Enterprise CellTable will have a cleaner API and better performance.
>
> There are still some features and Widgets in incubator, such as SliderBar
> and ProgressBar, that we do not plan to move to GWT trunk immediately.  As
> we expand our Widget library, we will eventually add these to GWT.  In the
> meantime, we generally avoid making breaking changes that would cause these
> Incubator widgets (or any widgets) to stop working.
>
> You can download a version of GWT incubator that is compatible with GWT
> 2.1.0 
> here:http://code.google.com/p/google-web-toolkit-incubator/wiki/Downloads?...
>
> Thanks,
> John LaBanca
> jlaba...@google.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-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: Request order

2010-11-19 Thread ep
actually, its concern of a client to chain the requests, as only it
knows in which order the requests are initiated. actually, your user
shall not be available to execute instructions in parallel, so your
button has to be disabled until previous calculation (server response)
has been returned.

again, you may want to have a look at gwt-dispatch project. they
implement Command Pattern with easy undo support, and chaining. the
latter would help if you dont want to disable your button whilst
processing results, so the requests are just queued in order they are
requested and processed sequentially, each based on the result from
the other...

On 19 Nov., 14:36, Stefan Bachert  wrote:
> Hi,
>
> for me undo is just a replay of the transitions in the opposite order.
> So in this context "replay" is just the direction independant term of
> undo/redo.
>
> Using a key logger is an other kind of "replay" which is not my case.
>
> Any transition runs in a transaction.
>
> SN alone is not sufficient. Consider the user clicks 2 buttons
> quickly.
> button a = method which add a number, say 4
> button b = method which multiply a number, say 4.
>
> The order must preserved because the result depends on it.
> a,b : 0 + 4 = 4; 4*4 = 16;
> b,a : 0 * 4 = 0; 0 + 4 = 4;
>
> You could only hold undo/redo state in client in very simple cases.
> In common only the server side has enough access to the needed data.
> In addition security aspects forces the undo/redo sequence to be on
> the server side,
>
> Meanwhile I send an SN with any request and force the order the
> request.
> (Still wondering what will happen when the app needs to run on
> multiple servers, OK, not a GWT topic)
>
> Stefan Bacherthttp://gwtworld.de
>
> On 18 Nov., 17:34, Jeff Chimene  wrote:
>
> > On Thu, Nov 18, 2010 at 9:18 AM, Stefan Bachert 
> > wrote:
>
> > > Hi,
>
> > > I am doing undo/redo. Therefore it is mandatory to handle all requests
> > > on the server in the same order to be able to replay it
>
> > There are two issues here:
>
> > undo/redo
> > replay
>
> > They are different.
>
> > Setting aside transaction semantics (commit/rollback) since you're probably
> > not interested in implementing that, undo/redo can be performed by attaching
> > a sequence number per write to the server, keeping that SN in undo/redo
> > stacks on the client, manipulating the stacks as appropriate.
>
> > replay requires a keystroke logger.
>
> > Do you really need to interact with the server for such a 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.



Re: eclipse crash bum bang

2010-11-19 Thread Stefan Bachert
Hi,

i was using eclipse 3.5 (JEE) with GWT 2.04, Ubuntu. The crash happens
after updating to GWT 2.1
The effects are crasy. Suddenly eclipse do not know java.lang.String
anymore.
Images are showing crasy patterns.

Meanwhile I downloaded eclipse 3.6 plus GWT 2.1. At the moment, it
works.  Due to my earlier experiences, it is a matter of time, until
the next crash will happen.

Stefan Bachert
http://gwtworld.de



On 15 Nov., 17:22, Sunit Katkar  wrote:
> Which version of Eclipse are you using? On which OS?
>
> I have been using Eclipse 3.6 Helios with JDK 1.6 update 21 (with the patch
> from Oracle) with GWT 2.1 (earlier GWT2.0.4) and have not experienced any
> crash.
>
> What exactly happens when you see the crash?
>
> - Sunit Katkarhttp://sunitkatkar.blogspot.com/
>
> On Mon, Nov 15, 2010 at 7:18 AM, Stefan Bachert wrote:
>
> > Hi,
>
> > it happens again (see topic and other weird modication of the
> > projects) and it is very frustrating.
>
> > Are Netbeans or IntelliJ a real alternative to eclipse?
> > What are your experiences?
>
> > Stefan Bachert
> >http://gwtworld.de
>
> > P.S: I am using SVN, GWT and JPA at the moment
>
> > --
> > 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.



Re: google plugin error

2010-11-19 Thread Frank Bølviken
And btw... thats just not a valid answer to come up with. Thats
exactly what I have done.. how can you screw up 4 steps in a wizard?:P

On 15 Nov, 10:23, Didier Durand  wrote:
> Hi,
>
> For more info onWebAppCreator, 
> seehttp://code.google.com/webtoolkit/doc/1.6/tutorial/create.html
>
> If you want help about your issue, I guess that you have to post your
> java stack trace at time of error
>
> regards
> didier
>
> On Nov 15, 8:40 am, Frank Bølviken  wrote:
>
>
>
>
>
>
>
> > Any ideas?
>
> > On 13 Nov, 08:43, Frank Bølviken  wrote:
>
> > > Hello,
>
> > > When I try to create a project with the plugin in eclipse, I get an
> > > "invocationof com.Google.gwt...WebAppCreatorfailed". Anyone know
> > > what this mean? On my win 7 64bit laptop its working, but not my win 7
> > > 64bit desktop.
>
> > > Frank

-- 
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: google plugin error

2010-11-19 Thread Frank Bølviken
Where do I find this error..? :P It only says "see error log". Does
eclipse have its own error-log somewhere?

On 15 Nov, 10:23, Didier Durand  wrote:
> Hi,
>
> For more info onWebAppCreator, 
> seehttp://code.google.com/webtoolkit/doc/1.6/tutorial/create.html
>
> If you want help about your issue, I guess that you have to post your
> java stack trace at time of error
>
> regards
> didier
>
> On Nov 15, 8:40 am, Frank Bølviken  wrote:
>
>
>
>
>
>
>
> > Any ideas?
>
> > On 13 Nov, 08:43, Frank Bølviken  wrote:
>
> > > Hello,
>
> > > When I try to create a project with the plugin in eclipse, I get an
> > > "invocationof com.Google.gwt...WebAppCreatorfailed". Anyone know
> > > what this mean? On my win 7 64bit laptop its working, but not my win 7
> > > 64bit desktop.
>
> > > Frank

-- 
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: error when creating first web app

2010-11-19 Thread Frank Bølviken
I have the exact same problem.. and seems like nobody knows what the
issue may be :(
It works on my laptop, but not my desktop.

On 17 Nov, 21:56, Rajeev Dayal  wrote:
> Is there anything else in the Error log? Do you see any sub-entries of any
> of the error entries?
>
>
>
>
>
>
>
> On Tue, Nov 9, 2010 at 4:19 AM, Emanhossny  wrote:
> > Hello All,
> > i installed GWT as a plugin i Eclipse.
> > I have jdk 1.6
> > When i created the first web application
> > the following error appears:
> > Java Model Exception: Core Exception [code 0] Invocation of
> > com.google.gwt.user.tools.WebAppCreator failed. See the error log for
> > more details.
> >        at
>
> > org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperatio 
> > n.java:
> > 50)
> >        at
>
> > org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.jav 
> > a:
> > 728)
> >        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
> > 1800)
> >        at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
> >        at
>
> > org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchR 
> > unnableAdapter.java:
> > 106)
> >        at org.eclipse.jface.operation.ModalContext
> > $ModalContextThread.run(ModalContext.java:121)
> > Caused by: org.eclipse.core.runtime.CoreException: Invocation of
> > com.google.gwt.user.tools.WebAppCreator failed. See the error log for
> > more details.
> >        at
>
> > com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.create 
> > Project(WebAppProjectCreatorRunner.java:
> > 53)
> >        at
>
> > com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject( 
> > WebAppProjectCreator.java:
> > 532)
> >        at
>
> > com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProj 
> > ectCreator.java:
> > 294)
> >        at
>
> > com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewW 
> > ebAppProjectWizard.java:
> > 147)
> >        at org.eclipse.jdt.internal.ui.wizards.NewElementWizard
> > $2.run(NewElementWizard.java:116)
> >        at
>
> > org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperatio 
> > n.java:
> > 39)
> >        at
>
> > org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.jav 
> > a:
> > 728)
> >        at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:
> > 1800)
> >        at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694)
> >        at
>
> > org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchR 
> > unnableAdapter.java:
> > 106)
> >        at org.eclipse.jface.operation.ModalContext
> > $ModalContextThread.run(ModalContext.java:121)
> > !SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2010-11-09 10:48:05.687
> > !MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed.
> > See the error log for more details.
>
> > --
> > 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 > cr...@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.



Re: Request order

2010-11-19 Thread Stefan Bachert
Hi,

for me undo is just a replay of the transitions in the opposite order.
So in this context "replay" is just the direction independant term of
undo/redo.

Using a key logger is an other kind of "replay" which is not my case.

Any transition runs in a transaction.

SN alone is not sufficient. Consider the user clicks 2 buttons
quickly.
button a = method which add a number, say 4
button b = method which multiply a number, say 4.

The order must preserved because the result depends on it.
a,b : 0 + 4 = 4; 4*4 = 16;
b,a : 0 * 4 = 0; 0 + 4 = 4;

You could only hold undo/redo state in client in very simple cases.
In common only the server side has enough access to the needed data.
In addition security aspects forces the undo/redo sequence to be on
the server side,

Meanwhile I send an SN with any request and force the order the
request.
(Still wondering what will happen when the app needs to run on
multiple servers, OK, not a GWT topic)

Stefan Bachert
http://gwtworld.de


On 18 Nov., 17:34, Jeff Chimene  wrote:
> On Thu, Nov 18, 2010 at 9:18 AM, Stefan Bachert wrote:
>
> > Hi,
>
> > I am doing undo/redo. Therefore it is mandatory to handle all requests
> > on the server in the same order to be able to replay it
>
> There are two issues here:
>
> undo/redo
> replay
>
> They are different.
>
> Setting aside transaction semantics (commit/rollback) since you're probably
> not interested in implementing that, undo/redo can be performed by attaching
> a sequence number per write to the server, keeping that SN in undo/redo
> stacks on the client, manipulating the stacks as appropriate.
>
> replay requires a keystroke logger.
>
> Do you really need to interact with the server for such a 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.



Re: GWT client-side thread or asynchronous call ?

2010-11-19 Thread Jeff Schwartz
It can be done client side as a previous poster said using a timer with a
callback but first he should run Speed Tracer to  determine why the code he
has now is bogging down the client.

Jeff

On Thu, Nov 18, 2010 at 12:23 PM, bjv  wrote:

> On Nov 18, 8:09 am, MickeyR  wrote:
> > Is there anything similar to using java threads that I can use in my
> > client side code ?
>
> I can't think of any portable ways to do this. The only way you can
> get the behavior you want that I can think of is to create a browser
> plugin (like a firefox protocol handler) that you can issue gwt's
> async requests to.  In essence, the local plugin looks like a remote
> site to your application. It will look like an ajax type request from
> your gwt code's perspective, however the handling of the search
> request/etc will all run in the plug-in/protocol handler. And of
> course, if you are loading your app from a server somewhere, you'll
> have the browser's same origin policy issues that you will have to
> solve (unless you load your gwt app from your plugin as well).
>
> --
> 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.
>
>


-- 
*Jeff Schwartz*

-- 
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: What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread Jeff Schwartz
IMO both.

On Thu, Nov 18, 2010 at 12:48 PM, kachaloo wrote:

> Hi,
> I am currently deciding in which technology should I put more time in
> and learn . I have been working with drupal and wordpress since 4
> months and I like the platforms.
>
> As for the browser side work I am a bit confused whether I should put
> more time in
>
> google web toolkit + drupal  / word press
>
>
> or
>
> jquery + drupal / wordress
>
>
> Thank you in advance for sharing your views,
> Kachaloo
>
> --
> 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.
>
>


-- 
*Jeff Schwartz*

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



JDO - Exception converting b3Bva2.... to an internal key.

2010-11-19 Thread tito100
Hi all,
I have problem with get class from JDO .
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Parcel implements Serializable{
@NotPersistent
public static byte NUM_CELLS = 125;
@NotPersistent
public static byte NUM_ROWS = 125;
@PrimaryKey
@Persistent
private String key;
@Persistent
private byte columnPos;
@Persistent
private byte rowPos;
@Persistent
private Key[] players;

public Parcel(byte column,byte row){
this.key = createKey(column, row);
}

public static String createKey(short column,short row){
return 
(KeyFactory.createKeyString(Parcel.class.getSimpleName(),1+
((column+(column*124))+row+1) ));
}
..

I save this object like this :
Parcel parcel = new Parcel(0, 0);
PersistenceManager pm = PMF.get().getPersistenceManager();
pm.makePersistent(parcel);
System.out.println("KEY : " + parcel.getKey());
pm.close();

output is : "KEY : aglwb3Bva2VjYWxyDAsSBlBhcmNlbBgCDA"
when I looking to datastore admin , then key in this object is
"aglwb3Bva2VjYWxyLgsSBlBhcmNlbCIiYWdsd2IzQnZhMlZqWVd4eURBc1NCbEJoY21ObGJCZ0NEQQw"

when I wont load it like this :
PersistenceManager pm = PMF.get().getPersistenceManager();
try {
parcel = pm.getObjectById(Parcel.class, Parcel.createKey(column,
row));
}finally{
pm.close();
}

then output is :
[ERROR] javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract com.game.render.floor.Cell
com.registration.RegistrationService.getCell(short,short)' threw an
unexpected exception: javax.jdo.JDOFatalUserException: Exception
converting aglwb3Bva2VjYWxyDAsSBlBhcmNlbBgCDA to an internal key.
NestedThrowables:
org.datanucleus.store.appengine.FatalNucleusUserException: Received a
request to find an object of type com.server.floor.Parcel.  The
primary key for this type is an unencoded String.  However, the
encoded string representation of the Key that was provided as an
argument has its id field set, not its name.  This makes it an invalid
key for this class.
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
207)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
243)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)

thank you for your suggestion.

-- 
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 Exception lost in 2.1.0 works in 2.0.4

2010-11-19 Thread ep
what about debugging? you can compile with no obfuscation (detailed
level would be best) and use browser's debugger to get the place where
the error arises, i.e. remove the throwable catch, compile detailed,
enable debugger in IE (or install firebug in FF) and let the error
appear. when clicking on that error the debugger brings you to the
place where it happens. maybe you could post those JS fragment found.

maybe CLBParse class is not 2.1 compatible

On 17 Nov., 23:23, Rob Hennessy  wrote:
> Hi All,
>
> I have a web app where I exposed a class's static method using JSNI,
> as in the JSNI example. I execute the method from the native event
> handler.
>
> Within the method, I try and catch, and return any exception's message
> as the method's return value.
>
> The method works properly in 2.0.4, but in 2.1.0 it only works in
> devmode
>
> In 2.1.0 production mode any exception I get returns "Index:-1, Size:
> 0" and is always in the Throwable catch. With no Throwable catch, the
> browser states "object error".
>
> public static String parse(String script) throws ParseException{
>         try {
>             CLBParse parser = new CLBParse(new
> MyStringReader(script));
>             SimpleNode root = parser.Input();
>             return "";
>         } catch (ParseException e) {
>             return e.getMessage();
>         }catch( Throwable e) {
>             GWT.log("something bad", e);
>
>             return e.getMessage();
>         }
>        return "";
>
> }
>
>     public native void export() /*-{
>
>       $wnd.TryParse =
> $entry(@com.test.app.client.CalcScriptReformatter::parse(Ljava/lang/
> String;));
>
> }-*/;
>
> I've tried with and without the $entry wrapper.
>
> Is this a bug in 2.1.0, or should I be doing something different?
>
> Thanks,
> -Rob

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



Re: Eclipse setup, javax.validation missing and jsp syntax highlighting

2010-11-19 Thread -sowdri-
Even I'm facing the same problem.

FILE: /Expenses/src/com/google/gwt/sample/expenses/server/domain/
Employee.java

/* these imports fails */
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

...

I've been trying to make things work for a long time. Any help is
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.



How to keep row selected after pagination grid refresh?

2010-11-19 Thread Tomeo
Hi folks,

I have a below a simple scenario:

1. I have a grid populated with data
2. I select any 1 row from grid - data with a specific "Object
Id" [internal id]
3. I press a refresh button from a paginationToolbar
4. data are refreshed
5. no row from grid is being selected.

Question 1:
How can I change a step 5, so after refresh a row with specific Object
Id (from step 2) would be automaticaly selected?


I tried to implement a LoadListener to loader, but it seems like I'm
incorrectly selecting a row from my grid.
Here is a bit of my code:

1. A global variable of type "Zakazka" to store a Zakazka before
refresh occures (the one which should be selected after refresh):
Code:

private Zakazka selectedZakazka;



2. Here is my grid definition with loader's load listener
Code:


  RpcProxy> proxy = new
RpcProxy>() {
@Override
public void load(Object loadConfig,
AsyncCallback> callback) {
Tracing.Log("ZakazkyAktivne.RpcProxy.load.before");
service.getZakazky((PagingLoadConfig) loadConfig,
callback);
Tracing.Log("ZakazkyAktivne.RpcProxy.load.after");
}
  };

  // loader
  final PagingLoader> loader = new
BasePagingLoader>(proxy);
  loader.setRemoteSort(true);

  ListStore store = new ListStore(loader);
  pagingToolBar = new PagingToolBar(50);
  pagingToolBar.bind(loader);

  List columns = new ArrayList();
  columns.add(new ColumnConfig("object_id", "Object Id", 80));
  columns.add(new ColumnConfig("cislo_dokladu", "Číslo dokladu",
100));
  ColumnConfig created = new ColumnConfig("created", "Dátum
vytvorenia", 105);
  created.setDateTimeFormat(DateTimeFormat.getFormat("dd.MM.
HH:mm:ss"));
  columns.add(created);
  columns.add(new ColumnConfig("objednavatel", "Objednavatel",
120));
  columns.add(new ColumnConfig("stredisko", "Stredisko", 150));
  columns.add(new ColumnConfig("stav_zakazky_id", "Id stavu
zakazky", 60));
  columns.add(new ColumnConfig("stav_zakazky_kod", "Kód stavu
zakazky", 100));
  columns.add(new ColumnConfig("stav_zakazky", "Stav zakazky",
100));
  columns.add(new ColumnConfig("stav_zakazky_zmenil_uziv_meno",
"Zakazku změnil", 100));
  ColumnConfig updated = new ColumnConfig("stav_zakazky_zmena",
"Dátum změny", 105);
  updated.setDateTimeFormat(DateTimeFormat.getFormat("dd.MM.
HH:mm:ss"));
  columns.add(updated);


  ColumnModel cm = new ColumnModel(columns);

  gridZakazka = new Grid(store, cm);
  gridZakazka.setStateId("pagingGridExample");
  gridZakazka.setStateful(true);
  gridZakazka.addListener(Events.Attach, new
Listener>() {
public void handleEvent(GridEvent be) {
  PagingLoadConfig config = new BasePagingLoadConfig();
  config.setOffset(0);
  config.setLimit(50);

  Map state = gridZakazka.getState();
  if (state.containsKey("offset")) {
int offset = (Integer)state.get("offset");
int limit = (Integer)state.get("limit");
config.setOffset(offset);
config.setLimit(limit);
  }
  if (state.containsKey("sortField")) {
config.setSortField((String)state.get("sortField"));
 
config.setSortDir(SortDir.valueOf((String)state.get("sortDir")));
  }
  loader.load(config);
}
  });

 
gridZakazka.getSelectionModel().addListener(Events.SelectionChange,
new Listener>() {
   public void handleEvent(SelectionChangedEvent
be) {
   if (be.getSelection().size() > 0) {
   Tracing.Log("Grid selection changed");
   formBindings.bind((ModelData)
be.getSelection().get(0));
 
setZakazkaDetailToolBar(be.getSelectedItem().getZakazkaObjectId(),
 
be.getSelectedItem().getZakazkaStavZakazkyId());

   //
getLogZakazkaGrid(be.getSelectedItem().getZakazkaObjectId());
   //pagingToolBarLog.refresh();
   } else {
   Tracing.Log("Nothing selected");
   formBindings.unbind();
   zakazkaDetailToolBar.removeAll();
   }
}
   });

  loader.addLoadListener(new LoadListener() {
  @Override
  public void loaderLoad(LoadEvent le)
  {
  // Run your selection logic here
  Tracing.Log("loaderLoad invoked!");

 
gridZakazka.getSelectionModel().select(selectedZakazka, false);
  Tracing.Log("selectedZakazka selected");
  }
  });



  gridZakazka.setLoadMask(true);
  gridZakazka.setBorders(true);

3. Selected zakazka is remembered before refresh using a below code:
Code:

  public void changeZakazkaStatus(Integer zakazkaId,
Integer novyStatusId) {
final DatabaseServiceAsync service = (DatabaseServic

Re: UiBinder fails after upgrading to gwt 2.1.0

2010-11-19 Thread Herwig Henseler
Hi,

I'm also stuck here and can't migrate to GWT 2.1.

I replaced my old xercesImpl-2.6.2 with version 2.9.1 but to no avail.

I see two incarnations of xercesImpl in my project: One directly
(which I replaced) and one inside GWT (gwt-dev.jar, version unknown).
I guess the version inside GWT is too old. Any ideas how to proceed?

Thanks in advance,
Herwig

On 17 Nov., 18:44, Mency Woo  wrote:
> I had a similar problem with compile error
>
>  java.lang.AbstractMethodError:
> org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/
> String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/
> Object;
>   at
> com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentB
> uilder.java:
> 130)
>
> which was fixed by upgrading xerces/xercesImpl.jar to 2.9.1   (and
> making sure no other versions of xerces  are in the classpath).  
> (refhttp://mojo.codehaus.org/gwt-maven-plugin/dependencies.html)
>
> On Nov 17, 8:51 am, pgraham  wrote:
>
>
>
> > Has anyone figured this out or created an issue?
>
> > If not, when I get some time I'll isolate the bug in a minimal project
> > and create an issue but that might not happen for a few weeks.
>
> > On Nov 9, 5:15 am, hbf  wrote:
>
> > > Same problem on MacOS 10.6.4/Eclipse 3.6 with latest Google Plugin for
> > > Eclipse.
>
> > > On Nov 5, 8:05 pm, pgraham  wrote:
>
> > > > Right, I suppose I should mention that I am running Kubuntu 10.04 64
> > > > bit, eclipse 3.6
> > > > with the lastest GPE.
>
> > > > On Nov 4, 2:11 pm, will0  wrote:
>
> > > > > Same issue as pgraham on Ubuntu 10.04, eclipse 3.6.
> > > > > This doesn't happen for eclipse 3.5 on the same machine. It also works
> > > > > on Windows 7 ultimate 64bit, eclipse 3.6.
>
> > > > > On Nov 4, 3:36 am, Richard Berger  wrote:
>
> > > > > > OK, this won't help much, but... I was having the same problem just
> > > > > > going through some basic tutorial usingUiBinderandGWT2.1.  So, I
> > > > > > redid everything, writing down each step - and, of course, the 
> > > > > > problem
> > > > > > vanished.
>
> > > > > > So, there exists the possibility that2.1andUiBinderdo actually
> > > > > > work together.
>
> > > > > > I can only offer the truly lame suggestion of restarting Eclipse to
> > > > > > clean up any old invocations of the dev server.
>
> > > > > > Good luck,
> > > > > > RB
>
> > > > > > On Nov 3, 8:34 am, pgraham  wrote:
>
> > > > > > > Update:
>
> > > > > > > I have commented out all code in the two files listed above so 
> > > > > > > that
> > > > > > > they are as follows:
>
> > > > > > > MainMenu.ui.xml:
>
> > > > > > >  > > > > > >     xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
> > > > > > > 
>
> > > > > > > MainMenu.java:
>
> > > > > > > public class MainMenu extends Composite {
>
> > > > > > >     interface Binder extendsUiBinder {}
>
> > > > > > >     private static BinderuiBinder=GWT.create(Binder.class);
>
> > > > > > >     public MainMenu() {
> > > > > > >         initWidget(uiBinder.createAndBindUi(this));
> > > > > > >     }
>
> > > > > > > }
>
> > > > > > > When I do this I get the same error so it is not related to the
> > > > > > > content.
>
> > > > > > > At this point I am thinking that there is a version conflict with
> > > > > > >xerces.  Does anyone know if Dev Mode relies onxercesto parse
> > > > > > > *.ui.xml files and if so which version?
>
> > > > > > > NOTE:  I am using thegwt-maven-plugin to compile the app and it 
> > > > > > > works
> > > > > > > fine if I compile it and deploy it in Tomcat
>
> > > > > > > Thanks,
> > > > > > > Philip
>
> > > > > > > On Nov 2, 1:54 pm, pgraham  wrote:
>
> > > > > > > > MainMenu.ui.xml:
>
> > > > > > > >  > > > > > > >     xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
> > > > > > > >      > > > > > > > type="org.sitebrand.ui.gwt.resources.UiResources.MainMenuCss" />
> > > > > > > >      > > > > > > > type="org.sitebrand.ui.gwt.resources.MainMenuLbls" />
> > > > > > > >      > > > > > > > type="org.sitebrand.gwt.constants.DebugConstants" />
>
> > > > > > > >     
> > > > > > > >          > > > > > > > debugId="{debugIds.menuitem_campaigns}" text="{lbls.campaigns}">
> > > > > > > >             
> > > > > > > >                  > > > > > > >                     text="{lbls.createCampaign}" />
> > > > > > > >                  > > > > > > >                     text="{lbls.viewCampaigns}" />
> > > > > > > >                  > > > > > > >                     text="{lbls.campaignPriority}" />
> > > > > > > >                  > > > > > > >                     text="{lbls.reports}" />
> > > > > > > >             
> > > > > > > >         
>
> > > > > > > >          > > > > > > > debugId="{debugIds.menuitem_content}" text="{lbls.content}">
> > > > > > > >             
> > > > > > > >                  > > > > > > >                     ui:field="createContent"
> > > > > > > >                     text="{lbls.createContent}" />
> > > > > > > >                  > > > > > > >                     ui:field="viewContent"

Datagrid

2010-11-19 Thread Davfranck
Hello,

I am making a comparison of frameworks (GWT, Flex, Wicket, …) and I am
a bit surprised to find that GWT has a lot of lacks. But maybe I’m
wrong ?
=> datagrid. Until 2.1, no datagrid with pagination, and the new
datagrid doesn’t offer sort.
=> validation. No validation framework (For example, Flex has
validators).

For the datagrid, I found one in the incubator. I test it, and I was
surprised to see that we must call our service in the TableModel, so
breaking the MVP model. Maybe I miss something there too ? But there
is no documentation …
For the validation I didn’t found a complete (documented and with
i18n) framework.

Are SmartGWT or Vaadin or others overlayers mandatory ?

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

2010-11-19 Thread kachaloo
Hi,
You can use rackspace. They are known for their good support.

Cheers,
Kachaloo

On Nov 18, 9:49 pm, Isuru Madusanka <2eis...@gmail.com> wrote:
> Hi,
>
> I have trouble with finding a good hosting service. I can try Google App
> Engine. But my app need more space and allow users upload documents. I tried
> a trial account with a reputed hosting company. But they are not good at
> customer service. I am looking for a low-cost hosting.
>
> Do you guys have any suggestions?

-- 
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 client-side thread or asynchronous call ?

2010-11-19 Thread bjv
On Nov 18, 8:09 am, MickeyR  wrote:
> Is there anything similar to using java threads that I can use in my
> client side code ?

I can't think of any portable ways to do this. The only way you can
get the behavior you want that I can think of is to create a browser
plugin (like a firefox protocol handler) that you can issue gwt's
async requests to.  In essence, the local plugin looks like a remote
site to your application. It will look like an ajax type request from
your gwt code's perspective, however the handling of the search
request/etc will all run in the plug-in/protocol handler. And of
course, if you are loading your app from a server somewhere, you'll
have the browser's same origin policy issues that you will have to
solve (unless you load your gwt app from your plugin as well).

-- 
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: RequestFactory - Send error to client

2010-11-19 Thread atoy40
Hello,

i have the same problem and the same interrogation (intentional or
not ?)
If you look on the RF doc, all code examples use Request to fire(),
but all the real samples (DynaTableRF, Expenses) I've studied use
RequestContext to fire() instance request.

And is there any other differences between the two "fires" ?
Any RF developers around ? :)

Anthony.

On 16 nov, 16:27, Dain Kaplan  wrote:
> I dug around a bit and discovered why the onFailure() handler was not being 
> called. The DynaTableRf sample that ships with GWT 2.1 uses the new Editor 
> framework. In the PersonEditorWorkflow.java class it initializes the editor 
> and keeps a copy of the RequestContext as follows:
>
>   PersonRequest context =requestFactory.personRequest();
>   context.persist().using(person);
>
> When the user clicks the "Save" button, the onSave() click handler gets 
> called, which basically does:
>
>   context.fire(new Receiver() {
>     @Override
>     public void onSuccess(Void response) {
>       dialog.hide();
>     }
>
>     @Override
>     public void onViolation(Set errors) {
>       dialog.setText("Errors detected on the server");
>       editorDriver.setViolations(errors);
>     }
>   });
>
> For dealing with successes and violations, that works fine. The problem 
> happens when you want to deal with exceptions thrown on the server. The 
> RequestContext and Request objects seem to have their own Receiver() 
> instances, but only the Receiver instance for the Request (and NOT the 
> RequestContext) gets parsed for server-side exceptions (see 
> com.google.gwt.requestfactory.client.impl.AbstractRequest.handleResponseText()
>  for the error parsing code, and AbstractRequestContext.doFire() for 
> RequestContext code that ignores any errors). To briefly show what's going 
> on, below is a snippet from the TransportReceiver that gets created in the 
> AbstractRequestContext.doFire() method for handling the request:
>
>   public void onTransportSuccess(String payload) {
>     try {
>       // TODO: chained methods
>       assert invocations.size() == 1;
>       invocations.get(0).handleResponseText(payload);
>
>       if (receiver != null) {
>         if (errors.isEmpty()) {
>           receiver.onSuccess(null);
>           // After success, shut down the context
>           editedProxies.clear();
>           invocations.clear();
>           returnedProxies.clear();
>         } else {
>           receiver.onViolation(errors);
>         }
>       }
>     } finally {
>       postRequestCleanup();
>     }
>   }
>
> What winds up happening is that if the payload contains errors, they get 
> processed in the handleResponseText() method call, but only if the request 
> instance has a Receiver set. The code below that does not handle errors at 
> all, so even on error the onSuccess() method of your receiver gets called.
>
> Is such behavior intentional?
>
> The workaround is to set the Request's Receiver instance and call 
> context.fire() instead, but still leaves the DynaTableRf sample a bit 
> misleading.
>
> DK
>
> On Nov 16, 2010, at 4:43 PM, DK wrote:
>
> > I've encountered the same problem. Intuition says that throwing an
> > error should trigger the onFailure() method, not the onSuccess()
> > method with a SEVERE logging the exception. Is this a known bug?
>
> > On Nov 6, 5:03 am, Henrique F M  wrote:
> >> Hi there,
>
> >> I didn't find the solution to this anywhere, so I'm creating this new
> >> discussion.
>
> >> I want to be able to send errors from myRequestFactoryto the client.
> >> Let me give an example: let's say my app is a simple Person CRUD. My
> >> Person class has a String name attribute and I don't want to have more
> >> than two Persons with the same name. So i was thinking something like
> >> this:
>
> >> --RequestFactoryServer Implementation 
> >> public static Person createNewPerson(String name){
> >>         
> >>         if( isThereAnotherPersonWithThisName(name) ){
>
> >>                 //do something HERE
>
> >>         }else{
> >>                 pm.makePersistent(person);
> >>         }
> >>         ...
>
> >> }
>
> >> -- Client ---
> >> ().fire(
> >>         new Receiver() {
> >>                 @Override
> >>                 public void onSuccess(Person person) {
> >>                         Window.alert("OK!");
> >>                         //do stuff
> >>                 }
> >>                 @Override
> >>                 public void onFailure(ServerFailure error) {
> >>                         Window.alert("Fail!");
> >>                         Window.alert(error.getMessage());
> >>                         //do stuff
> >>                 }
> >>         });
>
> >> 
> >> I don't know what I have to do on HERE to make my Receiver go to
> >> onFailure. I've tried to throw Exceptions, RequestException, but it
> >> only make my server log the error and the response never arrives to
> >> the client.
> >> Am I missing something here?

Handling inbound soap message

2010-11-19 Thread Ken
I would like to use GWT in my next project but a non-negotiable
requirement is the ability to receive an incoming soap message and
parse through the xml information.  Essentially we are registering to
be notified of events and the notification is delivered to an endpoint
you supply (which would be the GWT service) and is a POST of a soap
message, with a content type of text/xml.

I'm unable to figure a way to allow GWT to receive this message.  I
have tried to override doPost (like doGet) in my implementation that
extends RemoteServiceServlet but doPost is final in GWT.   I also
noticed that for post's GWT expects text/x-gwt-rpc, unfortunately I
have no control over the service so text/xml is sent.

My hope is that there's a way I can intercept or receive the POST
within my GWT implementation and then subsequently parse the soap
message which should just be parsing xml at that point.

Thanks for any suggestions.

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

2010-11-19 Thread George Moschovitis
You should definitely reconsider GAE. It supports extra space and
documents upload.
They even released a preview of 1.4.0 with some *great* features!

-g.

On Nov 18, 6:49 pm, Isuru Madusanka <2eis...@gmail.com> wrote:
> Hi,
>
> I have trouble with finding a good hosting service. I can try Google App
> Engine. But my app need more space and allow users upload documents. I tried
> a trial account with a reputed hosting company. But they are not good at
> customer service. I am looking for a low-cost hosting.
>
> Do you guys have any suggestions?

-- 
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: CellTable column text alignment

2010-11-19 Thread Klaus
We have exactly the same problem. Seems this is not possible; same for
vertical alignment (bottom, middle, top). You can only set one style
for all columns.



On 17 Nov., 21:06, Pravin  wrote:
> Any suggestions on text alignment ?
>
> On Nov 11, 9:11 am, Lukas Herman  wrote:
>
>
>
>
>
>
>
> > Thanks for pointing this out.
> > This adds class name to colgroup col, where only limited subset of CSS
> > properties is allowed (http://www.w3.org/TR/CSS2/tables.html#columns).
> > Unfortunately text-align is ignored when set on  element.
> > Anyway, addColumnStyleName() requires additional index over added
> > columns. A typical use case for this scenario is: create table
> > displaying row data from the database, displaying firstcolumnis ID
> > number right aligned, nextcolumnis NAME text centered etc..
> > WhileCellTableAPI defines addColumn(Column), specifying additional
> > style properties on addedcolumnwould require to maintain 
> > additionalcolumnindex property to reference currently addedcolumn.
>
> > From my point of view thecolumnstyle name is clearly a property 
> > ofColumnclass.
>
> > With regards
> > Lukas Herman
>
> > On 10 lis, 19:36, John LaBanca  wrote:
>
> > > Can you useCellTable#addColumnStyleName() to add the text-align property 
> > > to
> > > the col element for thecolumn?
>
> > > Thanks,
> > > John LaBanca
> > > jlaba...@google.comon Wed, Nov 10, 2010 at 11:01 AM, Lukas Herman 
> > >  wrote:
> > > > Hello,
> > > > is there any way to set text-align property onCellTablecolumn? The
> > > > currentCellTablecode allows only static cellStyle to be applied to
> > > > tdClasses.
> > > > I would expect an optionalColumnclass cellStyle property, which
> > > > would be appended to tdClasses during rendering.
>
> > > > --
> > > > 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 > > >  cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.-Hide quoted 
> > > >text -
>
> > - Show quoted text -

-- 
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: design pattern for common functionality between Activities

2010-11-19 Thread tastic
I have been reading Thomas Broyer's blog now for a full day and am
still having an issue with loading my application. Attached it the
EntryPoint. If you can tell me what I might be doing wrong that would
be awesome.

public class Library implements EntryPoint {
Logger logger = Logger.getLogger("LibraryLogger");

private Place defaultPlace = new HomePlace("Welcome");

private LayoutPanel layoutPanel = new LayoutPanel();

private SimplePanel headerPanel = new SimplePanel();
AcceptsOneWidget headerDisplay = new AcceptsOneWidget() {
public void setWidget(IsWidget w) {
Widget widget = Widget.asWidgetOrNull(w);
layoutPanel.setWidgetVisible(headerPanel, widget != 
null);
headerPanel.setWidget(widget);
}
};
private SimplePanel mainPanel = new SimplePanel();
AcceptsOneWidget mainDisplay = new AcceptsOneWidget() {
public void setWidget(IsWidget w) {
Widget widget = Widget.asWidgetOrNull(w);
layoutPanel.setWidgetVisible(mainPanel, widget != null);
mainPanel.setWidget(widget);
}
};
private SimplePanel sidePanel = new SimplePanel();
AcceptsOneWidget sideDisplay = new AcceptsOneWidget() {
public void setWidget(IsWidget w) {
Widget widget = Widget.asWidgetOrNull(w);
layoutPanel.setWidgetVisible(sidePanel, widget != null);
sidePanel.setWidget(widget);
}
};
private SimplePanel footerPanel = new SimplePanel();
AcceptsOneWidget footerDisplay = new AcceptsOneWidget() {
public void setWidget(IsWidget w) {
Widget widget = Widget.asWidgetOrNull(w);
layoutPanel.setWidgetVisible(footerPanel, widget != 
null);
footerPanel.setWidget(widget);
}
};


/**
 * This is the entry point method.
 */
public void onModuleLoad() {
// Create ClientFactory using deferred binding so we can replace
with different
// impls in gwt.xml
ClientFactory clientFactory = GWT.create(ClientFactory.class);
EventBus eventBus = clientFactory.getEventBus();
PlaceController placeController =
clientFactory.getPlaceController();

// Start ActivityManager for the main widget with our 
ActivityMapper
ActivityMapper headerActivityMapper = new
HeaderActivityMapper(clientFactory);
ActivityManager headerActivityManager = new
ActivityManager(headerActivityMapper, eventBus);
headerActivityManager.setDisplay(headerDisplay);

ActivityMapper sideActivityMapper = new
SideActivityMapper(clientFactory);
ActivityManager sideActivityManager = new
ActivityManager(sideActivityMapper, eventBus);
sideActivityManager.setDisplay(sideDisplay);

ActivityMapper footerActivityMapper = new
FooterActivityMapper(clientFactory);
ActivityManager footerActivityManager = new
ActivityManager(footerActivityMapper, eventBus);
footerActivityManager.setDisplay(footerDisplay);

ActivityMapper mainActivityMapper = new
MainActivityMapper(clientFactory);
ActivityManager mainActivityManager = new
ActivityManager(mainActivityMapper, eventBus);
mainActivityManager.setDisplay(mainDisplay);

// Start PlaceHistoryHandler with our PlaceHistoryMapper
AppPlaceHistoryMapper historyMapper=
GWT.create(AppPlaceHistoryMapper.class);
PlaceHistoryHandler historyHandler = new
PlaceHistoryHandler(historyMapper);
historyHandler.register(placeController, eventBus, 
defaultPlace);

logger.info("Layout Panel "+layoutPanel);

RootPanel.get().add(layoutPanel);
// Goes to place represented on URL or default place
historyHandler.handleCurrentHistory();
}
}

On Nov 12, 10:08 am, koma  wrote:
> I think i start to understand, after reading the blog posts from
> Thomas Broyer 
> here:http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni
> and the other posts in this series
>
> Looking at a host page, you can identify different display areas.
> Every "dynamic" area - not the static part of the host page - is
> managed by an activity manager, which decides the activity to live in
> the display area.
> The applications switches between places and changing places triggers
> each activity manager to update its part of the display area;
>
> So I think I have to create a
> - menu activity manager
> - main content activity manager
> - login/logout link activity manager
> - sidebar activity manager.
>
> W

What should I learn , Google Web Toolkit or Jquery ?

2010-11-19 Thread kachaloo
Hi,
I am currently deciding in which technology should I put more time in
and learn . I have been working with drupal and wordpress since 4
months and I like the platforms.

As for the browser side work I am a bit confused whether I should put
more time in

google web toolkit + drupal  / word press


or

jquery + drupal / wordress


Thank you in advance for sharing your views,
Kachaloo

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



Re: Problem with call Window.open inside AsyncCallback.onSuccess for IE

2010-11-19 Thread Burningfrog
try to disable your popup blocker


On 6 Okt., 14:18, "Andrey H."  wrote:
> Hi All!
> I have strange problem: When I call Window.open function(servlet,
> which return file for download) inside AsyncCallback.onSuccess,  then
> new tab opens and immediately closed, the file isn't downloaded. For
> Fierfox it's work fine, for IE - bad.
>
> This part of code:
>
> new AsyncCallback()
> {
>        public void onSuccess(BeanModel model)
>        {
>               Window.open("GWT.getModuleBaseURL() + "SomeServlet",
> "_blank", """);
>        }
>
> });
>
> I need for a help.

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



Image using CSS in UiBinder

2010-11-19 Thread Bruno Santos
I'm doing the main screen by using the UiBinder, and I'm trying to put
a background image in a table, but I can not, my question is how it
should be the following line and where should I put the image?



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



container listener for gwt

2010-11-19 Thread Leung
Hi

I need to handle the event occured on the child component, childList. The event 
handler has to be defined on guicontainer because the guicontainer shows the 
change. So, I need the ContainerListener just like the onein JFC. How can i 
implement this in GWT?

class guicontainer extends HorizontalPanel
{
this.add(new childList());
}

class childList extends VerticalPanel
{
--
//contains list
}

Thanks a lot


  

-- 
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 MVP ActivityMapper with GIN

2010-11-19 Thread Brian Reilly
This is going to be a recurring question here and the source of much
frustration for anyone who doesn't ask or read this group. It would be nice
if someone would update that piece of the documentation.

-Brian

On Tue, Nov 16, 2010 at 10:35 PM, Ashton Thomas wrote:

>
> http://groups.google.com/group/google-web-toolkit/browse_thread/thread/2ed199a42c500156/9cf373ccdbd1b43a
>
> "Unfortunately, the mere mention of a need for something does not
> imply
> its current availability :-) I wrote the Activities and Places doc and
> really should have left GIN out of it for the time being."
>
>
> On Nov 16, 10:10 pm, zixzigma  wrote:
> > from GWT MVP documentation for Activity Mapper:
> >
> > "[ActivityMapper] will likely have lots of code like "if (place
> > instanceof SomePlace) return new SomeActivity(place)". A better way to
> > implement the chain of nested ifs would be with a GIN module."
> >
> > Can someone please provide some tips on how GIN injection can replace
> > the nested IFs ?
> >
> > I am familiar with GIN and have set it up, and use it, but have no
> > idea how it can be used in this case ?
> >
> > http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd...
> >
> > 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-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.



Re: Eclipse Plugin open source

2010-11-19 Thread Nicolas Antoniazzi
On my side I would like to extend it to simplify the generation of some code
like Activity / View / Place  (juste creates stub). Like what is already
done for uiBinder / ClientBundle, ...

I am very interested to know this date too.

Thanks

Nicolas.

2010/11/19 jbroquefere 

> Hi,
> I know Eclipse Plugin is not yet open sourced, and I know you are
> thinking about open it.
> Do you have any idea about the date (2010?02011? later?)?
> I'm thinking about a plugin which will get compilation error, like
> Eclipse Plugin does with Service/ServiceAsync (generate Async class,
> generate methods to be conform to synchronous, etc.), but based on
> annotations. And getting sources might help me a lot !
>
> Regards,
>
> --
> 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.



Re: Get all events

2010-11-19 Thread Jack
You mean something like:

Event.addNativePreviewHandler(NativePreviewHandler handler)

?

JavaDoc: Adds a NativePreviewHandler that will receive all events
before they are fired to their handlers. Note that the handler will
receive all native events, including those received due to bubbling,
whereas normal event handlers only receive explicitly sunk events.


On 19 Nov., 10:33, MAM  wrote:
> i want to retrieve all events , "previously"added to a Widget(button,
> Panel, TextFiled ...) , at runtime

-- 
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: Invalid version number "2.0" passed to external.gwtOnLoad(), expected "2.1"

2010-11-19 Thread ep
please clear cache of your browser and delete all the output dirs for
modules (that named after your module found under "war" folder)

On 17 Nov., 07:16, Hendrik Jan van Randen 
wrote:
> We're migrating our GWT 2.0.4 application to GWT 2.1.0.
> I've therefore upgraded my Google Plugin for Eclipse to GWT 2.1.0.
>
> When I try to run our application in the GWT debugger in Eclipse
> (Debug as web application, go to its URL in Firefox) I get the
> following message:
>
> Connection received from localhost:47526
>    [ERROR] Invalid version number "2.0" passed to
> external.gwtOnLoad(), expected "2.1"; your hosted mode bootstrap file
> may be out of date; if you are using -noserver try recompiling and
> redeploying your app
>
> Recompiling doesn't resolve the problem.
> Also changing the version from 2.0 to 2.1 in the line
> var $hostedHtmlVersion="2.1";
> in the files hosted.html in the war directory doesn't resolve the
> problem.
> I cannot find any explicit instructions to migrate from GWT 2.0 to
> 2.1.
>
> My environment:
> Ubuntu 10.04 LTS
> Firefox 3.6.12 with Google Web Toolkit Developer Plugin for Firefox
> 1.0.7511
> Eclipse Helios with Google Plugin for Eclipse with GWT version 2.1.0.
>
> Any suggestions how I can resolve this problem?

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



Eclipse Plugin open source

2010-11-19 Thread jbroquefere
Hi,
I know Eclipse Plugin is not yet open sourced, and I know you are
thinking about open it.
Do you have any idea about the date (2010?02011? later?)?
I'm thinking about a plugin which will get compilation error, like
Eclipse Plugin does with Service/ServiceAsync (generate Async class,
generate methods to be conform to synchronous, etc.), but based on
annotations. And getting sources might help me a lot !

Regards,

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



Eclipse Plugin open source

2010-11-19 Thread jbroquefere
Hi,
I know Eclipse Plugin is not yet open sourced, and I know you are
thinking about open it.
Do you have any idea about the date (2010?02011? later?)?
I'm thinking about a plugin which will get compilation error, like
Eclipse Plugin does with Service/ServiceAsync (generate Async class,
generate methods to be conform to synchronous, etc.), but based on
annotations. And getting sources might help me a lot !

Regards,

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



gridpanel can not sort

2010-11-19 Thread Lewis Yeung
Hi I have a gridpanel inside a tabpanel and I have a function which
adds records to the gridpane's store. The problam I have is that
everytime I sort the gridpanel, all records disappeared... Anyway I
can fix this? or is it possible to make the gridpanel unsortable? I
tried using reconfigure instead of getStore.add(...) but I got a null
is null error when calling reconfigure... pls help. thanks alot


GridPanel resultGrid;
companyGrid = new GridPanel();
companyGrid.setStripeRows(true);
companyGrid.setAutoScroll(true);
companyGrid.setHeight(200);
companyGrid.setWidth(600);
companyGrid.setAutoExpandColumn("code");

Object[][] emptyData = new Object[][]{};
MemoryProxy proxy = new MemoryProxy(emptyData);
this.reader = new ArrayReader(getRecordDef());
Store store = new Store(proxy, reader, true);
columnModel = new ColumnModel(getColumnConfig());
companyGrid.setStore(store);
companyGrid.setColumnModel(columnModel);
forthTab.add(companyGrid);
tabPanel.add(forthTab);

public void loadCompanyTable(Object[][] companyList, int size){
   companyGrid.getStore().removeAll();
   if (size != 0){
  Store store = new Store(new MemoryProxy(companyList), reader);
  store.load();
  companyGrid.getStore().add(store.getRecords());
   }
   companyGrid.getStore().commitChanges();
}

companyGrid.reconfigure(store, columnModel); <- tried calling this
but got null is null error

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



Specific positioning

2010-11-19 Thread daniela iervolino
Hi,
I have a question. I want to create an object by double clicking in
the background. Creating an object isn't a problem, but I don't know
how to do this in the specific position where the mouse make the
double click...
Can anyone help me?

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



Get all events

2010-11-19 Thread MAM
i want to retrieve all events , "previously"added to a Widget(button,
Panel, TextFiled ...) , at runtime

-- 
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: Application loads with blank page on Firefox 4 beta 6

2010-11-19 Thread keyvez
I have also filed an issue with GWT on this.
http://code.google.com/p/google-web-toolkit/issues/detail?id=5606

I hope I am not the only one with the issue.

On Nov 17, 11:21 pm, keyvez  wrote:
> Hi,
>
> I think this might be a bug in the new gwt 2.1 sdk. When I create a
> new web application project in eclipse and compile and run it in web
> mode on FF4 beta 6, I see a blank page.
>
> On debugging in firebug, the following errors was thrown:
>
> reference to undefined property m.external.gwtOnLoad
> reference to undefined property document.documentMode
>
> Please help.
>
> Thanks,

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



Re: Application loads with blank page on Firefox 4 beta 6

2010-11-19 Thread keyvez
Isn't anyone else experiencing this. Please help, this is becoming an
issue on windows as well, a user is reporting it on ff windows too.

You help is really appreciated.
Gaurav

On Nov 17, 11:21 pm, keyvez  wrote:
> Hi,
>
> I think this might be a bug in the new gwt 2.1 sdk. When I create a
> new web application project in eclipse and compile and run it in web
> mode on FF4 beta 6, I see a blank page.
>
> On debugging in firebug, the following errors was thrown:
>
> reference to undefined property m.external.gwtOnLoad
> reference to undefined property document.documentMode
>
> Please help.
>
> 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.