Re: Hibernate session in RequestFactory

2012-08-26 Thread bond
Hi guys, any ideas about my question? Thanks very much Il giorno giovedì 16 agosto 2012 00:57:02 UTC+2, bond ha scritto: Hi Thomas, thanks for your reply. My problem is not use or not use a Filter to solve this problem. My problem is try to send exception caugth in PersicensteFilter on

Re: Hibernate session in RequestFactory

2012-08-26 Thread Thomas Broyer
On Thursday, August 16, 2012 12:57:02 AM UTC+2, bond wrote: Hi Thomas, thanks for your reply. My problem is not use or not use a Filter to solve this problem. My problem is try to send exception caugth in PersicensteFilter on the client. I need a per request session and transaction. If

Re: Hibernate session in RequestFactory

2012-08-26 Thread bond
Hi Thomas, I already override isLive method and I return always true. I can't understand if is possibile to create an Exception and send it to the client from the class PersistenceFilter. Forgetting for a moment the question of how I manage sessions with Hibernate, I would like to know how I

Re: CellTable - add Anchors to a cell

2012-08-26 Thread Magnus
Hi Thomas! FYI, that'd be even easier (and possibly faster) with UiRenderer. Event handling would be much easier, unless you really need that command identifier as a string approach. https://developers.google.com/web-toolkit/doc/latest/DevGuideUiBinder#Rendering_HTML_for_Cells This is

CellTable - Synchronization problem with AsyncDataProvider

2012-08-26 Thread Magnus
Hello, I have a class UserListPanel, which shows a CellTable of users. When such a panel is created it initially shows all existing users. The set of users in the list may be changed by calling a method setUserFilter, e. g. for selecting all users that match some criteria. Then, the list is

Re: CellTable - Synchronization problem with AsyncDataProvider

2012-08-26 Thread Magnus
Hi, I found out the following: When the second call to onRangeChanged occurrs, there are fewer records in the list than visible rows in the CellTable! The first rows are updated correctly, but the remaining visible rows are not cleared! So there is probably no synchronization problem, but a

Re: Hibernate session in RequestFactory

2012-08-26 Thread Thomas Broyer
On Sunday, August 26, 2012 2:20:20 PM UTC+2, bond wrote: Forgetting for a moment the question of how I manage sessions with Hibernate, I would like to know how I can raise and send an exception to the client from the PersistenceFilter class ie outside the context of the request. You

Re: CellTable - Synchronization problem with AsyncDataProvider

2012-08-26 Thread Thomas Broyer
You should call updateRowCount if the row count changes (such as when applying a filter) On Sunday, August 26, 2012 3:42:26 PM UTC+2, Magnus wrote: Hi, I found out the following: When the second call to onRangeChanged occurrs, there are fewer records in the list than visible rows in the

Re: Register your company if you are using GWT

2012-08-26 Thread Lindomir Avelar
Arcos, Brazil. Developping a vehicle tracking system Em quinta-feira, 15 de março de 2012 03h40min37s UTC-3, Kanagaraj M escreveu: If you are using GWT for your projects/products, please register it in the following link. so that we can see how many are using GWT.

Re: CellTable - Synchronization problem with AsyncDataProvider

2012-08-26 Thread Magnus
Hi Thomas, I tried to modify the reload method like this, but without success: public void reload () { pvd.updateRowCount (0,true); // avoid to many visible rows Range r = tbl.getVisibleRange(); tbl.setVisibleRangeAndClearData (r,true); loadRecordCount (); // asynchronously load

enable closure compiler

2012-08-26 Thread Deepak Singh
Hi All, I migrated to GWT 2.5Rc1 and now i want to know the benefits of closure-compiler which can now be passed as a compiler option. Along with i am using gwtquery. Will it be beneficial to enable closureCompiler ? Thanks Deepak Singh -- You received this message because you are subscribed

Re: SuggestBox implementation

2012-08-26 Thread Deepak Singh
But after selecting a value, how do i get the id of the selected value? On Sun, Aug 26, 2012 at 4:42 AM, Jens jens.nehlme...@gmail.com wrote: Create a small class that contains key/value and implements Suggestion and then create a custom SuggestOracle for your SuggestBox to fetch suggestions

Gin module binding using annotatedWith and AsyncProvider

2012-08-26 Thread Steve C
If I want to inject an instance of a specific class based on an annotation, I can do this in a Gin module: bind(DiSecondary.class).annotatedWith(Special.class).to(DiSecondarySpecialImpl.class); I also already have: bind(DiSecondary.class).to(DiSecondaryImpl.class); I can then retrieve the

Re: SuggestBox implementation

2012-08-26 Thread Jens
In your selection handler you have to cast the selected suggestion to your custom class. -- 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

Re: Gin module binding using annotatedWith and AsyncProvider

2012-08-26 Thread Thomas Broyer
You should ask on https://groups.google.com/d/forum/google-gin as the GWT Compiler is not involved in these decisions, only the GIN generator. BTW, what's the error? Does it work if you don't use an AsyncProvider? (direct injection, or through a Provider) And as a workaround / alternative, I

Re: SuggestBox implementation

2012-08-26 Thread Thomas Broyer
On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: But after selecting a value, how do i get the id of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString of the Suggestions in your SuggestOracle. In that

UiBinder ERROR: Attribute 'from' does not have a computed value Element

2012-08-26 Thread jopaki
I get this error when trying to parse/compile my uiBinder LoginPanel.ui.xml: Rebinding com.tll.client.ui.LoginPanel.LoginPanel2UiBinder Invoking generator com.google.gwt.uibinder.rebind.UiBinderGenerator [ERROR] Attribute 'from' does not have a computed value Element ui:text

Re: Gin module binding using annotatedWith and AsyncProvider

2012-08-26 Thread Steve C
On Sunday, August 26, 2012 1:43:09 PM UTC-4, Thomas Broyer wrote: You should ask on https://groups.google.com/d/forum/google-gin as the GWT Compiler is not involved in these decisions, only the GIN generator. BTW, what's the error? Does it work if you don't use an AsyncProvider? (direct

Re: CellTable - Synchronization problem with AsyncDataProvider

2012-08-26 Thread Alfredo Quiroga-Villamil
I have a similar post. I was trying to do something as simple as when I click on a refresh button to completely clear my provider and display the freshly received entities from the server. I haven't had time to go back and look at it, but I would also be interested in getting a definitive idea as

Re: SuggestBox implementation

2012-08-26 Thread Deepak Singh
Hi, I tried this way public class CustomSuggestion implements Suggestion{ public CityNameDTO dto = null; public CustomSuggestion(CityNameDTO dto) { this.dto = dto; } @Override public String getDisplayString() { return dto.getCityName(); } @Override public String getReplacementString() {

Re: enable closure compiler

2012-08-26 Thread Sergey
use -XenableClosureCompiler option. -- 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/-/0eIURq10NvwJ. To post to this group, send email to

Re: CellTable - add Anchors to a cell

2012-08-26 Thread twoseven
Here is some code for adding multiple anchors to cell with attribute as a command- http://rowsandcolumns.blogspot.com/2012/08/gwt-celltable-add-multiple-anchors-to.html It uses a tags for actions, maybe you can change to something else and style it. -- You received this message because you

Re: enable closure compiler

2012-08-26 Thread Deepak Singh
enabling the closure compiler gives following exception (GWT2.5Rc1) [ERROR] Unexpected internal compiler error java.lang.IllegalStateException: Expected non-empty string. Reference node STRING at com.google.gwt.thirdparty.javascript.jscomp.AstValidator$1.handleViolation(AstValidator.java:51)

UiBinder ERROR: Attribute 'from' does not have a computed value Element

2012-08-26 Thread Thomas Broyer
As the error says, 'from' expects a computed value: ui:text from='{res.constants.loginTitle}' (Note Element is not part of the error message, but the element's serialization) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this

Re: DART vs. GWT

2012-08-26 Thread b0b
On Wednesday, 22 August 2012 17:57:42 UTC+2, deepak chauhan wrote: One question is disturbing me from a long time. Why Google invented DART, when GWT is already there? To have one more project to can in a few months/years, instead of puting all resources behind GWT. -- You received

Re: UiBinder ERROR: Attribute 'from' does not have a computed value Element

2012-08-26 Thread jopaki
Thank you for the reply. Yes embarasingly I missed the { }. I fixed and works. One more question: When will com.google.gwt.i18n.Constants be usable in a ui.xml file ?? AFAICT, only TextResources are available ! Am I missing something? thanks, Jon On Sunday, August 26, 2012 10:51:08 AM

Re: UiBinder ERROR: Attribute 'from' does not have a computed value Element

2012-08-26 Thread jopaki
I know that one can take the DevGuideUiBinderI18nhttps://developers.google.com/web-toolkit/doc/latest/DevGuideUiBinderI18n approach but this seems like such overkill. I merely want to leverage constants in a properties file directly in a ui.xml file. On Sunday, August 26, 2012 4:47:13 PM

SimplePager last page issue

2012-08-26 Thread Juan Pablo Gardella
Hi, There is a bug with SimplePager that enable go to next page in the last page (an must be disabled). Well, after some debugging if I change the method onRangeOrRowCountChanged() in this way works well. @Override protected void onRangeOrRowCountChanged() { HasRows display = getDisplay();

GWT Frame Load Wrong Page in IE 8 (Different Than The URL Showed In URL Toolbar)

2012-08-26 Thread the.wizard
Hello everyone, I have a GWT Application that use couple of GWT Frame to load other site content. Let say in the left side of my application I have tree menu, and every time user click one of those menu, it will open a new tab in the right side of my application, and in the tab item, it will

Re: CellTable - Synchronization problem with AsyncDataProvider

2012-08-26 Thread Magnus
Hello, I found this interesting article: http://turbomanage.wordpress.com/2011/03/02/gwt-2-2-asyncdataprovider-celltable-gotcha/ It also states that one should always update both row count and row data. But when looking to the code in the article, it seems that the author assumes that

Re: UiBinder ERROR: Attribute 'from' does not have a computed value Element

2012-08-26 Thread Thomas Broyer
On Monday, August 27, 2012 1:47:13 AM UTC+2, jopaki wrote: Thank you for the reply. Yes embarasingly I missed the { }. I fixed and works. One more question: When will com.google.gwt.i18n.Constants be usable in a ui.xml file ?? AFAICT, only TextResources are available ! Am I missing

Re: UiBinder ERROR: Attribute 'from' does not have a computed value Element

2012-08-26 Thread jopaki
An compile error like can't implement the constants interface: It must implement TextResource or _. I forget the other type the error states. My semantics here are: interface MyResources extends ClientBundle { @Source(MyConstants.properties) MyConstants constants(); } where