[ 
https://issues.apache.org/jira/browse/TOMAHAWK-847?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463878
 ] 

Nicolas DUMINIL commented on TOMAHAWK-847:
------------------------------------------

Based on the information I received from the JBoss poeple, the component uses 
HttpServletRequest instead of the abstract ExternalRequest which, in a portlet 
raises ClassCastException.

> inputSuggestAjax doesn't work in an JSR 168 portlet
> ---------------------------------------------------
>
>                 Key: TOMAHAWK-847
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-847
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: InputSuggestAjax
>    Affects Versions: 1.1.5-SNAPSHOT
>         Environment: JBoss Portal 2.4 on Windows
>            Reporter: Nicolas DUMINIL
>
> Here is an JSP exceprt extracted from Tomahawk sandbox samples 1.1.5-SNAPSHOT 
> nightly build:
> <html>
> <body>
> <f:view>
>    <h:form>
>      <f:verbatim><br/><br/></f:verbatim>
>      <h:panelGrid columns="9">
>          <h:outputText value="default suggest"/>
>          <s:inputSuggestAjax suggestedItemsMethod="#{customer.getSuggestion}"
>                              value="#{customer.name}"  charset="utf-8"/>
>          <h:outputText value="suggest without autoComplete"/>
>          <s:inputSuggestAjax suggestedItemsMethod="#{customer.getSuggestion}"
>                              value="#{customer.name}" autoComplete="false"/>
>          <h:outputText value="suggest with limited suggested items"/>
>          <s:inputSuggestAjax suggestedItemsMethod="#{customer.getSuggestion}"
>                              maxSuggestedItems="2" value="#{customer.name}"/>
>      </h:panelGrid>
>     </h:form>
> </f:view>
> </body>
> </html>
> It works properly while deployed as a simple webapp in JBoss Portal 2.4. But 
> as soon as the same code is deployed as an JSP exposed in an JSF portlet, it 
> raises the following exception:
> org.apache.myfaces.portlet.MyFacesGenericPortlet: javax.faces.FacesException: 
> org.apache.jasper.JasperException: org.jboss.portlet.JBossRenderRequest

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to