Re: GWT for Web Development (again)

2014-12-29 Thread ailinykh
The problem you describe is relevant to any AJAX framework. Using GWT doesn't make it worse or better. At the end of the day you have a bunch of javascript code. It doesn't matter if you create it manually or by GWT compiler. Thank you, Andrey On Wednesday, December 24, 2014 11:12:43 PM

Re: How to remove text formatting?

2011-11-20 Thread ailinykh
Thank you! This is what I need. Andrey -- 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/-/Jbx45cSqnaMJ. To post to this group, send email to

How to remove text formatting?

2011-11-19 Thread ailinykh
Hello, everybody! I have text with html formatting (originally it was created by RichTextArea). I want to show it as a plain text with no formatting. This is exactly the same as RichTextArea.ExtendedFormat.removeFormat does. But I want to do it programmatically. What is the best way? Thank

Re: replace-with problem

2011-11-08 Thread ailinykh
Yes, I can compile. I get ClassNotFoundException when in module B (library) I try to create interface replaced by concrete class in app. 09:17:51.405 [ERROR] [myapp] Could not load deferred binding result type 'com.ais.myapp.client.ExceptionHandlerImpl' java.lang.ClassNotFoundException:

replace-with problem

2011-11-07 Thread ailinykh
Hello everybody! I have three GWT modules A, B and C. C has some common widgets and utility classes/interfaces. both A and B depends on C. A depends on B. A has an entry point. The problem is: module C has an interface which I want to replace by a class in A module. I use replace-with statement

How implement two columns widget?

2011-04-18 Thread ailinykh
Hello everybody! I want to create custom widget which consists of two widget- Left and Right. Left has fixed width, Right takes all space left. Widget height is defined by Right. Right just wraps all content it has. If I make parent wider Right gets wider also. The content of Left is scrollable.

How to get mouse position from NativeEvent

2011-03-24 Thread ailinykh
Hello, everybody! I'm implementing custom cell, extending AbstractCell. One problem I have is related to event handling. My cell has image, and I need to know the mouse position related to this image. In method public void onBrowserEvent(Context context, Element parent, Integer value,

Window.Location and IE

2011-02-18 Thread ailinykh
Hello, everybody! In my application I want to send user to login page. I do Window.Location=./loginServlet; So, if my application is deployed to www.mysite.com/MyApplication user goes to www.mysite.com/MyApplication/loginServlet It works fine until i try it in IE. IE sends user to

Re: Window.Location and IE

2011-02-18 Thread ailinykh
Perfect! Thank you very much! Andrey On Feb 18, 8:22 am, Thomas Broyer t.bro...@gmail.com wrote: Window.Location.assign(GWT.getHostPageBaseURL()http://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/g...()+ loginServlet); -- You received this message because you are subscribed to

Re: GWT Activities, Places with Event Bus ??????

2011-01-20 Thread ailinykh
Why do you need events? Each Activity is notified when it becomes active ( method start() is called). Just check the application state at this moment. If you want to share some data between several activities make this data singleton. Thank you, Andrey On Jan 19, 7:59 am, SergeZ

Re: GWT Activities, Places with Event Bus ??????

2011-01-20 Thread ailinykh
in your application at a given time, then this becomes less of an issue. -Ben On Jan 20, 8:01 am, ailinykh ailin...@gmail.com wrote: Why do you need events? Each Activity is notified when it becomes active ( method start() is called). Just check the application state at this moment

Re: how to wrap an image inside a Hyperlink ?

2011-01-16 Thread ailinykh
This is what I do @UiField Hyperlink imageLink; ... String imgStr=img src='+url+'/; imageLink.setHTML(imgStr); Andrey On Jan 15, 4:25 pm, zixzigma zixzi...@gmail.com wrote: g:InlineHyperLink, g:HyperLink and g:Anchor cannot contain an element if I'm correct. do you know how we can then

Re: Maven repository for GWT 2.1.1

2010-12-27 Thread ailinykh
It helped. Thank you! Andrey On Dec 27, 10:51 am, David Chandler drfibona...@google.com wrote: Use mvn clean compile gwt:compile to be sure you're doing all compilation. If you still get the compilation warning, try deleting browser cache. /dmc -- You received this message because you

Re: Maven repository for GWT 2.1.1

2010-12-26 Thread ailinykh
I did, no difference. On Dec 26, 1:25 am, Mike Guo gsun...@gmail.com wrote: you need compile first before you run  http://127.0.0.1:/Expenses.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: Maven repository for GWT 2.1.1

2010-12-25 Thread ailinykh
I tried to run it (mvn gwt:run) If I use URL as http://127.0.0.1:/Expenses.html?gwt.codesvr=127.0.0.1:9997 everything looks good, but if I point browser to http://127.0.0.1:/Expenses.html I get popup dialog with message GWT module may need to be (re)compile Is it supposed to happen or I

How to move to regular HTML page.

2010-12-12 Thread ailinykh
Hello, everybody! Let's say I have GWT application with page MyPage.html. In my application I want to move user to regular html page ( to login, for example). I just call Window.Location.replace(urltoGo); It works. But then in my servlet, which handles urltoGo, I want to redirect user back to

Re: Can't get to default place

2010-12-04 Thread ailinykh
I just realized that problem happens with chrome only. FireFox, IE, Opera work fine. -- 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,

Re: Can't get to default place

2010-12-03 Thread ailinykh
Yes, of course. As I told, everything works as supposed to. The only problem- clicking back. On Dec 3, 12:46 am, zixzigma zixzi...@gmail.com wrote: Have you added your newly created place to AppPlaceHistoryMapper ? http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd...

Can't get to default place

2010-12-02 Thread ailinykh
Hello, everybody! I slightly modified hellomvp example, I just added one more place/ activity/view. It's called OneMorePlace, OneMoreActivity, OneMoreView. So right now I have scenario like this- HelloActivty starts OneMoreActivity, OneMoreActivity starts GoodByeActivity. But when I tried to

Re: Can't get to default place

2010-12-02 Thread ailinykh
starts GoodByeActivity? Can you please post the code for OneMoreActivity? /dmc On Thu, Dec 2, 2010 at 4:52 PM, ailinykh ailin...@gmail.com wrote: Hello, everybody! I slightly modified hellomvp example, I just added one more place/ activity/view. It's called OneMorePlace

Re: What is the best way to render complex cell?

2010-11-29 Thread ailinykh
grows as the level of complexity of a Cell increases.  UiBinder for Cells should make it much easier to template Cells. Thanks, John LaBanca jlaba...@google.com On Fri, Nov 26, 2010 at 1:01 PM, ailinykh ailin...@gmail.com wrote: Hello, everybody! I have CellList which contains

What is 'final' keyword for?

2010-11-29 Thread ailinykh
Hello, everybody! In HasDataPresenter.java I see code like this: // Update the page size. final boolean pageSizeChanged = (pageSize != length); if (pageSizeChanged) { pageSize = length; } and later if(pageSizeChanged) doSomething(); What a reason to use 'final'

What is the best way to render complex cell?

2010-11-26 Thread ailinykh
Hello, everybody! I have CellList which contains custom cells. It's pretty close to Cell List example from show case, but my custom cell is more complicated. It has several images, several links and I want to handle clicks on images and links. Generating html code by overriding render method seems

Re: problem with background position

2010-10-28 Thread ailinykh
:41, ailinykh ailin...@gmail.com wrote: Hello, everybody! I try to manipulate with background image and background position. I need to change background image and background position on the fly. What I have is a couple of images: @sprite .i1 {                         gwt-image

How to make reusable widgets?

2010-10-13 Thread ailinykh
Hello, everybody! I'm confused with latest MVP pattern. My problem is: Let's say I have main layout which consists of several widgets. Something like this g:DockLayoutPanel unit='EM' g:north size=4 my:MyNorthWidget/ /g:north

Why ListDataProvider is aware about data display?

2010-10-07 Thread ailinykh
Hello, everybody! I just looked into latest show case. CellList/Celltable work with ListDataProvider which is a class keeping all data. But it is aware about user interface - dataProvider.addDataDisplay(display); What a reason for that strange design? Thank you, Andrey -- You received this

Re: Why ListDataProvider is aware about data display?

2010-10-07 Thread ailinykh
It makes sense. But why not traditional Model/View design when Model fires events and any subscriber (not necessary View) updates itself? On Oct 7, 11:18 am, Thomas Broyer t.bro...@gmail.com wrote: On Oct 7, 6:02 pm, ailinykh ailin...@gmail.com wrote: Hello, everybody! I just looked

DisclosurePanel and ScrollPanel

2010-08-29 Thread ailinykh
Hello, everybody! I have simple layout, something like this g:DisclosurePanel g:headerEdit Lists/g:header g:HTMLPanel some stuff here /g:HTMLPanel /g:DisclosurePanel g:ScrollPanel g:Tree ui:field=listTree /

TabLayoutPanel ie problem

2010-05-18 Thread ailinykh
Hello, everybody! I try to create layout with two TabLayoutPanel widgets. (One's tab is the parent for another) This is the code. It works fine in chrome. But in IE inner TabLayoutPanel's tab takes whole window. It looks like it's parent (LayoutPanel) doesn't exist. Any ideas how to fix it?

Re: TabLayoutPanel ie problem

2010-05-18 Thread ailinykh
should work for you. On May 18, 12:28 pm, ailinykh ailin...@gmail.com wrote: Hello,  everybody! I try to create layout with two  TabLayoutPanel widgets. (One's tab is the parent for another) This is the code. It works fine in chrome. But in IE inner TabLayoutPanel's tab takes whole

Re: How to style HorizontalPanel

2010-03-06 Thread ailinykh
Thank you, Chris! It makes sense. Honestly, I don't see any reason to use Gwt panels in UiBinder xml file. I put there regular html, added some padding to td. Now everything looks good. By the way, what is stylePrimaryName how it differs from styleName? Andrey -- You received this message

How to style HorizontalPanel

2010-03-05 Thread ailinykh
Hello, everybody! I've problem with HorizontalPanel layout. What I have is: g:HorizontalPanel width=100% g:cell width=100% g:TextBox width=100% ui:field=inviteEmail/ /g:cell g:cell g:Button ui:field=inviteButton text=Invite/ /g:cell

Why main page is not scrollable?

2010-02-25 Thread ailinykh
Hello, everybody! I've got a strange problem. I put several widgets into main page. Everything looks good, but when I change browser window size (make it small) scroll bars don't appear. I can see only small area at the left top corner. What could be wrong? Thank you, Andrey -- You received

Re: java.lang.NoClassDefFoundError in tomcat

2010-01-26 Thread ailinykh
I figured it out. Accidentally, I used com.google.gwt.dev.util.collect.HashSet instead of java.util.HashSet. It works in eclipse, but not in tomcat, even if I put jar into WEB-INF/ lib directory. On Jan 25, 1:16 pm, ailinykh ailin...@gmail.com wrote: Hello, everybody! When I deploy my GWT

Re: On secure logins

2010-01-21 Thread ailinykh
By this way you secure the main page only. What is pretty much useless. All client/server communication is done through AJAX. You can't secure it by a traditional servlet filter, because GWT serialization doesn't know anything about redirect. You will have something like serialization Exception.

Styling TabLayoutPanel

2010-01-16 Thread ailinykh
Hello, everybody! I try to style TabLayoutPanel. I can apply style to panel itself: ui:style .gwt-TabLayoutPanel { cursor: default; background: #92c1f0; } /ui:style and then g:TabLayoutPanel styleName='{style.gwt-TabLayoutPanel}'

Re: Can java client use GWT RPC?

2009-12-23 Thread ailinykh
Thank you! This is what I'm going to do. But I see one problem here. I'd like to use Google's authentication. As far as I understand it is HTTP based. I don't see any way how to use it outside browser. Any ideas? Thank you, Andrey On Dec 15, 10:45 am, Isaac Truett itru...@gmail.com wrote:

Can java client use GWT RPC?

2009-12-15 Thread ailinykh
Hello, everybody! I have a simple GWT application. Right now Web browser is the only client. Also I want to create pure java client (android based). Is there a simple way to use GWT RPC from java client? If not, what are my options? Thank you, Andrey -- You received this message because you

Re: show/hide widget based on user's credentials

2009-06-23 Thread ailinykh
wrote: 2 solutions: * 2 gwt applications user and admin (you could use a custom properties/permutation). * 1 gwt application and applicative (if(userInRole(admin)) customization. HIH On Tue, Jun 23, 2009 at 2:28 PM, ailinykh ailin...@gmail.com wrote: Hello, everybody! I have a widget

Re: show/hide widget based on user's credentials

2009-06-23 Thread ailinykh
I see. How do you check user permissions on server side? Andrey On Jun 23, 2:47 pm, Chad chad...@gmail.com wrote: Andrey, RPC is the way I do it. I have a User object that can be passed between the client and server. It's kept on the client after login so the entire UI can easily refer to

Re: show/hide widget based on user's credentials

2009-06-23 Thread ailinykh
to each role. The roles and rights are added to the user and sent back to the client. From that point on, the application can just query the user object for everything that it needs to know about the user. HTH, Chad On Jun 23, 3:28 pm, ailinykh ailin...@gmail.com wrote: I see. How do you

ClassNotFoundException when have reference to another project

2009-06-12 Thread ailinykh
Hello everybody! I have simple GWT project. In servlet implementation I use class from another Java project (it is regular class library). Both of them are eclipse projects. Main project has reference to library project, I can compile. But when I run it I get ClassNotFoundException. If I export