Messages posted by acastro
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icesoft.org  [Login] Login 
Messages posted by: acastro  XML
Profile for acastro -> Messages posted by acastro [3]
Author Message
found my issue... the problem was with the name I gave the "f:facet"... it has to be:

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

Hi,

I have a page that has an "autocomplete" component (SelectInputText).

Code:
 
 <ice:selectInputText
         id="txtNewContactZipCode" 
 	width="115"
 	rows="#{autocompleteController.autocompleteBean.cityListLength}"
 	value="#{address.zip}"
 	valueChangeListener="#{autocompleteController.selectInputValueChanged}"
 	listVar="ZipCodesBE"
 	listValue="#{autocompleteController.autocompleteBean.cityMatchPossibilities}"
 	actionListener="#{newContactAutocompleteHandler}"
 	immediate="true"
 	required="true"
 	partialSubmit="true">
 


Everything works great... but! I need the component always to access its actionListener event (regardless if it chooses an option or not).

Since it always accesses the "valueChangeListener", I thought that maybe I could "call" the actionListener method from that point, but all my efforts have been useless...

I my "valueChangeListener" I instace the component:

Code:
  SelectInputText autoComplete = (SelectInputText) event.getComponent();


and I've tried mehods like "getActionListener()" or "getActionListeners()", but there's no way I can make them work.

Can anyone help me please???
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
 
Profile for acastro -> Messages posted by acastro [3]
Go to:   
Powered by JForum 2.1.7ice © JForum Team