Conditionally loading/displaying a component

sergio ruiz <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <CABOFMN=tN4X6Sd9uFSDdXn3zREd7xj_z5WKG-bni3KkV-4YegQ@mail.gmail.com>
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

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.