gwtproject / gwt-site

Sources of the pages of the gwtproject.org website.
150 stars 333 forks source link

StockWatcher HTML has error #179

Closed 148349 closed 8 years ago

148349 commented 8 years ago

http://www.gwtproject.org/doc/latest/tutorial/buildui.html has errorneous code for the StockWatcher.html file.

The line<script type="text/javascript" language="javascript" src="stockwatcher/stockwatcher.nocache.js"></script>

should be: <script type="text/javascript" language="javascript" src="StockWatcher/StockWatcher.nocache.js"></script>

ghost commented 8 years ago

Check your StockWatcher.gwt.xml file.

Normally you will see: <module rename-to='stockwatcher'>

Probably in your case you have StockWatcher.

tbroyer commented 8 years ago

http://www.gwtproject.org/doc/latest/tutorial/create.html#components has rename-to="stockwatcher", and webAppCreator will use lowercase: https://github.com/gwtproject/gwt/blob/2.7.0/user/src/com/google/gwt/user/tools/WebAppCreator.java#L617 & https://github.com/gwtproject/gwt/blob/2.7.0/user/src/com/google/gwt/user/tools/templates/sample/_srcFolder_/_moduleFolder_/_moduleShortName_.gwt.xmlsrc#L2

So I agree the documentation is OK. Thanks @happyhua for the heads up.