Class Not Found error - possible bug?

33 views
Skip to first unread message

mc

unread,
Oct 23, 2012, 10:48:45 AM10/23/12
to lif...@googlegroups.com
Hello,
I ran into another problem yesterday which was a bit weird. When I used ContributorAction as snippet object name (in package snippet) I got this:
<lift:ContributorAction.find form="POST">

Error processing snippet: contributoraction.find
Reason: Class Not Found
XML causing this error:
          <lift:contributoraction.find form="POST">
			Contributor id: <ca:id></ca:id><ca:submit></ca:submit> <br></br><br></br>
			<span class="lift:Msg?id=caError&amp;errorClass=error">error</span>
		</lift:contributoraction.find>
        

After trying various solutions I changed class name to Action and it worked:
<lift:Action.find form="POST">
 I'm using Liftweb version 2.5-M2.

Maybe I did something weird in my code but I wanted to raise that just in case anyone else ran into the same problem.
Thanks,

M

and...@officenet.no

unread,
Oct 23, 2012, 10:56:15 AM10/23/12
to mc, lif...@googlegroups.com
The problem is that the parser lowercases your xml, so to avoid the parser messing with CaSE-IssueS it's better to have you class and optional method quoted by using the newer syntax:
 
 
<div data-lift="ContributorAction.find?form=POST>
</div>
 
--
Andreas Joseph Krogh <and...@officenet.no>      mob: +47 909 56 963
Senior Software Developer / CEO - OfficeNet AS - http://www.officenet.no
Public key: http://home.officenet.no/~andreak/public_key.asc
 
Reply all
Reply to author
Forward
0 new messages