D2WQuery embedded loses state
D2WQuery embedded loses state
- Subject: D2WQuery embedded loses state
- From: Mark Wardle <email@hidden>
- Date: Sat, 7 Nov 2009 21:58:26 +0000
Hi all. This may be a stupid question...
I've embedded a D2WQuery within a ListPage. It acts as a filter for
the list; in fact I use ERDQueryAnyKey exclusively to allow a
google-like search of the listed entities. Thank you to all who
helped me make the mental leap to D2W - I don't think I'm quite there
*yet* - and getting me this far....
It's actually working quite well BUT!
If I type text and click submit, then the list (displaygroup) is
filtered appropriately. However, the text is cleared from the
textfield. I wish to visually indicate that a filter is applied - I
assumed the text would remain within the textfield for the query, but
this is not the case.
In addition, every time I click submit, I get a wholly new page, even
though I've bound the action binding to a method that returns null.
Therefore, my list page "Back" button (Cancel) no longer returns to
the calling page but to the previous search.
As always, I'm in danger of being too specific and asking the wrong questions!
1. Is there any way of getting a D2WQuery to maintain input state
after submission?
2. Is it possible to pass the cancelAction to the *next* page, or
somehow keep the same list page instance?
3. Am I still making things overly complicated? Should I use an
aboveDisplayPropertyKey and use an embedded component there rather
than customising my list page?
Many thanks,
Mark
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
_______________________________________________
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