[Seaside] problem with WABatchSelection

radoslav hodnicak rh at 4096.sk
Tue Aug 9 17:16:45 CEST 2005

Because #displayItems: does a call:

You should not use call: in rendering methods, only in callbacks. You can 
try to display the item view as a subcomponent instead (in similar way the 
main and cartView subcomponents are displayed in 
WAStoreFillCart>>renderContentOn: )

On Tue, 9 Aug 2005, Valdas Bucinskas wrote:

> Hi,
> I have been recently playing with WAStore example that comes together with
> seaside. I wanted to modify it in such a way, that store information
> (presented in WABatchSelection) is displayed at the fisrt time the page
> loads. So the user doesn't need to click 'Browse' anchor every time. I
> changed one line in
> WAStoreFillCart>>renderNavBarOn: html
> 	html form: [
> 		html bold: 'Search:'.
> 		html space.
> 		html textInputWithValue: '' callback: [:v | self search: v].
> 	].
> "html anchorWithAction: [self browse] text: 'Browse'."
> 	self displayItems: self inventory allItems. "My Line"
> 	cart hasItems ifTrue:
> 		[html break.
> 		html anchorWithAction: [self checkout] text: 'Checkout']
> "My line" does exactly the same what 'self browse' does. However, WAStore
> example doesn't load anymore (until I swap the commented lines back) but
> gives 'The page cannot be displayed' error.
> What's the problem? How do I make this work?
> Best regards,
> Valdas Bucinskas
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/listinfo/seaside

More information about the Seaside mailing list