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 at the network tab there you should see the 
headers sent to the back-end (the jsessionid should be present in a cookie 
or in the request).
anyway you said mod_jk that says to me that you have an Apache HTTPD before 
the Tomcat
I usually use mod_proxy_ajp (which i would recommend, but about that we 
could talk some other time) 
a very important thing when implementing load balancing it's the jvmRoute 
parameter on the tomcat.
In every tomcat you shold edit in the server.xml the line saying

adding the an attribute jvmRoute, with a string at your discretion but 
different for every server.


...
that makes the Tomcat add that little string at the end of the jsessionid (*
jsessionid*=AS348AF929FK219CKA9FK3B79870H would become 
*jsessionid*=AS348AF929FK219CKA9FK3B79870H.t1 
on the first server t1 and so on).

that little string there says to the Apache on which node the session  was 
created and therefore where it should send the request.
from what I've understand from reading this 
http://blogs.encodo.ch/news/view_article.php?id=18 looks like the jvmRoute 
value should be the same as the worker name or/and vice-versa.
 
that's about it, hope it helped

See ya



On Wednesday, March 27, 2013 3:32:25 PM UTC+1, xsee wrote:
>
> You don't even need a filter or set the cookie yourself. Just make a call 
> to getSession(true) and it will automagically be set in the Cookies. 
> Typically, you will have some sort of 'initialization' RPC in your module 
> entry point. This is usually a good place to create the session by calling 
> "getLocalThreadRequest().getSession(true). Once your RPC returns, go check 
> your cookies in the browser and you will see the jsessionid there. No need 
> for special filters or any of the rest of it.
>
> On Wednesday, January 23, 2008 4:57:41 AM UTC-7, jas_tat wrote:
>>
>> Hi All, 
>>
>> I fixed my problem. "Does anyone know how I can pass a plain, 
>> unencoded, jsessionid with all http POST requests which the GWT client 
>> frontend makes?" 
>>
>> In the end I used a servlet filter in order to set a jsessionid as a 
>> cookie for every http response my GWT application made: 
>>
>> import java.io.IOException; 
>> import javax.servlet.*; 
>> import javax.servlet.http.*; 
>>
>> import org.apache.log4j.Logger; 
>>
>> public class JsessionidSetter implements Filter 
>> { 
>> public static Logger log = Logger.getLogger(JsessionidSetter 
>> .class); 
>>
>> public void init(FilterConfig arg0) throws ServletException 
>> { 
>> } 
>>
>> public void destroy() 
>> { 
>> } 
>>
>> public void doFilter(ServletRequest req, ServletResponse res, 
>> FilterChain chain) throws IOException, ServletException 
>> { 
>> HttpServletResponse response = (HttpServletResponse) res; 
>> HttpSession session = 
>> ((HttpServletRequest)req).getSession(true); 
>> response.addCookie(new Cookie("JSESSIONID", 
>> session.getId())); 
>> chain.doFilter(req, res); 
>> } 
>> } 
>>
>> With supporting xml in my web.xml: 
>>
>>  
>> JsessionidSetter 
>> JsessionidSetter 
>>  
>>  
>> JsessionidSetter 
>> /* 
>>  
>>
>> Thank you all for your comments anyway!
>
>

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




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 my info is still correct, i hadn't used GAE in the last 4-5
months.


On Jan 15, 11:57 pm, zixzigma  wrote:
> Google App Engine's primary DB is BigTable DataStore,
> which is NOT a Relational Database.
>
> they are introducing a new hosted SQL DB for business.
>
> I don't think SQL is available at the moment.
>
> DataStore:http://code.google.com/appengine/docs/java/datastore/overview.html
>
> AppEngine for Business 
> (SQL):http://code.google.com/appengine/business/#features
> AppEngine Roadmap:http://code.google.com/appengine/business/roadmap.html

-- 
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 email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 HTTP is completely
> blocked. Any downloads like .zip, .exe, .msi, .jar etc. etc. and some
> sites hosting freeware softwares have been blocked in our
> organization. Even I cannot access FTP link using any browser. However
> I can use FTP clients like WinSCP from which I can access any FTP link
> and download any files. So was I looking for an FTP link.
>
> Thanks for below link. I will check that out. However if the download
> page has again a link to .zip or .jar file, I will not be able to
> download anyway.
>
> Regards,
> Mayuresh.
>
> On Sep 10, 2:43 pm, "Ikai L (Google)"  wrote:
>
>
>
>
>
>
>
> > Is HTTP completely blocked? For instance, can you use Maven? If you can, try
> > this:
>
> >http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin...
>
> > (Seems strange HTTP would be blocked, as you are emailing over Gmail right
> > now)
>
> > On Fri, Sep 10, 2010 at 12:47 AM, Mayuresh  wrote:
> > > Hello,
>
> > > Our organization has blocked downloads over http(s). However the same
> > > works with FTP client. Since I am not able to open GWT download page,
> > > is there any FTP download link for GWT where I can get the latest
> > > version?
>
> > > Thanks and regards,
> > > Mayuresh.
>
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  ­cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > Blog:http://googleappengine.blogspot.com
> > Twitter:http://twitter.com/app_engine
> > Reddit:http://www.reddit.com/r/appengine-Hide quoted text -
>
> > - Show quoted text -

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 from the list and change the "css" back (un-
highlight). that would be the big picture, but i can't give exact
directions.

On Sep 13, 3:35 pm, shahid  wrote:
> hi Thomas, No I can't use that unfortunately. The design requirement
> is that the user should be able to select and highlight multiple dates
> on the calendar/date picker UI.
>
> On Sep 13, 12:47 pm, Brett Thomas  wrote:
>
>
>
>
>
>
>
> > Could you use two date pickers for start and end? After the start is
> > selected, set the date of the end to the next day or something
>
> > On Sep 13, 2010 6:40 AM, "shahid"  wrote:> I am 
> > looking for a way to be able to select multiple dates and
> > > highlight them in the calendar/date picker. What would be the best way
> > > to achieve this ?
>
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
>
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .> For more options, visit this group at
>
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideServerCo...
>
> On 23 avr, 14:46, Christian Goudreau 
> wrote:
>
>
>
>
>
> > Yes they use annotations, but there's no enhancement process like in JDO, so
> > you can reuse your model without any problem. I use Twig for my projects
> > with GWT and It's just wonderful !
>
> > Twig-Persist is optimised for AppStore Datastore, so if there's any draw
> > back, the come directly from the limitation of the datastore. I used
> > Objectify before migrating to Twig, I don't really know wich one is better,
> > but Twig is simplier.
>
> > I mean: why would anyone use anything else?
>
> > The answer to this question is simple, because they don't know about
> > Objectify, Twig or SimpleDS yet. Or want to connect they're app to another
> > datastore than the one in AppEngine.
>
> > Christian
>
> > On Fri, Apr 23, 2010 at 7:42 AM, jbdhl  wrote:
> > > Interesting! But Twig-Persist and Objectify both uses their own
> > > annotations too. Doesn't that prevent me to re-use the objects on the
> > > client side in GWT?
>
> > > Another thing: Twig-Persist seems to address all the short-comings of
> > > Objectify, JDO and SimpleDS. Doesn't Twig-Persist have any draw-backs?
> > > I mean: why would anyone use anything else? It seems that there are no
> > > real advantages with e.g. JDO? I'm confused.
>
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 css classes and you will also be able
to override the
because your css will be loaded last

hope it helps
Good luck

On Apr 8, 1:40 pm, mariyan nenchev  wrote:
> Remove it from the gwt.xml

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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
> that fake Google's infrastructure, at least, that I know of. You could use
> another Datastore tough, like MySQL with Hibernate + Gilead with your tomcat
> server. It's more pain and more work, but you'll have complete controle on
> your server environnement.
>
> Christian
>
>
>
> On Mon, Mar 22, 2010 at 7:42 AM, duclm  wrote:
> > I need to deploy in my own server, i think i will use Tomcat, but when
> > using Tomcat, i can't use datastore. Can you help me solve this
> > problem
>
> > On Mar 21, 12:40 am, Tristan  wrote:
> > > I hate to make it sound like "is it plugged in?", but don't you need
> > > to run the app on Google App Engine to access the datastore? (or
> > > hosted mode, which fakes app engine for you). Or did you somehow fake
> > > a datastore on your own?
>
> > > On Mar 20, 11:06 am, duclm  wrote:
>
> > > > I deploy a Gwt app that using GAE (datastore), hosted mode is ok, but
> > > > when i deploy to Tomcat, there is problem like below:
>
> > > > Mar 20, 2010 11:05:56 PM
> > > > org.datanucleus.plugin.NonManagedPluginRegistry resolve
> > > > Constraints
> > > > INFO: Bundle "org.datanucleus.jpa" has an optional dependency to
> > > > "org.datanucleu
> > > > s.enhancer" but it cannot be resolved
> > > > Mar 20, 2010 11:05:56 PM
> > > > org.datanucleus.plugin.NonManagedPluginRegistry resolve
> > > > Constraints
> > > > INFO: Bundle "org.datanucleus" has an optional dependency to
> > > > "org.eclipse.equino
> > > > x.registry" but it cannot be resolved
> > > > Mar 20, 2010 11:05:56 PM
> > > > org.datanucleus.plugin.NonManagedPluginRegistry resolve
> > > > Constraints
> > > > INFO: Bundle "org.datanucleus" has an optional dependency to
> > > > "org.eclipse.core.r
> > > > untime" but it cannot be resolved
> > > > Mar 20, 2010 11:05:56 PM org.datanucleus.PersistenceConfiguration
> > > > setProperty
> > > > INFO: Property datanucleus.rdbms.sql.allowAllSQLStatements unknown -
> > > > will be ign
> > > > ored
> > > > Mar 20, 2010 11:05:56 PM org.datanucleus.PersistenceConfiguration
> > > > setProperty
> > > > INFO: Property datanucleus.rdbms.stringDefaultLength unknown - will be
> > > > ignored
> > > > Mar 20, 2010 11:05:56 PM org.datanucleus.PersistenceConfiguration
> > > > setProperty
> > > > INFO: Property datanucleus.appengine.autoCreateDatastoreTxns unknown -
> > > > will be i
> > > > gnored
> > > > Mar 20, 2010 11:05:56 PM org.datanucleus.ObjectManagerFactoryImpl
> > > > logConfigurati
> > > > on
> > > > INFO: = Persistence Configuration ===
> > > > Mar 20, 2010 11:05:56 PM org.datanucleus.ObjectManagerFactoryImpl
> > > > logConfigurati
> > > > on
> > > > INFO: DataNucleus Persistence Factory - Vendor: "DataNucleus"
> > > > Version: "1.1.5"
> > > > Mar 20, 2010 11:05:56 PM org.datanucleus.ObjectManagerFactoryImpl
> > > > logConfigurati
> > > > on
> > > > INFO: DataNucleus Persistence Factory initialised for datastore
> > > > URL="appengine"
> > > > driver="" userName=""
> > > > Mar 20, 2010 11:05:56 PM org.datanucleus.ObjectManagerFactoryImpl
> > > > logConfigurati
> > > > on
> > > > INFO: ===
> > > > Mar 20, 2010 11:05:56 PM org.datanucleus.PersistenceConfiguration
> > > > setProperty
> > > > INFO: Property datanucleus.query.cached unknown - will be ignored
> > > > Mar 20, 2010 11:05:56 PM
> > > > org.datanucleus.jdo.metadata.JDOMetaDataManager 
> > > > INFO: Registering listener for metadata initialisation
> > > > Mar 20, 2010 11:05:56 PM
> > > > org.datanucleus.jdo.metadata.JDOAnnotationReader proces
> > > > sClassAnnotations
> > > > INFO: Class "com.cloudstudio.server.store.User" has been specified
> > > > with JDO anno
> > > > tations so using those.
> > > > Mar 20, 2010 11:05:56 PM
> > > > org.datanucleus.store.appengine.MetaDataValidator valid
> > > > ate
> > > > INFO: Performing appengine-specific metadata validation for
> > > > com.cloudstudio.serv
> > > > er.store.User
> > > > Mar 20, 2010 11:05:56 PM
> > > > org.datanucleus.store.appengine.MetaDataValidator valid
> > > > ate
> > > > INFO: Finished performing appengine-specific metadata validation for
> > > > com.cloudst
> > > > udio.server.store.User
> > > > Mar 20, 2010 11:05:56 PM org.datanucleus.store.StoreDataManager
> > > > registerStoreDat
> > > > a
> > > > INFO: Managing Persistence of Class :
> > > > com.cloudstudio.server.store.User [Table :
> > > >   > > >        identity-type="application"
> > > >        objectid-class="javax.jdo.identity.ObjectIdentity"
> > > >        persistence-modifier="persistence-capable"
>
> > > > 
> > > > 
> > > >  > > >        persistence-modifier="persistent"
> > > >        null-value="none"
> > > >        default-fetch

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:http://code.google.com/p/google-web-toolkit/issues/detail?id=3557
>
> - Adrian
>
> On Mar 13, 8:05 am, stingermn  wrote:
>
>
>
> > I have a gwt web app whose initial page is a .jsp page.  The .jsp page
> > compiles and the app runs without problems in web mode, however
> > the .jsp page will not compile in hosted mode.
>
> > To start the app in hosted mode, I am using an ant script with a
> > 'devmode' target.  The '-startupUrl' parameter specifies "index.jsp"
> > as the initial page.
>
> >   
> >      > classname="com.google.gwt.dev.DevMode">
> >       
> >         
> >         
> >       
> >       
> >       
> >       
> >       
> >       
> >     
> >   
>
> > When the .jsp page compiles (in hosted mode) there are multiple
> > errors.
> > Here is a sample error,
>
> > 13. ERROR in C:\svnTest\trunk\source\MyApp\src\com\myCompany\myApp
> > \server\ResourceBundleHelper.java (at line 15)
> >  private List        resourceBundleList;
> >  Syntax error, parameterized types are only available if source level
> > is 1.5
>
> > The java code referenced by the .jsp page is written using java 1.5
> > style generics, but it appears that this code is not being compiled at
> > source level 1.5.
>
> > I have found many examples of setting the source level while in web
> > mode (by adding compilerSourceVM and compilerTargetVM parameters to
> > the org.apache.jasper.servlet.JspServlet  element in the
> > tomcat conf/web.xml file).
>
> > How do I set the source level to 1.5, in hosted mode?- Hide quoted text -
>
> - Show quoted text -

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 element
> has clicked GWT uses the notion of ClickHandlers:
>
> API:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...
>
> Bit of a tutorial :http://gwttutorials.com/2009/07/29/using-gwt-events/
>
> You can add your 'do this' stuff into the onClick function.
>
> Hope this helps
>
> Eggsy
>
> On Mar 14, 7:32 am, rjcarr  wrote:
>
>
>
> > Hi Robert-
>
> > Creating a hyperlink probably isn't the first thing you want to do.
> > You'll likely want to play around with panels and labels and images
> > and then start adding click handlers to those things.
>
> > A hyperlink is very similar to a label, but it also carries history
> > information.  That's almost certainly too complex of a topic for a
> > (self-proclaimed) newbie.
>
> > Good luck!
>
> > On Mar 11, 10:41 pm, _Robert_  wrote:
>
> > > Hi!
> > > I'm new to GWT but would like to get started with a simple
> > > application. I just can't figure out how hyperlinks work in GWT.
>
> > > public void onModuleLoad() {
>
> > >                 Hyperlink robert = new Hyperlink("Robert", "robert");
>
> > >                 RootPanel.get("robert").add(robert);
>
> > > I guess I should add a listener of some kind, and also I have a
> > > problem figuring out how to add a target to the link. I would like to
> > > go to another page, robert.html, when I click the hyperlink. Could
> > > someone please get me started :)
>
> > > Thanks
> > > Regards
> > > Robert- Hide quoted text -
>
> - Show quoted text -

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 interface CommonMessages extends Messages {
String usernameLabel();

@Key("field.password.minLength")
@DefaultMessage("6")
String passwordMinLength();

@Key("err.field.empty")
String fieldEmpty(String param);
}

 CommonMessages.properties
usernameLabel=Username
field.password.minLength=6
err.field.empty= Field "{0}" is empty !

both the java and properties file should be in the clientside (so that
the gwt compiler would have acces to them)
and in the code
you would have
CommonMessages commonMessages = GWT.create(CommonMessages.class);

commonMessages.fieldEmpty("First name");
commonMessages.usernameLabel();

if you need acces to the properties from the server side then the only
way i think it's by having them returned by a RPC call

On Mar 14, 9:36 am, rjcarr  wrote:
> First of all, only classes in the server portion of your module have
> access to the web.xml file (since browser client's don't have access
> to the WEB-INF folder).
>
> So, assuming you're in the server portion, you can just open the file
> with, say, a FileInputStream.  However, I've been programming servlet
> for years and years and years and I've never once had to parse the
> web.xml file myself.  If you just want to get properties out of it
> you'll likely just want to use init parameters, or, if you need to
> look up servlets, you can use a named dispatcher.
>
> Good luck!
>
> On Mar 11, 11:16 am, tom  wrote:
>
>
>
> > Hi --
>
> > What class can I use to access the web.xml (properties & such) from my
> > GWT module?
>
> > Thanks!- Hide quoted text -
>
> - Show quoted text -

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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
page that will use this module+entry point.
... more details about your project would help me to explain better.

 in my opinion, and my way of using gwt, the aproach shoule be like
this an entryPoint usualy it's = a html page (jsp, what ever) and vice-
versa, an html page has an entrypoint

On Mar 13, 7:45 pm, Szabó Árpád Zoltán 
wrote:
> Have you added your new module to the list of Entry Point modules at
>
> project->properties ->Google->Web Toolkit ?

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 file
input and hideit and make your custom widget and on clicking a certain
button or something pass the click to the file input.
something like what he is trying to explain here
http://www.quirksmode.org/dom/inputfile.html

Cheers

On Mar 5, 12:26 pm, cupakob  wrote:
> Is there a file chooser (not file uploader) widget?

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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" instead of "Window", or better even "$wnd".
>
> hth
> Chris
>
> On Mar 5, 6:25 am, Ji  wrote:
>
> > Hi guys,
>
> > I use GWT Window.open to open another page. Firefox, Safari, and
> > Chrome all work find, except IE.
> > Error Message is : Invalid argument.
> > My Code is: Window.open("http://www.google.com";, "Google","" );
>
> > Anyone has idea what went wrong?
>
> > Thank you indeed!!!
>
> > Jim
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DatePicker disabling specified dates

2010-02-25 Thread Ashar Lohmar
after re-reading that message I find it a little to ... mixed up.

one idea was that you could use a ShowRangeHandlers that you'll
add it to your DatePicker object,
on the onShowRange() method you'll need to take the date list between
the start and the end of the range, and for the dates that are <= your
lastDisabledDate do a call of
  datepicker.setTransientEnabledOnDates(false,date);
or you could add the disabled dates to a list and call
  datepicker.setTransientEnabledOnDates(false,disabledDateList); //
this will call the first method so will be no gain
this approach is time consuming it's a heavy load when there are many
days to disable

a second idea:
 the default constructor DatePicker() calls the following constructor
   DatePicker(MonthSelector monthSelector, CalendarView view,
CalendarModel model)
 with the following arguments
   new DefaultMonthSelector(), new DefaultCalendarView(), new
CalendarModel()

the CalendarView (DefaultCalendarView) is the class that takes care of
the dates isEnable()
because you don't have access to that second constructor you'll have
to make your own DatePicker that extends DatePicker so that you could
access it, and instead of using the  DefaultCalendarView use your own
class made from the code of this one and change  in the inner class
CellGrid the method isEnabled() so that it'll make the check if the
date is < lastDisabledDate
lastDisabledDate would be set by a method of your 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 
> herehttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> 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 questions :P
>
> > On Feb 24, 4:47 pm, Ice13ill  wrote:
>
> > > I tried using formatting but i can't disable the cells of theDatePicker
>
> > > I just want to disable all dates before a given date. how do i do
> > > that ?
>
> > > On Jan 20, 6:54 pm, Jim Douglas  wrote:
>
> > > > If you're using a DateBox, you can define a custom Format with your
> > > > own parsing rules with:
>
> > > >      setFormat(new CustomDateFormat(DateTimeFormat.getFormat
> > > > (pattern)));
>
> > > >http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...)
>
> > > >     private static final String DATE_BOX_FORMAT_ERROR =
> > > > "dateBoxFormatError";
>
> > > >     private class CustomDateFormat extends DateBox.DefaultFormat
> > > >     {
> > > >         public CustomDateFormat(DateTimeFormat dateTimeFormat)
> > > >         {
> > > >             super(dateTimeFormat);
> > > >         }
>
> > > >         @Override
> > > >         public Date parse(DateBox dateBox, String dateText, boolean
> > > > reportError)
> > > >         {
> > > >             Date date = null;
> > > >             try
> > > >             {
> > > >                 if (dateText.length() > 0)
> > > >                 {
> > > >                     date = getDateTimeFormat().parseStrict(dateText);
> > > >                 }
> > > >             }
> > > >             catch (Exception exception)
> > > >             {
> > > >                 // According to the documentation, this should be an
> > > >                 // IllegalArgumentException, but bugs in
> > > > DateTimeFormat
> > > >                 // can cause other exceptions to be thrown, for
> > > > example:
> > > >                 // java.lang.StringIndexOutOfBoundsException: String
> > > > index out of range: 0
> > > >                 // at java.lang.String.charAt(String.java:558)
> > > >                 // at
> > > > com.google.gwt.i18n.client.DateTimeFormat.parseInt(DateTimeFormat.java:
> > > > 1415)
> > > >             }
> > > >             if (date == null)
> > > >             {
> > > >                 // If there are other formats you want to support, do
> > > > the parsing here
> > > >             }
> > > >             if (date != null)
> > > >             {
> > > >                 // If there aredatesthat you want to disallow, s

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 questions :P
>
> On Feb 24, 4:47 pm, Ice13ill  wrote:
>
> > I tried using formatting but i can't disable the cells of theDatePicker
>
> > I just want to disable all dates before a given date. how do i do
> > that ?
>
> > On Jan 20, 6:54 pm, Jim Douglas  wrote:
>
> > > If you're using a DateBox, you can define a custom Format with your
> > > own parsing rules with:
>
> > >      setFormat(new CustomDateFormat(DateTimeFormat.getFormat
> > > (pattern)));
>
> > >http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...)
>
> > >     private static final String DATE_BOX_FORMAT_ERROR =
> > > "dateBoxFormatError";
>
> > >     private class CustomDateFormat extends DateBox.DefaultFormat
> > >     {
> > >         public CustomDateFormat(DateTimeFormat dateTimeFormat)
> > >         {
> > >             super(dateTimeFormat);
> > >         }
>
> > >         @Override
> > >         public Date parse(DateBox dateBox, String dateText, boolean
> > > reportError)
> > >         {
> > >             Date date = null;
> > >             try
> > >             {
> > >                 if (dateText.length() > 0)
> > >                 {
> > >                     date = getDateTimeFormat().parseStrict(dateText);
> > >                 }
> > >             }
> > >             catch (Exception exception)
> > >             {
> > >                 // According to the documentation, this should be an
> > >                 // IllegalArgumentException, but bugs in
> > > DateTimeFormat
> > >                 // can cause other exceptions to be thrown, for
> > > example:
> > >                 // java.lang.StringIndexOutOfBoundsException: String
> > > index out of range: 0
> > >                 // at java.lang.String.charAt(String.java:558)
> > >                 // at
> > > com.google.gwt.i18n.client.DateTimeFormat.parseInt(DateTimeFormat.java:
> > > 1415)
> > >             }
> > >             if (date == null)
> > >             {
> > >                 // If there are other formats you want to support, do
> > > the parsing here
> > >             }
> > >             if (date != null)
> > >             {
> > >                 // If there aredatesthat you want to disallow, set
> > > date to null here
> > >             }
> > >             if (date == null && reportError)
> > >             {
> > >                 dateBox.addStyleName(DATE_BOX_FORMAT_ERROR);
> > >             }
> > >             return date;
> > >         }
> > >     }
>
> > > On Jan 19, 8:02 am, Mark Davis  wrote:
>
> > > > Hi,
>
> > > > I need todisablespecifieddatesinDatePicker.
>
> > > > What is the best way to do it?
>
> > > > thanks in advance,
> > > > Mark
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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. Java
> > does not allow the 'public' as part of package name, and hence eclipse
> > does not let me do that. So how can one name a package as e.g.
> > com.ashish.client.music.public (if I understood what you meant
> > correctly)
>
> In Eclipse, create a "folder", not a "package", it'll work.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 layout available to nicely place text and label fields on
> my page in GWT ? Please guide
>
> Thankx and Regards
>
> Vik
> Founderwww.sakshum.comwww.sakshum.blogspot.com

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: tomcat and apache problem

2010-02-24 Thread Ashar Lohmar
sorry i haven't read all the topic, the first question didn't said
anything about comet, from what I've understood by reading a few of
the answers I thought that the comet was given as an solution/
alternative.

i have no experience in working with comet, so i didn't use it.

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?
>
> > On Feb 23, 2:52 pm, Ashar Lohmar  wrote:
> > > 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 ajp://127.0.0.1:8009/
> > >     
> > > 
>
> > > in httpd/conf/httpd.conf i've uncommented a include line as below
> > > # Virtual hosts
> > > Include conf/extra/httpd-vhosts.conf
>
> > > in my tomcat/conf/server.xml the ajp connector is defined as below
> > >  > > address="127.0.0.1" />
> > > i also added the address="127.0.0.1" attribute to the others
> > >  tags as i want my app to be reached from "outside" only
> > > through httpd.
> > >  > > redirectPort="18443" address="127.0.0.1" />
>
> > > one more thing that you should have in mind is that i've compiled my
> > > httpd with the following params "--enable-proxy --enable-proxy-ajp --
> > > enable-proxy-balancer --enable-ssl --with-included-apr" and of course
> > > de --prefix param
> > > also i've "installed" the tomcat-native with "--with-apr=$HOME/httpd/
> > > bin/apr-1-config --with-java-home=$HOME/java --with-ssl=yes" and
> > > followed their instruction and added the lib in the LD_LIBRARY_PATH
>
> > > hope these will help you
> > > good luck
>
> > > On Feb 21, 2:00 am, Paul S  wrote:
>
> > > > So basically you are trying to serve up 2 things. An app from Tomcat
> > > > and some other web content from Apache server? Firstly, can't the
> > > > other content be served from Tomcat too? That way you could just stop
> > > > your Apache server from running, then configure Tomcat to load up on
> > > > port 80 (default for http) and that way no one will every know they're
> > > > hitting a Tomcat server. Or, there is an Apache server module, I
> > > > forgot the name, but is allows you to specify that any normal request
> > > > goes to the http server and then any request at /j/* gets pushed along
> > > > to the Tomcat server. I'm hazy on the details but have seen it working
> > > > before and I don't think it's using a proxy in the way you are.
>
> > > > Could work?
>
> > > > On Feb 16, 12:47 am, Fran  wrote:
>
> > > > > Hello,
>
> > > > > I need your help about GWT integration in apache and tomcat.
>
> > > > > I have a GWT aplication that has server side. This server side is
> > > > > listening in 8081 port at tomcat.
> > > > > I need that the client side be in apache that is listening in port
> > 80,
> > > > > so I need call server side at port 8081 of tomcat.
> > > > > How can I do?
>
> > > > > If I run the aplication int tomcat, its works fine. But If I run the
> > > > > aplication in apache, the server side dont work.
>
> > > > > Help me please
> > > > > Thanks
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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, ...) of this theme to
you module compilation, but it wont inject the css when the module is
loaded and you must add the css "by hand" ... in the html(or whatever)
page
   
and make sure it's before you css

2: the other workaround is to add "! important" to all the properties
of all the classes of you stylesheet

good luck






On Feb 23, 3:15 pm, Andrew Hughes  wrote:
> guess: perhaps it's the order in which the css files are listed and thus
> loaded.
>
> On Sun, Feb 21, 2010 at 3:44 AM, Pico  wrote:
> > Hi all,
> > I'm quite new to GWT. I'm currently facing an annoying issue with the
> > standard css overriding my own one no matter what.
>
> > In reference to
> >http://groups.google.fr/group/Google-Web-Toolkit/msg/3e630a3059303b19
> > andhttp://groups.google.fr/group/Google-Web-Toolkit/msg/15c54d6c9e88e5f0
> > I believe to have tried everything to change the behaviour, without
> > any success.
>
> > I tried:
>
> > in GWT.XML  > name='com.google.gwt.user.theme.chrome.ChromeResources'/> and
> > explicitly calling
> >  and
> >  in my HTML
> > file.
>
> > Also, having no css reference in my HTML file and injecting both files
> > via gwt.xml
> > 
> > 
>
> > No matter what, .gwt-XXX classes in chrome.css allways override the
> > myOwn.css classes.
>
> > What am I doing wrong?
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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"
folder is special, it take every thing in it and it puts it in the
folder where the gwtCompilation will be as it was done in the older
version (in GWT 1.6 the folder public was a "must" it was described as
part of an module),
the other importnat thing which i forget to say is that in
the .gwt.xml of the "consumer" module,
when you do the  you have to add
the  tag
in gwt-upload usage it asks to add these in my "consmer" module


now if think about it  ... you might try adding the  tag
in the gwt.xml of you libModule and check if it's the same result


sorry for the incomplete response i gave yesterday, i don't know all
these "by hart" i just remembered that i sow them there and told you
what's there after a brief analysis.

good luck






On Feb 23, 9:22 pm, Ashish Khivesara 
wrote:
> Ok. Sorry I did not read it right :( .. So i did add it in the folder
> named 'public' , However it does not seem to request for that resource
> (Music.css). Like you said I have not  included  src='Music.css' /> specification
> on the .gwt.xml file
>
> Wonder what's the issue here.. I am using GWT2.0.2
>
> On Tue, Feb 23, 2010 at 9:14 AM, Ashish Khivesara
>
>  wrote:
> > Thanks Ashar for your response. I am a little perplexed though. Java
> > does not allow the 'public' as part of package name, and hence eclipse
> > does not let me do that. So how can one name a package as e.g.
> > com.ashish.client.music.public (if I understood what you meant
> > correctly)
>
> > Thanks
> > Ashish
>
> > On Fri, Feb 19, 2010 at 5:52 PM, Ashish Khivesara
> >  wrote:
> >> This looks like a bug.
> >> Issue: If a module without a entry point includes a stylesheet element then
> >> the path is considered to be relative to the module that may inherit it.
> >> This make it rigid and thereby adds a dependency between the inheriting
> >> module.
> >> In my case Music module had this line in the Music.gwt.xml
> >> 
> >> Now Home module inherits Music modules.
> >> But GWT instead of looking for /music/Music.css, looks for the css resource
> >> in /home/Music.css
> >> [WARN] 404 - GET /home/Music.css (127.0.0.1) 1400 bytes
>
> >> On Fri, Feb 19, 2010 at 5:31 PM, Ashish Khivesara
> >>  wrote:
>
> >>> Well the issue here would maybe because the module here in question does
> >>> not an Entry point and hence there is no hostpage to inject this css
> >>> reference into.
> >>> So this there a way to make sure the inheriting module injects this
> >>> stylesheet in its host page??
>
> >>> Thanks
> >>> Ashish
> >>> On Fri, Feb 19, 2010 at 5:18 PM, Ashish Khivesara
> >>>  wrote:
>
>  I need to associate a local css resource file with a module. This module
>  does not have Entry point hence I cannot simply import it in the html.
>  Here is what I did
>  I added this line in my Music.gwt.xml
>  
>  Music.css resides in the war/ directory
>  Now I inherit this module in another Module. However the css resource
>  does not seem to be attached / downloaded.
>  Any pointers?
>  Thanks
>  Ashish
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 ajp://127.0.0.1:8009/



in httpd/conf/httpd.conf i've uncommented a include line as below
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

in my tomcat/conf/server.xml the ajp connector is defined as below

i also added the address="127.0.0.1" attribute to the others
 tags as i want my app to be reached from "outside" only
through httpd.



one more thing that you should have in mind is that i've compiled my
httpd with the following params "--enable-proxy --enable-proxy-ajp --
enable-proxy-balancer --enable-ssl --with-included-apr" and of course
de --prefix param
also i've "installed" the tomcat-native with "--with-apr=$HOME/httpd/
bin/apr-1-config --with-java-home=$HOME/java --with-ssl=yes" and
followed their instruction and added the lib in the LD_LIBRARY_PATH


hope these will help you
good luck










On Feb 21, 2:00 am, Paul S  wrote:
> So basically you are trying to serve up 2 things. An app from Tomcat
> and some other web content from Apache server? Firstly, can't the
> other content be served from Tomcat too? That way you could just stop
> your Apache server from running, then configure Tomcat to load up on
> port 80 (default for http) and that way no one will every know they're
> hitting a Tomcat server. Or, there is an Apache server module, I
> forgot the name, but is allows you to specify that any normal request
> goes to the http server and then any request at /j/* gets pushed along
> to the Tomcat server. I'm hazy on the details but have seen it working
> before and I don't think it's using a proxy in the way you are.
>
> Could work?
>
> On Feb 16, 12:47 am, Fran  wrote:
>
> > Hello,
>
> > I need your help about GWT integration in apache and tomcat.
>
> > I have a GWT aplication that has server side. This server side is
> > listening in 8081 port at tomcat.
> > I need that the client side be in apache that is listening in port 80,
> > so I need call server side at port 8081 of tomcat.
> > How can I do?
>
> > If I run the aplication int tomcat, its works fine. But If I run the
> > aplication in apache, the server side dont work.
>
> > Help me please
> > Thanks
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 with no entry point and css that
contains the css-classes for their widgets.

good luck

On Feb 22, 9:20 pm, Ashish Khivesara 
wrote:
> Any one with a solution for this issue?
> I even tried using UiBinder and css in conjunction to solve this issue but
> have not been able to.
>
> Any direction would be helpful.
>
> Thanks
> Ashish
>
> On Fri, Feb 19, 2010 at 5:52 PM, Ashish Khivesara <
>
> ashish.khives...@gmail.com> wrote:
> > This looks like a bug.
>
> > Issue: If a module without a entry point includes a stylesheet element then
> > the path is considered to be relative to the module that may inherit it.
> > This make it rigid and thereby adds a dependency between the inheriting
> > module.
>
> > In my case Music module had this line in the Music.gwt.xml
> > 
>
> > Now Home module inherits Music modules.
>
> > But GWT instead of looking for /music/Music.css, looks for the css resource
> > in /home/Music.css
>
> > [WARN] 404 - GET /home/Music.css (127.0.0.1) 1400 bytes
>
> > On Fri, Feb 19, 2010 at 5:31 PM, Ashish Khivesara <
> > ashish.khives...@gmail.com> wrote:
>
> >> Well the issue here would maybe because the module here in question does
> >> not an Entry point and hence there is no hostpage to inject this css
> >> reference into.
> >> So this there a way to make sure the inheriting module injects this
> >> stylesheet in its host page??
>
> >> Thanks
> >> Ashish
>
> >> On Fri, Feb 19, 2010 at 5:18 PM, Ashish Khivesara <
> >> ashish.khives...@gmail.com> wrote:
>
> >>> I need to associate a local css resource file with a module. This module
> >>> does not have Entry point hence I cannot simply import it in the html.
> >>> Here is what I did
>
> >>> I added this line in my Music.gwt.xml
>
> >>> 
>
> >>> Music.css resides in the war/ directory
>
> >>> Now I inherit this module in another Module. However the css resource
> >>> does not seem to be attached / downloaded.
>
> >>> Any pointers?
>
> >>> Thanks
> >>> Ashish
>
>

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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)
@RemoteServiceRelativePath("../servX")
which instead of /modB/servX or /modA/servX will become /servX no
matter what module calls it
also you'll need to make the proper changes in web.xml so that the
servlet class will be mapped to the /servX path



On Feb 21, 5:44 pm, Fabio  wrote:
> Hi,
>
> First, the scenario: I designed two GWT modules ("modA.gwt.xml and
> modB.gwt.xml"), each with its own services:
>
> // Module A services
> @RemoteServiceRelativePath("serv1")
> public interface Service1OnModuleA extends RemoteService { ... }
>
> @RemoteServiceRelativePath("serv2")
> public interface Service2OnModuleA extends RemoteService { ... }
>
> // Module B services
> @RemoteServiceRelativePath("servX")
> public interface ServiceXOnModuleB extends RemoteService { ... }
>
> @RemoteServiceRelativePath("servY")
> public interface ServiceYOnModuleB extends RemoteService { ... }
>
> At the server side, service implementations were configured to serve /
> modA/serv1, /modA/serv2, etc..., /modB/servX, /modB/servY.
>
> But when trying to consume Service1OnModuleA  from module B code, the
> call is directed to /modB/serv1, instead of /modA/serv1. Obviously, /
> modB/serv1 produces a HTTP 404 error.
>
> By the web, I found ServiceDefTarget can be used to configure absolute
> instead of relative paths:
>  * ((ServiceDefTarget) gwtService).setServiceEntryPoint("/some/
> absolute/path");
>
> What would be the best practices in these scenarios? The topics bellow
> can help to summarize the question.
>  * How to design and consume inter-module services?
>  * What's the best way to design service URLs?
>  * When to use and not to use RemoteServiceRelativePath annotation?
>  * Is there some way to define absolute paths without having to hard-
> code it everywhere via ServiceDefTaget casts?
>
> Thanks,
> Fábio.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Compilation of gwt project with multiple modules

2010-02-19 Thread Ashar Lohmar
from my experience trying to gwtcompile an module without EntryPoint
throwed an error (don't recall which)
modules/libraries that will be used with included don't need to be
GWTcompiled. exually (don't know how to spell it)
i have noticed that running apps which had this kind of module usage
in eclipse, in the war folder i only get folders (folder with
gwtcompild code with the names given by the rename-to attribute from
the module tag) for the modules that have entry points. so even that I
use code from the other modules i don't get folders for them

also on my production server, where i deploy the app,  i run the build
script that only gwtcompiles the modules with the entrypoints, an put
in the webapps\ROOT folder of the tomcat server only the content of
the war folder of my app.

for a (good/correct) gwt compile script  try building a dummy app
using the command line with webAppCreator.cmd (check the params) that
will also create a build.xml file which afterwards you could modify it
to suit your needs.

good luck

On Feb 19, 2:34 pm, vinayak  wrote:
> Thanks Ashar.
> So I can conclude following. Correct me if I am wrong.
> 1. There is no need to gwt 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.
>
> - vinayak
>
> On Feb 19, 4:36 pm, Ashar Lohmar  wrote:
>
>
>
> > 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 along with the .java files for the
> > classes in the (from the) folder that are mentioned by  > path='client'/>  tags.
>
> > when you'll GWTcompile the MyModuleUsage module GWT il put in 
> > thatcompilationall the classes needed for this module to run that
> > includes the classes from MyModule.
>
> > that in info is on AFAIK bases, if someone knows different please
> > correct me.
>
> > for "My question is , the way I am using multiple modules to reduce
> > files sizes, is it correct or no ?" only the people working on
> > developing GWT could give u an correct answer, my guess is that it'
> > wont reduce it. but it would be usefull if you've used MyModule in
> > other more modules like MyModuleUsage
>
> > Hope it helps you and clears some of you questions
> > good luck
>
> > On Feb 19, 7:28 am, vinayak  wrote:
>
> > > Moderators,
> > >                        Nobody is answering this question. Is it that
> > > others can not view this thread anywhere? Do I need to do something
> > > more to make it viewable to others ?
> > > Question must be easily answerable Please help.
> > > Thanks.
>
> > > - vinayak
>
> > > On Feb 17, 11:17 am, vinayak  wrote:
>
> > > > Hello,
> > > >            I am a newbie to GWT and using gwt 2.0 and now gwt 2.0.2 to
> > > > create my web application. (Actually I am converting my existing app
> > > > to a gwt app...). To do this I am trying one small example. To avoid
> > > > very large .no-cache.js file and large first page Ioad time, I have
> > > > created 1 module (e.g. MyModule) and I am using it in my main gwt
> > > > project by inheriting it. My main project name is MyModuleUsage.
>
> > > > Here is the code in MyModule. This has no entrypoint class. It has one
> > > > MyForm class, one DetailsService and .gwt.xml file.  (given below)
>
> > > > public class MyForm extends Composite {
> > > >   // Code to create my form
>
> > > > }
>
> > > > MyModule.xml:
>
> > > > 
> > > > 
> > > >   
> > > >   
> > > > 
>
> > > > After creating this module, I created MyModule.jar with src and class
> > > > files as described on
>
> > > >http://developerlife.com/tutorials/?p=229 (Although it was for
> > > > gwt1.4 and IDEA, I could use that info on gwt 2.0 and eclipse.)
>
> > > > I created MyModule.jar manually by copying src and class files in
> > > > required dir structure. ( I hope there is some utility of gwt itself
> > > > to create one...please let me know if any)
>
> > > > Code for MyModuleUsage is as given below.
>
> &g

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 along with the .java files for the
classes in the (from the) folder that are mentioned by   tags.

when you'll GWTcompile the MyModuleUsage module GWT il put in that
compilation all the classes needed for this module to run that
includes the classes from MyModule.

that in info is on AFAIK bases, if someone knows different please
correct me.

for "My question is , the way I am using multiple modules to reduce
files sizes, is it correct or no ?" only the people working on
developing GWT could give u an correct answer, my guess is that it'
wont reduce it. but it would be usefull if you've used MyModule in
other more modules like MyModuleUsage

Hope it helps you and clears some of you questions
good luck

On Feb 19, 7:28 am, vinayak  wrote:
> Moderators,
>                        Nobody is answering this question. Is it that
> others can not view this thread anywhere? Do I need to do something
> more to make it viewable to others ?
> Question must be easily answerable Please help.
> Thanks.
>
> - vinayak
>
> On Feb 17, 11:17 am, vinayak  wrote:
>
>
>
> > Hello,
> >            I am a newbie to GWT and using gwt 2.0 and now gwt 2.0.2 to
> > create my web application. (Actually I am converting my existing app
> > to a gwt app...). To do this I am trying one small example. To avoid
> > very large .no-cache.js file and large first page Ioad time, I have
> > created 1 module (e.g. MyModule) and I am using it in my main gwt
> > project by inheriting it. My main project name is MyModuleUsage.
>
> > Here is the code in MyModule. This has no entrypoint class. It has one
> > MyForm class, one DetailsService and .gwt.xml file.  (given below)
>
> > public class MyForm extends Composite {
> >   // Code to create my form
>
> > }
>
> > MyModule.xml:
>
> > 
> > 
> >   
> >   
> > 
>
> > After creating this module, I created MyModule.jar with src and class
> > files as described on
>
> >http://developerlife.com/tutorials/?p=229 (Although it was for
> > gwt1.4 and IDEA, I could use that info on gwt 2.0 and eclipse.)
>
> > I created MyModule.jar manually by copying src and class files in
> > required dir structure. ( I hope there is some utility of gwt itself
> > to create one...please let me know if any)
>
> > Code for MyModuleUsage is as given below.
>
> > public class MyModuleUsage implements EntryPoint {
>
> > public void onModuleLoad() {
> > // My buttons and textboxes and tables
> >                 MyForm myform = new
> > MyForm();                             // This is from inherited
> > module.
> >                 RootPanel.get("MyMod").add(myform.asWidget());
> > // some more buttons...and their click handlers..
>
> > }
>
> > MyModuleUsage.gwt.xml
>
> > 
> > 
> >   
> >   
> >   
> >   
> >   
> >   
> > 
>
> > There is one more service of this project itself to handle clicks of
> > buttons created inside MyModuleUsage..
>
> > Now if I run MyModuleUsage then I get required output. Click on
> > buttons of Myform are handled by service inside MyModule and click on
> > buttons of MyModuleUsage are handled by service inside MyModuleUsage
> > as expected. This gives me a feeling that I can use MyModule as
> > indepedent component which I can use any other gwt project.
>
> > If I do a gwtcompilationof MyModuleUsage in eclipse then generated
> > no-cache.js file is of 6 kb and cache.html file is of 80 kb.
>
> > If I write code to generate same UI and service inside a single module
> > then generated no-cache.js file is of 10 kb and cache.html file is of
> > 230 kb.
>
> > My question is , the way I am using multiple modules to reduce files
> > sizes, is it correct or no ?
> > Second I have never gwt compiled MyModule independently. so when
> > exactly it gets compiled ?
> > where are the compiled files for MyModule.- Hide quoted text -
>
> - Show quoted text -

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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, i put the jar in the war\WEB-INF\lib folder, and the using
eclipse I add it to the build path

but one more thing ... i just noticed ... why do you have the
appengine in a application that will use an "normal" SGBD ?
if i recall well, using appengine you won't be able to connect to the
database

any way hope any of this helps
cheers

On Feb 9, 11:24 am, vinod M  wrote:
> HI,
>
> Can anyone help me in solving the issue faced while developing the
> application using Postgres DB with SmartGWT-2.0 and GWT 2.0, failing
> to establish the connection.
>
> Configuration Details
>
> Eclipse 3.4 (Ganymede)
> Gwt plugin
> Appengine 1.3
> GWT 2.0
> SmartGwt 2.0
> Postgres Sql DB
>
> I initially tried setting external library path for the
> 'postgresql-8.4-701.jdbc4.jar' and tried running the server got this
> error attached below.
>
> Code:
>
> Initializing AppEngine server The server is running athttp://localhost:/
> java.lang.ClassNotFoundException: org.postgresql.Driver at
> java.net.URLClassLoader$1.run(URLClassLoader.java:200) at
> java.security.AccessController.doPrivileged(Native Method) at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>
> I tried putting the same jar file inside the war/WEB-INF/lib and
> restarted the server, and error log reads below
>
> Code:
>
> Initializing AppEngine server The server is running athttp://localhost:/
> 9 Feb, 2010 7:00:26 AM
> com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE:
> [1265698826728000] javax.servlet.ServletContext log: Exception while
> dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract java.lang.String
> com.zo.zotweb.client.GreetingService.greetServer(java.lang.String)'
> threw an unexpected exception: java.lang.NoClassDefFoundError:
> java.net.Socket is a restricted class. Please see the Google App
> Engine developer's guide for more details. at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
> 378) at
> com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
> 581) at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
> 188) at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
> 224) at
> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
> 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
> at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1093) at
> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
> 51) at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1084) at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
> 43) at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1084) at
> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
> 121) at org.mortbay.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1084) at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
> 360) at
> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
> 216) at
> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
> 181) at
> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
> 712) at
> org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
> at
> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
> 70) at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 139) at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:352) at
> org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
> 139) at org.mortbay.jetty.Server.handle(Server.java:313) at
> org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506) at org.mortbay.jetty.HttpConnection
> $RequestHandler.content(HttpConnection.java:844) at
> org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at
> org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
> org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at
> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
> 396) at org.mortbay.thread.BoundedThreadPool
> $PoolThread.run(BoundedThreadPool.java:442) Cau

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 gwt doesn't detect it as url, may be i should use HTML?
>
> Regards.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 the url, you
won't see the client modfications if you refresh the browser.

cheers,
take a glance on the documentation for development mode

On Feb 10, 9:50 am, go canal  wrote:
> it ishttp://127.0.0.1:/
>  rgds,
> canal
>
> 
> From: Jason Parekh 
> To: google-web-toolkit@googlegroups.com
> Sent: Tue, February 9, 2010 11:38:47 PM
> Subject: Re: can not set breakpoint
>
> Hi Canal,
>
> Which URL is your browser pointing at?
>
> jason
>
> On Mon, Feb 8, 2010 at 8:51 PM, go canal  wrote:
>
> I have upgraded JDK to 1.6u18. tried the default project greetService, still 
> the same.> rgds,
> >canal
>
> 
> From: Jason Parekh 
>
> >To: google-web-toolkit@googlegroups.com
> >Sent: Mon, February 8, 2010 11:34:43 PM
> >Subject: Re: can not set breakpoint
>
> >Hi Canal,
>
> >What version of Java are you running?
> >Could you try on a simple project (perhaps the default app created by the 
> >wizard)?
> >I'm assuming the breakpoints do not show the checkmark on top of them (when 
> >the debugger is connected)?
>
> >jason
>
> >On Sun, Feb 7, 2010 at 8:05 PM, canal  wrote:
>
> >hi,
> >>searched the group but still can not make it work - can not set
> >>breakpoint in the client code
>
> >>i am using Eclipse 3.5, GWT 2.0.1, with plugin. Chrome;
>
> >>I can not set any breakpoint in the client code - not in the callback,
> >>not in the OnModuleLoad.
>
> >>Server code is ok.
>
> >>thanks
> >>canal
>
> >>--
> >>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-tool...@googlegroups.com.
> >>To unsubscribe from this group, send email to 
> >>google-web-toolkit+unsubscr...@googlegroups.com.
> >>For more options, visit this group 
> >>athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> >--
>
> >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-tool...@googlegroups.com.
> >To unsubscribe from this group, send email to 
> >google-web-toolkit+unsubscr...@googlegroups.com.
> >For more options, visit this group 
> >athttp://groups.google.com/group/google-web-toolkit?hl=en..
>
> >--
>
> >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-tool...@googlegroups.com.
> >To unsubscribe from this group, send email to 
> >google-web-toolkit+unsubscr...@googlegroups.com.
> >For more options, visit this group 
> >athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 wouldn't affect the application, if the gwt will put it back
or you'll end up with some errors

On Feb 9, 3:54 am, go canal  wrote:
> [sorry if this is duplicated]
>
> Trying to use RootPanel.get().clear(); but it does not clear anything from 
> the page. Here is the HTML file:
>
>   
>
>     
>      style="position:absolute;width:0;height:0;border:0">
>
>     
>     
>       
>         Your web browser must have JavaScript enabled
>         in order for this application to display correctly.
>       
>     
>
>     
>
>     
>       
>         
>         
>         Login
>       
>       
>         bring certainty to the 
> uncertainty
>         
>       
>       
>         
>           metaverse© Copyright 2009-2010
>           
>       
>       
>         
>         
>       
>     
>
>   
>
> I am expecting that everything in the  will be removed.
>
> rgds,
> canal

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 represented by the RootPanel.get()

an work around would be to do something like
RootPanel.get().getElement().setInnerHTML(""); but the when you'll try
an RootPanel.get("nameofcontainer") you'll get nothing because there
will no more be an object with the id=nameofcontainer

also it's possible to end up with "artifacts" object that you may have
in memory but don't exist in the page/document (i don't know if this
is true for sure).
hope I managed to explain it so that you could understand my point
good luck in finding a solution, or if you'll come back with more
details of what you want to achieve maybe I/we would be able to help
more.

On Feb 8, 4:46 am, go canal  wrote:
> Hi,
> I try to add RootPanel.get().clear() in the callback but it does not clear 
> anything. If I use RootPanel.get("nameofcontainer").clear(), then it works - 
> that widget is removed.
>
> I am using the default greet example. GWT 2.0.1, Chrome browser. This is how 
> I create the widgets: 
> RootPanel.get(
> RootPanel.get(
> RootPanel.get(
> RootPanel.get("nameFieldContainer").add(nameField);"passwordFieldContainer").add(passwordField);"sendButtonContainer").add(sendButton);"errorLabelContainer").add(errorLabel);
>
> Did I understand RootPanel.get().clear() correctly - I thought it will 
> clear everything on the page
> rgds,
> canal

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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
hope it helps
good luck

On Jan 27, 4:05 pm, mariyan nenchev  wrote:
> Hi,
> How to specify locale when formating date?

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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
HorizontalPanel hp1 = new HorizontalPanel();
hp1.setWidth("100%");
hp1.add(content);
HorizontalPanel hp2 = new HorizontalPanel();
hp2.setWidth("100%");
hp2.getElement().getStyle().setProperty("overflow","hidden");
tp.add("tab1",hp2);

the trick will be to find out when the inner panel has bigger width
than the outer panel(or the "deck" of the tabpanel) an then show the
buttons
and on the buttons onClick() you'll do something like hp2.getElement
().setScrollLeft(incremented/decremented value)

...
hope it will be any help

good luck

On Jan 20, 8:15 pm, blopes  wrote:
> Hi!
>
> I would like to add some kind of slide items to the  TabPanel TabBar .
>
> I am adding dynamically labels to the tab and when the length of all
> added labels is greater than the tab width
> the symbol less(<) and greater(>) should appear in each side to be
> able to scroll left and right. Or instead of that an scroll bar. I
> would prefer the < and >.
>
> Do you have any idea how to do it ?
>
> Thank you,
>
> Bruno

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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/objects to see
another "trick"

hope it helps
good luck


On Jan 22, 2:57 am, Alexei Telles  wrote:
> Hi, I'm just starting using the gwt-incubator.
> I need to make a table, so I am using a FixedWidthFlexTable to the
> header and a FixedWidthGrid to the dataTable (content of the table).
>
> I have a procedure that mounts the dataTable
>
> The problem that I am having is:
> when my dataTable have more than one column, the dataTable is ok
>
> I am setting the width to 100%, so my table fits my div at all.
>
> But when my table have only one column, I don't know why the column
> width stays to short
> Of course, if I use the method setColumnWidth of the FixedWidthGrid
> works fine, but I use the same procedure to generate all tables of my
> application, so I can't do that!!!
>
> I don't know if I gave a good explanation about my problem.
>
> I am trying to use the Firebug to discover what i am doing wrong, but
> the HTML code generated is a little confused.
>
> Is ther anything in the FixedWidthGrid about the first column of the
> table, or is there a way to I set all widths of my table like
> automatic?
>
> I appreciate any help
>
> Thanks...

-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



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 rotated, I saw the same thing on other picture
managers to.
maybe that's your problem or something similar to that.

to check that this is the case, open the image with paint for example.

I don't see another reason why this could happen, or maybe I'm wrong.

Good luck

On Jan 18, 5:10 pm, Deerman  wrote:
> I am reading in an image from the user on the server side and copying
> it to the war folder. This process works fine.
>
> Then, through an RPC call, I get the location of the image and display
> the image to my Image object (which is placed in a VerticalPanel).
>
> The image is visibly, but the problem is for some images they are
> either rotated 90 degrees or -90 degrees. Am I missing something?
>
> Thanks
-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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 possible. Is there a hack
> available?
>
> Ronald
-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.OptGroupElement;
import com.google.gwt.dom.client.OptionElement;
import com.google.gwt.dom.client.SelectElement;
import com.google.gwt.user.client.ui.ListBox;

/**
 * @author Lohmar ASHAR
 */
public class ExtendedListBox extends ListBox {
private Map groups = new HashMap();

public ExtendedListBox() {
this(false);
}

public ExtendedListBox(boolean isMultipleSelect) {
super(isMultipleSelect);
}

public ExtendedListBox(Element element) {
super(element);
}

public void insertItemToOptGroup(String group, String item, String
value) {
OptGroupElement oge = getGroup(group);
OptionElement option = Document.get().createOptionElement();
option.setText(item);
option.setValue(value);
oge.appendChild(option);
}

private OptGroupElement getGroup(String group) {
OptGroupElement oge = groups.get(group);
if (oge == null) {
insertOptGroup(group);
return getGroup(group);
} else
return oge;
}

public void insertOptGroup(String item) {
SelectElement select = getSelectElement();
OptGroupElement oge = Document.get().createOptGroupElement();
groups.put(item, oge);
oge.setLabel(item);
select.appendChild(oge);
}

private SelectElement getSelectElement() {
return getElement().cast();
}

public String getValue(int index) {
return getOptionValue(this.getElement(), index);
}

public native String getOptionValue(Element elem, int index) /*-{
return elem.options[index].value;
}-*/;

@Override
public void clear() {
groups.clear();
super.clear();
getSelectElement().setInnerHTML("");
}
}

not very fancy, but it suited my needs. hope it helps

good luck



On Jan 11, 5:20 pm, rmuller  wrote:
> Using the standard GWT API this is not possible. Is there a hack
> available?
>
> Ronald
-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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. Even when I installed it manually, nothing
> happens. Breakpoints just don't halt the running.
>
> Mac 10.6 (updated to the latest), Eclipse 3.5.1, Java 1.6.0
> Tried with the latest stable Firefox and Chrome
>
> On Jan 5, 10:45 am, y  wrote:
>
> > When GWT was working with its internal browser, debugging from Eclipse
> > was simple. I just marked the breakpoints and ran as debug. However,
> > it doesn't seem to work with GWT 2.0 and Firefox. Any idea what am I
> > missing?
>
> > Thanks
>
>
-- 
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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 DefaultCalendarView(),

use a class made by the source code of that with the following changes
in the inner class CellGrid (line 37)
 you'll have to override the isEnabled() method so that it make the
check if the date is < lastDisabledDate

lastDisabled could be a property in the "MyDefaultCalendarView" and
also could/should be set by an method from the "MyDatePicker"

also you could add a ShowRangeHandlers that on onShowRange() ...
would iterate days between the start an end and do
datepicker.setTransientEnabledOnDates(false,date) on each iteration
or you could put the in a list and make the only once
datepicker.setTransientEnabledOnDates(false,dateList) (this will call
the first method so it'll be the same thing)

this second method it's a lot more time/resource consuming pick your
choice.


... hope this will help
Good luck

On Jan 4, 3:52 pm, Dariusz  wrote:
> Hi!
>
> Is there a function how to prevent people selecting a date, which is
> in the past? Something like, setMinDate( Date date)?
>
> Thanks

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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
NumberFormat.getDecimalFormat() ... wil give the standard
decimalFormat for the specified locale,

NOTE: using locale you'll get extra permutations ( number of browser
implementations multiplied by (the number of specified locales+1))
so if you need only a few formattings "here an there" you would better
use "hand made" formater

Good luck

On Jan 5, 4:23 am, oks  wrote:
> Can I get the regional setting for number from GWT?
>
> By using number format, this seems to be using a fixed type of
> format

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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 property on
some object for your convenience, and in the moment you do the
"action" that adds the the form ... you "remove"/"clear" the old form,
and set it with the new form ...


hope it helps ... excuse my English and the lack of the details I'm in
a bit of a hurry. I'll come back with more if you'll need



On Dec 30, 6:08 am, amjibaly  wrote:
> I was just exploring using the form option, I know RPC is better in
> most situations. Just to clarify on your response, do you mean that
> adding an arbitrary number of 'invisible' forms (just used to submit
> requests) to the RootPanel will not cause any performance issues? In
> other words, do i ever have to remove the forms I add to the root
> panel if they are invisible? If so, what is the best approach to do
> that?
>
> Thanks
>
> On Dec 29, 4:50 pm, rjcarr  wrote:
>
> > I hate it when people answer questions with other questions, but why
> > would you do this?
>
> > Since the form is hidden the user would have no way to submit it,
> > rendering it useless.  If you want to communicate with the server,
> > simply set up and use an RPC.
>
> > Attempting to answer your questions ...
>
> >  1) Yes, I would think the form would need to be added to the
> > RootPanel to be functional.
>
> >  2) If you want to submit this form then yes, it will need to be added
> > (directly or indirectly) to the RootPanel.  The is no "memory leak" in
> > submitting a form.
>
> > On Dec 28, 11:20 pm, amjibaly  wrote:
>
> > > Hi,
>
> > > I've been playing around with sending an "invisible" form using
> > > FormPanel:
>
> > > FormPanel form = new FormPanel();
> > > form.setAction(url);
> > > form.setMethod(FormPanel.METHOD_POST);
> > > form.setEncoding(FormPanel.ENCODING_URLENCODED);
> > > form.add(new Hidden("abc", "xyz"));
> > > form.addSubmitCompleteHandler(new SubmitCompleteHandler() {...});
> > > form.setVisible(false);
> > > RootPanel.get().add(form);
>
> > > I have a couple questions regarding this:
>
> > > 1- If I do not add the form to the RootPanel, the browser opens a new
> > > window for the response, and the SubmitCompleteHandler event is never
> > > fired. Is it necessary to add the form to the RootPanel to get the
> > > correct functionality?
>
> > > 2- If I do add the form to the RootPanel, would I have to somehow
> > > remove it later on? Since this code may be executed an arbitrary
> > > number of times would that cause a problem (memory leak or something)?
>
> > > Thanks,
> > > Abdullah
>
>

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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, you could try to
make "loading" invisible
RootPanel.get("entries").getElement.getStyle().setProperty
("display","none");

Hope it helps
Good Luck


On Dec 14, 4:20 pm, Joe  wrote:
> Well Dennis,
>
> First, I need to know the following tag  is the main
> tag in your Hosted HTML file??? if so, you should be able to remove
> everything inside it with the RootPanel.get().clear() method.
> However, if the tag  was generated by the GWT
> compiler from a FlowPanel, or FocusPanel or any other panel, than you
> should call the panel.removeChild() method, which Im sure you're aware
> of that already :)
>
> If none of the above is your case, then please be more clear about it
> and if possibly, you could post your Java code here.
>
> Regards,
> Joe
>
> On Dec 14, 4:08 pm, Jan Ehrhardt  wrote:
>
>
>
> > RootPanel's clear method only removes GWT widgets. I would recommend to
> > prevent the mixing of HTML in your host page and GWT widgets. Use a label
> > widget instead.
> > If this isn't an option, you can do:
>
> > Element element = RootPanel.get("entries").getElement();
> > DOM.removeChild(element, 0);
>
> > This will manipulate the DOM directly and thus it's not recommended.
>
> > Regards
> > Jan Ehrhardt
>
> > On Sun, Dec 13, 2009 at 11:09 PM, Dennis Madsen  wrote:
> > > I've this HTML code:
>
> > >        
> > >                Loading guestbook entries..
> > >        
>
> > > When calling a "RootPanel.get("entries").clear();" I expected that all
> > > childs inside this div will be removed. But it doesn't. How can I
> > > really clear the div?
>
> > > --
>
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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 styleName to this panel
put this panel in the original panel

 HorizontalPanel bannerPanel = new HorizontalPanel();
 bannerPanel.addStyleName("bannerPanel");
     Image logo = new Image("images/Logo220x57.png");
 HorizontalPanel logoWrapper = new HorizontalPanel();
 logoWrapper.setWith("220px");
     logoWrapper .add(logo);
 logoWrapper.addStyleName("bannerLogo") ; //or you could use
setStyleName();
 bannerPanel.add(logoWrapper);

or
b) use a grid instead of an HorizontalPanel
so that you have acces to the cell

Grid grid = new Grid(1,0);
grid.addStyleName("bannerPanel");
Image logo = new Image("images/Logo220x57.png");
// this could be put in a method that recives the "widget" and
you'll end up with a grid acting up more like an horizontal panel
//-
int col=grid.getColumnCount();
grid.resizeColumns(col+1);
grid.setWidget(0, col, logo);
//-
grid.getCellFormatter().addStyleName(0, col, "bannerLogo");

Anyway I hope that one of my ideas will help


On Dec 14, 6:06 pm, Eric  wrote:
> Hello all,
>
> Is it possible to get a handle on a particular cell in a
> HorizontalPanel?  I want to use a style sheet to set the background on
> the cell that contains the logo image.  I'm starting to feel like "you
> can't get there from here"  Is there some other way to approach the
> problem?  Why isn't there a "setCellStyleName" or similar method?
>
>     HorizontalPanel bannerPanel = new HorizontalPanel();
>     bannerPanel.addStyleName("bannerPanel");
>     Image logo = new Image("images/Logo220x57.png");
>     bannerPanel.add(logo);
>     // TODO figure out how to attach a style to the IMMEDIATE parent
>     logo.getParent().addStyleName("bannerLogo") ;  // This doesn't
> work.  It attaches the style to the whole 
>     bannerPanel.setCellWidth(logo, "220px");
>
> Thanks,
> Eric

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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 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 Label(result);
> > vp.insert(response,0)
>
> > the best way is to have the VerticalPanel as a private field so that
> > you'll have acces to it inside the AsyncCallback
>
> > Good Luck
>
> > On Dec 14, 6:38 pm, Dennis Madsen  wrote:
>
> > > I'm adding a label into a div on my HTML:
> > > RootPanel.get("entries").add(myLabel);
>
> > > But what if I would like to prepend the label instead of adding it?
> > > How can I do so?

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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 Label(result);
vp.insert(response,0)

the best way is to have the VerticalPanel as a private field so that
you'll have acces to it inside the AsyncCallback

Good Luck

On Dec 14, 6:38 pm, Dennis Madsen  wrote:
> I'm adding a label into a div on my HTML:
> RootPanel.get("entries").add(myLabel);
>
> But what if I would like to prepend the label instead of adding it?
> How can I do so?

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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#installing)

you should after that go to the projects properties page and select
the GWT 2.0 SDK instead of GWT 1.7

and finally the most important thing all the pages from an GWT app
should be accesed with "?gwt.codesvr=localhost:9997" at the end
so that the page should show the lastest changes in the code an also
so that the page would comunicate with eclipse
if that parameter is missing all that you'll see is the latest version
of the compiled page as any other ordinary server


I hope I managed to explain something so that you'll understand.
please excuse my English as it is not my native language.

Good luck


On Dec 14, 3:49 pm, Ignat Alexeyenko 
wrote:
> Don't you forget that there no platform-specific jar in GWT2.0:
> gwt-dev-linux.jar was replaced with gwt-dev.jar
>
>
>
> On Sat, Dec 12, 2009 at 8:44 AM, Rick  wrote:
> > Hi all
>
> > I have just shifted my application to GWT 2.0  from GWT 1.7 as
> > discussed in
> >http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html.
> > But In new development mode window there is no option for compile/
> > browse to check my code in compile mode. Also I have applied a
> > Window.alert in onModuleLoad to check whether it is reflecting or not.
> > By clicking on 'Launch Default Browser' my application get run in
> > Mozilla but Window.alert is not coming. It is showing previous
> > compiled version(The version I compilled with GWT 1.7 jars)
>
> > Thanks and regards
>
> > Rick
>
> > --
>
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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 class that extends DatePicker calling the constructor
with the (MonthSelector monthSelector, CalendarView view,
CalendarModel model)
using your MonthSelector instead of the DefaultMonthSelector

didn't try it but i think it should do.

Good luck !


On Dec 14, 12:27 pm, Abdullah Shaikh 
wrote:
> Hi All,
>
> I am using DateBox control, its ok for date navigation, but for year
> navigation, let's say I want to select the day of year 2015, I need to go
> through all the months to change the year.
>
> Am I missing something here or have anyone extended the DateBox to support
> year navigation in GWT. I am looking for something like 
> thishttp://www.softcomplex.com/products/tigra_calendar/
>
> Thanks,
> Abdullah

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




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 objects but on Gwt-compiling
I endup with a lot of code referencing all kinds of Listeners and
stuffs that are unrelated to the RPC service.

Basically the messages appear because the Listeners are deprecated,but
what are they doing there in the first place ?

hope someone will clear this up

On Dec 8, 7:24 pm, Luis Fernando Planella Gonzalez
 wrote:
> Hi.
> We're using GWT 1.7 and I'm starting to experiment with 2.0 RC2 to
> evaluate GWT.runAsync().
>
> However, now as I compile the app, I get warning for deprecations in
> all RPC methods which return collections. I guess it's because the
> result is declared as java.util.Collection, and the deprecated
> com.google.gwt.user.client.ui.*ListenerCollection classes extends
> ArrayList, making even the alternative to change the result of RPC
> methods to ArrayList instead of Collection don't work.
>
> The log is something like this, multiple times:
>             [WARN] Warnings in 'generated://
> 8D0B12EA4B123D9B133384111C9A7E38/nl/strohalm/cyclos/client/app/users/
> images/UserImageRemoteService_TypeSerializer.java'
>                [WARN] Line 50: Referencing deprecated class
> 'com.google.gwt.user.client.ui.ChangeListenerCollection'
>                [WARN] Line 55: Referencing deprecated class
> 'com.google.gwt.user.client.ui.ClickListenerCollection'
>                [WARN] Line 60: Referencing deprecated class
> 'com.google.gwt.user.client.ui.FocusListenerCollection'
>                [WARN] Line 65: Referencing deprecated class
> 'com.google.gwt.user.client.ui.FormHandlerCollection'
>                [WARN] Line 70: Referencing deprecated class
> 'com.google.gwt.user.client.ui.KeyboardListenerCollection'
>                [WARN] Line 75: Referencing deprecated class
> 'com.google.gwt.user.client.ui.LoadListenerCollection'
>                [WARN] Line 80: Referencing deprecated class
> 'com.google.gwt.user.client.ui.MouseListenerCollection'
>                [WARN] Line 85: Referencing deprecated class
> 'com.google.gwt.user.client.ui.MouseWheelListenerCollection'
>                [WARN] Line 90: Referencing deprecated class
> 'com.google.gwt.user.client.ui.PopupListenerCollection'
>                [WARN] Line 95: Referencing deprecated class
> 'com.google.gwt.user.client.ui.ScrollListenerCollection'
>                [WARN] Line 100: Referencing deprecated class
> 'com.google.gwt.user.client.ui.TabListenerCollection'
>                [WARN] Line 105: Referencing deprecated class
> 'com.google.gwt.user.client.ui.TableListenerCollection'
>                [WARN] Line 110: Referencing deprecated class
> 'com.google.gwt.user.client.ui.TreeListenerCollection'
>                See snapshot: /tmp/
> UserImageRemoteService_TypeSerializer2951604978153994580.java
>
> Is there a way to remove those classes from being handled in RPC?

--

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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.