Re: Problem with Firefox 22 and GWT Dev Plugin?
I have the same problem. Also FF 22.0 and Win 7 Prof. This problem started today an hour ago without doing any manual updates of the plugin or the browser. /Per Den tisdagen den 6:e augusti 2013 kl. 03:49:19 UTC+2 skrev David Edelstein: I just tried installing the GWT Dev Plugin on a fresh install of Firefox 22.0 and it crashes Firefox. This is on Windows 7 Professional. Is anyone else having this problem? Thanks, David E. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problem with Firefox 22 and GWT Dev Plugin?
Downgraded to ff 21 and disabled automatic updates.. and now it works On Aug 6, 2013 3:29 PM, hespresati darkskim...@gmail.com wrote: I have the same issue here with Firefox 22.0 on Windows Home Premium 32 bits and GWT Plugin 1.23 -- You received this message because you are subscribed to a topic in the Google Groups Google Web Toolkit group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-web-toolkit/d45YDwdfCVs/unsubscribe . To unsubscribe from this group and all its topics, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Spring ROO GWT with GIN injection on widgets created by ui:binder.
Hi, I'm not sure if this is the right place to post this, but I need help getting GWT components to work inside the ROO generated scaffold. In short, I create a new ROO project, eventually run GWT setup and then try to add my own component using the suggested MVP. Let's call the component Ror for the sake of the example and strip out the code that's not relevant: [CODE] ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:ig='urn:import:com.ig.client.scaffold.ui.widget' ui:style /ui:style g:HorizontalPanel g:Button ui:field='myButton'myButton/g:Button g:Button ui:field='yourButton'yourButton/g:Button /g:HorizontalPanel /ui:UiBinder [/CODE] [CODE] package com.ig.client.scaffold.ui.widget; public class RorView extends Composite implements RorPresenter.Display { interface Binder extends UiBinderWidget, RorView {} private static Binder BINDER = GWT.create(Binder.class); @UiField Button myButton; @UiField Button yourButton; private ClickHandler myButtonClickHandler; private ClickHandler yourButtonClickHandler; public RorView(){ initWidget(BINDER.createAndBindUi(this)); } @UiHandler(myButton) void onMyButtonClick(ClickEvent event){ this.myButtonClickHandler.onClick(event); } @UiHandler(yourButton) void onYourButtonClick(ClickEvent event){ this.yourButtonClickHandler.onClick(event); } @Override public void setMyButtonClickHandler(ClickHandler buttonClickHandler) { this.myButtonClickHandler = buttonClickHandler; } @Override public void setYourButtonClickHandler(ClickHandler buttonClickHandler) { this.yourButtonClickHandler = buttonClickHandler; } } [/CODE] [CODE] public class RorPresenter { package com.ig.client.scaffold.ui.widget; // public interface Display extends IsWidget { void setMyButtonClickHandler(ClickHandler buttonClickHandler); void setYourButtonClickHandler(ClickHandler buttonClickHandler); } // private final Display display; private final EventBus eventBus; @Inject public RorPresenter(Display display, EventBus eventBus){ this.display = display; this.eventBus = eventBus; bind(); } private void bind(){ display.setMyButtonClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert(FIT); } }); display.setYourButtonClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { Window.alert(CIT); } }); } } [/CODE] This Ror component is then added onto the default view (ScaffoldDesktopShell.ui.xml) and for it to work, the view and presenter layers need to be binded. Inside ScaffoldModule (com.ig.client.scaffold.ioc) I add my binding code ... [CODE] public class ScaffoldModule extends AbstractGinModule { @Override protected void configure() { bind(EventBus.class).to(SimpleEventBus.class).in(Singleton.class); bind(ApplicationRequestFactory.class).toProvider(RequestFactoryProvider.class).in(Singleton.class); bind(PlaceController.class).toProvider(PlaceControllerProvider.class).in(Singleton.class); bind(RorPresenter.Display.class).to(RorView.class); } ... [/CODE] ... yet the binding doesn't appear to be working, the myButtonClickHandler and yourButtonClickHandler inside the @UiHandler s are null giving me a null pointer exception when I click on either of the buttons. Any idea what might be wrong with the binding code or why it's not working? What I actually want to be doing is injecting an eventBus and let the buttons fire an event on the event bus, but need to get the binding to work first. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Insert TabLayoutPanel in a SimplePanel
Hi Aldo, another approach is not to use a SimplePanel at all. But rather to implement something like a SimpleLayoutPanel yourself. It will work fine with xxxLayout components embedded within it. (I really think it is something Google missed to include in GWT 2.1.) Please see below for one implementation that has worked fine for me. regards Per - package se.perper.util; import com.google.gwt.user.client.ui.HasOneWidget; import com.google.gwt.user.client.ui.IsWidget; import com.google.gwt.user.client.ui.LayoutPanel; import com.google.gwt.user.client.ui.Widget; public class SimpleLayoutPanel extends LayoutPanel implements HasOneWidget { Widget widget; @Override public void setWidget(IsWidget w) { setWidget(asWidgetOrNull(w)); } @Override public Widget getWidget() { return widget.asWidget(); } @Override public void setWidget(Widget w) { // Validate if (w == widget) { return; } // Detach new child. if (w != null) { w.removeFromParent(); } // Remove old child. if (widget != null) { remove(widget); } // Logical attach. widget = w; if (w != null) { add(w); } } }; -- 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.
DockLayoutPanel inside a TabLayoutPanel
We are trying to insert a Component that uses a DockLayoutPanel into one of our Tabs of a TabLayoutPanel. It seems as if the DockLayoutPanel simply ignores where it is put into and lies over the TabLayoutPanel. Its north is acually above the TabBar, on a different layer or so. Is this simply not possible, or is there a trick to it? Best Regards Per -- 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.
Problem with RichTextEdit on Google Chrome (linux); works fine in other browsers.
Hi I am working on an applivation, that includes a form, where I have a textarea, that I can switch between using a TextArea, and a RichTextArea. Everything works fine in Firefox (Linux and Windows) and on Internet Explorer; However when I try my application on Google Chrome (v6.0.401.1) on SuSe Linux, I have some problems when in RichTextEdit mode. ( I find it strange, that with a Google product like GWT, that they do not have prober support for their own browser; when things are working fine in other browsers) 1: The TAB key does not work. 2: OnFocus and OnBlur handlers are not called when entering/leaving the RichTextArea (works fine on TextArea) I am using GWT v2.0.3 the class is defined like this: public class CslRichTextEdit extends Composite implements ClickHandler, KeyUpHandler, FocusHandler, BlurHandler { I assign the handlers like this: textArea = new TextArea(); richTextArea = new RichTextArea(); richTextArea.addFocusHandler(this); richTextArea.addBlurHandler(this); richTextArea.addKeyUpHandler(this); richTextArea.addClickHandler(this); textArea.addFocusHandler(this); textArea.addBlurHandler(this); textArea.addKeyUpHandler(this); textArea.addClickHandler(this); and the Focus/Blur handlers are created like this: @Override public void onFocus(FocusEvent event) { if (rawMode) { textbar.setVisible(true); } else toolbar.setVisible(true); if (maxChars 0) { cPanel.setVisible(true); } } @Override public void onBlur(BlurEvent event) { if (rawMode) { textBuffer = textArea.getText(); } else { textBuffer = richTextArea.getHTML(); } if (maxChars 0) { cPanel.setVisible(false); textSize = textBuffer.length(); if (textSize maxChars) { Window.alert(Too many characters in textbox); if (rawMode) textArea.setFocus(true); else richTextArea.setFocus(true); } } } -- 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: Google Web Developer Plugin for FireFox 3.6?
Thanks, that thread solved my problem, Needed to create a symlink from libnspr4.so to libnspr4.so.0d in /usr/ lib64 and delete my compreg.dat, then developer mode is working again. Per -- 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: Google Web Developer Plugin for FireFox 3.6?
On Apr 30, 1:10 am, Jeff Chimene jchim...@gmail.com wrote: On 04/29/2010 03:51 PM, Per wrote: What are the symptoms? In Tools/Add-ons/Extensions I have Google Web Toolkit Developer Plugin for Firefox 1.0.751 installed and enabled; but if I try to run an application from: http://127.0.0.1:/Csl.html?gwt.codesvr=127.0.0.1:9997 (The internal server of Eclipse), I get the message: Development Mode requires the Google Web Toolkit Developer Plugin and a button to download and install. Even if I try that I still get that message. FF 3.6.3 + plugin works fine for me on Debian Lenny (for those of you playing the home version of this game, this means that I'm not using the Debianized FF) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Custom component with DIV markup?
I am still new to this stuff; but found that this way is working: first create a new panel class: - import com.google.gwt.dom.client.Document; import com.google.gwt.user.client.ui.AbsolutePanel; public class MyPanel extends AbsolutePanel { public MyPanel(String class) { super(Document.get().createDivElement().com.google.gwt.user.client.Element cast()); this.setStyleName(class); } } - Then you can use it like: private MyPanel top = new MyPanel(footer_top); private MyPanel content = new MyPanel(footer_content); -- 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.
Using Fixed font only in RichTextArea
Hi I am working on an application, where we have some forms, with TextAreas, we do need some simple formatting, like bold, italic, underline, bullets and html links. So for this I use a RichTextArea. The problem is that the users, copies text from mails, other web pages etc, and doing this all the formatting like font size, font color, and fonts etc are also copied over, and this is unwanted. The People I am making this for, wants to have a fixed font, font size and font color at all times. Are there a way to limit the type of formatting than can take place, also on pasted text, other than writing a filter, that manually removes unwanted html formatting commands? Thanks in advance Per -- 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.
Google Web Developer Plugin for FireFox 3.6?
Hi I am using Linux (OpenSuse 11.2) for my work and web development; but have found, that after upgrading to Firefox 3.6 (I am now on 3.6.3), the Google Web Developer Plugin is not working any more. Anybody knows when a new version compatible with FF 3.6 will be available, or if there is plans for a Linux version of the plugin for the Google Chrome browser? (I would hate to downgrade, as FF3.6 is so much better than FF3.5 Per -- 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.
How do I put a list of labels in an AbsolutePanel?
Hi I am still new to all this stuff, and have run into a problem: I can create a full list in a string, put it in an HTML widget, and add it to the panel, and that displays OK. However I need to have each list item being clickable, so I need to put a list of HTML elements inside the Panel, all embedded in an ul /ul element, and this is my problem: I crerated a new derived class from HTML like this: public class FamHTML extends HTML { public FamHTML(String html, ClickHandler handler){ super(Document.get().createSpanElement()); setHTML(html); addClickHandler(handler); } } If I then try something like: nameListPanel.setElement(Document.get().createULElement()); for (int i = 0; i names.size(); i++) { nameListPanel.add(new FamHTML(li + URL.decodeComponent(((JSONString) names.get(i)).stringValue()) + / li,handler)); } Then I get the error, that setElement is not visible to nameListPanel, which is an AbsolutePanel. So basicaly, how can I get everything inside an AbsolutePanel embedded inside an ul /ul block? Per -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I put a list of labels in an AbsolutePanel?
OK looking at the source code, I found a way around it, I just created a ListPanel like this: public class ListPanel extends AbsolutePanel { public ListPanel() { super(Document.get().createULElement().com.google.gwt.user.client.Element cast()); } } Per -- 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.
Problem with PopupPanel size amd position first time
Hi I am still new to the GWT toolkit; but I am trying to convert an old web application into a RIA, using gwt. One problem I have run into is, that The application includes a form, where I have an autocomplete function on some textbox'es and a textarea. For the autocomplete, I use a PopupPanel with an ListBox with the suggestions (that I pickup via JSON, from a perl cgi script on the server). I got everything working OK, except that the first time, the suggestionbox need to pop up, it pops up at the botton of the page, and have a width of 100%, not the size of the listbox. All the next times used the PopupPanel pops in the correct position, and with the correct width. If testing with the Google Chrome Browser (linux), it does work correct, also the first tile, but not on Firefox (linux), and not on IE6 (Windows XP). When looking at the div for the panel, the parameters: left: 410px; top: 267px; position: absolute; are there when it is working; but not the first time shown. I have tried in every way I could think of, to change the sequence of statements, with no effect, any suggestions on how I can solve this problem? The code looks like this: the variable definitions: protected PopupPanel choicesPopup = new PopupPanel(true); protected ListBox choices = new ListBox(); protected boolean popupAdded = false; protected boolean visible = false; protected int posy = -1; and in the constructor, I have: choices.setWidth(250px); choicesPopup.add(choices); choicesPopup.addStyleName(AutoCompleteChoices); popupAdded = false; visible = false; posy = -1; and in the JSON callback code, I have: if (response.getStatusCode() == 200) { setChoice(JSONParser.parse(response.getText()) .isArray(), choiseText); if (numChoices 0) { // choicesPopup.show(); choicesPopup.setVisible(true); if (numChoices == 1) { choicesPopup.hide(); choices.setSelectedIndex(0); complete(); } else { choices.setSelectedIndex(0); if (numChoices 10) { choices.setVisibleItemCount(10); } else { choices.setVisibleItemCount(numChoices); } int nposy = getAbsoluteTop() + getOffsetHeight(); if (posy 0 || nposy posy) { posy = nposy; } choicesPopup.setPopupPosition( getAbsoluteLeft(), posy); if (!popupAdded) { RootPanel.get().add(choicesPopup); popupAdded = true; } choicesPopup.show(); choicesPopup.setVisible(true); visible = true; }
Re: Problem with PopupPanel size amd position first time
OK, I found the problem, and solution: Searching for documentation, I found the following note: You don't need to add the popup to the RootPanel or anywhere else. If you do, Results May Be Unpredictable (wich was IBM's way of saying that they didn't know what the would happen). So removing the statements to add the popup to the root panel, solved the problem. Per -- 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: Shared interrupt handler
While waiting for my question to go through, I found a solution myself: I found, that I could use the tables TableListener, that can give me the widget that is contained in the call, that is clicked on, as well as row and column. So I created a new widget, where I added a key value to the Label widget, so I just use that value to get the data from the database. I also found a solution to the problem with the app only working the first 1 to 3 times. This was because I need to check if a key is available in a JSON object, before assigning a value from the JSON object. Per -- 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.
Shared interrupt handler
Hi I am new to both gwt and Java; but I am trying to use gwt to enhance an old web application, with using Ajax. I have however run into an issue: After a query to the database, I put the results in a table (I am currently using the supertable from cafesip; but have seen that there is also a good table widget in the incubator). The problem is, that from the table, people need to be able to click on a row, and from there get to a detail page for that entry. What I do now is: private void setRow(final CslData csl){ table.addRow(new Widget[] {new Button(csl.getSiteName(), new ClickHandler() { public void onClick(ClickEvent event) { siteList(csl.getSiteKey()); } }), .. This adds an awful lot of clickhandlers, with one for each row, so I am looking for a more elegant way of doing this. (A way of using the same click handler, and only passing the site key from the row.). Also I would like to do this on a Label rather than putting a button in the table. Hope some can educate me in the best way of doing this. (Also the app onlt works correctly the first two to three times a table cell is clicked, I guess this is due to memory issues from all the click handlers) Thanks in advance for ant help. Per -- 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.