Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    aallnneess
    @aallnneess
    another question: i cant save txt files on serverside (with rpc) with: (BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("data\\Server_Debug.txt",true))) ?
    in super-dev this works fine, but in realword it doesnt
    Miroslav Pokorny
    @mP1
    your paths must be different
    current dir
    aallnneess
    @aallnneess
    i tryed: GWT.getModuleBaseURL() and GWT.getHostPageBaseURL()
    Miroslav Pokorny
    @mP1
    those are urls from the perspective of the browser, your file writing is on the server, your problem is due to change in current dir of the server
    aallnneess
    @aallnneess
    ah, okay
    mh. with the whole ip:port/app/data ?
    aallnneess
    @aallnneess
    okay, i god it
    AndreiF
    @andreififiita
    Hello. I am using GWT with eclipse, i was wondering if there is an explicit way to check that a certain gwt version is used. (i switched some projects and i want to be sure everything is setup correctly). In the Eclipse gwt startup console or in the browser dev tools console?
    aallnneess
    @aallnneess
    maven or ant ?
    in an ant project you can see it in ithe build.xml <!-- Configure path to GWT SDK --> <property name="gwt.sdk" location="C:/Program Files/Java/gwt-2.9.0" />
    in maven you must look into the pom.xml <!-- ensure all GWT deps use the same version (unless overridden) --> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt</artifactId> <version>2.9.0</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement>
    AndreiF
    @andreififiita
    No, i meant at runtime
    I need a method of checking independent of configuration (mave, project classpath ant etc)
    aallnneess
    @aallnneess
    hm okay, there i cant help you
    AndreiF
    @andreififiita
    I know Eclipse sometime has some problems where it runs "old config classes". I remember once i was using a certain version of gwt for my project (build time), but when running the server, some classes from a previous version was used (or i was using a project specific SDK, but it was using workspace specified sdk on runtime, it was a strange behavior, but i dont remember exactly)
    I am sure in the browser dev console should be some whay to print the running gwt version (at least in superdev mode)
    aallnneess
    @aallnneess
    Why is it impossible to wrap a TreeItem in length?
    The tree is in a flaxtable. I can limit the width of the tree via CSS (max-length) but the TreeItem (the name) goes across the screen .....
    Also about other widgets about it ...
    makes no sense to me
    image.png
    Do I really have to cut the string itself?
    aallnneess
    @aallnneess
    seems so :D
    aallnneess
    @aallnneess
    nobody an idea?
    Just try to set the name of the TreeItem as HTML with the <br> tag. That seems possible
    Ahmad K. Bawaneh
    @vegegoku
    You need to provide more useful input so we can help ... like what is the markup you are using for this and what css
    maybe use pastebin or any other tool to reproduce the case
    aallnneess
    @aallnneess
    Hm. That’s a very big project now. The Tree class is over 500 lines in size. So I didn't want to post big code because of this small issue. Because, I just don't understand why TreeItems don't have a wrap option - and doesn't respond to wrap CSS commands.
    Justin Hickman
    @jhickman
    You'd just have to look in chrome dev tools to see what the output HTML and CSS is. Typically, you can tweak it from there to what works, and then apply to your CssResource
    That seems more of an HTML/CSS issue than GWT-specific
    Colin Alworth
    @niloc132
    @andreififiita at runtime in the browser you can check for the $gwt_version of any running gwt app
    from the classpath you can check the About class i believe, but since you have both gwt-dev and gwt-user, you need to further make sure that those match (there is a About.properties file that it reads from), in com.google.gwt.dev
    (if it builds, they probably match)
    aallnneess
    @aallnneess
    @jhickman ah okay that helps a bit thanks
    AndreiF
    @andreififiita
    @niloc132 hi. i was searching about that, but in superdev mode i see no variable $gwt_version
    VM6221:1 Uncaught ReferenceError: $gwt_version is not defined
    at <anonymous>:1:1
    Colin Alworth
    @niloc132
    @andreififiita unless you've heavily modified your linker, it is there
    oh, it isnt in the top window
    it is in the gwt "frame" or whatever context it runs in
    AndreiF
    @andreififiita
    oooooh right, i forgot about that
    Colin Alworth
    @niloc132
    look inside the .cache.js file, should be one of the very first commands
    custom gwt builds will of course have custom versions, iirc all of google's internal builds always used version 0.0.0
    AndreiF
    @andreififiita
    @niloc132 got it!. It was there. inside the .cache.js file and the i printed the variable inside the frame
    Btw, why does gwt need the frame?
    Is there an explanation in the docs?
    Colin Alworth
    @niloc132
    you don't always need it - but it guards against your own code stomping on some external js
    like if gwt decided to name something $, but you already had jquery on the page
    AndreiF
    @andreififiita
    I mean why does gwt loads all code within that frame by default, and not directly in top window