Re: GWT Sticky Sessions

2013-03-28 Thread Ashar Lohmar
Hi there from my experience ... you are barking at the wrong tree so to speak. it's a long time that I'm not using GWT anymore (not my choice, but i had to) but i don't think that it's GWT's problem to check the jsessionid you could use the Chrome's developer tools o firefox - firebug and look

Re: GWT + DB Connection -- Failure when deployed!

2011-01-16 Thread Ashar Lohmar
as far as I know jdbc connection is not allowed when deployed to "the cloud"/appengine.google.com. all you could do if you want to use your own database server would be to implement a "service" on your DB Server to provide the data in json or XML. and in your application to parse that data. i hope

Re: FTP download link for GWT

2010-09-13 Thread Ashar Lohmar
use an usb stick, or use an remote server to download the SDK an after that download from there using winscp, that if u have access to a server (via ssh) that would have the permission to download zip,.. on it. On Sep 13, 9:00 am, Mayuresh wrote: > Sorry for confusion. Actually I did not mean HTT

Re: Date Range

2010-09-13 Thread Ashar Lohmar
a "simple" idea that comes into my mind right now: draw the date picker widget, and add valueChange listener, on value selection change the css for the selected date and add the date to an list an . on the first click add the date to the list and highlight the date, on the second click remove it fr

Re: GWT + app engine: how do I avoid double-work?

2010-04-23 Thread Ashar Lohmar
you could also take a look at Slim3(http://sites.google.com/site/ slim3appengine/getting-started), I just started to work with it and it seams cool enough. On Apr 23, 5:36 pm, Raphaël Brugier wrote: > Since GWT 2.0 classes with JDO or JPA annations can be serialized over > gwt-rpc > seehttp://co

Re: How to get rid of standard.css

2010-04-08 Thread Ashar Lohmar
if you still plan to use the resources from the default theme instead of using use this will put the css and the images in your compilation folder, but will not inject the css file to your app so that now you could add their css file first and then your css this way you still benefit from their c

Re: Problem when using datastore with Tomcat

2010-03-22 Thread Ashar Lohmar
lunch it in DevMode, look how the DevMode is started and "clone" it, check for the drawbacks still On Mar 22, 2:23 pm, Christian Goudreau wrote: > Hate to say that, but truth is that you can't. AppEngine only works with > Google AppEngine. At least for now, there's no concrete or complete project

Re: .jsp page will not compile in hosted mode

2010-03-15 Thread Ashar Lohmar
look at comments 13 and 15 that's how i'm horking, and on my deploy server (tomcat on JDK 1.5 ) there is no need for that JDTCompiler15 class the class JDTCompiler15 it's only used by eclipse to lunch the application On Mar 14, 9:12 pm, Adrian wrote: > Your issue might be related to this > one:

Re: newbie help

2010-03-15 Thread Ashar Lohmar
also if you only seek the functionality you should look at the Anchor object On Mar 14, 7:33 pm, eggsy84 wrote: > Rjcarr is right in that you probably don't need a specific hyperlink > object unless you need history support. > > In terms of events and wanting something to happen when your eleme

Re: web.xml

2010-03-15 Thread Ashar Lohmar
for properties on the clientSide : you should take a look at Messages (com.google.gwt.i18n.client.Messages) you'll need to have an interface that extends Messages and a .properties file for the values for example - CommonMessages.java import com.google.gwt.i18n.client.Messages; public interf

Re: New module does not get called

2010-03-15 Thread Ashar Lohmar
an EntryPoint is called when you explicit call it. i mean starting with the default projrct that the plugins creates it it has an module and an entry point if you create an another module with it's entry point, eihter you add the script to the html page that you have, or u create an another html pa

Re: File Chooser Widget

2010-03-05 Thread Ashar Lohmar
... choose .. what? ... do do what ? if you want a file browser/selector so that the client would acces his files file uploader () it's the only one i cant think of if u want to browse/select files from the server ... than i don't know just as an idea, for client file selection, you could have an

Re: Window.open can not work in IE

2010-03-05 Thread Ashar Lohmar
try putting "_blank" as target instead of "" or if is not a new window what you want, put "_self" or you could try "_top" but _self and/or _blank should do it Cheers On Mar 5, 12:10 pm, Chris Lercher wrote: > Hi Jim, > > obviously, IE refuses to work with Google ;-) > > Or... you use "window" in

Re: DatePicker disabling specified dates

2010-02-25 Thread Ashar Lohmar
our custom DatePicker to your custom CalendarView. this is a more elegant approach (I think) and also could be used to disable specific dates (a list of dates), or a specific dayOfWeek good luck On Feb 26, 9:25 am, Ashar Lohmar wrote: > someone asked the same question and i gave him a few hints >

Re: DatePicker disabling specified dates

2010-02-25 Thread Ashar Lohmar
someone asked the same question and i gave him a few hints here http://groups.google.com/group/google-web-toolkit/browse_thread/thread/aaddc977214053bd/f5c90611cb424ac7 hope you'll get something out of it good luck On Feb 25, 1:19 pm, Ice13ill wrote: > At least tell me if i'm posting the wrong q

Re: How to provide a local css resource file with a Module

2010-02-24 Thread Ashar Lohmar
another bad from me, :(. I'm kind-of a junior to intermediate in Java and sometime I mix the terms, thanks Thomas for correcting me. On Feb 24, 1:06 pm, Thomas Broyer wrote: > On Feb 23, 6:14 pm, Ashish Khivesara > wrote: > > > Thanks Ashar for your response. I am a little perplexed though. Jav

Re: Form layout

2010-02-24 Thread Ashar Lohmar
FlexTable should be one of the options, or Grid maybe, but flextable allows you to to colspan and rowspan using that you could build your own widget that could have methods like addControl(String label, Widget control) or something On Feb 24, 1:59 pm, Vik wrote: > Hie > > Is there any form layo

Re: tomcat and apache problem

2010-02-24 Thread Ashar Lohmar
On Feb 23, 6:58 pm, Fran wrote: > good question Chris > > 2010/2/23 Chris Lercher > > > Hi Ashar, > > > the Tomcat documentation says, that AJP doesn't work with Comet/AIO: > >http://tomcat.apache.org/tomcat-6.0-doc/aio.html > > Are you using Comet? &g

Re: standard overrides own css no matter what?

2010-02-24 Thread Ashar Lohmar
you are doing nothing wrong, that's just the way it works. the problem is that the theme's css are loaded/injected "last" at the same time as when the module is loaded/injected there are 2 ways to change that. 1: instead of using use this way you will add the resources(css, images,

Re: How to provide a local css resource file with a Module

2010-02-24 Thread Ashar Lohmar
Sorry, my bad, i didn't provide enough info as i said you should take a look into the gwt-upload library so in the gwt-upload it's like this, the css is in the "public" folder which is on the same level as the "client" folder you have to take care to add them to your jar, for GWT the "public" fold

Re: tomcat and apache problem

2010-02-23 Thread Ashar Lohmar
i use appache(httpd)+Tomcat with AJP, these are my confs: httpd/conf/extra/httpd-vhosts.conf ServerAdmin ad...@example.com DocumentRoot "" ErrorLog "logs/app_error_log" CustomLog "logs/app-access_log" common ProxyPass ajp://127.0.0.1:8009/ ProxyPassReverse aj

Re: How to provide a local css resource file with a Module

2010-02-22 Thread Ashar Lohmar
you should put the css in a folder named public inside your module package, the folder should be on the same level as the client folder there's no need for the specification on the .gwt.xml file you could take a look at the GWT-Upload library it has same situation, their jar contains gwt module w

Re: How to consume a service from another module (RemoteServiceRelativePath and ServiceDefTarget question)

2010-02-22 Thread Ashar Lohmar
the problem appears because of the RemoteServiceRelativePath as you noticed it says relativepath, one way to fix that is to use your code ((ServiceDefTarget) gwtService).setServiceEntryPoint("/some/absolute/path"); or use the power of the relative path (that's how i do it, because I'm lazy) @Remote

Re: GWT Compilation of gwt project with multiple modules

2010-02-19 Thread Ashar Lohmar
t compile included module. It gets gwt > compiled whenever user module is gwt compiled. > 2.  A gwt project can not be gwt compiled if it does not contain an > EntryPoint class. > > GWT developers, please take a look at other part of the question. > Thanks in advance. > >

Re: GWT Compilation of gwt project with multiple modules

2010-02-19 Thread Ashar Lohmar
the "MyModule" that will be used in MyModuleUsage module does not need to be GWT compiled ... and even further you can't GWTcomplie it without an entry point, but you don't need it gwt complied, in this type of scenario myModule is compiled in java (javac) and made a jar that has the .class files a

Re: Not able to use External Jar file for DB connection

2010-02-10 Thread Ashar Lohmar
what JDK do you use ? JDBC4 driver should be used only starting with JDK 1.6, acording to the postgresql site : JDK 1.6 - JDBC4. Support for JDBC4 methods is limited. The driver builds, but the majority of new methods are stubbed out. maybe you will consider in using the JDBC3 version in my apps,

Re: How to place url link in gwt Label

2010-02-10 Thread Ashar Lohmar
guess what ... you are right :D On Feb 10, 12:45 pm, mariyan nenchev wrote: > Hi, > I have a label that contains some text and part of it must link: > For example the whole Label text is : bla bla bla. Reference:link, bla bla > bla. > I tried : Reference : http://www.google.com";>Help Desk > But

Re: can not set breakpoint

2010-02-10 Thread Ashar Lohmar
that's the problem you are missing the ?gwt.codesvr=localhost:9997 from the URL, all the urls need to have that so that your application will comunicate with the eclipse so you'll be able to debug i think that's specified somewhere in the docs. also if you don't have ?gwt.codesvr=localhost:9997 on

Re: RootPanel.get().clear does not clear anything

2010-02-09 Thread Ashar Lohmar
check what I've said here http://groups.google.com/group/google-web-toolkit/browse_thread/thread/519854e6a7c77d91?pli=1 but whatch out if you'll do an RootPanel.get().getElement().setInnerHTML(""); i think that will remove the iframe that GWT adds it to the document also i don't know if that woul

Re: RootPanel.get().clear() does not clear the page

2010-02-09 Thread Ashar Lohmar
Hi the clear() method on the HasWidgets objects only removes the child widgets that had been added to it by using the add method in you case the logic is kind of ok, the RootPanel.get("nameofcontainer") is a child of RootPanel.get() in the DOM point of view, but but not for the HasWidgets object re

Re: DateTimeFormat with locale

2010-01-28 Thread Ashar Lohmar
you should look at this http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html you'll have to addto you html pages or if u don't like that ... you could "build" you formater by hand ... for example DateTimeFormat.getFormat("dd/MM/ HH:mm:ss") an have the stored in a util class hop

Re: how to set pagination or add scroll bar to the TabBar of an TabPanel

2010-01-22 Thread Ashar Lohmar
... maybe you should try adding the content in a Panel and that panel add it to another panel (HorizontalPanel maybe for both) and "hack" the style of the last one adding overflow:hidden TabPanel tp = new TabPanel(); tp.setWidth("500px"); // or whatever Widget content = ... // the realcontent Horiz

Re: incubator ScrollTable

2010-01-22 Thread Ashar Lohmar
this might sound like a stupid workaround ... but can't you add an if statement or something to check if the table will have only one column ?! and for that use setColumnWidth ... i know that this is not a real answer but this is the only thing that comes into my mind without trying the real source

Re: Image Rotates Itself

2010-01-19 Thread Ashar Lohmar
Hi just a hint ... for example picasa if you say to rotate a image by clicking the round arrow it shows it rotated, but the image isn't really rotated picasa only makes an configuration file (hidden) that will be read every time u go there and it "says" in it that the image should be presented rota

Re: Set the title attribute of option elements in ListBox

2010-01-12 Thread Ashar Lohmar
import com.google.gwt.dom.client.Element; ... String title = "some title" ListBox listbox= new Listbox(); int index = 0; ... Element.as(listbox.getElement().getChild(index)).setTitle(title) i think that should do it On Jan 11, 5:20 pm, rmuller wrote: > Using the standard GWT API this is not poss

Re: Set the title attribute of option elements in ListBox

2010-01-11 Thread Ashar Lohmar
if you are talking about an optgroup (http://www.w3schools.com/tags/ tryit.asp?filename=tryhtml_optgroup) I've made myself an new object that extends the default ListBox and used instead here is the code: import java.util.HashMap; import java.util.Map; import com.google.gwt.dom.client.Document; i

Re: GWT 2.0: Debug with Firefox and Eclipse

2010-01-06 Thread Ashar Lohmar
do you have the "?gwt.codesvr=localhost:9997" added to your urls?! usually that's the problem ... if you do have the parameter and still no debuging ... then i don't know On Jan 6, 3:52 am, y wrote: > Anyone managed to debug with GWT 2.0? I don't get a prompt to install > the developer plugin. E

Re: DatePicker / set a minimum date

2010-01-05 Thread Ashar Lohmar
hi 1 ideea: make a class that extends DatePicker so that you'll call the second constructor protected DatePicker(MonthSelector monthSelector, CalendarView view, CalendarModel model) for the params use new DefaultMonthSelector(), new CalendarModel() and instead of the , new DefaultCalendarV

Re: Regional Setting

2010-01-05 Thread Ashar Lohmar
Hi there, you sould take a look at the showcase http://gwt.google.com/samples/Showcase/Showcase.html#CwNumberFormat and look around the docs for internationalization http://code.google.com/webtoolkit/doc/latest/DevGuideI18n.html if you'll use locale=... what ever you need, ... for example NumberFo

Re: Adding a form to the RootPanel

2009-12-31 Thread Ashar Lohmar
hi just a few tips, to prevent the form opening in new window ... set the "target" as you do on links (), try form.setTarget("_self"); or something like that. if the code that makes the form and submits it could/should be execute several time ... you could try makeing the form an private propert

Re: Clear HTML div?

2009-12-15 Thread Ashar Lohmar
you could try something like this RootPanel.get("entries").setInnerHTML(""); the clear() method doesn't work as you expected because it comes from HasWidgets and it removes only the Widgets that where added to the panel with add() if setInnerHTML(""); doesn't work as you wanted it,

Re: How to attach a style name to a cell in a panel

2009-12-15 Thread Ashar Lohmar
Hi, as far as I know there are no methods to access a specific cell in a HorizontalPanel , maybe you could tweak around with getElement() or something but I don't know what you could do instead: a) create an another Panel (vertical/horizontal ... doesn't matter), put the image in it put the style

Re: How to prepend?

2009-12-15 Thread Ashar Lohmar
glad that I could help Cheers On Dec 15, 10:40 am, Dennis Madsen wrote: > Thanks Ashar. - your solution was easy to implement! > > On 15 Dec., 08:49, Ashar Lohmar wrote: > > > > > how about this > > you make an VerticalPanel > > > VerticalPanel vp = new V

Re: How to prepend?

2009-12-14 Thread Ashar Lohmar
how about this you make an VerticalPanel VerticalPanel vp = new VerticalPanel(); you put this in the root panel at the desired location RootPanel.get("entries").add(vp); and on the succes of the AsyncCallback you put the label in that VerticalPanel at the top ( position 0) Label response = new

Re: Unable to compile code

2009-12-14 Thread Ashar Lohmar
Hi, first of all ... where is that launch in default browser button ? i think that may be the old development mode i didn't manage to lunch it again if u updated the GWT, appengine and the eclipse plugin correctly (using eclipse update ... http://code.google.com/webtoolkit/usingeclipse.html#insta

Re: Year navigation in DateBox

2009-12-14 Thread Ashar Lohmar
Hi I've choosed to create a new gadget from the original datepicker copying those classes refactoring and rewrite some because i needed an datepicker that showed 3 months instead of one. but for your case ... you should make an object looking at the code from DefaultMonthSelector, and an another cl

Re: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2

2009-12-11 Thread Ashar Lohmar
Hi I'm having the same kind of problem. in my app i use some libraries/object written in Java 1.4 style the objects implement Serializable but contain Lists or Maps which are declare without parameters i mean List instead of List, as the Java 1.4 requires and some RPC classes return this kind of o