Interesting,
Examples both work fine with server and client now so your problem might be
something else.
Have you tried with a newer myfaces core? Maybe it's jboss?
Cagatay
On 1/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
Hi,
My state saving method is client and I tried with Sandbox –
1.1.5-snapshotTomahawk –
1.1.5-snapshot also.
I tried to change state saving to server & even after that
AjaxDecodePhaseListener & the bean method are not invoked during the
request. When the constructed view is printed in the logs,
'suggestedItemsMethod' attribute of <s:inputSuggestAjax> is empty string
(""). I am not sure if that is a problem or just a toString() error.
Regards,
Basha
------------------------------
*From:* Cagatay Civici [mailto:[EMAIL PROTECTED]
*Sent:* Monday, January 15, 2007 10:55 PM
*To:* MyFaces Discussion
*Subject:* Re: Problem with sandbox's <s:inputSuggestAjax> tag and myfaces
Hi,
What is your state saving method, recently a bug that was stopping
inputsuggestajax working with client side state saving is fixed.
Also you may try to upgrade your versions of core-tomahawk-sandbox.
Cagatay
On 1/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED] >
wrote:
Hi,
I am getting some problems using Apache myfaces, facelets and
sandbox tags. I am using sandbox's "inputSuggestAjax" tag.
When the application deployment "AjaxDecodePhaseListener" is not loading
but it is able to locate the sandbox's faces-config.xml and also loading
"PRPPhaseListener".
My page source is like this,
-----
-----
<s:inputSuggestAjax suggestedItemsMethod="#{
customerBean.getCustomerIdSuggestItems}"
value="#{customerBean.customerId}"/>
-----
-----
I am not getting any errors in server logger. The problem is that the bean
method is not calling for showing the suggested items.
My environment is like this,
Myfaces – 1.1.1
JBoss – 4.0.2
Jsf-facelets – 1.1.5
Sandbox – 1.0
Tomahawk – 1.0
The log file contains,
View after rendering
========================================
<UIViewRoot id="NULL" family="javax.faces.ViewRoot" locale="en"
renderKitId="HTML_BASIC" rendered="true" rendererType="NULL"
rendersChildren="false" transient="false" viewId="/customer.xhtml">
<html.HtmlForm id="_id8" com.sun.facelets.MARK_ID="4cfee3bd"
com.sun.facelets.APPLIED="
[EMAIL PROTECTED]"
org.apache.myfaces.renderkit.html.HtmlFormRendererBase.HIDDEN_COMMAND_INPUTS_SET="[_id8:_link_hidden_]"
accept="NULL" acceptcharset="NULL" dir="NULL"
enctype="application/x-www-form-urlencoded" family="javax.faces.Form"
lang="NULL" onclick="NULL" ondblclick="NULL" onkeydown="NULL"
onkeypress="NULL" onkeyup="NULL" onmousedown="NULL" onmousemove="NULL"
onmouseout="NULL" onmouseover="NULL" onmouseup="NULL" onreset="NULL"
onsubmit="NULL" rendered="true" rendererType="javax.faces.Form"
rendersChildren="false" style="NULL" styleClass="NULL" submitted="false"
target="NULL" title="NULL" transient="false">
<html.HtmlPanelGroup id="customerIdPanel"
com.sun.facelets.MARK_ID="4cfee3b4"
family="javax.faces.Panel" rendered="true" rendererType="javax.faces.Group"
rendersChildren="true" style="NULL" styleClass="NULL" transient="false">
<html.HtmlOutputText id="_id11" com.sun.facelets.MARK_ID="4cfee3a7"
converter="NULL" escape="true" family="javax.faces.Output"
localValue="NULL" rendered="true" rendererType="javax.faces.Text"
rendersChildren="false" style="NULL" styleClass="NULL" title="NULL"
transient="false" value="${msg.searchProfileLabel}"/>
<
org.apache.myfaces.custom.suggestajax.inputsuggestajax.InputSuggestAjaxid="_id13"
com.sun.facelets.MARK_ID="4cfee396" accesskey="NULL" alt="NULL"
autoComplete="true" autocomplete="NULL" charset="NULL" converter="NULL"
dir="NULL" disabled="false" disabledOnClientSide="false"
displayValueOnly="false" displayValueOnlyStyle="NULL"
displayValueOnlyStyleClass="NULL" enabledOnUserRole="NULL" family="
javax.faces.Input" immediate="false" itemLabelMethod="NULL" lang="NULL"
localValue="NULL" localValueSet="false" maxSuggestedItems="NULL"
maxlength="-2147483648" onblur="NULL" onchange="NULL" onclick="NULL"
ondblclick="NULL" onfocus="NULL" onkeydown="NULL" onkeypress="NULL"
onkeyup="NULL" onmousedown="NULL" onmousemove="NULL" onmouseout="NULL"
onmouseover="NULL" onmouseup="NULL" onselect="NULL" readonly="false"
rendered="true" rendererType="org.apache.myfaces.InputSuggestAjax"
rendersChildren="false" required="false" setDisplayValueOnly="false"
size="-2147483648" style="NULL" styleClass="NULL" submittedValue="NULL"
suggestedItemsMethod="" tabindex="NULL" title="NULL" transient="false"
valid="true" validator="NULL" value="#{customerBean.customerId}"
valueChangeListener="NULL" visibleOnUserRole="NULL"/>
<html.HtmlCommandButton id="customerBeanCommandButtonNextId"
com.sun.facelets.MARK_ID="4cfee389" accesskey="NULL" action=""
actionListener="NULL" alt="NULL" dir="NULL" disabled="false" family="
javax.faces.Command" image="NULL" immediate="false" lang="NULL"
onblur="NULL" onchange="NULL" onclick="NULL" ondblclick="NULL"
onfocus="NULL" onkeydown="NULL" onkeypress="NULL" onkeyup="NULL"
onmousedown="NULL" onmousemove="NULL" onmouseout="NULL" onmouseover="NULL"
onmouseup="NULL" onselect="NULL" readonly="false" rendered="true"
rendererType="javax.faces.Button" rendersChildren="false" style="NULL"
styleClass="NULL" tabindex="NULL" title="NULL" transient="false"
type="submit" value="Next"/>
</html.HtmlPanelGroup>
</html.HtmlForm>
</UIViewRoot>
Can any one tell me what's going wrong?
Regards,
Basha
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.
www.wipro.com
The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s) and
may contain proprietary, confidential or privileged information. If you are
not the intended recipient, you should not disseminate, distribute or copy
this e-mail. Please notify the sender immediately and destroy all copies of
this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses. The
company accepts no liability for any damage caused by any virus transmitted
by this email.
www.wipro.com