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
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
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,
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
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
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
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
/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
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
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
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
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
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.*
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,
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
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,
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
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:
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
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
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
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
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
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
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
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
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
, 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
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
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
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
/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
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
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) {
//
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
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
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
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
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
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()
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
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
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
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
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
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
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
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
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
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?
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
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?
--~--~-~--~~~---~--~~
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,
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
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
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
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%
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?
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)/*-{
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++) {
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
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
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
:
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
:
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
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
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
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 =
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
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
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
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
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
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
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
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
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?
77 matches
Mail list logo