Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trouble rendering commandButton with myfaces  RSS feed

 
Dave Alvarado
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm using JSF framework with MyFaces 1.2.4, Tomahawk 1.1.7 on WebLogic 9.2.2. On my initial login page, I have the JSF code

<h:commandButton value="Submit" styleClass="npsButton" onmouseover="hoverGridButton(this)" onmouseout="unhoverGridButton(this)" />

but it is producing the compile error:

Failed to compile JSP /jsp/login.jsp login.jsp:60:34: No match was found for method setValue(java.lang.String) in type org.apache.myfaces.taglib.html.HtmlCommandButtonTag. <h:commandButton value="Submit" styleClass="npsButton" ^------^ login.jsp:60:54: No match was found for method setStyleClass(java.lang.String) in type org.apache.myfaces.taglib.html.HtmlCommandButtonTag. <h:commandButton value="Submit" styleClass="npsButton" ^---------^ login.jsp:61:27: No match was found for method setOnmouseover(java.lang.String) in type org.apache.myfaces.taglib.html.HtmlCommandButtonTag. onmouseover="hoverGridButton(this)" ^---------------------^ login.jsp:62:18: No match was found for method setOnmouseout(java.lang.String) in type org.apache.myfaces.taglib.html.HtmlCommandButtonTag. onmouseout="unhoverGridButton(this)" /> ^-----------------------^

Caused by:
weblogic.servlet.jsp.CompilationException - Failed to compile JSP /jsp/login.jsp login.jsp:60:34: No match was found for method setValue(java.lang.String) in type org.apache.myfaces.taglib.html.HtmlCommandButtonTag. <h:commandButton value="Submit" styleClass="npsButton" ^------^ login.jsp:60:54: No match was found for method setStyleClass(java.lang.String) in type org.apache.myfaces.taglib.html.HtmlCommandButtonTag. <h:commandButton value="Submit" styleClass="npsButton" ^---------^ login.jsp:61:27: No match was found for method setOnmouseover(java.lang.String) in type org.apache.myfaces.taglib.html.HtmlCommandButtonTag. onmouseover="hoverGridButton(this)" ^---------------------^ login.jsp:62:18: No match was found for method setOnmouseout(java.lang.String) in type org.apache.myfaces.taglib.html.HtmlCommandButtonTag. onmouseout="unhoverGridButton(this)" />

Any ideas what is going on, or what to do to fix?

Thanks, - Dave
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!