On Wed, Oct 29, 2008 at 6:21 PM, Markus Mehrwald <[EMAIL PROTECTED]> wrote:

> Hello,
>
> it seems that there is another problem with the new version if tomahawk.
> Using the t:updateActionListener like in the code:
>
> <h:commandLink action="#{mainNavigationHandler.showView}">
>        <t:updateActionListener
> property="#{mainNavigationHandler.shownView}" value="1" />
>        <h:outputText value="Linktext" />
> </h:commandLink>
>
> causes the following exception report from Tomcat:
>
> ------------------------START EXCEPTION---------------------------------
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented it
> from fulfilling this request.
>
> exception
>
> javax.servlet.ServletException: Cannot convert
> [EMAIL PROTECTED] of type class
> org.apache.jasper.el.JspValueExpression to int
>        javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
>
>  
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
>
>  
> org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
>
>  
> org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
>
> root cause
>
> java.lang.IllegalArgumentException: Cannot convert
> [EMAIL PROTECTED] of type class
> org.apache.jasper.el.JspValueExpression to int
>        org.apache.el.lang.ELSupport.coerceToNumber(ELSupport.java:273)
>        org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:353)
>        org.apache.el.parser.AstValue.setValue(AstValue.java:141)
>
>  org.apache.el.ValueExpressionImpl.setValue(ValueExpressionImpl.java:249)
>
>  
> com.sun.faces.application.ValueBindingValueExpressionAdapter.setValue(ValueBindingValueExpressionAdapter.java:152)
>
>  
> org.apache.myfaces.custom.updateactionlistener.UpdateActionListener.processAction(UpdateActionListener.java:159)
>        javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
>
>  javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:771)
>        javax.faces.component.UICommand.broadcast(UICommand.java:372)
>
>  org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
>
>  
> org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
>
>  
> org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:346)
>
>  
> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
>        com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>
>  com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>        javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
>
>  
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
>
>  
> org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)
>
>  
> org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)
>
> ------------------------END EXCEPTION---------------------------------
>
> Does anyone know where the problem could be?
>

It does not seem to be a problem with the component. It looks more a problem
with EL. Maybe if you try using this:

<h:commandLink action="#{mainNavigationHandler.showView}">
        <t:updateActionListener
property="#{mainNavigationHandler.shownView}" value="#{1}" />
       <h:outputText value="Linktext" />
</h:commandLink>

could work.

regards

Leonardo Uribe



>
> Thank you,
> Markus
>
>

Reply via email to