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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt

This email sent to [email protected]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/rparada%40mac.com

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [email protected]

--
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to