Working with Lift XHTML/HTML in Netbeans

I am developing a Lift application using Netbeans and I have everything working apart from the lift xhtml, which is stored with an html extension, creates a number of warning and errors in netbeans for example:

<lift:surround with="default" at="content">
      <div class="lift:HomePage">

Gives me the errors

> Element "lift:surround" not allowed as child of element "body" in this context. (Suppressing further errors from this subtree.)
Content model for element 'body':
Flow content.
From line 1, column 1; to line 1, column 43
(Rule Category: Elements structure)

Element name "lift:surround" cannot be represented as XML 1.0.
From line 1, column 1; to line 1, column 43
(Rule Category: All Other)

Is there a way to configure Netbeans so it does not present these errors when this is valid Lift coding?


This doesn't directly answer your question, but you can rewrite all the lift:xxx tags differently to make parsers that expect HTML happy — for instance, with <lift:surround>:

<div class="lift:surround?with=default;at=content">
  ... as before ...

Need Your Help

I want to show tables when radio buttons are selected

javascript html toggle show-hide

I am trying to show tables onClick or onSelect of a couple of checkboxes. I have a checkbox for 'standard' which, when selected, should display a table of standard options, and I have a checkbox for

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.