Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53003DC02 for ; Tue, 2 Oct 2012 13:02:01 +0000 (UTC) Received: (qmail 54876 invoked by uid 500); 2 Oct 2012 13:02:00 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 54842 invoked by uid 500); 2 Oct 2012 13:02:00 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 54815 invoked by uid 99); 2 Oct 2012 13:01:59 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 13:01:59 +0000 Received: from localhost (HELO mail-vc0-f173.google.com) (127.0.0.1) (smtp-auth username mgrigorov, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 13:01:59 +0000 Received: by vcbfl15 with SMTP id fl15so8538761vcb.32 for ; Tue, 02 Oct 2012 06:01:58 -0700 (PDT) Received: by 10.52.33.165 with SMTP id s5mr8034237vdi.51.1349182918446; Tue, 02 Oct 2012 06:01:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.22.234 with HTTP; Tue, 2 Oct 2012 06:01:28 -0700 (PDT) In-Reply-To: <201210021445.11432.lucio@sulweb.org> References: <201210021445.11432.lucio@sulweb.org> From: Martin Grigorov Date: Tue, 2 Oct 2012 16:01:28 +0300 Message-ID: Subject: Re: HTML validation To: users@wicket.apache.org Content-Type: text/plain; charset=UTF-8 Hi, I use Intellij IDEA and here is what I did to suppress those "errors": File -> Settings -> DTDs and Schemas -> External DTDs and Schemas -> Add button (+) -> URI = http://wicket.apache.org , Location: /path/to/wicket-core.jar#META-INF/wicket-1.5.xsd Now you should find how to do this in Netbeans. Good luck! On Tue, Oct 2, 2012 at 3:45 PM, Lucio Crusca wrote: > Hello *, > > I'm new to wicket. I use NetBeans 7.2/Linux. > > I'm trying to follow some examples, but NB doesn't validate wicket HTML files. > Now I could live without validating them. However the NetBeans editor > highlights syntax errors and that's a desirable feature, but it becomes an > annoyance if any "wicket" string is seen as an error. > > For example, this file I copied from wicket examples: > > > > Wicket Examples - Authentication > > > > > > > > > scores 3 errors in Netbeans plus some warnings. > > By the way, the w3c validator [1], fed with the same HTML files, reports the > same errors of the Netbeans editor and then some. Both autodetect wicket HTML > files as HTML 5. > > If I force them as XHTML 1.0 Transitional, by adding > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > at the top and > > xmlns="http://www.w3.org/1999/xhtml" > > in the html tag, w3c validator finds "only" two errors and NetBeans takes it > showing only a couple of warnings. This could be an acceptable workaround for > me, but I wonder if I'm doing something basically wrong. > > Is there a way to write valid HTML in wicket? > > [1]. http://validator.w3.org/check > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org > For additional commands, e-mail: users-help@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org