:-(

I am also experiencing the same ClassCastException:

java.lang.ClassCastException: javax.faces.component.html.HtmlMessages
at
org.apache.myfaces.custom.ajax.util.AjaxRendererUtils.writeAjaxScript(AjaxRendererUtils.java:128)

For the last two days I have been trying to get some 1.1.5 Sandbox examples
to work and am at the end of my rope.

Does anyone know if a fix is necessary or if this jsf-code is incorrect:


-- TOP OF JSP FILE --

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk"; prefix="t"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox"; prefix="s"%>

<f:loadBundle basename="Messages" var="messages"/>

-- IN BODY TAG INSIDE VIEW TAG--

<t:messages globalOnly="true" style="color: red;" styleClass="errorMessage"
/> 

<h:form>
<h:panelGrid>
    <h:outputText styleClass="standard_bold" value="Input The Ajax-Aware
Zipcode"/>
    <h:panelGrid columns="2">
        <s:inputTextAjax 
          id="zipcode"
          value="#{addressListBean.activeAddress.zipCode}" 
          validator="#{customerValidator.validateAreaCode}"
          errorStyle="border:1px solid red; color:red;"/>
        <t:message styleClass="errorMessage" for="zipcode"/>*/%>
    </h:panelGrid>
    <f:verbatim>This component demonstrates ajax updating ability when you
change the
        text. <br/> An error message is displayed if the given area code is
invalid.</f:verbatim>
</h:panelGrid> 
</h:form> 



Best Regards,
Kevin



Gerald M?llan wrote:
> 
>> I am using t:message for the inputtext component, though the form level
>> global messages component are h:message.
> 
> Hm..you mean h:messages?
> 
> Try t:messages. Maybe thats the problem.
> 
> cheers,
> 
> Gerald
> 
> 
-- 
View this message in context: 
http://www.nabble.com/Error-while-Using-s%3AinputTextAjax-tf1812568.html#a5103528
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to