Re: how to proxy all the methods in my RemoteServiceServlet
Hi, If you don't want to give a try with Spring( or Guice), you could use AspectJ to weave your desired behaviour (handling security). But it might be more long && hard than to learn spring && spring security (I've just post a project that illustrate this). hih On Fri, Oct 3, 2008 at 7:23 AM, deanhiller <[EMAIL PROTECTED]> wrote: > > I saw someone talking about proxying all the methods to add code(like > an aspect or filter) using spring and I am wondering how I can do > this(hopefully without spring as I don't feel like learning that right > now and just want a quick solution). > > Basically, if my GWT servlet has these methods > public void doSomething(int i); > public String doSomethingAgain(String s); > public long increaseSomething(int i); > > BEFORE methods are even called, I want to chech if there is a User > object in the Session(ie. user is logged in). If there is not, the > Session probably expired and I want to throw a NotLoggedInException on > every one of these methods(but not in the method itself). I would > prefer this is reusable in an abstract class that implements > RemoteServiceServlet and any GWT Servlet any team creates here will > extend that and inherit this functionality since all the > authentication stuff is the same for all our services. > > How do I do this in a common way? It looks like the > RemoteServiceServlet is kind of screwed up in not exposing a good > method to override that I could use as the filter. > > Any ideas? > thanks, > Dean > > > > -- "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible" - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Struts2 Integration
Hi Frank GWT FormPanel support regular (HTML) post ! On Thu, Oct 2, 2008 at 8:41 PM, FrankNC <[EMAIL PROTECTED]> wrote: > > I am new to GWT. I have a existing Web application which is using > Struts 2. I am considering to use GWT on some of the Web pages in this > web application. > > I took a look at the Struts GWT Plugin. It looks good. But it only > covers how to use asynchronous call to the Struts action on the server > side and how to process the data returned from the action in GWT. The > Web page is still controlled by the same GWT module. > > However, in some cases I just want to use the GWT as a Web UI, but do > not want the Ajax (asynchronous call) part. For example, I want to use > GWT to build a form and do client side verification, after the user > click the "submit" button, instead of sending an asynchronous call to > the server, I want it acting as a regular form post, which posts the > data to the Struts 2 action on the server side and let the server > redirect the Web page based on the result of the action. It can be a > plain Jsp file or another Jsp file which has GWT in it. > > Can someone help me on this? > > Thanks in advance, > > Frank > > > > -- "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible" - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Timers - say no to it with IE
Right, sorry that I haven't posted code before. And the broblem is actually not in timers, because I temporarily removed them, there's smth else. Here is the code: // file ChartItem.java public class ChartItem extends AbsolutePanel implements ChartItemChanger { private PopupMenu pp = PopupMenu.getInstance(); private ChangeListener mouseOverListener, mouseOutListener, mouseOnClickListener,mouseOnMouseDownListener, mouseOnMouseUpListener; public ChartItem () { sinkEvents(Event.MOUSEEVENTS); setMouseListeners(); } private void setMouseListeners() { mouseOnClickListener = new ChangeListener() {/* This is the place where IE does not respond*/ public void onChange(final Widget wdgt) { /* Sending link to an interface */ pp.setChartItemInterface(ChartItem.this); /* Calling standard methods of PopupPanel class*/ pp.setPopupPosition(getAbsoluteLeft(), getAbsoluteTop() ); pp.show(); } }; mouseOnMouseDownListener = new ChangeListener() {...} mouseOnMouseUpListener = new ChangeListener() {...}; mouseOverListener = new ChangeListener() {...}; mouseOutListener = new ChangeListener() {...}; } public void onBrowserEvent(Event event) { super.onBrowserEvent(event); int type = DOM.eventGetType(event); switch (type) { case Event.ONCLICK: mouseOnClickListener.onChange(this); break; ... } } } // // file PopupMenu.java /* A singleton class */ final public class PopupMenu extends PopupPanel { private static PopupMenu INSTANCE; private ChartItemChanger changer; public static PopupMenu getInstance() { if (INSTANCE == null) { INSTANCE = new PopupMenu(); } return INSTANCE; } private PopupMenu() { super(true); ... } void setChartItemInterface(ChartItemChanger changer) { this.changer = changer; } @Override public void show() { if (Flags.ALLOW_POPUP_MENU_SHOWING) super.show(); } } // file Flags.java public class Flags { boolean ALLOW_POPUP_MENU_SHOWING=true; ... } ChartItem also contains an image and when user clicks on it PopupMenu should be shown. It is ok in FF, but not in IE. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: File Processing
On 3 oct, 01:22, lkk123321 <[EMAIL PROTECTED]> wrote: > I am new to GWT. > > I want to read a file from my desktop and then process it and then put > the file text in some data structure > Do you have suggestion of how to do that? The W in GWT is for "Web", which precludes access to the "desktop". You can however use GWT to create an Adobe AIR application (eventually using the GWT-in-the-AIR project, but not necessarily: you can also use JSNI for your AIR API calls), which will have access to "desktop features" such as accessing the file-system. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: redirect problem
For GWT RPC and Spring integration, you may first look at the GWT Server Library http://gwt-widget.sourceforge.net/ . The GWT-SL provides a GWTHandler to handle the GWT RPC request and then invoke the corresponding service POJO. The configuration is rather standard and straight forward. To intercept the call between the GWT-SL GWTHandler and the POJO service, you can look at the Spring AOP, eg, BeanNameAutoProxyCreator ... sth like that. On 10月3日, 上午8時32分, deanhiller <[EMAIL PROTECTED]> wrote: > This combined with the post just after sounds like the best solution > so far(though educating developers on using the adapter is a pain, it > will have to do). > > In that case though, if I am using tomcat with straight GWT, can I > still do this? I don't know much about spring at all. Can I get more > details on how to specify the servlet in this case as don't you need > to specify the Spring servlet or specify the layer in between GWT > Servlet and client somehow. What does the code look like and what > does the web.xml look like here? > > On Oct 2, 1:25 am, falafala <[EMAIL PROTECTED]> wrote: > > > The gwt client cannot interpret the redirect or invalid response > > (hence invocation exception). I do it this way... > > I use GWT server library so I can implement the service as POJO in > > Spring container and published as gwt service. I cannot use servlet > > filter bcoz it cannot handle the marshaling of the response. It > > should be behind the GWT rpc servlet. So I intercept the call to POJO > > service using Spring aop and check the session there, and throw > > session expired exception. The "SessionExpiredException" can also > > include the URL to be redirected. This can be marshaled and sent back > > to the gwt client. > > > On the client side, you can catch the SessionExpiredException in the > > AsyncCallback handler and call the Javascript to do the redirect. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Timers - say no to it with IE
On 3 oct, 09:47, Ivan <[EMAIL PROTECTED]> wrote: > Right, sorry that I haven't posted code before. > And the broblem is actually not in timers, because I temporarily > removed them, > there's smth else. [...] > mouseOnClickListener = new ChangeListener() { /* This > is the place where IE does not respond*/ > public void onChange(final Widget wdgt) { > > /* Sending link to an interface */ > pp.setChartItemInterface(ChartItem.this); > > /* Calling standard methods of PopupPanel > class*/ > pp.setPopupPosition(getAbsoluteLeft(), > getAbsoluteTop() ); > pp.show(); > } > }; [...] > ChartItem also contains an image and when user clicks on it PopupMenu > should be shown. > It is ok in FF, but not in IE. What if you set a ClickListener on the Image? It might be related to http://groups.google.fr/group/Google-Web-Toolkit/t/4783c9b0cc35e081/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT SITE? (example)
Good day! Do anybody know sites based on GWT? What is big project write with GWT? Please, give me url. 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Spring && Spring Security (ex acegi).
Hi Olivier, What's the benefit compared to GWT-SL Spring integration ? Regards Bruno On 3 oct, 09:38, "olivier nouguier" <[EMAIL PROTECTED]> wrote: > Hi all, > > Here are our GWT Sprint && Spring security component. > > http://code.google.com/p/net-orcades-spring/ > > There is a sample war as featured download for the very impatient. > > It's allow to: > > * dispatch RPC-GWT request to Spring managed bean. > * trigger the authentication from GWT-RPC request. > * allow UI component to activate / deactivate regarding the granted > authorities (experimental). > > Thanks for commenting !! > -- > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas > comestible" > - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT SITE? (example)
have a look at www.seges.sk , ev. www.seges.eu or www.seges.com On Oct 3, 10:42 am, "rov.ciso" <[EMAIL PROTECTED]> wrote: > Good day! Do anybody know sites based on GWT? What is big project > write with GWT? Please, give me url. 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Spring && Spring Security (ex acegi).
Hi, For the "my" GWT Dispatcher you don't need extra xml configuration to map the GWTHandler to the Managed bean: * the Spring configuration (application context) is unaware on the GWT-RPC underlying. * very simpler to maintain. This DispatchServlet resolve the Managed Bean that implements the RemoteService invoked without any configuration in your applicationContext. On Fri, Oct 3, 2008 at 10:55 AM, noon <[EMAIL PROTECTED]> wrote: > > Hi Olivier, > > What's the benefit compared to GWT-SL Spring integration ? > > Regards > Bruno > > On 3 oct, 09:38, "olivier nouguier" <[EMAIL PROTECTED]> > wrote: > > Hi all, > > > > Here are our GWT Sprint && Spring security component. > > > > http://code.google.com/p/net-orcades-spring/ > > > > There is a sample war as featured download for the very impatient. > > > > It's allow to: > > > > * dispatch RPC-GWT request to Spring managed bean. > > * trigger the authentication from GWT-RPC request. > > * allow UI component to activate / deactivate regarding the granted > > authorities (experimental). > > > > Thanks for commenting !! > > -- > > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le > > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas > > comestible" > > - proverbe indien Cri > > > -- "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible" - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Troubles linking GWT and php server using JSon
ok I tried without the port : String url = "http://localhost/Portail/www/com.op.Portail/ authenticate.php?name=\'"+name"+\'&pwd=\'"+pass+"\'"; and it works ! So I will try to change my configuration as you suggested Andrej What I still don't understand : ok in hosted mode my script is not interpreted because it is a tomcat. But since I didn't precise the port in the url, why is this still not interpreted when compiled? Thanks all RamI --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Troubles linking GWT and php server using JSon
I tried your solution Andrej If I well understood, I have to replace by and it also works ^^ and this solution also allows me to keep the relative path for my url Thanks again RamI --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Removing padding from tree items...
I solved it with this: div { margin-top: 0px !important; margin-bottom: 0px !important; padding-top: 0px !important; padding-bottom: 0px !important; } span { margin-top: 0px !important; margin-bottom: 0px !important; padding-top: 0px !important; padding-bottom: 0px !important; } But that's not really optimal... It's like putting down cats with nuclear bombs... On 3 Okt., 11:30, Ibmurai <[EMAIL PROTECTED]> wrote: > Even though I use the stylesheet below, all tree items are contained > in a div with 3px padding. This didn't happen prior to my upgrade to > 1.5.2 (from 1.4.6) > I need that padding to be 0px... > Help? > > .gwt-Tree { > margin: 0px; > padding: 0px;} > > div { > margin-top: 0px; > margin-bottom: 0px; > padding-top: 0px; > padding-bottom: 0px;} > > .gwt-Tree .gwt-TreeItem { > padding: 0px; > margin-top: 0px; > margin-bottom: 0px; > > } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Hosted mode ServletContextProxy not available in javax.servlet.Filter
Hi all, I've encountered a problem with the resolution of the Serialization file in hosted mode, because the shell servlet uses a ServletContextProxy which is not available in the a javax.servlet.Filter. My work around in hosted mode is to ask this resources (IUZIUZUI.gwt.rpc) to the shell servlet using an HTTP request (it's not very efficient, but in hosted mode in not a big deal). Is there a cleaner solution ? -- "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible" - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT SITE? (example)
On Fri, Oct 3, 2008 at 10:42 AM, rov.ciso <[EMAIL PROTECTED]> wrote: > > Good day! Do anybody know sites based on GWT? What is big project > write with GWT? Please, give me url. Thanks. > > Try gpokr.com it is a nice example of a none business application written in GWT, showing you that a lot more can be done with it then just a fancy way to present a form. Regards, Rob --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Removing padding from tree items...
get firebug to check the CSS of the tree...find applied styles , then change the CSS hope, it helps On Oct 3, 11:37 am, Ibmurai <[EMAIL PROTECTED]> wrote: > I solved it with this: > > div { > margin-top: 0px !important; > margin-bottom: 0px !important; > padding-top: 0px !important; > padding-bottom: 0px !important;} > > span { > margin-top: 0px !important; > margin-bottom: 0px !important; > padding-top: 0px !important; > padding-bottom: 0px !important; > > } > > But that's not really optimal... It's like putting down cats with > nuclear bombs... > > On 3 Okt., 11:30, Ibmurai <[EMAIL PROTECTED]> wrote: > > > > > Even though I use the stylesheet below, all tree items are contained > > in a div with 3px padding. This didn't happen prior to my upgrade to > > 1.5.2 (from 1.4.6) > > I need that padding to be 0px... > > Help? > > > .gwt-Tree { > > margin: 0px; > > padding: 0px;} > > > div { > > margin-top: 0px; > > margin-bottom: 0px; > > padding-top: 0px; > > padding-bottom: 0px;} > > > .gwt-Tree .gwt-TreeItem { > > padding: 0px; > > margin-top: 0px; > > margin-bottom: 0px; > > > } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT Spring && Spring Security (ex acegi).
Hi all, Here are our GWT Sprint && Spring security component. http://code.google.com/p/net-orcades-spring/ There is a sample war as featured download for the very impatient. It's allow to: * dispatch RPC-GWT request to Spring managed bean. * trigger the authentication from GWT-RPC request. * allow UI component to activate / deactivate regarding the granted authorities (experimental). Thanks for commenting !! -- "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible" - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Removing padding from tree items...
Even though I use the stylesheet below, all tree items are contained in a div with 3px padding. This didn't happen prior to my upgrade to 1.5.2 (from 1.4.6) I need that padding to be 0px... Help? .gwt-Tree { margin: 0px; padding: 0px; } div { margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; } .gwt-Tree .gwt-TreeItem { padding: 0px; margin-top: 0px; margin-bottom: 0px; } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Radio Button Bug?
Hi Guys, Is this a bug in the GWT? Or maybe I'm implementing it the wrong way. Can anyone try this, having 2 Radio Buttons on the same group, both have added Listeners (CheckboxListenerAdapter). Sometimes it is throwing the "slow script" message. Is anyone experiencing this? 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT in netbeans 6.0.1
Thanks YoeZ it worked.Actually i didn't download gwt-windows earlier, I only installed the gwt plugin in netbeans.Now it worked after i downloaded the package,anyhow my project is started.Thanks again. Regards, Prabesh Shrestha On Oct 2, 7:20 pm, YoeZ <[EMAIL PROTECTED]> wrote: > installation folder is where you extracted the GWT (ex. C:\GWT\gwt- > windows-1.5.2) > > On Oct 2, 1:10 pm, prabesh shrestha <[EMAIL PROTECTED]> wrote: > > > I have installed the GWT plugin in my netbeans IDE .But when i start a > > new project in comes to a hold when i select the installation folder > > for gwt.It says this is not a valid installation folder for gwt. > > I am using netbeans in windows XP.What is the valid installation > > folder? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT SITE? (example)
check this out: http://www.demo.qualityunit.com/pax4/merchants/ Andrej www.gwtphp.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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Radio Button Bug?
hi ... It might depend on what your listener are doing ;) (Particularly if they are changing state of other checks ...) On Fri, Oct 3, 2008 at 12:06 PM, Arji <[EMAIL PROTECTED]> wrote: > > Hi Guys, > > Is this a bug in the GWT? Or maybe I'm implementing it the wrong way. > > Can anyone try this, having 2 Radio Buttons on the same group, both > have added Listeners (CheckboxListenerAdapter). Sometimes it is > throwing the "slow script" message. Is anyone experiencing this? > Thanks > > > -- "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible" - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Weird problem with shared code
Hello everybody, I have encountered a very weird problem with shared code between client and server. The client is GWT compatible Java code and the server is pure Java. We have created a serializable class, Request (public class Request implements IsSerializable) which we want to use to exchange data between client and server code. The class was included in the .rpc file generated by the compiler, so it's indeed serializable. Moreover, inside this class we have a method that sets the object for this request; inside this method, an encoding protocol is obtained via object's class name (if this is a list, we typecast it to List and get the first element's class name - if the size is != 0). The code for all protocols is compatible with GWT, since it compiles successfully, the request object arrives at the servlet and the response back. However, writing any of the following lines of code has no effect: request.setObject (o) or request.getObject () It acts as if they don't exist, in either client/server code. I have print-lined before and after the request in servlet, and all prints BEFORE the request sets a list of objects work, BUT all after DON'T; this would indicate that setting an object is a problem, BUT then, the function exists successfully, since client code receives the request. You would ask 'if you get a new request back, what's the problem?' The problem is handling this request, since I have agents that handle the object inside this request, so ... request.getObject () - again, something breaks, because I used Window.alert("...") just before getting the object and again one just after. The second one doesn't get executed, but no errors, no exceptions!! I should mention that hosted mode works just fine and I am able to display the object (so it's handled correctly). Is there any problem if I use a shared package/classes (within same project) for both client and server code? How would I detect this problem since I don't get any errors? Sorry for the long post, I hope you have the patience to read it :) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
colorating a tab
Hi folks, I'm new to GWT (but I read the tutorial). I need to give my tabs a different color, and this is what I see in my firebug: .gwt-TabBar .gwt-TabBarItem {standard.css (line 870) background:#D0E4F6 none repeat scroll 0%; color:black; cursor:pointer; font-weight:bold; margin-left:6px; padding:3px 6px; text-align:center; } .gwt-TabBar-Into .gwt-TabBarItem {main.css (line 55) background:#EE none repeat scroll 0%; color:#6F6F6F; } so the standard css background and color are overriding my locally defined attrs in main.css. Is it due to a bad configuration? or is it the way it is supposed to work? I added a style to the tab bar: mainTabPanel.getTabBar().addStyleDependentName("Into"); But this doesn't affect each tab (I was also expeting a method such as addChildrenStyleDependentName() )... The only solution I found is to call setStylePrimaryName() and copy all subsequent styles : for the tabbar, the bar, the items... from standard.css changing only the colors: I don't think GWT was designed this way... Anyway, any help is very welcome. Regards, Zied Hamdi --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Severe performance problem after upgrading to GWT 1.5.2 (final)
Hi Manuel, It seems hbatista's slowdown in performance was related to a database change. In your case, are you still experiencing slowdowns on your RPC calls? Also, did these slowdowns occur when you went from 1.4.x to 1.5.2, or were you always facing slow RPC calls in your GWT application? Thanks, -Sumit Chandel On Tue, Sep 30, 2008 at 8:26 PM, Manuel <[EMAIL PROTECTED]> wrote: > > Has anyone figgured this out. I am having sever performance problems > with this. accross the board all 1.5.2 compiled apps are a lot slower > > > On Sep 18, 4:59 am, hbatista <[EMAIL PROTECTED]> wrote: > > Thanks for the suggestion, but changing data types didn't help. > > I did not profile my code, but the observed behavior is: > > 1. RPC call is made > > 2. server side method runs and returns (quickly!) > > 3. ... huge delay with no CPU activity ... > > 4. finally client side onSuccess() RPC callback runs > > > > What could be happening on step 3 ? > > > > I took a quick look at the serializer source code, but it's too > > different from 1.4.60 to compare side by side. > > > > On Sep 18, 2:06 am, Tim <[EMAIL PROTECTED]> wrote: > > > > > not sure, but maybe there are some datatype penalty issues (long vs > > > double etc). Did you profile your server side code? > > > > > On Sep 17, 10:28 am, hbatista <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > I've just upgraded one of my projects from 1.4.60 to1.5.2, and > > > > everything went very smoothly, but... > > > > when my application tries to fetch a large number of objects from the > > > > server (via RPC, returns HashMap, about 6000 entries) it > > > > takes a very very long time! > > > > > > Before the upgrade this was very fast (at least in Firefox and > Chrome, > > > > not in IE). > > > > > > Strangely, while waiting for the RPC call to return there is NO cpu > > > > activity... > > > > > > For me this seems related to some deep changes in the serialization > > > > code (taking a guess here), before the upgrade trying to fetch so > many > > > > records from the server would crash IE with 'JavaScript SyntaxError > > > > exception: Out of memory', while now it works (good!) but is veryslow > > > > in all browsers (bad!). > > > > > > Can someone help me debug this problem?- 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Menu Active Item Hightlighted
Hi Sumit, Thank you so much for getting back to me. The hovering works just fine. When hover over the menu item the class changes to gwt-MenuItem-selected. But when an actual item is selected, the class/id does not change. So I'm not sure how to change the class so that I can give it specific style. I'd really appreciate it if you could help. Thanks again Sumit. Karmela On Oct 2, 9:54 am, "Sumit Chandel" <[EMAIL PROTECTED]> wrote: > Hi Karmela, > Have you taken a look at the latest Menu Bar widget in the Showcase sample > application? It provides default CSS styles for menu items to be highlighted > whenever the cursor is hovering over them. > > You can check it out here: > > http://gwt.google.com/samples/Showcase/Showcase.html#CwMenuBar > > Note that you can see both the Java source and the CSS code for the Menu Bar > in the same display. You should be able to use this and tweak the styles for > the purpose of your application. > > Hope that helps, > -Sumit Chandel > > On Tue, Sep 30, 2008 at 4:45 PM, karmela <[EMAIL PROTECTED]> wrote: > > > Hi all, > > Hope someone can help me with this. > > I want to have the active menu item to be highlighted. Basically when > > an item gets selected and goes to a page, i want that link (menu item) > > to be in a different color. > > Is that possible to do with GWT? > > > 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: colorating a tab
GWT has default styles for all its widgets. For example, Button class has the style .gwt-Button. The same applies for other widgets, including more complex ones. What you see in firebug, .gwt-TabBar is the default style for TabBar, and .gwtTabBarItem (the next style on the same line) is the style for TabBarItem which is furthermore cascaded (derived) from .gwtTabBar. When you don't set any styles for a widget, it uses its default style (and further, cascades the style for complex widgets). You said the code overwrote your styles defined in main.css, this is because you don't have the required styles names in your CSS file (main.css). Otherwise, GWT would load the styles from your file. If you want other names for your styles, just define them and use setPrimaryStyleName (...). Furthermore (let's say you have a generic setting for a widget and you want further customization for a specific one), use setStyleDependentName (...). To finish, I haven't checked the following case: if I set a style name, let's say "shyStyle" for a TabBar, I don't know if GWT knows the styles for subitems, like ".shyStyle .getTabBarItem" Hope it helps, cheers. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: creating a custom MenuItem - ?
You could try creating a custom class that extends Composite :) This was our solution for creating a left sided tab panel (like the regular one you can find in GWT, but tabs are not up, but on left). On Oct 3, 10:08 am, gsmd <[EMAIL PROTECTED]> wrote: > I'm thinking of putting a Button and a TextBox to MenuBar. > Is there an easy/described way of extending MenuItem in order to > achieve that? Any hints? > > TIA. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Radio Button Bug?
It looks like you are using the code in a wrong way, maybe you are doing something recursive there. On Oct 3, 1:06 pm, Arji <[EMAIL PROTECTED]> wrote: > Hi Guys, > > Is this a bug in the GWT? Or maybe I'm implementing it the wrong way. > > Can anyone try this, having 2 Radio Buttons on the same group, both > have added Listeners (CheckboxListenerAdapter). Sometimes it is > throwing the "slow script" message. Is anyone experiencing this? > 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Confused by the i18n support for formatting dates, time and currency
Andreas Magnusson schrieb: > Is there a way to just get support for formatting in all the locales > that GWT has in com.google.gwt.i18n.client.Constants? No, beacuse the classes don't exist inside the compiled Javascript-result. If the values are coming from the server-side, you can format them there by adding a parameter "locale" to the list of parameters of the method: public MyDataResult getServerStatus(String locale){ MyDataResult res = new MyDataResult(); res.startDate = getServerStatus().getStartDate(); Locale l = getLocale(); DateFormat formatter = SimpleDateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, l); res.startDateFormatted = formatter.format(res.startDate); return res; } private Locale getLocale(String locale){ StringTokenizer tt = new StringTokenizer(locale, "_"); Locale loc = new Locale(tt.nextToken(), tt.hasMoreTokens() ? tt.nextToken() : "", tt.hasMoreTokens() ? tt.nextToken() : ""); return loc; } The locale passed to the servlet can be read using JSNI (I don't know if there is a way to get it via GWT already) or the servlet reads in the corresponding HTTP-request-header (then you can leave away the parameter or you use it as default if the parameter is null). Regards, Lothar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
any plans to offer java bean support in future?
Hi All, I've been using a 3rd party wysiwyg tool to create my gwt interface, and one thing I've run into is that gwt does not support java bean type customization. The following was suggested: "General JavaBean support would be good which would include standardize support for property accessors, default constructors, custom editors, customizers, Beans.isDesignTime(), etc." see: http://www.instantiations.com/forum/viewtopic.php?f=11&t=2174&sid=301959ff86789c33cea2e71c1b58da83 The thing that I would need is custom editors. Would there be any plans in the future to support this kind of thing? Thanks very much, 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Weird problem with shared code
Hi, Since GWT 1.4, IsSerializable is not necessary, Serializable is enough. 1:) AFAIK the Type must be known at compile time so setObject(Object o) is out ! You should have a base Serializable class (know at compile time) 2:) The JavaBean contract must be honored : That getThat / setThat(That that). On Fri, Oct 3, 2008 at 1:07 PM, Alex D <[EMAIL PROTECTED]> wrote: > > Hello everybody, I have encountered a very weird problem with shared > code between client and server. > > The client is GWT compatible Java code and the server is pure Java. > > We have created a serializable class, Request (public class Request > implements IsSerializable) which we want to use to exchange data > between client and server code. The class was included in the .rpc > file generated by the compiler, so it's indeed serializable. Moreover, > inside this class we have a method that sets the object for this > request; inside this method, an encoding protocol is obtained via > object's class name (if this is a list, we typecast it to List and get > the first element's class name - if the size is != 0). The code for > all protocols is compatible with GWT, since it compiles successfully, > the request object arrives at the servlet and the response back. > > However, writing any of the following lines of code has no effect: > request.setObject (o) > or > request.getObject () > > It acts as if they don't exist, in either client/server code. I have > print-lined before and after the request in servlet, and all prints > BEFORE the request sets a list of objects work, BUT all after DON'T; > this would indicate that setting an object is a problem, BUT then, the > function exists successfully, since client code receives the request. > You would ask 'if you get a new request back, what's the problem?' > > The problem is handling this request, since I have agents that handle > the object inside this request, > so ... request.getObject () - again, something breaks, because I used > Window.alert("...") just before getting the object and again one just > after. The second one doesn't get executed, but no errors, no > exceptions!! > > I should mention that hosted mode works just fine and I am able to > display the object (so it's handled correctly). > > Is there any problem if I use a shared package/classes (within same > project) for both client and server code? How would I detect this > problem since I don't get any errors? > > Sorry for the long post, I hope you have the patience to read it :) > > > -- "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible" - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to proxy all the methods in my RemoteServiceServlet
deanhiller schrieb: > BEFORE methods are even called, I want to chech if there is a User > object in the Session(ie. user is logged in). If there is not, the > Session probably expired and I want to throw a NotLoggedInException on > every one of these methods(but not in the method itself). By looking into RemoteServiceServlet I see a couple of ways that should be possible (I haven't tried, so I might be wrong ;-) /** * Override this method to examine the serialized version of the request * payload before it is deserialized into objects. The default implementation * does nothing and need not be called by subclasses. */ protected void onBeforeRequestDeserialized(String serializedRequest); Overwriting this method allow you to throw the NotLoggedInException for every method that is going to be called. If you want to throw the execption only for a list of methods (e.g. to allow the login without creating a second servlet), you might overwrite processCall instead. Here an example of how I think it should be possible: public String processCall(String payload) throws SerializationException{ try { RPCRequest rpcRequest = RPC.decodeRequest(payload, this.getClass(), this); if (!rpcRequest.getMethod().getName().equals("checkLogin")){ if (!isValidSession){ throw new NotLoggedInException(); } } } catch(SerializationException se){ throw se; } catch(Exception e){} return super.processCall(payload); } NotLoggedInException must be derived from SerializableException > I would > prefer this is reusable in an abstract class that implements > RemoteServiceServlet and any GWT Servlet any team creates here will > extend that and inherit this functionality since all the > authentication stuff is the same for all our services. Above should be usable in an abstract way, you can define the list of allowed methods by using e.g. annotations or a list of strings being set in the init-method of the derived servlets. The only thing missing is a class implemeting AsyncCallback that overwrites onFailure and checks for the NotLoggedInException to "redirect" to the login-panel automatically. Regards, Lothar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: colorating a tab
On 3 oct, 12:12, Zied Hamdi <[EMAIL PROTECTED]> wrote: > Hi folks, > > I'm new to GWT (but I read the tutorial). I need to give my tabs a > different color, and this is what I see in my firebug: > > .gwt-TabBar .gwt-TabBarItem {standard.css (line 870) > background:#D0E4F6 none repeat scroll 0%; > color:black; > cursor:pointer; > font-weight:bold; > margin-left:6px; > padding:3px 6px; > text-align:center;} > > .gwt-TabBar-Into .gwt-TabBarItem {main.css (line 55) > background:#EE none repeat scroll 0%; > color:#6F6F6F; > > } > > so the standard css background and color are overriding my locally > defined attrs in main.css. > > Is it due to a bad configuration? or is it the way it is supposed to > work? How is the main.css included? It might be a "priority" problem: if main.css is loaded before standard.css (which will probably be the case if main.css is not GWT-injected with a in your module's gwt.xml), given that the two selectors have the same "specificity" [1], their rules are evaluated in the order they've been loaded, so the background and color set in standard.css will override the one set in your main.css. Try adding an "!important" to your rules and see if they're applied (with !important, the rules in standard.css won't override your own ! important rules, even though they are evaluated after them). If that's the case, try to find a way for your stylesheet to be loaded after standard.css (and remove the !important, which is bad practice and recommended for user-stylesheets only [2]), either by getting your main.css injected by GWT, or by inheriting StandardResources (instead of Standard) and calling the standard.css by yourself... If I were you however, I'd file a bug to have the injected stylesheet come *before* the existing ones so that the ones already present in the page override the injected stylesheets... [1] http://www.w3.org/TR/CSS21/cascade.html#specificity [2] http://www.w3.org/TR/CSS21/cascade.html#important-rules --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Confused by the i18n support for formatting dates, time and currency
Andreas Magnusson schrieb: > Thanks, that works for data coming from the server, but unfortunately > that's not enough since we expect the date picker to know about date > formatting and start of week and all that as well. I don't see a chance except requesting that information from the server or building your own client-class that is taking the values from the classes of GWT (so that these values are compiled into every iteration. Personally I would go the first way, because otherwise the application might grow in size significantly where just a few bytes per user are needed. If you already exchange data with the server, you might add these informations to the response. Regards, Lothar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
creating a custom MenuItem - ?
I'm thinking of putting a Button and a TextBox to MenuBar. Is there an easy/described way of extending MenuItem in order to achieve that? Any hints? TIA. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Confused by the i18n support for formatting dates, time and currency
On 3 Okt, 15:03, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote: > I don't see a chance except requesting that information from > the server or building your own client-class that is taking > the values from the classes of GWT (so that these values are > compiled into every iteration. Personally I would go the first > way, because otherwise the application might grow in size > significantly where just a few bytes per user are needed. > If you already exchange data with the server, you might > add these informations to the response. > > Regards, Lothar Good idea. Then I *only* have to modify the date picker to use my locale information instead of GWT's, but it's doable. Perhaps I should request that they make it pluggable instead? /Andreas --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Confused by the i18n support for formatting dates, time and currency
On 3 oct, 08:53, Andreas Magnusson <[EMAIL PROTECTED]> wrote: > I have one "simple" requirement that doesn't seem to be supported by > GWT, even though all the parts seems to be in place. > I want to format dates, time and currency according to the users > default language in their browser. Users expect to see such entities > in formats they understand. > However, I have no intention of translating my application. But as I > have understood it, GWTs support of DateTimeConstants etc rely on the > fact that I have compiled the application for all the locales that my > users might be using. And that's just crazy. I can understand the need > if you want to translate the UI as well. > > As an example, Swedish users have no problem with a UI in English, but > we get *very* confused by the US date format. > > Is there a way to just get support for formatting in all the locales > that GWT has in com.google.gwt.i18n.client.Constants? As Lothar said: no. However, JavaScript's Date object has some handy methods: toLocaleString(), toLocaleDateString() and toLocaleTimeString(), so you could use JSNI to get the javascript Date used by the java.util.Date emulation and call the toLocaleDateString or toLocaleTimeString on it (java.util.Date::toLocaleString() already maps to javascript's Date.prototype.toLocaleString): public static native String toLocaleDateString(Date d) /*-{ return d.jsdate.toLocaleDateString(); }-*/; You'd have to use some GWT.isScript()-protected code for the hosted- mode (see below); and I don't know to what extent those methods are supported in browsers... (they seem to be supported in Firefox and IE6+ at least, so it shouldn't be a problem using them). public static String toLocaleDateString(Date d) { if (GWT.isScript()) { return nativeToLocaleDateString(d); } else { // put your hosted-mode "pure Java" code here } } private static native String nativeToLocaleDateString(Date d) /*-{ return d.jsdate.toLocaleDateString(); }-*/; ...note that this means too that you're quite limited in the formats you can use... --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: gwt-maps API - Custom Projection boolean error
On Sep 26, 9:49 am, "Eric Ayers" <[EMAIL PROTECTED]> wrote: > I've found the problem and updated the issue. I've got a proposed solution > out for review on the Google-Web-Toolkit-Contributors mailing list. I puleld down the latest 1.0 SVN, and my code works now, thanks!!! Tim --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Confused by the i18n support for formatting dates, time and currency
Thanks, that works for data coming from the server, but unfortunately that's not enough since we expect the date picker to know about date formatting and start of week and all that as well. /Andreas --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to proxy all the methods in my RemoteServiceServlet
where is the posted project so I can check it out? On Oct 3, 1:42 am, "olivier nouguier" <[EMAIL PROTECTED]> wrote: > Hi, > If you don't want to give a try with Spring( or Guice), you could use > AspectJ to weave your desired behaviour (handling security). > But it might be more long && hard than to learn spring && spring security > (I've just post a project that illustrate this). > hih > > > > On Fri, Oct 3, 2008 at 7:23 AM, deanhiller <[EMAIL PROTECTED]> wrote: > > > I saw someone talking about proxying all the methods to add code(like > > an aspect or filter) using spring and I am wondering how I can do > > this(hopefully without spring as I don't feel like learning that right > > now and just want a quick solution). > > > Basically, if my GWT servlet has these methods > > public void doSomething(int i); > > public String doSomethingAgain(String s); > > public long increaseSomething(int i); > > > BEFORE methods are even called, I want to chech if there is a User > > object in the Session(ie. user is logged in). If there is not, the > > Session probably expired and I want to throw a NotLoggedInException on > > every one of these methods(but not in the method itself). I would > > prefer this is reusable in an abstract class that implements > > RemoteServiceServlet and any GWT Servlet any team creates here will > > extend that and inherit this functionality since all the > > authentication stuff is the same for all our services. > > > How do I do this in a common way? It looks like the > > RemoteServiceServlet is kind of screwed up in not exposing a good > > method to override that I could use as the filter. > > > Any ideas? > > thanks, > > Dean > > -- > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas > comestible" > - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to proxy all the methods in my RemoteServiceServlet
that doesn't work. I have tried that. If you throw an Exception in onBeforeRequestDeserialized, the Exception never gets translated into the GWT protocol as that code is lower down the stack and instead GWT receives an InvocationException and doesn't know what happened. overriding processCall is to high up and you get no translation either. To do what you are suggested, a new method in RPC called invokeMethod would need to be created like so (these two lines from RPC.java invokeAndEncodeResponse) Object result = serviceMethod.invoke(target, args); responsePayload = encodeResponseForSuccess(serviceMethod, result, serializationPolicy); invokeAndEncodeResponse method would call that new method and I could override that and then GWT would be translating the exception correctly for me, BUT GWT does not have this. I have submitted this change years ago but to no avail as I would LOVE to override that method.I guess spring is the only way if only I can get some example code. On Oct 3, 7:00 am, Lothar Kimmeringer <[EMAIL PROTECTED]> wrote: > deanhiller schrieb: > > > BEFORE methods are even called, I want to chech if there is a User > > object in the Session(ie. user is logged in). If there is not, the > > Session probably expired and I want to throw a NotLoggedInException on > > every one of these methods(but not in the method itself). > > By looking into RemoteServiceServlet I see a couple of ways > that should be possible (I haven't tried, so I might be > wrong ;-) > > /** > * Override this method to examine the serialized version of the request > * payload before it is deserialized into objects. The default implementation > * does nothing and need not be called by subclasses. > */ > protected void onBeforeRequestDeserialized(String serializedRequest); > > Overwriting this method allow you to throw the NotLoggedInException > for every method that is going to be called. > > If you want to throw the execption only for a list of methods > (e.g. to allow the login without creating a second servlet), > you might overwrite processCall instead. Here an example of how I > think it should be possible: > > public String processCall(String payload) throws SerializationException{ > try { > RPCRequest rpcRequest = RPC.decodeRequest(payload, this.getClass(), this); > if (!rpcRequest.getMethod().getName().equals("checkLogin")){ > if (!isValidSession){ > throw new NotLoggedInException(); > } > } > } > catch(SerializationException se){ > throw se; > } > catch(Exception e){} > return super.processCall(payload); > > } > > NotLoggedInException must be derived from SerializableException > > > I would > > prefer this is reusable in an abstract class that implements > > RemoteServiceServlet and any GWT Servlet any team creates here will > > extend that and inherit this functionality since all the > > authentication stuff is the same for all our services. > > Above should be usable in an abstract way, you can define the > list of allowed methods by using e.g. annotations or a list > of strings being set in the init-method of the derived servlets. > > The only thing missing is a class implemeting AsyncCallback that > overwrites onFailure and checks for the NotLoggedInException to > "redirect" to the login-panel automatically. > > Regards, Lothar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to proxy all the methods in my RemoteServiceServlet
http://code.google.com/p/net-orcades-spring/ It's dispatching your GWT-RPC. Provides security including authentication && authorization around GWT service. There also some test to build some widget that can activate / deactivate when user login / logout. There is a sample as Featured download. Regards. On Fri, Oct 3, 2008 at 3:33 PM, deanhiller <[EMAIL PROTECTED]> wrote: > > where is the posted project so I can check it out? > > On Oct 3, 1:42 am, "olivier nouguier" <[EMAIL PROTECTED]> > wrote: > > Hi, > > If you don't want to give a try with Spring( or Guice), you could use > > AspectJ to weave your desired behaviour (handling security). > > But it might be more long && hard than to learn spring && spring > security > > (I've just post a project that illustrate this). > > hih > > > > > > > > On Fri, Oct 3, 2008 at 7:23 AM, deanhiller <[EMAIL PROTECTED]> > wrote: > > > > > I saw someone talking about proxying all the methods to add code(like > > > an aspect or filter) using spring and I am wondering how I can do > > > this(hopefully without spring as I don't feel like learning that right > > > now and just want a quick solution). > > > > > Basically, if my GWT servlet has these methods > > > public void doSomething(int i); > > > public String doSomethingAgain(String s); > > > public long increaseSomething(int i); > > > > > BEFORE methods are even called, I want to chech if there is a User > > > object in the Session(ie. user is logged in). If there is not, the > > > Session probably expired and I want to throw a NotLoggedInException on > > > every one of these methods(but not in the method itself). I would > > > prefer this is reusable in an abstract class that implements > > > RemoteServiceServlet and any GWT Servlet any team creates here will > > > extend that and inherit this functionality since all the > > > authentication stuff is the same for all our services. > > > > > How do I do this in a common way? It looks like the > > > RemoteServiceServlet is kind of screwed up in not exposing a good > > > method to override that I could use as the filter. > > > > > Any ideas? > > > thanks, > > > Dean > > > > -- > > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le > > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas > > comestible" > > - proverbe indien Cri > > > -- "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible" - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Weird problem with shared code
The type must be known for instanced objects, not generic object passing to methods. In GWT, I can't do the following: Object o = new Object (); Instead, I can do this: Object o = new ListBox (false); (altough I surely would typecast again to ListBox so that I can do something with that object). What is that thing about honoring JavaBean? :) I don't know how, but we have solved the problem, but just by coincidence. Up until now, I couldn't find a reasonable explanation for what happened or what the problem was. On Oct 3, 3:52 pm, "olivier nouguier" <[EMAIL PROTECTED]> wrote: > Hi, > > Since GWT 1.4, IsSerializable is not necessary, Serializable is enough. > > 1:) AFAIK the Type must be known at compile time so setObject(Object o) is > out ! > You should have a base Serializable class (know at compile time) > > 2:) The JavaBean contract must be honored : That getThat / setThat(That > that). > > > > On Fri, Oct 3, 2008 at 1:07 PM, Alex D <[EMAIL PROTECTED]> wrote: > > > Hello everybody, I have encountered a very weird problem with shared > > code between client and server. > > > The client is GWT compatible Java code and the server is pure Java. > > > We have created a serializable class, Request (public class Request > > implements IsSerializable) which we want to use to exchange data > > between client and server code. The class was included in the .rpc > > file generated by the compiler, so it's indeed serializable. Moreover, > > inside this class we have a method that sets the object for this > > request; inside this method, an encoding protocol is obtained via > > object's class name (if this is a list, we typecast it to List and get > > the first element's class name - if the size is != 0). The code for > > all protocols is compatible with GWT, since it compiles successfully, > > the request object arrives at the servlet and the response back. > > > However, writing any of the following lines of code has no effect: > > request.setObject (o) > > or > > request.getObject () > > > It acts as if they don't exist, in either client/server code. I have > > print-lined before and after the request in servlet, and all prints > > BEFORE the request sets a list of objects work, BUT all after DON'T; > > this would indicate that setting an object is a problem, BUT then, the > > function exists successfully, since client code receives the request. > > You would ask 'if you get a new request back, what's the problem?' > > > The problem is handling this request, since I have agents that handle > > the object inside this request, > > so ... request.getObject () - again, something breaks, because I used > > Window.alert("...") just before getting the object and again one just > > after. The second one doesn't get executed, but no errors, no > > exceptions!! > > > I should mention that hosted mode works just fine and I am able to > > display the object (so it's handled correctly). > > > Is there any problem if I use a shared package/classes (within same > > project) for both client and server code? How would I detect this > > problem since I don't get any errors? > > > Sorry for the long post, I hope you have the patience to read it :) > > -- > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas > comestible" > - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Weird problem with shared code
On Fri, Oct 3, 2008 at 3:33 PM, Alex D <[EMAIL PROTECTED]> wrote: > > The type must be known for instanced objects, not generic object > passing to methods. > In GWT, I can't do the following: > Object o = new Object (); > Instead, I can do this: > Object o = new ListBox (false); (altough I surely would typecast again > to ListBox so that I can do something with that object). Sure, but if you write such code *only* on server side, the code will compile, but GWT serialization won't works as "ListBox" (not a good example ...) will be unknown at GWT compile time. PS: IMSHO ... ;) > > What is that thing about honoring JavaBean? :) > > I don't know how, but we have solved the problem, but just by > coincidence. Up until now, I couldn't find a reasonable explanation > for what happened or what the problem was. > > On Oct 3, 3:52 pm, "olivier nouguier" <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > Since GWT 1.4, IsSerializable is not necessary, Serializable is enough. > > > > 1:) AFAIK the Type must be known at compile time so setObject(Object o) > is > > out ! > > You should have a base Serializable class (know at compile time) > > > > 2:) The JavaBean contract must be honored : That getThat / setThat(That > > that). > > > > > > > > On Fri, Oct 3, 2008 at 1:07 PM, Alex D <[EMAIL PROTECTED]> > wrote: > > > > > Hello everybody, I have encountered a very weird problem with shared > > > code between client and server. > > > > > The client is GWT compatible Java code and the server is pure Java. > > > > > We have created a serializable class, Request (public class Request > > > implements IsSerializable) which we want to use to exchange data > > > between client and server code. The class was included in the .rpc > > > file generated by the compiler, so it's indeed serializable. Moreover, > > > inside this class we have a method that sets the object for this > > > request; inside this method, an encoding protocol is obtained via > > > object's class name (if this is a list, we typecast it to List and get > > > the first element's class name - if the size is != 0). The code for > > > all protocols is compatible with GWT, since it compiles successfully, > > > the request object arrives at the servlet and the response back. > > > > > However, writing any of the following lines of code has no effect: > > > request.setObject (o) > > > or > > > request.getObject () > > > > > It acts as if they don't exist, in either client/server code. I have > > > print-lined before and after the request in servlet, and all prints > > > BEFORE the request sets a list of objects work, BUT all after DON'T; > > > this would indicate that setting an object is a problem, BUT then, the > > > function exists successfully, since client code receives the request. > > > You would ask 'if you get a new request back, what's the problem?' > > > > > The problem is handling this request, since I have agents that handle > > > the object inside this request, > > > so ... request.getObject () - again, something breaks, because I used > > > Window.alert("...") just before getting the object and again one just > > > after. The second one doesn't get executed, but no errors, no > > > exceptions!! > > > > > I should mention that hosted mode works just fine and I am able to > > > display the object (so it's handled correctly). > > > > > Is there any problem if I use a shared package/classes (within same > > > project) for both client and server code? How would I detect this > > > problem since I don't get any errors? > > > > > Sorry for the long post, I hope you have the patience to read it :) > > > > -- > > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le > > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas > > comestible" > > - proverbe indien Cri > > > -- "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas comestible" - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Label + Hyperlink + Label
I'm wondering if this is really the best approach, of it I'm one widget short of a better idea. I'm just trying to write some text, a gwt Hyperlink, and more text. Basically trying to concatenate labels and Hyperlinks. I can do this by creating a HorizontalPanel, adding the label, then adding the Hyperlink, then adding more labels, more Hyperlinks, and so on. But is it really necessary for the HorizontalPanel to be there? Is there something else that would be better? Just off hand, I thought of things like taking the Hyperlink's .getHTML() and concatenating that with the label's text, but that isn't what I'm after. 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Ajax on a server that does not support servlet
you need to read this explanation: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/faca1575f306ba0f It talks specifically about RPC, but it is relevant to all Asynchronous calls. -jason On Oct 2, 2008, at 6:47 PM, slow wrote: > > Thank you Jason for your help. That was a bad mistake. Anywhere I used > other code and it worked. The problem i have is that I have conficting > results. One statement tells me I have the data and the other says the > same data is null. Worse enough, if I call the same statement twice i > get different results. for example, passing the same string to > window.alert twice brings null and some correct string. I want to > later plot the received data using canvas. Here is the code. > > package com.daq.client; > > import com.google.gwt.core.client.EntryPoint; > import com.google.gwt.user.client.ui.Button; > import com.google.gwt.user.client.ui.ClickListener; > import com.google.gwt.user.client.ui.DialogBox; > import com.google.gwt.user.client.ui.Image; > import com.google.gwt.user.client.ui.RootPanel; > import com.google.gwt.user.client.ui.VerticalPanel; > import com.google.gwt.user.client.ui.Widget; > import com.google.gwt.http.client.*; > import com.google.gwt.user.client.ui.Label; > import com.google.gwt.http.client.RequestCallback; > import com.google.gwt.user.client.Window; > > > > /** > * Entry point classes define onModuleLoad(). > */ > public class thesis implements EntryPoint { > > public static final int STATUS_CODE_OK = 200; > static String recvd_data; > private VerticalPanel mainPanel = new VerticalPanel(); > DialogBox diagbox = new DialogBox(); > Button button = new Button("Click Me"); > Label testLabel = new Label(); > static String my_data; > //String[] formated_data; > > public static String doGet(String url) { > RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, > url); > > try { > Request response = builder.sendRequest(null, new > RequestCallback() { > public void onError(Request request, Throwable exception) { > recvd_data = "Unable to reach the server"; > Window.alert(recvd_data); > //responseText(recvd_data); > } > > public void onResponseReceived(Request request, Response > response) { > // Code omitted for clarity > //String recvd_data; > if(response.getStatusCode() == STATUS_CODE_OK) > { > recvd_data = response.getText(); > } > else > recvd_data = response.getStatusText(); > recvd_data = recvd_data.trim(); > //responseText(recvd_data); > //Window.alert(recvd_data); > } > }); > > } catch (RequestException e) { > recvd_data = "Unresolved Error"; > //responseText(recvd_data); > Window.alert(recvd_data); > return recvd_data; > } > return recvd_data; > } > > /** > * get the string received from the http response > */ > > public static void responseText(String resp_text) > { > my_data = resp_text; > //Window.alert(my_data); > } > > > > > public void onModuleLoad() { > > recvd_data = doGet("sw.csv"); //it seems that null is > returned in > this case > /*line 82 *///Window.alert(recvd_data); > > /*if u uncomment line 82, it will print null on a window and the > correct text will display by line 93 >* however when u leave it commented, line 93 has no effect */ > > mainPanel.setTitle("Main Panel"); > mainPanel.setBorderWidth(300); > mainPanel.add(button); > //mainPanel.setVisible(true); > > //formated_data = my_data.split(","); > /* line 93*/ testLabel.setText(recvd_data); > > > diagbox.setTitle("Dialog Box"); > diagbox.setWidth("100%"); > diagbox.setHeight("20%"); > diagbox.setText(recvd_data); > > RootPanel.get().add(testLabel); > //RootPanel.get().add(diagbox); > //RootPanel.get().add(mainPanel); > } > } > > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.co
Re: Safe to make *ServiceAsync a singleton?
I think it's reasonable to have a single instance of a *ServiceAsync, but I wouldn't put it into a singleton. As Miško Hevery puts it, "Singletons are Pathological Liars". Check out this blog post for why: http://googletesting.blogspot.com/2008/08/by-miko-hevery-so-you-join-new-project.html You'd be better off injecting the *ServiceAsync into objects that need it. However, as Essington pointed out, you might need to figure out a way to lazy load these *ServiceAsync if you have a lot of them. Regards, Arthur Kalmenson On Sep 30, 5:02 am, hezjing <[EMAIL PROTECTED]> wrote: > Hi > I have many service creation (like the following code) in my GWT > application, > XxxxServiceAsync Service = GWT.create(XxxxrService.class); > > Is it safe to make all XxxxServiceAsync a singleton? > > Thank you! > > -- > > Hez --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Weird problem with shared code
Wrong example, indeed. I wasn't thinking about serialization there. Yea, ListBox is not serializable On Oct 3, 4:48 pm, "olivier nouguier" <[EMAIL PROTECTED]> wrote: > On Fri, Oct 3, 2008 at 3:33 PM, Alex D <[EMAIL PROTECTED]> wrote: > > > The type must be known for instanced objects, not generic object > > passing to methods. > > In GWT, I can't do the following: > > Object o = new Object (); > > Instead, I can do this: > > Object o = new ListBox (false); (altough I surely would typecast again > > to ListBox so that I can do something with that object). > > Sure, but if you write such code *only* on server side, the code will > compile, but GWT serialization won't works as "ListBox" (not a good example > ...) will be unknown at GWT compile time. > > PS: IMSHO ... ;) > > > > > > > What is that thing about honoring JavaBean? :) > > > I don't know how, but we have solved the problem, but just by > > coincidence. Up until now, I couldn't find a reasonable explanation > > for what happened or what the problem was. > > > On Oct 3, 3:52 pm, "olivier nouguier" <[EMAIL PROTECTED]> > > wrote: > > > Hi, > > > > Since GWT 1.4, IsSerializable is not necessary, Serializable is enough. > > > > 1:) AFAIK the Type must be known at compile time so setObject(Object o) > > is > > > out ! > > > You should have a base Serializable class (know at compile time) > > > > 2:) The JavaBean contract must be honored : That getThat / setThat(That > > > that). > > > > On Fri, Oct 3, 2008 at 1:07 PM, Alex D <[EMAIL PROTECTED]> > > wrote: > > > > > Hello everybody, I have encountered a very weird problem with shared > > > > code between client and server. > > > > > The client is GWT compatible Java code and the server is pure Java. > > > > > We have created a serializable class, Request (public class Request > > > > implements IsSerializable) which we want to use to exchange data > > > > between client and server code. The class was included in the .rpc > > > > file generated by the compiler, so it's indeed serializable. Moreover, > > > > inside this class we have a method that sets the object for this > > > > request; inside this method, an encoding protocol is obtained via > > > > object's class name (if this is a list, we typecast it to List and get > > > > the first element's class name - if the size is != 0). The code for > > > > all protocols is compatible with GWT, since it compiles successfully, > > > > the request object arrives at the servlet and the response back. > > > > > However, writing any of the following lines of code has no effect: > > > > request.setObject (o) > > > > or > > > > request.getObject () > > > > > It acts as if they don't exist, in either client/server code. I have > > > > print-lined before and after the request in servlet, and all prints > > > > BEFORE the request sets a list of objects work, BUT all after DON'T; > > > > this would indicate that setting an object is a problem, BUT then, the > > > > function exists successfully, since client code receives the request. > > > > You would ask 'if you get a new request back, what's the problem?' > > > > > The problem is handling this request, since I have agents that handle > > > > the object inside this request, > > > > so ... request.getObject () - again, something breaks, because I used > > > > Window.alert("...") just before getting the object and again one just > > > > after. The second one doesn't get executed, but no errors, no > > > > exceptions!! > > > > > I should mention that hosted mode works just fine and I am able to > > > > display the object (so it's handled correctly). > > > > > Is there any problem if I use a shared package/classes (within same > > > > project) for both client and server code? How would I detect this > > > > problem since I don't get any errors? > > > > > Sorry for the long post, I hope you have the patience to read it :) > > > > -- > > > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le > > > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas > > > comestible" > > > - proverbe indien Cri > > -- > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas > comestible" > - proverbe indien Cri --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to proxy all the methods in my RemoteServiceServlet
deanhiller schrieb: > BEFORE methods are even called, I want to chech if there is a User > object in the Session(ie. user is logged in). If there is not, the > Session probably expired and I want to throw a NotLoggedInException on > every one of these methods(but not in the method itself). By looking into RemoteServiceServlet I see a couple of ways that should be possible (I haven't tried, so I might be wrong ;-) /** * Override this method to examine the serialized version of the request * payload before it is deserialized into objects. The default implementation * does nothing and need not be called by subclasses. */ protected void onBeforeRequestDeserialized(String serializedRequest); Overwriting this method allow you to throw the NotLoggedInException for every method that is going to be called. If you want to throw the execption only for a list of methods (e.g. to allow the login without creating a second servlet), you might overwrite processCall instead. Here an example of how I think it should be possible: public String processCall(String payload) throws SerializationException{ try { RPCRequest rpcRequest = RPC.decodeRequest(payload, this.getClass(), this); if (!rpcRequest.getMethod().getName().equals("checkLogin")){ if (!isValidSession){ throw new NotLoggedInException(); } } } catch(SerializationException se){ throw se; } catch(Exception e){} return super.processCall(payload); } NotLoggedInException must be derived from SerializableException > I would > prefer this is reusable in an abstract class that implements > RemoteServiceServlet and any GWT Servlet any team creates here will > extend that and inherit this functionality since all the > authentication stuff is the same for all our services. Above should be usable in an abstract way, you can define the list of allowed methods by using e.g. annotations or a list of strings being set in the init-method of the derived servlets. The only thing missing is a class implemeting AsyncCallback that overwrites onFailure and checks for the NotLoggedInException to "redirect" to the login-panel automatically. Regards, Lothar --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Label + Hyperlink + Label
You could try HTMLPanel p = new HTMLPanel("Click to go there"); p.add(new Hyperlink("here", "token"), "link"); (I might have the parameters the wrong way around, but you get the idea.) Ian http://examples.roughian.com 2008/10/3 Brian <[EMAIL PROTECTED]> > > I'm wondering if this is really the best approach, of it I'm one > widget short of a better idea. > > I'm just trying to write some text, a gwt Hyperlink, and more text. > Basically trying to concatenate labels and Hyperlinks. > > I can do this by creating a HorizontalPanel, adding the label, then > adding the Hyperlink, then adding more labels, more Hyperlinks, and so > on. But is it really necessary for the HorizontalPanel to be there? > Is there something else that would be better? Just off hand, I > thought of things like taking the Hyperlink's .getHTML() and > concatenating that with the label's text, but that isn't what I'm > after. > > 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Moderation policy back in effect: new members' messages moderated to prevent spam
Hi, I am new to this group and cannot post new topics to this group. Is this because of the spam policy in place? Thanks /lim/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT SITE? (example)
GWTPHP looks really nice !!Is there a preview release I could try? On Fri, Oct 3, 2008 at 5:23 AM, Andrej Harsani <[EMAIL PROTECTED]> wrote: > > check this out: > http://www.demo.qualityunit.com/pax4/merchants/ > > Andrej > www.gwtphp.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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Label + Hyperlink + Label
Tricky, but doesn't quite work in my attempts. Both HTMLPanel.add() and HTMLPanel.addAndReplaceElement() puts a newline before the link, so I end up with: blah blah link blah blah instead of: blah blah link blah blah I'm putting the HTMLPanel in a FlexTable's cell. On Oct 3, 10:37 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote: > You could try > > HTMLPanel p = new HTMLPanel("Click to go there"); > p.add(new Hyperlink("here", "token"), "link"); > > (I might have the parameters the wrong way around, but you get the idea.) > > Ian > > http://examples.roughian.com > > 2008/10/3 Brian <[EMAIL PROTECTED]> > > > > > I'm wondering if this is really the best approach, of it I'm one > > widget short of a better idea. > > > I'm just trying to write some text, a gwt Hyperlink, and more text. > > Basically trying to concatenate labels and Hyperlinks. > > > I can do this by creating a HorizontalPanel, adding the label, then > > adding the Hyperlink, then adding more labels, more Hyperlinks, and so > > on. But is it really necessary for the HorizontalPanel to be there? > > Is there something else that would be better? Just off hand, I > > thought of things like taking the Hyperlink's .getHTML() and > > concatenating that with the label's text, but that isn't what I'm > > after. > > > 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to proxy all the methods in my RemoteServiceServlet
Hi, You can override the RemoteServiceServlet 'processCall' method, which is invoked for every incoming call (this is how Hibernate4GWT works seamlessly with input ou output parameters). Regards Bruno On 3 oct, 16:16, walden <[EMAIL PROTECTED]> wrote: > Dean, > > GWT RPC clearly does not have the security aspect designed in; it > seems designed for use with an orthogonal security mechanism, such as > found in the HTTP specs. > > A bit of a leap, but have you mentally walked through what would > happen if you ditched SESSION-based security and went with Digest? I > think this approach would sidestep a huge amount of custom programming > for you. Question is, what would you be losing that you can't live > without? > > In my application, if I start up a browser and type the URL of my RPC > service (before authenticating), the JAAS system in JBoss issues a > challenge from way down in the stack (my RPC code never sees it), and > the browser puts up a login form. This is pretty much what should > happen when your logged in user encounters a session timeout. > > Walden > > On Oct 3, 3:42 am, "olivier nouguier" <[EMAIL PROTECTED]> > wrote: > > > Hi, > > If you don't want to give a try with Spring( or Guice), you could use > > AspectJ to weave your desired behaviour (handling security). > > But it might be more long && hard than to learn spring && spring security > > (I've just post a project that illustrate this). > > hih > > > On Fri, Oct 3, 2008 at 7:23 AM, deanhiller <[EMAIL PROTECTED]> wrote: > > > > I saw someone talking about proxying all the methods to add code(like > > > an aspect or filter) using spring and I am wondering how I can do > > > this(hopefully without spring as I don't feel like learning that right > > > now and just want a quick solution). > > > > Basically, if my GWT servlet has these methods > > > public void doSomething(int i); > > > public String doSomethingAgain(String s); > > > public long increaseSomething(int i); > > > > BEFORE methods are even called, I want to chech if there is a User > > > object in the Session(ie. user is logged in). If there is not, the > > > Session probably expired and I want to throw a NotLoggedInException on > > > every one of these methods(but not in the method itself). I would > > > prefer this is reusable in an abstract class that implements > > > RemoteServiceServlet and any GWT Servlet any team creates here will > > > extend that and inherit this functionality since all the > > > authentication stuff is the same for all our services. > > > > How do I do this in a common way? It looks like the > > > RemoteServiceServlet is kind of screwed up in not exposing a good > > > method to override that I could use as the filter. > > > > Any ideas? > > > thanks, > > > Dean > > > -- > > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le > > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas > > comestible" > > - proverbe indien Cri- 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Multiple *.gwt.xml in One Module
Hi, I was following Solution #6 (Drag and Drop) example from the book "Google Web Toolkit Solutions: More Cool & Useful Stuff". I used Intellij 7 with GWT 1.5 to compile the example but failed with the errors reported. I tried a few things unsuccessfully and finally I removed the line from /com/ gwtsolutions/DragAndDrop.gwt.xml (included below) and everything went smoothly. My question is, should this line be removed since we already inherited Components with this directive in the previous line? Both com.gwtsolutions.components.client.ui.Dnd and com.gwtsolutions.components.Components are in the same module where Dnd.gwt.xml is 2 level down drom Components.gwt.xml. Is it possible to have 2 gwt.xml files in 1 module? Thanks /lim/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Label + Hyperlink + Label
On 3 oct, 17:24, Brian <[EMAIL PROTECTED]> wrote: > Tricky, but doesn't quite work in my attempts. > > Both HTMLPanel.add() and HTMLPanel.addAndReplaceElement() puts a > newline before the link, so I end up with: > > blah blah > link > blah blah > > instead of: blah blah link blah blah > > I'm putting the HTMLPanel in a FlexTable's cell. It has nothing to do with the HTMLPanel actually, but a problem with the Hyperlink widget: it's made up of a DIV wrapping an A, that's this DIV wrapper that's causing the line breaks, because a DIV is display:block by default. I'd suggest replacing the Hyperlink with an Anchor+ClickListener. I'd also use a FlowPanel+InlineLabels but it's up to you, the HTMLPanel should work like a charm too: FlowPanel container = new FlowPanel(); container.add(new InlineLabel("some text "); Anchor link = new Anchor("link", "#token"); link.addClickListener(new ClickListener() { public void onClick(Widget sender) { History.newItem("token"); DOM.eventGetCurrentEvent().preventDefault(); } }); container.add(link); container.add(new InlineLabel(" some more text"); ...and/or you could "vote for" (i.e. "star") the issue 2901: http://code.google.com/p/google-web-toolkit/issues/detail?id=2901 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Label + Hyperlink + Label
If it weren't such pita, it'd be sweet. But yeah, that worked great. Since I'm doing this on a number of links in a bunch of text, I wrapped up the click listener as such instead of new'ing one each time. ClickListener linkClickListener = new ClickListener() { public void onClick(Widget sender) { History.newItem(((Anchor)sender).getHref().substring(1)); DOM.eventGetCurrentEvent().preventDefault(); } }; Thanks much. On Oct 3, 11:44 am, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 3 oct, 17:24, Brian <[EMAIL PROTECTED]> wrote: > > > Tricky, but doesn't quite work in my attempts. > > > Both HTMLPanel.add() and HTMLPanel.addAndReplaceElement() puts a > > newline before the link, so I end up with: > > > blah blah > > link > > blah blah > > > instead of: blah blah link blah blah > > > I'm putting the HTMLPanel in a FlexTable's cell. > > It has nothing to do with the HTMLPanel actually, but a problem with > the Hyperlink widget: it's made up of a DIV wrapping an A, that's this > DIV wrapper that's causing the line breaks, because a DIV is > display:block by default. > > I'd suggest replacing the Hyperlink with an Anchor+ClickListener. > I'd also use a FlowPanel+InlineLabels but it's up to you, the > HTMLPanel should work like a charm too: > > FlowPanel container = new FlowPanel(); > container.add(new InlineLabel("some text "); > Anchor link = new Anchor("link", "#token"); > link.addClickListener(new ClickListener() { > public void onClick(Widget sender) { > History.newItem("token"); > DOM.eventGetCurrentEvent().preventDefault(); > }}); > > container.add(link); > container.add(new InlineLabel(" some more text"); > > ...and/or you could "vote for" (i.e. "star") the issue > 2901:http://code.google.com/p/google-web-toolkit/issues/detail?id=2901 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to proxy all the methods in my RemoteServiceServlet
If go for non-spring solution, yes, you should override the processCall(). Just take a look at the source, you should invoke the RPC.encodeResponseForFailure(method, ex) to encode the Exception and send back to client. I didnt test. It may not compile, you may try anyway ... :) public String processCall(String payload) throws SerializationException { try { RPCRequest rpcRequest = RPC.decodeRequest(payload, this.getClass(), this); if (isValidSession()) // may add other conditions when should check, when should not check.. { return RPC.invokeAndEncodeResponse(this, rpcRequest.getMethod(), rpcRequest.getParameters(), rpcRequest.getSerializationPolicy()); } else { return RPC.encodeResponseForFailure(rpcRequest.getMethod(), new NotLoggedInException()); } } catch (IncompatibleRemoteServiceException ex) { getServletContext().log( "An IncompatibleRemoteServiceException was thrown while processing this call.", ex); return RPC.encodeResponseForFailure(null, ex); } } private boolean isValidSession() { //... } --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: how to proxy all the methods in my RemoteServiceServlet
Dean, GWT RPC clearly does not have the security aspect designed in; it seems designed for use with an orthogonal security mechanism, such as found in the HTTP specs. A bit of a leap, but have you mentally walked through what would happen if you ditched SESSION-based security and went with Digest? I think this approach would sidestep a huge amount of custom programming for you. Question is, what would you be losing that you can't live without? In my application, if I start up a browser and type the URL of my RPC service (before authenticating), the JAAS system in JBoss issues a challenge from way down in the stack (my RPC code never sees it), and the browser puts up a login form. This is pretty much what should happen when your logged in user encounters a session timeout. Walden On Oct 3, 3:42 am, "olivier nouguier" <[EMAIL PROTECTED]> wrote: > Hi, > If you don't want to give a try with Spring( or Guice), you could use > AspectJ to weave your desired behaviour (handling security). > But it might be more long && hard than to learn spring && spring security > (I've just post a project that illustrate this). > hih > > > > > > On Fri, Oct 3, 2008 at 7:23 AM, deanhiller <[EMAIL PROTECTED]> wrote: > > > I saw someone talking about proxying all the methods to add code(like > > an aspect or filter) using spring and I am wondering how I can do > > this(hopefully without spring as I don't feel like learning that right > > now and just want a quick solution). > > > Basically, if my GWT servlet has these methods > > public void doSomething(int i); > > public String doSomethingAgain(String s); > > public long increaseSomething(int i); > > > BEFORE methods are even called, I want to chech if there is a User > > object in the Session(ie. user is logged in). If there is not, the > > Session probably expired and I want to throw a NotLoggedInException on > > every one of these methods(but not in the method itself). I would > > prefer this is reusable in an abstract class that implements > > RemoteServiceServlet and any GWT Servlet any team creates here will > > extend that and inherit this functionality since all the > > authentication stuff is the same for all our services. > > > How do I do this in a common way? It looks like the > > RemoteServiceServlet is kind of screwed up in not exposing a good > > method to override that I could use as the filter. > > > Any ideas? > > thanks, > > Dean > > -- > "Quand le dernier arbre sera abattu, la dernière rivière asséchée, le > dernier poisson péché, l'homme va s'apercevoir que l'argent n'est pas > comestible" > - proverbe indien Cri- 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Label + Hyperlink + Label
... and incidently, the horizontalpanel approach never did work well. Before I could figure out the problem, I just did the flowpanel+anchor +clicklistener approach. Who woulda thought inline links would be such a pain. I star'd that issue... On Oct 3, 11:59 am, Brian <[EMAIL PROTECTED]> wrote: > If it weren't such pita, it'd be sweet. But yeah, that worked great. > > Since I'm doing this on a number of links in a bunch of text, I > wrapped up the click listener as such instead of new'ing one each > time. > > ClickListener linkClickListener = new ClickListener() { > public void onClick(Widget sender) { > History.newItem(((Anchor)sender).getHref().substring(1)); > DOM.eventGetCurrentEvent().preventDefault(); > } > }; > > Thanks much. > > On Oct 3, 11:44 am, Thomas Broyer <[EMAIL PROTECTED]> wrote: > > > On 3 oct, 17:24, Brian <[EMAIL PROTECTED]> wrote: > > > > Tricky, but doesn't quite work in my attempts. > > > > Both HTMLPanel.add() and HTMLPanel.addAndReplaceElement() puts a > > > newline before the link, so I end up with: > > > > blah blah > > > link > > > blah blah > > > > instead of: blah blah link blah blah > > > > I'm putting the HTMLPanel in a FlexTable's cell. > > > It has nothing to do with the HTMLPanel actually, but a problem with > > the Hyperlink widget: it's made up of a DIV wrapping an A, that's this > > DIV wrapper that's causing the line breaks, because a DIV is > > display:block by default. > > > I'd suggest replacing the Hyperlink with an Anchor+ClickListener. > > I'd also use a FlowPanel+InlineLabels but it's up to you, the > > HTMLPanel should work like a charm too: > > > FlowPanel container = new FlowPanel(); > > container.add(new InlineLabel("some text "); > > Anchor link = new Anchor("link", "#token"); > > link.addClickListener(new ClickListener() { > > public void onClick(Widget sender) { > > History.newItem("token"); > > DOM.eventGetCurrentEvent().preventDefault(); > > }}); > > > container.add(link); > > container.add(new InlineLabel(" some more text"); > > > ...and/or you could "vote for" (i.e. "star") the issue > > 2901:http://code.google.com/p/google-web-toolkit/issues/detail?id=2901 --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT SITE? (example)
I need applications makes with R1.5 + eclipse + cypal study please, if anybody have this give me 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT SITE? (example)
Check out Lombardi Blueprint at https://blueprint.lombardi.com or Queplix (http://demo.queplix.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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
z-index or zIndex which is correct :?
I had this problem earlier (http://groups.google.com/group/Google-Web- Toolkit/browse_thread/thread/2955916fb09914d4/7613eb55206b2114? lnk=gst&q=zindex#7613eb55206b2114) I fixed it by using zindex, but now looking at my code I'm getting quite puzzled. Just which is correct? At the moment my code is a horrible fudge that uses both z-index and zindex. I'd like to clean it up. According to css referances its ""z-index"" yet according to much gwt code its "zIndex". --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: z-index or zIndex which is correct :?
If you are writing css it is z-index. If you are playing with the DOM, it's zIndex. Same with everything else.font-size / fontSize etc Ian http://examples.roughian.com 2008/10/3 darkflame <[EMAIL PROTECTED]> > > I had this problem earlier (http://groups.google.com/group/Google-Web- > Toolkit/browse_thread/thread/2955916fb09914d4/7613eb55206b2114? > lnk=gst&q=zindex#7613eb55206b2114) > > I fixed it by using zindex, but now looking at my code I'm getting > quite puzzled. > Just which is correct? > At the moment my code is a horrible fudge that uses both z-index and > zindex. > I'd like to clean it up. > According to css referances its ""z-index"" yet according to much gwt > code its "zIndex". > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT SITE? (example)
This is full RIA based on GWT:- http://www.streetsine.com On Oct 4, 1:25 am, Davsket <[EMAIL PROTECTED]> wrote: > Hi, you should try this one: SonidoLocal -http://www.sonidolocal.com, > it's the first portal in latam of legal music streaming... full GWT > and GWT-EXT. > > On Oct 3, 3:42 am, "rov.ciso" <[EMAIL PROTECTED]> wrote: > > > Good day! Do anybody know sites based on GWT? What is big project > > write with GWT? Please, give me url. 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Label + Hyperlink + Label
Why faff about with an anchor and clicklistener when you can just put this .gwt-Hyperlink { display : inline; } in your css? You can then throw one lot of text at the HTMLPanel with placeholders. Ian http://examples.roughian.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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT SITE? (example)
Hi, you should try this one: SonidoLocal - http://www.sonidolocal.com, it's the first portal in latam of legal music streaming... full GWT and GWT-EXT. On Oct 3, 3:42 am, "rov.ciso" <[EMAIL PROTECTED]> wrote: > Good day! Do anybody know sites based on GWT? What is big project > write with GWT? Please, give me url. 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Severe performance problem after upgrading to GWT 1.5.2 (final)
We noticed a slow down by just switching from 1.5RC2 to 1.5.2 more specifically on FireFox 3. I recently tested on Chrome and Safari 3 and the performance there is significantly better it seems to be well over 10x faster. I think there might be a bug using the scripting engine on FireFox and also IE. Or it could be the java scripting engine on Safari is really that much better. The overall app is much faster on Safari, but i would say the biggest issue is with RPC calls. On Oct 3, 7:22 am, "Sumit Chandel" <[EMAIL PROTECTED]> wrote: > Hi Manuel, > It seems hbatista's slowdown in performance was related to a database > change. > > In your case, are you still experiencing slowdowns on your RPC calls? Also, > did these slowdowns occur when you went from 1.4.x to 1.5.2, or were you > always facing slow RPC calls in your GWT application? > > Thanks, > -Sumit Chandel > > On Tue, Sep 30, 2008 at 8:26 PM, Manuel <[EMAIL PROTECTED]> wrote: > > > Has anyone figgured this out. I am having sever performance problems > > with this. accross the board all 1.5.2 compiled apps are a lot slower > > > On Sep 18, 4:59 am, hbatista <[EMAIL PROTECTED]> wrote: > > > Thanks for the suggestion, but changing data types didn't help. > > > I did not profile my code, but the observed behavior is: > > > 1. RPC call is made > > > 2. server side method runs and returns (quickly!) > > > 3. ... huge delay with no CPU activity ... > > > 4. finally client side onSuccess() RPC callback runs > > > > What could be happening on step 3 ? > > > > I took a quick look at the serializer source code, but it's too > > > different from 1.4.60 to compare side by side. > > > > On Sep 18, 2:06 am, Tim <[EMAIL PROTECTED]> wrote: > > > > > not sure, but maybe there are some datatype penalty issues (long vs > > > > double etc). Did you profile your server side code? > > > > > On Sep 17, 10:28 am, hbatista <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > I've just upgraded one of my projects from 1.4.60 to1.5.2, and > > > > > everything went very smoothly, but... > > > > > when my application tries to fetch a large number of objects from the > > > > > server (via RPC, returns HashMap, about 6000 entries) it > > > > > takes a very very long time! > > > > > > Before the upgrade this was very fast (at least in Firefox and > > Chrome, > > > > > not in IE). > > > > > > Strangely, while waiting for the RPC call to return there is NO cpu > > > > > activity... > > > > > > For me this seems related to some deep changes in the serialization > > > > > code (taking a guess here), before the upgrade trying to fetch so > > many > > > > > records from the server would crash IE with 'JavaScript SyntaxError > > > > > exception: Out of memory', while now it works (good!) but is veryslow > > > > > in all browsers (bad!). > > > > > > Can someone help me debug this problem?- 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: any plans to offer java bean support in future?
Why would you need this kind of code in GWT? On Oct 3, 3:50 pm, mwaschkowski <[EMAIL PROTECTED]> wrote: > Hi All, > > I've been using a 3rd party wysiwyg tool to create my gwt interface, > and one thing I've run into is that gwt does not support java bean > type customization. The following was suggested: > "General JavaBean support would be good which would include > standardize support for property accessors, default constructors, > custom editors, customizers, Beans.isDesignTime(), etc." > > see:http://www.instantiations.com/forum/viewtopic.php?f=11&t=2174&sid=301... > > The thing that I would need is custom editors. Would there be any > plans in the future to support this kind of thing? > > Thanks very much, > > 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
IE 6 doesn't finish load page
Hi people, I have a serious problem I suggest to use the gwt technology for the new projects of my company I use gwt 1.5.2 and gwt-ext 2.0.5 every thing go fine but when I try to prove the app in IE 6 the page load don't finish, my CPU get more than 50% for iexplorer.exe and don´t finish never. This usually happens the first time, then I kill process I try again and wrko fine woth out error of js, but unexpectedly it happens again and kill process and work fine ... and another time crash. I navigate for many topics, forums, suggest but I can't fine the exactly same problem, and suspect that is not for RPC calls because the data some time appear but the loading doesn´t finish never. IE version : 6.0.2900.2180 jscript.dll: 5.6.0.8834 Pls help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Collation and java.text.* support in GWT
Hi fellows, Does anybody know anything about support for Collation in I18N? Is it a planned feature? I've just realized, that sorting and comparing strings with respect to Locale is a really hard task in GWT, this feature is not supported in emulation library. I consider this to be a very important feature... any infos? THX --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Moderation policy back in effect: new members' messages moderated to prevent spam
Hi Lim, I just moderated a new batch of messages. It's possible you're message was in the queue. It should come up now. If not, let me know. Thanks, -Sumit Chandel On Fri, Oct 3, 2008 at 3:38 PM, TH Lim <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am new to this group and cannot post new topics to this group. Is > this because of the spam policy in place? Thanks > > /lim/ > > > > --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: colorating a tab
Does anybody know if it's possible to specify one or more CSS file(s) (not styles, but rather files containing styles) from client code? (currently I link them within HTML file). On Oct 3, 4:01 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote: > On 3 oct, 12:12, Zied Hamdi <[EMAIL PROTECTED]> wrote: > > > > > Hi folks, > > > I'm new to GWT (but I read the tutorial). I need to give my tabs a > > different color, and this is what I see in my firebug: > > > .gwt-TabBar .gwt-TabBarItem {standard.css (line 870) > > background:#D0E4F6 none repeat scroll 0%; > > color:black; > > cursor:pointer; > > font-weight:bold; > > margin-left:6px; > > padding:3px 6px; > > text-align:center;} > > > .gwt-TabBar-Into .gwt-TabBarItem {main.css (line 55) > > background:#EE none repeat scroll 0%; > > color:#6F6F6F; > > > } > > > so the standard css background and color are overriding my locally > > defined attrs in main.css. > > > Is it due to a bad configuration? or is it the way it is supposed to > > work? > > How is the main.css included? It might be a "priority" problem: if > main.css is loaded before standard.css (which will probably be the > case if main.css is not GWT-injected with a in your > module's gwt.xml), given that the two selectors have the same > "specificity" [1], their rules are evaluated in the order they've been > loaded, so the background and color set in standard.css will override > the one set in your main.css. > > Try adding an "!important" to your rules and see if they're applied > (with !important, the rules in standard.css won't override your own ! > important rules, even though they are evaluated after them). > If that's the case, try to find a way for your stylesheet to be loaded > after standard.css (and remove the !important, which is bad practice > and recommended for user-stylesheets only [2]), either by getting your > main.css injected by GWT, or by inheriting StandardResources (instead > of Standard) and calling the standard.css by yourself... > If I were you however, I'd file a bug to have the injected stylesheet > come *before* the existing ones so that the ones already present in > the page override the injected stylesheets... > > [1]http://www.w3.org/TR/CSS21/cascade.html#specificity > [2]http://www.w3.org/TR/CSS21/cascade.html#important-rules --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT-Gadget same-origin security restriction
Hello Jose, The solution to send data with the request builder is to use a POST: RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url); The difference of POST and GET ist: GET: only the "address line" is sent to the server. If you want to send data with a GET you must put it as a parameter into the URL: http://www.xyz.de&data=thisisthedatata POST: you can provide an URL and send additional data: requestBuilder.sendRequest(data, new RequestCallback() { ... } OK, I have got a question, too: What is this line doing? url = intrinsics.getCachedUrl(url, 1); What does it do with the URL and why can it avoid the same origin problem? I'm not using gadgets but I'm looking for a possibility how to call a web service from GWT that is not on the same server as my GWT site. (E.g. calling the amazon web service from my site (client) which is built with GWT). One solution of course is that I make a call to my server and the servlet then calls the webservice and answers to the GWT client with the response data from the web service. But I explicitly wnat to avoid to make a call to my server. If you have any idea please let me know. Regards Andreas --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: self-removing LoadListener
hmm that didn't work, but i managed to get it working with a DeferredCommand. here's an idea of how i've got it set up: image.setUrl(theUrl); DeferredCommand.addCommand(new Command() { public void execute() { //my resizing code } }); On Oct 3, 2:39 am, mon3y <[EMAIL PROTECTED]> wrote: > Hey > > Straight after you set the URL of the imageremove the listener. > > :) > > On Oct 2, 11:04 pm, D L H <[EMAIL PROTECTED]> wrote: > > > Hello. > > > I'm trying to create an Image LoadListener that will remove itself > > from the image once the image is finished loading. I tried using > > image.removeLoadListener(this); but that gave me a > > ConcurrentModificationException. Then I tried making the LoadListener > > a final and using image.removeLoadListener(myLoadListener); but > > myLoadListener was not yet initialized since it was called from inside > > it's own onLoad method. I also played around with DeferredCommand a > > bit, but I'm not sure how to get that to work. > > > Thanks in advance for your help. > > > -DLH --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Tab panel Css
Hi all, i know how to create the tab panel. but not able to add the image and add css to it.. my code is final RootPanel rootPanel = RootPanel.get(); final TabPanel tabPanel = new TabPanel(); rootPanel.add(tabPanel, 0, 0); tabPanel.setSize("747px", "355px"); final AbsolutePanel absolutePanel = new AbsolutePanel(); tabPanel.add(absolutePanel, "Tab"); absolutePanel.setHeight("100px"); final AbsolutePanel absolutePanel_1 = new AbsolutePanel(); tabPanel.add(absolutePanel_1, "Tab"); absolutePanel_1.setHeight("300px"); final AbsolutePanel absolutePanel_2 = new AbsolutePanel(); tabPanel.add(absolutePanel_2, "Tab"); absolutePanel_2.setHeight("300px"); tabPanel.selectTab(0); i want to give space between the tabs buttons and also i want add image to the tab buttons.. can any one help me in this. if possible please give me example along with code. thanks in advance Regards Ananda --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
SocketTimeOutException
I am developing a GWT-based client that accesses a database frequently to display status information about an application. After receiving the response of the RPC-request, the client displays the status information fetched, checks if the application has ended; if not, the client will send another request... and the whole game repeats. Technology used: - Tomcat 1.6.0.14 - Java 5 - GWT 1.5.2, RPC After a while - the elapsed time is not always the same - I get the following exception: 29.09.2008 14:54:26 org.apache.catalina.core.ApplicationContext log SEVERE: Exception while dispatching incoming RPC call java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java: 716) at org.apache.coyote.http11.InternalInputBuffer $InputStreamInputBuffer.doRead(InternalInputBuffer.java:746) at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java: 116) at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java: 675) at org.apache.coyote.Request.doRead(Request.java:428) at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java: 297) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java: 405) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java: 312) at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java: 193) at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8(RPCServletUtils.java: 146) at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent(RemoteServiceServlet.java: 335) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java: 77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 263) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 844) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:584) at org.apache.tomcat.util.net.JIoEndpoint $Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) I have to add that this exception never occured in hosted mode. Solution attempt: Catch the InvocationException in the onFailure- Method in AsyncCallback and post the request again. This makes my status display work fine without any failure in hosted mode and on my local tomcat. As soon as it is deployed on our productive Tomcat, the same exception is thrown. Similar problems have been described in 1. http://groups.google.com/group/Google-Web-Toolkit/tree/browse_frm/month/2007-01/3e03ad1af5d5a179?rnum=151&_done=%2Fgroup%2FGoogle-Web-Toolkit%2Fbrowse_frm%2Fmonth%2F2007-01%3F 2. http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/8f2bb3dc5e5f42f7 ... but none of them has provided any solution. Any help will be appreciated. --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT-Gadget same-origin security restriction
On Fri, Oct 3, 2008 at 8:28 AM, andi <[EMAIL PROTECTED]> wrote: > > Hello Jose, > > The solution to send data with the request builder is to use a POST: > > RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, url); > > The difference of POST and GET ist: > GET: only the "address line" is sent to the server. If you want to > send data with a GET you must put it as a parameter into the URL: > http://www.xyz.de&data=thisisthedatata > POST: you can provide an URL and send additional data: > requestBuilder.sendRequest(data, new RequestCallback() { > ... > } > > OK, I have got a question, too: > What is this line doing? url = intrinsics.getCachedUrl(url, 1); > What does it do with the URL and why can it avoid the same origin > problem? It redirects to a proxy running on the same machine where the cached gadget was retreived from. Print out the value of 'url' after you retrieve it. It should show a url to a different IP address, with the "real" url you want to go to as a URL command line parameter. > I'm not using gadgets but I'm looking for a possibility how to call a > web service from GWT that is not on the same server as my GWT site. > (E.g. calling the amazon web service from my site (client) which is > built with GWT). > > One solution of course is that I make a call to my server and the > servlet then calls the webservice and answers to the GWT client with > the response data from the web service. But I explicitly wnat to avoid > to make a call to my server. Unfortunately, this proxy is gadgets specific. You could setup such a proxy on your web site, however. > > If you have any idea please let me know. > > Regards > > Andreas > > > > -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Project bin directory
>From what I can see, the bin directory gets created when you initially import your project into Eclipse. Once created, -compile updates the class files in this directory. I just tried deleting it's contents ($ rm bin/*). No amount of running -compile would recreate the contents. I had to close and delete the project (without deleting the files) and reimport it for it to work. Is this right? What have others discovered? There have been times in the past when I've removed the contents and somehow they came back-- either auto-magically or by me retrieving them from my last backup. On Sep 16, 10:00 am, Willis <[EMAIL PROTECTED]> wrote: > Kind of a simple question, but I notice that some of my GWT projects > have abindirectory. I understand it holds the compiled versions of > my class files from src, but it is not created when aprojectis > started (using theproject/application creators), so when is it > created? Also, what happens if I delete it? > > Thanks in advance for any clarifications! --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
erroneous "call failed on server" when servlet is successful
I have two GWT projects, call them ProjectA and ProjectB, that I would like to keep separate. When ProjectA.war file is created, I'm integrating ProjectB as a subproject. Eventually, there may be multiple subprojects inside ProjectA, and ProjectB may also be used as a subproject elsewhere. In my integrated projects, anchors in ProjectA can now call "./ ProjectB.html?foo=bar" without creating a new HttpSession, which is grand because ProjectA already holds a login and license on a remote application and database, and can share this seemlessly with ProjectB. That part works fine. On load, a servlet call starts in ProjectB to attach to the database and pull up a file. It all works just like when ProjectB runs standalone, EXCEPT I always get an alert with the message "The call failed on the server; see server log for details". Tomcat's localhost.log shows "java.lang.IndexOutOfBoundsException: Index: 0, Size: 0". (The full trace is at the end of this message.) This exact same message occurs again when ProjectB makes a servlet call, although otherwise the call is behaves correctly. My distrib directory for ProjectA looks like a normal GWT distribution directory. I then insert ProjectB (using Robert Hanson's "GWT in Action" Ch 16 as a guide). I get this: ProjectA --distrib --**.cache.html, etc --ProjectA.html --ProjectA.css --ProjectB.html --ProjectB.css --ProjectB --**.cache.html, etc --WEB-INF --classes --lib --web.xml I have merged the web.xml files of both projects as well as the classes and lib directories. In web.xml, servlets from ProjectA look like aServices /servlet/aServices While ProjectB looks like bServices /ProjectB/servlet/bServices Any ideas what's happening? You can see from the message below that the error seems to be coming from GWT. Oct 3, 2008 6:16:48 PM org.apache.catalina.core.ApplicationContext log SEVERE: Exception while dispatching incoming RPC call java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(ArrayList.java:547) at java.util.ArrayList.get(ArrayList.java:322) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract(ServerSerializationStreamReader.java: 617) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt(ServerSerializationStreamReader.java: 432) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead(AbstractSerializationStreamReader.java: 38) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java: 383) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 163) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java: 86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: 290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java: 206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: 233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: 175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 263) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java: 190) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java: 283) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java: 697) at org.apache.jk.common.ChannelSocket $SocketConnection.runIt(ChannelSocket.java:889) at org.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.java:690) at java.lang.Thread.run(Thread.java:619) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Running Windows-built GWTTestCase on Sparc/Solaris ??
The error looks like the GWT tests are trying to use the Windows development kit on your Linux machine. To run tests on your Linux build machine, you need to switch your build to use the GWT Linux distribution. What's happening is that the GWTTestCase tests are trying to start up a headless hosted mode browser, which is different on each platform (Mac, Windows, Linux). Use the Windows dev kit on your laptop and the Linux dev kit on your build machine. To make this, you'll need to do some per-OS switching in your build scripts -- in Ant, you may need to use the with a conditional tag to set the appropriate libraries. See this thread for more information: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ecebc719ec7d2a10 Dan > Can't load library: .../libswt-win32-3235.so > java.lang.UnsatisfiedLinkError: Can't load library: .../libswt- > win32-3235.so > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650) --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT deployment to JBoss
Hello, Use -Xmx1024m Regards, Carlos On Thu, Oct 2, 2008 at 7:59 PM, Ronak Patel <[EMAIL PROTECTED]> wrote: > > Thanks, > > That did it. > > Another question for you...I am now getting OutOfMemoryErrors while > trying to compile and build Google Web Toolkit from Maven. I tried > setting my pom file to: > > >com.totsp.gwt >maven-googlewebtoolkit2-plugin artifactId> > >true >INFO > > com.baesystems.grading.gwt/Main.html > > > com.baesystems.canes.grading.gwt.Main > >${gwtVersion} > > > > >mergewebxml >compile > > > > > > But there's no process fork going on. I also tried setting > > -Xmx1024m but that doesn't help either. > > Has anyone come across this? > > Thanks. > On Sep 27, 6:27 pm, "Carlos Rafael Ramirez" <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > I am using jboss, eclipse and ant (not maven) to deploy my web > application > > using GWT 1.5 and no problem at all. Check your html host page. A simple > > check is trying to download the nocache file as is written in your > webpage. > > If it can be found by the browser well at least your web application is > > well configured. > > > > Regards, > > Carlos > > > > > > > > On Sat, Sep 27, 2008 at 8:19 PM, Ronak Patel <[EMAIL PROTECTED]> > wrote: > > > > > Hi all, > > > > > I'm using Eclipse & Maven to deploy a GWT 1.5 web application to > > > JBoss. When I run the application inside of the built in Application- > > > shell.cmd program, I see my web application inside of the Google > > > Browser Window. > > > > > However, when I build the war file using Maven and the GWT Archetype, > > > I am unable to visit the web application home page. > > > > > Maven runs and bundles the outputs of the Application-compile.cmd > > > file. This includes a WEB-INF complete with classes and lib folders > > > along with the nocache and cache html and js files. > > > > > Was anyone else ever able to deploy and view the outputs of a GWT > > > application successfully?- 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Using the hibernate4gwt?
Hello, anyone of you this Using the hibernate4gwt? it is worth? it really solves the problem with many such relationships to a list? --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---