Re: RadioButton exception on create in IE9

2011-06-21 Thread Benju
I also have this problem with GWT 2.3.0 and creating buttons.

On May 13, 7:13 am, piXi slop...@gmail.com wrote:
 Helow,

 First my develop enviroment :
 Windows 7 x64
 Netbeans 7.0 ( tried also 6.9.1)
 Gwt4nb 2.10
 GWT2.2.0

 today I have upgraded my html to HTML5 and have encountered this
 error:

 00:01:30,687 [ERROR] Uncaughtexceptionescaped
 com.google.gwt.core.client.JavaScriptException: 
 (null):DOMException:INVALID_CHARACTER_ERR(5)  code: 5  ABORT_ERR: 20
 ...
 WRONG_DOCUMENT_ERR: 4   at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
 elServer.java:
 237)    at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 129)    at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)    at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)    at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
 ava:
 91)     at
 com.google.gwt.dom.client.DOMImplTrident.createInputRadioElement(DOMImplTri 
 dent.java)
         at com.google.gwt.dom.client.Document$.createRadioInputElement$
 (Document.java:961)     at
 com.google.gwt.user.client.DOM.createInputRadio(DOM.java:214)   at
 com.google.gwt.user.client.ui.RadioButton.init(RadioButton.java:64)
 at com.google.gwt.user.client.ui.RadioButton.init(RadioButton.java:
 100)    at
 si.tridens.esmserver.client.common.CPM.createFilterRadio(CPM.java:525)
         at
 si.tridens.esmserver.client.widget.FilterPanel.addFilterColumn(FilterPanel. 
 java:
 65)     at
 si.tridens.esmserver.client.page.ProcessesTab.initTab(ProcessesTab.java:
 96)     at
 si.tridens.esmserver.client.MainEntryPoint.addProcessesTab(MainEntryPoint.j 
 ava:
 335)    at si.tridens.esmserver.client.MainEntryPoint
 $3.execute(MainEntryPoint.java:504)     at
 com.google.gwt.core.client.impl.SchedulerImpl$Task$.executeScheduled$
 (SchedulerImpl.java:50)         at
 com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerIm 
 pl.java:
 229)    at
 com.google.gwt.core.client.impl.SchedulerImpl.flushPostEventPumpCommands(Sc 
 hedulerImpl.java:
 389)    at com.google.gwt.core.client.impl.SchedulerImpl
 $Flusher.execute(SchedulerImpl.java:78)         at
 com.google.gwt.core.client.impl.SchedulerImpl.execute(SchedulerImpl.java:
 139)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)     at java.lang.reflect.Method.invoke(Method.java:597)     at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
 at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)     at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
 157)    at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
 rReturn(BrowserChannelServer.java:
 326)    at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
 elServer.java:
 207)    at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 129)    at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)    at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)    at
 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
 ava:
 91)     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)        at
 com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)      at
 sun.reflect.GeneratedMethodAccessor184.invoke(Unknown Source)   at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
 l.java:
 25)     at java.lang.reflect.Method.invoke(Method.java:597)     at
 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
 at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)     at
 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
 157)    at
 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
 lServer.java:
 281)    at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
 nelServer.java:
 531)    at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
 352)    at java.lang.Thread.run(Thread.java:662)

 I get thisexceptiononly on IE9, Firefox and Chrome are working
 perfect.
 I have upgraded to HTML5 because of rounded edges in IE. With debuging
 I have located problem, and it occours on RadioButton create. I have
 also tested this with fresh dummy project showing only one radio
 button and I got same error than in my project.

 Have anyone expirienced similar problem ? I haven't found any solution
 for my problem using 'mr.google'.

 Any help will be appriciate.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, 

Dev mode in ie8/vista32 - always see Development Mode requires the Google Web Toolkit Developer Plugin

2011-04-29 Thread Benju
When I try to use dev mode on my machien with ie8/vista32 I
continually see

Development Mode requires the Google Web Toolkit Developer
Plugin (the download plugin option).  I was prompted once to allow
addon to run via the security bar but no longer and nothing loads.

How do I troubleshoot this?  I have tried 
http://gwt.google.com/missing-plugin/MissingPlugin.html
but it did not work at all.  I am on GWT 2.2.0 via maven central.

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



Re: Dev mode in ie8/vista32 - always see Development Mode requires the Google Web Toolkit Developer Plugin

2011-04-29 Thread Benju
FYI I have a related stack overflow question here...

http://stackoverflow.com/questions/5786312/troublshooting-guide-for-gwt-plugin

On Apr 29, 11:39 am, Benju b...@fastcastmedia.com wrote:
 When I try to use dev mode on my machien with ie8/vista32 I
 continually see

 Development Mode requires the Google Web Toolkit Developer
 Plugin (the download plugin option).  I was prompted once to allow
 addon to run via the security bar but no longer and nothing loads.

 How do I troubleshoot this?  I have 
 triedhttp://gwt.google.com/missing-plugin/MissingPlugin.html
 but it did not work at all.  I am on GWT 2.2.0 via maven central.

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



Re: chrome - prompting me to install gwt plugin but already installed

2011-01-27 Thread Benju
Craig's fix worked for me to on Windows 7 x64.

On Jan 27, 12:49 am, jd jdpatter...@gmail.com wrote:
 Thanks Craig! Fixed it for me

 On Jan 27, 9:28 am, Craig Mitchell craig...@gmail.com wrote:







  Downgrading theplugingets it working again:

  1:  Uninstall the currentplugin(Tools - Extensions)
  2.  Install the 
  olderplugin https://dl-ssl.google.com/gwt/plugins/chrome/1.0.9521/gwt-dev-plugin.crx

  On Jan 27, 12:25 pm,

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



Re: Does SimplePager have to be subclassed in order for the last page button to work?

2010-12-08 Thread Benju
Try this...

SimplePager pager = new SimplePager(SimplePager.TextLocation.RIGHT,
GWT.SimplePager.Resourcescreate(SimplePager.Resources.class), false,
0, true);

On Nov 3, 5:48 pm, Jeff Schwartz jefftschwa...@gmail.com wrote:
 I am using a SimplePager but the last page button is never enabled. I didn't
 subclass SimplePager. Doe it need to be? Thanks in advance.

 Jeff

 --
 Jeff

-- 
You received 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 Visualization not compiling on Netbeans

2010-07-06 Thread Benju
I also have this problem.

On Jun 17, 5:17 pm, Luiz Gustavo Arruda gu.e...@gmail.com wrote:
 Hi guys!

 The following issue is happening when I'm trying to compile my project with
 as Visualization module on Netbeans.

 I've update all jars, (ajaxloader and gwt-visualization it self).

 Here is:

 Validating newly compiled units
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/visualizations/IntensityMap.j 
 ava'
          [ERROR] Line 56: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/DataView.java'
          [ERROR] Line 61: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 73: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 81: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 93: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/DataTable.java'
          [ERROR] Line 140: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/visualizations/ImageChart.jav a'
          [ERROR] Line 113: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/visualizations/Gauge.java'
          [ERROR] Line 71: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/visualizations/AnnotatedTimeL 
 ine.java'
          [ERROR] Line 127: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 199: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 373: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 385: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/CommonOptions.java'
          [ERROR] Line 61: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/visualizations/GeoMap.java'
          [ERROR] Line 70: The method toJsArrayInteger(int[]) is undefined
 for the type ArrayHelper
       [ERROR] Errors in
 'jar:file:/C:/gwt-visualization-1.1.0/gwt-visualization-1.1.0/gwt-visualiza 
 tion.jar!/com/google/gwt/visualization/client/VisualizationUtils.java'
          [ERROR] Line 30: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
          [ERROR] Line 44: The method toJsArrayString(String[]) is undefined
 for the type ArrayHelper
    Finding entry point classes

 Anyone knows what is this all about?

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



MVP example on Wiki, completing the thought.

2010-01-04 Thread Benju
On the GWT wiki there is a new article (http://code.google.com/
webtoolkit/doc/latest/tutorial/mvp-architecture.html) with good
example of how MVP code should work.  I found the following quote
interesting...

Method setData() is a simple way of getting model data into the view
without the view having intrinsic knowledge of the model itself

In the example there is only one column of date in the contacts table/
list which meant the view can draw itself based on a ListString.
What if the view was meant to display multiple columns a ListString
as seen in ContactsPresenter.fetchContactDetails would not work.

I see three options...

Change this to ListContactDetails but then the view references the
model

Create a new class like ContactDetailsRowData that is essential
ContactDetails minus any non-viewed fields (ie: primary key).

Break down each row in the table into it's own widget, this tends to
get very messy though and seems hackish.

I am currently leaning towards setting the view's data as a
ListContactDetails and just making sure that the view only uses
model data to display the user interface, it doesn't try to fire
events like SelectionEventContactDetails but rather sticks to
ClickHandlers and providing methods like getSelectedIndex().

Any ideas?

--

You received 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-contrib] Re: now.. afetr GWT 2.0?

2009-12-17 Thread Benju
GWT is already really really fast for end users but speed of
development could use some work.  I don't know how but speed of
development needs to be improved, specifically dev mode times.

On Dec 16, 10:01 am, Bruce Johnson br...@google.com wrote:
 Working on a draft one.

 What do folks here think is important?

 On Wed, Dec 16, 2009 at 7:42 AM, tfreitas tfrei...@gmail.com wrote:
  What about roadmap?

  --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: TabLayoutPanel css

2009-12-11 Thread Benju
I had the exact same problem!

On Nov 25, 2:39 pm, P.G.Taboada pgtabo...@googlemail.com wrote:
 Hi,

 I am test drivingTabLayoutPanel, but I can't find any css in the
 themes delivered by gwt rc1 | rc2 for this component.

 Am I missing something?

 brgds

 Papick

--

You received 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: LayoutPanel support in RC2

2009-11-29 Thread Benju
It turns out I just forgot to update my lib folder's jars thus I was
only using the new GWT Development mode.

On Nov 28, 9:42 pm, Benju b...@fastcastmedia.com wrote:
 Has anybody managed to get the GWT layout panels to work in RC2?  In
 the javadoc for SplitLayoutPanel has the following example that does
 not work for me, it just shows a blank page.

         SplitLayoutPanel p = new SplitLayoutPanel();
         p.addWest(new HTML(navigation), 128);
         p.addNorth(new HTML(list), 384);
         p.add(new HTML(details));

         RootLayoutPanel rp = RootLayoutPanel.get();
         rp.add(p);

 Is there some extra css I need to use?  My host html page looks like
 this

 !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/
 TR/html4/strict.dtd
 html
 head
     titleMy Application/title
 /head
 body
 script type=text/javascript language=javascript
 src=MyTestClient.nocache.js/script
 /body
 /html

--

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




Themes in GWT 2.0 RC2

2009-11-29 Thread Benju
Are the themese in GWT 2.0 going to create a default look and feel for
layoutpanel widgets?  I have noticed that inheriting the default
themes does not affect the look of the following...

DockLayoutPanel, , SplitLayoutPanel, StackLayoutPanel, TabLayoutPanel

Is this something that will be added before FCS or are LayoutPanels
not meant to have a default look and feel?

--

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




LayoutPanel support in RC2

2009-11-28 Thread Benju
Has anybody managed to get the GWT layout panels to work in RC2?  In
the javadoc for SplitLayoutPanel has the following example that does
not work for me, it just shows a blank page.

SplitLayoutPanel p = new SplitLayoutPanel();
p.addWest(new HTML(navigation), 128);
p.addNorth(new HTML(list), 384);
p.add(new HTML(details));

RootLayoutPanel rp = RootLayoutPanel.get();
rp.add(p);

Is there some extra css I need to use?  My host html page looks like
this


!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/
TR/html4/strict.dtd
html
head
titleMy Application/title
/head
body
script type=text/javascript language=javascript
src=MyTestClient.nocache.js/script
/body
/html

--

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




Has anybody ever implemented java.util.UUID in GWT?

2009-10-26 Thread Benju

Has anybody here successfully managed to implement java.util.UUID in
GWT?  I have seen some examples of a GWT-specific UUID but it would be
nice if it was added to the core JRE emulation library.

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



Re: GWT architecture MVP/EventBus (mentioned at Google I/O)

2009-06-12 Thread Benju

Thanks for the reply I have some further thoughts...

Looking at the source code for the event handling in GWT 1.6 it seems
the fundamental difference is as follows...

Old way with listeners

I am adding this event listener to this component, when the listener
is triggered I know the source must be this component as it is the
only one added to the listener list

New way with listeners

I am adding this handler to this component, when something happens to
the component firing and event I will receive a notification, the
event itself will contain enough information such as the source or
custom properties which let me determine how to do something.

The more I think about the architecture outlined by the tech talk the
smarter it seems. For example by using this event driven application
you can swap out the UI much easier.  Instead of having a button run
an RPC which on result runs code that that one component you have a
button trigger an RPC request which fires back to a central event
handler which then notifies all interested parties regardless of which
component initiated the request.  When swapping out the UI for
browsers to an iPhone specific  version it would be much much easier
to just have the exact same handlers and events but swap out the
components which render things to the display.

In my readings last night I discovered another term for what is
outlined in the EventBus idea was coined by Martin Fowler as Event
Collaboration http://martinfowler.com/eaaDev/EventCollaboration.html.

In the video at 27:3# Ray Ryan shows some MVP code which seems to tie
in with this it uses methods like HasClickHandlers to define the
interface for the UI.  Does anybody know if this is typical of MVP or
a flavour cooked up by Google?  I am having a hard time finding
quality resources describing MVP in the sort of context appropriate to
GWT.



On Jun 12, 7:39 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 11 juin, 21:34, Benju b...@fastcastmedia.com wrote:

  I did not attend Google I/O but as soon as the video Google I/O 2009
  - Best Practices for Architecting GWT App (http://www.youtube.com/
  watch?v=PDuhR18-EdM) was posted I reviewed it and was a bit confused
  by the idea of an EventBus.

 For my part, I was pleased to see it as a best practice, as that's
 what I'm thinking about for nearly a year (would require a huuge
 refactoring of our app, so it's still just an idea floating in the
 air)
 (I didn't watch the video, just looked at the slides)

  From what I can tell the idea is that UI widgets requiring data from
  the server are able to fire off requests for some form of data like
  void getTransactionsForAccount(Account acct) then at some unknown
  later time (ms to seconds ussually) when a response comes in from the
  RPC call the eventbus is what actually directly recives the data and
  then it is dispatched

 Well, not necessarily, though yes, that's what they said at Google I/
 O. One of the reasons is that there are probably more than a single
 place where you use that same data in your app (in GMail it could be
 the list of mails, the unread count for the box and/or label(s), and
 the conversation view of course). That way, all places are informed,
 wherever the initial request came from.



  Client UI: Hey call some RPC method with these parameters, my
  AsyncCallback is this EventBus thing

  ...some unknown time passes while the server does magic...

  Client Event Bus: A response came in of type X/Y/Z I should fire an
  event to all interested parties

  Client UI: According to this event I just recieved some of my UI code
  needs to change

  A few things are still very hazy for me...

  1- What is missing here is when would the Client UI typically
  subscribe/unsubscribe from the event bus.  If this were a desktop
  application I would simply use weak reference so I would not have to
  unsubscribe my UI manually to prevent a memory leak.

 As with any event, I'd subscribe in the onLoad and unsubscribe in the
 onUnload (would be even better if there was a destructor, so that even
 when not attached to the DOM, your widget could receive events and
 enter a dirty state, so that when it is attached again to the DOM it
 knows if it has to refresh or not)

  2- Is there some EventBus code I should be using that already exists
  in the GWT SDK?  Is this the same code that is used for handling
  widget events like clicking a button?

 Wasn't the code shown in the slides? (page #73 in the PDF, the event
 bus is just a HandlerManager (GWT 1.6 and upwards))

  3- Would you typically have one eventbus code for everything?

 If your event bus is just a HandleManager as in the presentation's
 sample code, then yes.

 You would probably have one event bus (instance) for the whole app,
 but you could also use some kind of HMVC (HMVP?) with component-wide
 event buses.
 (I'd rather have a single event bus though, and just use component-
 specific events)

  4- How does this tie in with the MVP pattern

GWT architecture MVP/EventBus (mentioned at Google I/O)

2009-06-11 Thread Benju

I did not attend Google I/O but as soon as the video Google I/O 2009
- Best Practices for Architecting GWT App (http://www.youtube.com/
watch?v=PDuhR18-EdM) was posted I reviewed it and was a bit confused
by the idea of an EventBus.

From what I can tell the idea is that UI widgets requiring data from
the server are able to fire off requests for some form of data like
void getTransactionsForAccount(Account acct) then at some unknown
later time (ms to seconds ussually) when a response comes in from the
RPC call the eventbus is what actually directly recives the data and
then it is dispatched


Client UI: Hey call some RPC method with these parameters, my
AsyncCallback is this EventBus thing

...some unknown time passes while the server does magic...

Client Event Bus: A response came in of type X/Y/Z I should fire an
event to all interested parties

Client UI: According to this event I just recieved some of my UI code
needs to change


A few things are still very hazy for me...


1- What is missing here is when would the Client UI typically
subscribe/unsubscribe from the event bus.  If this were a desktop
application I would simply use weak reference so I would not have to
unsubscribe my UI manually to prevent a memory leak.

2- Is there some EventBus code I should be using that already exists
in the GWT SDK?  Is this the same code that is used for handling
widget events like clicking a button?

3- Would you typically have one eventbus code for everything?

4- How does this tie in with the MVP pattern?

If anybody else watched the video I would be curious what they have to
say.  Also Ray Ryan mentioned he was going to be creating a new demo
application for GWT developers to see this sort of thing in action.
That would be awesome, does anybody have any thoughts on this as well?

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



Re: GWT 1.6 with Maven and build system questions/survey...

2009-04-17 Thread Benju

It would seem my original post has uncovered all sorts of aches and
pains with the new GWT structure.  Personally I use maven with the GWT-
maven plugin from Google code and only had to change the version
number of GWT 1.6.4 and it worked.  I don't actually fully understand
what was changed but I do know my program worked even after a full
clean/build (including manually wiping my local maven repo).

Perhaps it is not Google's place to write a Maven plugin, but rather
if one of people on the GWT team could take the time to write up a few
documents discussing working with GWT in envionments xyz (just an
idea).  I know it's painful to write documentation sometimes but it
really really helps drive a project/product.  I would write this up
myself but I don't really GWT well enough at this time to write this
kind of document myself.

Has anybody here given up on using a technology because the build
system wasn't playing nice with it? Honestly I'd like to hear.  As an
example if Java EE's build system was easier to deal with we would all
be writing enterprise systems in 5-10 lines of code ;-)...

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



Re: GWT 1.6 with Maven and build system questions/survey...

2009-04-15 Thread Benju

On second though I think I agree with Salvador.  Looking closer at the
Codehaus plugin it should do the job job in the long term.

On Apr 15, 1:20 am, Salvador Diaz diaz.salva...@gmail.com wrote:
    Who agrees that having a solid,
   feature complete Maven plugin from Google would increase adoption of
   GWT faster than anything?

 I think the google team is focusing in the basics first, and that
 implies not being able to deliver all the goodies at the same time, I
 think it all fits rather nicely with the agile mantra: deliver early,
 deliver often. If they tried delivering the Eclipse plugin (and all
 other popular IDEs' plugins for that matter) and the maven plugin at
 the same time they deliver the actual product (GWT) they couldn't
 possibly deliver that often. Not to mention that they don't seem to be
 maven people, they're rather ant users, so why not leave it to the
 community, in true open source spirit, to build the tools they need,
 they even help out when there's something that doesn't work nicely
 with our tools (one of the issues resolved in 1.6 was specifically
 adressed to allow a nicer maven integration), I don't think we can
 possibly ask for more cooperation from them.

  Maybe file an enhancement request?

 I totally agree with Jeff, if you think a great maven plugin would
 help with adoption, why not try the one from the mojo project (which
 is quite nice by the way) and report any issues that you find with it.
 I don't think we can have a more official plugin than that (after all,
 they're the maven experts, not google )

 Cheers,

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



Re: GWT 1.6 with Maven and build system questions/survey...

2009-04-14 Thread Benju

I find it somewhat odd that the GWT team does not just create an
official maven plugin.  They can program the most amazing Java to
Javascript cross compiler, have the most shiny widgets and speedy RPC
services but if people are left in the dark as to how to build the
bloody thing it will never be used!  Who agrees that having a solid,
feature complete Maven plugin from Google would increase adoption of
GWT faster than anything?

I used a great starter application created by Sam Brodkin...

http://code.google.com/p/gwt-maven2-starter-app/

It served as a good starting point for building my application in
Maven2.  I use Teamcity for continuous integration which at this early
stage essentially means building the project, running one unit test,
and spitting out an artifact every time the SVN is updated.

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



GWT 1.6 with Maven and build system questions/survey...

2009-04-09 Thread Benju

I am curious if anybody using Maven+GWT has tried moving to GWT 1.6
yet.  I noticed there is no public repository containing the 1.6
realease only RC, Beta, and Milestones.  I can always manually deploy
GWT to our internal repository but it's a bit of a pain.

Also, if anybody is using GWT+Maven who prefers the Codehaus plugin
and who the Google Code GWT-Maven plugin?  From what I understand
these two Maven plugins are merging in the long term so that only the
Codehaus plugin will be actively developed.

Finally I would also like to post the following question to the GWT
community.  What do you use for setting up your builds?  I've always
been of the opinion that a good build system is of cardinal
importance, especially on larger projects.  At this time I have seen
the following options...

Hand written Ant file
-Calling the GWT compiler directly
-Maven
-with the codehaus plugin (http://mojo.codehaus.org/gwt-maven-
plugin/)
-with the Google Code GWT-Maven plugin (http://code.google.com/p/
gwt-maven/)
-Intellij Idea's built in GWT support
-eclipse with special GWT support (I believe some plugins exist
including the recently released Google one)
-Netbeans gwt4NB (https://gwt4nb.dev.java.net/)

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