29 Ağustos 2013 Perşembe

gwt-bootstrap Lazy Developer's Guide


  1. Add following dependency into your pom.xml:
    <dependency>
        <groupId>com.github.gwtbootstrap</groupId>
        <artifactId>gwt-bootstrap</artifactId>
        <version>2.2.1.0</version>
        <scope>provided</scope>
    </dependency>
  2. Add following repository into your pom.xml
     <repository>
         <id>sonatype</id>
         <url>http://oss.sonatype.org/content/repositories/snapshots</url>
         <snapshots><enabled>true</enabled></snapshots>
         <releases><enabled>false</enabled></releases>
     </repository>

  3. Run following maven command to download dependencies:

    mvn process-resources

  4. Add following module dependency to your *.gwt.xml file.

    <inherits name="com.github.gwtbootstrap.Bootstrap" />

  5. Add following script inside your module start page's HEAD section

    <head>

    <!-- before your module(*.nocache.js) loading -->

    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!--[if IE 7]>
    <link rel="stylesheet" href="{your module name}/css/font-awesome-ie7.css">
    <![endif]-->


    <!-- your module(*.nocache.js) loading -->
    </head>

Hiç yorum yok: