On 24/04/2014, at 12:05 PM, Paul Hoadley <pa...@logicsquad.net> wrote:

> But now what?  Obviously that's not going to submit itself, so I added:
> 
> <wo:AjaxSubmitButton action="$someAction" updateContainerID="sourceList" 
> value="Search" />
> 
> where "sourceList" is the ID for the containing AjaxUpdateContainer.  Is 
> there something I need to do in the someAction() action method?  Because all 
> that happens now is I get a container update, but the table renders the 
> entire display group, unfiltered by the ERXAnyField's input, and the 
> ERXAnyField gets reset.
> 
> What am I missing here?

After some trial and error, it turns out that this is sufficient in 
someAction():

        displayGroup().setQualifier(displayGroup().qualifierFromQueryValues());
        displayGroup().updateDisplayedObjects();

For whatever reason I was expecting it to be more automatic, but it seems to 
work as intended now.


-- 
Paul Hoadley
http://logicsquad.net/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to