Well I'm not sure exactly what you need, but I'm working in a maven project that uses JSF 2.2, Richfaces 4.3.3.Final and servlet-api-2.5.
The following code in a *.xhtml file will give the same Richfaces not defined exception:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <f:view xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:t="http://myfaces.apache.org/tomahawk"> <html> <h:head> <rich:jQuery selector="#test" query="addClass('tested')" /> </h:head> <h:body> <input type="text" id="test" /> </h:body> </html> </f:view>
Edit: Is there a certain way to add <code> to these responses? The tag isn't working here for me.
Sounds like a bug. Can you file a RichFaces jira issue?
As for embedding code blocks, you'll have to use the GUI toolbar. Please file a jboss.org jira requesting this feature. It's much more meaningful to the site ops when these request come from users rather than us.