--
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.
> Right, it's probably a bug in the feature that allows the site map to be
> reloaded in development mode.
Fwiw, I've never seen this. Take care not to mutate any state in the
functions that calculate the sitemap as these functions (when running in
dev mode) will be called on every request iirc.
/Jeppe
Thanks.
--
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.
I have no clue why this is happening. Is there a set of cases where it happens more often? Can you print the SiteMap instance each time it's calculated to see if it's a calculation issue or it's a "how Lift interprets the valid data you've supplied" issue?
Thanks.
FWIW I experienced this menu-strangeness without JRebel, but only in
dev-mode. Reloading the page was enough to trigger the issue, but it
happened rarely.
--
Andreas Joseph Krogh <and...@officenet.no>
Senior Software Developer / CTO
Public key: http://home.officenet.no/~andreak/public_key.asc
------------------------+---------------------------------------------+
OfficeNet AS | The most difficult thing in the world is to |
Rosenholmveien 25 | know how to do a thing and to watch |
1414 Troll�sen | somebody else doing it wrong, without |
On 08/24/2011 09:43 PM, Naftoli Gugenheim wrote:FWIW I experienced this menu-strangeness without JRebel, but only in
> I don't think it's limited to any special case. Unless I'm wrong it
> should be super-easy to reproduce:
> 1. Take any application with a hierarchical menu, preferably at least
> three levels (e.g. home > category > task).
> 2. Comment out a menu entry for a (sub)submenu whose parent has a
> sibling menu after it.
> 3. sbt jetty-run ~prepare-webapp (with JRebel enabled)
> 4. Load the commented-out menu's parent's page so you can see its
> children.
> 5. Uncomment the menu entry, save, wait for prepare-webapp to finish
> running.
> 6. Reload the page.
dev-mode. Reloading the page was enough to trigger the issue, but it
happened rarely.
--
Andreas Joseph Krogh <and...@officenet.no>
Senior Software Developer / CTO
Public key: http://home.officenet.no/~andreak/public_key.asc
------------------------+---------------------------------------------+
OfficeNet AS | The most difficult thing in the world is to |
Rosenholmveien 25 | know how to do a thing and to watch |
1414 Trollåsen | somebody else doing it wrong, without |
NORWAY | comment. |
Org.nr: NO 981 479 076 | |
| |
Tlf: +47 24 15 38 90 | |
Fax: +47 24 15 38 91 | |
Mobile: +47 909 56 963 | |
------------------------+---------------------------------------------+
--
That's the issue, I didn't change anything but still the menu got
inconsistent. If i remember correctly the issue was that the generated
link of an item was (sometimes) mixed-up, but the menu-items was in
correct order/structure.
I'll see if I can reproduce and give more feedback, but it'll have to
wait until tomorrow.
--
Andreas Joseph Krogh <and...@officenet.no>
Senior Software Developer / CTO
Public key: http://home.officenet.no/~andreak/public_key.asc
------------------------+---------------------------------------------+
OfficeNet AS | The most difficult thing in the world is to |
Rosenholmveien 25 | know how to do a thing and to watch |
1414 Troll�sen | somebody else doing it wrong, without |
--
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.
I guess I should have mentioned -- I'm not using setSitemMapFunc, but setSiteMap.