Thanks to all your help: german census results online

2013-06-03 Thread tanteanni
Hi there,

https://ergebnisse.zensus2011.de/?locale=en shows not only germany's census 
results but it is also a gwt in life example. For me it was my first big 
public web project. The best of all choices i did was to take gwt. It was a 
steep learning curve but you all helped much especially with all new 
patterns for us like: mvp, activities  places, di (with guice/gin)


-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Thanks to all your help: german census results online

2013-06-03 Thread tanteanni
Jens i remember you as one of the guys that helped much with all those new 
patterns. So you have your part on this census results page :-).

Am Montag, 3. Juni 2013 10:19:18 UTC+2 schrieb Jens:

 Well done :)

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Thanks to all your help: german census results online

2013-06-03 Thread tanteanni
chart: eclipse birt (very ugly - generated api, but very flexible dynamic 
svg output)
pdf: iText (newer versions must be licensed)
excel: apache poi

Am Montag, 3. Juni 2013 14:39:54 UTC+2 schrieb Lexis Nexis:

 Which libraries are being used for chart, pdf and excel?

 On Monday, June 3, 2013 3:42:43 AM UTC-4, tanteanni wrote:

 Hi there,

 https://ergebnisse.zensus2011.de/?locale=en shows not only germany's 
 census results but it is also a gwt in life example. For me it was my first 
 big public web project. The best of all choices i did was to take gwt. It 
 was a steep learning curve but you all helped much especially with all new 
 patterns for us like: mvp, activities  places, di (with guice/gin)




-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: In page (html) anchors don't work - they interfere with history tokens

2012-10-05 Thread tanteanni
thx i'll try it,

until now i thought normal html works flawlessly within gwt webapp but in 
this case i am disabused.

On Saturday, 22 September 2012 17:09:30 UTC+2, Andrei wrote:

 Something like this:

 myHTMLWidget.addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent event) {
 event.preventDefault();
 Element e = Element.as(event.getNativeEvent().getEventTarget());
 if (e.getAttribute(href).contains(#)) {
 e.scrollIntoView();
 }
 }
 });


 On Saturday, September 22, 2012 10:46:40 AM UTC-4, Andrei wrote:

 I think it is possible to attach a single ClickHandler to the HTML widget 
 containing the HTML document. When clicked call preventDefault(), as Jen 
 suggested, look at the source of the click, and if it is your anchor, 
 scroll to the cursor position.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5TqD_blgA54J.
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: In page (html) anchors don't work - they interfere with history tokens

2012-10-05 Thread tanteanni
can you explain how to use the html5 feature you mentioned?

On Friday, 21 September 2012 16:55:51 UTC+2, Jens wrote:

 Have you tried to attach an event listener (DOM.addEventListener()) to 
 these anchors and call ClickEvent.preventDefault() when you click on them? 
 That could suppress the history change and you can scroll your html 
 document yourself by reading the href attribute and searching the anchor 
 you need to scroll to. But don't forget to remove the event listener if you 
 don't need the html anymore.

 If ClickEvent.preventDefault() does not work you need to modify your 
 anchors to

 a data-scrollTo=chapter1 class=linkStyleChapter 1/a

 or use div instead of a because you can't use href anyways. So remove 
 the href attribute and put the information in a custom attribute. Your 
 click handler would use the custom attribute to get the information where 
 to scroll to.

 Obviously you have to do the scrolling yourself 
 (Element.scrollIntoView()). 

 In modern browsers you could maybe use HTML5 pushState instead of hash 
 tokens for history management. In that case you probably don't have to 
 change anything in your html document. But if you want IE compatibility 
 this is not an option.

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/OzTJMeImcK4J.
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.



In page (html) anchors don't work - they interfere with history tokens

2012-09-21 Thread tanteanni
This question could also be answered 
herehttp://stackoverflow.com/questions/12509969/gwt-and-in-page-hyperlinks-chapter3-interfere-with-history-tokens
  
:-).
I want to add a html-document to a view. the html page contains an toc with 
anchors a href=#Chapter1Chapter 1/a and a name=Chapter1Chapter 
1/a (very oldschool html). The problem is that on click on an item in toc 
gwt interprets this as goTo(Place with token chapter1) - the link is 
interpreted as adress to webapp/#chapter1  and this obviously fails.
So how to add such html to a gwt widget and make the anchors work as 
expected (probably all anchors must be modified in some way?)? in meantime 
i tried wrapping the html in a frame - with no avail.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lkA18rN3xRIJ.
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 send images with image map to client and create widget with it

2012-09-17 Thread tanteanni
thx,

especially for the security hint.

On Friday, 14 September 2012 16:45:29 UTC+2, Jens wrote:

 So for each image to server requests are necessary: 

 1 to get the dto and create html with image-url 
 2 to get the image from servlet


 Yes, although the second request is done by the browser and not by your 
 GWT app. To remove the browser request, you would need to use data uris 
 (base64) and use the data uri instead of the server url. But as you said, 
 you don't want that.

 Just be aware of XSS attacks. A possible man in the middle attack could 
 probably modify the raw html while its send from server to client. The html 
 would then contain some evil javascript that will be executed by the 
 browser in your app's context as soon as you render the html.

 -- J.


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



How to send images with image map to client and create widget with it

2012-09-14 Thread tanteanni
On server side i have a lib (can be modified) that produces png images and 
corresponding imagemap for mouse hover titles. But how to use them with 
gwt? I already have a little servlet that could png-images to client (on 
client side gwt Image objects are created and added to widgets).
Due to compatibility concerns and user friendliness i don't want to use 
embedded images (base64) . So how to send image and map to client and how 
to plug it together into a widget?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ZeoK_RJMXccJ.
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 send images with image map to client and create widget with it

2012-09-14 Thread tanteanni
thx jens

So for each image to server requests are necessary: 

1 to get the dto and create html with image-url 
2 to get the image from servlet

my hope was/is there is a way with one request/response? And indeed i get 
the image map as html. so my dto would be very simple: 2 Strings (url + 
map).

On Friday, 14 September 2012 16:25:35 UTC+2, Jens wrote:

 Create a DTO that describes the image map, something like:

 ImageMap
 - String: imageUrl (would point to your png-image servlet)
 - ListImageMap.Area: areas (calculated on server using your lib)

 ImageMap.Area:
 - ShapeTypeEnum: shape (RECT, CIRCLE, POLY)
 - ListInteger: coords
 - String: href
 - String: title

 Then create a custom widget that can render an image map using img, 
 map and area and use the DTO information to configure the widget.

 If your lib creates raw HTML for the image map then you probably only need 
 the imageUrl and the raw HTML in your DTO and render the raw HTML directly 
 using GWT's HTML widget. But you have to do some sanity checks on the raw 
 HTML to prevent cross site scripting attacks. 
 So if you can, build the HTML on the client side and only transfer the 
 needed data from server to client.

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/q_BMSp0qzCcJ.
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: Development Mode in Eclipse stopped working - no errors, nothing on console

2012-09-13 Thread tanteanni
thx thomas,
if you hav no answer who else could :-( ?
I've got some new info: On of us could run dev mode from eclipse (indigo), 
on at least two machines - helios, juno it is not working. The one that has 
the working config is thze only one whoe uses java 7 as execution 
environment. I also tried to connect to dev-mode process via jconsole but 
this fails (connecting to ... runs forever) but on process selection i 
could see the commandline used: it has no -classpath it start with 
com.google.gwt.DevMode -war 

Since i neither could connect to dev-mode process nor eclipse is showing 
any error i think it is some odd java problem?! do you have any ideas about 
that?

over night i thought about your multi module idea - i am beginning to like 
it. are there any disadvantages about that - especially in interoperability 
with eclipse (i want my eclipse dev mode back). In such a multi-module 
project i guess the dev mode is launched from client module?




On Wednesday, 12 September 2012 17:07:33 UTC+2, Thomas Broyer wrote:



 On Wednesday, September 12, 2012 4:46:57 PM UTC+2, tanteanni wrote:

 How does the issue you mentioned explains why all is running fine 
 (gwt:run, deployed) but it fails in eclipse hosted mode? Or how to get know 
 the name of the conflicting jar to be excluded via 
 runClasspathExcludes? 
 is gwt-maven-plugin 2.5-rc1 working with gwt 2.4?

 because my only problem is eclipse' hosted mode i want to be sure that 
 refactoring to multi modules is the only but sure way to solve this problem.


 Ah sorry, didn't see that gwt:run works OK. runClasspathExcludes won't 
 change anything then, as it only applies to gwt:run.

 If your only problem is with Eclipse, then I don't see any other thing to 
 do than compare the classpaths (run mvn -X gwt:run, it should then 
 display the classpath used for launching the DevMode; and compare to what's 
 being used in the Eclipse launcher; there should be a mean –some process 
 explorer, or maybe JConsole– to see what command line has been used by 
 Eclipse to launch the DevMode and see what it put in the classpath)
 Also maybe try connecting to the DevMode even if nothing appears in 
 Eclipse.

 As a last resort, create a Java Application run configuration in 
 Eclipse, choosing com.google.gwt.dev.DevMode as the main class; that way 
 you'll have complete control over what happens, and you can use Debug 
 as... in Eclipse (much better than gwt:debug)


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/DUyn3DBHNaEJ.
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: Development Mode in Eclipse stopped working - no errors, nothing on console

2012-09-13 Thread tanteanni
It is running with java 7! 
 (don't ask why)


On Thursday, 13 September 2012 09:43:19 UTC+2, tanteanni wrote:

 thx thomas,
 if you hav no answer who else could :-( ?
 I've got some new info: On of us could run dev mode from eclipse (indigo), 
 on at least two machines - helios, juno it is not working. The one that has 
 the working config is thze only one whoe uses java 7 as execution 
 environment. I also tried to connect to dev-mode process via jconsole but 
 this fails (connecting to ... runs forever) but on process selection i 
 could see the commandline used: it has no -classpath it start with 
 com.google.gwt.DevMode -war 

 Since i neither could connect to dev-mode process nor eclipse is showing 
 any error i think it is some odd java problem?! do you have any ideas about 
 that?

 over night i thought about your multi module idea - i am beginning to like 
 it. are there any disadvantages about that - especially in interoperability 
 with eclipse (i want my eclipse dev mode back). In such a multi-module 
 project i guess the dev mode is launched from client module?




 On Wednesday, 12 September 2012 17:07:33 UTC+2, Thomas Broyer wrote:



 On Wednesday, September 12, 2012 4:46:57 PM UTC+2, tanteanni wrote:

 How does the issue you mentioned explains why all is running fine 
 (gwt:run, deployed) but it fails in eclipse hosted mode? Or how to get know 
 the name of the conflicting jar to be excluded via 
 runClasspathExcludes? 
 is gwt-maven-plugin 2.5-rc1 working with gwt 2.4?

 because my only problem is eclipse' hosted mode i want to be sure that 
 refactoring to multi modules is the only but sure way to solve this problem.


 Ah sorry, didn't see that gwt:run works OK. runClasspathExcludes won't 
 change anything then, as it only applies to gwt:run.

 If your only problem is with Eclipse, then I don't see any other thing to 
 do than compare the classpaths (run mvn -X gwt:run, it should then 
 display the classpath used for launching the DevMode; and compare to what's 
 being used in the Eclipse launcher; there should be a mean –some process 
 explorer, or maybe JConsole– to see what command line has been used by 
 Eclipse to launch the DevMode and see what it put in the classpath)
 Also maybe try connecting to the DevMode even if nothing appears in 
 Eclipse.

 As a last resort, create a Java Application run configuration in 
 Eclipse, choosing com.google.gwt.dev.DevMode as the main class; that way 
 you'll have complete control over what happens, and you can use Debug 
 as... in Eclipse (much better than gwt:debug)



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/3UQBJepysQ4J.
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.



Development Mode in Eclipse stopped working - no errors, nothing on console

2012-09-12 Thread tanteanni
On integrating a library on server side of my gwt app (maven, gwt 2.4) the 
development/hosted mode stopped working. The app works fine if deployed and 
all unit tests and integration tests pass as before. 
If i start development mode (run/debug as web application) the develpoment 
mode view pops up but nothing else happens. normally the console should 
show some output but console keeps empty. So i don't even have a hint whats 
going wrong.
Can you give some advice where to look / what to do to get at least a hint 
what's wrong?

(if i check out the revision before the development mode works! - so some 
code changes should be the cause?!)

Background about library i added (don't know if my problem relates to 
this):I had some problem on integrating the library. the library uses 
eclipse birt charting engine. This engine has a dependency to apachy derby 
db, this conflicted with another library. i solved this by excluding the 
derby dependency via maven. the second problem was a command line too 
long error on unit test - this was solved by updating the 
maven-surefire-plugin.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/iTvac9uSn24J.
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: Development Mode in Eclipse stopped working - no errors, nothing on console

2012-09-12 Thread tanteanni
i did some researches: the hosted mode stops working if i only add the 
dependency - without using it. as mentioned above i checked out the 
revision before adding and using this lib. based on that revision i only 
added the dependency to pom and the hosted mode stops working. on deleting 
the dependency it is working again.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lj38dxsaS4cJ.
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: Development Mode in Eclipse stopped working - no errors, nothing on console

2012-09-12 Thread tanteanni
thx thomas,

i should mention that gwt:run works fine. is there a way to see conflicting 
dependencies? to get rid of the conflicting derby dependency i used mvn 
dependency:tree -Dverbose. This shows only one conflict for gwt stuff:

[INFO] |  +- (javax.validation:validation-api:jar:1.0.0.GA:provided - 
omitted for duplicate)
[INFO] |  \- (javax.validation:validation-api:jar:sources:1.0.0.GA:provided 
- omitted for duplicate)

(Maven should handle all conflicts)

i just tried to added 

configuration
runClasspathExcludes
excludesorg.eclipse.birt.runtime-4.2.0.jar/excludes
/runClasspathExcludes
configuration

to gwt-maven-plugin's configuration but it changes nothing. - not sure if i 
've done it right?
Is there an example for the long term solution you suggested? I guess with 
modules you mean maven modules? - Such an big change in projects 
configuration i only want to do if i am sure that this solves my current 
problem and there's no easier way.

On Wednesday, 12 September 2012 14:48:59 UTC+2, Thomas Broyer wrote:


 On Wednesday, September 12, 2012 2:07:06 PM UTC+2, tanteanni wrote:

 i did some researches: the hosted mode stops working if i only add the 
 dependency - without using it. as mentioned above i checked out the 
 revision before adding and using this lib. based on that revision i only 
 added the dependency to pom and the hosted mode stops working. on deleting 
 the dependency it is working again.


 Incompatibility with some (embedded) dependency of GWT? (ECJ/JDT maybe, or 
 some Apache Commons)

 Short-term solution: exclude BiRT from the DevMode classpath (try using 
 mvn gwt:run or mvn gwt:debug to launch the DevMode, and use 
 runClasspathExcludes to exclude BiRT: 
 http://mojo.codehaus.org/gwt-maven-plugin/debug-mojo.html#runClasspathExcludes
 )
 Long-term solution: use separate modules for client-side and server-side 
 (and shared) code, so that your client-side module only has dependencies on 
 client-side libraries, that are much less likely to collide with the 
 DevMode (and Compiler, BTW).


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/gOJY5kPq5gMJ.
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: Development Mode in Eclipse stopped working - no errors, nothing on console

2012-09-12 Thread tanteanni
How does the issue you mentioned explains why all is running fine (gwt:run, 
deployed) but it fails in eclipse hosted mode? Or how to get know the name 
of the conflicting jar to be excluded via runClasspathExcludes? 
is gwt-maven-plugin 2.5-rc1 working with gwt 2.4?

because my only problem is eclipse' hosted mode i want to be sure that 
refactoring to multi modules is the only but sure way to solve this problem.


On Wednesday, 12 September 2012 16:25:23 UTC+2, Thomas Broyer wrote:



 On Wednesday, September 12, 2012 3:51:49 PM UTC+2, tanteanni wrote:

 thx thomas,

 i should mention that gwt:run works fine. is there a way to see 
 conflicting dependencies? to get rid of the conflicting derby dependency i 
 used mvn dependency:tree -Dverbose. This shows only one conflict for gwt 
 stuff:

 [INFO] |  +- (javax.validation:validation-api:jar:1.0.0.GA:provided - 
 omitted for duplicate)
 [INFO] |  \- 
 (javax.validation:validation-api:jar:sources:1.0.0.GA:provided - omitted 
 for duplicate)

 (Maven should handle all conflicts)


 See http://code.google.com/p/google-web-toolkit/issues/detail?id=4484 (among 
 others)

 i just tried to added 

 configuration
 runClasspathExcludes
 excludesorg.eclipse.birt.runtime-4.2.0.jar/excludes
 /runClasspathExcludes
 configuration

 to gwt-maven-plugin's configuration but it changes nothing. - not sure if 
 i 've done it right?


 Forgot to say that it only works with gwt-maven-plugin 2.5.0-rc1; see 
 http://jira.codehaus.org/browse/MGWT-286
 Also, I suppose the offending JAR is not 
 org.eclipse.birt.runtime-4.2.0.jar directly but one of its dependencies.

 Is there an example for the long term solution you suggested?


 https://github.com/tbroyer/gwt-maven-archetypes for example.
  

 I guess with modules you mean maven modules?


 Absolutely.


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



How to switch css-Obfuscation ON?

2012-08-27 Thread tanteanni
i know how to switch css obuscation off:

set-configuration-property name=CssResource.style value=pretty/

this is don in my default gwt.xml. But how to turn it on again - in my 
ci.gwt.xml/ release.gwt.xml? i asked this already at 
stackoverflowhttp://stackoverflow.com/questions/11772627/gwt-cssresource-style-possible-values-how-to-turn-obfuscation-onbut
 it seems to be a very hard question?!

So what values could be asigned to CssResource.style and what value is 
the default value - the value that activates the obfuscation?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/6Ey8YK2GnDMJ.
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 switch css-Obfuscation ON?

2012-08-27 Thread tanteanni
thx  i'll try

i read the mentiond doc already but the comment above the code was 
somehow misleading: !-- This can be used to make CssResource produce 
human-readable CSS --

On Monday, 27 August 2012 10:07:02 UTC+2, Thomas Broyer wrote:



 On Monday, August 27, 2012 9:40:25 AM UTC+2, tanteanni wrote:

 i know how to switch css obuscation off:

 set-configuration-property name=CssResource.style value=pretty/

 this is don in my default gwt.xml. But how to turn it on again - in my 
 ci.gwt.xml/ release.gwt.xml? i asked this already at 
 stackoverflowhttp://stackoverflow.com/questions/11772627/gwt-cssresource-style-possible-values-how-to-turn-obfuscation-onbut
  it seems to be a very hard question?!

 So what values could be asigned to CssResource.style and what value is 
 the default value - the value that activates the obfuscation?


 Answered on SO:

 That configuration property is defined in 
 com/google/gwt/ressources/Ressources.gwt.xmlhttp://code.google.com/p/google-web-toolkit/source/browse/releases/2.4/user/src/com/google/gwt/resources/Resources.gwt.xml
  that 
 way:

 define-configuration-property name=CssResource.style 
 is-multi-valued=false /
 set-configuration-property name=CssResource.style value=obf /

 I.e. the default value is obf. I believe obfuscate or obfuscated would 
 work too (if you find them more readable). 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/7S6S8vAXoCQJ.
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: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread tanteanni
Thx Thomas

this is working:  assertThat(element.getAttribute(value), 
is(SomeText)); 

On Wednesday, 11 July 2012 15:32:18 UTC+2, Thomas Broyer wrote:


 On Wednesday, July 11, 2012 12:41:11 PM UTC+2, tanteanni wrote:

 I've tried to make a Seleniumtest on the text content of a suggest box. 
 The text is rendered correctly but don't shows up in rendered code 
 (inspect element) and selenium also sees only an empty string. The Elment 
 look like this in chrome and friefox:

 input type=text class=PEB id=gwt-debug-overviewSuggestbox

 But it is rendered with correct text - i can't find the text anywhere. 
 But in IE 8 the elemnt looks like that:

 input class=PEB id=gwt-debug-overviewSuggestbox __eventBits=8064 
 __listener=INPUT id=gwt-debug-overviewSuggestbox class=PEB 
 value=SomeText __eventBits=8064 value=SomeText/

 So there i see the text SomeText. Why is this so? Or how to 
 (Selenium)test contents of such fields?


 This is an artifact of how the DOM is implemented in IE8, and the IE8 
 Dev Tools: IE mixes up attributes and properties (even though it can tell 
 them apart starting with IE8, but only using the appropriate API), and the 
 Dev Tools actually show you the properties: __eventBits and __listener are 
 expando properties, and the value here is the property, not the attribute 
 (the 'value' attribute maps to the defaultValue property, changing the 
 value property shouldn't be reflected in the value attribute).

 In any browser though, getting the value property of the element should 
 give you the SomeText value: 
 document.getElementById(gwt-debug-overviewSuggestbox).value;


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/aRtTSFBCxXwJ.
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: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread tanteanni
What should i say element.getText() returns  and fails (this is used by 
junit code gen) but element.getAttribute(value) works (using ff 
webdriver).

but thx for the hint with InputElement: but i can't find class/ or 
interface InputElement and there is no getProperty(String) in 
org.openqa.selenium.WebElement 
(i use selenium-java 2.24.1).


On Thursday, 12 July 2012 12:32:25 UTC+2, Thomas Broyer wrote:



 On Thursday, July 12, 2012 12:20:58 PM UTC+2, tanteanni wrote:

 Thx Thomas

 this is working:  assertThat(element.getAttribute(value), 
 is(SomeText)); 


 It shouldn't.
 (except in IE because GWT simply calls getAttribute(name), and IE looks 
 for the property in this case rather than the attribute: 
 http://msdn.microsoft.com/en-us/library/ie/ms536429(v=vs.85).aspx )

 Use element.getValue() instead (possibly casting first to an InputElement: 
 element.InputElementcast().getValue()), or 
 element.getPropertyString(value)
  


 On Wednesday, 11 July 2012 15:32:18 UTC+2, Thomas Broyer wrote:


 On Wednesday, July 11, 2012 12:41:11 PM UTC+2, tanteanni wrote:

 I've tried to make a Seleniumtest on the text content of a suggest box. 
 The text is rendered correctly but don't shows up in rendered code 
 (inspect element) and selenium also sees only an empty string. The 
 Elment 
 look like this in chrome and friefox:

 input type=text class=PEB id=gwt-debug-overviewSuggestbox

 But it is rendered with correct text - i can't find the text anywhere. 
 But in IE 8 the elemnt looks like that:

 input class=PEB id=gwt-debug-overviewSuggestbox __eventBits=8064 
 __listener=INPUT id=gwt-debug-overviewSuggestbox class=PEB 
 value=SomeText __eventBits=8064 value=SomeText/

 So there i see the text SomeText. Why is this so? Or how to 
 (Selenium)test contents of such fields?


 This is an artifact of how the DOM is implemented in IE8, and the IE8 
 Dev Tools: IE mixes up attributes and properties (even though it can tell 
 them apart starting with IE8, but only using the appropriate API), and the 
 Dev Tools actually show you the properties: __eventBits and __listener are 
 expando properties, and the value here is the property, not the attribute 
 (the 'value' attribute maps to the defaultValue property, changing the 
 value property shouldn't be reflected in the value attribute).

 In any browser though, getting the value property of the element should 
 give you the SomeText value: 
 document.getElementById(gwt-debug-overviewSuggestbox).value;



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/FT5XVSqDwesJ.
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: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread tanteanni
i just read the javadoc for getAttribute:

...More exactly, this method will return the value of the given attribute, 
unless that attribute is not present, in which case the value of the 
property with the same name is returned...

So all is fine and work as intended :-)

On Thursday, 12 July 2012 12:32:25 UTC+2, Thomas Broyer wrote:



 On Thursday, July 12, 2012 12:20:58 PM UTC+2, tanteanni wrote:

 Thx Thomas

 this is working:  assertThat(element.getAttribute(value), 
 is(SomeText)); 


 It shouldn't.
 (except in IE because GWT simply calls getAttribute(name), and IE looks 
 for the property in this case rather than the attribute: 
 http://msdn.microsoft.com/en-us/library/ie/ms536429(v=vs.85).aspx )

 Use element.getValue() instead (possibly casting first to an InputElement: 
 element.InputElementcast().getValue()), or 
 element.getPropertyString(value)
  


 On Wednesday, 11 July 2012 15:32:18 UTC+2, Thomas Broyer wrote:


 On Wednesday, July 11, 2012 12:41:11 PM UTC+2, tanteanni wrote:

 I've tried to make a Seleniumtest on the text content of a suggest box. 
 The text is rendered correctly but don't shows up in rendered code 
 (inspect element) and selenium also sees only an empty string. The 
 Elment 
 look like this in chrome and friefox:

 input type=text class=PEB id=gwt-debug-overviewSuggestbox

 But it is rendered with correct text - i can't find the text anywhere. 
 But in IE 8 the elemnt looks like that:

 input class=PEB id=gwt-debug-overviewSuggestbox __eventBits=8064 
 __listener=INPUT id=gwt-debug-overviewSuggestbox class=PEB 
 value=SomeText __eventBits=8064 value=SomeText/

 So there i see the text SomeText. Why is this so? Or how to 
 (Selenium)test contents of such fields?


 This is an artifact of how the DOM is implemented in IE8, and the IE8 
 Dev Tools: IE mixes up attributes and properties (even though it can tell 
 them apart starting with IE8, but only using the appropriate API), and the 
 Dev Tools actually show you the properties: __eventBits and __listener are 
 expando properties, and the value here is the property, not the attribute 
 (the 'value' attribute maps to the defaultValue property, changing the 
 value property shouldn't be reflected in the value attribute).

 In any browser though, getting the value property of the element should 
 give you the SomeText value: 
 document.getElementById(gwt-debug-overviewSuggestbox).value;



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fMMfTMFCPe4J.
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.



Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-11 Thread tanteanni
I've tried to make a Seleniumtest on the text content of a suggest box. The 
text is rendered correctly but don't shows up in rendered code (inspect 
element) and selenium also sees only an empty string. The Elment look like 
this in chrome and friefox:

input type=text class=PEB id=gwt-debug-overviewSuggestbox

But it is rendered with correct text - i can't find the text anywhere. But 
in IE 8 the elemnt looks like that:

input class=PEB id=gwt-debug-overviewSuggestbox __eventBits=8064 
__listener=INPUT id=gwt-debug-overviewSuggestbox class=PEB 
value=SomeText __eventBits=8064 value=SomeText/

So there i see the text SomeText. Why is this so? Or how to 
(Selenium)test contents of such fields?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/6F-GFD7Jj74J.
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: MenuItemSeparator in uibinder produces xml error

2012-07-04 Thread tanteanni
right, but on all run as and some other things eclipse asks proceed with 
launch? - this is a good thing. but now i am forced to switch this off 
because all other bugs are hidden behind this little one :-|

On Tuesday, 3 July 2012 17:57:25 UTC+2, Thomas Broyer wrote:



 On Tuesday, July 3, 2012 4:27:31 PM UTC+2, tanteanni wrote:

 and yes i tried deleting the marker after disabling xml validation vor 
 the project - but the marker always comes back


 But it's just a marker, it doesn't affect building or running the project, 
 right?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VXnzfKs1-HAJ.
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.



MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread tanteanni
i just tried to create a MenuBar with some item and a separator with 
uibinder, but Eclipse' xml validation or the underlying xml model doesn't 
like the separator:

cvc-complex-type.2.4.a: Invalid content was found starting with element 
'g:MenuItemSeparator'. One of 
'{urn:import:com.google.gwt.user.client.ui:MenuItem}' is expected.

how to fix this?
(disabling validation in eclipse doesn't work)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dEGpWK-Eu2wJ.
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: MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread tanteanni
thx thomas,

but how to tell it eclipse? where is the underlying model for uibinder xml 
that eclipse uses for verification? is this model up to date?
is there a way to get rid of the error in eclipse?

On Tuesday, 3 July 2012 12:45:43 UTC+2, Thomas Broyer wrote:


 On Tuesday, July 3, 2012 11:28:13 AM UTC+2, tanteanni wrote:

 i just tried to create a MenuBar with some item and a separator with 
 uibinder, but Eclipse' xml validation or the underlying xml model doesn't 
 like the separator:

 cvc-complex-type.2.4.a: Invalid content was found starting with element 
 'g:MenuItemSeparator'. One of 
 '{urn:import:com.google.gwt.user.client.ui:MenuItem}' is expected.

 how to fix this?
 (disabling validation in eclipse doesn't work)


 GWT should have no problem with it: 
 http://code.google.com/p/google-web-toolkit/issues/detail?id=4550 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/jYu9aehlcIwJ.
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: MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread tanteanni
the for your investigation thomas!

On Tuesday, 3 July 2012 15:55:06 UTC+2, Thomas Broyer wrote:


 On Tuesday, July 3, 2012 2:48:28 PM UTC+2, tanteanni wrote:

 thx thomas,

 but how to tell it eclipse? where is the underlying model for uibinder 
 xml that eclipse uses for verification? is this model up to date?
 is there a way to get rid of the error in eclipse?


 The schema indeed is out of date (
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/resources/com.google.gwt.user.client.ui.xsd)
  
 but it's not meant for validation (
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/resources/UiBinder.xsd
 )

 You might want to both:
  1. report a bug against GWT so that the schema is updated
  2. and ask on https://groups.google.com/d/forum/google-plugin-eclipsewhy 
 it's used for validation and how to disable it, and then possibly 
 report a bug against the GPE and/or GWT Designer (depending on what you're 
 using) if asked to do so.

 Have you tried simply deleting the marker?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lB_6_YGXPHoJ.
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: MenuItemSeparator in uibinder produces xml error

2012-07-03 Thread tanteanni
and yes i tried deleting the marker after disabling xml validation vor the 
project - but the marker always comes back

On Tuesday, 3 July 2012 15:55:06 UTC+2, Thomas Broyer wrote:


 On Tuesday, July 3, 2012 2:48:28 PM UTC+2, tanteanni wrote:

 thx thomas,

 but how to tell it eclipse? where is the underlying model for uibinder 
 xml that eclipse uses for verification? is this model up to date?
 is there a way to get rid of the error in eclipse?


 The schema indeed is out of date (
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/resources/com.google.gwt.user.client.ui.xsd)
  
 but it's not meant for validation (
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/uibinder/resources/UiBinder.xsd
 )

 You might want to both:
  1. report a bug against GWT so that the schema is updated
  2. and ask on https://groups.google.com/d/forum/google-plugin-eclipsewhy 
 it's used for validation and how to disable it, and then possibly 
 report a bug against the GPE and/or GWT Designer (depending on what you're 
 using) if asked to do so.

 Have you tried simply deleting the marker?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/mVxtpTuYgwEJ.
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.



NullPointerException in generated PlaceHistoryMapperImpl (with factory)- how/when to setFactory (Problem only in hosted mode)

2012-05-22 Thread tanteanni
I am using PlaceHistoryMapperWithFactory as suggested 
herehttp://stackoverflow.com/questions/10089964/places-that-share-all-but-prefix-or-how-to-use-placehistorymapperwithfactory.
 
The factory is set within my ClientModule (gin):

@Provides

 @Singleton

 @Inject

 public final PlaceHistoryMapperWithFactoryTokenizerFactory 
 getPlaceHistoryMapper(AppPlaceHistoryMapper hm,

   
  TokenizerFactory tf) {

 hm.setFactory(tf);

 return hm;

 }


I watched the code with debugger (Breakpoints on two lines above and on 
NullPointerException): 
1. The factory is set within  AbstractPlaceHistoryMapperF and hm with 
set factory is returned
2. AppPlaceHistoryMapperImpl throws NPEx at return new 
PrefixAndToken(ContentMenu, factory.contentMenuPlace().getToken(place)); 
because factory is null

What is going wrong here?

One probably important thing: This problem is only (re)producible in hosted 
mode. If app is deployed it works fine!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/G9suVDbEZZwJ.
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: NullPointerException in generated PlaceHistoryMapperImpl (with factory)- how/when to setFactory (Problem only in hosted mode)

2012-05-22 Thread tanteanni
thx!

it works

On Tuesday, 22 May 2012 11:58:39 UTC+2, Thomas Broyer wrote:



 On Tuesday, May 22, 2012 11:41:14 AM UTC+2, tanteanni wrote:

 thx thomas for fast reply,

 the problem is indeed that two instances are created one  
 PlaceHistoryMapperWithFactoryTokenizerFactory  instance and one 
 instances where constructors inject AppPlaceHistoryMapper (this one has 
 null factory). 
 But how to fix this? Your suggested provides-Code shouldn't change 
 anything, should it?


 It depends.
 If you have code that depends on AppPlaceHistoryMapper, then change the 
 return type of the provider-method to that.
 And if some code depends on 
 PlaceHistoryMapperWithFactoryTokenizerFactory, and/or PlaceHistoryMapper, 
 then bind those types to AppPlaceHistoryMapper (see below).
  

 So I tried your 2nd suggestion:
 plus this in module:

 bind(new 
 TypeLiteralPlaceHistoryMapperWithFactoryTokenizerFactory() {

 }).to(AppPlaceHistoryMapper.class).in(Singleton.class);

 *It is working! *
 But with this every user of AppPlaceHistoryMapper get a different 
 instance - (i guess this is not really a problem) - is it possible to 
 get/bind a singleton. 
 Is it possible to bind AppPlaceHistoryMapper 
 and  PlaceHistoryMapperWithFactoryTokenizerFactory to the same instance 
 of generated  AppPlaceHistoryMapper Impl?


 Yes:
 bind(new TypeLiteralPlaceHistoryMapperWithFactoryTokenizerFactory() { 
 }).to(AppPlaceHistoryMapper.class);
 bind(AppPlaceHistoryMapper.class).in(Singleton.class); // either that, or 
 a @Provides @Singleton method.

 i.e.: when you need a PlaceHistoryMapperWithFactoryTokenizerFactory, 
 then use an AppPlaceHistoryMapper; and when you need an 
 AppPlaceHistoryMapper, then bind it as a singleton.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/EuAeL10nl84J.
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: best/good practices to keep Model in sync with Activity/Place and a view.

2012-04-25 Thread tanteanni
for example a showUserPlace and a EditUserPlace. Or in general there are 
often more than one usecase per model. And if i want a distinct url per 
use case i need different places. This cases could probably solved by let 
one userActivity manage two presenters (edit and show user). But then i 
have the same issue- how to inject the synchronized model from activity 
in presenter.
But at the moment the problem is not that two activities. Now i have a very 
complicated logic on the model so i decided to put this logic out of 
activity/presenter (ui handling logic). here is the same problem how to let 
the activity interact with a model. (i linked the concrete problem above - 
for short: if used events i have the problem to register for an event and 
trigger an event(asking the model) all in start method seem to fail)

On Tuesday, 24 April 2012 20:26:41 UTC+2, Jens wrote:

 Do you have a concrete example? So far I never stumbled upon a case where 
 I was thinking hmm thats the same as in the other activity.
 In general two activities should do two different things, so if I have for 
 example an userId inside my place then the first activity would maybe fetch 
 the User model class to display general user information (not needed 
 relations would be null) and the second activity would fetch something 
 different based on the userId.

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/oCHDPpwZu2gJ.
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: Activity how to react on event that is triggered in start-method

2012-04-25 Thread tanteanni
i think this is not the problem. first i register for event then i fetch 
the data that triggers the event. here is the code of start method:

@Override
public final void start(final AcceptsOneWidget panel, final 
com.google.gwt.event.shared.EventBus eventBus) {
this.eb = new ResettableEventBus(eventBus);
view.setPresenter(this);
this.eb.addHandler(DynamicTableHashResolvedEvent.TYPE, 
this);//handler registration
stateResolver.resolveState(((DynamicTablePlace) 
pc.getWhere()).getTablehash(), eb);//triggers event
panel.setWidget(view);
}

the event triggered in start method will be received when next event is 
triggered - so after the start method i am one event too late.


On Tuesday, 24 April 2012 19:19:28 UTC+2, Chris Price wrote:

 Does your data fetch include the event bus in some way? If so you may be 
 running into the problem that handler changes (adds/removes) are only 
 applied after the current event has completed. In this case that event 
 would be the place change eventually calling the activity start.

 Sorry for the lack of references, im not at a pc
 On 24 Apr 2012 14:49, tanteanni wrote:

 i have an activity that needs another class to resolve the state (ids to 
 real objects) brought by current place. this class' getData(StateObject) 
 is called within start-method right after registering for the class' 
 gotData-event. But the activitie's onGotData-data method isn't called the 
 first time. If the activity calls getData after the start method all works 
 fine.
 i have the feeling that this can't work but how to get it working? The 
 data class need an object provided by a special kind of place (the same 
 place as the activity starts on).

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



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/BLVNKJReNVAJ.
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: Activity how to react on event that is triggered in start-method

2012-04-25 Thread tanteanni

Thanks!
I understand (some time ago i had a similar problem but in my main-Class 
- it didn't react on first place change event)
but the solution is ugly:
...Scheduler.get().scheduleFinally(new ScheduledCommand()...

is there another way to get this working? i need the dataModel in start to 
restore the state given by place.

On Wednesday, 25 April 2012 08:21:58 UTC+2, Chris Price wrote:

 Ah yes, the code you pasted exactly fits the problem I described. The
 activity start method is called by the ActivityManager from within the
  PlaceChangeEvent.Handler [1]. The SimpleEventBus, uses deferred
 methods to only apply changes to the handler lists after the current
 round of events have fired [2]. i.e. if you are currently in a
 handler, add a handler and then immediately fire that event, your
 handler won't be called.

 [1] 
 http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/app/place/ActivityManager.java?r=8009#85
 [2] 
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/event/shared/SimpleEventBus.java#156

 On Wed, Apr 25, 2012 at 7:11 AM, tanteanni wrote:
  i think this is not the problem. first i register for event then i fetch 
 the
  data that triggers the event. here is the code of start method:
 
  @Override
  public final void start(final AcceptsOneWidget panel, final
  com.google.gwt.event.shared.EventBus eventBus) {
  this.eb = new ResettableEventBus(eventBus);
  view.setPresenter(this);
  this.eb.addHandler(DynamicTableHashResolvedEvent.TYPE,
  this);//handler registration
  stateResolver.resolveState(((DynamicTablePlace)
  pc.getWhere()).getTablehash(), eb);//triggers event
  panel.setWidget(view);
  }
 
  the event triggered in start method will be received when next event is
  triggered - so after the start method i am one event too late.
 
 
  On Tuesday, 24 April 2012 19:19:28 UTC+2, Chris Price wrote:
 
  Does your data fetch include the event bus in some way? If so you may be
  running into the problem that handler changes (adds/removes) are only
  applied after the current event has completed. In this case that event 
 would
  be the place change eventually calling the activity start.
 
  Sorry for the lack of references, im not at a pc
 
  On 24 Apr 2012 14:49, tanteanni wrote:
 
  i have an activity that needs another class to resolve the state (ids 
 to
  real objects) brought by current place. this class' 
 getData(StateObject)
  is called within start-method right after registering for the class'
  gotData-event. But the activitie's onGotData-data method isn't called 
 the
  first time. If the activity calls getData after the start method all 
 works
  fine.
  i have the feeling that this can't work but how to get it working? The
  data class need an object provided by a special kind of place (the same
  place as the activity starts on).
 
  --
  You received this message because you are subscribed to the Google 
 Groups
  Google Web Toolkit group.
  To view this discussion on the web visit
  https://groups.google.com/d/msg/google-web-toolkit/-/6MNHc8yNbm0J.
  To post to this group, send email to 
 google-web-toolkit@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To view this discussion on the web visit
  https://groups.google.com/d/msg/google-web-toolkit/-/BLVNKJReNVAJ.
 
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ttj2N8rpsIIJ.
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: Activity how to react on event that is triggered in start-method

2012-04-25 Thread tanteanni
Ok so either i use Scheduler and loose test ability or i refactor and use a 
delegate/handler as used in async-services, right? (no answer means yes :-))

On Wednesday, 25 April 2012 09:11:22 UTC+2, Chris Price wrote:

 I think your only two choices are to either avoid the event bus for 
 the async data call, or as you suggest with the Scheduler. 

 On Wed, Apr 25, 2012 at 7:54 AM, tanteanni  wrote: 
  
  Thanks! 
  I understand (some time ago i had a similar problem but in my 
 main-Class - 
  it didn't react on first place change event) 
  but the solution is ugly: 
  ...Scheduler.get().scheduleFinally(new ScheduledCommand()... 
  
  is there another way to get this working? i need the dataModel in start 
 to 
  restore the state given by place. 
  
  
  On Wednesday, 25 April 2012 08:21:58 UTC+2, Chris Price wrote: 
  
  Ah yes, the code you pasted exactly fits the problem I described. The 
  activity start method is called by the ActivityManager from within the 
   PlaceChangeEvent.Handler [1]. The SimpleEventBus, uses deferred 
  methods to only apply changes to the handler lists after the current 
  round of events have fired [2]. i.e. if you are currently in a 
  handler, add a handler and then immediately fire that event, your 
  handler won't be called. 
  
  [1] 
  
 http://code.google.com/p/google-web-toolkit/source/browse/branches/2.1/bikeshed/src/com/google/gwt/app/place/ActivityManager.java?r=8009#85
  
  [2] 
  
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/event/shared/SimpleEventBus.java#156
  
  
  On Wed, Apr 25, 2012 at 7:11 AM, tanteanni wrote: 
  
  
   i think this is not the problem. first i register for event then i 
 fetch 
   the 
   data that triggers the event. here is the code of start method: 
   
   @Override 
   public final void start(final AcceptsOneWidget panel, final 
   com.google.gwt.event.shared.EventBus eventBus) { 
   this.eb = new ResettableEventBus(eventBus); 
   view.setPresenter(this); 
   this.eb.addHandler(DynamicTableHashResolvedEvent.TYPE, 
   this);//handler registration 
   stateResolver.resolveState(((DynamicTablePlace) 
   pc.getWhere()).getTablehash(), eb);//triggers event 
   panel.setWidget(view); 
   } 
   
   the event triggered in start method will be received when next event 
 is 
   triggered - so after the start method i am one event too late. 
   
   
   On Tuesday, 24 April 2012 19:19:28 UTC+2, Chris Price wrote: 
   
   Does your data fetch include the event bus in some way? If so you 
 may 
   be 
   running into the problem that handler changes (adds/removes) are 
 only 
   applied after the current event has completed. In this case that 
 event 
   would 
   be the place change eventually calling the activity start. 
   
   Sorry for the lack of references, im not at a pc 
   
   On 24 Apr 2012 14:49, tanteanni wrote: 
   
   i have an activity that needs another class to resolve the state 
 (ids 
   to 
   real objects) brought by current place. this class' 
   getData(StateObject) 
   is called within start-method right after registering for the 
 class' 
   gotData-event. But the activitie's onGotData-data method isn't 
 called 
   the 
   first time. If the activity calls getData after the start method 
 all 
   works 
   fine. 
   i have the feeling that this can't work but how to get it working? 
 The 
   data class need an object provided by a special kind of place (the 
   same 
   place as the activity starts on). 
   
   -- 
   You received this message because you are subscribed to the Google 
   Groups 
   Google Web Toolkit group. 
   To view this discussion on the web visit 
   https://groups.google.com/d/msg/google-web-toolkit/-/6MNHc8yNbm0J. 
   To post to this group, send email to 
   google-web-toolkit@googlegroups.com. 
   To unsubscribe from this group, send email to 
   google-web-toolkit+unsubscr...@googlegroups.com. 
   For more options, visit this group at 
   http://groups.google.com/group/google-web-toolkit?hl=en. 
   
   -- 
   You received this message because you are subscribed to the Google 
   Groups 
   Google Web Toolkit group. 
   To view this discussion on the web visit 
   https://groups.google.com/d/msg/google-web-toolkit/-/BLVNKJReNVAJ. 
   
   To post to this group, send email to 
   google-web-toolkit@googlegroups.com. 
   To unsubscribe from this group, send email to 
   google-web-toolkit+unsubscr...@googlegroups.com. 
   For more options, visit this group at 
   http://groups.google.com/group/google-web-toolkit?hl=en. 
  
  -- 
  You received this message because you are subscribed to the Google 
 Groups 
  Google Web Toolkit group. 
  To view this discussion on the web visit 
  https://groups.google.com/d/msg/google-web-toolkit/-/ttj2N8rpsIIJ. 
  
  To post to this group, send email to google-web-toolkit@googlegroups.com. 

  To unsubscribe from this group, send email to 
  google-web-toolkit

Re: Activity how to react on event that is triggered in start-method

2012-04-25 Thread tanteanni
you are right jens my first solution was a local eventbus - as you see my 
stateresolver takes an EventBus as argument - but this didn't work either. 
The current solution was copied from a gwt-example.

i used the solution with callback in two of my other activities. but my 
feeling isn't very good with it - i never use the eventbus given in start - 
why is there an eventbus?. because of this uncertainty i opened the other 
threadhttps://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/ktF5b1jLxtY.
 
I thought resolving a string /token to a model(that needs more than just 
call one service - probably i should refactor the services :-|) is a more 
usual use case.

So i guess i will refactor it and use a delegate to handle the callback.

On Wednesday, 25 April 2012 10:49:52 UTC+2, Jens wrote:

 Instead of using the EventBus you could also use a Callback in your 
 StateResolver. Seems to me that only the class that calls 
 stateResolver.resolve() is interested in the result, so there isn't a real 
 need for using an application wide event bus.

 stateResolver.resolveState(, new Callback() {
   void onSuccess() {
 //call method that handles the state
}
 });

 Or you implement the Callback interface directly in your Activity (but 
 then I would rename it to StateResolverPeer.stateResolved(T state) or 
 something like that) and then simply call stateResolver.resolveState(, 
 this).

 If there is a 1:1 relation I would not use event bus in most cases.

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dBtHNvCn1ckJ.
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: best/good practices to keep Model in sync with Activity/Place and a view.

2012-04-25 Thread tanteanni
Thx
The Problem about Scheduled command is that i loose test ability - one main 
reason i use MVP (want to test the P without GWTTestCase).

But the Question is how to design such DAO's - i guess that's where i am 
failing at the moment. My current DAO is firing events - not usable in 
activities start method without ScheduledCommand. But i also have DAO's 
that uses delegates to signal data is ready. But how to godd/best 
integrate/design such DAO's in a gwt/mvp/ap app? (and probably how to 
cut/split good services for them?)

On Wednesday, 25 April 2012 10:49:29 UTC+2, Thomas Broyer wrote:


 On Wednesday, April 25, 2012 8:07:00 AM UTC+2, tanteanni wrote:

 for example a showUserPlace and a EditUserPlace. Or in general there are 
 often more than one usecase per model. And if i want a distinct url per 
 use case i need different places. This cases could probably solved by let 
 one userActivity manage two presenters (edit and show user). But then i 
 have the same issue- how to inject the synchronized model from activity 
 in presenter.
 But at the moment the problem is not that two activities. Now i have a 
 very complicated logic on the model so i decided to put this logic out of 
 activity/presenter (ui handling logic). here is the same problem how to let 
 the activity interact with a model. (i linked the concrete problem above - 
 for short: if used events i have the problem to register for an event and 
 trigger an event(asking the model) all in start method seem to fail)


 For the data thing, I think you simply need a DAO on the client-side 
 doing some caching.

 As for the events, call your getData() in a ScheduledCommand (use either 
 scheduleFinally or scheduleDeferred).


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/LnZ1uXlyx8MJ.
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: best/good practices to keep Model in sync with Activity/Place and a view.

2012-04-25 Thread tanteanni
Thanks - great idea,

so i inject the abstract class com.google.gwt.core.client.Scheduler. Do i 
have to bind an instance or provider to it (the provider will call get())?

ok but this is an perfect answer for 
thishttps://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/t1baOC4IfNo
 thread. 
The question here is, is it good to connect the model this way? or general 
how do you connect the model (more than an object delivered by a service) 
with the presenter?

On Wednesday, 25 April 2012 11:14:05 UTC+2, Thomas Broyer wrote:



 On Wednesday, April 25, 2012 11:06:48 AM UTC+2, tanteanni wrote:

 Thx
 The Problem about Scheduled command is that i loose test ability - one 
 main reason i use MVP (want to test the P without GWTTestCase).


 Not if you inject the Scheduler into your activity (probably a mock one 
 then, or the StubScheduler implementation).


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



how to make an (load)image overlay an panel

2012-04-24 Thread tanteanni
in my app i have some interactive widgets but while loading data from 
server this widgets must be inactivated and activated again after loading 
is complete. i don't want to make the widgets invisible or inactivate every 
single field/button. 
the best solution would be a transparent panel with an loading image in its 
center or corner overlaying the widgets while loading - but how to achieve 
that?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/iUGCBrBlDXEJ.
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 make an (load)image overlay an panel

2012-04-24 Thread tanteanni
thx

but i need complete deactivation of specific widgets - so this i have to do 
manually? Since i don't use uiBinder how would such an view look like 
written in java ? 

On Tuesday, 24 April 2012 13:20:42 UTC+2, Jens wrote:

 in my app i have some interactive widgets but while loading data from 
 server this widgets must be inactivated and activated again after loading 
 is complete. i don't want to make the widgets invisible or inactivate every 
 single field/button. 
 the best solution would be a transparent panel with an loading image in 
 its center or corner overlaying the widgets while loading - but how to 
 achieve that?


 If you only want to overlay specific parts of your app (a complete overlay 
 would be a PopupPanel with glass panel active), I would probably create a 
 simple UiBinder view based on HTML (give it an absolute position with 
 top,left,bottom,right being 0) and then just append/remove it to/from the 
 appropriate parent element. The parent element should have a 
 position:relative applied. 

 But this only will disallow mouse events.. you can still tab through the 
 controls and activate them using the keyboard I think.

 -- J.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/dtUbvsvClH4J.
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.



Activity how to react on event that is triggered in start-method

2012-04-24 Thread tanteanni
i have an activity that needs another class to resolve the state (ids to 
real objects) brought by current place. this class' getData(StateObject) 
is called within start-method right after registering for the class' 
gotData-event. But the activitie's onGotData-data method isn't called the 
first time. If the activity calls getData after the start method all works 
fine.
i have the feeling that this can't work but how to get it working? The data 
class need an object provided by a special kind of place (the same place as 
the activity starts on).

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/6MNHc8yNbm0J.
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 make an (load)image overlay an panel

2012-04-24 Thread tanteanni
in meantime i got answer on stackoverflow that fits very well (didn't tried 
it yet):  
http://stackoverflow.com/questions/10296712/how-to-make-an-loadimage-overlay-a-panel
 

On Tuesday, 24 April 2012 15:45:56 UTC+2, l.denardo wrote:

 Two simple ptions (forgive me if they're too basic): 

 *Your widgets to be activated are likely FocusWidgets: simply register 
 them in a collection while you build your GUI and iterate over that to 
 activate-deactivate them all 

 *Use a (modal, if you don't want the background to be clickable) 
 PopupPanel or DialogBox with the load image you prefer: set a primary 
 style name to the widget using setStylePrimaryName(String name), add 
 that to your CSS and adust the CSS properties to have no border and a 
 transparent background, then center() / hide() your popup before and 
 after load. 

 regards 
 Lorenzo 

 On Apr 24, 1:26 pm, tanteanni tantea...@hotmail.com wrote: 
  thx 
  
  but i need complete deactivation of specific widgets - so this i have to 
 do 
  manually? Since i don't use uiBinder how would such an view look like 
  written in java ? 
  
  
  
  
  
  
  
  On Tuesday, 24 April 2012 13:20:42 UTC+2, Jens wrote: 
  
   in my app i have some interactive widgets but while loading data from 
   server this widgets must be inactivated and activated again after 
 loading 
   is complete. i don't want to make the widgets invisible or inactivate 
 every 
   single field/button. 
   the best solution would be a transparent panel with an loading image 
 in 
   its center or corner overlaying the widgets while loading - but how 
 to 
   achieve that? 
  
   If you only want to overlay specific parts of your app (a complete 
 overlay 
   would be a PopupPanel with glass panel active), I would probably 
 create a 
   simple UiBinder view based on HTML (give it an absolute position with 
   top,left,bottom,right being 0) and then just append/remove it to/from 
 the 
   appropriate parent element. The parent element should have a 
   position:relative applied. 
  
   But this only will disallow mouse events.. you can still tab through 
 the 
   controls and activate them using the keyboard I think. 
  
   -- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/_cHlcDxwra0J.
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 make a clickable image cell?

2012-04-19 Thread tanteanni
Should be possible with ActionCell or ButtonCell. The image could be easily 
added via render method. look at examples on gwt showcase like 
thishttp://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList
.
An image could be added to every kind of cell i think (from example):

String imageHtml = AbstractImagePrototype.create(image).getHTML();
...

@Override
public void render(Context context, ContactInfo value, SafeHtmlBuilder sb) {
  // Value can be null, so do a null check..
  if (value == null) {
return;
  }

  // Add the contact image.
  sb.appendHtmlConstant(trtd rowspan='3');
  sb.appendHtmlConstant(imageHtml);
  sb.appendHtmlConstant(/td);

...


On Thursday, 19 April 2012 09:45:40 UTC+2, tong123123 wrote:

 I want to make a column of clickable image inside a celltable,  if user 
 click the image, a new tab page is created.
 the problem is  how to make such a clickable image cell column?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/rHzpUQ2lUOQJ.
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: Shortest way to get a List of widgets with text and a button (VerticalPanel, CellList..?)

2012-04-17 Thread tanteanni
thx again,

with flow panel it was very easy to implement. the problem was to get the 
selected line (the line the button was clicked). now i am using the cell 
stuff, with its selection model i can easily do what i want. ('til now i 
don't have any html/css in my code  - hope springs eternal ;-)) 

On Monday, 16 April 2012 17:36:07 UTC+2, Thomas Broyer wrote:



 On Monday, April 16, 2012 4:20:18 PM UTC+2, tanteanni wrote:

 Thx Thomas,

 the problem i had! with flowpanel is that it renders children not surely 
 vertically (if two children fit in one line they will be in one line) - but 
 i think that could be easily resolved (by making children always large 
 enough).


 Or use display:block in CSS (or a block element –such as a div– as the 
 root for your widget).

 I'm sorry but GWT doesn't save you from learning HTML, JS, DOM and CSS. If 
 you don't want to learn those, then maybe you shouldn't have chosen GWT to 
 begin with: Flex or similar might have been a better choice (for you as a 
 developer; I absolutely hate Flash and Flex as a user, so from my point of 
 view this is absolutely not a better choice, but this is just my opinion)

 now i began with cell-stuff. at the moment i try to extend ActionCell and 
 overwrite it's render (just calls sb.append some text before calling 
 super.render). I also tried (for 10min)  composite cell but i didn't 
 realized what i should do about hasCells. (i guess there is no in deep 
 documentation of cell-stuff)


 A CompositeCell is similar to a CellTable except it renders things side by 
 side, not in columns (and there are no headers/footers). Instead of 
 defining Columns for a CellTable, you define HasCells for a CompositeCell, 
 and instead of rendering each cell in a table column (as CellTable), 
 CompositeCell renders them side by side as a single cell.



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/2HYvgnPXhPIJ.
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.



Shortest way to get a List of widgets with text and a button (VerticalPanel, CellList..?)

2012-04-16 Thread tanteanni
i need a list of label plus button entries (the button says delete line). 
The List won't become very long (100 entries). So the first question is: 
Is CellList a good approach? I tried VerticalPanel, but the alignment is 
odd. A second/third widget is added in the middle of remaining space 
instead of just below the first (could this be fixed).
The second approach i know about is a CellList (but i don't like html 
fiddling - guess why i took gwt ;-))? To get an Text together with a button 
i guess i need a custom cell? Is there any example of a custom cell with 
a working button (reacting on click events?) I don't need any other 
interactions.
(the show case and the developer guid didn't help much on first sight also 
the source found 
herehttp://code.google.com/searchframe#T04cSGC7sWI/trunk/user/javadoc/com/google/gwt/examples/cell/EditableCellExample.javaq=contactcell%20package:http://google-web-toolkit%5C.googlecode%5C.com
 didn't 
help )

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/vQNypqKuwZ4J.
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: Shortest way to get a List of widgets with text and a button (VerticalPanel, CellList..?)

2012-04-16 Thread tanteanni
Thx Thomas,

the problem i had! with flowpanel is that it renders children not surely 
vertically (if two children fit in one line they will be in one line) - but 
i think that could be easily resolved (by making children always large 
enough). 

now i began with cell-stuff. at the moment i try to extend ActionCell and 
overwrite it's render (just calls sb.append some text before calling 
super.render). I also tried (for 10min)  composite cell but i didn't 
realized what i should do about hasCells. (i guess there is no in deep 
documentation of cell-stuff)
now i will try CellTable.

On Monday, 16 April 2012 16:01:03 UTC+2, Thomas Broyer wrote:


 On Monday, April 16, 2012 3:25:22 PM UTC+2, tanteanni wrote:

 i need a list of label plus button entries (the button says delete 
 line). The List won't become very long (100 entries). So the first 
 question is: Is CellList a good approach? I tried VerticalPanel, but the 
 alignment is odd. A second/third widget is added in the middle of remaining 
 space instead of just below the first (could this be fixed).


 How about FlowPanel?
  

 The second approach i know about is a CellList (but i don't like html 
 fiddling - guess why i took gwt ;-))? To get an Text together with a button 
 i guess i need a custom cell? Is there any example of a custom cell with 
 a working button (reacting on click events?) I don't need any other 
 interactions.


 A CompositeCell might be enough; but if you want your buttons to be 
 vertically aligned, then use a CellTable with 2 columns: one with a 
 TextCell for your text, and one with an ActionCell (or a ButtonCell) for 
 the button.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/TzKu1yL9k0oJ.
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.



Resolving state provided by place in a central class

2012-03-19 Thread tanteanni
in my application most activities rely on infos provided by current place. 
all infos of such place define the state of activity. the problem is that 
all infos are provided as strings and must be resolved to objects (i.e. 
userID=0815 must be resolved to a user object). In my case many activities 
share such a state (ShowUserActivity, SelectUserActivity both need 
current(Selected)User). At the moment the code to resolve a state is 
redundant across those activities -- very bad.

So i want to centralize each kind of state. In many cases async. services 
are needed to resolve the infos. So how is a good way to centralize this 
asynchronous process? One Idea i have in mind is to let this class hear 
PlaceChangeEvents to update itself. Because of the asynchronous nature of 
the update i probably need a UpdateStateEvent and each activity must 
register to it.

But is there a way to defer the loading of an activity 'til state is 
resolved (there is no need to start the activity). Or in general is there a 
way to make asynchronous calls synchronous by deferring until 
onSuccess/onFailure? 
Or this all is probably bullshit and you have a better idea to solve this 
kind of problem? 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/go98sXST0zoJ.
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: one language permutation to much - need only default + en

2012-03-16 Thread tanteanni
thx i'll try it

On Thursday, 15 March 2012 17:22:34 UTC+1, Jens wrote:

 See: http://code.google.com/p/google-web-toolkit/issues/detail?id=5769#c1

 -- J.

 Am Donnerstag, 15. März 2012 15:11:48 UTC+1 schrieb tanteanni:

 At the moment my application's gwt.xml looks as foolows:
 ...
 extend-property name=locale values=de /
 extend-property name=locale values=en /
 set-property-fallback name=locale value=de /
 ...
 The problem is that this yields three permutations for each browser 
 (default, en, de). Is there a way to reduce this to 2 permutations 
 (default/fallback language should be de)?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/_U8baH5NwToJ.
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: one language permutation to much - need only default + en

2012-03-16 Thread tanteanni
the workaround mentioned in ticket 
5769http://code.google.com/p/google-web-toolkit/issues/detail?id=5769#c1
 works:

  extend-property name=locale values=en,de/
  set-property-fallback name=locale value=en/
  set-property name=locale value=en,de/


thx again :-)


On Thursday, 15 March 2012 17:22:34 UTC+1, Jens wrote:

 See: http://code.google.com/p/google-web-toolkit/issues/detail?id=5769#c1

 -- J.

 Am Donnerstag, 15. März 2012 15:11:48 UTC+1 schrieb tanteanni:

 At the moment my application's gwt.xml looks as foolows:
 ...
 extend-property name=locale values=de /
 extend-property name=locale values=en /
 set-property-fallback name=locale value=de /
 ...
 The problem is that this yields three permutations for each browser 
 (default, en, de). Is there a way to reduce this to 2 permutations 
 (default/fallback language should be de)?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/5FJ3NrRlAZcJ.
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.



one language permutation to much - need only default + en

2012-03-15 Thread tanteanni
At the moment my application's gwt.xml looks as foolows:
...
extend-property name=locale values=de /
extend-property name=locale values=en /
set-property-fallback name=locale value=de /
...
The problem is that this yields three permutations for each browser 
(default, en, de). Is there a way to reduce this to 2 permutations 
(default/fallback language should be de)?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0ri4tmEmt0UJ.
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.



Implementing Places that share all but have different prefix

2012-03-08 Thread tanteanni
Sometimes i have two places that differ only in thier prefix. For example a 
SelectionPlace and a ResultOfSelectionPlace. So both places share all 
code but differ in @Prefix(value...). At the moment i implemented this by 
using an abstract class but i have to copy the code of the tokenizer to get 
tokenizers with different prefixes.

Is there a way to let the concrete class only set the prefix of a shared 
tokenizer class? Or is there probably a complete different way to achieve 
this?

thx in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/pn70XIa4TpcJ.
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: Implementing Places that share all but have different prefix

2012-03-08 Thread tanteanni
thx again - didn't know about that.
(i can't shake the feeling that google has some good engineers)

On Thursday, 8 March 2012 15:50:01 UTC+1, Thomas Broyer wrote:


 On Thursday, March 8, 2012 3:28:18 PM UTC+1, tanteanni wrote:

 thx thomas (you seem to answer all ap questions of the world)

 so you mean i have to provide an implementation (rather then an 
 extension) of PlaceHistoryMapper? will @WithTokenizers work on that? Or 
 do i have to implement all stuff for all places? or to make it simple (at 
 least for me ;-)) could you probably  give me a draft of  
 PlaceHistoryMapperWithFactory.


 I meant using that one: 
 http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/place/shared/PlaceHistoryMapperWithFactory.html

 You use it the exact same way as PlaceHistoryMapper (you can use 
 @WithTokenizers too) except you have to provide a factory via setFactory() 
 before you can use it. the generated implementation will call methods of 
 the factory instead of instantiating tokenizers, when needed. This is 
 mostly useful when you have to somehow inject dependencies into your 
 tokenizers (and note that the factory could be your Ginjector; the 
 generator only looks at zero-arg methods returning subtypes of 
 PlaceTokenizer)


On Thursday, 8 March 2012 15:50:01 UTC+1, Thomas Broyer wrote:


 On Thursday, March 8, 2012 3:28:18 PM UTC+1, tanteanni wrote:

 thx thomas (you seem to answer all ap questions of the world)

 so you mean i have to provide an implementation (rather then an 
 extension) of PlaceHistoryMapper? will @WithTokenizers work on that? Or 
 do i have to implement all stuff for all places? or to make it simple (at 
 least for me ;-)) could you probably  give me a draft of  
 PlaceHistoryMapperWithFactory.


 I meant using that one: 
 http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/place/shared/PlaceHistoryMapperWithFactory.html

 You use it the exact same way as PlaceHistoryMapper (you can use 
 @WithTokenizers too) except you have to provide a factory via setFactory() 
 before you can use it. the generated implementation will call methods of 
 the factory instead of instantiating tokenizers, when needed. This is 
 mostly useful when you have to somehow inject dependencies into your 
 tokenizers (and note that the factory could be your Ginjector; the 
 generator only looks at zero-arg methods returning subtypes of 
 PlaceTokenizer)


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/RVHA7szPoE4J.
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: hard time to get GWTTestCase to work

2012-01-29 Thread tanteanni
thx, the problem is how to fix it. i have a maven project generated by 
webappcreator from google. i thought unit tests with gwttestcase should 
work out of the box? 
with sources not in classpath do you mean the eclipse way of sources 
(knowing were to look in debugging session, debugging normal tests is 
working fine)? Or do you mean the gwt-sources (declared in gwt.xml)? (i 
put all tests in same packages as the OUTs - that should be enough for gwt 
to find the sources?!)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/RrFGm0tlWBAJ.
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.



hard time to get GWTTestCase to work

2012-01-27 Thread tanteanni
i just tried my first GWTTestCase but it fails. My setup is Eclipse/Maven 
(not the happiest couple on the planet) - the pom was initially generated 
by gwt-tool (webappcreator?). I use MVP,gin, guice (testing views is not 
#1 priority but i want it to work).
Normal Unit-Tests work just fine. 
But with GWTTestCase i got different kinds of trouble:
if i try it with Eclipse' run as GWT  Test i got:

com.google.gwt.junit.JUnitFatalLaunchException: The test class 
'client.view.DynamicLayoutViewImplTest' was not found in module 
'...integration'; no compilation unit for that type was seen
at 
com.google.gwt.junit.JUnitShell.checkTestClassInCurrentModule(JUnitShell.java:743)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1346)
at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1309)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:653)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at 
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at 
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
at 
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

(The Test is in same package as the view, the module used inherits the 
normal module but it includes all permutations)

If i run mvn test i got a much bigger exception: for some reasen the app 
is deployed on jetty together with all server side stuff and i get an 
guice-error!? mvn gwt:test does absolutly nothing. The first question is: 
is this a source-code problem or a configuration problem or both? Here is 
the source:

public class DynamicLayoutViewImplTestGWT extends GWTTestCase {

@Override
public String getModuleName() {
return ...Integration;
}

private DynamicLayoutViewImpl testObject;

@Before
public final void init() {
AdbResources resources = GWT.create(AdbResources.class);
testObject = new DynamicLayoutViewImpl(Unit.EM, resources);
}

@Test
public final void testIt() {
System.out.println(here);
}

}
as you see i just tried to get an instance of my testobject. 

thx in advance

(i also tried gwt-test-utils is also failed)


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/v48hD57nv6MJ.
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.



List or ArrayList/concrete type

2012-01-26 Thread tanteanni
at the beginning of my gwt adventure i read somewhere that it is better to 
use concrete classes for interfaces like lists, because the gwt compiler 
must generate java script for every kind of list.
Is this (still) true? I asked because by using arraylist/concrete types 
everywhere on client side yields a lot of loose coupling warnings from 
sonar and beside this it is the absolute opposite of the 
make-(gwt)-code-more-testable-by-using-interfaces-as-much-as-possible-philosophy.

thx in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VOkJ_rXafgQJ.
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: List or ArrayList/concrete type

2012-01-26 Thread tanteanni
thx for the info,

that means i can get rid of most of loose coupling -warnings (i thought 
all client code should avoid Listss - ).

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/q27OD_e-mM8J.
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: loading an image

2012-01-11 Thread tanteanni
thats a good point (i am using a relative url). i will look into it - thx!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/1JlxwlqDgPIJ.
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: loading an image

2012-01-11 Thread tanteanni
As assumed you were right: the called image url is somthing like this 
/imageRetriever?[some Parameters] (its a simple HttpServlet). So in hosted 
and webmode if i add /imageRetirever... to Url in Browser the Image is 
displayed fine. But as you said in WebMod the Url contains a 
myProject-Part. But how to fix this? 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/nH5YtSckyaUJ.
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: loading an image

2012-01-10 Thread tanteanni
thx,

but my problem is, that it fails outside hosted mode. in hosted mode the 
image is loading, in real mode the small destroyed image icon appears (that 
appears in browser if image is not available) at the moment i press the 
button to load the image. and as i said before: if i load the image url 
directly the image loads fine.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/-Wu1Zu6AhNkJ.
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.



loading an image

2012-01-09 Thread tanteanni
i try to get an image displayed that is retrieved from an url. my first 
(false) attempt was not respecting the asynchronous behavior so it only 
worked in hosted mode:

Image image = new Image(someURL);
view.setImage(image);

but this failed in real mode. so i googled around (besides wrong 
exampleshttp://examples.roughian.com/index.htm#Listeners~LoadListener and 
this http://code.google.com/p/gwt-image-loader/ ) i found the problem: a 
have to listen to load event. So i changed my code to this:

image = new Image(url);
image.addLoadHandler(new LoadHandler() {

@Override
public void onLoad(LoadEvent event) {
view.setImage(image);
image.setVisible(true);
}
});

the problem is that the event is never been fired or at least onLoad is 
never executed. I also tried to addHandler before setting url. The url it 
self works fine (browser is displaying the image) and log shows positive 
image response: 

response : HTTP/1.1 200 
Content-Type: image/png


graphdata : [B@12505f5


so how to correctly load/display an image in gwt?

thx in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ngFhnlZ5dcQJ.
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.



NumberFormat custom grouping separator

2012-01-02 Thread tanteanni
(Happy New Year!)

I need to change grouping separator (, in US . in DE) to Space (' ') for 
all Locales how to achieve that?

thx in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/9LaKQwI6roUJ.
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.



ie8 browser compatibility - big issue

2011-12-15 Thread tanteanni
i just installed ie8 to check compatibility of my gwt application. 
user.agent property is set as follows:
set-property name=user.agent value=gecko1_8, safari, ie6, ie8, ie9, 
opera /

the app works fine on chrome and ff but fails on ie8:

- on left side of the app a tree (some hundred items) should be displayed 
but in ie8 this region keeps empty. Other views are displayed on west side 
(by changing to another place) but if i go back to the activity with tree 
the old view remains on west side. so i am unsure if this issue is related 
to activities/places or to the tree or to both.

- the second issue relates to a tab-bar with 2 tabs - it isn't displayed

So why the app doesn't work on ie8 (why i have to ask such a question for a 
gwt app?)

(the app uses some Wai Aria stuff - 
http://code.google.com/webtoolkit/doc/latest/DevGuideA11y.html)

thx in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/2kmsNPXUH9AJ.
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: ie8 browser compatibility - big issue

2011-12-15 Thread tanteanni
thx for quick reply. i just installed ie dev toolbar from here:  
http://www.microsoft.com/download/en/details.aspx?id=18359 and activated 
the bar. but where to find browser mode and document mode?

besides this i get the following exception on client side:

 SEVERE: class com.google.web.bindery.event.shared.UmbrellaException 
com.google.gwt.core.client.JavaScriptException: (Error): Could not get the 
display property. Invalid argument. number: -2147024809 description: Could 
not get the display property. Invalid argument. Unknown._c(Unknown Source) 
Unknown.gd(Unknown Source) Unknown.Bm(Unknown Source) Unknown.Yl(Unknown 
Source) Unknown.uF(Unknown Source) Unknown.FF(Unknown Source) 
Unknown.Hcb(Unknown Source) Unknown.Td(Unknown Source) Unknown.Id(Unknown 
Source) Unknown.Cd(Unknown Source) Unknown.anonymous(Unknown Source)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bZGo9Ib9BmMJ.
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: ie8 browser compatibility - big issue

2011-12-15 Thread tanteanni
thx it diplays: Browser Mode: IE8 and Document Mode: IE8 Standards.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/NECqvdm9vMwJ.
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: ie8 browser compatibility - big issue

2011-12-15 Thread tanteanni
did you say if i change gwt's standard styles the main advantage of gwt is 
destroyed? or the other way around how to use gwt to keep cross browser 
compatibility? what are custom changes where is the border between custom 
changes and using the api? is there any documentation about that.

(i am confused a little bit)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/j9PBbi8wZpAJ.
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.



what happens on deployment of gwt app (using guice) - what lines of code are executed

2011-11-22 Thread tanteanni
on deploying my gwt web app i noticed that some code of server side is 
executed. But i have no idea what code is executed or how to control the 
code that is being executed on deployment.

So how does the bootstrapping/deployment work in general  and in the 
special case of a gwt app that uses guice (i don't know if this is a 
general web-app question or a gwt question or both)? (probably all classes 
bound to singletons are instantiated?)

At the end i want to write a class/ o couple of methods that check server 
configuration and external data sources and log their results - some (bad) 
results  should cause an abort of deployment.

thx in advance

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



Re: What is current state/fix of/for deprecated PlaceController constructor

2011-11-11 Thread tanteanni
since the beginning of using activities i asked myself why some dependency 
injection examples injected an eventbus and don't use the one that start() 
delivers. i thought that the pattern - inject all stuff you need.

But thx to you-both this question is answered - don't inject the bus! use 
the one from start(). So not only that little Problem is solved but i also 
learned a lot more - again.


So the best documentaion for gwt is still this group - (i am not sure if 
this is good or bad) 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/RcuSJ23-KRAJ.
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.



VerticalPanel differently rendered on FireFox and Chrome

2011-11-11 Thread tanteanni
if i add some stuff to a verticalPanel nested in a 
SimplLayoutPanel(100%h,100%w) the result is very different on different 
browsers:
chrome don't use the 100% and sticks all stuff in VP together. Firefox(6) 
and IE(6) use all the space to layout the stuff inside VP. Why does this 
happen? The main reason to chose gwt was to get rid of such problems. So if 
a table with 100%(i think that is the html translation of my VP) is 
rendered differntly, gwt should use a different translation to get same 
results, shouldn't it?


the other question is how to get the same result on all browsers - i want 
the result of chrome: all stuff should stick together vertically arranged.

thx in advance

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



Re: What is current state/fix of/for deprecated PlaceController constructor

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

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


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



What is current state/fix of/for deprecated PlaceController constructor

2011-11-08 Thread tanteanni
I just updated to gwt 2.4  - to get the data grid (very nice). but no my 
PlaceController construction is deprecated. I read around here but can't 
find a good solution for this 
issuehttp://code.google.com/p/google-web-toolkit/issues/detail?id=6653. 
(is it even an issue?):
if i update my PlaceController construction (in GinModule), all Activity's 
start()-methods start to cry (they wan't the old EventBus). They get their 
EventBus via ActivityManager, but the ActivityManagers are also constructed 
with new EventBus. So it seems it's a Problem of AbstractActivity isn't 
it?

For he Moment i have decided to keep the deprecated constructor (good 
idea?). But what would be the long term solution for this? Will there be a 
fix? Or is there already a fix?

thx in advance

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



Re: What is current state/fix of/for deprecated PlaceController constructor

2011-11-08 Thread tanteanni
my problem is (the same problem as the others have/has?) if i change the 
event bus in GinModule all other instance get the new event bus. But now 
nobody (for example the activity manager) could call start(..., 
OldEventBus) because AbstractActivity's 
(com.google.gwt.activity.shared.AbstractActivity) start-method needs the 
eventbus from the old package. (to make it short if i switch to new event 
bus in ginModule the compile fails - i'don't want this :-))

the question is what to do (in 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6653) they 
talked about editing activity source code or providing an own activity. but 
i guess thats not the official solution to lift an gwt app (2.3 using 
activities) to 2.4?!
so how to implement an Activity in gwt 2.4 (i guess 
com.google.gwt.activity.shared.AbstractActivity should not be used?)?

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



Re: What is current state/fix of/for deprecated PlaceController constructor

2011-11-08 Thread tanteanni
Thx Thomas,

The activity has no dependency on the singleton/global event bus, and the 
one passed to its start() method doesn't come from GIN; so what's the 
problem? 

I think that's wrong in my case. ActivityManagers are provides this way in 
my code:
@Provides
@Singleton
@Named(ContentArea)
public final ActivityManager getContentActivityManager(final 
ContentMapper activityMapper, final EventBus eventBus) {
return new ActivityManager(activityMapper, eventBus);
}
The eventBus is provided 
via bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class); At 
the Moment i change the package the compilation fails for my activities 
(another question is why new ActivityManager is accepting eventBus from 
both packages).

Correct me if i am wrong: you suggest to give activity's start method the 
old eventbus (but this one shouldn't be used). but because the activity 
managers are calling the start method with their eventbus i have to provide 
activitymanagers constructed with the old eventBus? (i don't really 
understand the code you provided, is injector.eventBus() the old or the 
new EventBus)

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



Re: What is current state/fix of/for deprecated PlaceController constructor

2011-11-08 Thread tanteanni
 OK, let's start from the beginning: what do you mean exactly by the 
compilation fails ? Java compilation ? GWT compilation ? where exactly and 
with which error ?

Good Idea (an Thx for your patience - again):

If i change the binding of EventBus (
bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class);) from 
old to new package in my clientModule (Gin) the deprecated warning in
@Provides
@Singleton
public final PlaceController getPlaceController(final EventBus 
eventBus) {
return new PlaceController(eventBus);
}
 will disappear but on gwt-compilation i'll get following error (maven 
build):
[INFO] Compiling module de.stalabw.zensus2011.adb.AuswertungsDB
[INFO][ERROR] Errors in 
'C:\WorkspaceADB\AuswertungsDB\target\.generated\de\stalabw\zensus2011\adb\client\gin\ClientInjectorImpl.java'
[INFO]   [ERROR] Line 895:  Rebind result 
'com.google.gwt.event.shared.EventBus' cannot be abstract
[INFO][ERROR] Cannot proceed due to previous errors

so what's the problem?


 

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



Re: What is current state/fix of/for deprecated PlaceController constructor

2011-11-08 Thread tanteanni
i guess i got it and saved my day -again.

i just eliminated all old(and changed where necessary) imports and put 
com.google.gwt.event.shared.EventBus in each startMethod. 
but i have some bad feelings about that
- some tests call the start methods. at the moment start(panel, new 
com.google.gwt.event.shared.SimpleEventBus()) works (because i know that 
the methods don't use the event bus - all are using the eventBus injected 
on construction-time) - but this could fail. so either i use only the old 
eventBus in Tests (where possible) or wrap it like the managers do in a 
resttableEventBus?

- this solution feels like a workaround?! i think in future there must be 
an new AbstractActivity with correct start-Method (probably a 
1.4AndUpActivity ;-?)


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/vpPVwBxsvYEJ.
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-App totally blocks Browser-UI

2011-11-04 Thread tanteanni
thx for the info jens,

do you say there is no way to keep the browser responsive but to do less 
work/ transfer less data on/to client? is there at least a way to keep 
browser responsive if browser has to do much work/logic?

if i understood it right: transfer much data is worse than to do much work 
on client side? so all efforts should go into reducing data amounts 
transfered to client? but lets assume for a moment that the rpc-call isn't 
the problem but the logic that handles the data received. could this cause 
a freeze of the browser? if yes how to avoid it? probably by using 
schedulInterupted? how to use it?

or how to optimize the view in the way you suggested? At the moment the 
view shows the filtered tree and keeps an unfiltered tree to provide the 
tree faster if user clears the filter/resets the tree. the tree rendeing 
and realtime filtering is very fast - i think no incremental command 
is necessary. the only problem is the first loading/rendering of the tree - 
the tree is submitted in an very special data structure (arrayList, 
composite pattern) that makes live filter as fast as it is.

i could try to create this structure on client side (more logic less 
data)...

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/-VJJx2Br-REJ.
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-App totally blocks Browser-UI

2011-11-03 Thread tanteanni
it's an tree with 16k items (all administrative units of germany) - the 
main advantage to load all items is, i got a very fast live search on the 
tree. but as i said before i don't want to discuss this here. i ask how to 
get an loading overlay/progress bar that doesn't freeze on loading.
i saw many of them in all the gwt/other framework's showcases. so how to 
use scheduler or something else to keep a loading icon moving and the 
browser responsive?

thx in advance?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/PmfXOxRp8hoJ.
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-11-02 Thread tanteanni

ok, thx thomas it begins to become clearer,

my code attached don't use scheduler, thats right. meanwhile (thx to you 
thomas) i played with Scheduler and Timer. The current code looks like:

public void start() {

Timer timer = new Timer() {

@Override
public void run() {
if (ttReady  auReady) {
continueStart();
this.cancel();
}
  else {
  System.out.println(waiting:  + ttReady +   + 
auReady);
  }

  }
};

timer.scheduleRepeating(1000);
   
}

but the feeling about this code is not better than the feeling with my 
infinite loop. i think the problem is, that i don't really understand the 
backgrounds - especially the scheduler. could you please show me some 
sample code for my special problem (how should start() look like?) or give 
some reference to docs explaining the scheduler/the model behind it?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/fwqvnb84yH4J.
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-App totally blocks Browser-UI

2011-11-02 Thread tanteanni
At the start of my App the Browser has to load some stuff and create some 
data objects (Trees). The Problem is, that this blocks the the whole 
browser (no tab switching no reaction on user interactions, even my 
animated loading.gif is not loaded/animated). In swing applications the is 
a SwingWorker to keep the ui running - for example to display a progress 
bar.
But how to achieve this with GWT? My guess is to use Scheduler some how?! I 
want to get the loading more in background and keep the browser more 
responsive. But how to do this?


thx in advance


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/WwjzFmFE0kQJ.
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-11-02 Thread tanteanni
i found a bit of info about scheduler 
herehttp://stackoverflow.com/questions/5131086/using-the-gwt-scheduler. 
now i got:

private boolean tryToContinue() {
if (ttReady  auReady) {
continueStart();
return false;
} else
return true;
}

public void start() {
Scheduler.get().scheduleEntry(new RepeatingCommand() {

@Override
public boolean execute() {
return tryToContinue();
}
});

i used scheduleEntry because of Javadoc: This type of command is 
appropriate for instrumentation or code that needs to know when something 
happens. 
But i am unsure about my implementation/ my understanding about scheduler - 
is the code above correct?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lzoQaeWpE8kJ.
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-11-02 Thread tanteanni
THX for this explanation Jens!

the problem i have with the code you suggested is: how to implement //wait

as stated before my first implementation with an (infinite) while loop 
could block the whole browser. So whats about the other kinds of 
scheduleXXX? Whats about the code i showed above - using  scheduleEntry? 
According do Javadoc scheduleEntry is exactly what i need, but i am 
unsure how to use it.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lyGmS_rDSU0J.
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-App totally blocks Browser-UI

2011-11-02 Thread tanteanni
thx,

are there any examples how to use scheduleIncremental? I don't want/can't 
to split the work that has to be done manually but i want to give the 
browser a chance to do other stuff - is it possible to interrupt a task for 
some time? 
In my case the main work has two parts: loading of data (one ArrayList 
containing the tree structure) and creating a tree widget with it. but 
splitting the work in this two parts wouldn't be enough - the second part 
alone could block a browser on a slow machine for up to 10seconds - very 
bad.
(optimizing the code or give back some work to server is part of another 
discussion - not to be led here)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/OsqLAj1awYIJ.
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-11-02 Thread tanteanni
Thank YOU Thomas,

i guess now i got it - i don't have to schedule the data-loading but all 
the other stuff that need to be properly initialized, right? Thanks for 
your patience (i is probably not the first time i say thx for your patience 
:-)). 

i just wanted jens to ask what happens if dataReady is not ready - i guess 
nothing? but for interest: my code above (using scheduleEntry) would work, 
wouldn't it?


i'll will refactor my code 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/ZIU6mIG7AVMJ.
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-11-02 Thread tanteanni
At the moment i read your last post/ understood the problem i knew that you 
tried it several times - i saw all your vehement efforts to get it into my 
brain (but some times brains don't want to see :-) ).

i just refactored my code - in fact i haven't changed much (i already had 
some scheduler stuff in my code). Because all my tasks are done on 
construction time (gin injected stuff, ApplicationManager registers himself 
to onTaskDoneEvents in constructor)  i got rid of the public start() 
method. Now i only have a private start called in the way you suggested it:
...
@Override
public void onTopicTreeLoadedEvent(TopicTreeLoadedEvent event) {
ttReady = true;
start();
}
..
@Override
public void onAdminUnitsLoaded(AdminUnitsLoadedEvent event) {
auReady = true;
start();
}
...
private void start() {
if (ttReady  auReady) {
Scheduler.get().scheduleFinally(new ScheduledCommand() {

@Override
public void execute() {
// set up activity managers

sidePanelAreaManager.setDisplay(contentArea.getWestSideArea());

breadCrumbAreaManager.setDisplay(contentArea.getBreadcrumArea());

contentMenuAreaManager.setDisplay(contentArea.getContentMenuArea());

contentAreaManager.setDisplay(contentArea.getContentArea());
// insert dynamic layout in static layout
staticView.getContentArea().setWidget(contentArea);
contentArea.setDefaultLayout();
historyHandler.register(placeController, eventBus, 
startPlace);
historyHandler.handleCurrentHistory();
currentPlace = placeController.getWhere();
}
});

}
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/u1L5T1n491sJ.
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-28 Thread tanteanni
so at the moment i delay it (the whole continueStart()) untill some events 
occur. And you propose not to delay it with scheduleDeferred (until 2 
events occurred) but with scheduleFinally? Or how the code shoul look like?
at the moment it is:
...
new SchedulerImpl().scheduleDeferred(new ScheduledCommand() {
  
  @Override
  public void execute() {
  while (!(ttReady  auReady)) {
//bad i know  
  }
  continueStart();
  
  }
...
private void continueStart() {
// set up activity managers
sidePanelAreaManager.setDisplay(contentArea.getWestSideArea());
breadCrumbAreaManager.setDisplay(contentArea.getBreadcrumArea());
contentMenuAreaManager.setDisplay(contentArea.getContentMenuArea());
contentAreaManager.setDisplay(contentArea.getContentArea());
// insert dynamic layout in static layout
staticView.getContentArea().setWidget(contentArea);
contentArea.setDefaultLayout();

currentPlace = placeController.getWhere();
eventBus.addHandler(PlaceChangeEvent.TYPE, this);
historyHandler.register(placeController, eventBus, startPlace);
historyHandler.handleCurrentHistory();
// currentPlace = placeController.getWhere();
// eventBus.addHandler(PlaceChangeEvent.TYPE, this);
}

so please tell me what lines to move where or what lines to change 

thx in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/IO_uuGHSFYcJ.
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-27 Thread tanteanni
i made an (nearly)minimal example showing this problem. it is a simple 
sandbox app where i made some experiments with RequestFactory and 
Activities and Places (no DI, no Gin). The crux is now, that onModuleLoad 
is starting an AppManager.start(). The AppManager shows only wait until 
data is received and event is fired. I f event is received all the 
activities/places machinery is started - but here is the problem: no 
activity is started but PlaceChangeEvent is fired. But all later 
PalceChangeEvents are handled correctly. So what to do to reproduce:
Start the app see wait, wait see received data (the data sending 
service waits 10seconds) - no activities started.
Change id in url from 1 to 2 or vice versa - activities are started 
correctly.
or change start() in AppManager and run continueStart() directly:
public void start() {
//if (dataReady) {
continueStart();
//} else {
//appLayout.add(new Label(wait!));
//}
}

So why the activities are not started on first load? what happens here?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/6nQT3aHZbt4J.
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.



Sandkasten.7z
Description: application/7z-compressed


Re: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-27 Thread tanteanni
that was my first guess but i debugged into ActivityManager's- register 
event code. all activity managers are instatiated and have themselve 
registered on placechange events before the deferred  handleCurrentHistory() 
occurs. Or the other way around: if i do not defer the start all is working 
fine.
it seem only to work if all stuff happens inside onModuleLoad(). and it 
seem that problem only occur if handleCurrentHistory() happens after 
onModuleLoad and all the binding and instantiation in onModuleLoad.
(but i am not sure about all that)

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



how to get speedtracer to work with eclipse/tptp

2011-10-27 Thread tanteanni
some weeks ago i tried speed tracer in chrome for my gwt app 
(eclipse/maven). but only sseing the javascript/html side of the coin 
doesn't really help. now i installed TPTP for Eclipse (my idea was i just 
click profile as MyWebApp) but i found profile as speedtracer. So 
clicked it and set up chrome browser in eclipse (including 
--enable-extension-timeline-api).
Eclipse compiles it, eclipse showed up the url and launches chrome with it, 
chrome displays

Loading Speed Tracer for:http://localhost:/MyWebApp.html; but nothing 
else happens! if i enter the url directly my app is loaded but 
not completely - it stucks somewhere.

So how to set up Eclipse/(Maven)/Speedtracer/Chrome to get profiling to 
work?

thx in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/LyGvKAZDWKwJ.
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: problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-27 Thread tanteanni

at the moment the whole continueStart is deferred at the end of this 
continueStart  handleCurrentHistory() is called, after instantiating 
activity mappers and managers. Before that (on construction time of 
AppManager)  EventBus and PlaceController are instantiated.
you could look in the code i attached in 2nd post. which lines of code 
should be moved where?

(i still don't understand why it works with out the delay but fails with 
delay)

in my real code i tried also to delay the start with a Timer - no matter 
how long the start is deferred it works fine. but as soon as continueStart 
is run after onModuleLoad() - eventBased delay it fails. in meantime 
deferred it synchronously by implementing start() like this:
new SchedulerImpl().scheduleDeferred(new ScheduledCommand() {

@Override
public void execute() {
while (!(ttReady  auReady)) {
System.out.println(waiting);
}
continueStart();

}
});

This is working fine. The time of delaying is the same as before: as soon 
as tt and are become ready. but for interest i want to know/understand what 
is happening here.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/F9TYwKpW2QMJ.
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.



strange JSNI Exception Something other than a Java object was returned from JSNI method ...: JS value of type boolean, expected java.lang.Object

2011-10-26 Thread tanteanni
our gwt produces every few seconds a strange exception:
java.lang.IllegalArgumentException: Something other than a Java object was 
returned from JSNI method

i googled around and find that this could be related to autoboxing (in this 
case probably boolean-Boolean: JS value of type boolean, expected 
java.lang.Object). The question is: is autoboxing allowed in client code? 
is this a limitation of gwt? i never read about such an limitation and most 
of google results about that are outdated.
Ok now i found this: 
http://googlewebtoolkit.blogspot.com/2008/08/gwt-15-now-available.html 
-Simplify your code with for-each loops, autoboxing, static imports, and 
enum types.

So what is the problem here or how to debug this?

thx in advance

Full stack trace:

java.lang.IllegalArgumentException: Something other than a Java object was 
returned from JSNI method 
'@com.google.gwt.core.client.impl.Impl::apply(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)':
 
JS value of type boolean, expected java.lang.Object
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: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.GeneratedMethodAccessor118.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.java:167)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
at java.lang.Thread.run(Thread.java:619)
Wed Oct 26 07:04:23 CEST 2011 
SEVERE: class java.lang.IllegalArgumentException null
com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:178)
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:271)
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
com.google.gwt.core.client.impl.Impl.apply(Impl.java)
com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167)
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281)
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531)
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352)
java.lang.Thread.run(Thread.java:619)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/huxbxskRrX0J.
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 get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread tanteanni
i have one problem with this solution: testability 
since i generate those links in an activity i want test it without 
GwtTestCase. But using my AppPlaceHistoryMapper smells like the need for 
GWTTestCase?!

i think i will refactor my code and give the place a string constant 
(public or with getter) and use this as prefix - good idea?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/1Q6hkGJQ5VMJ.
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 get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread tanteanni
i guess you mean to implement my own PlaceHistoryMapper - only for test?

that could work

but now i am happy with my getPrefix() in place-class. With this i don't 
need a dependency to historymapper in my activity. (it don't feels right to 
use historymapper to get a constant string from a place?!)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/kanCwAlsz3AJ.
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.



problems with loading stuff/bootstrapping onModuleLoad triggered by an event

2011-10-26 Thread tanteanni
the scenario is as follows (i use gin):
- onModuleLoad instantiates a ApplicationManager and runs start() on it.
- ApplicationManager sets up all activitymanagers and the layout, gives 
every manager some display area, sets up history handler and start 
history (historyHandler.handleCurrentHistory();)

all is running fine but i want the application manager to defer the loading 
until an event (data-loaded-event). so i make the manager listen to it and 
all the setup-stuff is done in a new method continueStart(); called on 
this event. the former start() (called in onModuleLoad) just displays a 
loading widget.
but now no activity is started. i debugged into the code. it seems that 
with this deferred loading the ActivityManagers don't hear the 
PlaceChangeEvent fired by historyHandler.handleCurrentHistory(); (The 
Eventbus emitting this event is the same the ActivityManager registered on)

So what's going on here?

my only explanation at the moment is, that this could be related to the 
fact that all the application setup stuff happens after onModuleLoad has 
finished (it only calls start(), and in background applicationManager is 
waiting for an event and does the reals setup after onModulLoad())

so what to do - thx in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/7mOwGd4TlfgJ.
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 get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread tanteanni
thx!

once again i learned a lot :-)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/j91qOXlWMjoJ.
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 get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-26 Thread tanteanni
ok some questions remain:

i just implemented my AppHistoryMapper. I need one implementation per 
place, right? (i guess that is what gwt.create does: generating one mapper 
per place using the tokenizer code for implementation?)
with this mock in place: is the code provided bei jens 
(myHyperLink.setTargetHistoryToken(mapper.getToken(new MyPlace(stateVar1, 
stateVar2, ...)));)) working without gwtTestCase? Which part is 
extracting the prefix from place (some where in setTargetHistoryToken?)? 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/p4mNBTfjbG4J.
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: strange JSNI Exception Something other than a Java object was returned from JSNI method ...: JS value of type boolean, expected java.lang.Object

2011-10-26 Thread tanteanni
i think yes -

thx for the hint

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



How to get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-24 Thread tanteanni
My app uses activities and places. All my places' tokenizers have prefixes 
to make bookmarks more readable. instead of calling PlaceController.goTo(new 
Place) i often use (inline)hyperlinks that point to another place or state - 
i think it is more readable and transparent for the user. The problem is: on 
generating /building those links i need the prefix of the respective place, 
at the moment those classes have a string constant with the prefix' value - 
a bad thing, will break as soon as someone changes the prefix. 

at the moment i see two ways to get rid of the magic string constants in 
the link-building class:
- let the place implement a getInlineLink() - Method(probably specified 
within an interface), the prefix is to be set as an static constant within 
the place
- get the prefix somehow - is there a way to get the value of prefix of a 
place'tokenizer class?
- provide the strings via client bundle constants interface 
- another way or is this all bullshit ?

so what do you suggest?

thx in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/2aMOoZHNyrwJ.
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 get @Prefix value from an Place.Tokenizer? or how to set via clientbundle constants?

2011-10-24 Thread tanteanni
thx!

that is exactly what i am looking for. 

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



How to change locale/ link to current url (how to make flag-buttons to change locale)

2011-10-24 Thread tanteanni
At the moment we use some nasty inline JS-Code to change the current url 
(the loacle part) and let the browser reload the page. Is there a Java/GWT 
way to make a Link to the the same place but with different locale?

Somthing like that: new HyperLink(...,getCurrentUrl().changeLoacele(en)) ?

Or how to make buttons to change locale?

thx in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/VFKzlw50yS8J.
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 locale/ link to current url (how to make flag-buttons to change locale)

2011-10-24 Thread tanteanni
Thx!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/kXIcnrkWjrIJ.
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 test presenter that is activity

2011-08-18 Thread tanteanni
thx for Jukito !!

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



how to test presenter that is activity

2011-08-17 Thread tanteanni
On of the main advantages of MVP-patrtern propagated is testability because 
if implemented correctly there is no need for GWTTestCase. But if i use 
MVP in conjunction with activities  places - meaning presenters become 
activities - this advantage seem to gone?! Beeing a presenter and activity 
at the same time means knowing something about PlaceController - to go to 
other places or to deserialize the state of current place. (If 
PlaceController is involved the need for GWTTestCase arose.)

At the moment i see some alternatives:
- testing the old way with GWTTestCase
- separating activity and presenter (separating navigation logic from 
business-logic, the pattern is know MVPA)
- make activity more testable (how? give a null-PlaceController in 
constructor?)

My Question is: Is there a best or at least good practice to test/implement 
such presenters? (the first 2 alternative are the worst in imho)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/3_fACom4yUEJ.
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 test presenter that is activity

2011-08-17 Thread tanteanni
thx i already use gin. but how to get a testable PlaceController - 
Placecontroller is a class not an interface? my only idea is to give null?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/2rENUIKK3DwJ.
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 test presenter that is activity

2011-08-17 Thread tanteanni
i didn't know about this nice constructor - thx objectuser!

i'll try it :-)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/o-kXOhM2fzsJ.
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.



  1   2   >