[richfaces-issues] [JBoss JIRA] Resolved: (RF-4518) Bug introduces on suggestionbox when upgrading from 3.2.1 to 3.2.2

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Wed Sep 24 13:24:21 EDT 2008


     [ https://jira.jboss.org/jira/browse/RF-4518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Belaevski resolved RF-4518.
--------------------------------

    Resolution: Cannot Reproduce Bug


I cannot reproduce the issue. Page code - changed /richfaces-demo/src/main/webapp/richfaces/suggestionBox/examples/custom.xhtml:

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

	<script type="text/javascript">//<![CDATA[
		function processObjectsChange(suggestionBox) {
			var items = suggestionBox.getSelectedItems();
			if (items && items.length > 0) {
				var html = "<table cellspaing='8'><thead>" + 
					"<tr><td>State</td><td>1st City</td><td>2nd City</td><td>3rd City</td></tr>" + 
					"</thead><tbody>";

				for ( var i = 0; i < items.length; i++) {
					html += "<tr>";

					html += "<td>";
					html += items[i].state;
					html += "</td>";

					var dataItems = items[i].data.items;
					for ( var j = 0; j < dataItems.length; j++) {
						html += "<td>";
						html += dataItems[j];
						html += "</td>";
					}
						
					html += "</tr>";
				}

				html += "</tbody></table>"
				
				$('myDiv').innerHTML = html;				
			} else {
				$('myDiv').innerHTML = "";				
			}
		}
	//]]></script>

	<h:form id="suggestionbox_form">
		<h:panelGroup layout="block" style="height: 300px; width: 400px;"></h:panelGroup>

		<rich:tabPanel switchType="ajax">
			<rich:tab label="Tab 1">
			</rich:tab>


			<rich:tab label="Tab 2">
				<h:panelGroup id="postnummerDecoration">
					<h:inputText value="" openOnEdit="true" showControls="false"
						id="postnummer" maxlength="40" size="40">
						<a4j:support event="onblur"
							reRender="poststedDecoration,kommuneDecoration,fylkeDecoration,landDecoration,adresseSave,adresseUpdate"
							ajaxSingle="true" bypassUpdates="false" eventsQueue="Q" />
						<rich:toolTip followMouse="false" direction="top-right"
							styleClass="tooltip">
							<span style="white-space: nowrap"> Etter inntasting av
							minst to siffer vil du kunne velge blant postnummer som starter
							med disse. </span>
						</rich:toolTip>
					</h:inputText>

					<rich:suggestionbox for="postnummer"
						suggestionAction="#{capitalsBean.autocomplete}"
						fetchValue="#{object.name}" var="object" minChars="1">
						<h:column>
							<h:outputText value="#{object.name}" />
						</h:column>
						<h:column>
							<h:outputText value="#{object.state}" />
						</h:column>
						<a4j:support event="onselect"
							reRender="postnummerDecoration,poststedDecoration,kommuneDecoration,fylkeDecoration,landDecoration,adresseSave,adresseUpdate"
							ajaxSingle="true" bypassUpdates="false" eventsQueue="Q" />
					</rich:suggestionbox>
				</h:panelGroup>


			</rich:tab>
		</rich:tabPanel>


	</h:form>

</ui:composition>


> Bug introduces on suggestionbox when upgrading from 3.2.1 to 3.2.2
> ------------------------------------------------------------------
>
>                 Key: RF-4518
>                 URL: https://jira.jboss.org/jira/browse/RF-4518
>             Project: RichFaces
>          Issue Type: Bug
>    Affects Versions: 3.2.2
>         Environment: JBoss 4.2.2 , Seam 2.0.2.SP1
>            Reporter: Shervin Asgari
>            Assignee: Nick Belaevski
>             Fix For: 3.3.0
>
>         Attachments: screenshot-1.jpg
>
>
> I have just upgraded to 3.2.2.GA from 3.2.1.GA and suddenly something is terribly wrong with my suggestionbox.
> It looks like it is a styling issue of some sort.
> Because combined it is correct.
> The suggestionbox lists all the elements withouth any styling, but however the styling appears on top left corner of the screen.
> And I cannot select.
> The code worked on 3.2.1
> Please see the forum link for more description on the code.
> There are other suggestionboxes we use in the same project and there it works correctly. 

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

        



More information about the richfaces-issues mailing list