Re: custom event + event bubbling

2011-06-25 Thread ashwin.desi...@gmail.com
for listening on events on your widget you can define UiHandler or Attach / Add handlers for example, if you have a button defined in your UIBinder Hello now if you want to listen on click event of this button, you can do either of these two operations @UiHandler("button1") public void OnButton

Re: Problem with Deploying GWT 2.3 Samples in Eclipse (*Expenses)

2011-06-26 Thread ashwin.desi...@gmail.com
try importing them as Maven Project in eclipse. ~Ashwin On Sun, Jun 26, 2011 at 1:51 PM, saurabh saurabh wrote: > Hi all, >I am going through Sample applications that comes with GWT 2.3 > plugin. There is problem with these samples that you can't simply > import them in eclipse. Eclipse

Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module?

2011-06-26 Thread ashwin.desi...@gmail.com
Nicolas, The first this I can think of is in your module definition you have not included the path Your UserServiceImpl is defined in your server package but you don't have that included in the module. Try adding that. Regards Ashwin On Mon, Jun 27, 2011 at 12:12 PM, Zgouingo wrote: > Well

Re: RequestFactory object lifecycle & change propagation

2011-06-28 Thread ashwin.desi...@gmail.com
J, did you look at EntityProxyChange.registerForProxyType ? You can use this and register for any changes to your entities with the eventBus. The Handler method is called on change of entities (especially version changes). example: EntityProxyChange.registerForProxyType(eventBus, UserContactsPro

Re: ActionCells within a CompositeCell not receiving onBrowserEvent()

2011-06-28 Thread ashwin.desi...@gmail.com
Are you following the exact sample? or are you using the CompositeCell in your own project? Can you paste the code where you are associating your CompositeCell with a table or CellList ~Ashwin On Wed, Jun 29, 2011 at 9:42 AM, Daniel Johnston wrote: > Thanks for the help Ashwin, but I checked th

RequestContext & GAE EntityGroups?

2011-06-29 Thread ashwin.desi...@gmail.com
Hello, I am building a project where I have a datamodel as shown below. A { @Transient B b; @Transient C c; } //there are few more params, just showing the basic structure B { String title; Set child; } C { //set of keys is stored Set d; Set count; } D { String name; String countr

Re: RequestFactory and populate form field with dynamic data

2011-06-29 Thread ashwin.desi...@gmail.com
you should be able to dynamically populate a drop list using requestFactory. Once you fetch the data from the server, you can update your list. The only instance where you would have to build a custom widget is when you want to dynamically populate a SelectionCell with your dynamic data. For that

Re: Making a button fire inside a custom AbstractCell

2011-06-29 Thread ashwin.desi...@gmail.com
you have not specified the events you want your cell to consume. You will have to add a constructor and specify the events you want to consume AbstractButtonCell() { super(new String[] { "click", "keydown" }); //do rest of the init; } ~Ashwin On Wed, Jun 29, 2011 at 7:30 PM, Tod Jackson wrot

Re: RequestFactory object lifecycle & change propagation

2011-06-29 Thread ashwin.desi...@gmail.com
sion (I just saved it!). EntityProxyChange > doesn't seem to provide a reference to the proxy object that triggered > the change. > > I'm kind of confused with RequestFactory, I see having multiple change > contexts and multiple proxy graphs as a handicap rather that an >

Re: Questions about complex UI events in MVP mode

2011-07-04 Thread ashwin.desi...@gmail.com
Victor, based on what I read, your flowpanel is part of a view which is mapped to a presenter. You are dynamically adding buttons to the flowpanel. You can setup click handlers for each of your buttons. if the button is present and clicked, its handler would be invoked. Inside the handler call the

Re: ListBox with multiple selection

2011-07-11 Thread ashwin.desi...@gmail.com
Associate a MultiSelectionModel with your list box. On the selection change event, you can do the following selectionModel.getSelectedSet(); this would fetch you all selected items. Thanks Ashwin On Mon, Jul 11, 2011 at 6:09 PM, Jose Luis Hernandez < jose.hernande...@gmail.com> wrote: > Hello

Re: How to detect if a Popup is showing

2011-07-11 Thread ashwin.desi...@gmail.com
Popup Panels have a isShowing() method, use that to determine if its currently displayed ~Ashwin On Tue, Jul 12, 2011 at 6:30 AM, Craig Mitchell wrote: > Hi, > > I wanted to check if a popup is showing, so I wrote this method: > > public static int getNumPopupsShowing() { > int result = 0; > No

Re: tab layout suggestions needed

2011-07-12 Thread ashwin.desi...@gmail.com
look at the source code, the initialize method shows how to add new tabs. You can add a button in one of these tab panels and on click of it create new tabs. Thanks Ashwin On Tue, Jul 12, 2011 at 7:21 PM, Vik wrote: > hie > > the demo does not show the adding new tab etc > http://gwt.google.com

Re: Configuring Places to work with Tabs

2011-07-18 Thread ashwin.desi...@gmail.com
Mark, I think you should be able to achieve it using places. Try to have an additional property in your place, lets say location which would tell you which tab the user clicked. Now pass this value to the activity/ Delegate which drives your view. Based on the location render the contents. Regar

Re: Configuring Places to work with Tabs

2011-07-18 Thread ashwin.desi...@gmail.com
nks! Should i be using the content panel that contains the tab > panel or should i somehow create content panels and activity mappers > for each tab panel. > > On Jul 18, 10:30 am, "ashwin.desi...@gmail.com" > wrote: > > Mark, > > > > I think you should be a

Re: Place an Image into the center of DockLayoutPanel ??

2011-07-18 Thread ashwin.desi...@gmail.com
use an absolute panel and render the image inside it. use absolute position to render your images at the prescribed positions. regards Ashwin On Mon, Jul 18, 2011 at 9:00 PM, JC wrote: > I have a DockLayout Panel. I want to place an image into the center > of: . If I add the image to or nest i

Re: Place an Image into the center of DockLayoutPanel ??

2011-07-18 Thread ashwin.desi...@gmail.com
Very good. if you are doing more than one image then placing them relative to each other would be difficult using a HTMLPanel and table combination. In those instances you can use an absolute panel On Mon, Jul 18, 2011 at 11:34 PM, JC wrote: > It was frustrating but in the end I figured it ou

Re: ClientBundle don't load the ImageResource

2011-07-18 Thread ashwin.desi...@gmail.com
include the statement INSTANCE..ensureInjected(); that should fix your problem. For your reference read the following http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#ImageResource Overview 1. Write a CSS file, with or without GWT-specific extensions 2. If GWT-specific

Re: Place an Image into the center of DockLayoutPanel ??

2011-07-18 Thread ashwin.desi...@gmail.com
all layout panels have to be placed under other layout panels otherwize they won't render properly as the resizing would not work automatically. You can alternatively use a ResizeLayoutPanel which is an extension of a SimplePanel. Use it instead of the simple panel. On Tue, Jul 19, 2011 at 3:59

Re: TabLayoutPanel expand to fit content?

2011-07-18 Thread ashwin.desi...@gmail.com
you are having this problem because your page is not able to resize properly. What sort of widget is your is that a Simple Panel? you can place your Tab Layout Panel directly inside the RootLayout Panel. since you want to have two Tab Panels, place them inside a simple panel would not work prope

Re: ClientBundle don't load the ImageResource

2011-07-18 Thread ashwin.desi...@gmail.com
here is an example public interface DesktopResouces extends ClientBundle { } On Tue, Jul 19, 2011 at 2:49 AM, Markus wrote: > Thanks for your reply. But I don't know how it should work with CSS > Resource? > > Ok I created > > public interface ResourceBundle extends ClientBundle { > >

Re: ClientBundle don't load the ImageResource

2011-07-18 Thread ashwin.desi...@gmail.com
managing your changing styles for the page Thanks Ashwin On Tue, Jul 19, 2011 at 9:33 AM, ashwin.desi...@gmail.com < ashwin.desi...@gmail.com> wrote: > here is an example > > public interface DesktopResouces extends ClientBundle { > > } > > On Tue, Jul 19, 2

Re: Configuring Places to work with Tabs

2011-07-18 Thread ashwin.desi...@gmail.com
> I keep track of which tab is currently selcted and utilize the > variables depending on the selected index of the tab. for example when > the second tab is selected the 2 variables are used. doing this still > combines all the browser history together no matter what tab is > selec

Re: Ajax Call

2011-07-19 Thread ashwin.desi...@gmail.com
register for entitychange events in your delegate and on change of the entity values, update your view. On Tue, Jul 19, 2011 at 12:22 PM, sanjay kanwar wrote: > Hi there, > > How can i update an entity in a webpage without refreshing the whole page. > using AJAX refresh method of the delegate. T

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread ashwin.desi...@gmail.com
the problem is not with your TabLayout panel. what you have there would work fine. The issue is with the Grid. Its best to use LayoutPanels inside other layoutpanels. In your case if all that you are doing is rendering two TabLayoutPanels, you don't have to necessarily use a grid. i would instead

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread ashwin.desi...@gmail.com
Also, make sure the height of the tabLayoutPanel is set to 100% .gwt-TabLayoutPanel { height : 100%; } ~Ashwin On Tue, Jul 19, 2011 at 8:10 PM, ashwin.desi...@gmail.com < ashwin.desi...@gmail.com> wrote: > the problem is not with your TabLayout panel. what you have there would > wo

Re: CSS right and bottom margins Not showing

2011-07-19 Thread ashwin.desi...@gmail.com
reduce the width of the topPanel. try to inspect the resizelayoutpanel, it would be going out of the frame. If you set overflow : auto, you may mostly see a scroll bar. if you reduce the width to below 100% your right margin's should get set. On Tue, Jul 19, 2011 at 8:30 PM, JC wrote: > I can'

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread ashwin.desi...@gmail.com
are you setting 100% as the height for both the resize layout panels? if yes how will the page render as your total height is 100% and you are assigning to the 1st resisze panel, the second panel would not be able to calculate its layout details. try setting the height to 50% and see the out come

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread ashwin.desi...@gmail.com
oh, if you want to render your panels on click of a button, then you don't necessarily need two ResizeLayoutPanels, just render the contents of the appropriate tabLayoutPanel alternatively, you can set the visibility of the panels to true/ false on click. this would also force the height adjustmen

Re: TabLayoutPanel expand to fit content?

2011-07-19 Thread ashwin.desi...@gmail.com
you can set styles via code. On Wed, Jul 20, 2011 at 1:42 AM, MChan wrote: > It still did not work. However, when I changed the resulting divs (Chrome > inspect element tool) position to "relative" instead of absolute, I was able > to see the tab content fit. But I can't do that programmatically

Re: Click events with UIBinder

2011-07-19 Thread ashwin.desi...@gmail.com
use RootPanel or RootLayoutPanel and add your widget to it. On Tue, Jul 19, 2011 at 8:40 PM, Matt wrote: > I am trying to add events to a Button using the UiBinder, but nothing > is happening when I click the Button. Here is my code: > > Login.ui.xml: > xmlns:ui="urn:ui:com.google.gwt.uibinder

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

2011-07-19 Thread ashwin.desi...@gmail.com
best would be to do a place change, call the same activity, but re-use the view (you can mark it singleton). this would make the code clean. On Wed, Jul 20, 2011 at 5:43 AM, P.G.Taboada wrote: > Hi, > > I need to tell the history manager that I am switching from > userViewPlace: to userViewPlace:

Re: how to make DataGrid column heading looks like swing table heading

2012-05-03 Thread ashwin.desi...@gmail.com
Daya, you can customize the style of the DataGrid by overriding the CSS properties? Did you try that. Regards Ashwin On Fri, May 4, 2012 at 11:28 AM, Dayananda B V wrote: > please help on this regard > > On May 3, 11:57 am, Dayananda B V wrote: > > Hi all, > > > > How to make DataGrid column h

Re: Resubmitting RequestFactory request when server side logic requires it

2012-06-05 Thread ashwin.desi...@gmail.com
Ryan, You can create your own custom annotation (for example : LoggedIn). Apply this on all methods you want to authenticate the user/ session to be validated. Define your own ApplicationRequestFactoryServlet and ApplicationServiceLayerDecorators. Override the invoke method under ServiceLayerDeco

Re: Should I use HTML5 canvas just to create my own slideshow reader ?

2012-06-07 Thread ashwin.desi...@gmail.com
there are multiple options available apart from HTML5 canvas. 1. RapahelGWT (this is an extension of Raphael JS for GWT), using this images would be rendered as SVG. And raphael works with lower versions of ie as well http://code.google.com/p/raphaelgwt/ 2. you can also look at a SlidingPanel (exa

Re: Facing issue while designing UI in GWT

2012-07-05 Thread ashwin.desi...@gmail.com
simply put GWT is a client side library. you develop using java/ phyton or Go instead of javascript. Its is similar to packaging a jsp/ html page inside a web app and would run under any j2ee container. yes you can combine, servlets and jsp in GWT app. ~Ashwin On Fri, Jul 6, 2012 at 11:44 AM,

Re: PopupPanel size problem

2012-07-09 Thread ashwin.desi...@gmail.com
are you setting the size of the docklayout panel or making it use all the available size of your popuppanel? Yes you can use window %. I would suggest you set min width and height for your popup panel and make the docklayout panel cover the width and height of your popup. Setting min width and he

Re: How do I make sure Widgets receive mouse events if placed in front of a Canvas or Vaadin DrawingArea?

2012-07-13 Thread ashwin.desi...@gmail.com
i have a similar implementation for my project. I have a panel to which I add a canvas (first) and dynamically I add multiple widgets. I actually don't use z-index ( so i am wrong with my previous comment). All that I do is I add the canvas before any of my other widgets. I have enabled domEvents

Re: Drag and Drop UI using GWT with Connectors

2012-08-11 Thread ashwin.desi...@gmail.com
Santosh, If you have the privilege (depending on your app) to use html5 and css3 as the min browser requirement, then I would suggest draw the process as as div and style them as circle using border-radius CSS style. to draw the connectors, use HTML5 canvas. GWT supports canvas on browsers which

Re: Big MultiWordSuggestOracle

2012-08-13 Thread ashwin.desi...@gmail.com
Check out https://groups.google.com/forum/m/?fromgroups#!topic/google-web-toolkit/VpQq_gxATYY On Aug 13, 2012 11:25 PM, "James" wrote: > I get a long list of records (2) for MultiWordSuggestOracle from > database. The page containing SuggestBox takes very long time to load. I > can add its i

Re: Pb with activity and events (using gin)

2013-06-04 Thread ashwin.desi...@gmail.com
check if the instance of EventBus is the same. I know you have declared it as eagerSingleton in your GIN configuration. But do a quick log to see if the instances are the same. I remember encountering a similar issue wherein I used to have a new instance of the EventBus getting injected even thoug

Re: How to add absolute panel to celltable column

2012-01-29 Thread ashwin.desi...@gmail.com
Doc, You cannot add Widgets directly to a CellTable. You will have to write a custom implementation by extending one of the AbstractCell Types. Is there a reason why you need to place a Panel inside a CellTable? If you are using a table to place widgets either use Grid or FlexGrid. CellTable is f

Re: Tutorial for security in GWT + GAE (Cloud SQL) + Request Factory

2012-12-19 Thread ashwin.desi...@gmail.com
some previous threads where securing RequestFactory has been discussed https://groups.google.com/forum/#!searchin/google-web-toolkit/securing$20RequestFactory/google-web-toolkit/QjZhnGydDFA/GmdSq5FlyckJ https://groups.google.com/forum/#!searchin/google-web-toolkit/securing$20RequestFactory/googl

Re: datagrid body is disappeared!! height is zero!!

2013-01-14 Thread ashwin.desi...@gmail.com
do you place your grid directly on the layoutPanel or is it inside other panels like HTMLPanel etc? I have had similar issues with loosing the size of the panel, In my case since I was using absolute positioning, I forced position of my grid on code to over come the issue. myGrid.getElement().getS

Re: datagrid body is disappeared!! height is zero!!

2013-01-15 Thread ashwin.desi...@gmail.com
datagrid inside a flex table would not invoke the resize of the grid. Add a resizelayoutPanel inside your dockLayout, override the resize method and set the height of the grid. On Tue, Jan 15, 2013 at 1:25 PM, tong123123 wrote: > DataGrid inside a FlexTable which is then inside a DockLayoutPane

Re: Canvas dynamical size?

2013-01-19 Thread ashwin.desi...@gmail.com
drop your canvas inside a ResizeLayoutPanel. This way onResize event you can adjust the width and height of the canvas. On Sat, Jan 19, 2013 at 7:16 PM, RyanZA wrote: > Make sure that the actual container your uibinder is using is

Re: ONLINE DOTNET TRAINING

2013-01-19 Thread ashwin.desi...@gmail.com
Please respect the sanctity of this forum. This is not the place to advertise. Admin, Please remove/ block such users. Regards Ashwin On Sun, Jan 20, 2013 at 12:45 PM, wrote: > HI, > > PLEASE FIND THE BELOW LINK FOR .NET ONLINE TRAINING AND PROJECT SUPPORT. > > http://onlinenettrainings.blog

Re: How to remove drawn elements on the canvas?

2013-01-20 Thread ashwin.desi...@gmail.com
easiest way to clear a canvas is to use the context clearRect function and pass the canvas co-ordinate space width & height. This would clear the entire canvas. And you can redraw the shapes you want to remain on screen. You can also clear portion of a screen, using the above function by passing t

Re: How to remove drawn elements on the canvas?

2013-01-21 Thread ashwin.desi...@gmail.com
great. let me know if you need more details on the same. I have implemented panning and zooming as well for one of my projects regards Ashwin On Mon, Jan 21, 2013 at 7:01 PM, Kody wrote: > Followed your suggestion using front and drag/back-canvas. Works really > nice. > > If someone else is lo