Re: do you think RangeChange of CellTable should update the History Token ?

2011-01-21 Thread Y2i
in other words, your client tells the server, give me the next page of result, the client doesnt specifically says, give me page 4, give me page X, client just says give me Next page, and it is the server that knows what this next page would be, and returns the result to the client.

Re: Unable to load module entry point

2011-01-20 Thread Y2i
Does the app run in the hosted mode? Where do you deploy the app after it compiles? -- 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,

Re: GWT problem of reference external style

2011-01-20 Thread Y2i
It looks like on the page border-bottom-style: *none*; but in the style border-bottom-style: *dotted*; -- 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

Re: Is it possible to pass parameters/data from Server to Client package?

2011-01-20 Thread Y2i
It looks like you are trying to send request from a Client (C) to Server 1 (S1). S1 in turn sends request to Server 2 (S2) C - S1 - S2 When S1 receives a request from C, it needs to send another request to S2. When S1 gets results back from S2, all it needs to do is to return results back

Re: do you think RangeChange of CellTable should update the History Token ?

2011-01-20 Thread Y2i
Personally I store all configuration related to one place/activity on the server. -- 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,

Re: gwt mvp sessions

2011-01-19 Thread Y2i
Sorry if I was not clear, I didn't say it's the best to use GAE, it all depends on your requirements. GAE is a web server where you deploy your application. If you chose to deploy on GAE then it's better to use authentication offered by GAE. -- You received this message because you are

Re: gwt mvp sessions

2011-01-19 Thread Y2i
Take a look here http://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication And then here (the first link will also point you here) http://code.google.com/appengine/docs/java/users/ Also read the overview

Re: GWT Connection to DB

2011-01-19 Thread Y2i
GWT runs in a browser, a connection to a DB is created on the server. GWT does not enforce any particular web server implementation. For example, your web server can be IIS, Apache, Tomcat, GAE, Weblogic, Jetty, GlassFish, etc. After choosing the web server you can use any kind of APIs

Re: gwt mvp sessions

2011-01-18 Thread Y2i
It probably does not matter, RequestFactory is just a form of RPC. You can have 2 request factories: one for login, anther for the rest of the app. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: gwt mvp sessions

2011-01-18 Thread Y2i
On Tuesday, January 18, 2011 9:05:23 AM UTC-8, ernesto.reig wrote: It does not make sense to have 2 RequestFactory(s) in a single web app. I´d have 2 (or more) RequestContext, and I´d get them having these methods in my AppRequestFactory interface (one of them dealing with the user

Re: gwt mvp sessions

2011-01-17 Thread Y2i
There are many ways to implement logins, depending on the server side you use. If you use servlets then the servlet spec will guide you: http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html Look at login-config/, auth-method/, realm-name/, security-role/, security-role/ tag

Re: JSON vs GWT-RPC - Unit testing and manual testing for a newbie

2011-01-17 Thread Y2i
For full Java stack RequestFactory may be another option for a new project. http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Error when initiating an rpc call with custom class object

2011-01-17 Thread Y2i
Make sure your UserRoles satisfy requirements outlined here: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html#serialize Also, does Hibernate enhance server-side classes in a way that makes them incompatible with these requirements? -- You received this message because you are

Re: GWT - Update Widget when java.util.List changes

2011-01-17 Thread Y2i
Did you have a chance to go through this tutorial? http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html When you get the data, you need to populate the widgets as shown here: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html#invoke -- You received this message

Re: Checking User activity on browser

2011-01-17 Thread Y2i
May be Scheduler.scheduleEntry()http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/core/client/Scheduler.html#scheduleEntry(com.google.gwt.core.client.Scheduler.ScheduledCommand)may be of help? -- You received this message because you are subscribed to the Google Groups

Re: gwt mvp sessions

2011-01-17 Thread Y2i
P.S. Forgot to mention that if you use GAE, it's better to start from this pagehttp://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Re: is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-17 Thread Y2i
The call is non-blocking. When response arrives, you can populate the widget and call setWidget() on the display. Start() javadochttp://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/activity/shared/Activity.html#start(com.google.gwt.user.client.ui.AcceptsOneWidget,

Re: is calling RequestFactory a blocking call ? when to update the View upon return of RequestFactory?

2011-01-17 Thread Y2i
*within Receiver#onSuccess anonymous inner class*, it's where you actually receive the data. *After that code* the data is not yet available. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Checking User activity on browser

2011-01-17 Thread Y2i
The registered callback will be executed before an event (*Mouse click/Move, Key Press etc*) gets to the message loop. Scheduler.scheduleEntry(new RepeatingCommand() { boolean execute() { // some activity occurred return true; // to be called again, false to stop from being called }

Re: Problem trying to use JSNI to eval() a JSON string

2011-01-16 Thread Y2i
Not sure if Message can be an abstract class and can implement Serializable. -- 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

Re: Celltree Refresh question

2011-01-16 Thread Y2i
How do you add nodes in the first place? If you use TreeModel's AbstractNodeInfo, then you pass AbstractDataProvider to the AbstractNodeInfo's constructor. You can call updateRowCount() and updateRowData() on the data provider to add more nodes. -- You received this message because you are

Re: Problem trying to use JSNI to eval() a JSON string

2011-01-16 Thread Y2i
Thomas is absolutely right about JsonUtils. In addition you may consider JsonpRequestBuilder if you are planing to use JSON services Regarding this particular example, I have some old code that uses plain eval(): it works, but I don't use quotes around field names (*type* and * timeleft*). --

Re: How can I move position of tab headers ?

2011-01-16 Thread Y2i
This recent discussion may help https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit/c1zlxMRD4gM -- 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

Re: Right aligning items of a MenuBar.

2011-01-15 Thread Y2i
If you put these selectors into a ui:style/ tag of *.ui.xml file they will not work because the rules will be obfuscated. The selectors need to go to your application's CSS file: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCss.html#widgets Create a CSS file (mystyles.css), put it

Re: GWT documentation for UiBinder typo ? Spriter or Sprite ?

2011-01-15 Thread Y2i
What does com.my.app.widgets.logoname.Resources look like? -- 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: Override docklayoutpanel heights with CSS

2011-01-15 Thread Y2i
Is using CSS a strict requirement? What about using *size* property? http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/DockLayoutPanel.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Re: GWT Error problems

2011-01-15 Thread Y2i
jetty couldn't find com.mckinnon.ross.server.DataTableServiceImpl Did you also rework web.xml? -- 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

Re: Ideal vs Reality: How can RequestFactory deal with this situation?

2011-01-15 Thread Y2i
There is no requirement that getAllAs(start, size) should call getA(id): getAllAs(start, size) can be implemented in any way on the server. http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#impl As to the DB design: if A keeps list of Bs in a string field, may be the

Re: GWT Error problems

2011-01-15 Thread Y2i
But may be you renamed com.mckinnon.ross.server.DataTableServiceImpl and didn't modify web.xml to reflect that? It's strange that jetty does not complain about all other servlets except this one... -- You received this message because you are subscribed to the Google Groups Google Web

Re: using new 2.1.1rc RequestFactory AutoBean in RESTful Architecture

2011-01-15 Thread Y2i
On Saturday, December 11, 2010 2:01:28 PM UTC-8, zixzigma wrote: is it possible to use 2.1.1 RequestFactory/AutoBean to convert POJO to JSON and viceversa when interacting with a RESTful Web Service ? the common practice with GWT client-server communication is to have packages:

Re: problem applying CSS classes defined in ClientBundle

2011-01-14 Thread Y2i
Sorry if I wasn't clear. ui:style/ places the styles side by side with a composite and the composite's look does not depend on whether the styles are included in *.html or not. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Re: Deferred Binding problems

2011-01-14 Thread Y2i
I don't quite understand what the method parameter means. Are you following these instructions or doing something different? http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsDeferred.html#replacement -- You received this message because you are subscribed to the Google Groups

Re: problem applying CSS classes defined in ClientBundle

2011-01-14 Thread Y2i
Personally I think - if a component does not share styles with other components, the styles should go to ui:style/ (GWT's NotificationMole, for example) - If there is a need to access these styles programmatically, GWT allows that. - If components share styles with each

Re: CellList alternating row background color

2011-01-14 Thread Y2i
How is cellList.resource autogenerated? Do you have a css file that you associate with it and then call GWT.create() on your bundle interface as described here? http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Using_an_external_resource

Re: How to Programmatically go to the previous place (back), without explicitly specifying the name of the place ?

2011-01-14 Thread Y2i
com.google.gwt.user.client.History.back() -- 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: IncompatibleRemoteServiceException

2011-01-14 Thread Y2i
Does MyService have different methods that return the same value type? If so, is it possible that you call these methods using the same instance of the callback? (_counnectionErrorCount makes me think so: why do you need this counter?) Not sure if this can cause a problem, just a guess... --

Re: Relocating instance methods transparently for the client

2011-01-13 Thread Y2i
Thanks for looking at this Thomas! And thanks to GWT team who made refactoring of a web app so easy :-) -- 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

Re: Overriding Entrypoint on Inheritance?

2011-01-13 Thread Y2i
All entry points are called: http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules Do you need 2 entry points? If you want to use a base module as a separate app, you can create a third module, move the entry point from the base module there and inherit

Re: GWT throwing java.lang.UnsatisfiedLinkError when trying to make http requests using URL encoding

2011-01-13 Thread Y2i
... or HttpURLConnection http://download.oracle.com/javase/6/docs/api/java/net/HttpURLConnection.html -- 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

Re: GWT Visualization NoClassDefFoundError

2011-01-13 Thread Y2i
Is it possible that you didn't inherit from com.google.gwt.visualization.Visualization module? -- 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

Re: Multi-Module Project and Servlet Mappings

2011-01-13 Thread Y2i
What if you remove servlet/ from *.gwt.xml and configure servlets only from web.xml? The xml reference says that *The servlet element applies only to GWT's embedded server server-side debugging feature.* *NOTE: as of GWT 1.6, this tag does no longer loads servlets in development mode, instead

Re: How to handle com.google.apphosting.api.ApiProxy.CapabilityDisabledException

2011-01-13 Thread Y2i
This will work fine. Just two notes: MyCapabilityDisabledException can extend Exception, it does not have to extend Throwable. You can also use if(caught instanceof MyCapabilityDisabledException) instead of re-throwing caught in onFailure() -- You received this message because you are

Re: is it possible to develop custom reusable widgets using UiBinder ?

2011-01-13 Thread Y2i
It is possible, very convenient and easy to import them to WindowBuilder. -- 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

Re: is it possible to develop custom reusable widgets using UiBinder ?

2011-01-13 Thread Y2i
I use Widget Widget.Presenter (nested interface) WidgetImpl WidgetImpl.ui.xml WidgetImpl does not look nice, but at least it's consistent with the MVP pattern. Having Widget.Presenter nested is also not necessary. Even though the MVP-based WidgetImpl's are re-usable, I'm not embedding them

Re: problem applying CSS classes defined in ClientBundle

2011-01-13 Thread Y2i
You might have forgotten to call ensureInjected() on your style (the one that extends CssResource) -- 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

Re: Speed of UI tests with WebDriver

2011-01-13 Thread Y2i
This might not suit your team well, but the ability to run plain JUnit is one of the major reasons I moved to the MVP pattern: http://code.google.com/webtoolkit/articles/mvp-architecture.html#testing -- You received this message because you are subscribed to the Google Groups Google Web

Re: problem applying CSS classes defined in ClientBundle

2011-01-13 Thread Y2i
On Thursday, January 13, 2011 11:15:52 PM UTC-8, zixzigma wrote: do you think there is a better way to do this ? this resources.style().ensureInjected() sitting on one line, on its own, seems a bit suspecious, is this the correct way of using css resources inside client bundle ?

Re: GWT.create([AnyService]) hangs only on hosted mode

2011-01-12 Thread Y2i
Strange, there have been no issues for me running GWT 2.1.0 and 2.1.1 on 64-bit Ubuntu 10.04. GWT issues database is here: http://code.google.com/p/google-web-toolkit/issues/list -- Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) 64-Bit Server VM

Re: Connecting GWT-Modules / Rewrite URL

2011-01-12 Thread Y2i
GWT approach to navigation within a module is to use history tokens: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHistory.html If you use MVP, then take a look at activities and places (GWT integrates them with history tokens):

Re: Update Text Column at Run time

2011-01-12 Thread Y2i
ColumnT, C implements HasCellT, C which has getFieldUpdater() method. The returned updated is the one you can use: FieldUpdaterT, C.update(int index, T object, C value) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Re: Any good solution to handle switching among items of a list in 2.1.1 MVP framework?

2011-01-12 Thread Y2i
For #2 (List items): There will be a single Place sub-class (let's call it ItemPlace), but every time you click on a list item, a new instance of the ItemPlace is created, and you can pass your item (the model element) to the ItemPlace constructor. (You need to proper implement

Re: Sending Embeddable object to the server

2011-01-12 Thread Y2i
Are you using ValueProxy for @Embeddable? Take a look at this post: https://groups.google.com/forum/#!topic/google-web-toolkit/GtYo9DJaf9o/discussion -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: RequestFactory No fire

2011-01-12 Thread Y2i
Does factory.personRequest().getStr() return InstanceRequestPersonProxy, String? If yes, you need factory.personRequest().getStr().using(person) If not, how do you pass information about a person? As an alternative, after retrieving a person you can just use Person.getStr() instead of having

Re: GWT.create([AnyService]) hangs only on hosted mode

2011-01-12 Thread Y2i
Ubuntu allows switching between different installed java versions: update-java-alternatives -s java-version May be there is something similar for Mac? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: Sending Embeddable object to the server

2011-01-12 Thread Y2i
actually I was using simple gwt-rpc to send the object to the server. May be your @Embeddable was enhanced by the JPA provider in a way that made it incompatible with GWT-RPC? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Re: Any good solution to handle switching among items of a list in 2.1.1 MVP framework?

2011-01-12 Thread Y2i
Regarding token parsing: RequestFactory supports converting between history tokens and Entity Types / IDs. http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/requestfactory/shared/RequestFactory.html#getHistoryToken(java.lang.Class)

Relocating instance methods transparently for the client

2011-01-12 Thread Y2i
Suppose there is an interface @Service(MyEntity.class) public interface MyEntityRequest extends RequestContext { RequestMyEntityProxy getCurrentEntity(); InstanceRequestMyEntityProxy, Void persist(); } I can move the static method MyEntity.getCurrentEntity() to MyEnityService.getCurrentEntity()

Re: Unable to display html file in Frame container.

2011-01-12 Thread Y2i
You can place static content in the war directory. For example, if you have war/hello.html, you can use this ui binder snippet to load it: g:Frame width=100% url=hello.html/ http://code.google.com/support/bin/answer.py?hl=enanswer=63584 -- You received this message because you are subscribed

Re: War structure for multi-module app has changed magically

2011-01-12 Thread Y2i
Did you play with the modules' rename-to attributes? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to

Re: deploying gwt application on jetty

2011-01-11 Thread Y2i
Do you have jetty-???.jar in your jetty/lib? Also, do you start jetty using the command line below? java -jar start.jar etc/jetty.xml On Jan 11, 6:16 am, Noor baken...@gmail.com wrote: Can someone help me to place my GWT application on Jetty. I am not using maven. I have libraries in my build

Re: RequestFactory: possible to load the whole object graph

2011-01-11 Thread Y2i
Do you need all the children at once? If not, you can use CellBrowser or CellTree (combined with a TreeModel and data providers) to let the user interactively bring only the children he/she needs . On Jan 11, 10:03 am, opn open...@gmx.net wrote: Thx for the reply : ) i've already seen and used

Re: gwt rpc

2011-01-11 Thread Y2i
Not sure if I understand what the rest of the world and external users mean... Do you simply NOT want to use GWT-RPC and call already existing services? If so, you can use com.google.gwt.http.client.RequestBuidler or com.google.gwt.jsonp.client.JsonpRequestBuilder depending on the existing

Re: Any good solution to handle switching among items of a list in 2.1.1 MVP framework?

2011-01-11 Thread Y2i
#2 is a classic example of where MVP suits well. You can just follow these guidelines: http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html For #1 it's better to use TabBar (instead of TabPanel/TabLayoutPanel) and handle selection events to navigate to different

Re: Any good solution to handle switching among items of a list in 2.1.1 MVP framework?

2011-01-11 Thread Y2i
Sorry, I meant to say #1 to #2 On Jan 11, 10:08 pm, Y2i yur...@gmail.com wrote: #2 is a classic example of where MVP suits well.  You can just follow these guidelines:http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd... For #1 it's better to use TabBar (instead

Re: RequestFactory integration with Activities and Places

2011-01-11 Thread Y2i
These two were very helpful for me: http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group.

Re: 2.1.1 Documentation Please

2011-01-10 Thread Y2i
Lisa, In addition to Thomas' link there is another good document to start with: http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html It describes well how RF bridges client and server sides. The Roo- generated code will become easier to understand after reading this article.

Re: Help with generics or inheritance with RequestFactory

2011-01-10 Thread Y2i
It looks like the feature request was accepted: http://code.google.com/p/google-web-toolkit/issues/detail?id=5367 This is an workaround, but it's how I'm planning to deal with the polymorphism until it's fully supported by the request factory. -

Re: Help with generics or inheritance with RequestFactory

2011-01-10 Thread Y2i
I meant to say This is an ugly workaround... On Jan 10, 5:56 pm, Y2i yur...@gmail.com wrote: It looks like the feature request was accepted: http://code.google.com/p/google-web-toolkit/issues/detail?id=5367 This is an workaround, but it's how I'm planning to deal with the polymorphism until

Re: Element position

2011-01-10 Thread Y2i
I use textBox.getAbsoluteLeft() instead of txtBox.getElement().getAbsoluteLeft() (it eventually does the same what txtBox.getElement().getAbsoluteLeft() does, but it works for me, strange...) In addition, if it a simple text tooltip, you can manipulate HTML TITLE attribute

Re: Element position

2011-01-10 Thread Y2i
P.S. if TITLE attribute works for you, you can use textBox.setTitle() instead of manipulating DOM On Jan 10, 6:17 pm, Y2i yur...@gmail.com wrote: I use textBox.getAbsoluteLeft() instead of txtBox.getElement().getAbsoluteLeft() (it eventually does the same what txtBox.getElement

Re: Use of GWT (+ JTS) + JPA + Postgis

2011-01-10 Thread Y2i
again for your idea and suggestions, Thomas On Jan 2, 10:11 am, Y2i yur...@gmail.com wrote: Actually the only thing that works with datanucleus is EntityManager.createNativeQuery(select ..., MyPOJO.class) EntityManager.createNativeQuery(select ..., MyQuery) + @SqlResultSetMapping

Re: Transactions in Request Factory

2011-01-10 Thread Y2i
Thanks for pointing this out Thomas, and also for your recent post that sheds more light on how all this works. http://tbroyer.posterous.com/gwt-211-requestfactory On Jan 2, 4:38 am, Thomas Broyer t.bro...@gmail.com wrote: Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=5389

Re: Move the cursor (not the selection) in a CellTable from the code

2011-01-09 Thread Y2i
I didn't do it because I had to change the design. I'm still curios if it's possible at all... On Jan 9, 7:44 am, Deepak Singh deepaksingh...@gmail.com wrote: Can u post the code pls how u did it ? On Sat, Jan 8, 2011 at 2:21 PM, Y2i yur...@gmail.com wrote: It is possible, by calling

Re: Move the cursor (not the selection) in a CellTable from the code

2011-01-09 Thread Y2i
using events, but I might have been doing something wrong. On Jan 9, 8:32 am, Y2i yur...@gmail.com wrote: I didn't do it because I had to change the design.  I'm still curios if it's possible at all... On Jan 9, 7:44 am, Deepak Singh deepaksingh...@gmail.com wrote: Can u post the code

Move the cursor (not the selection) in a CellTable from the code

2011-01-08 Thread Y2i
It is possible, by calling SingleSelectionModel.setSelected(...), to change the selection (blue line) in a CellTable from the code. Is it possible to change the cursor (yellow line) in the CellTable from the code? I tried DomEvent.fireNativeEvent(Document.get().createKeyCodeEvent(keydown,

Re: Move the cursor (not the selection) in a CellTable from the code

2011-01-08 Thread Y2i
I changed the design, this is not an issue anymore... On Jan 8, 12:51 am, Y2i yur...@gmail.com wrote: It is possible, by calling SingleSelectionModel.setSelected(...), to change the selection (blue line) in a CellTable from the code. Is it possible to change the cursor (yellow line

Re: please Help me GWT Listbox

2011-01-06 Thread Y2i
Not sure if you can do this with ListBox, but you can try constructing this through DOM manipulation using SelectElement, OptGroupElement and OptionElement On Jan 5, 10:34 pm, vijay gohel vijayigo...@gmail.com wrote: i want aout put like Group1      Item1-1      Item1-2      Item1-3      

Re: History, Is An Alternate Implementation Possible?

2011-01-06 Thread Y2i
I would also like to have similar functionality: back-forth button working within a tab, not across a tab. This would be possible to achieve if GWT supported for nested places and activities. In the first level, back-forth button would work across the tabs. Once a user clicks within a tab, URL

Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-06 Thread Y2i
I don't see @ManyToMany attribute in the sample code. On Jan 6, 8:53 am, Aldo Neto tumo...@gmail.com wrote: Hi all, I'm trying to create a Many-to-Many relationship and add a couple of fields to it. I based my mapping on this

Re: Composite Primary Keys (Many-to-Many relationship)

2011-01-06 Thread Y2i
Sorry, I misunderstood the question. You are trying emulate @ManyToMany... On Jan 6, 3:13 pm, Y2i yur...@gmail.com wrote: I don't see @ManyToMany attribute in the sample code. On Jan 6, 8:53 am, Aldo Neto tumo...@gmail.com wrote: Hi all, I'm trying to create a Many-to-Many

Re: Updating Cell Table at run time

2011-01-05 Thread Y2i
Did you setup table columns? It might be also possible that your table is not visible (collapsed). Try setting background color to red (using styles) to verify that if it is visible. On Jan 5, 9:56 am, Noor baken...@gmail.com wrote: I am getting problem to update cell table at runtime. I am

Re: gwt rpc

2011-01-05 Thread Y2i
AbstractRemoteServiceServlet and its sub-class RemoteServiceServlet are the classes that implement gwt-rpc. gwt-rpc is implemented using doPost(). AbstractRemoteServiceServlet makes doPost() final and delegates the work to RemoteServiceServlet.processPost() to dispatch remote service interface

Re: Problem with java.util.Date

2011-01-05 Thread Y2i
Just copied and tested above code in 2.1.1 and works fine in development mode. This is what I said earlier: the example also works for me in GWT 2.1.1... Looking at the exception, you are using the setHours() method in the sql Date object... But if I replace java.util.Date with

Re: GWT Simple Pager Help

2011-01-05 Thread Y2i
call cellTable.setRowCount(AllMessages.size(), true); On Jan 5, 12:54 pm, Noor baken...@gmail.com wrote: Hi, I am stuck with the gwt cell pager which I want to attach to a cell table. I am setting like this: List ForumMessage AllMessages=populated from an rpc; CellTable cellTable = new

Re: Enterprise CellTable Questionnaire

2011-01-05 Thread Y2i
John, I'm curious about sorting implementation. When a cell table is attached to an async data provider, range data is requested from the provider in batches. More likely the sorting will occur in the database and only a small range will be returned to the table. In addition, a single data

Special thanks for Value Proxies

2011-01-05 Thread Y2i
Just can't thank GWT Team enough for the value proxies! It is now possible to run complex JPQL queries involving aggregate functions, construct n...@entity projections and path them through to the client. The projections can even refer to @Entities and it all magically works! Just one more

Re: Unable to run GWT application in production mode - GWT Module may need to be (re) compiled

2011-01-05 Thread Y2i
May be this post will help: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/8fc260a7865076e9/ It was solved by adding webAppDirectory to the GWT maven plugin. On Jan 5, 8:50 pm, Shubhang Mani shubhang.m...@gmail.com wrote: I'm trying to deploy a GWT application to an

Re: Is it possible to consturct CellTree form database via rpc

2011-01-04 Thread Y2i
, yeti superi...@gmail.com wrote: Thank you Y2i, Your messages are greatly help to me But there is an another problem stuck in... updataRowCount() and updataRowData should work with hasData, but cellTree doesnt implement it, so my requestion is, as to cellTree, how do both functions above work

Re: how to avoid instanceof checks in ActivityMapper ? is DoubleDispatch used in Expenses sample ?

2011-01-04 Thread Y2i
I was thinking of a similar approach, but couldn't come up with a way to populate the lookup table (initialize it for the first time with data). could you please explain how you register activities/places in the lookup table, so that they are available at run-time ? At the moment I simply

Re: RequestFactory cast problem with polymorphic objects

2011-01-04 Thread Y2i
Thanks for pointing to this issue Thomas! A follow up question: how do we distinguish between the sub-classes on the client? JPA queries are polymorphic, so on the server the sub-classes are distinguishable. For single table and joint inheritance strategy JPA internally uses a discriminator

Re: is there a class that implements HasWidgets extends FocusWidget

2011-01-04 Thread Y2i
A Widget.addDomHandler() method may be what you are looking for. You can register a handler for com.google.gwt.event.dom.client.ClickEvent. On Jan 4, 9:43 am, Joe Hudson joe...@gmail.com wrote: Hi, I'm trying to figure out the best way to have a class accept click events while still being

Re: Date/Time support on client side

2011-01-04 Thread Y2i
Adding/subtracting 1900 is not a big problem. Instead of setDay() use (also deprecated) setDate() Also, take a look at DateTimeFormat http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsFormatting.html#datetimeformat If you are concerned about using deprecated methods, you can

Re: Workaround for Embedded objects

2011-01-04 Thread Y2i
ValueProxy can help with @Embedded, please take a look at Thomas' post here: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/743631b8460d931b/4242f0ef5de751e7?lnk=gstq=ValueProxy#4242f0ef5de751e7 On Jan 4, 3:43 pm, Aldo Neto tumo...@gmail.com wrote: Hi, I've been

Re: retrieving entrypoint instance

2011-01-04 Thread Y2i
Entry points are declared in *.gwt.xml module files. When a module is loaded, every entry point class defined in the module file is instantiated and its EntryPoint.onModuleLoad() method gets called. An entry point is instantiated only once and onModuleLoad() is also called once, so there is no

Re: odd behavior in browser history mechanism when using this navigation pattern !!

2011-01-04 Thread Y2i
This is how the browser history works. When you hit the back button at C and then go from B to D, the B-C stack is blown away. You can verify this on non-GWT websites, e.g. wikipedia. On Jan 4, 7:00 pm, zixzigma zixzi...@gmail.com wrote: I am noticing an odd behaviour when navigating around my

Re: Assign handler to UiHandler

2011-01-03 Thread Y2i
This should work: @UiHandler(lastName) void onLastNameBlur(BlurEvent event) { // code from UpperCase goes here } On Jan 3, 5:33 am, Peter Ondruska peter.ondru...@gmail.com wrote: BTW right now I just call lastName.addBlurHandler... in constructor but would prefer using @UiHandler if

Re: how to avoid instanceof checks in ActivityMapper ? is DoubleDispatch used in Expenses sample ?

2011-01-03 Thread Y2i
My app has a Place for every EntityProxy type. BasePlace has getProxyType() method that is called in MyActivityMapper.getActivity(place). Based on the proxy type returned, getActivity() method looks up an activity factory and calls factory.createActivity(place, config) All I have to do is to

Re: Problem with java.util.Date

2011-01-03 Thread Y2i
is present. My IDE import java.util and not java.sql package. Any ideas? Thanks! On 30 Dic 2010, 22:49, Y2i yur...@gmail.com wrote: java.sql.Date does not have a default constructor, so the example won't compile; it must be something different. BTW, I copied the three lines above

Re: Use of GWT (+ JTS) + JPA + Postgis

2011-01-02 Thread Y2i
Thomas, try this: Define a bean-like class for your PostGIS type, but don't annotate it with @Entity, just keep it as POJO. Let's call it MyPOJO. Use native queries to query the type: EntityManager.createNativeQuery(select ..., MyQuery) Use @SqlResultSetMapping to map MyQuery to MyPOJO. If

Re: Use of GWT (+ JTS) + JPA + Postgis

2011-01-02 Thread Y2i
, not sure if it will work with EclipseLink at all. On Jan 2, 12:27 am, Y2i yur...@gmail.com wrote: Thomas, try this: Define a bean-like class for your PostGIS type, but don't annotate it with @Entity, just keep it as POJO.  Let's call it MyPOJO. Use native queries to query the type

<    1   2   3   4   >