# HG changeset patch # User František Kučera # Date 1275986578 -7200 # Node ID 0d1cba59734bf52b8f03957b73e3a49de17539ea # Parent 1bbff3f5181ffc834bb37e58c7d40c963d96e0d5 XML schéma pro komentáře diff -r 1bbff3f5181f -r 0d1cba59734b java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/ejb/PodnikEJB.java --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/ejb/PodnikEJB.java Tue Jun 08 09:09:17 2010 +0200 +++ b/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/ejb/PodnikEJB.java Tue Jun 08 10:42:58 2010 +0200 @@ -97,8 +97,10 @@ break; } + /** Zkontrolujeme XML */ + - /** Zkontrolujeme XML */ + log.severe("Komentář: " + k.getNadpis() + " | " + k.getKomentar() + " | " + k.getTyp()); } } diff -r 1bbff3f5181f -r 0d1cba59734b java/nekurak.net-lib/src/cz/frantovo/nekurak/util/Komentare.java --- a/java/nekurak.net-lib/src/cz/frantovo/nekurak/util/Komentare.java Tue Jun 08 09:09:17 2010 +0200 +++ b/java/nekurak.net-lib/src/cz/frantovo/nekurak/util/Komentare.java Tue Jun 08 10:42:58 2010 +0200 @@ -25,6 +25,15 @@ return "
" + komentar + "
"; } + /** + * zkontroluje komentář oproti schématu + * @param komentar + * @return jestli komentář odpovídá + */ + public boolean isValidniXHTML(String komentar) { + return false; + } + private static String escapujXML(String str) { return str.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">").replaceAll("\"", """).replaceAll("'", "'"); diff -r 1bbff3f5181f -r 0d1cba59734b java/nekurak.net-lib/src/cz/frantovo/nekurak/util/komentář.xsd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-lib/src/cz/frantovo/nekurak/util/komentář.xsd Tue Jun 08 10:42:58 2010 +0200 @@ -0,0 +1,1 @@ +../../../../../../../xml/komentář.xsd \ No newline at end of file diff -r 1bbff3f5181f -r 0d1cba59734b java/nekurak.net-web/web/styl.css --- a/java/nekurak.net-web/web/styl.css Tue Jun 08 09:09:17 2010 +0200 +++ b/java/nekurak.net-web/web/styl.css Tue Jun 08 10:42:58 2010 +0200 @@ -124,7 +124,7 @@ max-width: 400px; } -input, textarea { +input, textarea, select { width:200px; margin-left: 2px; } diff -r 1bbff3f5181f -r 0d1cba59734b xml/komentář.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/komentář.xml Tue Jun 08 10:42:58 2010 +0200 @@ -0,0 +1,21 @@ +
+

+ahoj + +jak se +aaa +máš? +máš? +máš? + +jak se + +

+ +

+ahojjak se +

+ +

+ +
diff -r 1bbff3f5181f -r 0d1cba59734b xml/komentář.xsd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xml/komentář.xsd Tue Jun 08 10:42:58 2010 +0200 @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file