Saturday, December 29, 2012

Why does Google search place GWT 1.5 documentation at the top of the list?

I did a Google search for "gwt menubar" (without the quotes) and the top hit was:

http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/MenuBar.html

The second hit was 2.0 documentation.

What is the easiest way to get to the most recent GWT documentation of a class?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bAgBXdQdJh4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Friday, December 28, 2012

Widget.addHandler() on GWT Button not working correctly

I am trying to use method addHandler on a Button. Following is my code:

private void attachClickHandler(Widget widget) {      ClickHandler clickHandler1;      ClickHandler clickHandler2;        clickHandler1 = new ClickHandler() {            @Override          public void onClick(ClickEvent event) {              System.out.println("ClickHandler One");          }        };      clickHandler2 = new ClickHandler() {            @Override          public void onClick(ClickEvent event) {              System.out.println("ClickHandler Two");          }        };      ((Button) widget).addClickHandler(clickHandler1);      widget.addHandler(clickHandler2, ClickEvent.getType());  }

If I add both handlers, it works perfectly. But if I try to add only clickHandler2 (with widget.addHandler(...), then the handler is not called.

Not able to figure out why?

Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TlqpQoDhr3sJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

JMockit compatible with GWTTestCase?

Its not compatible. Why do you need to mock things in a GWTTestCase? You normally do it in an ordinary JUnit Test to mock out classes that use GWT.create() or JSNI.

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/QarlLSFLWHEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: How to know the css used by the datagrid header?

The style name is probably obfuscated.  The default styles for CellTable are not in the standard.css with other GWT styles.  You can find them in com.google.gwt.user.cellview.client.CellTable.css.  If you want to change them, make a copy, change the styles, and pass it to your CellTable constructor.

On Thursday, December 27, 2012 12:20:58 AM UTC-8, tong123123 wrote:
I use F12 in IE9 or FF13 but still cannot see the css used by the datagrid header, I want to create a label with the css property (like the height, padding...) same as datagrid header, how to accomplish it?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/uf2CBh0yzEsJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: how to create columns with common header in data grid.

I wanted something similar but did it differently. I created a CellTable with just a header row above another CellTable.  The top CellTable had an extra header and nothing else.

On Thursday, December 27, 2012 3:14:27 AM UTC-8, shray rawat wrote:



===============================
see the attached files for this question.
I AM HAVING A,B,C AS MAIN HEADERS AND D,E,F,G AS THE SUB HEADERS UNDER C.

how can i create these columns in data grid

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VQNneE7qAF0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: Vertical align elements in FlowPanel?

You may be able to do it with CSS, but FlowPanels are not meant for controlling layout as you desire (centering).  Can you try one of the other Panels, like VerticalPanel or LayoutPanel?

On Friday, December 28, 2012 1:40:01 AM UTC-8, membersound wrote:
Hi,

how can I vertically center elements within a FlowPanel? I have several FocusPanels inside a FlowPanel, which means they are stacked on each other. One of the focuspanels has an image, which should be centered both horizontally and vertically within that focuspanel. But no matter what I tried, it is always placed at the top of this panel.

<g:FlowPanel>
  <g:FocusPanel>
    <g:Image resource='{res.myimage}' />
  </g:FocusPanel>

  <g:FocusPanel>
    ...
</g:FlowPanel>

Can anyone help?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/uPbqADQVaEAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Re: GWT Crawlable (SEO)

The servlet filter is only for the crawler and the crawler will not navigate your app using PlaceChangeEvents. The crawler just loads an URL that will hit your server and your servlet filter.

If the bot finds a hyperlink like "#!myPlace" then it calls your server using "http://domain.com/?_escaped_fragment_=myPlace" and thus hitting your server. If you have two servers (a dedicated web server for static content + application server) then you have to proxy the request to your application server as soon as the URL contains the _escaped_fragment_ query parameter, so that the server can generate a HTML snapshot on the fly or you have to pre-generate all possible snapshots and serve them directly from the dedicated web server (and update them regularly using a cron job).

Basically your server needs to follow the spec described at:

https://developers.google.com/webmasters/ajax-crawling/docs/specification

-- J.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/eYSMCKNDl9YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.