RequestFactory cannot find Entity

2011-08-29 Thread Rud
I have been experiencing something strange with ReuqestFactory. Some
detials:

Helios Eclipse
GWT 2.3 / GAE 1.5.1
JDK 1.6

I have a Person with PersonProxy and PersonRequest. These use the
simple @ProxyFor(Person.class) and @Service(Person.class).

I started up Eclipse and before doing anything else ran the
application. It ran fine. I've been trying to get something working on
the server side so added a jar to the Refed libs and copied it to the
WAR.

I get the meesage that PersonProxy and PersonRequest (they are in
us.k5rud.shared) cannot find Person (in us.k5rud.domain).These are
compile errors, not run-time errors.  That worked fine a minute ago.

I move Person to us.k5rud.shared. It works but I've been experiencing
this issue at other times so want to know why it occurs so try
us.k5rud.shared.domain.Person. Can't find when it runs or if I do a
compile. Move it back to just us.k5rud.shared. That doesn't work until
I do a compile.

I have done Project | clean on each of these. Also shut down the
running development mode instance and restarted a fresh version.

Sometimes the Proxy  Request classes cannot find the entity with the
auto build and I get errors then. Sometimes it doesn't show up until I
run the app. It is just very flaky so anyone have 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-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: RequestFactory cannot find Entity

2011-08-29 Thread Rud
No, the error cannot be ignored. The app will not run when the error
is generated. The error occurs not only with auto-build but also when
running the app or doing a GWT compile.

On Aug 29, 4:41 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On Monday, August 29, 2011 8:54:12 PM UTC+2, Rud wrote:

  I have been experiencing something strange with ReuqestFactory. Some
  detials:

  Helios Eclipse
  GWT 2.3 / GAE 1.5.1
  JDK 1.6

  I have a Person with PersonProxy and PersonRequest. These use the
  simple @ProxyFor(Person.class) and @Service(Person.class).

  I started up Eclipse and before doing anything else ran the
  application. It ran fine. I've been trying to get something working on
  the server side so added a jar to the Refed libs and copied it to the
  WAR.

  I get the meesage that PersonProxy and PersonRequest (they are in
  us.k5rud.shared) cannot find Person (in us.k5rud.domain).These are
  compile errors, not run-time errors.  That worked fine a minute ago.

 You might be 
 experiencinghttp://code.google.com/p/google-web-toolkit/issues/detail?id=5587but
  you
 can safely ignore the 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-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: RequestFactory cannot find Entity

2011-08-29 Thread Rud
Yes, I could bypass the error but when the app attempts to perform the
RequestFactory activities it throws exceptions that Person cannot be
found. The Person data is not saved or retrieved.

I'll try the other version of the annotation. Of course, since posting
this message it has behaved itself.

On Aug 29, 5:10 pm, Thomas Broyer t.bro...@gmail.com wrote:
 But can't you bypass the error and continue with the DevMode launch?

 Workaround: replace @ProxyFor with @ProxyForName.

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



Re: Basic Requestfactory Example

2011-08-06 Thread Rud
My thanks also for having a clean, simple example.

Rud

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



Re: Basic Requestfactory Example

2011-08-06 Thread Rud
My thanks also for having a clean, simple example.

Rud

-- 
You received 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: DockLayoutPanel inside UiBinder requires height=100%

2010-11-04 Thread Rud
More specifically it needs to be inside a layout panel of some type,
or reference as a RootLayoutPanel. Any of the layout panels have this
requirement.

Rud
http://www.MysticLakeSoftware.com

On Nov 4, 9:29 pm, Jeff Schnitzer j...@infohazard.org wrote:
 This may save someone the ~4 hours it cost me:

 Can't figure out why your DockLayoutPanel doesn't render when you
 place it anywhere except *directly* inside a RootLayoutPanel?  It
 needs height=100%:

 g:FlowPanel
         g:DockLayoutPanel unit=PX height=100%
                 ...
         /g:DockLayoutPanel
 /g:FlowPanel

 Without this height, DockLayoutPanels inside any other widget
 (including nested DockLayoutPanels) collapse to 0.

 Today sucked.

 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: Cannot found source in GWT Project

2010-10-27 Thread Rud
I mentioned the same problem in
http://groups.google.com/group/google-web-toolkit/browse_frm/thread/48d776e472cffd05#

I tried the DynaTableRF project for learning RequestFactory. I created
an Eclipse project, deleted the Greeting stuff and copied the SRC 
WAR from the DTRf project. Then made all the adjustments to get
everything to compile. (Don't recall details but maybe adding libs,
etc.) I was left with the cannot find errors from the RequestFactory
classes.

I also had GWT Designer installed. I just uninstalled Designer and the
errors have gone away.

This should give you a text case project.

Rud
http://www.mysticlakesoftware.com

On Oct 27, 8:37 am, Eric Clayberg clayb...@google.com wrote:
 It would be helpful to see a test case project that wil reproduce
 this.

 On Oct 25, 9:59 am, AlexG alexander.gauss.ax...@googlemail.com
 wrote:







  Okay,

  the problem is solved.

  The problem was the GWT Designer, the new Enhanced Compilation
  feature.
  I uninstalled the GWT Desginer and the Erros are gone now.

  Greets
  Alex

  On 25 Okt., 15:08, AlexG alexander.gauss.ax...@googlemail.com wrote:

   Thanks for your reply,

   so you can say, it´s a bug in the plugIn?

   I don´t get any Errors when I GWT compile, I have lots of Errors now
   on several of my Projects, but everything seems to work as intended.
   I think it´s very strange.
   my collegue has the same Errors now too. We don´t know why they
   appear.
   I can only imagine a bug.

   Greets
   Alex

   On 25 Okt., 14:45, bodyboarder20 shieldsja...@gmail.com wrote:

We had the same problem w/ both the recent download of the GWT 2.1 SDK
as well as the plugin w/ STS.  The fix was to download the 2.1
snapshot and drop that into the folder for the SDK plugin (you can
find the path inside of the error message you receive when you GWT
compile).

Odd that nobody else reported this We found it on the CellView
package...

On Oct 25, 3:47 am, AlexG alexander.gauss.ax...@googlemail.com
wrote:

 Hi all,

 I am trying the RequestFactory since RC1 release. It seems, that
 everything was working fine, but since
 yesterday, I get strange Erros in only one of my Projects:

 mypackage.MyClass can not be found in source packages. Check the
 inheritance chain from your module; it may not be inheriting a
 required module or a module may not be adding its source path entries
 properly

 The Error is appearing at the @ProxyFor and the @Service annotation.
 The package, of the classes are:
 server.domain, the packages of the request and proxy
 are: client.request

 I don´t know, why Eclipse is saying, that the source code is missing,
 I means it´s the same Project??

 Strange is to, that the Project is running in DeveleopementMode and I
 deployed it too, and it works withoutt any
 Errors.

 Does anybody have an idea, whats going wrong?

 Thanks, Greets
 Alex

-- 
You received 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: DynaTableRf fails - GWT Designer case of RequestFactory Problem

2010-10-27 Thread Rud
Please see the thread Cannot found source in GWT Project I
uninstalled Designer and this solved my problem with the project:

Rud
http://www.mysticlakesoftware.com

On Oct 26, 3:48 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 26 oct, 08:18, Rud rudmerr...@gmail.com wrote:

  Working to understand the RequestFactory with the DynaTableRf sample.
  Problem is the @ProxyFor ad @Service annotations all have errors about
  not finding the associated classes, e.g. Address, Person,
  SchoolCalendarService. Error is:

  com.google.gwt.sample.dynatablerf.domain.Address can not be found in
  source packages. Check the inheritance chain from your module; it may
  not be inheriting a required module or a module may not be adding its
  source path entries properly.

  Suggestions on making this work?

 Have you compiled the Java classes (with javac) and ensured they are
 in the classpath?

 (the error message would be misleading but it could be the cause:
 actually not finding the compiled class, not the source)

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



Re: 2.1 RC1 Logging Question

2010-10-27 Thread Rud
Thanks for thinking about this but, no, I am not using Roo. It looks
like a GAE or Jetty issue.

Rud


On Oct 27, 1:20 pm, unnurg unn...@google.com wrote:
 Are you using the Roo/RequestFactory stuff? The
 RequestFactoryLogHandler takes a level in it's constructor, and it
 doesn't send messages below that level across the wire - I believe
 that in DynaTableRF and the generated roo scaffold app, WARNING is the
 default level that is passed in.

 - Unnur

 On Oct 25, 9:58 am, Rud rudmerr...@gmail.com wrote:







  This is also mentioned over in the GAE 
  group:http://groups.google.com/group/google-appengine-java/browse_frm/threa...

  I just tested the GAE 1.3.7 and 1.3.8 libraries. The .7loggingworks
  but the .8 does not.

  Rudhttp://www.mysticlakesoftware.com

  On Oct 25, 8:40 am, madein mbukarew...@gmail.com wrote:

   Hi Rud,
   I have the same problem with my env. I've recently spent a number of
   hours trying to find root cause or workaround but without success...
   I've also created completely new HelloWorld project to confirm that
   sarver-sideloggingis not working - logs are printed out only for
   warnings and severe levels.

   Today I've reverted my project to Gwt2.0.3 and... logs work again.

   If I'm missing something could you guide me how to makeloggingback?
   Otherwise feel free to issue TR/bug on my behalf  ;)

   Cheers,
   /m

   On Oct 25, 5:10 am, Rud rudmerr...@gmail.com wrote:

I have server sideloggingworking in my application but cannot
control the level except for WARNING and SEVERE inlogging.properties.
I have a 'warn' and 'info' levelloggingmessage. If I set SEVERE,
nothing shows in the log. If I set anything else then the 'warn' is
output but not the 'info'. This is true even if I put FINE or FINEST
as the level in the properties.

I also tried setting the level programatically but without success.

Am I missing something?

This is on my machine in development mode, not live on the web.

Rudhttp://www.mysticlakesoftware.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.



Learning RequestFactory but DynaTableRf fails

2010-10-26 Thread Rud
Working to understand the RequestFactory with the DynaTableRf sample.
Problem is the @ProxyFor ad @Service annotations all have errors about
not finding the associated classes, e.g. Address, Person,
SchoolCalendarService. Error is:

com.google.gwt.sample.dynatablerf.domain.Address can not be found in
source packages. Check the inheritance chain from your module; it may
not be inheriting a required module or a module may not be adding its
source path entries properly.

Suggestions on making this work?

Rud
http://www.mysticlakesoftware.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: Learning RequestFactory but DynaTableRf fails

2010-10-26 Thread Rud
I am using Eclipse Helios with automatic build so I assumed everything
is being compiled. But I did a GWT compile which didn't change
anything.

Then I tried adding   source path=domain/ to the gwt.xml and that
fixed all but SchoolCalendarService which is in 'server'. Surely don't
want to add 'server' to the gwt.xml. Is SchoolCalendarService in the
wrong package?

So where are you supposed to put domain classes in the build tree?

Just last night I retrieved the project files from the SVN trunk so it
would appear the project may need some modifications before the
release.

Rud
http://www.mysticlakesoftware.com

On Oct 26, 3:48 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 26 oct, 08:18, Rud rudmerr...@gmail.com wrote:

  Working to understand the RequestFactory with the DynaTableRf sample.
  Problem is the @ProxyFor ad @Service annotations all have errors about
  not finding the associated classes, e.g. Address, Person,
  SchoolCalendarService. Error is:

  com.google.gwt.sample.dynatablerf.domain.Address can not be found in
  source packages. Check the inheritance chain from your module; it may
  not be inheriting a required module or a module may not be adding its
  source path entries properly.

  Suggestions on making this work?

 Have you compiled the Java classes (with javac) and ensured they are
 in the classpath?

 (the error message would be misleading but it could be the cause:
 actually not finding the compiled class, not the source)

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



Re: 2.1 RC1 Logging Question

2010-10-25 Thread Rud
This is also mentioned over in the GAE group:
http://groups.google.com/group/google-appengine-java/browse_frm/thread/cdd1134573efbfd0/6bfb8ca3c2eae157#6bfb8ca3c2eae157

I just tested the GAE 1.3.7 and 1.3.8 libraries. The .7 logging works
but the .8 does not.


Rud
http://www.mysticlakesoftware.com

On Oct 25, 8:40 am, madein mbukarew...@gmail.com wrote:
 Hi Rud,
 I have the same problem with my env. I've recently spent a number of
 hours trying to find root cause or workaround but without success...
 I've also created completely new HelloWorld project to confirm that
 sarver-side logging is not working - logs are printed out only for
 warnings and severe levels.

 Today I've reverted my project to Gwt2.0.3 and... logs work again.

 If I'm missing something could you guide me how to make logging back?
 Otherwise feel free to issue TR/bug on my behalf  ;)

 Cheers,
 /m

 On Oct 25, 5:10 am, Rud rudmerr...@gmail.com wrote:



  I have server side logging working in my application but cannot
  control the level except for WARNING and SEVERE in logging.properties.
  I have a 'warn' and 'info' level logging message. If I set SEVERE,
  nothing shows in the log. If I set anything else then the 'warn' is
  output but not the 'info'. This is true even if I put FINE or FINEST
  as the level in the properties.

  I also tried setting the level programatically but without success.

  Am I missing something?

  This is on my machine in development mode, not live on the web.

  Rudhttp://www.mysticlakesoftware.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: TabLayoutPanel with Activity

2010-10-11 Thread Rud
Arrgggh!!! That was it. I would have sworn I tried that. I know I did
on everything else that makes up the panel.

@Falcon - it did work with a %. Not disputing your assertion, just
stating my experience. This panel is so useful but strange...

Rud
http://www.mysticlakesoftware.com

On Oct 11, 8:35 am, Richard Allen richard.l.al...@gmail.com wrote:
 Try setting the CSS height property to 100% on the TabLayoutPanel.

 -Richard

 On Oct 10, 11:13 pm, Rud rudmerr...@gmail.com wrote:



  On further exploration I find that the overflow is not the culprit.
  I compared the information in the developer tools for the working and
  non-working versions. In the working version the 'div' containing the
  tabLayoutPanel  style as position: absolute and some other styles
  applied. In the non-working version it has position: relative and no
  other styles. That is applied as the element style so it is not
  changeable by style inheritance. Disabling the relative displays the
  data.

  I replaced the tabLayoutPanel with some others but they don't show the
  same change on the 'div'.

  Rudhttp://www.mysticlakesoftware.com

  On Oct 9, 9:25 pm, Rud rudmerr...@gmail.com wrote:

   I converted my application to work with the M3 activities. It has a
   DockLayoutPanel and 'center' has a TabLayoutPanel. All the other
   panels work fine through the Activity and Mapper process. The
   TabLayoutPanel show the tabs but not the panels below it. If I go into
   Chrome developer tools I see that all the panels have 'overflow:
   hidden' set. If I disable the hidden style a panel appears.

   I made the small changes necessary for the TabLayoutPanel to be
   directly in 'center' and it works fine.

   I further investigate by looking at the TabLayoutPanel code and it
   appears selectTab(0) is being called during initialization,  the first
   tab is highlighted, the panel setWidgetVisible(0,true) is called, but
   the panel not displayed.

   Any thoughts or suggestions?

   Rudhttp://www.mysticlakesoftware.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: how to get rid of GWT Code Server Disconnected (solved)

2010-10-11 Thread Rud
You can also find all the information in the Development view in
Eclipse.

Rud


On Oct 11, 5:20 pm, Ray Tayek rta...@ca.rr.com wrote:
 At 03:09 PM 10/11/2010, you wrote:

 hi, when things go south, i am getting this get this big grey thing
 that says: GWT Code Server Disconnected  which hides the log stiff
 and my html stuff.

 i have poor vision, is there some way to get rid of  ...

 seems like i shoud be able to: In Firebug or any developer tool, set
 display:none on the DIV.

 thanks

 ---
 co-chairhttp://ocjug.org/

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



Development view Open / Open With don't work

2010-10-10 Thread Rud
I am using the GWT plugin in Eclipse but seeing different behariors on
two machines. On one machine after running my app the development view
open / open with menu brings up the application in a browser. On the
other machine it won't. Instead I have to do the copy URL and past
it into the browser.

Both machines are running the same version of Eclipse and OS (Win XP
SP3) with Explorer and Chrome installed. Neither browser is invoked
with the 'open with'.

Any ideas why the difference?

Rud
http://www.mysticlakesoftware.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: Uibinder DockLayoutPanel StackLayoutPanel problem

2010-10-10 Thread Rud
Not sure I fully understand what you want but I was able to modify my
'west' panel to add a button after the stacklayoutpanel. It may be you
need to add some size controls but couldn't tell if that was the issue
from your description. Here is what I have:

g:LayoutPanel width=100% height='100%'
g:layer top='2em' bottom='0'
g:Label addStyleNames={style.center}
Label Categories
/g:Label
/g:layer

g:layer top='4em' bottom='10%'
g:StackLayoutPanel ui:field=stackLayout unit='EM'
g:stack
g:header size='2' Lorem ipsum 
/g:header
g:VerticalPanel ui:field=vertPanel
g:Label dignissim /g:Label
g:Label qui blandit /g:Label
g:Label praesent luptatum 
/g:Label
/g:VerticalPanel
/g:stack

g:stack
g:header size='2' Duis autem  
/g:header
g:VerticalPanel
g:Labelnonummy /g:Label
g:Labeladipiscing/g:Label
g:Labelnostrud/g:Label
g:Labelullamcorper/g:Label
g:Labelconvallis/g:Label
/g:VerticalPanel
/g:stack

g:stack
g:header size='2' Donec 
pellentesque/g:header
g:VerticalPanel
g:Labeldolore/g:Label
/g:VerticalPanel
/g:stack

/g:StackLayoutPanel
/g:layer
g:layer top='90%' bottom='0'
g:Buttonsubmit/g:Button
/g:layer
/g:LayoutPanel

Rud
http://mysticlakesoftware.com

On Oct 10, 2:36 pm, giannisdag pascoua...@gmail.com wrote:
 Hi I have set the following structure in UiBinder:

         g:DockLayoutPanel unit='EM'
                 g:north size='10'
                 /g:north
                 g:center
                 g:StackLayoutPanel unit='EM'
                  g:stack
                    g:header size='3'ÐñïóùðéêÜ óôïé÷åßá/g:header
                 g:HTMLPanel
                 /g:HTMLPanel
                  /g:stack
                 /g:StackLayoutPanel
                 /g:center
                 g:south size='4'g:HTMLPanelsouth/g:HTMLPanel
                 /g:south
         /g:DockLayoutPanel

 It is not exactly the real one, but a simple example of it. It is a
 registration form where the fields are in the StackLayoutPanel, so I
 want to have a save button, which will be pushed to save the data. I
 wanted it to be after the StackLayoutPanel. But whether I have used
 g:HtmlPanel or g:LayoutPanel in different ways, between center/
 center the StackLayoutPanel doesn' t seem to work.  I have noticed,
 that there is an element.style that gets value position=relative in
 StackPanel, when I am using g:HTMLPanel. Has someone faced a same
 situation to give me a clue? The main issue is that when I use the
 center/center I cannot use the StackLayoutPanel with other divs to
 design the interface.

-- 
You received 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: TabLayoutPanel with Activity

2010-10-10 Thread Rud
On further exploration I find that the overflow is not the culprit.
I compared the information in the developer tools for the working and
non-working versions. In the working version the 'div' containing the
tabLayoutPanel  style as position: absolute and some other styles
applied. In the non-working version it has position: relative and no
other styles. That is applied as the element style so it is not
changeable by style inheritance. Disabling the relative displays the
data.

I replaced the tabLayoutPanel with some others but they don't show the
same change on the 'div'.


Rud
http://www.mysticlakesoftware.com


On Oct 9, 9:25 pm, Rud rudmerr...@gmail.com wrote:
 I converted my application to work with the M3 activities. It has a
 DockLayoutPanel and 'center' has a TabLayoutPanel. All the other
 panels work fine through the Activity and Mapper process. The
 TabLayoutPanel show the tabs but not the panels below it. If I go into
 Chrome developer tools I see that all the panels have 'overflow:
 hidden' set. If I disable the hidden style a panel appears.

 I made the small changes necessary for the TabLayoutPanel to be
 directly in 'center' and it works fine.

 I further investigate by looking at the TabLayoutPanel code and it
 appears selectTab(0) is being called during initialization,  the first
 tab is highlighted, the panel setWidgetVisible(0,true) is called, but
 the panel not displayed.

 Any thoughts or suggestions?

 Rudhttp://www.mysticlakesoftware.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.



TabLayoutPanel with Activity

2010-10-09 Thread Rud
I converted my application to work with the M3 activities. It has a
DockLayoutPanel and 'center' has a TabLayoutPanel. All the other
panels work fine through the Activity and Mapper process. The
TabLayoutPanel show the tabs but not the panels below it. If I go into
Chrome developer tools I see that all the panels have 'overflow:
hidden' set. If I disable the hidden style a panel appears.

I made the small changes necessary for the TabLayoutPanel to be
directly in 'center' and it works fine.

I further investigate by looking at the TabLayoutPanel code and it
appears selectTab(0) is being called during initialization,  the first
tab is highlighted, the panel setWidgetVisible(0,true) is called, but
the panel not displayed.

Any thoughts or suggestions?

Rud
http://www.mysticlakesoftware.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: Where can I find documentation to GWT MVP comming with version 2.1

2010-10-07 Thread Rud
I appreciate the example Daniel. As an experiment I used UiBinder to
replace the User panel. That was straightforward. The UiBinder class
code for those interested is posted at the end of the message.

I am now trying to move the framework into my application but without
success. My app has a DockLayoutPanel and for the 'east' panel I put
in an HTMLPanel with some text so I could see if it was there. When I
do a PlaceController 'goto' to replace that panel with my desired
panel nothing changes. I stepped through all the activity, mapper and
other code but don't see anything awry.

What I think I is happening is that the new activity / display is
getting handled properly but it isn't actually getting into the
DockLayoutPanel east item. I think I need to get the existing east
panel and add my UI class to it but don't see how to get the east
panel.

Another question is how to get activityManager.setDisplay to accept a
Ui binder class. The Ui binder class implements Activity.Display but
setDisplay wants just a Display. Casting results in a runtime error.

Any suggestions?? Anyone??

Rud
http://mysticlakesoftware.com




public class UserUi extends Composite implements
UserActivity.UserDisplay {
private static UserUiUiBinder uiBinder =
GWT.create(UserUiUiBinder.class);
interface UserUiUiBinder extends UiBinderWidget, UserUi {}
public UserUi() {
initWidget(uiBinder.createAndBindUi(this));
}

@Override
public Widget asWidget() {
return this;
}
}


On Sep 30, 3:13 pm, Daniel kurka.dan...@googlemail.com wrote:
 I just wrote a blog post about gwt 2.1 m3 mvp, containing a small
 example how to use activities and activitiesmappers:

 http://blog.daniel-kurka.de/2010/09/testdriving-gwt-mvp-from-gwt-21-m...


-- 
You received 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: Where can I find documentation to GWT MVP comming with version 2.1

2010-10-07 Thread Rud
Okay, got it to work but it feels ugly.

In my 'east' I put a class SimpleDisplayUi which is a UiBinder class.
Its ui.xml just has a SimplePanel.

The trick was in SimpleDisplayUi.showActivityWidget(IsWidget widget)
to do

simplePanel.setWidget(widget.asWidget());

It seems there are two many layers from DockLayoutPanel  to 'east' to
SimpleDisplayUi to SimplePanel and finally to the actual panel(s) that
can be changed.

There are a Activity classes that seem superfluous like SimpleActivity
just to create SimpleDisplayUi. It doesn't get created or called.

I'll look at cleaning this up but getting SimpleDisplayUi working was
painful so I'm not sure there is much leeway. Just look at its
declaration:

public class SimpleDisplayUi extends Composite implements
SimpleActivity.SimpleDisplayUi, Display { }

Rud
http://mysticlakesoftware.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.



GWT M3 StackLayoutPanel Styles

2010-10-02 Thread Rud
I've gone through all the old messages on putting style on this panel
and read
http://code.google.com/p/google-web-toolkit/issues/detail?id=4429
which, I got the impression, was supposed to make styles work.

I can't seem to figure out how. Since TabLayoutPanel had similar
problems and I want to use it, also, I'm asking for help on this. The
important part is for the background to match my overall page
background, which isn't white.

I am working with UiBinder.

In the stack I have a VerticalPanel containing a Label. I can style
the Label but it is left with white around the edges. Some of the
style set on VerticalPanel is inherited by the lable, e.g. text bold.

I've tried overriding gwt-StackLayoutPanelContent in the main CSS. It
will change text boldness but not the background color.

Any suggestions on how I can make this work?

Rud
http://MysticLakeSoftware.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: GWT M3 StackLayoutPanel Styles

2010-10-02 Thread Rud
No, the alternate themes don't help because they all set a background
color.

What happens is my override of gwt-StackLayoutPanelContent is applied
and then the theme gwt-StackLayoutPanelContent is applied which undoes
my styles. I looked at it last night (instead of going to bed) using
the Chrome browser developer tools and found this is what is
happening.

I would think my styles should be applied last.


Rud
http://MysticLakeSoftware.com

On Oct 2, 1:49 am, Y2i yur...@gmail.com wrote:
 May be com.google.gwt.user.theme.dark/chrome in gwt-usr.jar will help?

 On Oct 1, 11:33 pm, Rud rudmerr...@gmail.com wrote:



  I've gone through all the old messages on putting style on this panel
  and readhttp://code.google.com/p/google-web-toolkit/issues/detail?id=4429
  which, I got the impression, was supposed to make styles work.

  I can't seem to figure out how. Since TabLayoutPanel had similar
  problems and I want to use it, also, I'm asking for help on this. The
  important part is for the background to match my overall page
  background, which isn't white.

  I am working with UiBinder.

  In the stack I have a VerticalPanel containing a Label. I can style
  the Label but it is left with white around the edges. Some of the
  style set on VerticalPanel is inherited by the lable, e.g. text bold.

  I've tried overriding gwt-StackLayoutPanelContent in the main CSS. It
  will change text boldness but not the background color.

  Any suggestions on how I can make this work?

  Rudhttp://MysticLakeSoftware.com- 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: GWT M3 StackLayoutPanel Styles - A Solution

2010-10-02 Thread Rud
Okay, I worked out a solution that is relatively painless.

I copied the TabLayout and StackLayout styles from the standard styles
and put them into a file ot_styles.css. I got that to work with the
simple expedient of putting the file in the WAR with the base HTML and
CSS files and adding

  stylesheet src='../ot_styles.css'/

into the ot.gwt.xml file. Not pretty but it worked. (Actually there
was even uglier kludge before that.)

The I poked around in the history of discussions here which resulted
in a cleaner solution.

Created a folder src/com/ot/public, e.g. in the same directory as the
ot.gwt.xml file. The ot_styles.css file got put into the public
folder. Then the ot.gwt.xml file got changed to have:

  stylesheet src='ot_styles.css'/

I think an even cleaner solution is using CSSResources because right
now the ot_styles.css gets copied to the WAR directory with all the
comments left in place. The CSSResources solution I think will strip
the comments.

Rud
http://MysticLakeSoftware.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: GWT 2.1M3 Expenses

2010-09-16 Thread Rud
The missing class is:

java.lang.NoClassDefFoundError: org/json/JSONException

It confused me that it was an exception class. Made me think the
exception was reporting the missing class instead of it being the
missing class.

No, I didn't have the json jar in the class path but adding it hasn't
helped. But I'm uncertain I the classpath setup properly.

I'm running Windows so set a global environment variable pointing to
where to the json jar file.

I'm using Eclipse so I included the json jar in the build path. Is
that necesary or appropriate?

Is the json jar class path needed for the Jetty web server to find it?
Is it a jar that would be in the GAE server, i.e. doesn't have to be
included in my project upload?

Or am I totally lost?

My main background is C++ with some dabbling in Java a few years ago.
I switched to Java and Eclipse for Android development and now trying
to absorb it all for GWT/GAE. As a result I get pretty deep into some
aspects of all this and then some obvious Java/Eclipse piece trips
me.

Thanks,
Rud K5RUD


On Sep 16, 10:45 am, David Chandler turboman...@gmail.com wrote:
 Which class is not found? Do you have json-20090211.jar in your
 classpath?

 /dmc

 On Sep 16, 1:38 am, Rud rudmerr...@gmail.com wrote:



  Thomas,

  Thanks, that let me make some headway but not there yet. My web.xml
  now has:

  servlet
     servlet-namerequestFactory/servlet-name
     servlet-
  classcom.google.gwt.requestfactory.server.RequestFactoryServlet/
  servlet-class
        init-param
          param-nameuserInfoClass/param-name
          param-valueus.k5rud.scaffold.server.GaeUserInformation/param-
  value
        /init-param
  /servlet

  and it is finding the GaeUser... class because if I munge its name it
  gives me a not found error.

  What I have now is a 500 error retured with a JSON Exception about not
  finding the class definition. The class RequestFactoryServlet is at
  line 82:

          RequestProcessorString requestProcessor = new
  JsonRequestProcessor();

  Any ideas?

  Appreciate the help...

  Rud k5rudhttp://www.mysticlakesoftware.com/- 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: GWT 2.1M3 Expenses

2010-09-16 Thread Rud
Thanks...that fixed it after I also added javax.validation.

On to further explorations...

Rud k5rud
http://www.mysticlakesoftware.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.



GWT 2.1M3 Expenses

2010-09-15 Thread Rud
I got the Expenses example from the repository. I stipped it down to
just the Scaffold portiong to try understanding the new architecture.
I got it running so it would put up the web page but with, obviously,
no support for actions.

Around line 80 of Scaffold.jave I enabled the line which requests user
information. It stopped working so I split the line into:

UserInformationRequest uir =
requestFactory.userInformationRequest();
String href = Location.getHref();
RecordRequest UserInformationRecord rr =
uir.getCurrentUserInformation(href);
rr.fire(receiver);

They all execute but at the call to 'fire' it dies with an error that
the gwtRequest cannot be found. This is a servlet request but I
cannot find a servlet in the code. The GaeUserInformation class would
appear to be what is needed but it isn't a servlet. Nothing else in a
'server' direcotry references user information.

Is there something new in the way of getting user information under
2.1M3 or AppEngine 1.3.6?

Any suggestions on how to proceed? This shouldn't be critical since it
isn't part of the new architecture but frustrating not to understand
what is a happening.

Rud K5RUD

-- 
You received 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 2.1M3 Expenses

2010-09-15 Thread Rud
Thomas,

Thanks, that let me make some headway but not there yet. My web.xml
now has:

servlet
   servlet-namerequestFactory/servlet-name
   servlet-
classcom.google.gwt.requestfactory.server.RequestFactoryServlet/
servlet-class
  init-param
param-nameuserInfoClass/param-name
param-valueus.k5rud.scaffold.server.GaeUserInformation/param-
value
  /init-param
/servlet

and it is finding the GaeUser... class because if I munge its name it
gives me a not found error.

What I have now is a 500 error retured with a JSON Exception about not
finding the class definition. The class RequestFactoryServlet is at
line 82:

RequestProcessorString requestProcessor = new
JsonRequestProcessor();

Any ideas?

Appreciate the help...

Rud k5rud
http://www.mysticlakesoftware.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.