You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Tara Peltier <ta...@yahoo.com> on 2007/08/15 21:02:23 UTC
Sandox tableSuggestAjax & Ajax4Jsf
Hello!
I am using the sandbox tableSuggestAjax component. I would like to add an
a4j:support tag to it to capture the onchange event and reRender another
part of the page.
The following code works great in IE7, but fails in Firefox 2.0.0.6.
<s:tableSuggestAjax size="50" var="respondent" id="reqRespEmail"
startRequest="2"
value="#{correspondenceBackingBean.requiredRespondentEmail}"
betweenKeyUp="300"
suggestedItemsMethod="#{correspondenceBackingBean.suggestRespondentsMethod}">
<t:column>
<f:facet name="header">
<s:outputText value="Email"/>
</f:facet>
<s:outputText for="reqRespEmail" label="#{respondent}"/>
</t:column>
<a4j:support ajaxSingle="true" event="onchange"
reRender="requiredRespondentTable"/>
</s:tableSuggestAjax>
<a4j:outputPanel id="requiredRespondentTable">
[... more jsf components here ...]
</a4j:outputPanel>
In IE7, this works beautifully -- the onchange event is triggered, ajax4Jsf
calls the server and the reRender works great. However, Firefox displays
the following error as soon as the onchange JavaScript event is fired:
"Error: messagesComponent has no properties
Source File:
http://localhost:8080/CouncilCorrNew/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11872031/dojo.DojoResourceLoader/dojo.js
Line: 96"
I have tried the latest sandbox 1.1.7 builds of tomahawk & the sandbox, as
well as the last 1.1.6 builds of each. Both of them displayed this
behavior.
I've also searched and searched, but haven't found any solution to a problem
like this.
Any help or ideas would be appreciated.
Regards,
Tara Peltier
--
View this message in context: http://www.nabble.com/Sandox-tableSuggestAjax---Ajax4Jsf-tf4274985.html#a12168141
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: Sandox tableSuggestAjax & Ajax4Js
Posted by Gerald Müllan <gm...@apache.org>.
Hi,
have you any component with the id "messagesComponent" defined? Any
js-object with this name?
cheers,
Gerald
On 8/15/07, Tara Peltier <ta...@yahoo.com> wrote:
>
> Hello!
>
> I am using the sandbox tableSuggestAjax component. I would like to add an
> a4j:support tag to it to capture the onchange event and reRender another
> part of the page.
>
> The following code works great in IE7, but fails in Firefox 2.0.0.6.
> <s:tableSuggestAjax size="50" var="respondent" id="reqRespEmail"
> startRequest="2"
> value="#{correspondenceBackingBean.requiredRespondentEmail}"
> betweenKeyUp="300"
>
> suggestedItemsMethod="#{correspondenceBackingBean.suggestRespondentsMethod}">
> <t:column>
> <f:facet name="header">
> <s:outputText value="Email"/>
> </f:facet>
> <s:outputText for="reqRespEmail" label="#{respondent}"/>
> </t:column>
> <a4j:support ajaxSingle="true" event="onchange"
> reRender="requiredRespondentTable"/>
> </s:tableSuggestAjax>
> <a4j:outputPanel id="requiredRespondentTable">
> [... more jsf components here ...]
> </a4j:outputPanel>
>
> In IE7, this works beautifully -- the onchange event is triggered, ajax4Jsf
> calls the server and the reRender works great. However, Firefox displays
> the following error as soon as the onchange JavaScript event is fired:
> "Error: messagesComponent has no properties
> Source File:
> http://localhost:8080/CouncilCorrNew/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/11872031/dojo.DojoResourceLoader/dojo.js
> Line: 96"
>
> I have tried the latest sandbox 1.1.7 builds of tomahawk & the sandbox, as
> well as the last 1.1.6 builds of each. Both of them displayed this
> behavior.
>
> I've also searched and searched, but haven't found any solution to a problem
> like this.
>
> Any help or ideas would be appreciated.
>
> Regards,
> Tara Peltier
> --
> View this message in context: http://www.nabble.com/Sandox-tableSuggestAjax---Ajax4Jsf-tf4274985.html#a12168141
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces