JaroslavTulach at 05:17, 1 October 2021 - 2021-10-01 05:17:06

←Older revision Revision as of 05:17, 1 October 2021
Line 1: Line 1:
-
[[Knockout4Java]] is one of the subprojects of [[DukeScript]]. It builds on [[Knockout.js]], which is a powerful and attractive [[JavaScript]] library. It is lightweight and does its job (e.g. binding between a model and an [[HTML]] page) so well, that I decided to use it in my [[Bck2Brwsr]] and [[FXBrwsr]] projects and bind it together with [[JSON4Brwsr]] [[API]]s.
+
[[Knockout4Java]] is one of the subprojects of [[Apache]] [[NetBeans]]. It builds on [[Knockout.js]], which is a powerful and attractive [[JavaScript]] library. It is lightweight and does its job (e.g. binding between a model and an [[HTML]] page) so well, that I decided to use it in my [[Bck2Brwsr]] and [[FXBrwsr]] projects and bind it together with [[JSON4Brwsr]] [[API]]s.
== Knockout for [[Java]] ==
== Knockout for [[Java]] ==

JaroslavTulach at 04:38, 1 October 2021 - 2021-10-01 04:38:30

←Older revision Revision as of 04:38, 1 October 2021
Line 33: Line 33:
== Contribute ==
== Contribute ==
-
The [[Knockout4Java]] is now a [[NetBeans]] project (see [[netbeans:Html4Java|its wiki]]) and the main development repository is hosted at https://github.com/jtulach/html-java-api/ The project is dual licensed under [[CDDL]] and [[GPLwithClassPathException]] (the same license as rest of [[NetBeans]] code), so it should be friendly enough to be used in your own applications.
+
The [[Knockout4Java]] is now a [[NetBeans]] project (see [[Html4Java|its wiki]]) and the main development repository is hosted at https://github.com/jtulach/html-java-api/ The project is dual licensed under [[CDDL]] and [[GPLwithClassPathException]] (the same license as rest of [[NetBeans]] code), so it should be friendly enough to be used in your own applications.
Your contributions are more than welcomed. Let's make this project a base for modern user interface based on [[HTML]] for next version of [[NetBeans]] and other platforms that can render [[HTML]]!
Your contributions are more than welcomed. Let's make this project a base for modern user interface based on [[HTML]] for next version of [[NetBeans]] and other platforms that can render [[HTML]]!

JaroslavTulach: /* Contribute */ - 2017-01-17 06:15:48

Contribute

←Older revision Revision as of 06:15, 17 January 2017
Line 33: Line 33:
== Contribute ==
== Contribute ==
-
The [[Knockout4Java]] is now a [[NetBeans]] project (see [[netbeans:Html4Java|its wiki]]) and the main development repository is hosted at http://hg.netbeans.org/html4j/ The project is dual licensed under [[CDDL]] and [[GPLwithClassPathException]] (the same license as rest of [[NetBeans]] code), so it should be friendly enough to be used in your own applications.
+
The [[Knockout4Java]] is now a [[NetBeans]] project (see [[netbeans:Html4Java|its wiki]]) and the main development repository is hosted at https://github.com/jtulach/html-java-api/ The project is dual licensed under [[CDDL]] and [[GPLwithClassPathException]] (the same license as rest of [[NetBeans]] code), so it should be friendly enough to be used in your own applications.
Your contributions are more than welcomed. Let's make this project a base for modern user interface based on [[HTML]] for next version of [[NetBeans]] and other platforms that can render [[HTML]]!
Your contributions are more than welcomed. Let's make this project a base for modern user interface based on [[HTML]] for next version of [[NetBeans]] and other platforms that can render [[HTML]]!

JaroslavTulach: /* Knockout for Java */ - 2017-01-17 06:14:52

Knockout for Java

←Older revision Revision as of 06:14, 17 January 2017
Line 23: Line 23:
<source lang="bash">
<source lang="bash">
-
$ ls src/main/java/**/DataModel.java
+
$ ls client/src/main/java/**/DataModel.java
-
$ ls src/main/webapp/pages/index.html
+
$ ls client/src/main/webapp/pages/index.html
</source>
</source>

JaroslavTulach: Pointer to DukeScript archetype, that one isn't obsolete - 2017-01-17 06:14:32

Pointer to DukeScript archetype, that one isn't obsolete

←Older revision Revision as of 06:14, 17 January 2017
Line 3: Line 3:
== Knockout for [[Java]] ==
== Knockout for [[Java]] ==
-
Are you coming from a [[Java]] camp, yet interested in rendering via [[HTML]]? Well, then you can either use [[DukeScriptInNetBeans]] or stay on command and be just three steps (in case you have [[Maven]] and [[JDK]]7 installed) away from reaching a nirvana. Just type:
+
Are you coming from a [[Java]] camp, yet interested in rendering via [[HTML]]? Well, then you can either use [[DukeScriptInNetBeans]] or stay on command and be just three steps (in case you have [[Maven]] and [[JDK]]7 installed) away from [https://dukescript.com/update/2015/02/05/New-Version-of-Dukescript.html reaching a nirvana]. Just type:
<source lang="bash">
<source lang="bash">
$ mvn archetype:generate \
$ mvn archetype:generate \
-
-DarchetypeGroupId=org.apidesign.html \
+
-DarchetypeGroupId=com.dukescript.archetype \
-
-DarchetypeArtifactId=knockout4j-archetype \
+
-DarchetypeArtifactId=knockout4j-archetype \
-
-DarchetypeVersion=1.1.2 \
+
-DarchetypeVersion=0.16
-
-Dbck2brwsr=true
+
</source>
</source>
Line 17: Line 16:
<source lang="bash">
<source lang="bash">
$ cd myfirstbrwsrpage
$ cd myfirstbrwsrpage
-
$ mvn process-classes exec:java
+
$ mvn package
 +
$ mvn -f client process-classes exec:exec
</source>
</source>

JaroslavTulach: /* Knockout for Java */ - 2015-01-27 09:51:29

Knockout for Java

←Older revision Revision as of 09:51, 27 January 2015
Line 9: Line 9:
-DarchetypeGroupId=org.apidesign.html \
-DarchetypeGroupId=org.apidesign.html \
-DarchetypeArtifactId=knockout4j-archetype \
-DarchetypeArtifactId=knockout4j-archetype \
-
-DarchetypeVersion=1.1.2
+
-DarchetypeVersion=1.1.2 \
 +
-Dbck2brwsr=true
</source>
</source>
Line 27: Line 28:
Play with them, modify them. Of course, if you use any good IDE that speaks [[Maven]] (hint try [[NetBeans]] version 7.3 or higher). Your development comfort even increases. For example you'll be able to debug your [[Java]] code.
Play with them, modify them. Of course, if you use any good IDE that speaks [[Maven]] (hint try [[NetBeans]] version 7.3 or higher). Your development comfort even increases. For example you'll be able to debug your [[Java]] code.
 +
 +
You can also execute the project in a browser, see [[Bck2BrwsrViaCLI]].
== Contribute ==
== Contribute ==

JaroslavTulach: /* Knockout for Java */ - 2015-01-01 21:38:00

Knockout for Java

←Older revision Revision as of 21:38, 1 January 2015
Line 9: Line 9:
-DarchetypeGroupId=org.apidesign.html \
-DarchetypeGroupId=org.apidesign.html \
-DarchetypeArtifactId=knockout4j-archetype \
-DarchetypeArtifactId=knockout4j-archetype \
-
-DarchetypeVersion=1.1.1
+
-DarchetypeVersion=1.1.2
</source>
</source>

JaroslavTulach: /* Knockout for Java */ - 2015-01-01 17:05:56

Knockout for Java

←Older revision Revision as of 17:05, 1 January 2015
Line 9: Line 9:
-DarchetypeGroupId=org.apidesign.html \
-DarchetypeGroupId=org.apidesign.html \
-DarchetypeArtifactId=knockout4j-archetype \
-DarchetypeArtifactId=knockout4j-archetype \
-
-DarchetypeVersion=1.1
+
-DarchetypeVersion=1.1.1
</source>
</source>

JaroslavTulach: /* Knockout for Java */ - 2015-01-01 17:05:37

Knockout for Java

←Older revision Revision as of 17:05, 1 January 2015
Line 9: Line 9:
-DarchetypeGroupId=org.apidesign.html \
-DarchetypeGroupId=org.apidesign.html \
-DarchetypeArtifactId=knockout4j-archetype \
-DarchetypeArtifactId=knockout4j-archetype \
-
-DarchetypeVersion=0.9
+
-DarchetypeVersion=1.1
</source>
</source>

JaroslavTulach at 06:27, 14 September 2014 - 2014-09-14 06:27:32

←Older revision Revision as of 06:27, 14 September 2014
Line 9: Line 9:
-DarchetypeGroupId=org.apidesign.html \
-DarchetypeGroupId=org.apidesign.html \
-DarchetypeArtifactId=knockout4j-archetype \
-DarchetypeArtifactId=knockout4j-archetype \
-
-DarchetypeVersion=0.8
+
-DarchetypeVersion=0.9
</source>
</source>