--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Maybe one day, the menu hierarchy as rendered by the menu snippet should be decoupled from the set of menu entries that define the SiteMap itself (as used for page access etc.), with the rendered tree defaulting to the same as the actual SiteMap. This way, the SiteMap implementation remains the same, but there's much greater flexibility (for those that want to write the explicit code) in terms of how to display it.
They is one entry per url I'm trying to achieve (/category/1, /
category/2), seams abit strange (to me) that the Loc isnt decoupled
from the menu, so the the loc should match /category/*, but the menus
be able to point to that Loc with a paramaters, IE /category/1 & /
category/2.
I am a novice with lift, I come from a zend framework background which
lets me do the described above very easily, which leads me to believe
I'm doing it wrong or Im missing the point.
The Loc.Link class seams abit overloaded to me, it used for a)
generating the url, b) finding the template and c) matching the
request. This seams to leave the only option is to write a custom Loc,
where you specify the different Loc parameters separately?
Trying to replicate the 3.2.7 code in my Boot.scala required that I
put ParamInfo there just as illustrated since the compiler did not
find it in the Param.scala code I also replicated.
Since it is difficult to understand how that snippet fits inside
sitemap creation, I've not been able to coax the code to work:
specifically, I get an error when I put the snippet
<span class="lift:ShowParam">???</span>
in my html: Class Not Found
Is there a link to a project that does parameterized menus from which
one can see the entire lifecycle?
Thanks
Jack
// for a list of items, display those items def renderItems(in: Seq[Item]) = "tr" #> in.map(item => { "a [href]" #> AnItemPage.menu.calcHref(item) & "@description *" #> item.description & "@price *" #> item.price.toString & "@add_to_cart [onclick]" #> SHtml.ajaxInvoke(() => TheCart.addItem(item))})