I've added this to my TODO to update the docs. Thanks for the report! On Mon, Aug 24, 2009 at 5:30 PM, glenn <[email protected]> wrote:
> > I found that the example is out-of-sync with the latest code in 1.1- > Snapshot. > I was able to get the example (in my application, at least) to compile > and run, by > defining the function as loadCategory(List[String]) = ..., > and creating a separate submit function to handle the actual save > chores. > > Glenn... > > > > On Aug 24, 3:37 pm, glenn <[email protected]> wrote: > > There seems to be a problem with SHtml.multiSelect following the > > example in the Lift book (Listing 4.10: Using multiselect). The > > example shows the last parameter to be a List, while the source for > > multiSelect shows it to be > > (String) => Any. > > > > When I tried to implement in my own code, I get the compiler error: > > type mismatch found; List[String], required: String. > > > > The book example even states that the function "takes a String > > representing a > > Category’s primary key and returns the category." > > > > The example goes further to explain: > > > > "We then use this helper method to update the > > Set that we created earlier. Note that the callback function will be > > executed for each selected item > > in the multiselect, which is why the callback takes a String argument > > instead of a Set[String]." > > > > But where is this callback function? Is it the same helper mentioned > > earlier. There's no other callback function parameter on the > > multiSelect constructor. > > > > This is all very confusing. > > > > Glenn... > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
