# HG changeset patch # User František Kučera # Date 1328703373 -3600 # Node ID aa8c8f51b0ccb618d6b46517b091857de4fadc62 # Parent 3b4abb1ec5a3360017e4bc79c8f6f9e9efc8b2fd drobnosti, netbeans, entity diff -r 3b4abb1ec5a3 -r aa8c8f51b0cc .hgignore --- a/.hgignore Wed Feb 08 13:15:23 2012 +0100 +++ b/.hgignore Wed Feb 08 13:16:13 2012 +0100 @@ -3,3 +3,5 @@ java/sql-vyuka/web/sql-vyuka-src.zip java/sql-vyuka/nbproject/private java/sql-vyuka/src/conf/MANIFEST.MF +temp/* +balíčky/* diff -r 3b4abb1ec5a3 -r aa8c8f51b0cc java/sql-vyuka/nbproject/ant-deploy.xml --- a/java/sql-vyuka/nbproject/ant-deploy.xml Wed Feb 08 13:15:23 2012 +0100 +++ b/java/sql-vyuka/nbproject/ant-deploy.xml Wed Feb 08 13:16:13 2012 +0100 @@ -3,6 +3,7 @@ + @@ -23,8 +24,34 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -33,7 +60,6 @@ - @@ -42,19 +68,44 @@ - + + + + + + - + + + + + + + + + + + + - + + + + + + diff -r 3b4abb1ec5a3 -r aa8c8f51b0cc java/sql-vyuka/nbproject/build-impl.xml --- a/java/sql-vyuka/nbproject/build-impl.xml Wed Feb 08 13:15:23 2012 +0100 +++ b/java/sql-vyuka/nbproject/build-impl.xml Wed Feb 08 13:16:13 2012 +0100 @@ -173,12 +173,27 @@ - + + + + + + + + + + + + + - + + + + @@ -198,6 +213,20 @@ Must set build.test.results.dir Must set build.classes.excludes Must set dist.war + + + + + + + + + +The Java EE server classpath is not correctly set up - server home directory is missing. +Either open the project in the IDE and assign the server or setup the server classpath manually. +For example like this: + ant -Dj2ee.server.home=<app_server_installation_directory> + The Java EE server classpath is not correctly set up. Your active server type is ${j2ee.server.type}. Either open the project in the IDE and assign the server or setup the server classpath manually. @@ -215,11 +244,51 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -244,6 +313,38 @@ + + + + + + + + + + + + + + + + + Must set javac.includes + + + + + + + + + + + + + + + @@ -266,6 +367,7 @@ + @@ -386,7 +488,43 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Must set JVM to use for profiling in profiler.info.jvm + Must set profiler agent JVM arguments in profiler.info.jvmargs.agent + + @@ -455,6 +593,8 @@ + + @@ -463,13 +603,16 @@ + + - + + - + Must select some files in the IDE or set javac.jsp.includes @@ -480,15 +623,18 @@ + + + - + - + @@ -509,28 +655,28 @@ - + - + - + - + @@ -549,7 +695,7 @@ - + @@ -581,9 +727,7 @@ - - - + @@ -669,6 +813,9 @@ Must select one file in the IDE or set run.class + + + @@ -721,9 +868,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -736,6 +912,14 @@ + + + + + + + + @@ -834,10 +1018,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + - + diff -r 3b4abb1ec5a3 -r aa8c8f51b0cc java/sql-vyuka/nbproject/genfiles.properties --- a/java/sql-vyuka/nbproject/genfiles.properties Wed Feb 08 13:15:23 2012 +0100 +++ b/java/sql-vyuka/nbproject/genfiles.properties Wed Feb 08 13:16:13 2012 +0100 @@ -4,5 +4,5 @@ # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=3f9299bb -nbproject/build-impl.xml.script.CRC32=1628db8a -nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.1.1 +nbproject/build-impl.xml.script.CRC32=6d1d7d3b +nbproject/build-impl.xml.stylesheet.CRC32=b7883b1f@1.36.1.1 diff -r 3b4abb1ec5a3 -r aa8c8f51b0cc java/sql-vyuka/nbproject/project.properties --- a/java/sql-vyuka/nbproject/project.properties Wed Feb 08 13:15:23 2012 +0100 +++ b/java/sql-vyuka/nbproject/project.properties Wed Feb 08 13:16:13 2012 +0100 @@ -1,3 +1,8 @@ +annotation.processing.enabled=true +annotation.processing.enabled.in.editor=true +annotation.processing.processors.list= +annotation.processing.run.all.processors=true +annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output build.classes.dir=${build.web.dir}/WEB-INF/classes build.classes.excludes=**/*.java,**/*.form build.dir=build @@ -21,8 +26,15 @@ endorsed.classpath= excludes= includes=** +j2ee.compile.on.save=false j2ee.deploy.on.save=false j2ee.platform=1.5 +j2ee.platform.classpath=${j2ee.server.home}/modules/endorsed/javax.annotation.jar:${j2ee.server.home}/modules/jsf-api.jar:${j2ee.server.home}/modules/jsf-impl.jar:${j2ee.server.middleware}/mq/lib/jaxm-api.jar:${j2ee.server.home}/modules/javax.enterprise.deploy.jar:${j2ee.server.home}/modules/javax.resource.jar:${j2ee.server.home}/modules/javax.security.auth.message.jar:${j2ee.server.home}/modules/jersey-core.jar:${j2ee.server.home}/modules/javax.servlet.jar:${j2ee.server.home}/modules/javax.ejb.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jar:${j2ee.server.home}/modules/javax.management.j2ee.jar:${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/weld-osgi-bundle.jar:${j2ee.server.home}/modules/javax.mail.jar:${j2ee.server.home}/modules/javax.jms.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/javax.security.jacc.jar:${j2ee.server.home}/modules/javax.transaction.jar:${j2ee.server.home}/modules/jstl-impl.jar:${j2ee.server.home}/modules/javax.servlet.jsp.jstl.jar:${j2ee.server.home}/modules/bean-validator.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/javax.persistence.jar +j2ee.platform.embeddableejb.classpath=${j2ee.server.home}/lib/embedded/glassfish-embedded-static-shell.jar +j2ee.platform.wscompile.classpath=${j2ee.server.home}/modules/webservices-osgi.jar +j2ee.platform.wsgen.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/javax.ejb.jar +j2ee.platform.wsimport.classpath=${j2ee.server.home}/modules/webservices-osgi.jar:${j2ee.server.home}/modules/endorsed/webservices-api-osgi.jar:${j2ee.server.home}/modules/jaxb-osgi.jar:${j2ee.server.home}/modules/endorsed/jaxb-api-osgi.jar:${j2ee.server.home}/modules/javax.ejb.jar +j2ee.platform.wsit.classpath= j2ee.server.type=gfv3ee6 jar.compress=false javac.classpath=\ @@ -31,11 +43,14 @@ javac.compilerargs= javac.debug=true javac.deprecation=false +javac.processorpath=\ + ${javac.classpath} javac.source=1.5 javac.target=1.5 javac.test.classpath=\ ${javac.classpath}:\ ${build.classes.dir} +javac.test.processorpath=${javac.test.classpath} javadoc.additionalparam= javadoc.author=false javadoc.encoding=${source.encoding} diff -r 3b4abb1ec5a3 -r aa8c8f51b0cc java/sql-vyuka/web/WEB-INF/casti/aplikace.jspx --- a/java/sql-vyuka/web/WEB-INF/casti/aplikace.jspx Wed Feb 08 13:15:23 2012 +0100 +++ b/java/sql-vyuka/web/WEB-INF/casti/aplikace.jspx Wed Feb 08 13:16:13 2012 +0100 @@ -24,36 +24,36 @@ name="predchozi" title="${navigacePredchozi}" type="button" - onclick="javascript:ajaxPruvodcePredchozi();">&nbsp; + onclick="javascript:ajaxPruvodcePredchozi();">&#160; + onclick="javascript:ajaxPruvodceZpet();">&#160; + onclick="javascript:ajaxPruvodceKod('pruvodce');">&#160; + onclick="javascript:ajaxPruvodceKod('model');">&#160; + onclick="javascript:ajaxPruvodceVpred();">&#160; + onclick="javascript:ajaxPruvodceNasledujici();">&#160; @@ -80,13 +80,13 @@ name="zobrazitHistorii" title="${zobrazitHistoriiTip}" type="button" - onclick="javascript:ajaxZobrazitHistorii();">&nbsp; + onclick="javascript:ajaxZobrazitHistorii();">&#160; + onclick="javascript:ajaxVykonatSQL();">&#160; diff -r 3b4abb1ec5a3 -r aa8c8f51b0cc java/sql-vyuka/web/WEB-INF/glassfish-web.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/sql-vyuka/web/WEB-INF/glassfish-web.xml Wed Feb 08 13:16:13 2012 +0100 @@ -0,0 +1,10 @@ + + + + + + + Keep a copy of the generated servlet class' java code. + + + diff -r 3b4abb1ec5a3 -r aa8c8f51b0cc java/sql-vyuka/web/index.jsp --- a/java/sql-vyuka/web/index.jsp Wed Feb 08 13:15:23 2012 +0100 +++ b/java/sql-vyuka/web/index.jsp Wed Feb 08 13:16:13 2012 +0100 @@ -7,20 +7,20 @@ - - - - - - - - - - <fmt:message key="nazev"/> + + + + + + + + + + <fmt:message key="nazev"/> - +