This Question is Not Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
10 Replies Last post: Sep 23, 2008 8:44 PM by Joel Weight  
Joel Weight   8 posts since
Jul 29, 2008
Currently Being Moderated

Aug 23, 2008 1:00 AM

Problem with Suggestion Field in portlet subview (actually portletPage)

I have successfully used the suggestion field in a portlet within liferay in a simple page such as:

 

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<%@ taglib uri="http://teamdev.com/quipukit" prefix="q" %>

 

 

 

<f:view>

<h:form id="testMerchantSuggestionForm">

<h:commandLink value="Home" action="HOME" style="float: right;" immediate="true" /><br/>

 

<h:messages id="messages"

layout="table"

infoClass="portlet-msg-success"

style="width: 100%;"

errorClass="portlet-msg-error"

showSummary="false"

showDetail="true"

rendered="#{not empty facesContext.messages}"/>

 

<h:outputLabel value="Suggestion Field Input:"/>

<q:suggestionField

style="margin:5px;width:180px;height:18px;"

value="#{myBean.myValue}"

required="true"

suggestionMode="custom"

autoComplete="true"

suggestionDelay="200"

suggestionMinChars="3">

<q:dropDownItems value="#{mybean.suggestions}"/>

</q:suggestionField>

 

<h:commandButton action="HOME" value="Home" />

 

</h:form>

</f:view>

 

 

 

 

 

 

Buf if I put the suggestion field into a subview, which is included (using jsp:include) on another page of the portlet, then the suggestion field fails to get data, complaining about "Illegal response - couldn't find data start marker."  The subview is exactly the same as above, but uses <f:subview id="mysubview"> instead of <f:view> as above. Here is the code for the containing page.

 

 

 

 

 

 

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<%@ taglib uri="http://java.sun.com/jsf/portlet/components" prefix="p" %>

<f:view>

<p:portletPage>

<div style="portlet-section-header">

<table style="width:100%;" cellspacing="10" border="5">

<tr>

<td style="width:24%;border-color:#A9A9A9;border-width:2px;border-style:solid;padding:5px;">

<jsp:include page="suggestionChild.jsp"/>

</td>        

</tr>

</table>   

</div>

</p:portletPage>

</f:view>

 

 

 

 

I would appreciate any thoughts on getting around this issue.   This is all used within a portlet, using jsf 1.2_07, and portlet bridge 1.2.2_0 running on Liferay portal server.  quipukit is version 1.4.3.

 

 

 

 

 

 

Thanks in advance,

 

 

 

Joel

Ilya Musihin TeamDev Ltd. 38 posts since
May 22, 2008
Currently Being Moderated
1. Jul 30, 2008 7:00 PM in response to: Joel Weight
Re: Problem with Suggestion Field in portlet subview

Hello Joel,

 

We will investigate the information you have provided and let you know about the results as soon as possible.

 

Sincerely,

Ilya Musihin

Ilya Musihin TeamDev Ltd. 38 posts since
May 22, 2008
Currently Being Moderated
4. Aug 14, 2008 7:20 PM in response to: Joel Weight
Re: Problem with Suggestion Field in portlet subview

Hello Joel,

 

Unfortunately, we are not able to reproduce the described error. Could you please send us a simple war with portlet and tell us which version of liferay portal server do you use.

 

Sincerely,

Ilya Musihin

Ilya Musihin TeamDev Ltd. 38 posts since
May 22, 2008
Currently Being Moderated
7. Aug 28, 2008 4:12 PM in response to: Joel Weight
Re: Problem with Suggestion Field in portlet subview

Hello Joel,

 

Could you please provide us information about version of liferay portal, that you use to find this problem?

On liferay-portal-tomcat-6.0-5.1.1 version we can not reproduce you problem.

 

Sincerely,

Ilya Musihin

Ilya Musihin TeamDev Ltd. 38 posts since
May 22, 2008
Currently Being Moderated
9. Sep 23, 2008 7:51 PM in response to: Joel Weight
Re: Problem with Suggestion Field in portlet subview

Hello Joel,

 

Unfortunately we are unable to reproduce this issue. We have done the following steps:

 

1. Download liferay-portal-glassfish-windows-4.4.1.jar and install it

2. Download subview-portlet.war that you attach in Re: Problem with Suggestion Field in portlet subview and put it to %USER_HOME%/liferay/deploy

3. Login to liferay as administrator and add portlet to home page.

4. Try portlet in action. The drop-down list of suggestion is empty in both cases

 

How do you reproduce this issue?

 

 

Sincerely,

Ilya Musihin

More Like This

  • Retrieving data ...