-
1. Re: rich:suggestionbox submits the whole form -> validation
ilya_shaikovsky Nov 8, 2007 3:27 AM (in response to petrosd)Seems you use old version. under 3.1.2 - ajaxSingle works fine and its true by default.
-
2. Re: rich:suggestionbox submits the whole form -> validation
petrosd Nov 8, 2007 10:07 AM (in response to petrosd)acutally i'm using richfaces-impl-3.1.2.GA.jar
any other clues? -
3. Re: rich:suggestionbox submits the whole form -> validation
ilya_shaikovsky Nov 8, 2007 10:54 AM (in response to petrosd)xm.. under 3.1.2 it works for me.
what about other environment? -
4. Re: rich:suggestionbox submits the whole form -> validation
petrosd Nov 8, 2007 12:25 PM (in response to petrosd)java 1.5
tomcat 6
jsf-impl-1.2.jar
jsf-facelets-1.1.13.jar
OS: ubuntu linux
is it maybe a problem with facelets?
here is the whole xhtml code:
<ui:composition template="/pages/templates/sample/main.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<ui:define name="content">
Simple Form
<rich:panel id="highlightbox" styleClass="box">
<f:facet name="header">
<h:outputText value="This is a simple form with ajax submition" />
</f:facet>
<h:form>
<h:panelGrid>
<h:panelGrid columns="4" cellpadding="3">
<h:outputText value="${bundle['sample.form.name']}:" />
<h:inputText label="Name" id="name" required="true"
value="#{SimpleFormController.bean.userName}"
styleClass="defaultTextfield">
<f:validateLength minimum="3" />
</h:inputText>
<h:outputText value="Country with ajax" />
<h:inputText label="Country" id="country_ajax" required="true"
value="#{SimpleFormController.bean.userCountry}"
styleClass="defaultTextfield"/>
<rich:suggestionbox id="suggestionBoxId" for="country_ajax" nothingLabel="Nothing found"
suggestionAction="#{ListUtil.autocompleteCountry}" var="result" ajaxSingle="true"
minChars="1"
shadowOpacity="4"
border="1" width="200"
height="300"
shadowDepth="1"
cellpadding="0">
<h:column>
<h:outputText value="#{result}" />
</h:column>
</rich:suggestionbox>
</h:panelGrid>
<h:commandButton value="Submit"
action="#{SimpleFormController.doSubmit}"
styleClass="defaultButton" />
</h:panelGrid>
</h:form>
</rich:panel>
</ui:define>
</ui:composition>