get scroll event from iframe

2013-08-22 Thread bhomass
there seems to be no way in GWT to get the iframe scrollEvent. I tried (com.google.gwt.dom.client.IFrameElement)frame.addDomHandler(newScrollHandler() { @Override public void onScroll(ScrollEvent event) { // do something } }, ScrollEvent.getType()); but the event does not fire

Re: drag and drop group

2013-06-12 Thread bhomass
based on html5 spec, the way to disallow a drop is to return true inside dragover function dragOver(ev) { return true; } but in GWT, the dragover hander has a void return type. there is no way to return anything. panel1.addBitlessDomHandler(new DragOverHandler() { @Override public void

Re: drag and drop group

2013-05-22 Thread bhomass
conceptually, of course that is what you want to do. I tried disallow the drop from inside the onDragEnter and onDragOver events, but don't see any api to set the drag icon to disabled mode. I played with event.getDataTransfer().setDragImage(...), but it has no effect. On Wednesday, May 22,

Re: drag and drop group

2013-05-21 Thread bhomass
you mean no body has done this before? On Thursday, May 16, 2013 11:23:02 AM UTC-7, bhomass wrote: I have been using GWT native Dnd successfully. Now I have a need to create Dnd group. This means if Widget A and panel B are in the same group, I want to allow user to drag A into B. C and D

drag and drop group

2013-05-16 Thread bhomass
I have been using GWT native Dnd successfully. Now I have a need to create Dnd group. This means if Widget A and panel B are in the same group, I want to allow user to drag A into B. C and D forms another group. So, A can not be dropped onto D, only C can. and likewise, C can not be dropped

any one tried GWT with SPDY?

2013-04-01 Thread bhomass
do you still leave the RPC mechanism exception implement SPDY somehow? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to

datePicker show current date after setValue

2013-01-04 Thread bhomass
I called setValue(dueDate) on the datePicker. it apparently sets the new date value ok, but does not reload the calendar page of the new date. It stays on the page with today's date. which method do I use to get it to update its page to show the current date? -- You received this message

Re: datePicker show current date after setValue

2013-01-04 Thread bhomass
/google/gwt/user/datepicker/client/DatePicker.html#setCurrentMonth(java.util.Date) ? On Friday, January 4, 2013 9:01:12 AM UTC+1, bhomass wrote: I called setValue(dueDate) on the datePicker. it apparently sets the new date value ok, but does not reload the calendar page of the new date

LI element with a clickhandler

2012-12-26 Thread bhomass
I read up on this post https://groups.google.com/forum/?fromgroups=#!topic/Google-Web-Toolkit/Zg5XQc9aCaI for the whole day I am stuck on this issue, this article seems right on the topic, but the code was abbreviated to the point I can not get it working. class MyList extends Widget implements

Re: can not get multiple matches using regex

2012-12-15 Thread bhomass
in that case, what is the point of matchResult.getGroupCount()? it is always 1. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

tie css to a global class

2012-12-15 Thread bhomass
I know how to declare .css and .html for a local template. but sometimes, you need to cascade a css statement to from one higher up. For example, if you have a class .small-widget in one template, which must behave a certain way if you declare .scroll-mode in the body element. .scroll-mode

can not get multiple matches using regex

2012-12-13 Thread bhomass
I am using GWT Regex RegExp regExp = RegExp.compile(\\b + searchWord + \\b, gi); MatchResult matcher = regExp.exec(input); this only returns the first match. why is that? I already set the global option. any one knows how to get multiple match return? -- You received this message

Re: preview in case of iframe

2012-07-02 Thread bhomass
thanks, I figured as much. The two documents are independent DOM structures and while the preview is global, it is only global within one DOM structure. I got what I want w/o preview, using *addDomHandler. **as long as you have the handle to components in both frames, this works quite fine.*

preview in case of iframe

2012-07-01 Thread bhomass
I have been struggling with this for the whole day and can't crack the nut. I know how things work when you call Event.addNativePreviewHandler(handler) to trigger event preview. The preview is meant to be a global concept so that anything events happening else where would get previewed. However,

slow passing json back

2012-02-24 Thread bhomass
I have been carefully studying my code to see what is taking so long to load a page. It turns out it took 4.5 secs to pass back 19k characters (in javascript) using the gwt rpc. Is this considered an enormous amount of javascript code? anything I can do to speed up the transmission? -- You

classloader can not load class from annotation

2011-11-09 Thread bhomass
I am integrating a mvp4g into java Play. I am running into an unexpected error, related to Thread based context classloader. When the code gets to TypeOracleMediator, line 750 in the resolveAnnotationValue method, try { return Class.forName(valueType.getClassName(), false,

TypeOracleMediator help

2011-11-04 Thread bhomass
I am using java Play with mvp4g and found out they don't work together. neither group is able to provide help, because each one is unfamiliar with the other. I think the GWT group is best equipped to provide some insight into this, because it has to do with TypeOracleMediator's use of Thread

play fails to compile after injecting mvp4g

2011-11-03 Thread bhomass
I have used mvp4g successfully before. Now I am trying to get it to work inside Play. There is no compilation error inside eclipse, but fails either when I run it or compiling it. the error dump is long, here is a partial listing java.lang.ClassNotFoundException:

spurious blur event after update to 2.3

2011-07-25 Thread bhomass
I used the CellEditor.startEdit() feature on a tab header. after upgrade to GWT 2.3, I am getting unexplained blur events which continuous stops editing. for example, right after I start edit mode (by double clicking the header), there is a blur event. I used the code to ignore that. then after

mvp complex model

2011-04-29 Thread bhomass
usually, the model in mvp is the DTO, in case the model is complex, for example, when the validation of user input is elaborate, do you put the validation methods in the DTO, or the presenter, or another group of dedicated model behavior classes? -- You received this message because you are

gwt compilation to javascript

2011-04-25 Thread bhomass
In pure javascript, an instance of a object does not repeat the function code, in the same way java is. when gwt compiles java into javascript, is the same efficiency built into the javascript? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

$doc.body.createTextRange

2011-02-23 Thread bhomass
I know there is a javascript function for document.body.createTextRange( ) when I try $doc.body.createTextRange() in a native method in GWT, it says body.createTextRange is not a function why is that? -- You received this message because you are subscribed to the Google Groups Google Web

deserialization error when DTO is nested

2010-08-08 Thread bhomass
I have a composite pattern DTO, where an DTO instance may contain a child list of the same type. first this app runs fine when in hosted mode, but get deserialization error when in deployed mode using tomcat. I can leave the nested structure in the DTO class as long as I don't actually populate

Re: remove old javascript file

2010-07-21 Thread bhomass
are no more existing. Stefan Bachert http::/gwtworld.de due to recent cases, I am sorry, I won't do free personal support. inquiries for professional GWT support are welcome. On 20 Jul., 23:13, bhomass bhom...@gmail.com wrote: I found a number of conflicting comments concerning this. And, even

Re: remove old javascript file

2010-07-20 Thread bhomass
I found a number of conflicting comments concerning this. And, even if they are in sync, I have questions on how to set cache control. 1. you stated - *Never Cache* - The bootstrap module- name.nocache.js, and your host html/jsp page falls under this category. The browser should never cache. but

Re: remove old javascript file

2010-07-07 Thread bhomass
never be any stale js problem. yet, I see in repeated cases, where someone's browser displays old app design, and clearing browser cache brings up the latest. How can that be? On Jun 26, 6:44 pm, André Severo Meira andrex1...@gmail.com wrote: Nice! 2010/6/26 bhomass bhom...@gmail.com do you mean

call average inside eval()

2010-06-26 Thread bhomass
I am using a native method to call eval() on a valid javascript statement. private String[] evalscript(String javascript, String format){ return evalJavascript(javascript, format).toString().split(,); } private native Object evalJavascript(String

Re: remove old javascript file

2010-06-26 Thread bhomass
, there is never a need to delete old files. --Sri On 18 June 2010 06:10, bhomass bhom...@gmail.com wrote: is there any way to programmatically get user browser to delete all its cached javascript files in order to push down new ones? -- You received this message because you are subscribed

remove old javascript file

2010-06-17 Thread bhomass
is there any way to programmatically get user browser to delete all its cached javascript files in order to push down new ones? -- 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: invalid httpsession from getThreadLocalRequest

2010-02-27 Thread bhomass
from a browser. it worked for me all along too. but all of a sudden this problems started. and when I resubmit by pressing the bottom again, the same program works. I am wondering if there is some tricky timing problem that someone has seen before. -- You received this message because you are

invalid httpsession from getThreadLocalRequest

2010-02-25 Thread bhomass
when I use getThreadLocalRequest().getSession() in a servlet implementation to handle rpc, I get a IllegalStateException when I call httpsession.setAttribute(...) anyone knows why? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post

Re: invalid httpsession from getThreadLocalRequest

2010-02-25 Thread bhomass
/appengine/docs/java/config/appconfig.html#Enab... 2010/2/26 bhomass bhom...@gmail.com when I use getThreadLocalRequest().getSession() in a servlet implementation to handle rpc, I get a IllegalStateException when I call httpsession.setAttribute(...) anyone knows why? -- You received

custom runtime exception got translated to StatusCodeException

2010-02-20 Thread bhomass
I got my server side code to throw custom exceptions for a long time and have a lot of working code to copy from. this time, I throw a ExpiredSessionException, it got translated to StatusCodeException. and on the client side, caught.getMessage() is this huge html fragment, starting with Http

service implementation for GWT best practice

2010-02-08 Thread bhomass
On Ray Ryan's presentation, there is no sample code for implementation of the ContactsService. The code structure would look something like public class ContactsServiceImpl implements RTSService { @Override public T extends Response T execute(ActionT action) { //

Re: Convenience callback method

2009-12-30 Thread bhomass
I am trying out the rpc structure given in the seminar. I get an error 20:42:08.171 [ERROR] [rts] com.jcalc.webclient.client.spreadsheet.rpc.action.GetRecords is not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or 'java.io.Serializable' nor does it have a custom field serializer

Re: Convenience callback method

2009-12-26 Thread bhomass
I think I found what I was looking for abstract class GotDetails implements AsyncCallbackGetDetailsResponse { public void onFailure(Throwable oops) { /* default appwide failure handling */ } public void onSuccess(GetDetailsResponse result) { got(result.getDetails()); } public abstract void

Re: Convenience callback method

2009-12-25 Thread bhomass
Sri thanks for the pointer. the article lays out the project structure with all the classes, but I don't see where you can download the code. Is that intended? or do we only have the fragments on the page? in which case, why the project structure? Bruce -- You received this message because you

Re: Convenience callback method

2009-12-23 Thread bhomass
could some one point out an avenue for finding answers to this question. I am sure if google is provide these design guides, they should have communication channels for Q/A. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this

Convenience callback method

2009-12-19 Thread bhomass
I went thru Ray Ryan's talk on Best Practice for Arch. GWT App. I am not able to figure how and who eventually called the convenience method new GotDetails(){ public void got(ArrayListConteactDetails details){ render... } } can someone who followed the talk shed some lights? -- You

overcome native browser behavior to ensure visible when focused

2009-11-27 Thread bhomass
I have a conflicting behavior in an editable grid. when I have focus on a editable cell, I may need to scroll away to another cell and come back, but I don't want the editing cell to loose focus. So I captured the onBlur event and force the cell to remain in focus. But when I call the focus()

Re: event for detecting DOM.createElement() is completed

2009-11-24 Thread bhomass
createElement is synchronous/blocking; it doesn't return before completion, so there's no need for an event. You might need to attach the widget (or at least its element) to the document though to have its size computed so you can later adjust it. I attached the new Element to its container

multiple criteria for selector

2009-11-24 Thread bhomass
I am using the gwt css selector fly((com.google.gwt.user.client.Element) parentElement).select (attachedSelector); where attachedSelector right now is attached, attachedMaster, attachedTemplate what I want to get is the elements with any of the above classnames. But none was returned. I also

event for detecting DOM.createElement() is completed

2009-11-23 Thread bhomass
I need to know when a widget is finished rendering in order to adjust its size. I see a javascript method element.addEventListener(eventType, handler, capture); can someone tell me what eventType I can use to detect the completion of DOM.createElement()? -- You received this message because you

instanceof Element check fails in FF

2009-11-16 Thread bhomass
I have this statement NodeListNode childNodes = tdElement.getChildNodes(); for (int i=0; ichildNodes.getLength(); i++){ Node childNode = childNodes.getItem(i); if (childNode instanceof Element !#text.equals

Re: float exception message to client fix does not work

2009-10-30 Thread bhomass
I apologize. It works. the mistake was else where. --~--~-~--~~~---~--~~ 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

float exception message to client fix does not work

2009-10-26 Thread bhomass
I tried technique stated in http://astithas.blogspot.com/2007/08/case-of-disappeared-exception-message.html but it does not work. I still get the same old see server log for details. any one with experience on this? --~--~-~--~~~---~--~~ You received this message

change css rules dynamically

2009-10-18 Thread bhomass
I found there is a way to change css rules using javascript. http://twelvestone.com/forum_thread/view/31411. is there a way to do this using gwt? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit

TextBoxImpl, find cursor position when clicking inside a selection range

2009-10-04 Thread bhomass
when using a TextBoxImpl, you can get the cursor position and selection length correctly, except when you highlight some text, then click inside the highlighted area. In which case you consistently get cursor position of 0. this means, there is no way to programmatically determine where the

Re: float error message to client via InvocationException

2009-08-10 Thread bhomass
I am really surprised there is no taker for this posting. I thought this would be a real common issue. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

float error message to client via InvocationException

2009-08-08 Thread bhomass
I tried to display the server exception message on the client using throw new InvocationException(ex.getMessage()); but, on the client, it always come out as check the server log! How do I get the client side to display the real server exception message?

Something other than a Java object was returned from JSNI method when getting colspan

2009-07-29 Thread bhomass
I have some very simple code String colspan = tdElement.getAttribute(colspan); it continually crash with Something other than a Java object was returned from JSNI method. also crashes with rowspan, but ok with some other attribute like id when I get its parent tr, then getting colspan and

Re: Something other than a Java object was returned from JSNI method when getting colspan

2009-07-29 Thread bhomass
I already try the fix public final native String getAttribute(Element element, String name) /*-{ return element.getAttribute(name, 2)|| ; }-*/; but the same exception. did I do something wrong in doing the fix? --~--~-~--~~~---~--~~

write html into a text field

2009-07-23 Thread bhomass
I have the need to store content which is actual valid html text. and I am inputting such text using text fields written in GWT. It seems GWT is not able to distinguish what is literal text and what is in the original page content. after I enter a html fragment like table into the text field,

can sink key events on canvas

2009-07-13 Thread bhomass
I am able to get context menu and mouse events but not key events from gwt canvas. anyone know why? sinkEvents(Event.ONCONTEXTMENU | Event.MOUSEEVENTS | Event.KEYEVENTS); public void onBrowserEvent(Event event) { System.out.println(event +event.getType()); if

Re: dom manipulation works in IE but not in FF

2009-07-07 Thread bhomass
having some text nodes aren't so bad. the thing is after reading two text nodes, it does not see the table node at all. why should that be? for supplementary information, this is GWT 1.5.3 and I am talking about deployed mode. --~--~-~--~~~---~--~~ You received

om.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser.

2009-07-07 Thread bhomass
suddenly I get this error on deployment. everything works fine running out of eclipse. it also says (Could not locate requested method 'registerProject(java.lang.String, java.lang.String)' in interface 'com.jcalc.webclient.client.RegisterProjectService' ). I checked out that interface, there is

Re: dom manipulation works in IE but not in FF

2009-07-03 Thread bhomass
it fails for both of the form nodes in this doc. will you mind try it out in FF like you did before? you get two #text nodes when you do formelement.getChildNodes(), where the right answer is one table element. TABLE border=0 cellpadding=0 cellspacing=0 height=100% width=100%

Re: dom manipulation works in IE but not in FF

2009-07-02 Thread bhomass
this is one serious bug. no one knows anything about it? I checked it out using gwt-log. in FF, even though currentForm.getInnerHTML() returns the right element, currentForm.getChildNodes() returns two non-existent #text. is this a known problem?

use of this inside native event handler

2009-06-25 Thread bhomass
I know that when calling a java function inside a native function, you should add this. in the front. but if this is inside event handler, this. becomes the element who received the event, and there is this ambiguity. e.g. private native void addClickListener(Element imgElement)/*-{

dom manipulation works in IE but not in FF

2009-06-24 Thread bhomass
I am doing an operation in which I remove a form but keep all its children. Element parent = (Element) currentForm.getParentElement(); NodeListNode formChildren = currentForm.getChildNodes(); // for (int i = 0; i formChildren.getLength(); i++) {

element.getStyle().setProperty(borderStyle, none); wipes out all style attributes

2009-06-23 Thread bhomass
In my app, I need to dynamically set borders to some elements then remove them. to clear the border, I tried element.getStyle().setProperty(borderStyle, none); element.getStyle().setProperty(borderWidth, 0px); DOM.setStyleAttribute(element, borderWidth, 0px); it does clear the border, but also

Re: element.getStyle().setProperty(borderStyle, none); wipes out all style attributes

2009-06-23 Thread bhomass
not a problem. my dumb mistake! --~--~-~--~~~---~--~~ 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

launch another browser instance

2009-06-22 Thread bhomass
is there a way to click a button and launch another browser instance? I am not talking about the hosted mode browser. let's say the app is done and compiled. this can be done in native javascript. but is there a gwt api for this? --~--~-~--~~~---~--~~ You received

Re: launch another browser instance

2009-06-22 Thread bhomass
: On Jun 22, 8:29 pm, bhomass bhom...@gmail.com wrote: is there a way to click a button and launch another browser instance? I am not talking about the hosted mode browser. let's say the app is done and compiled. this can be done in native javascript. but is there a gwt api for this? Do

Re: launch another browser instance

2009-06-22 Thread bhomass
: On Jun 22, 8:29 pm, bhomass bhom...@gmail.com wrote: is there a way to click a button and launch another browser instance? I am not talking about the hosted mode browser. let's say the app is done and compiled. this can be done in native javascript. but is there a gwt api for this? Do

Re: $doc.selection is undefined in GWT

2009-06-10 Thread bhomass
found the answer. FF uses $wnd.getSelection().getRangeAt(0) thanks for all the help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

detect browser window closing

2009-06-09 Thread bhomass
which event should I capture to detect that the user is closing the browser window? this is issue warning if there are any dirty documents in one of the editors. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google

Re: $doc.selection is undefined in GWT

2009-06-07 Thread bhomass
Thanks for the clarification. I am sure I am close now. but still get an error. my code is private native Element getSelectedTextParent() /*-{ var range = null; if($wnd.document.selection){ range =

Re: war file for GWT 1.5

2009-06-07 Thread bhomass
thanks. that clarifies quite a lot, but not everything. first I assume it would be ok for me to add any servlet context to the path and create the WEB-INF directory accordingly. for the static files, in hosted mode the url is http://localhost:/com.jcalc.webclient.Explorer/index.html do I

Re: war file for GWT 1.5

2009-06-07 Thread bhomass
thanks. that clarifies quite a lot, but not everything. first I assume it would be ok for me to add any servlet context to the path and create the WEB-INF directory accordingly. for the static files, in hosted mode the url is http://localhost:/com.jcalc.webclient.Explorer/index.html do I

war file for GWT 1.5

2009-06-05 Thread bhomass
I have worked with servlet apps on Tomcat for a long time, and I thought I know all about war files. But I am confused about how GWT 1.5 generates a www directory and a tomcat directory. so if I zip up all my java classes and put them under the WEB-INF/classes directory under tomcat's

Re: war file for GWT 1.5

2009-06-05 Thread bhomass
I am experimenting by copying all the files under Tomcat_home/ webapps/ROOT/. the web.xml under ROOT/WEB-INF is ?xml version=1.0 encoding=UTF-8? web-app filter filter-nameHibernateSessionRequestFilter/filter-name

Re: war file for GWT 1.5

2009-06-05 Thread bhomass
I am experimenting by copying all the files under Tomcat_home/ webapps/ROOT/. the web.xml under ROOT/WEB-INF is ?xml version=1.0 encoding=UTF-8? web-app filter filter-nameHibernateSessionRequestFilter/filter-name

Re: war file for GWT 1.5

2009-06-05 Thread bhomass
btw, is it ok to use the default port 8080? --~--~-~--~~~---~--~~ 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

Re: $doc.selection is undefined in GWT

2009-06-05 Thread bhomass
I looked up some cross browser code. but I am getting different results if (document.getSelection) { var range = document.getSelection().createRange();; } else if (document.selection document.selection.createRange) { var range = document.selection.createRange(); } else { var

$doc.selection is undefined in GWT

2009-06-03 Thread bhomass
I have a native method which uses $doc.selection.createRange() I am not sure why the $ before doc. I simply copied it from some sample code. this method works find when in hosted mode. but after compile and called directly from a browser I get the $doc.selection is undefined error. any one

$doc.selection is undefined

2009-06-01 Thread bhomass
I have a native method which uses $doc.selection.createRange() I am not sure why the $ before doc. I simply copied it from some sample code. this method works find when in hosted mode. but after compile and called directly from a browser I get the $doc.selection is undefined error. any ideas?