Re: GWT Stylesheet Replacement
That's fine if you have a reference to an external stylesheet, I was getting GWT to process my css though and was then including that via ensureInjected(). a number of methods in StyleSheetLoader are deprecated because of IE oddities. We actually ended up writing some custom code to process the head element and modify the style elements that way, seems to work fine... On Mar 2, 1:03 am, Peter Simun si...@seges.sk wrote: HiJonathan, you can use StyleSheetLoader from GWT showcase:http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl... This allows you to load stylesheets at the runtime. Peter On Mar 2, 8:07 am, jonathan.hollo...@gmail.com jonathan.hollo...@gmail.com wrote: Hi all, I've built a themeable GWT application that uses specific theme stylesheet (lets call then themeA.css and themeB.css) on top of a common set of css styles. On application start I can inject a stylesheet using: ThemeA themeA = GWT.create(ThemeA.class); themeA.ensureInjected(); and this happily stuffs a style element into the head section of the DOM. However, I need to replace the stylesheet (because the user can switch between various themes). My original thought was to do the following: StyleElement el = new StyleElement(); el.setId(customtheme); el.setInnerText(themeA.getText()); getHead().append(el); and then be able to remove the style element using the id to locate it. At present, this work in Firefox but throws all kinds of Runtime exceptions under Internet Explorer (will post the exact issue tomorrow). Can anybody suggest a workaround for this, or an alternative method to replace stylesheets in an application dynamically? Many thanks, Jon. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DecoratorPanel subclass and Widgets
Hi all, I'm using GWT 2.0. I've extended DecoratorPanel in order to add a title bar which contains a title and a number of pushbuttons/images. I've run into an issue here because when I add an image to the header bar as follows: image.addClickHandler(handler); image.sinkEvents(Event.KEYEVENTS); image.setStyleName(style); DOM.appendChild(titleBarElement, image.getElement()); adopt(image); the image appears fine on the title bar but the associated click handler does not work at all. Can anybody provide any further info here? I initially tried to add a PushButton (instead of an Image), but that was worse : ) because the image was not rendered correctly on the title bar, in fact it was completely missing, despite adding the image to the PushButton via the constructor. PushButton pushButton = new PushButton(image); pushButton.addClickHandler(handler); pushButton.setStyleName(style); DOM.appendChild(titleBarElement, pushButton.getElement()); adopt(pushButton); Many thanks, Jon. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.0 Minor Bug Fix Release
Hi all, is there a minor bug fix release planned for GWT 2.x at all to address any of the outstanding issues to date, e.g. UiBinder internationlization etc.. Many thanks, Jon. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT + Spring Security
Awesome, I'll take a look at it... On Dec 11, 12:41 am, olivier nouguier olivier.nougu...@gmail.com wrote: Hi jonathan, Are you using maven ? If the answer is yes:http://groups.google.com/group/google-web-toolkit/browse_thread/threa... http://groups.google.com/group/google-web-toolkit/browse_thread/threa... On Thu, Dec 10, 2009 at 8:40 PM, jonathan.hollo...@gmail.com jonathan.hollo...@gmail.com wrote: I'm having issues with the Spring Security and GWT. Defining the following in my Spring config file: beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:security=http://www.springframework.org/schema/security; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd; and referencing spring security elements as follows: security:http entry-point-ref=samlEntryPoint security:intercept-url pattern=/** access=IS_AUTHENTICATED_FULLY/ security:intercept-url pattern=/logout.jsp filters=none/ security:intercept-url pattern=/login.jsp filters=none/ security:intercept-url pattern=/favicon.ico filters=none/ /security:http results in: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security] Offending resource: class path resource [server-config.xml] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error (FailFastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error (ReaderContext.java:85) at org.springframework.beans.factory.parsing.ReaderContext.error (ReaderContext.java:80) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error (BeanDefinitionParserDelegate.java:281) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement (BeanDefinitionParserDelegate.java:1294) Has anybody come across/solved this issue at all? It's definitely a GWT issue as I'm able to load the config up normally in a standard Java application. Many thanks... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT + Spring Security
I'm having issues with the Spring Security and GWT. Defining the following in my Spring config file: beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:security=http://www.springframework.org/schema/security; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd; and referencing spring security elements as follows: security:http entry-point-ref=samlEntryPoint security:intercept-url pattern=/** access=IS_AUTHENTICATED_FULLY/ security:intercept-url pattern=/logout.jsp filters=none/ security:intercept-url pattern=/login.jsp filters=none/ security:intercept-url pattern=/favicon.ico filters=none/ /security:http results in: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locate Spring NamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security] Offending resource: class path resource [server-config.xml] at org.springframework.beans.factory.parsing.FailFastProblemReporter.error (FailFastProblemReporter.java:68) at org.springframework.beans.factory.parsing.ReaderContext.error (ReaderContext.java:85) at org.springframework.beans.factory.parsing.ReaderContext.error (ReaderContext.java:80) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.error (BeanDefinitionParserDelegate.java:281) at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement (BeanDefinitionParserDelegate.java:1294) Has anybody come across/solved this issue at all? It's definitely a GWT issue as I'm able to load the config up normally in a standard Java application. Many thanks... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.