2009年9月1日火曜日

Scala LiftでLocのコンストラクタが変わってる

Getting startedとかでは、BootクラスのentriesにSiteMapを追加するのに
val entries = 
Menu(Loc("Home", "/", "Home")) :: Nil


みたいに紹介されてるけど、バージョンアップによりコンストラクタが変更されてるためにコンパイルが通らない状態になってるみたい。
第二引数がStringからListに代わってるだけなので以下のうようにするだけでOK

val entries = 
Menu(Loc("Home", List(""), "Home")) :: Nil


また、"/hoge/fuga"のようなサイトマップを追加したい場合は

val entries = 
Menu(Loc("Home", List("hoge","fuga"), "Home")) :: Nil

とするだけでいいぽ

10 件のコメント:

  1. I like it whenever people get together and share ideas.
    Great site, stick with it!

    Have a look at my web page: Cheap NFL Jerseys

    返信削除
  2. I always emailed this web site post page to all my friends, for the reason that if like to read it next my
    links will too.

    Feel free to visit my blog; Cheap Oakley Sunglasses on sale

    返信削除
  3. Wow, this piece of writing is pleasant, my younger sister is analyzing these kinds
    of things, thus I am going to let know her.

    Here is my web site ... ティファニー ネックレス

    返信削除
  4. Hi there, just wanted to say, I enjoyed this blog post.
    It was funny. Keep on posting!

    My web site: Oakley Radar Sunglasses

    返信削除
  5. I love what you guys are usually up too. This kind of clever work and
    coverage! Keep up the great works guys I've added you guys to blogroll.

    Here is my web page: Slendertone Face

    返信削除
  6. Hello just wanted to give you a quick heads up.
    The words in your post seem to be running off the screen in Firefox.

    I'm not sure if this is a format issue or something to do with browser compatibility but I figured I'd post to let you know.
    The style and design look great though! Hope you get the issue fixed soon.
    Thanks

    my web-site :: fake electric sunglasses

    返信削除
  7. It's very simple to find out any topic on web as compared to textbooks, as I found this piece of writing at this web site.

    My web site: Oakley Sunglasses

    返信削除
  8. I will right away clutch your rss feed as I can
    not find your e-mail subscription hyperlink or e-newsletter service.
    Do you've any? Please allow me understand so that I could subscribe. Thanks.

    my web-site :: Classical Oakley Outlet

    返信削除
  9. Background Lounge® Yellow metal Class Collection – Any Funky Bean
    Totes Exclusive Release!

    My webpage Epson Powerlite Home Cinema 5020UBe

    返信削除
  10. Several types of Touchscreen Products

    Also visit my blog post: how to convert video to mp3

    返信削除