Autocomplete with Grid
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Autocomplete with Grid  XML
Forum Index -> Portals & Portlets
Author Message
acastro

Joined: 24/06/2010 11:40:31
Messages: 3
Offline


Hi,

I new at using ICEFaces. We are developing a portal application with JBOSS and ICEFaces (1.8).

Everything is working great! But, I'm trying to build an autocomplete very similar to the one shown in the component showcase (the second one, were the results are shown in a grid).

I've tried everything! but the grid won't display! Here's a sample of my .jspx: Code:
<ice:selectInputText id="txtZipCode"
 	rows="#{autocompleteBean.cityListLength}"
         width="100"
         value="#{autocompleteBean.selectedCityValue}"
         valueChangeListener="#{autocompleteController.selectInputValueChanged}"
         listVar="city"
         listValue="#{autocompleteBean.cityMatchPossibilities}">
 	
 	<f:facet name="zipCodes">
 		<ice:panelGrid columns="3">
 			<ice:outputText id="AutoCmpCty" value="#{city.city}"/>
 			<ice:outputText id="AutoCmpSt" value="#{city.state}"/>
 			<ice:outputText id="AutoCmpZip" value="#{city.zip}"/>
 		</ice:panelGrid>
 	</f:facet>
 </ice:selectInputText> 


I used the "location" example that has an autocomplete. Then I tried a way to add the the grid, just like the autocomplete in the component showcase. I checked the beans of both examples and they are basically the same.

The autocomplete woks fine if I use this:

Code:
 <f:selectItems id="locationItems" value="#{autocompleteBean.cityMatchPossibilities}"/>
 


I was wondering if the grid only works with the 2.0 ICEFaces version? Or am I missing something?

Thanks in advance!
Adrian
acastro

Joined: 24/06/2010 11:40:31
Messages: 3
Offline


found my issue... the problem was with the name I gave the "f:facet"... it has to be:

Code:
<f:facet name="selectInputText">

 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team