It doesn't, because it has to replace its contents bound, and the other view part has to be replaced with nothing, so it's less concise than FuncBindParams.
------------------------------------- marius d.<marius.dan...@gmail.com> wrote: Please see chooseTemplate from Helpers._ (It's actually defined in BindHelpers) For examples see: \sites\example\src\main\webapp\guess.html \sites\example\src\main\scala\net\liftweb\example\snippet \CountGame.scala .. see if that helps you case. Br's, Marius On Aug 6, 6:44 am, Naftoli Gugenheim <naftoli...@gmail.com> wrote: > What's the smartest / most concise way to achieve the following in the > corresponding view xhtml and snippet code: > Parts of the view have to change, depending on whether something is set. For > example, in the area where you select the client, if the client is None, then > it displays an interface to select a client. If it's set to a Some then it > displays the client's details with a button to unset it. This pattern is > repeated. > My current strategy is to have two elements, req:noClient and req:client, > which have different xhtml contents. Then in the snippet I bind them to two > NodeSeq functions, one that binds useful contents when the client is None and > returns NodeSeq.Empty otherwise; and another function that binds when it's a > Some and returns Empty otherwise. However, it seems to be somewhat redundant > in theory. > So does anyone have a better way of switching view parts? > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---