Note that there are some explanatory texts on larger screens.

plurals
  1. POCustom Lift tags don't work
    text
    copied!<p>The following types of tags in Lift do not seem to work for me:</p> <pre><code>&lt;lift:snippet type="MyClass:render" /&gt; &lt;lift:MyClass.render/&gt; &lt;lift:MyClass/&gt; </code></pre> <p>Using these tags results in a Class Not Found error. If I attempt to call a class using</p> <pre><code>&lt;div class=lift:myclass.mymethod /&gt; </code></pre> <p>it can work. Or if I call it using span tags. For instance, the Hello World example in Pollak's <em>Simply Lift</em> works for me, successfully displaying the Howdy method with the following code:</p> <pre><code>&lt;span class="lift:helloWorld.howdy"&gt; Welcome to your Lift app at &lt;span id="time"&gt;Time goes here&lt;/span&gt; &lt;/span&gt; </code></pre> <p>Currently, my problem is coming from attempting to implement <em>Exploring Lift</em>'s (aka <em>The Lift Book</em>) OpenID example in Chapter 13.1. I have downloaded OpenID4Java using sbt as well as the lift-openid library. That example can be found at <a href="http://exploring.liftweb.net/master/index-13.html" rel="nofollow">http://exploring.liftweb.net/master/index-13.html</a>. I have implemented the change to the Boot class, and created the OpenID class and the SimpleOpenIDVendor class. But creating an html file containing</p> <pre><code> &lt;lift:OpenID.form&gt; &lt;openId:renderForm/&gt; &lt;/lift:OpenID.form&gt; </code></pre> <p>causes the following error to be displayed in the browser:</p> <pre><code>Error processing snippet: openid.form Reason: Class Not Found XML causing this error: &lt;lift:openid.form xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;openid:renderform&gt; &lt;/openid:renderform&gt;&lt;/lift:openid.form&gt; </code></pre> <p>The class OpenID was placed in a package that starts with the package code, which is being implicitly found by Lift. It is included in the Boot.scala file with the line</p> <pre><code>LiftRules.addToPackages("code") </code></pre> <p>So, I am at a loss. Any ideas?</p> <p>Note that other lift tags such as lift:bind-at and lift:surround and the like work fine.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload