Re: RootPanel.get().clear();

2011-11-03 Thread lineman78
RootPanel.clear is inherited from Panel. The source has it iterating through the logically attached children and removing them so it should just remove anything you added from the current GWT module. If you wanted to clear everything you would call RootPanel.get().getElement().setInnerHtml("");

Re: GWT with JPA located in a separate project

2011-01-05 Thread lineman78
Even if you did include source it probably would fail to compile due to the JPA annotations. This is why the EntityProxy API was created in 2.1. I suggest that you use EntityProxy and RequestFactory in order to get your stuff to work. http://code.google.com/webtoolkit/doc/latest/DevGuideReques

Re: Entire Site in GWT?

2010-11-11 Thread lineman78
If your site is big enough to require a dedicated server I recommend Glassfish, but some projects just aren't big enough and shared Java hosting is very difficult to come by. Last time I looked for shared Java hosting some were starting to use Resin due to it's capability of handling both PHP and

Re: how to get regex(Pattern and Matcher) working in client side

2010-11-11 Thread lineman78
Thats nice that they finally added full regex capability. If you need to access a capture group in older versions of GWT use this: public static native String getRegexGroup(String toSearch, String regex, int groupNum) /*-{ return toSearch.match(regex)[groupNum]; }-*/; Or if you need to a

Re: A gwt-CSS problem for Advanced problem solvers

2010-10-22 Thread lineman78
The space is correct since it is a decendant selector. In order for the no space to work the div you are trying to select would have to be a member of both classes. There are 2 options for a solution... 1) splitter is the id of the split div: .gwt-HorizontalSplitPanel #splitter {} 2) hsplitter i

Applying different styles to different cell tables

2010-10-12 Thread lineman78
I am having a problem being able to change the style for 2 different instances of cell table. I have one instance that I want to make selectable so the css has cursor:pointer; and one that isn't so it has cursor:default;. They seem to be generated and injected with the same class name, so any ide

Re: Disable Widgets till File Upload is complete

2010-10-05 Thread lineman78
disable them in a submit handler and you can re-enable them in a submit complete handler. On Oct 5, 10:57 pm, Nitin wrote: > HI! > I am developing a web application in which the user selects several > files and submits for file upload in a form. > My problem is, I want to disable all the widgets

Re: JSON requests with authorization and cross-site

2010-10-05 Thread lineman78
If it is basic auth then you should just be able to use JSONP, since it is cross site, if form auth you will need to have them auth before making the request. Remember you can't make cross site requests directly, but JSONP allows you to work around that. Since it is an authenticated request a ser

Re: Minimalistic JPA in GWT 2.1.0.M3

2010-09-30 Thread lineman78
ng anything else with > the JPA. > > On Sep 30, 6:15 pm, lineman78 wrote: > > > > > persistence.xml should be located in /war/META-INF > > > On Sep 30, 4:28 pm, Y2i wrote: > > > > Client's requests go the server through RequestFactoryServlet. &g

Re: Minimalistic JPA in GWT 2.1.0.M3

2010-09-30 Thread lineman78
persistence.xml should be located in /war/META-INF On Sep 30, 4:28 pm, Y2i wrote: > Client's requests go the server through RequestFactoryServlet. > My service objects (those annotated with > @Service(SomeDomainClass.class) on the client side are being called > fine. > When a service method expli

Re: Project works in development mode but compiled version fails!!!

2010-09-30 Thread lineman78
Your regex is invalid and the unexpected quantifier is being ignored in java, but javascript is throwing an exception. The '+' after the {2,} is a quantifier after a quantifier, it needs some sort of character class before it. Depending on the goal of your match here are some valid regex strings:

Re: Loading GWT module after page is loaded

2010-09-30 Thread lineman78
That is correct, you will end up with a blank page if you try to use the default iFrame linker and load modules dynamically. This used to not be the case, but is now. You could probably go back to GWT 1.5 or 1.6 and grab it's iFrame linker and use it. On Sep 30, 3:28 am, Denis Vilyuzhanin wrote

Re: how to change one widget's style dynamically

2010-09-28 Thread lineman78
Forgive me if something is slightly wrong as I'm not going to validate this through Eclipse, but I think this is what you want: Button button = new Button("Green Button"); button.getElement().getStyle().setColor("green"); On Sep 28, 7:31 am, ahdipost wrote: > Hi everyone, > > I wonder, how to ch

Re: How to add click handler to a panel?

2010-09-28 Thread lineman78
If you are willing to wait till 2.1 or upgrade to the milestones addHandler has been changed to public instead of protected. On Sep 28, 4:40 pm, drthink wrote: > I want to add a click handler to a panel so I extended the > HorizontalPanel as shown below.  It feels dirty because in the > construct

Re: embed entire GWT application into single html file

2010-09-27 Thread lineman78
There was a single file linker in the 1.5 days, dont know if its still around, but it would blow up if it determined more than one permutation is needed. On Sep 26, 1:21 pm, Wolfgang wrote: > I've tried doing this on my own with not much success, as the > javascript generated by google web tookit

Re: Crop a photo stored locally

2010-09-23 Thread lineman78
If you want to do everything client side you will have to use a Java applet. To do it with GWT you will have to upload the file to the server. Doing so depends on your server-side approach. Whichever approach you are using you should research multi-part form data for uploading a file. You will

Re: Chat with GWT

2010-09-23 Thread lineman78
May I suggest ICEpush for chat app, here is a GWT chat demo: http://demos.icepush.org/icechat-gwt/ On Sep 23, 7:26 am, danigb wrote: > There's a library (emite.googlecode.com) that allows to send and > receive messages from a xmpp server using a proxy using the BOSH > technique (http://xmpp.org/

Re: Modify files in .jar libraries

2010-09-23 Thread lineman78
You can just treat a jar file as a zip file, nothing special except structure and extension. On Sep 23, 2:30 am, Daniela Iervolino wrote: > Hi everyone! > Does anyone know how modifing files from .jar libraries? > I've tried to modify some files from a library (for example, gwt- > user.jar, from

Re: Correctly implementing history

2010-09-23 Thread lineman78
mation, but neither one has the complete > implementation. :-( > > On Sep 22, 6:35 pm, lineman78 wrote: > > > I am assuming that you just have history listeners everywhere that > > matters.  There are multiple ways you can fix this, you can look at > > the value of the

Re: Interested in GWT client-side JSON serialization and deserialization?

2010-09-23 Thread lineman78
This is way too complex, just stick to overlay objects and the json2.js library(assuming you are targeting wrote: > If your interested in GWT client-side JSON serialization and > deserialization check out the below link > > http://flax.ie/flax-engine-gwt-client-side-json-serialization-and-des...

Re: Singleton Class in Development Mode

2010-09-22 Thread lineman78
Which is the way it should correctly act because that is how Javascript acts. If you want a singleton to span multiple tabs and sessions go back to an applet. If you want similar behavior in javascript you need to use cookies, but be aware of the associated security issues. On Sep 22, 10:34 am,

Re: Correctly implementing history

2010-09-22 Thread lineman78
I am assuming that you just have history listeners everywhere that matters. There are multiple ways you can fix this, you can look at the value of the history token in the constructors, or you might simply be able to call History.fireCurrentHistoryState() right after you add your listener. On Sep

Re: ScrolPanel Question

2010-09-21 Thread lineman78
http://rcswebsolutions.wordpress.com/2007/01/02/scrolling-html-table-with-fixed-header/ On Sep 21, 12:07 pm, skippy wrote: > Well, thanks for the respond.  However, I was not all that clear. > I have very picky users and here is the real scoop: > > I am using UIBinder and here is my ui.xml: >  

Re: How do i get the row index and column index in each cell on mouse over event

2010-09-21 Thread lineman78
Cell cell = view.getCellForEvent(event); int row = cell.getRowIndex(); int col = cell.getCellIndex(); OR private int getRowForEvent(MouseEvent event) { Element td = getEventTargetCell(Event.as(event.getNativeEvent())); if (td == null) { return -1; }

Re: Evaluating string: "(A+sin(B))" where A=1, B=2

2010-09-20 Thread lineman78
There are plenty of Java implementations that do the same thing if you would prefer sticking with Java. Popular Java projects include "Jep"(http://sourceforge.net/projects/jep/) and "JFormula"(http:// www.japisoft.com/formula/). On Sep 20, 4:04 pm, Janko wrote: > The best way I found is using so

Re: clearing or preventing double-click selection

2010-09-14 Thread lineman78
This works for preventing all selection on a widget. addDomHandler(new MouseDownHandler() { @Override public void onMouseDown(MouseDownEvent event) { event.preventDefault(); } }, MouseDownEvent.getType()); On

Re: To cancel form submit event of FormPanel on press of enter key

2010-09-13 Thread lineman78
add a submit handler and you can call cancel on the event. On Sep 13, 9:58 am, nirav patani wrote: > Is there any way to cancel a GWT submit event on press of enter key. > > I want to perform som validations on the gwt page and then only invoke > form.submit() method. but form gets submitted by p

Re: How could we know if GWT project will continue to be maintained by Google?

2010-09-13 Thread lineman78
I am pretty sure gmail is.. On Sep 13, 7:48 am, "marius.andreiana" wrote: > Hello, > > While comparing GWT with other solutions for a long-term project, we > wondered how could we know if GWT project will continue to be > maintained by Google, since it's available for free and Google makes > no (

Re: clearing or preventing double-click selection

2010-09-13 Thread lineman78
In your onClick method you can call event.preventDefault() to keep the browser from handling the event. On Sep 12, 1:29 pm, decitrig wrote: > I'm working on an application that responds to double clicks on text > labels, and I'd like to either disable double-click text selection or > clear it fro

Re: gwt-servlet.jar keeps reappearing on client side application

2010-09-11 Thread lineman78
RPC can be used even without GAE, so this is why eclipse keeps adding it. I am not sure if there is a way to tell it not to. On Sep 11, 9:31 am, "marius.andreiana" wrote: > Hi, > > On a GWT Eclipse project (which doesn't use AppEngine), although I > removed gwt-servlet.jar, it keeps re-appearing

Re: Change Cursor Shape

2010-09-11 Thread lineman78
CSS attribute cursor. http://www.w3schools.com/css/pr_class_cursor.asp On Sep 10, 11:39 pm, udayanga ranasinghe wrote: > Hi All, > > Please tell me how to change the cursor shape in MouseMoveEvent event. > > Thanks & Regards. > Udayanga. -- You received this message because you are subscribed

Re: Difference between URL.decode and URL.decodeComponent

2010-09-10 Thread lineman78
decode and encode component is intended to be used in parts of the query. Take the following url for example: http://www.google.com/search?q=fox%26hound |___| < component The bigggest difference between encode and encodeComponent is what s

Re: Variable UI

2010-09-09 Thread lineman78
What you are describing is very similar to worldofsolitaire.com. I suggest that you play around with it for a bit and use firebug to inspect how he does things in html. I believe he is using just one image for each card and letting the browser scale it. This way you only need one image for each

Re: Adding Event Handlers on the body element...

2010-09-09 Thread lineman78
Similarly you should probably also check the type. and you could emulate the normal handler style of the rest of the GWT architecture. Event.addNativePreviewHandler(new NativePreviewHandler() { @Override public void onPreviewNativeEvent(NativePreviewEvent ev

Re: How to get HTTP Response headers?

2010-09-09 Thread lineman78
Works fine for me: @Override public void onResponseReceived(Request request, Response response) { String toPop = ""; for (Header header:response.getHeaders()) toPop += header.getName() + ": " + header.getValue(

Re: Translating already compiled Java?

2010-09-09 Thread lineman78
I have been battling this issue for a while and the solution really depends on your architecture. The question is are they truly POJOs or do they have JAXB annotations? If they have JAXB annotations GWT will blow up, if not you can trick the GWT compiler into letting you use an external library,

Re: Variable UI

2010-09-09 Thread lineman78
I think you are making thins too complicated. What are you doing with so many images? Browsers can do client-side scaling of images for you if you use the tag (background image scaling is coming in CSS3). It seems like you are a thick client developer and don't have much experience with web dev

Re: DisclosurePanel, class-name "content"

2010-09-08 Thread lineman78
write. > > Well, if you can't see it, I won't probably change your mind. So thanks for > the discussion. > > Cheers >   JZ > > On Wed, Sep 8, 2010 at 8:03 PM, lineman78 wrote: > > Then the problem isn't with GWT; it is with the site you are > > inte

Re: Variable UI

2010-09-08 Thread lineman78
Remember, most UI is in html, so use width=100% whenever possible. Also, you can use the layout panels so that you theoretically don't have to deal with browser quirks such as IE's box model bug. A refreshing layout such as the one you discussed is a very heavy handed layout model and should be av

Re: DisclosurePanel, class-name "content"

2010-09-08 Thread lineman78
style name within disclosure panel, but you can't change it as easy because everything is private, instead you will have to remove the name after it is added and add your own by overriding the setContent method On Sep 7, 11:36 pm, Jaroslav Záruba wrote: > On Wed, Sep 8, 2010 at 2:43 AM, linema

Re: DisclosurePanel, class-name "content"

2010-09-07 Thread lineman78
It is because content and header all both children of the gwt- DisclosurePanel class and they expect you to use child selectors. Here is what they expect you use so that you don't end up with collisions: .gwt-DisclosurePanel .content { border: 2px solid black; } On Sep 5, 11:08 am, Jaroslav Zár

Re: How to block click event?

2010-09-07 Thread lineman78
you can try adding different handlers such as a click handler or mouse down handler and call event.preventDefault(). On Sep 6, 9:06 am, ulgerang wrote: > Hi, > > I am making 'ImageButton' that extends 'Image' and implemented > 'HasEnabled' interface. > I made 3 state, disable,mouseover, enable. >

Re: Cross Site Requests for JSON : Invalid Label

2010-09-07 Thread lineman78
In other words you are using JSONP client code to hit a JSON service. Without more info I am assuming this is your problem. In order to make cross site requests using the method described on the page you referenced you service needs to output JSONP, that is wrapping the JSON with a call to the spe

Re: Using GWT for a large UI project

2010-09-02 Thread lineman78
I completely agree with marius on the plugin requirement for silverlight. Also, until M$ decides to make a full version of Silverlight available on Linux it will never become popular. Since the majority of the people that use Linux are software devs, it would make sense that you would want to sup

Re: Problems creating my first reusable module: import cannot be resolved

2010-08-19 Thread lineman78
the module (everywhere): > still no luck. > > I've removed the rename-to attribute: still no luck. > > I am indeed using Eclipse. The JAR is configured as a library on my > Java build path. > > I appreciate the comments though! > > Keep 'em coming! > > Thanks

Re: Problems creating my first reusable module: import cannot be resolved

2010-08-18 Thread lineman78
>From what I can tell there is nothing wrong with the structure of your project or the packaging. Generics have been supported since GWT 1.5. First of all, you dont want it to be in war/WEB-INF/lib. This is for server-side Java libraries, but this won't hurt anything. Second, I would try taking

Re: How to send data back to client side code?

2010-08-17 Thread lineman78
Yeah, I ran into this issue a year ago when I was working with GAE + GWT-RPC. The client side object cannot have references to any code not associated with a GWT module, so there are a few options for you here. 1) create a translator and maintain 2 versions of the class; 1 for the client(without

Re: why we probably won't use GWT for a large UI project

2010-08-17 Thread lineman78
;s > like the blind leading the blind. Stefan and lineman78 in particular. I miss > the days that Rienier would lash out when people spread misinformation or > gave incorrect advise on this group. Alteast it kept the quality of the > responses high but right now this forum is running

Re: HTML in TextArea

2010-08-17 Thread lineman78
You might have to do some DOM tricks to lock RichTextArea, but it should be possible. Such as adding a focus listener and canceling the event or finding the inner text area object and disabling it. On Aug 17, 5:13 am, steenstrup wrote: > My problem, is that i like to display html in a textArea th

Re: Generate Random String

2010-08-17 Thread lineman78
In Java you could also use the UUID class, but doubt its ported into GWT. Also, simply using the long value of time is also effective assuming that there is no chance of ever generating 2 at the exact same time(i.e. result of a user action): Long.toString(new Date().getTime()); On Aug 17, 7:35 am

Re: Expose URL as REST service how?

2010-08-16 Thread lineman78
e on this to > > achieve? > > > - Thamizharasu S > > > On Aug 13, 10:51 pm, lineman78 wrote: > > > > REST is provided by most app servers in the form of a reference > > > implementation of JSR-311.  Glassfish uses Jersey, JBoss RESTEasy. > > > Most a

Re: why we probably won't use GWT for a large UI project

2010-08-15 Thread lineman78
Stefan, while I agree that GWT-RPC inherently gives some XSRF protection, I don't think it should be relied upon. First of all, any service that performs an action in a REST architecture should use a method other than GET, such as POST, PUT or DELETE; therefore the argument of GWT-RPC running over

Re: How to send data back to client side code?

2010-08-13 Thread lineman78
Any object referenced in client-side code must be in a client package. The new version of the GWT plugin for eclipse added a shared package suffix, but it is added to the gwt.xml as a client side package. On Aug 13, 11:39 am, "Sree ..." wrote: > Am not sure this belongs to GWT or GAE or both ...

Re: Script tag dynamic loading

2010-08-13 Thread lineman78
I have run into this problem with a few scripts that rely on the document load event, maybe look into manually firing it. I think I tried dynamic loading of the maps library before and gave up, but I didn't try very hard to get it working. On Aug 13, 5:57 am, Vincent COROLLEUR wrote: > I tried t

Re: Expose URL as REST service how?

2010-08-13 Thread lineman78
REST is provided by most app servers in the form of a reference implementation of JSR-311. Glassfish uses Jersey, JBoss RESTEasy. Most app servers bundle support in one way or another now. Some GWT people have found RESTlet easy to use also. The Jersey users manual is very in-depth and ought to

Re: why we probably won't use GWT for a large UI project

2010-08-12 Thread lineman78
evin Qiu wrote: > Totally agree with lineman78 on the use of SmartGWT. We used SmartGWT to > build a prototype, only to find out that mixing Js library wrapper with > native GWT is bad. It's super easy in SmartGWT if you're building a simple > CRUD application, but anything

Re: why we probably won't use GWT for a large UI project

2010-08-12 Thread lineman78
it took me a good 8-10 hours in the end to make a generator that works for almost every case. But you can get one that works for most cases in 2-4 hours as long as you aren't doing anything too complex. On Aug 11, 3:01 pm, "marius.andreiana" wrote: > Hey, > > On Aug 11, 1

Re: .gwt-TabBarItem - setting Max width

2010-08-12 Thread lineman78
You will need 3 things: white-space: nowrap; overflow: hidden; max-width: 30px; However, max-width is not fully supported in IE. You can fix this in a couple ways. 1) Use IE's CSS expression. 2) CssResource has some ways of getting values and acting on them, but I believe this is only run once.

Re: why we probably won't use GWT for a large UI project

2010-08-11 Thread lineman78
I completely disagree with Stefan, GWT-RPC is no more secure than REST. For both to be secure by the broad definition of the term you simply need to make them run over SSL. The only perceived security you get via GWT-RPC is by obscurity, which is not security at all. As far as SmartGWT goes, I w

Re: More woes with IE + Client(Image) Bundles

2010-08-11 Thread lineman78
This is actually a problem in the way they have implemented ImageResource in IE. It is not scalable as the Gecko and Webkit implementations are. In order to make it scalable you will have to add the repeat both annotation on it, which will keep the generator from bundling it with other images in

Re: Service Location on Server Side

2010-08-11 Thread lineman78
This usually isn't the way something like this is done and there is one major issue that can come up when doing this. App servers will have a maximum simultaneous connections and when you do this, one request will actually take up 2 of these connections and if you start chaining more and more toge

Re: Synchronizing server and browser date/time?

2010-08-10 Thread lineman78
Lucky for you the Java Date object handles timezones for you. As long as you are okay with an an accuracy of up to 5 secs you should be okay with this method. Are you using GWT RPC? If so, just create a method that returns a new Date from the server. If not, create a servlet that just outputs n

Re: cross-domain with GWT (load JavaScript)

2010-08-10 Thread lineman78
The SOP doesn't apply to script tags. This is the idea behind JSONP. Speaking of which, this code is from the JsonpRequest class: ScriptElement script = Document.get().createScriptElement(); script.setType("text/javascript"); script.setSrc(uri.toString()); Document.get().getElementsByTagName("hea

Re: Scraping website with GWT

2010-08-10 Thread lineman78
First of all GWT is executed client side and therefore XSRF security should prevent you from scraping another site directly. However, you can do scraping quite easily with server-side java. PHP is also a server executed language, so anything you would usually do in php, you will do it via server

Re: Who knows how to execute native code in server-side

2010-08-05 Thread lineman78
If you are using app engine, I don't think this is possible. I have successfully made native calls in glassfish though using System.load(), but you need to add the library path to the native lib classpath in the admin console. Also, you will run into the problem where the library is loaded by the

Re: GWT is it fully compatible with ie6 ?

2010-08-05 Thread lineman78
at that > might well be worse when dealing with ie6, not better. > (though it should be faster). > > On Aug 5, 6:08 pm, lineman78 wrote: > > > This is a misconception about GWT.  It gives you the tools to handle > > IE6 problems, but it doesn't completely protect

Re: Need Help!!!About the difference between smartgwt and gwt for component "Window"

2010-08-05 Thread lineman78
You need to enable modality in the smartGwt window: winModal.setIsModal(true); winModal.setShowModalMask(true); On Aug 4, 8:41 pm, JIE SUN wrote: > Hi guys: > > I had difficult to set up a smartgwt window as sam functionality as > the one in gwt. > Basically, I just need to click a button, and a

Re: GWT is it fully compatible with ie6 ?

2010-08-05 Thread lineman78
This is a misconception about GWT. It gives you the tools to handle IE6 problems, but it doesn't completely protect you from all of IE6's problems. The built in widgets do a pretty good job at dealing with IE problems and the layout panels do promise to act the same on all browsers, but the regul

Re: Setting a height in % within a 'rounded-corners' panel

2010-08-04 Thread lineman78
The td being 100% will do nothing if the table isn't 100%. Remember, % based is in relation to the parent, in the case of a td the table is set to auto size and therefore the cell being 100% won't matter. I also suggest looking at the layout panel as a parent panel due to the fact that it helps w

Re: how to parse news rss feeds?

2010-08-04 Thread lineman78
uestBuilder class but i unable to read data from > other servers (Ex. Google news feed, yahoo news feed etc..).. data > coming as null.. I have searched on the google  but i have't  find any > solutions.. > > Thanks > Please provide information about parsing from other servers

Re: how to parse news rss feeds?

2010-08-04 Thread lineman78
The easiest, but not most efficient way would be to write a server side proxy to fetch for you and use the built-in GWT DOM parsing API. http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/xml/client/XMLParser.html The most efficient method that I would use is to use the RSS X

Re: Problem with UTF-8

2010-08-03 Thread lineman78
One simple way to check if it is Java/GWT code or the browser is to add some UTF-8 chars straight to the html file. If that is working correctly then it must be either the Java file isn't UTF-8 or something else is wrong. Eclipse allows you to change the encoding of files through the properties m

Re: JSONP: Overlays with Optional Attributes (HostedModeException's), How?

2010-08-03 Thread lineman78
Reported in Feb, still listed as new, so make sure you vote: http://code.google.com/p/google-web-toolkit/issues/detail?id=4646 On Aug 3, 1:07 am, Andrew Hughes wrote: > Fixed... but I think this stinks :) > >     public final Double getXMin(){ >         return isXMinNull() ? null : getXMinValue(

Re: using ClientBundle

2010-08-03 Thread lineman78
The purpose of clientbundle is to refer to files that are not deployed on your server. If you need to deploy the resource for other reasons you will not want to use clientbundle. On Aug 3, 9:37 am, Olivier wrote: > Hi, > > don't make a reference to something in the WAR folder, put your image > a

Re: Browser Event Propagation

2010-08-02 Thread lineman78
event.preventDefault works in both firefox and IE if you use the modern GWT event handling(handler registration method) instead of the DOM event handling (pre 1.6). On Aug 2, 3:04 pm, Falcon wrote: > (You can also use event.returnValue = false, at least for IE.) > > On Aug 2, 3:50 pm, Falcon wro

Re: ANT task for a web project using GWT

2010-08-02 Thread lineman78
There are no provided ANT tasks, however it is not that difficult to write your own ANT macros to do what you want. Unfortunately I can't provide you with my macro, but this should be enough to get you started:

Re: Ecryption best practices (server side, client side, password handling)?

2010-08-02 Thread lineman78
A lot of databases provide encryption so that you can prevent sys admins from seeing the data without being authenticated to the DB itself. Oracle provides it natively, where MySql is a combination of 3rd party software. If you are really paranoid MySql provides AES encrypt/decrypt functions. ht

Re: why doesn't this right-click capture work in IE?

2010-07-30 Thread lineman78
You are using the older method of event handling. This method works fine for me: addDomHandler(new ContextMenuHandler() { @Override public void onContextMenu(ContextMenuEvent event) { showMenu();

Re: Integration of Gwt + Java Beans

2010-07-30 Thread lineman78
I regularly use this approach, the only thing that you have not specified is you communication protocol. Also, do you plan on deploying as an EAR with an EJB and WEB module, or do you plan on taking advantage of EJB3's ability to have EJBs within a web module? I use the EAR approach. On Jul 30, 3

Re: Rounded tab styles in TabLayoutPanelTab

2010-07-30 Thread lineman78
There is no pure CSS solution short of using CSS3 border-radius. For efficiency I have stuck with this approach for now, but the most compatible way is to make your own decoratedPanel that allows you to only have rounded corners on top and use the widget in the tab. On Jul 30, 8:08 am, Michael Jo

Re: Do we have any Library for OpenID autentication(Authentication using Google accounts/Face book etc.)

2010-07-29 Thread lineman78
You don't want to use GWT for authentication, what you want to do is use the authentication provided to you by the container. The solution that Danny provided does just that. You want to use a JSR-196 authentication provider like openId4Java and use your web.xml to require authentication to acces

Re: Passing values between 2 screens (popups)

2010-07-29 Thread lineman78
If you were the one that spawned the screen you will have a javascript referance to it and can call javascript functions on it. http://codepunk.hardwar.org.uk/bjs12.htm You will be able to do this in GWT by using the GWT Exporter library. On Jul 28, 7:58 pm, "Reinaldo \(Gmail\)" wrote: > Hi All

Re: How to show server log file on the client?

2010-07-28 Thread lineman78
"I would prefer the log entries to be shown as they are created. I think that in this case the server has to contact the client." I have run into this use case a lot as a lot of my work has to do with operational environments. You are correct that the traditional way of doing a notification of so

Re: Web service call

2010-07-28 Thread lineman78
pm, Deepak Singh wrote: > Hi, > > Plan to use Jibx binding on server side due to its fast response. will it be > compatible with gwt? > > On Wed, Jul 28, 2010 at 10:24 PM, lineman78 wrote: > > Due to the SOP you might need to write your own server-side > > translat

Re: Sorting in flex table

2010-07-28 Thread lineman78
I have extended this for my solution: http://sites.google.com/site/psthapar/simplesortabletable On Jul 28, 3:37 am, Manivannan Malaichamy wrote: > i want a sorting  in flextable. > > Any help.. -- You received this message because you are subscribed to the Google Groups "Google Web Toolki

Re: Web service call

2010-07-28 Thread lineman78
Due to the SOP you might need to write your own server-side translator. Personally, I would use the WSDL to generate a Java SOAP client and use the same objects for a Jersey REST service to pass the data down to the client. Look at the Jersey project for REST examples(the getting started guide is

Re: Bug in calculating “Absolute top” position u sing GWT framework

2010-07-27 Thread lineman78
Are you sure that the problem is the getAbsoluteTop method, or is it muliplying the + 10 for you without you knowing and messing things up. Try taking out the +10 and see if it consistently shows on the top left. On Jul 27, 2:19 am, Ragothaman Thanikachalam wrote: > In ie7 browser set zooming le

Re: CssResources @external and tail-globs

2010-07-27 Thread lineman78
Apparently the doc has been updated prematurely and this feature is not available in 2.0, but is in 2.1. On Jul 27, 7:43 am, "david.herv...@gmail.com" wrote: > Hello, > > as mentionned in the CssResource wiki > :http://code.google.com/p/google-web-toolkit/wiki/CssResource#External... > it may be

Re: Standards Mode + Decorated Popup Panel + IE == FAIL

2010-07-27 Thread lineman78
I can confirm that this did fix the problem. On Jul 27, 10:38 am, lineman78 wrote: > According to this bug it has been fixed in 2.0.4, I will try updating > and let you know if it worked: > > http://code.google.com/p/google-web-toolkit/issues/detail?id=4532&can... > &

Re: Standards Mode + Decorated Popup Panel + IE == FAIL

2010-07-27 Thread lineman78
, randomwalk wrote: > Have the exact same problem with IE8 in standards mode. I'm not using > Decorated Popup Panel though. I wrote my own PopupWindow class that > extends PopupPanel. > > On Jul 6, 5:31 pm, lineman78 wrote: > > > I am having aproblemwhere I have chan

Re: Writing a JS library in GWT?

2010-07-27 Thread lineman78
hould warrant more than 1 permutation beyond browser > specific speed optimizations.  Therefore, distributing the library as > a .js file instead of a bootloader plus 4 different permutations seems > like a better idea. > > Is my only option here really to write my own linker to output

Re: GWT Error Unable to find .gwt.xml

2010-07-26 Thread lineman78
This is a generic error and can be caused by many different things. 1) Malformed include in gwt.xml 2) Classpath issues 3) Malformed script tag in the head of the html file 4) Trying to use a non-GWT project I have also randomly seen this error in hosted mode and a Ctrl+F5 usually fixes it. This

Re: Writing a JS library in GWT?

2010-07-26 Thread lineman78
First, let me start by saying that people are already writing javascript libraries using GWT and have been for some time. Ray Cromwell created the GWT exporter library for this exact purpose for his own usage and open sourced it. While bootloaders seem expensive it is the only way to deliver the

Re: TabPanel within TabPanel styling

2010-07-26 Thread lineman78
you can also use css dom selectors that would style the gwt-tabPanel classes differently if they are the child of another gwt-tabPanel On Jul 25, 9:30 am, mobilekid wrote: > My app's layout consists of a TapPanel, which holds another TabPanel. > I'd like to have the two TabPanels look differently

Re: uibinder @import url..

2010-07-26 Thread lineman78
This is an external stylesheet and cannot be used with the @import annotation. As I said before, you will have to either download the css and include it with your module or add it to the gwt.xml file. On Jul 26, 8:02 am, asianCoolz wrote: > can you give example how to use styleInjector replace o

Re: uibinder @import url..

2010-07-24 Thread lineman78
>From the CssResource documentation: "The @import statement will only work for other CssResources, not for URLs at runtime, since the .gwt.xml or StyleInjector can be used in those cases." http://code.google.com/p/google-web-toolkit/wiki/CssResource#Compile-time_import If you wish to use externa

Re: css uibinder problem

2010-07-24 Thread lineman78
anything special like this that isn't standard CSS, like IE functions you have to wrap with a literal tag. http://code.google.com/p/google-web-toolkit/wiki/CssResource#Literal_function On Jul 24, 2:28 am, asianCoolz wrote: > filter: > progid:DXImageTransform.Microsoft.gradient(startColorstr=#181

Re: web-kit gradient not working

2010-07-24 Thread lineman78
someone just asked this question 2 days ago, there is a bug report in, you have to wrap it with a literal for now in uibinder or cssresource. http://code.google.com/p/google-web-toolkit/issues/detail?id=4877 On Jul 24, 9:34 am, asianCoolz wrote: >  background-image: -moz-linear-gradient(100% 100

Re: GWT app looks ugly in IE6

2010-07-22 Thread lineman78
One little trick you can use is use firebug to inspect the table you want to experiment with and copy it's html to a flat html file and open the html file with IE and play around with it till you get it right. The trick is to get the html how you want it, then roll the changes into the java code u

Re: Gradients in css3

2010-07-22 Thread lineman78
You have to escape the beginning dash. Here is from my cssResource: @external gwt-Button, gwt-PushButton, gwt-ToggleButton; .gwt-Button, .gwt-PushButton, .gwt-ToggleButton { \-moz-border-radius: 3px; \-webkit-border-radius: 3px; } On Jul 22, 11:17 am, Jyaif wrote: > Hi, > Is it

  1   2   >