• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxUpdateLink's action not getting called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxUpdateLink's action not getting called


  • Subject: Re: AjaxUpdateLink's action not getting called
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 10 Mar 2009 11:24:27 -0700


On Mar 10, 2009, at 11:16 AM, Ricardo J. Parada wrote:


Remember I said this is a simplified, reproducible case of what I actually have. I'm using an AjaxObserveField to observe several input elements (text fields and pop-ups). I think it's more elegant to wrap them with a single AjaxObserveField and not worry about giving the input fields an ID.


Then I have several ajax update links for next, previous, first, last, etc. They all update the update container and have a specific action associated with them. For example, my update link for next has action = "$goNext".

Anyways, back to the original problem, the action of the AjaxUpdateLink is not called when I click on them if they are placed inside the AjaxObserveField. If I move them outside the AjaxObserveField then they work okay.

I'd like to know if this is a bug before I file a Jira. :-)

Might as well just file it. It is either a bug or something that should receive an exception.



Chuck





On Mar 10, 2009, at 1:48 PM, Ricardo J. Parada wrote:

From the javadoc:

If you do NOT specify an observeFieldID, all of the form fields contained within this component will be observed for changes instead.

;-)


On Mar 10, 2009, at 1:36 PM, Henrique Gomes wrote:

Some will correct me If I'm wrong, but I think you are using AjaxObseveField wrong:
the way to use it is to supply an observeFieldID = "IDofElement"
and it will look for changes on the element with ID "IDofElement", invoking the $action and/or updating the $updateContainerID when there's a change.



Henrique Gomes

On Mar 10, 2009, at 4:48 PM, Ricardo J. Parada wrote:


Is there a reason why my action would not get called when I use the AjaxUpdateLink's in a configuration like this:


<wo:form>
<wo:AjaxUpdateContainer id="Foo">
	<wo:AjaxObserveField updateContainerID="Foo" elementName="span">
		<wo:textfield value="$foo"/>
		<wo:AjaxUpdateLink action="$doSomething" string="Do It"/>
	</wo:AjaxObserveField>
</wo:AjaxUpdateContainer>
</wo:form>

This is a simplified version of what I have just to demonstrate what I'm talking about. In order for my AjaxUpdateLink's action to get called I have to move it outside the AjaxObserveField like this:


<wo:form> <wo:AjaxUpdateContainer id="Foo"> <wo:AjaxObserveField updateContainerID="Foo" elementName="span"> <wo:textfield value="$foo"/> </wo:AjaxObserveField> <wo:AjaxUpdateLink action="$doSomething" string="Do It"/> </wo:AjaxUpdateContainer> </wo:form> _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >AjaxUpdateLink's action not getting called (From: "Ricardo J. Parada" <email@hidden>)
 >Re: AjaxUpdateLink's action not getting called (From: Henrique Gomes <email@hidden>)
 >Re: AjaxUpdateLink's action not getting called (From: "Ricardo J. Parada" <email@hidden>)
 >Re: AjaxUpdateLink's action not getting called (From: "Ricardo J. Parada" <email@hidden>)

  • Prev by Date: Re: AjaxUpdateLink's action not getting called
  • Next by Date: Re: Is this an encoding problem???
  • Previous by thread: Re: AjaxUpdateLink's action not getting called
  • Next by thread: Re: AjaxUpdateLink's action not getting called
  • Index(es):
    • Date
    • Thread