[Seaside] Conditionally loading/displaying a component

sergio ruiz sergio.rrd at gmail.com
Wed Jan 23 13:37:52 UTC 2019


I have a very trivial application that I am working on right now.

It has one form. Upon submission of the form, it gathers information from a
few different APIs, and builds an ordered collection of results.

It has another component that displays the results of this component. I
only want this component to be visible when there are results from the form
submission.

How would I plumb up the the results component to render only when there
are results from the form submission?

The form throws the values from the form into session. Is it bad practice
for the results component just to watch the session, and if there is some
information there, gather the results and render itself?

Is it bad practice to use the session as a sort of “Brain” for the
application, in the same way we might use services in Angular?

Thanks!

----
peace,
sergio
photographer, journalist, visionary

Public Key: http://bit.ly/29z9fG0
#BitMessage BM-NBaswViL21xqgg9STRJjaJaUoyiNe2dV
http://www.codeandmusic.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20190123/de9a9b0f/attachment.html>


More information about the seaside mailing list