array return type different in JSNI function and plain javascript?

2013-12-15 Thread asif . tmcp
I have a javascript function ( port of Stefan Goessner's xpath for json @ http://goessner.net/articles/JsonPath/ ) - which I am trying to port to JSNI for use in GWT app. I have Javascript Overlay class which wraps a json as a javascript object a native function wrapping the javascript -

XMLDocument implementation

2013-10-03 Thread asif . tmcp
Hi, I needed to extend the XML Document Object Model so as to have an in-memory XML document object model representation ( in the client side). My requirement is to have the normal Document functions like - getElementById, getElementByTagName etc as well as to implement application specific

Re: XMLDocument implementation

2013-10-03 Thread asif . tmcp
Hi Jens, Thanks for that tip. Works like a charm. Really appreciate your helping hand. Regards On Thursday, October 3, 2013 5:05:11 PM UTC-4, Jens wrote: Use composition + forwarding instead of inheritance, e.g. class MyXMLDocument implements Document { private Document doc =

Re: Dialog Box Size Limitation???

2013-09-22 Thread asif . tmcp
Thanks Thomas.. I guess I just had a duh moment. I have seen it so many times while tinkering but never struck me that it would be the problem. On Sunday, September 22, 2013 5:32:28 AM UTC-4, Thomas Broyer wrote: Check your CSS. The project created by webAppCreator or Eclipse has a

Dialog Box Size Limitation???

2013-09-20 Thread asif . tmcp
https://lh3.googleusercontent.com/-2M86SEf4IyU/Uj0PAoXLWhI/AR4/8OxaJ2Snp6k/s1600/DialogSize.jpg Hi , Is there a specific limitation to the size of a dialog box in GWT?? If i set the size of the widget contained inside the dialogbox (in my case it is a SimplePanel) to 500px x 500px the

Re: Directed Acyclic Graph implementation

2013-09-14 Thread asif . tmcp
Hi Jens, Seems to be more problem than anticipated. Some of the graphIterators e.g BreadthFirstIterator, DepthFirstIterator, use java.util.ArrayDeque java.util.Deque. Without the iterators, I will have to roll-out my own traversal mechanism - which seem counter-intuitive of using the

Re: Directed Acyclic Graph implementation

2013-09-14 Thread asif . tmcp
Sorry - I guess I sounded pessimistic on my previous post. After closer look - it seems only those two iterators e.g BreadthFirstIterator, DepthFirstIterator - use Deque. and ArrayDeque. The other iterators work fine. So I would really appreciate any help with porting them to GWT ?? Would

Directed Acyclic Graph implementation

2013-09-12 Thread asif . tmcp
Hi, I am looking for an implementation of a Directed Graph for my GWT project - came across jgrapht - but porting it to GWT with all CloneNotSupportedException / Object.clone() / newInstance() issues proved to be troublesome. Then I came across graphz which seems to be something similar and

Re: Directed Acyclic Graph implementation

2013-09-12 Thread asif . tmcp
Hi Jens, Thanks for the prompt response. I was playing with jgrapht for a couple of hours - In the file org.jgrapht.graph.AbstractBaseGraph.java (which extends AbstractGraph) AbstractBaseGraphV, E newGraph = TypeUtil.uncheckedCast(super.clone(), typeDecl); In the

Re: Directed Acyclic Graph implementation

2013-09-12 Thread asif . tmcp
You are right though - github searches are not returning those instance - but the actual file has those code. Am I looking at a wrong version? On Thursday, September 12, 2013 4:06:03 PM UTC-4, Jens wrote: I am looking for an implementation of a Directed Graph for my GWT project - came

Re: Directed Acyclic Graph implementation

2013-09-12 Thread asif . tmcp
Hi Jens, Thanks a lot. That worked - infact, I had already extracted the classes I needed into my own project, instead of building with the external jgrapht lib. So i didn't really have to go the super-source version. However, your response prompted me to look up what exactly is super-source

[gwt-contrib] Re: Would GWT and/or incubator be interested in Run Time UiBinding

2013-09-07 Thread asif . tmcp
Hi Ted, This is exactly what i was looking for using in one of my projects. I tried the source at http://code.google.com/p/gwt-binding-fly/ - but this doesn't work at smoothly as http://gwt-binding-fly.appspot.com/ is the code base different? Regards On Thursday, November 18, 2010 12:33:32

Re: GWT and Client-side rules engine

2013-08-25 Thread asif . tmcp
Thanks for your mail. I am very (very) intrigued by this project - I am currently reading through the materials on the dark-matter-project wiki to see if i can use it. Nevertheless, it is very exciting to say the least - evidently. you have done a lot of work on this. Just so we are on the

Difference between script tag in code and ScriptInjector

2013-08-12 Thread asif . tmcp
Hi , I am trying to inject 3rd Party javascript libraries into my gwt project. If I import the scripts directly via my html with script src=..path to src type=text/javascript/ it works perfectly. However, when I load them at runtime with ScriptInjector, the scripts are loaded but a call to

Dom change propagation time

2013-08-12 Thread asif . tmcp
Hi , I am changing the id of an element in the dom with tableeditor.getElement().setId(tableeditor); where @UiField SimplePanel tableeditor; After this I call a javascript which manipulates the dom based on the id=tableeditor. However, if I put a timeout of 1 sec after changing the

Re: Difference between script tag in code and ScriptInjector

2013-08-12 Thread asif . tmcp
Thanks Jens, That works perfectly - along with some help from thishttp://stackoverflow.com/questions/8744663/how-to-insert-twitter-widget-into-a-gwt-view/8764304#8764304 On Monday, August 12, 2013 10:49:16 AM UTC-4, Jens wrote: If you need to inject it into the top window document you can

GWT and Client-side rules engine

2013-08-09 Thread asif . tmcp
Hi, The architecture and requirement is as follows 1. The application has an extensive domain model and significant amount of business logic 2. At runtime, the user populates data in the domain model. 3. The rules engine evaluates the data and takes various actions including a.

Re: GWT and Client-side rules engine

2013-08-09 Thread asif . tmcp
I kind of wanted to have the rules stored as a business logic - albeit running on the client side. - So the rules themselves are editable by a super-group of users via an editor or atleast in form of xml. This requirement is something similar to drools. The normal users enter data in some form

Re: How to create SideBar in GWT

2013-08-09 Thread asif . tmcp
1. JSNI - http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html 2. GWTQuery - http://code.google.com/p/gwtquery/ 3. Direct DOM manipulation - http://www.gwtproject.org/doc/latest/DevGuideUiDom.html ( this has interspread jsni calls) On Friday, August 9, 2013 2:54:57 AM UTC-4, df

Re: How to create SideBar in GWT

2013-08-08 Thread asif . tmcp
Hi, Did you mean something like this effect ? http://tympanus.net/codrops/2009/11/30/beautiful-slide-out-navigation-a-css-and-jquery-tutorial/ or this? http://www.webresourcesdepot.com/sliding-top-menu-with-jquery/ Either one can be achieved by 1. Integrating the native jquery plugins via jsni

Re: CSSResource and href

2013-08-08 Thread asif . tmcp
Thanks Jens, for the detailed explanation. I think i understand it now more clearly than before. On Tuesday, August 6, 2013 12:49:18 PM UTC-4, Jens wrote: The first solution actually didn't work. Each hyperlink is wrapped in a div /div by gwt. The setstyle or add style would set/add to the

CSSResource and href

2013-08-06 Thread asif . tmcp
Hi All, I am unable to style/override the style of a href tag. In my ***.gwt.xml I am using the clean.theme. inherits name='com.google.gwt.user.theme.clean.Clean'/ In my resource bundle I am using the following style: .mainNavLinks { text-align: left; padding: 0px 8px; display:

Re: CSSResource and href

2013-08-06 Thread asif . tmcp
Thanks Jens. The second solution works perfectly. The first solution actually didn't work. Each hyperlink is wrapped in a div /div by gwt. The setstyle or add style would set/add to the style of the div, but would not change the inner a href / style. So, the global clean.css from clean.theme

Re: GWT : Activities and Places AND History

2013-08-03 Thread asif . tmcp
Awesome !!!. Thanks Thomas With your pointers, I have managed to work out the example - it works flawlessly now. thanks once again. :) I read your blog and the related Jira articles as well as the discussion regarding the same in the GWT Contributors group. I can see a lot of thought going

Re: GWT : Activities and Places AND History

2013-08-02 Thread asif . tmcp
Hi Thomas , Thanks for your response. I actually have onclickhandlers configured in the onmoduleload and calling the change of place in the clickhandlers. So it is in the entry point class but not really called from onmoduleload. Anyways, I would configure an empty prototype with what i want

GWT : Activities and Places AND History

2013-08-01 Thread asif . tmcp
Hi, I have a small ( :) ) confusion about when does history change fire in an Activities and Places scenario. I have an application with left panel and right panel (called RootPlace) with ActivityMapper for each panel as well as for the main view. The following call from two different place

Re: GWT and Web Security

2013-07-26 Thread asif . tmcp
Thanks Juan for your response and the reference. On Thursday, July 25, 2013 7:09:37 PM UTC-4, Juan Pablo Gardella wrote: Hello, I think currently there are not frameworks that do what you want. At UI you need to write code to enable/disable components. Check this old thread:

Re: GWT and Web Security

2013-07-26 Thread asif . tmcp
Thanks Thomas, that's a lot of useful information - although I have to admit I have to work my way through it, since i am not very familiar with the AOP/ServiceLayerDecorator concept through Guice. I am using the straightforward Service/AsyncService on client side and ServiceImpl on server

GWT and Web Security

2013-07-25 Thread asif . tmcp
Hi , I am navigating my way through GWT - and hit a major conceptual roadblock with security issues. If i want to implement security ( authentication and authorization) in my GWT webapp( doesn't include app-engine) what is conceptually the best *Framework *( for example shiro , acegi etc)