Re: is it possible to integrate PersistentUnit annotations in RequestFactoryServlet?

2011-09-15 Thread Jens
You can use guice with RequestFactory: http://wanderingcanadian.posterous.com/guiced-up-gwt-requestfactory -- 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/g

Re: byte array to Image

2011-09-16 Thread Jens
Base64Utils from GWT's source does not use the standard MIME characters when encoding data to Base64. So I think thats why the browser does not display the image. To verify this, you can try and search a MIME standard Base64 encoder, convert the byte array and put the base64 string into your dat

Re: Calling GWT RPC Services in another server

2011-09-16 Thread Jens
You could also set up a reverse proxy that delegates requests to other external servers. -- 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/-

Re: Uncaught exception escaped

2011-09-16 Thread Jens
*Caused by: java.lang.IllegalArgumentException: Multiple decimal separators in pattern "#,##.0.00"; * at com.google.gwt.i18n.client.NumberFormat.parseTrunk(NumberFormat.java: 1564) at com.google.gwt.i18n.client.NumberFormat.parsePattern(NumberFormat.java: 1501) at com.google.gwt.

Re: byte array to Image

2011-09-16 Thread Jens
How do you mean that? You either have to use a correct (browser compatible) base64 encoding or you need an URL that represents the data. If you want to support older browsers you would go with URL. Also I wouldn't send anything large in a base64 encoded way because base64 encoding makes things

Re: JPA2 Support inside Legacy and GWT Application

2011-09-19 Thread Jens
Should work.. just make sure you only have one EntityManager instance per request. I use a command pattern so I have one place where I can handle the transaction (create transaction before command handler executes and commit afterwards). But command pattern as well as DTO's leads to lots of clas

Re: what is the substitutes of DeferredCommand

2011-09-19 Thread Jens
Scheduler.get().scheduleDeferred(...) is the replacement. -- 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/-/V1yWoo1ll6cJ. To post to this g

Re: JSR303 localized messages with RequestFactory

2012-02-14 Thread Jens
Just googled a bit because I have never thought about it and based on the search results I think I would try it the following way (untested): 1.) Send the current client side locale as a HTTP header (e.g. X-GWT-LOCALE) to the server using a custom RequestTransport for RequestFactory (extend De

Re: Multiple UI Binder XML file for one Widget?

2012-02-14 Thread Jens
Take a look at http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideUiBinder.html#Apply_different_xml -- 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/

Re: No time is shown in Column

2012-02-20 Thread Jens
DateCell uses DateTimeFormat.PredefinedFormat.DATE_FULL as default, see: http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/cell/client/DateCell.html#DateCell() If your want a different format string you have to provide one using: http://google-web-toolkit.googlecode.com/s

Re: GWT by hand (no xml configuration, no ant, no running gwt-dev.jar)

2012-02-22 Thread Jens
1) Just use any sort of embedded web server like jetty and let it serve the war folder of your GWT project. 2 + 3.) You will definitely need gwt-dev.jar & gwt-user.jar in your classpath and then you can use: - com.google.gwt.dev.DevMode to run GWT's DevMode - com.google.gwt.dev.Compiler to

Re: event.stopPropagation()

2012-02-27 Thread Jens
Maybe StackLayoutPanel uses ClickEvent/ClickHandler instead of MouseUpEvent/MouseUpHandler (haven't looked into the source, but feel free to do it yourself). If so, you should stop propagation of ClickEvents instead of MouseUpEvents.. -- J. Am Montag, 27. Februar 2012 16:41:02 UTC+1 schrieb W

Re: Accessint GWT's HIstory Stack

2012-02-27 Thread Jens
> > I like the idea, but I'm finding that the value change event only fires > when prefix portion of the token changes. > > Thanks for your reply... By the way, am I right that the value change > event only fires this way? > History.addValueChangeHandler() always fires a ValueChangeEvent if the

Re: GWT Application throws JavascriptException on Windows 7 & IE 8

2012-02-29 Thread Jens
You cant provide a workaround if you don't know what the error causes. You should add breakpoints and/or logging to your app to identify the code line that produces this error. I would assume the error is caused by a call like widget.getElement().get/setProperty("propertyThatDoesNotExistInIE",

Re: Accessint GWT's HIstory Stack

2012-02-29 Thread Jens
> } > > }); > > And since what I'm really after is the user navigation not the tokens > themselves, this is sufficient for me... Why I'm not getting the > ValueChangeEvents from the History object is a

Re: Selecting list items from history actions using Activities and Places

2012-03-01 Thread Jens
You may also want to read: https://groups.google.com/d/topic/google-web-toolkit/dTwvMbxlFgI/discussion Its not directly related to your problem but as you are firing place changes by listening on the selection model it could happen that your UI may gets inconsistent. This can happen if you use

Re: Selecting list items from history actions using Activities and Places

2012-03-01 Thread Jens
Provide a correct equals()/hashcode() implementation in your places as mentioned in JavaDoc for Place.java. If you don't do so, CachingActivityMapper wont cache anything because it also does an oldPlace.equals(newPlace) to see if it can return the cached activity. -- J. Am Donnerstag, 1. Mär

Re: GWT - Datagrid Selection Color

2012-03-05 Thread Jens
DataGrid uses a ClientBundle/CssResource for its images/css so you have to extend it and provide your custom css by overwriting dataGridStyle() and provide your own css file using @Source annotation. Something like: interface MyDataGridResources extends DataGrid.Resources { @Override @Sour

Re: Custom Widget -> Create HTML Element

2012-03-05 Thread Jens
You would start with: public class CustomWidget extends Widget { public CustomWidget() { super(); setElement(Document.get().createDivElement()); } } This will give you a simple Widget represented by a element. In general just take a look at the GWT source code to see how to write

Re: How to add custom styles to custom cells

2012-03-06 Thread Jens
As soon as you use ClientBundle with CssResource all css classes defined by a CssResource are obfuscated (unless you disable it in your gwt.xml file). That means something like ".SXYDSS" is injected in your website but you have hardcoded "quite" in your cell. Obviously this wont work. So you ha

Re: Large size data transfer within GWT [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call

2012-03-06 Thread Jens
Its a server side OOM exception so you should increase your Java heap space for your application server using -Xmx (max heap size) JVM parameter. Your server JVM just don't have enough memory to build the RPC response. If you want to display the image you always have the data URI limitations in

Re: IsRenderable

2012-03-07 Thread Jens
Take a look at the new commits in the SVN. Nothing about IsRenderable ;-) Its more likely that GWT 2.5 will contain all or some of: - further JavaScript optimizations by using the closure compiler during GWT compilation - new code splitter algorithm to minimize the size of the initial and left o

Re: how to test GWT app through a proxy

2012-03-13 Thread Jens
MyDataService_Proxy is generated by GWT and you can see the generated files by adding "-gen " to your app's Eclipse run configuration. The exception you see is thrown in RemoteServiceProxy.doInvoke(...) and simply wraps a possible RequestException. These RequestExceptions can be thrown by Reque

Re: how to link with page in gwt without update history stack?

2012-03-14 Thread Jens
I think its only possible if you do the scrolling yourself and do not rely on the tag. You can probably do something like (untested): anchor.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { Widget jumpTo = getWidgetYouWantToScrollTo(); jumpTo.getElement().s

Re: one language permutation to much - need only default + en

2012-03-15 Thread Jens
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: > ... > > > > ... > The problem is that this yields three permutations for each br

Re: please help y ds code is not working

2012-03-16 Thread Jens
Yes, only your server can talk to the database. Out of the box you can only use JRE classes on client side that are already emulated by GWT. You can see a list of emulated classes at: http://code.google.com/intl/de-DE/webtoolkit/doc/latest/RefJreEmulation.html -- J. > -- You received this m

Re: base64 to image in gwt client

2012-03-16 Thread Jens
GWT's Base64Utils does not use the standard MIME-Base64 characters (see Base64Utils.base64Chars Javadoc) so browsers do not understand your data URI. You have to choose a standard conform MIME-Base64 encoding. Also keep in mind that IE6/7 do not support data URIs and IE8 has a 32kb limit. -- J

Re: Using @UiHandler for click event on custom widget

2012-03-17 Thread Jens
Just implement the interface HasClickHandlers in your custom button so you have an addClickHandler() method. public CustomButton extends Composite implements HasClickHandlers { public HandlerRegistration addClickHandler(ClickHandler handler) { return addDomHandler(handler, ClickEvent.getTy

Re: Popup show/hide toggle functionality with auto hide enabled

2012-03-18 Thread Jens
Try using: popup.addAutoHidePartner(yourButton.getElement()); This should disable the auto hide functionality when clicking on the button, so you can control the popup visibility yourself based on popup.isShowing() when clicking the button. -- J. Am Sonntag, 18. März 2012 22:31:56 UTC+1 schr

Re: finish the RPC call befor the execution of other methods or code?

2012-03-19 Thread Jens
You have to convert your code to use a callback: Instead of: void onClick() { myObject.doSomethingAsync(xyz); myObject.getConnection(); //additional code } convert it to: void onClick() { myObject.doSomethingAsync(xyz, new Callback() { void onSuccess() { myObject.getConnection

Re: HTML-safety best practices

2012-03-20 Thread Jens
You should use GWT's UriUtils to construct a SafeUri and your template method should then take a SafeUri as parameter instead of a string. -- J. Am Dienstag, 20. März 2012 20:22:59 UTC+1 schrieb dhoffer: > > I get the following error: > > [INFO] Generating method body for img() > [INFO] [WARN]

Re: schedule an action for next idle time???

2012-03-23 Thread Jens
I would say your only choice is to count all active/pending RPC calls, along with firing an IdleEvent (counter == 0) and BusyEvent (counter > 0) on the event bus. How you easily count RPC calls somehow depends on your current app design. If you use RequestFactory you can probably use a custom

Re: change mouse cursor when hovering element

2012-03-24 Thread Jens
You have to use "cursor:pointer;" in your CSS. "cursor:hand;" was Microsoft's way of implementing "cursor:pointer" in IE5.5 and earlier versions. -- J. Am Sonntag, 25. März 2012 00:03:25 UTC+1 schrieb Paul van Hoven: > > I want to change the mouse cursor appearance when hovering a custom > wi

Re: How to use HorizontalPanel#setVerticalAlignment() ?

2012-03-27 Thread Jens
Just use the constants defined in HasVerticalAlignment. horizontalPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP) -- J. Am Montag, 26. März 2012 22:12:24 UTC+2 schrieb dhoffer: > > GWT 2.4. Why are VerticalAlignmentConstant fields package private in > HasVerticalAlignment and constr

Re: How to get page state

2012-03-28 Thread Jens
You don't have that many options if you have to reload your site: - store your state in the URL if possible (GWT's Place feature can help you do so, you don't have to use MVP/Activities) - store it using HTML 5 Web Storage (browser support: http://caniuse.com/#search=web storage) - store it in c

Re: Listening for ScrollBars from Browsers :: Dynamic Resize

2012-03-29 Thread Jens
Not sure if it could help you, but you can detect if a scroll bar is visible by checking ScrollPanel.getMaximumVerticalScrollPosition(). If its greater than 0 the scroll bar is visible. So while adding your content into the ScrollPanel you could constantly check this value and if its greater th

Re: GWT history handling library - give it a try

2012-03-29 Thread Jens
The problem is that your (bookmarked) URLs will become useless if you change the implementation of your UI. If you, as mentioned in your wiki page, store opened/closed tree nodes in the URL, what happens if you switch to a flat table or a totally different custom widget? The previous URL is pre

Re: cannot use css background-image

2012-03-30 Thread Jens
Or maybe a missing "/" at the beginning of the URL in your CSS (compared to the URL you have used in your java code). -- J. Am Freitag, 30. März 2012 18:18:49 UTC+2 schrieb Joseph Lust: > > tong, > > Perhaps that stray unclosed quote is causing an issue? > > .backGroundImage1{ > backgr

Re: How to get text from textarea as html

2012-03-30 Thread Jens
TextArea.getText() gives you exactly the text with all white spaces and line breaks. Its just that you can't put that text into a HTML element, because the browser will remove every line break and also trims down the white spaces to one. If you want to display that text, you have to use the t

Re: call google places service error:invalid label:“html_attributions”

2012-04-01 Thread Jens
The docs (https://developers.google.com/maps/documentation/places/) say nothing about that they support JSONP requests. Instead just below the table of contents they say: Looking to use this service in a JavaScript application? Check out the Places Library

Re: How to make a hourglass pointer?

2012-04-03 Thread Jens
You have to set the CSS rule "cursor:wait" or "cursor:progress" on the element where the mouse cursor should be changed. If it should change for the whole site, you would add it to the body tag (accessible through RootPanel.get()) or to a glasspane like div that you maybe already have for disab

Re: how to go to a widget at the top of the page

2012-04-05 Thread Jens
Have you tried to call errorFlowPanel.getElement().scrollIntoView() ? You could also set the vertical scroll position on the ScrollPanel to 0 or call ScrollPanel.scrollToTop(). -- J. Am Donnerstag, 5. April 2012 05:29:44 UTC+2 schrieb tong123123: > > my panel is very long, and I have an FlowPa

Re: chrome - prompting me to install gwt plugin but already installed

2012-04-07 Thread Jens
> > Safari no longer works and > Chrome no longer works... > You can still use Safari 5.0.5 and possibly 5.0.6 (see: https://groups.google.com/d/msg/google-web-toolkit/uIJ5VqmxO_s/WwHQK0YtaFMJ and http://support.apple.com/kb/DL1422). I have both Safari versions installed side by side in Lion a

Re: issues in running gwt app on ie 8

2012-04-08 Thread Jens
Your IE8 has Chrome Frame installed. Make sure its enabled. If its disabled you better uninstall Chrome Frame because GWT seems to give you the Webkit permutation for IE (GWT sees "chromeframe" in the user agent and assumes its active). -- J. Am Sonntag, 8. April 2012 06:42:55 UTC+2 schrieb v

Re: chrome - prompting me to install gwt plugin but already installed

2012-04-08 Thread Jens
> How can I get Chrome working? > Good question. I have the same setup as you and Chrome works well for me on all Macs I am working with. Have you tried to delete Chrome and all its com.google.chrome.*.plist files in ~/Library/Preferences and then reinstall it along with the GWT plugin? Do y

Re: Filter Tree in GWT

2012-04-09 Thread Jens
Using CellTree you have to provide a TreeViewModel. For each node in the tree you will create a ListDataProvider that contains the child elements of a given node. If you want to filter your tree you have to filter all these ListDataProviders. To do so you should create a sub class of ListDataPr

Re: How to make a hourglass pointer?

2012-04-10 Thread Jens
> > 3) If the mouse cursor not leave the button, the cursor is still in hand > shape and the user can continue click the button many times. > The cursor is still a hand because buttons, links, ... have their own curser css rule. You would have to change these as well. Also you can still click

Re: GWT-Eureka available

2012-04-10 Thread Jens
Looks nice, but: 1.) when I click into any of both text boxes you should preselect all its contents (like its done when focusing the textbox using TAB) so I can start typing a new hour / minute. I don't want to select it myself using the mouse or hit backspace 2 times before I can change hour /

Re: IE8 getUserAgent returns Safari

2012-04-12 Thread Jens
Probably Chrome Frame installed in IE? http://www.chromium.org/developers/how-tos/chrome-frame-getting-started/understanding-chrome-frame-user-agent -- J. Am Donnerstag, 12. April 2012 20:13:49 UTC+2 schrieb skippy: > > I am trying to remove functions that don't work in Safari, but the IE8 > u

Re: bizarre yet predictable triple and interleaved call to servlet when using Chrome GWT devmode

2012-04-14 Thread Jens
Have you verified (using chrome dev tools) that the browser successfully fetches "waga/waga.nocache.js" and that "waga.nocache.js" actually contains javascript code? If your app does not start it seems like the javascript file could not be loaded because of a wrong URL or you use some server si

Re: how to programmatically access the value of this widget

2012-04-14 Thread Jens
Store your widgets in fields and add getter/setter methods so you can access their data. Also in your ClickHandler instead of: ((HATestPanel)((Button) event.getSource()).getParent()).add(compositePanel); you can simply do add(compositePanel) or HATextPanel.this.add(compositePanel) if you l

Re: how to programmatically access the value of this widget

2012-04-14 Thread Jens
e name > of these 3 compositePanel? although in each click handler its name is > compositePanel. > > > Jens於 2012年4月14日星期六UTC+8下午10時36分21秒寫道: > >> Store your widgets in fields and add getter/setter methods so you can >> access their data. >> >> Also

Re: how to programmatically access the value of this widget

2012-04-14 Thread Jens
> > But there is still some problem, if I want to add a delete button after > each row, is it very difficult?Or the easier method is add a checkbox > before the listbox in class CompositePanel and then add a "delete" button > (one and only one for the HATestPanel, not per row) to the HATestPane

Re: RPC - can't get to remote server

2012-04-14 Thread Jens
You start your GWT app and your Netbeans server app independently of each other? If so, you have run into the Same-Origin-Policy implemented by web browsers (http://en.wikipedia.org/wiki/Same_origin_policy). This means that your GWT application that is running on http://127.0.0.1: can only m

Re: Take snapshot from Canvas and save it to disk or upload to server..?

2012-04-16 Thread Jens
I don't think so. Canvas is pixel based and everything you can export from it is basically a .png file. I think you would need to implement some sort of a scene graph that knows what has been painted and a resize operation that can be applied to that scene graph. The scene graph is then your "r

Re: Resolution Dependent ImageBundles

2012-04-17 Thread Jens
What about a custom property for deferred binding in a .gwt.xml file and a small javascript that fills its value based on window.devicePixelRatio. Older iOS devices have a ratio of 1 while the retina devices have a ratio of 2 because each pixel is doubled. So you could define your own ratio ran

Skipping classes in class hierarchy with Editor Framework?

2012-04-17 Thread Jens
Hi, is it somehow possible to skip classes in a class hierarchy when using the Editor Framework? For example I have lightweight model classes that only contains a Long id and the actual model with all properties. If a property is a list of other model classes this list only contains the light

Re: Skipping classes in class hierarchy with Editor Framework?

2012-04-17 Thread Jens
Ahhh good catch, totally forgot that. Works now, thanks :) -- 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/-/S7sRbiUZW0cJ. To post to this

Re: Error when trying to create HTML in GWT2.4

2012-04-19 Thread Jens
There is an issue for it on the issue tracker: http://code.google.com/p/google-web-toolkit/issues/detail?id=6338 I also had this problem but with the most recent Eclipse (Indigo Service Release 2) and GWT Plugin (2.5.2.v201203300216-rel-r37) I don't have that issue anymore (OS X). Maybe time to

Re: Avoiding DTOs in RPC

2012-04-19 Thread Jens
I think GWT-RPC will skip null fields when building the payload. But I would better ask if your JPA entity is serializable so you can share it between GWT and your server. JPA entities will be enhanced by the JPA provider and lazy fields can typically only be accessed while your persistence se

Re: Resolution Dependent ImageBundles

2012-04-19 Thread Jens
> > Shouldn't the image size remain constant with screen resolution? > Otherwise there would be a similar need on desktops. Are you specifying > image size in pixels? Could you use percent? > Apples HiDPI devices double every pixel so that the appearance of the web application remains the s

Re: IntegerBox not restricting input to integers in GWT 2.4.0

2012-04-20 Thread Jens
Everything that extends ValueBox (or better ValueBoxBase) like IntegerBox, DoubleBox, etc. allows you type everything you want into that boxes. The difference to an ordinary TextBox is that ValueBoxBase has a getValue() and getValueOrThrow() method: 1.) getValue(): returns the defined type (e.g.

Re: IntegerBox not restricting input to integers in GWT 2.4.0

2012-04-20 Thread Jens
> > I respectfully see this slightly different. An IntegerBox should prevent > the user from typing non-integers from the start with ways to customize the > error message, etc... It's nice that it's generified, but one might expect > it to have a validator built-in. Not that it would be terribl

Re: IntegerBox not restricting input to integers in GWT 2.4.0

2012-04-20 Thread Jens
> > I always try to keep in mind that GWT is a tool kit. However, when a class > is named IntegerBox, to be used in a UI, yeah I expect it to be type safe > and also do what its name implies in the UI as well as programmatically. In > this case only allow Integers to be typed in. > Some years

Re: Window.open() opens as a popup

2012-04-22 Thread Jens
A popup blocker will always jump in if you execute window.open() without direct user interaction. If you want to avoid a popup blocker you have to provide a link the user can click on and inside the click handler open the new window. Beside that, you can't force the browser to open a new tab th

Re: ScrollPanel and DisclosurePanel

2012-04-24 Thread Jens
> > I have a DockLayoutPanel, inside the DockLayoutPanel there is some > FlowPanel plus many DisclosurePanel, I want the content inside the > DockLayoutPanel can scroll when many of these DisclosurePanel are expanded, > how to achieve this? > Use a ScrollPanel inside the DockLayoutPanel and pu

Re: how to make an (load)image overlay an panel

2012-04-24 Thread Jens
> > 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

Re: How can I change the servlet-pattern for a GWT project

2012-04-24 Thread Jens
Normally you would have a @RemoteServiceRelativePath annotation on your GWT-RPC service. This tells the generated RPC classes to access the service under GWT.getModuleBaseURL() + RemoteServiceRelativePath#value(). If you are not fine with this default structure you can remove the annotation and

Re: ScrollPanel and DisclosurePanel

2012-04-24 Thread Jens
No, but SimpleLayoutPanel is. -- J. Am Dienstag, 24. April 2012 17:25:32 UTC+2 schrieb tong123123: > > is SimplePanel a kind of LayoutPanel? > > On Tuesday, April 24, 2012 7:01:03 PM UTC+8, Jens wrote: >> >> I have a DockLayoutPanel, inside the DockLayoutPanel there is

Re: Window.open() opens as a popup

2012-04-24 Thread Jens
You have to make sure that you directly call Window.open() in the ClickHandler. Don't to it in a Timer, deferred command or similar inside the ClickHandler. The Browser must recognize that Window.open() is directly called because of a user action. It does not matter if its a Button or an Anchor

Re: Re: Huge data slowing down Celltable

2012-04-24 Thread Jens
> > Any sugestions on how to make the serialization/deserialization run > faster ?? > Use pure JSON with overlay types (almost no overhead) and if its still too slow for you then you have to fetch your data in smaller chunks. -- J. -- You received this message because you are subscribed to

Re: best/good practices to keep Model in sync with Activity/Place and a view.

2012-04-24 Thread Jens
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

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

2012-04-25 Thread Jens
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()

Re: RPC serialization/deserialization is very slow

2012-04-25 Thread Jens
Fastest possible solution is to switch to pure JSON string + Overlay Types which would result in nearly no GWT overhead. If you don't want to switch your RPC mechanism or its still too slow then you have to fetch your data in smaller chunks. For example presenting 1 objects in a UI list doe

Re: How to make parent window read only and background color to gray when dialogbox open

2012-04-26 Thread Jens
DialogBox.setGlassEnabled(), DialogBox.setModal(). -- J. Am Donnerstag, 26. April 2012 09:39:31 UTC+2 schrieb Dayananda B V: > > Hi All, > > How to make parent window read only and background color to gray when > dialogbox open. > like swing dialog model. > > appreciate your help > > Thanks

Re: Preventing selection event propagation

2012-04-27 Thread Jens
Tab(Layout)Panel's SelectionEvent is a GwtEvent and not a DomEvent, so its only a logical event fired by GWT and not a native event fired by the browser. Thats why you don't have a stopPropagation() / preventDefault() method. But TabPanel and TabLayoutPanel have an addBeforeSelectionHandler() a

Re: Request Context clear queue on method invocations when onConstraintViolation is called

2012-04-27 Thread Jens
Don't enqueue requestContext.saveMember(..).to(..) in the save button ClickHandler. Do it once when you start editing the proxy and in your ClickHandler you only need to do editorDriver.flush().fire(). -- J. Am Freitag, 27. April 2012 12:32:28 UTC+2 schrieb Alex Vakaloudis: > > To perform save

Re: How to build text trimming cell for GWT DataGrid

2012-04-29 Thread Jens
Apply CSS to your cell: white-space: nowrap; overflow:hidden; text-overflow: ellipsis; -- J. Am Sonntag, 29. April 2012 14:45:59 UTC+2 schrieb benb: > > Hi, > > I'm looking for examples for building a text-trimming cell for GWT > DataGrid. > I want the cell to have fixed width and height, an

Re: java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the com.rf.test.client.ApplicationRequestFactory RequestFactory type

2012-04-29 Thread Jens
Starting with GWT 2.4 you have to configure an annotation processor for RequestFactory. Its not mentioned in the official documentation yet but you can found information about it at: http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation -- J. Am Sonntag, 29. April

Re: Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-02 Thread Jens
You probably have to implement your own SuggestionDisplay and add some logic to moveSelectionDown/moveSelectionUp to also adjust your scrollable container. You have made the container scrollable, so you must also implement your desired scrolling behavior. -- J. Am Mittwoch, 2. Mai 2012 08:39

Re: JPA1 vs JPA2 compat Issue with Jetty?

2012-05-02 Thread Jens
Maybe you have for some reasons both JPA 1 and JPA 2 API in your classpath? Already googled the error message? -- J. Am Mittwoch, 2. Mai 2012 14:27:24 UTC+2 schrieb Carlos Alexandro Becker: > > Hello. > > I'm coding an app with guice-persist, gwtp, jpa2 and hibernate. In the > "not web" mode, t

Re: sending data from client to server

2012-05-02 Thread Jens
> > do i need to use value proxies here? Yes, with ValueProxys you can send data/bean like objects between client/server that do not have a database identity. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on

Re: sending data from client to server

2012-05-02 Thread Jens
> > Shall i use the same proxy for the return result. Sounds like it doesn't make sense but I don't know your app nor what you want to search. If you search for some data in your database then you probably want to return a list of EntityProxy-s as a search result (if you want to display th

Re: Strange scrolling div problem in WebKit browsers

2012-05-02 Thread Jens
@gmail.com: > > > > On Thursday, April 21, 2011 2:38:51 AM UTC-7, Jens wrote: >> >> After some research I figured out that GWT's PopupPanel is probably >> responsible for that behavior. I have some wizard views which contain the >> custom list mentioned before and

Re: Whole app as one big transmission

2012-05-02 Thread Jens
Thats what code splitting is for. But don't create 500 split points (each split point has some overhead), e.g. one for each screen! Make it more meaningful so you may end up with 20 split points or so. As of today, when you introduce split points in your code you have to make sure that the cod

Re: Datagrid without text wrap

2012-05-03 Thread Jens
https://groups.google.com/d/topic/google-web-toolkit/jo0LTmfl6ig/discussion -- 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/-/8QSGTY8ci5sJ.

Re: Question about getModuleBaseURL

2012-05-03 Thread Jens
Thats your module folder inside your war folder. war |-- //your module folder, in your case called ALS |-- index.html //your host page If you deploy to /ALS you end up having /ALS/ALS. You probably want to use GWT.getHostPageBaseUrl(). -- J. Am Donnerstag, 3. Mai 2012 11:38:10 UTC+2 schrieb

Re: Datagrid with resiable column

2012-05-03 Thread Jens
https://groups.google.com/d/topic/google-web-toolkit/y66eBBeOarI/discussion -- J. Am Donnerstag, 3. Mai 2012 12:40:26 UTC+2 schrieb Dayananda B V: > > Hi All, > > How to make DataGrid with resizable column. > > appreciate your help > > thanks > Daya > -- You received this message because y

Re: MouseWheelEvent does not fire on GWT FocusPanel, if FocusPanel is on GWT PopupPanel (only in Chrome and Safari). Help me, please!

2012-05-04 Thread Jens
Seems be similar to issues: http://code.google.com/p/google-web-toolkit/issues/detail?id=7349 http://code.google.com/p/google-web-toolkit/issues/detail?id=6704 Try the workaround mentioned in these issues. -- J. Am Freitag, 4. Mai 2012 08:36:07 UTC+2 schrieb Sprinter: > > Here's the code: >

Re: Help :java.security.AccessControlException: access denied (java.net.SocketPermission localhost:1433 connect,resolve)

2012-05-04 Thread Jens
Do you use Google AppEngine? Opening sockets is not allowed in AppEngine's Sandbox, see: https://developers.google.com/appengine/docs/java/runtime#The_Sandbox -- J. Am Freitag, 4. Mai 2012 19:25:02 UTC+2 schrieb laxman lingampally: > > Hi all, > > please help me out, asap. > > i got this exce

Re: RF: error.getExceptionType() returns null in Receiver#onFailure

2012-05-06 Thread Jens
Because the DefaultExceptionHandler in RequestFactoryServlet hides server details and only gives you the exception message. See: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/web/bindery/requestfactory/server/DefaultExceptionHandler.java You have to sub cla

Re: how to add multiselection to tree in gwt 2.4

2012-05-08 Thread Jens
In your TreeViewModel for CellTree you have to have to implement TreeViewModel.getNodeInfo(..). A default implementation of NodeInfo is DefaultNodeInfo which takes a SelectionModel in its constructor. http://google-web-toolkit.googlecode.com/svn/javadoc/2.4/com/google/gwt/view/client/TreeViewMod

Re: how to add multiselection to tree in gwt 2.4

2012-05-08 Thread Jens
You don't have to. You could also write your own class that defines some logic how to select items in a Tree. If you plan to display lots of data in a Tree then you should switch to CellTree as its a lot faster for large data sets. -- J. -- You received this message because you are subscribe

Re: Help: GWT , RequestFactory with SQLServer ???

2012-05-09 Thread Jens
Sure its possible. GWT/RF does not make any assumptions about the database you are using. -- J. Am Mittwoch, 9. Mai 2012 11:18:21 UTC+2 schrieb laxman lingampally: > > Hi all, > > please help me out asap, > > i have a question > > it is passible GWT, RF(RequestFactory) with any database ( not

Re: GWT, Spring when projects are split apart (client, services, persistence)

2012-05-09 Thread Jens
How do you compile your app? Maven? Ant? In Eclipse using GPE? You have to make sure that the GWT compiler's classpath contains all needed source files (= add src/main/java of all projects that need to be compiled by GWT to the compilers classpath). -- J. -- You received this message because

Re: FilteredActivity

2012-05-09 Thread Jens
> > Any idea if this normal (that the place doesn't change to > "EIRegisterPlace")? > Yes thats normal. A FilteredActivity allows you to change activities for a given place by temporary converting the current place to a different one to trick the underlying ActivityMapper. So its not meant to

Re: FilteredActivity

2012-05-09 Thread Jens
No problem, but keep in mind that you now have two browser history entries which are both the same. So you should not use this throughout your app if you need to reload things otherwise the browsers back/forward buttons would feel odd. For login its probably ok. -- You received this message be

Re: MVP : What technique do you use to compose view interface ?

2012-05-10 Thread Jens
I also use the MVP Part II approach already mentioned. Setting a presenter/delegate interface into the view allows you to hide the widget internals completely. I would never switch back to your approach (which I've used for some time). -- J. -- You received this message because you are subscr

Re: JSR303 localized messages with RequestFactory

2012-05-11 Thread Jens
No I don't know the exact references anymore. But I am pretty sure it should work this way. -- 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-toolk

Re: Display GWT RPC result in a new window

2012-05-14 Thread Jens
I would store the generated html page on the server and let the server send the correct URL to that generated html page to the client. Then you can do Window.open(). -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this dis

<    4   5   6   7   8   9   10   11   12   13   >