Re: How to config so that the Server can see the image location of GWT app when the app was not put into ROOT folder of Tomcat?

2014-10-07 Thread Milan Cvejic
Have you tried using ClientBundle. Here is a nice explanation on how to use it with UiBinder http://hcklab.blogspot.com/2010/11/uibinder-css-and-images-gwt.html Cheers. On Monday, October 6, 2014 1:36:10 PM UTC+2, Tom wrote: > > Ok, I built an GWT app. It has images folder located inside war fo

Re: Attaching Source Maps when injecting external java script file

2014-10-07 Thread Milan Cvejic
PM UTC+2, jchimene wrote: > > That really is a 404. > > Check your sources. > > On 10/06/2014 06:52 PM, Milan Cvejic wrote: > > Definitely not the answer that I am looking for. But thanks anyway. > > I am wrapping some jQuery plugin, and I need jQuery as depend

Re: Attaching Source Maps when injecting external java script file

2014-10-06 Thread Milan Cvejic
Definitely not the answer that I am looking for. But thanks anyway. I am wrapping some jQuery plugin, and I need jQuery as dependence. On Monday, October 6, 2014 4:02:31 PM UTC+2, jchimene wrote: > > On 10/05/2014 02:08 PM, Milan Cvejic wrote: > > Hi, > I am getting 40

Attaching Source Maps when injecting external java script file

2014-10-06 Thread Milan Cvejic
Hi, I am getting 404 asking me for jquery.min.map when injecting JQuery using ScriptInjector.fromUrl( "//ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery.min.js").inject(); Does anyone have any experience with injecting source maps with Script Injector? Thanks, Milan -- You received thi

SuperDev Mode - is compile after change required?

2014-03-17 Thread Milan Cvejic
Hi, I just started with SuperDev Mode, and so far it is good. I am just wandering, do I need to click on "Compile" button every time I make some change in code? I am using eclipse for my IDE and starting SuperDev mode via run configuration. Thanks, Milan -- You received this message because

Re: GWT 2.6.0 now available

2014-02-01 Thread Milan Cvejic
Just to have it documented. These are required dependencies: > > com.google.gwt > gwt-codeserver > 2.6.0 > > > com.google.gwt > gwt-dev > 2.6.0 > > > com.google.gwt > gwt-user > 2.6.

Re: RPC call in Activity onStop()

2013-03-05 Thread Milan Cvejic
Hey Yves, maybe you can hook and listen on PlaceChangeEvent. That event actually calls onStop(). So if that event is fired than you can execute your RPC call. Best, Milan On Tue, Mar 5, 2013 at 8:10 PM, yves wrote: > Hi, > > Finally I didn't succeed to make an RPC call from the overridden > Abs

Re: send event (click) to an external html page

2013-02-27 Thread Milan Cvejic
Thanks Thomas for clarification of messaging api. I believed that it is working only on same domain and that it is build just to standardize communication. Best, Milan On Wed, Feb 27, 2013 at 3:24 PM, Thomas Broyer wrote: > > > On Wednesday, February 27, 2013 3:07:48 PM UTC+1, Mil

Re: send event (click) to an external html page

2013-02-27 Thread Milan Cvejic
On the other hand, if you are loading iframe from the same domain, and have full control of iframe content you can use window.postMessage api for child - parent communication. You will need to implement some JSNI methods in order to accomplish this in GWT. Best, Milan On Wednesday, February 2

Re: RPC call in Activity onStop()

2013-02-21 Thread Milan Cvejic
Try to send request in mayStop method. It may work as widget is still not destroyed nor deatached. On Thursday, February 21, 2013 10:14:37 PM UTC+1, yves wrote: > > Actually it is a subclass of AbstractActivity and onStop() is overridden. > The fact the widget is being destroyed (? I am not sure

Re: EditorDriver setConstraintViolations not applicable for arguments error

2013-02-14 Thread Milan Cvejic
Hi, here is working solution: Validator validator = Validation.buildDefaultValidatorFactory().getValidator(); Set> violations = validator.validate(editor.flush()); @SuppressWarnings({ "rawtypes", "unchecked" }) Iterable> violations2 = (Iterable>) (Set) violation

Re: RichTextArea IE vs. Firefox || P vs BR

2013-02-14 Thread Milan Cvejic
Here you can find my solution to this: https://groups.google.com/d/topic/google-web-toolkit/t5OBuflQCzY/discussion There is one thing that you need to implement also, and that is to detect weather cursor is currently in ol or ul tags, and if so just call super.onBrowserEvent method and add defa

Re: Implementing Custom SingleSelectionModel

2013-02-04 Thread Milan Cvejic
es he made on form, you should just populate form with new data, as you are doing it now. Hope it helps, Best, Milan On Mon, Feb 4, 2013 at 4:04 PM, BM wrote: > I don't think I can use fieldUpdater as my form is not inside the Cell. > > > On Saturday, February 2, 2013 10:30:16

Re: Implementing Custom SingleSelectionModel

2013-02-02 Thread Milan Cvejic
Why are you not using FieldUpdater? So instead of preventing selection, you actually handle changes in cells? On Friday, February 1, 2013 11:22:56 PM UTC+1, BM wrote: > > So I have a custom SingleSelectionModel which I am using to catch the > setSelection well before it is selected. Basically to

Re: Equivalent to javascript confirmdialog ind GWT

2012-12-18 Thread Milan Cvejic
You could use event.preventDefault() in onWindowClosing method, display custom dialog box and if user confirmed close logout him. Best, Milan On Monday, December 17, 2012 5:10:52 PM UTC+1, Dominic Warzok wrote: > > The solution is posted her on > Stackoverflow

Editor setConstraintViloations does not propagate

2012-12-12 Thread Milan Cvejic
Hello, I am trying to implement Bean validation and integrate it with Editors. I have following code base: *DomainConfigComponent.java* import com.github.gwtbootstrap.client.ui.ValueListBox; import com.google.gwt.editor.client.HasEditorErrors; import com.google.gwt.editor.client.IsEditor; import

gwt maven plugin precompile goal?

2012-12-04 Thread Milan Cvejic
Hi, is it somehow possible just to precompile code instead of running full compilation using maven plugin for gwt? Thanks, Milan -- 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.go

Re: Step 3 of tutorial

2012-11-27 Thread Milan Cvejic
Please provide us with full stack trace.. Best, Milan On Monday, November 26, 2012 7:44:19 PM UTC+1, gwt/java newbie wrote: > > I am on Step 3 of the tutorial using Eclipse and I tried to Run > Run As > > Web application. When trying to view it I got this error: > > Exception while loading modu

Re: Sending HTML as JSON with RequestBuilder

2012-11-27 Thread Milan Cvejic
Thanks Thomas, I will try that one later today. Best, Milan On Tue, Nov 27, 2012 at 5:46 PM, Thomas Broyer wrote: > > > On Tuesday, November 27, 2012 5:30:08 PM UTC+1, Milan Cvejic wrote: >> >> Thanks guys for help, I forgot to mention that json gets properl

Re: Sending HTML as JSON with RequestBuilder

2012-11-27 Thread Milan Cvejic
Thanks guys for help, I forgot to mention that json gets properly encoded if using RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, url); builder.setHeader("Content-Type", "application/json"); but in my case i need request to be sent as application/x-www-form-urlencoded or

Sending HTML as JSON with RequestBuilder

2012-11-26 Thread Milan Cvejic
Hi, I am trying to send HTML string to server using RequestBuilder with JSON but without any success. Everything works well when in HTML there are no double quotes or other JSON charachters. So I am trying something like this RichTextArea area = new RichTextArea(); String htmlToSend = area.ge

Using tag on Enter and on Shift+Enter in RichTextArea - Solution

2012-11-24 Thread Milan Cvejic
Hello, I have spent some time to find solution to mentioned problem, as I saw that there are few topics asking for something like this. So I extended RichTextArea class and here is my implementation of it. import com.google.gwt.event.dom.client.KeyCodes; > import com.google.gwt.user.client.DOM; >

RichTextArea use tag instead of

2012-11-22 Thread Milan Cvejic
Hi, is it somehow possible to set RichTextArea to use tag when enter key is pressed, and to use tag when shift+enter is pressed? I tried overriding onBrowserEvent public void onBrowserEvent(Event event) { > > if (DOM.eventGetType(event) == Event.ONKEYDOWN) { >

Re: Is it possible to create auto scroling text from bottom to top in GWT? ( not scrolling bars)

2012-11-17 Thread Milan Cvejic
lid. Best, Milan Cvejic On Wednesday, November 14, 2012 9:24:31 PM UTC+1, Sridhar V wrote: > > Is it possible to create auto scroling text in GWT? if so, please guide > me how to do that. > > please note that I am NOT referring to horizontal/vertical scroll bars. I > am talkin

I Help help implementing ClickableSafeHtmlCell

2012-10-30 Thread Milan Cvejic
Hi, I am trying to implement ClickableSafeHtmlCell but I can not make it to handle events. I am using Field class ClickableSafeHtmlCell extends SafeHtmlCell { public void onBrowserEvent(Cell.Context context, Element parent, SafeHtml value, NativeEvent event, ValueUpdater valueUpdate

Re: UIBinder - CellTable - how to specify T?

2012-10-21 Thread Milan Cvejic
You can not specify type in UiBinder. What you should do is define celltable using UiBinder and in java you declare your table using @UiField(provided = true) CellTable cellTable; public MyClass() { cellTable = new CellTable(); initWidget(uiBinder.createAndBindUi(this)); } On Sunday, Octob

Re: GWT 2.5 RC2 Is Here!

2012-10-16 Thread Milan Cvejic
I must say that documentation is by far worst part of GWT by my opinion. There is no clear documentation on advanced usage of editors, validation, UiBinder and so on... Yep, someone can go and see how some things are implemented in source, but sometimes it is not straight forward and difficult

Re: Are you happy with GWT?

2012-10-08 Thread Milan Cvejic
Definitely YES! We are using vanilla GWT, and it is great, just documentation is not that helpful. If you want to create some more advance things, you will need to dive into GWT source. On Friday, October 5, 2012 5:53:17 PM UTC+2, Charlie Youakim wrote: > > I'm deciding on whether to switch my

Editor driver factory?

2012-09-30 Thread Milan Cvejic
Hi, I have situation where we have multiple input fields on form and each input field should be separate editor, but there is a problem since we don't know what kind of input field actually needs to be displayed to user. So basically we get list of ids and based on that list of ids we should crea

Re: white screen on iphone (maybe iOS6 issue)

2012-09-28 Thread Milan Cvejic
You can easily create your own Panel by extending ComplexPanel and attaching ResizeHandler something like this: Window.addResizeHandler(new ResizeHandler() { for (Widget child : getChildren()) { if (child instanceof RequiresResize) {((RequiresResize) child).onResize(); } }

Re: Help finding widget that someone posted in this group

2012-09-20 Thread Milan Cvejic
le-web-toolkit/IbZf2DeINk8 > > > On Thursday, September 20, 2012 4:57:15 AM UTC+2, Milan Cvejic wrote: >> >> Hello, >> I am looking for ListBox implementation that someone posted in this group >> few months ago. I bookmarked it, but lost my bookmarks :( >> >> Thank

Help finding widget that someone posted in this group

2012-09-19 Thread Milan Cvejic
Hello, I am looking for ListBox implementation that someone posted in this group few months ago. I bookmarked it, but lost my bookmarks :( Thanks for help! Best, Milan -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discuss

IsEditor and Editor hasErrors always false problem, and getErrors always empty

2012-08-31 Thread Milan Cvejic
Hi Everyone, I am stuck with validating objects. So if anyone can help me or point me to the right direction that would be great. I have following code: *SettingsViewImpl.ui.xml* http://dl.google.com/gwt/DTD/xhtml.ent";> .disclosurePanelStyle { width: 10

Re: CellTable - how to reload data?

2012-08-13 Thread Milan Cvejic
Hi Magnus, you can use setVisibleRangeAndClearData method. More information you can find here: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/cellview/client/AbstractHasData.html#setVisibleRangeAndClearData%28com.google.gwt.view.client.Range,%20boolean%29 Cheers, M

Re: using static hetml text input as datebox in gwt

2012-05-03 Thread Milan Cvejic
Hi, you can try something like Element textElement = DOM.getElementById("date"); TextBox textBox = TextBox.wrap(textElement); later you can use textBox as any other TextBox widget. I haven't tried this but it should work. Cheers, Milan Cvejic On Wednesday, May 2, 2012 3:54:11

Re: Removing ClickHandler from Button?

2011-07-05 Thread Milan Cvejic
Thanks for answer. Cheers On Jul 5, 8:55 am, Mauro Bertapelle wrote: > use the HandlerRegistration returned from Button.addClickHandler > > On 5 Lug, 02:03, Milan Cvejic wrote: > > > Yes, removeClickListener() is depricated, and that is why I am trying > > to find s

Resizing parent element when child change size

2011-07-04 Thread Milan Cvejic
Hi Everyone, can anyone give me a hint how can I implement following situation: I have SimplePanel with child FlowPanel. What I want to do is to resize SimplePanel in order to fit FlowPanel when I add new widgets to the FlowPanel. Is best way to fire some event when i add new widget to FlowPanel

Re: Removing ClickHandler from Button?

2011-07-04 Thread Milan Cvejic
e button. > > just my 2 cents. > > Regards, > > Rob > > On Tue, Jul 5, 2011 at 1:05 AM, Milan Cvejic wrote: > > Hi, > > I am trying to find a way how to remove ClickHandler from Button, > > there is no any method related to this. I see that we can remove > >

Removing ClickHandler from Button?

2011-07-04 Thread Milan Cvejic
Hi, I am trying to find a way how to remove ClickHandler from Button, there is no any method related to this. I see that we can remove ClickListener with removeClickListener(), but there is no way to remove ClickHandler. I am using following code: Button b = new Button("test"); b.addClickHandler(

Re: ScrollBar color

2011-03-24 Thread Milan Cvejic
It is not recomanded to change forms at all, so basicaly safari have some custom css selectors, mozzila ignores them completely, and for IE i am not sure. If you want to create something like that, you should probably create new widget that will have same behaviour like ScrollPanel, ie. catch all

Re: Widget does not change value? GWT 2.1

2011-03-21 Thread Milan Cvejic
Hi Everyone, I just found solution, I had two constructors in class where one of them was @UIConstrustructor, removed that constructor and everything now works. Thanks On Tue, Mar 22, 2011 at 6:54 AM, Y2i wrote: > Is text a field?  May be the local text hides the field, and you are setting > new

Widget does not change value? GWT 2.1

2011-03-21 Thread Milan Cvejic
Hi Everyone, i am stuck with unexpected problem. I have following situation, i am creating HorizontalPanel, and adding Label widget in it. HorizontalPanel panel = new HorizontalPanel(); Label text = new Label("Foo"); panel.add(text); when i want to change value in label ie: text.setText("Foo");

Disclosure Panel ListEditor?

2011-02-25 Thread Milan Cvejic
Hi Everyone, I am wondering how to properly make a list of widgets that have their editor, and allowing that list to be collapsable. Also as i want to create that list to have editors, is it proper way to create class ListDisclosurePanel and implement HasData interface? Thanks. -- You received t

Re: GWT 2.1.1 EditorFramework CellList editor using SimpleBeanEditorDriver and JSON help...

2011-01-31 Thread Milan Cvejic
again, hope that this will help to someone else. On Jan 31, 5:42 pm, Thomas Broyer wrote: > On Monday, January 31, 2011 3:31:35 AM UTC+1, Milan Cvejic wrote: > > >           /* This is a part where i have problems */ > >  @Path("fields") > >  IsEditor>> getField

GWT 2.1.1 EditorFramework CellList editor using SimpleBeanEditorDriver and JSON help...

2011-01-30 Thread Milan Cvejic
, populate Module object, and populate name and description, but can't manage to populate CellList with list of retrieved data. I am using JSON and SimpleBeanEditorDriver as my code on server is PHP. Thanks for time reading this, and thanks any help. -- Milan Cvejic -- You received this

RequestBuilder and Editor Framework integration?

2011-01-15 Thread Milan Cvejic
Hi, I am trying to integrate RequestBuilder with Editor framework, but can't manage to organize code properly, and to extend everything that i need. I was looking into SimpleBeanEditorDriver and RequestFactoryEditorDriver source code, but all I found is interface definitions, and I still can't get

Re: Widget/Panel collapse using arrow button or bar

2011-01-11 Thread Milan Cvejic
What you are looking for is called DisclosurePanel. It is in standard GWT library. Cheers, Milan Cvejic On Jan 11, 3:13 pm, Ice13ill wrote: > Hello, I need a simple widget that collapses/hides a panel (or div) > and looks something like the google reader hiding bar, or gwt tutorial >

Re: GWT 2.1 MVP Multiple activities clarification help

2010-12-24 Thread Milan Cvejic
Great, thanks you for help. I already managed to create working code, but will take a look at your example. Probably I will learn a lot. Sincerely Milan On Dec 23, 5:29 pm, Mauro Bertapelle wrote: > As an exercise I've build a little POC based on the concepts expressed > by Thomas in his article

GWT 2.1 MVP Multiple activities clarification help

2010-12-15 Thread Milan Cvejic
Helo, i tried to understand post at http://tbroyer.posterous.com/gwt-21-activities-nesting-yagni but with no luck :( I tried following code: package com.hellomvp.client; import com.google.gwt.activity.shared.ActivityManager; import com.google.gwt.activity.shared.ActivityMapper; import com.goog