[Seaside] Sushi Store and WABatchSelection
Avi Bryant
avi at dabbledb.com
Thu Nov 29 01:02:42 UTC 2007
On 11/28/07, Richard K Eng <richard.eng at rogers.com> wrote:
> I want to modify the Sushi Store app so that instead of having to click on
> the "Browse" anchor, I can go straight to the selection list display (as
> returned from WABatchSelection). For the life of me, I can't figure out how
> to do this. I think there must be something I don't understand about Seaside
> (or Smalltalk). (Very likely, as after 5 months I only know the "basics".)
Hi Richard,
You can modify WAStoreFillCart>>initialize to this:
--
initialize
main := WABatchSelection
items: self inventory allItems
link: #title
text: #subtitle.
main onAnswer: [:item | self displayItem: item].
cartView := WAStoreCartView new
--
Cheers,
Avi
More information about the seaside
mailing list