Giter VIP home page Giter VIP logo

mixer2-sample's Introduction

mixer2-sample's People

Contributors

nabedge avatar kazuki43zoo avatar

Watchers

James Cloos avatar  avatar

mixer2-sample's Issues

HelloWorldをどこに設置するのか

使用プロジェクト

mixer2-sample > mixer2-fruitshop-springboot

環境

Eclipse( Luna Service Release 2 (4.4.2))、Tomcat未使用で
/src/main/java/
 |-- org.mixer2.sample
  |-- Server.java
をJavaアプリケーション実行しました。

内容

Documentation - Hello World(http://mixer2.org/site/ja/helloworld.html)
コードの具体例があるのはありがたいのですが、
この各テンプレートをどこに置くのかがわかりませんでした。

提案する解決方法

webページ(http://mixer2.org/site/ja/helloworld.html) にある各コード具体例に、プロジェクト内のPathを指定してもらえると嬉しいです。
あと、HelloWorldをする手順などがあるとさらに助かります。

pom.xmlのVersionが古い

使用プロジェクト

mixer2-sample > mixer2-fruitshop-springboot

環境

Eclipse( Luna Service Release 2 (4.4.2))

エラー内容

DocumentationのHelloWorldをしようと思ったのですが

public static void main(String[] args) throws Exception {
    Mixer2Engine m2e = new Mixer2Engine();
    Html html = m2e.loadHtmlTemplate(new File("HelloWorld.html"));
    html.getById("hellomsg",Div.class).replaceInner("Hello World !");
    System.out.println(m2e.saveToString(html));
}

の"replaceInner"関数でエラーが出ました。

エラーの原因

pom.xmlに記載されている<mixer2.version>が古くて"replaceInner"がなかったようです。

提案する解決方法

pom.xmlの11行目〜20行目

<properties>
    <java.version>1.7</java.version>
    <encoding>UTF-8</encoding>
    <project.build.sourceEncoding>${encoding}</project.build.sourceEncoding>
    <slf4j.api.version>1.7.6</slf4j.api.version>
    <spring.version>4.0.3.RELEASE</spring.version>
    <spring.boot.version>1.1.4.RELEASE</spring.boot.version>
    <mixer2.version>1.2.32</mixer2.version>
    <tomcat.version>7.0.52</tomcat.version>
</properties>

<mixer2.version>1.2.32</mixer2.version>

から

<mixer2.version>1.2.36</mixer2.version>

などにして、HelloWorldに対応できるverに上げるべきだと思います。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.