MVP app slightly backwards?

2014-04-21 Thread k9mab
I'm working on a GWT app (my first) using MVP architecture with 
views/presenters maybe backwards from sample apps I've been studying. App 
UI will be three side-by-side views into the model always visible, rather 
than being created by presenters on demand. UIBinder is creating the view 
(one so far in one of the three view panels) OK and view buttons do things 
as expected, e.g. popping up dialog boxes etc..

Question is how to create presenters and hook them to the views. Is it 
workable to have the views create/bind the presenters instead of the other 
way around? Otherwise how to create a presenter in the normal way and have 
it find/bind the view that UIBinder has already created?

On another issue, is it possible to coax a SplitLayoutPanel to size its 
boundary widgets using % instead of raw pixels? I'm looking for an easy way 
to have west/center/east widgets be equal width initially and retain 
current width ratios when  the browser window is resized (user might have 
dragged splitters meanwhile).

Thanks y'all...

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Hot Code Replace Failed triggered on any change, even comment change

2009-05-08 Thread k9mab

I had this problem for a while and discovered by accident that it
would go away when I added the @Override tag to my event handler
methods where missing.

Mike


On May 7, 11:06 am, Salvador Diaz  wrote:
> For what is worth, I've had this problem and found out that I could
> just ignore it, the hot code replace still worked.
>
> Cheers,
>
> Salvador
>
> On May 7, 4:58 pm, Alok  wrote:
>
> > I also started to have to same problem. It was running all good before
> > 2 days. Now it complains even for the smallest changes.
> > Please do update the post if any one have any idea.
>
> > On Apr 24, 11:19 am, irc1258  wrote:
>
> > > Versions:
> > > GWT 1.5.x
> > > Eclipse 3.4.1. Build M20090211-1700.
>
> > > Steps To Reproduce:
> > > 1. Invoke a GWT Debug config.
> > > 2. After GWT GUI comes up, make trivial change to code, e.g. modify an
> > > existing
> > > comment.
> > > 3. Save the file. Hot Code Replace Diaglog comes up.
> > > 4. The reason given is: Hot code replace failed - Class modifiers
> > > change not
> > > implemented.
>
> > > More information:
> > > * This problem only started recently. Before with the same project,
> > > this
> > > problem did not occur.
> > > * Another team member working on the same project does not have this
> > > problem.
> > > He is using Eclipse build Version: 3.4.1 Build id: M20080911-1700. I
> > > am using Version:
> > > 3.4.2 Build id: M20090211-1700.
> > > * I submitted this defect to the Eclipse team. They recommended that
> > > it be submitted the GWT team 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to change the base URL for the app in Hosted Mode??

2009-05-05 Thread k9mab

Never mind (I think). Got it working now, returning from CAS auth and
proceeding as expected. Had to specify host/port in several places and
was overlooking one of them. Still gotta tinker and see how http vs
https plays out, but looking better now than it was.

Mike

On May 5, 11:38 am, k9mab  wrote:
> Is it possible to get this to use the actual hostname instead of
> localhost?
>
> I'm trying to tie this into CAS auth filter which redirects to a login
> page on the CAS server, which in turn redirects back to my page after
> auth is successful. I get through the CAS auth ok but the redirect
> back to my app doesn't work. I'm guessing that this is because the CAS
> client on my side is passing a localhost URL to the CAS server and the
> CAS server post-auth redirect back to my app fails because localhost
> doesn't have the same meaning over there.
>
> Mike
>
> On May 4, 11:03 am, Rajeev Dayal  wrote:
>
> > Hey Tim,
>
> > Right now, we have not built functionality into the Eclipse Plugin to detect
> > when you want to launch your app and hit a particular servlet; we only
> > append tohttp://localhost:8080/whenyou perform a right-click launch
> > against a particular file (HTML or JSP).
>
> > To change the default URL for a launch, follow the instructions here (esp.
> > the "GWT Settings" section):
>
> >http://code.google.com/eclipse/docs/running_and_debugging.html
>
> > Rajeev
>
> > On Fri, May 1, 2009 at 11:01 PM, TimOnGmail  wrote:
>
> > > Hi all...
>
> > > When I run a GWT app in Tomcat, I can specify the base URL in the
> > > web.xml, or just by the fact that the webapp is known by the name of
> > > the directory it's in in the webapps directory.
>
> > > However, running in the Eclipse plugin, in hosted mode, it seems it
> > > always runs ashttp://localhost:8080.
>
> > > How can I change it so that it'shttp://localhost:8080/myAppor
> > > something different than the default?
>
> > > - Tim
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to change the base URL for the app in Hosted Mode??

2009-05-05 Thread k9mab

Is it possible to get this to use the actual hostname instead of
localhost?

I'm trying to tie this into CAS auth filter which redirects to a login
page on the CAS server, which in turn redirects back to my page after
auth is successful. I get through the CAS auth ok but the redirect
back to my app doesn't work. I'm guessing that this is because the CAS
client on my side is passing a localhost URL to the CAS server and the
CAS server post-auth redirect back to my app fails because localhost
doesn't have the same meaning over there.

Mike

On May 4, 11:03 am, Rajeev Dayal  wrote:
> Hey Tim,
>
> Right now, we have not built functionality into the Eclipse Plugin to detect
> when you want to launch your app and hit a particular servlet; we only
> append tohttp://localhost:8080/when you perform a right-click launch
> against a particular file (HTML or JSP).
>
> To change the default URL for a launch, follow the instructions here (esp.
> the "GWT Settings" section):
>
> http://code.google.com/eclipse/docs/running_and_debugging.html
>
> Rajeev
>
> On Fri, May 1, 2009 at 11:01 PM, TimOnGmail  wrote:
>
> > Hi all...
>
> > When I run a GWT app in Tomcat, I can specify the base URL in the
> > web.xml, or just by the fact that the webapp is known by the name of
> > the directory it's in in the webapps directory.
>
> > However, running in the Eclipse plugin, in hosted mode, it seems it
> > always runs ashttp://localhost:8080.
>
> > How can I change it so that it'shttp://localhost:8080/myAppor
> > something different than the default?
>
> > - Tim
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Minor documentation error

2009-04-21 Thread k9mab

Found a small documentation error, not sure how to report it. Would
someone be good enough to pass this on via the proper channels?

http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html

First example in Events and Handlers section has the wrong signature
for onClick(). Should be ClickEvent event instead of Widget sender.

Thanks.

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