branaway / computer-japid Goto Github PK
View Code? Open in Web Editor NEWdemo using japid42 in Play2
demo using japid42 in Play2
In Application.java
link method: compare strings is to use "equals",not "==".
public static String link(String currentSortBy, String currentOrder,
String currentFilter, Integer newPage, String newSortBy) {
//name,asc,"",0,=company.name
String sortBy = currentSortBy;
String order = currentOrder;
if (newSortBy != null) {
sortBy = newSortBy;
if (currentSortBy.equals(newSortBy)) {
if (currentOrder.equals("asc")) {
order = "desc";
} else {
order = "asc";
}
} else {
order = "asc";
}
}
return routes.Application.list(newPage, sortBy, order, currentFilter)
.url();
}
我在实例代码的japidroot/japidviews/Application/eidt.html里添加了中文“是否删除”
然后我点击删除按钮,显示是乱码。
Hi,
I create a new class City in package models.And I use "JPA.em()" in a method in class City.
But the exception is appear.
[RuntimeException: No EntityManager bound to this thread. Try to annotate your action method with @play.db.jpa.Transactional]
As the error say,i add @play.db.jpa.Transactional on the method.no use.How can i do?
when running your example, using the instructions, I get the following output:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: japid42#japid42_2.9.1;0.6: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[error] {file:/Users/sberan/Projects/computer-japid/}foo/*:update: sbt.ResolveException: unresolved dependency: japid42#japid42_2.9.1;0.6: not found
[warn] some of the dependencies were not recompiled properly, so classloader is not avaialable
[info] Updating {file:/Users/sberan/Projects/computer-japid/}foo...
[warn] module not found: japid42#japid42_2.9.1;0.6
[warn] ==== local: tried
[warn] /usr/local/bin/../Cellar/play/2.0.4/bin/../libexec/framework/../repository/local/japid42/japid42_2.9.1/0.6/ivys/ivy.xml
[warn] ==== Typesafe Releases Repository: tried
[warn] http://repo.typesafe.com/typesafe/releases/japid42/japid42_2.9.1/0.6/japid42_2.9.1-0.6.pom
[warn] ==== Typesafe Snapshots Repository: tried
[warn] http://repo.typesafe.com/typesafe/snapshots/japid42/japid42_2.9.1/0.6/japid42_2.9.1-0.6.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/japid42/japid42_2.9.1/0.6/japid42_2.9.1-0.6.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: japid42#japid42_2.9.1;0.6: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
I've migrated to
play: 2.0.2 to 2.1.1
japid version : japid42_2.9.1 0.7.4 to japid42_2.10 0.8.1
There was a method setKeepJavaFiles(boolean) which allow restriction to the creation of java files.
It is not there in latest version ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.