how to integrate eclipse, gwt, maven and gwt designer

2011-03-07 Thread tanteanni
at the moment i am able to generate and launch the gwt-starter app. with both webappcrator (-maven), and mvn archetype:generate... - DarchetypeVersion=2.2.0 (main difference is the location of ..gwt.xml) both make problems (http://groups.google.com/group/codehaus-mojo-gwt-

webappcreator -maven error: com.google.gwt.junit.client.GWTTestCase can not be found in source packages.

2011-03-07 Thread tanteanni
i am trzing to generate a eclipsemaven project with webappcreator (webappcreator -noant -maven -out MyPeoject here.Myproject). Importing this in eclipse yields com.google.gwt.junit.client.GWTTestCase can not be found in source packages. Check the inheritance chain from your module; it may not be

how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-17 Thread tanteanni
(this is my last attempt to get a message through the moderators - my last 2 question seem to be ignored) at the moment i am working on my first gwt application (after going through the (great) stockwatcher tutorial). I am facing problem on getting server side services to work. on starting my app

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-17 Thread tanteanni
Mrz., 16:03, tanteanni tantea...@hotmail.com wrote: (this is my last attempt to get a message through the moderators - my last 2 question seem to be ignored) at the moment i am working on my first gwt application (after going through the (great) stockwatcher tutorial). I am facing problem

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-17 Thread tanteanni
? Or why i got this error only if run via myApp? On 17 Mrz., 16:03, tanteanni tantea...@hotmail.com wrote: (this is my last attempt to get a message through the moderators - my last 2 question seem to be ignored) at the moment i am working on my first gwt application (after going through the (great

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-18 Thread tanteanni
how this could happen On 17 Mrz., 21:43, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Put the persistence.xml in your source in the correct place. Juan 2011/3/17 tanteanni tantea...@hotmail.com I feel a bit sheepish about it.But the Failure was much simpler then you all could

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-18 Thread tanteanni
thishttp://stackoverflow.com/questions/3873545/wicketspringjpahibernate-n... Juan On Mar 17, 1:39 pm, tanteanni tantea...@hotmail.com wrote: I feel a bit sheepish about it.But the Failure was much simpler then you all could imagine (obviously): simply i missed extends RemoteService

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-18 Thread tanteanni
Gardella gardellajuanpa...@gmail.com wrote: Show the file persistence.xml Juan 2011/3/18 tanteanni tantea...@hotmail.com 1) here ist the stacktrace (taken from eclipse console): Starting Jetty on port   [WARN] Exception while dispatching incoming RPC call

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-18 Thread tanteanni
, juan_pablo_gardella gardellajuanpa...@gmail.com wrote: 1) Are you test if you make the WAR and put in Tomcat (for example) and continue this error? 2) Is the complete stackttrace? Juan On Mar 18, 9:35 am, tanteanni tantea...@hotmail.com wrote: sorry here it is: ?xml version=1.0 encoding

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-18 Thread tanteanni
wrote: See thishttp://forum.springsource.org/archive/index.php/t-37014.html http://forum.springsource.org/archive/index.php/t-37014.htmlJuan 2011/3/18 tanteanni tantea...@hotmail.com deployed in Tomcat the persistence xml can be found!  but the errors becomes even strander (see below). i

Re: how to debug java.lang.RuntimeException: Deferred binding failed for...

2011-03-18 Thread tanteanni
://stackoverflow.com/questions/2394334/jpa-and-gwt-failing http://stackoverflow.com/questions/2394334/jpa-and-gwt-failingJuan 2011/3/18 tanteanni tantea...@hotmail.com thx but this thread isn't related to my problem: jetty can't access resources located in referenced jar-files.  Tomcat can access them

persitence.xml/Persistence provider not found if running in hosted mode/jetty (works if deployed on tomcat)

2011-03-18 Thread tanteanni
i am working on my first gwt application. an got problems on integrating a jpa2-using jar. if i run my app in hosted mode i get an exception including: javax.persistence.PersistenceException: No Persistence provider for EntityManager named myPU the persistence.xml is located in

Re: persitence.xml/Persistence provider not found if running in hosted mode/jetty (works if deployed on tomcat)

2011-03-21 Thread tanteanni
thats' right bur my problem is, that jetty/development mode don't find the persitence.xml. as i mentioned before if i deploy and run it in on tomcat it works fine! so how to get jetty/dev mode to find/can access all resources within reference libraries? On 19 Mrz., 18:14, Y2i yur...@gmail.com

Re: persitence.xml/Persistence provider not found if running in hosted mode/jetty (works if deployed on tomcat)

2011-03-22 Thread tanteanni
no - all is working fine if i run the reference jar from console. If deployed in Tomcat the persistence unit can be found. my structure is as follows: war/WEB-INF/lib/ are all referenced libraries among others eclipselink-2.0.2.jar, javax.persistence-2.0.0.jar and gwzDB.jar. The latter includes

Re: persitence.xml/Persistence provider not found if running in hosted mode/jetty (works if deployed on tomcat)

2011-03-22 Thread tanteanni
no - all is working fine if i run the reference jar from console. If deployed in Tomcat the persistence unit can be found. my structure is as follows: war/WEB-INF/lib/ are all referenced libraries among others eclipselink-2.0.2.jar, javax.persistence-2.0.0.jar and gwzDB.jar. The latter includes

Re: persitence.xml/Persistence provider not found if running in hosted mode/jetty (works if deployed on tomcat)

2011-03-22 Thread tanteanni
services. I guess something went wrong with resource management. especially the em/emf resource- handling drives me crazy. any advices on that? On 18 Mrz., 16:04, tanteanni tantea...@hotmail.com wrote: i am working on my first gwt application. an got problems on integrating a jpa2-using jar. if i

problem with character encoding

2011-03-22 Thread tanteanni
i made a very simple sandbox gwt-app to get familiar with rpc and integrating third-party libraries. this sandbox app simply references a library that offers one service: returning a string read from a property-file within the referenced jar. the problem is the encoding seem to be wrong - special

Re: problem with character encoding

2011-03-22 Thread tanteanni
and especially the conncetor URI encoding definition. HTH, Lukasz On 22 Mrz., 12:32, tanteanni tantea...@hotmail.com wrote: i made a very simple sandbox gwt-app to get familiar with rpc and integrating third-party libraries. this sandbox app simply references a library that offers one service

can't debug with eclipse because launching in eclipse fails

2011-03-22 Thread tanteanni
first i thought my project is not working at all (http:// groups.google.com/group/google-web-toolkit/browse_frm/thread/ 2363c9992dee4e51) the problem short: a referenced library in server code can't access/ see one of its resources - the persistence.xml. but it seems only a problem with

Re: problem with character encoding

2011-03-23 Thread tanteanni
thx for your investigation, i'll try it with chnaged encoding of propery-file (at the moment i load it via Properties.load.getresourceasstream(file)). but is there a way to let my code let the reencoding, so that properties-file could be utf-8? ('til now i thought that all java encoding is utf-x

Re: can't debug with eclipse because launching in eclipse fails

2011-03-24 Thread tanteanni
). If this doesn't work, please post on the gwt-maven-plugin forum: http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users HTH, /dmc On Tue, Mar 22, 2011 at 1:28 PM, tanteanni tantea...@hotmail.com wrote: first i thought my project is not working at all (http

Re: problem with character encoding

2011-03-25 Thread tanteanni
thx now it is working On 23 Mrz., 09:47, Thomas Broyer t.bro...@gmail.com wrote: On Wednesday, March 23, 2011 7:10:00 AM UTC+1, tanteanni wrote: thx for your investigation, i'll try it with chnaged encoding of propery-file (at the moment i load it via Properties.load.getresourceasstream

can't get tabLayout with 100% size

2011-03-31 Thread tanteanni
i am trying to get an tab layout which gets 100% of screensize but all set size with percentage is beeing ignored. here is my code: public void onModuleLoad() { RootPanel rootPanel = RootPanel.get(); String text1 = Lorem ipsum dolor sit amet...;

Re: can't get tabLayout with 100% size

2011-03-31 Thread tanteanni
thank you very much, since hours i try this :-) On 31 Mrz., 12:44, Jens jens.nehlme...@gmail.com wrote: Put your TabLayoutPanel in a RootLayoutPanel instead of a RootPanel. Then it should work and you do not need to set any width/height. -- You received this message because you are

how to set selected widget in stackLayoutPanel?

2011-03-31 Thread tanteanni
i found only this: http://code.google.com/p/google-web-toolkit/issues/detail?id=4453 but how is this fixed? how can can set the selected widget within a stacklayoutpanel? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Re: how to set selected widget in stackLayoutPanel?

2011-04-01 Thread tanteanni
no that is exactly what i want - thx! On 31 Mrz., 17:50, Jens jens.nehlme...@gmail.com wrote: You can use StackLayoutPanel.showWidget(...) methods or do you mean something different and I don't get it? -- You received this message because you are subscribed to the Google Groups Google Web

need more abstract AsyncCallback class

2011-04-11 Thread tanteanni
i am fairly new to gwt and struggling some how on correct/nice RPC implementation (it is working but code becomes ugly). On my first GWT based apps i often load some lists/data from db into front end. (Lists to be used in combo boxes for instance). so if i have a widget that needs 3 different

Re: need more abstract AsyncCallback class

2011-04-11 Thread tanteanni
);   }   public void onFailure(Throwable caught) {     ...   } } ListSomeType myList = ; MyServiceAsync service = ; service.loadSomeData(new ListLoaderAsyncCallbackSomeType(myList)); On Mon, Apr 11, 2011 at 9:00 AM, tanteanni tantea...@hotmail.com wrote: i am fairly new

Re: need more abstract AsyncCallback class

2011-04-12 Thread tanteanni
, tanteanni tantea...@hotmail.com wrote: meanwhile i tried your suggestions but i am struggling at getting the right signature: so i want a callback working of all kinds of collections and adding the result to the given collection: at the moment i got this:        private class LoadMapsT

Re: need more abstract AsyncCallback class

2011-04-12 Thread tanteanni
ok my fault - i tried to use a map - and map isn't a collection. stupid me On 12 Apr., 08:05, tanteanni tantea...@hotmail.com wrote: that doesn't work either :-|. I need something that works on all collections. Do i need a ? somewhere probably? On 11 Apr., 16:52, Magno Machado magn

Re: need more abstract AsyncCallback class

2011-04-12 Thread tanteanni
?,? but then target.putAll(result) isn't working anymore. so how to distribute ? correctly? On 11 Apr., 14:00, tanteanni tantea...@hotmail.com wrote: i am fairly new to gwt and struggling some how on correct/nice RPC implementation (it is working but code becomes ugly). On my first GWT based apps i often load

Re: need more abstract AsyncCallback class

2011-04-12 Thread tanteanni
); } } thx to both of you! On 11 Apr., 14:00, tanteanni tantea...@hotmail.com wrote: i am fairly new to gwt and struggling some how on correct/nice RPC implementation (it is working but code becomes ugly). On my first GWT based apps i often load some lists/data from db into front end. (Lists

suggestionBox backed with pairs value-text (id-ambiguous name)

2011-04-12 Thread tanteanni
i need a way to get a suggestion box that suggests from an ambiguous list of strings, but every string has an unique id. if a suggestion is chosen / selected i need the id of this selected item. how implement this? (at the moment i use ListBox, i guess there i would use addItem(name,id)?) --

Re: suggestionBox backed with pairs value-text (id-ambiguous name)

2011-04-12 Thread tanteanni
don't know if i understood your suggestion. ...would be the name+id probably in your case that isn't right. i only want the ambiguous names to be displayed. and on selection of a displayed text i have to know its id. my data source is an mapid-name. the names represent the suggestion list but the

can't get rid of com.google.gwt.user.client.rpc.SerializationException

2011-04-13 Thread tanteanni
I have a problem to get a class serialized by gwt. i don't know why but i never had problem serialize Mapsomething here, something there but i allways get this error if i try to serialize Lists?! To cut a long story short here are the classes that gwt can't serialize: public class AdminUnit

Re: can't get rid of com.google.gwt.user.client.rpc.SerializationException

2011-04-13 Thread tanteanni
stupid me: the default zero parameter constructor is missing with private AdminUnit(){ } it is workin On 13 Apr., 15:39, tanteanni tantea...@hotmail.com wrote: I have a problem to get a class serialized by gwt. i don't know why but i never had problem serialize Mapsomething here

Re: suggestionBox backed with pairs value-text (id-ambiguous name)

2011-04-14 Thread tanteanni
meanwhile i found http://eggsylife.co.uk/2008/08/25/gwt-suggestbox-backed-by-dto-model/ that helped much. essential is not only to overwrite the oracle but suggestion. On 12 Apr., 12:43, tanteanni tantea...@hotmail.com wrote: i need a way to get a suggestion box that suggests from an ambiguous

combobox - combination of list- and suggestion box

2011-04-18 Thread tanteanni
how to make a suggestBox with a clickable drop down menu (showing suggestion on click). the use case for this is a user who don't know what text to put in to get a suggestion. i already tried listbox - no text input :-( and suggestBox with own MultiWordSuggestion and own SuggestOracle but how

Re: combobox - combination of list- and suggestion box

2011-04-18 Thread tanteanni
of that license, here it is: http://code.google.com/p/simple-gwt/wiki/ComboBoxModulehttp://code.google.com/p/simple-gwt/source/browse/trunk/src/core/com/... On Mon, Apr 18, 2011 at 6:16 AM, tanteanni tantea...@hotmail.com wrote: how to make a suggestBox with a clickable drop down menu (showing

using SuggestBox with special Oracle and Suggestion - how to keep view humble

2011-04-19 Thread tanteanni
with your (http://groups.google.com/group/google-web-toolkit/ browse_frm/thread/be1e8e363a6f0794/9ceb716e29a5b985) help i learned how to implement my own SuggestionOracle(AuSuggestOracle) and own Suggestions(AuMultiWordSuggestion). In my case the suggestion object is constructed with a DTO. On a

Re: using SuggestBox with special Oracle and Suggestion - how to keep view humble

2011-04-25 Thread tanteanni
thx fo the tip (in particular the idea with HasSuggestion interface). but in long run i fear i 'll end up with many such interfaces and delegates to obey to some pattern :-| On 19 Apr., 15:16, Ben Imp benlee...@gmail.com wrote: I ran into this issue as well - knowledge of the domain in the

Re: combobox - combination of list- and suggestion box

2011-04-26 Thread tanteanni
binding to show the proper one in each permutation. On Tue, Apr 19, 2011 at 1:19 AM, tanteanni tantea...@hotmail.com wrote: thx for the code basically you took a suggestbox in a horizontal panel with a button right? i found similar code here: http://stackoverflow.com/questions/3039436

what kind of MVP to use, what is current best practice

2011-04-27 Thread tanteanni
first i thought it is hard to decide which front end/ widget framework to use (i decided to use pure gwt because of flexibility) but now after writing first small prototypes and reading about best practices and MVP, i came to conclusion that the much harder decision is how to implement MVP or

Aw: Re: what kind of MVP to use, what is current best practice

2011-04-27 Thread tanteanni
thx for explicitly pointing to part2 - 'til now i didn't read it because i thought it is all about how to use uiBinder but now i found ...you quickly realize that something has to give. Either the presenter needs to know more about the view (making it hard to swap out views for other

Aw: Re: what kind of MVP to use, what is current best practice

2011-04-27 Thread tanteanni
my confusion is raising?! (did someone read my answer? i kindly ask that someone may pay attention to it) thomas i don't know if i understand the relation (i it exists) between MVP and places and activitie? It'd be in most case a brad practice... does this mean that is bad practice if places

Aw: what kind of MVP to use, what is current best practice

2011-04-27 Thread tanteanni
Thx to all of you, confusion is disappearing (slowly) :-) So the bottom line is: a good practice would be to use MVP (part2 -Way) in conjunction with places and activities(mainly for history management - ignoring history management of part1 - but also as a more abstract kind of

Aw: what kind of MVP to use, what is current best practice

2011-04-27 Thread tanteanni
thanks to all of you! all of you suggest the same way (rarely enough :-)): try to work with the tools offered by gwt and use them the way they meant for. and obey to MVP!(the only part i tried already) (should gin/guice also remain untouched?) do you use gin/guice? so i'll read part2, read

Aw: Re: combobox - combination of list- and suggestion box

2011-05-04 Thread tanteanni
I think you misunderstood. ListBox has nothing to do with ComboBox. i know this. my problem is not how to get a suggestion box with a button on right side to show all suggestion (like list box does) - thx to your code example. My Problem is how to get it look like a listBox. I don't want to

Aw: Re: combobox - combination of list- and suggestion box

2011-05-04 Thread tanteanni
thx - i think i misunderstood Isaac. the only Way to get the native look in this case, would be to take gwt's source code of ListBox and make a ComboBox out of it?! (i won't do that) Alternatively i have to use my own styling including pictures to get the look i want. - i think that's the way

Aw: Re: combobox - combination of list- and suggestion box

2011-05-04 Thread tanteanni
thx! so i can't get around css :-|. Is there a (open source) library of css styles or images for web-gui elements? it is not only that i am no web designer - i also don't want to reinvent the stylewheel of every gui-element. -- You received this message because you are subscribed to the

Tried to implement MVP Part 2 - some Questions remain

2011-05-23 Thread tanteanni
i am still at the path to get an deeper understanding of design of large-scale-gwt applications. first some way points were set (https://groups.google.com/forum/#!topic/google-web-toolkit/f20FbM04usU/discussion). Now i implemented my only use-case obeying to MVP Part

Re: Tried to implement MVP Part 2 - some Questions remain

2011-05-24 Thread tanteanni
push -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options,

activities - places with more complex layouts

2011-05-26 Thread tanteanni
i just tried to implement one little part of my little app with activities and places (before i tried MVP Part2https://groups.google.com/forum/#%21topic/google-web-toolkit/PYzmI2Ur34c). while this was nearly no problem i stumbled on refactoring/redesigning the rest - the main layout, entry

Re: activities - places with more complex layouts

2011-05-26 Thread tanteanni
thx but guess before i opened this thread :-). the problem with all the tutorials/blogs/threads about places and activities is, that they all try to link themself to mvp and they all use/recycle simple mvp examples. (ok your articles try to show/mention the difference) but the main problem is

Re: activities - places with more complex layouts

2011-05-27 Thread tanteanni
first thx for the links - some are new to me …until you try introducing a tab layout into the game… because tabs, by definition, break linear navigation, so they oviously don't play well with browser history and global application state. thats hard. my idea was, that the tabs are the main

Re: Aw: Re: activities - places with more complex layouts

2011-05-27 Thread tanteanni
thx for the hints, but as i mentioned before - the (tab)-layout isn't my main concern: my main problem is how do i map/use those activities,places,views. most example suggest 1:1:1 releationship. also the interfaces imply this: the start method of activity acceptsOneWidget (i know this could

Re: Aw: Re: Aw: Re: activities - places with more complex layouts

2011-05-30 Thread tanteanni
thx jens - thats enlightening! ok in my case i will construct wrapper-widgets to get n displayareas with 1 activity. the hint with n activity mappers to get n places to start will help in future. do you know of an use case for n activity mappers? -- You received this message because you are

Re: activities - places with more complex layouts

2011-05-30 Thread tanteanni
jens' example for tab-like use - the google apps- is the exact same example i think about. it is used to switch between not connected parts. in fact they are connected - they are all google apps (connected via account) or all have the same context like - to set properties(connected via

Re: Aw: Re: Aw: Re: Aw: Re: activities - places with more complex layouts

2011-05-30 Thread tanteanni
thx for this correction - time to try it -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to

Re: Aw: Re: activities - places with more complex layouts

2011-06-03 Thread tanteanni
.. so i have one place for all properties. but how many activities? One? with one activity, the AccepsOneWidget-widget has to be the hole tab-layout? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

odd problem with events (registering, sending, receiving Order) and place-change

2011-06-15 Thread tanteanni
i just finished my first own example with activities/places and MVP. all works fine but some events aren't send or received properly if i change back to a place (from another place). but on moduleLoad where this place is set as default place all works fine. i think it shouldn't make a

Re: GWT 2.1 MVP Multiple activities clarification help

2011-06-15 Thread tanteanni
i didn't read all post, but i ran into similar problems. now i got something that's working for me: i decoupled activities/places and MVP (what thomas suggested in many places). in my case the VP-pairs are controlling/filling display areas and one activity is starting/ controlling them.

doing MVP outside activities/places - good idea? (or how to change place token without going to same place with changed token)

2011-06-20 Thread tanteanni
since some weeks or probably months i walk through gwt-mvp/activities/places-forest. i read/wrote many posts here and got many answers. at the end i desided to tried to separate MVP from activities and places (like thomas broyer suggested at many places). (for example here:

Re: Aw: doing MVP outside activities/places - good idea? (or how to change place token without going to same place with changed token)

2011-06-20 Thread tanteanni
thx! absolutly the same ideas came to my mind and let me post this question. (i have to admit that not only thomas' but also your answers and suggestion directed me to this approach) i read the discussion you mentioned above and one question remains: is it a good idea to do things this way?

Problems with filtering/ caching activities

2011-06-24 Thread tanteanni
I have similar problem as Jens herehttps://groups.google.com/forum/#%21topic/google-web-toolkit/OsDpLtBoTQo. The general Problem is: How to prevent a (select some item)-activity to be restarted if someone selects an item and the app is go(ing)To(Contentplace) to show item's content. (if you

Re: Question about new activities on place changes

2011-06-24 Thread tanteanni
Thomas/Jens. ... and the CachingActivityMapper will then return the same activity instance as previously ... how to achieve that? i am able to create caching/filtered mapper but Filter returns a place and all my mappers are returning new activities? How to get / hold the old activity without

Re: Question about new activities on place changes

2011-06-24 Thread tanteanni
no -- 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/-/qzqZyEaSCPkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To

Re: Question about new activities on place changes

2011-06-24 Thread tanteanni
i didn't understand much thomas - sorry. in meantime i wrote a little sandbox app to boil my problem down to a minimum amount of code. My Problem is either i didn't understand anything or CachingActivityMapper is a misleading term because where is the cache and the cached activity. All i got

Re: Problems with filtering/ caching activities

2011-06-24 Thread tanteanni
first let me say thx for your great example. it helped much. but my problem at the moment is another one (or i am misunderstanding something): first i thought if i return the same place in filter method... : place i got back a cached activity, but thats not true. i only get a place that is

Re: Question about new activities on place changes

2011-06-24 Thread tanteanni
ok thats clear enough but there is my problem: providing an activity mapper that returns a cached activity. how does such an getActivity -method looks like (my only idea is to return an activity saved in some global field). but i can't believe that CachingActivityMapper could provide a cached

Re: Problems with filtering/ caching activities

2011-06-24 Thread tanteanni
in meantime i tried your code (in my own eclipse maven project) - it's working as expected. My first mistake was to think, that the cached activity is used if Filter returns place but the opposite is true. But that didn't helped much. For some reason if your filter

Re: Question about new activities on place changes

2011-06-24 Thread tanteanni
thx thomas for your never ending endurance, i guess i came a little closer after reading the source. Sorry for that: But what is the value of lastPlace and lastActivity after construction time? And i miss the connection with Mauro's current code: If His CachingMApper returns new

Re: Problems with filtering/ caching activities

2011-06-24 Thread tanteanni
thx for this picture, my problem is i don't know what place is compared to cachedPlace and what is cached place. Or where the comparison takes place? 'Til now i thought on returning the given place in filter-method i am sure the 2 places are equal. but debugging your updated code shows that on

Re: Aw: Re: Question about new activities on place changes

2011-06-27 Thread tanteanni
thx to all 3 of you! my very little example is now working (is there a place to upload examples? it is nice to understand activities and places without MVP) placeController.getWhere() is the essence that made it clear for me. thats the place the comparison uses with the place given to goTo,

Re: Aw: Re: Aw: Re: Question about new activities on place changes

2011-06-27 Thread tanteanni
thx that's realy nice - on first sight much better than filtering/caching/overriding equal just to get the same as before. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

why does webappcreator doesn't create resource-directories in -maven mode anymore?

2011-07-01 Thread tanteanni
is there a reason why webappcreator doesn't create a resource folder for maven? -- 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/-/7AnFIj1b7fIJ. To

Re: Disposable activities

2011-07-03 Thread tanteanni
this threadhttps://groups.google.com/forum/#%21searchin/google-web-toolkit/tanteanni/google-web-toolkit/OsDpLtBoTQohelped me much with this problem. there are two approaches to keep activities alive. the official way made me headache but it works: Thomas said ...if the current place

how to add resource folder to webappcreator (-maven) project

2011-07-04 Thread tanteanni
i need a resource folder (maven) in my project (created by webappcreator -maven). for some reason webappcreator didn't generate them. the problem is simply adding new folders doesn't work (in eclipse). the resource folders need special settings in java bild path/source. is there a way to

how to handle resources on server side (maven gwt)

2011-07-04 Thread tanteanni
i need some files on sever side but the normal: put it in resources-Folder(i created one because webappcreator didn't) and use MyClass.class.getResourceAsStream(/ + filename); does not work?! i allways get null. usind FileInputStream and absolute path works. gwt-maven-plugin copies the file to

Re: how to handle resources on server side (maven gwt)

2011-07-07 Thread tanteanni
thx, the problem is this is my first web-app so it's hard for me to distinguish between gwt specific and webapp specific problems. my problem is that i never had problem with resource handling because of maven (all that is copied to resources is accassible via getClass().getResource...). But

Re: how to handle resources on server side (maven gwt)

2011-07-07 Thread tanteanni
in meantime i tried to put my file to main/webapp/WEB-INF/myfile (next to web.xml). but getResurceAsStream(/+myfile) still returns null (with or without /). so where to copy resources to? (i don't want to manipulate the pom) -- You received this message because you are subscribed to the

caching activity in a field in activity mapper - good or bad?

2011-07-11 Thread tanteanni
i have a bad feeling by caching every (not to be constructed on every place change)-activity via the boiler plate overkill (imho it is): CachingActivityMapper, FilteredActivityMapper, overriding equals/clone of the place (in a contract breaking way?, i just created an abstract place with

keyPressEvent before character is there -TextBox

2011-07-12 Thread tanteanni
i am trying to implement a live search with a text box. i am triggering the search on KeyPressEvent. My Problem is, that the event is fired before the text is set. so on keyPressEvent i can't get the current text from textBox. Ho to solve this? Is there an event better suited for lifesearch?

Re: Aw: keyPressEvent before character is there -TextBox

2011-07-12 Thread tanteanni
thx thats it (KeyUp works fine). (in meantime i also tried keyDownEvent :-|) -- 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/-/0_a7A1RCek8J. To

Re: Changing the Place History without really going to a place

2011-07-19 Thread tanteanni
Ashwin is right, use MVP Patternhttp://code.google.com/webtoolkit/articles/mvp-architecture-2.html(you could easily ignore ui binder stuff). The activity will become the (P)resenter. Make it listen to placeChangeEvents . OnPlaceChange-method extracts the token from the place . Set up / change

App runs dev-mode but doesn't run if deployed

2011-07-26 Thread tanteanni
We are developing our first gwt app in meantime i pushed some releases and all went fine. The last things we did was experimenting with css/clientbundle and exceptionhandling/ logging. All is still working in Dev-Mode but today we tried to deploy the war on Tomcat (first time for this

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

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

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

Re: how to test presenter that is activity

2011-08-17 Thread tanteanni
on additional question about the mock PlaceController: i guess the normal PlaceController is the source of PlaceChangeEvents, isn't it? Is it possible to let the mock fire such events on call of goTo in PlaceController? (Will the PlaceController delegate goTo-calls to it's delegate?) it would

Re: how to test presenter that is activity

2011-08-17 Thread tanteanni
that means the PlaceController works as always?! it delgates only the GwtTestCase-needed-stuff? - great! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

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

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

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

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

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

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,

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

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

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

  1   2   >