This content has been marked as final.
Show 2 replies
-
1. Re: conversation per view-id [natural convesation scope]
pmuir Dec 9, 2007 7:10 AM (in response to koenhandekyn)"koenhandekyn" wrote:
i'm developping an app part of which is plain editing of instances in a database.
i have recently discovered natural conversation scope, that cleary should get into the documentation soon !!!
This isn't an official feature until 2.0.1, and documented in 2.0.1 :)2. is there a shortcut possible not te repeat myselves?
No, and I can't see a neat way of doing this. -
2. Re: conversation per view-id [natural convesation scope]
koenhandekyn Dec 10, 2007 9:24 AM (in response to koenhandekyn)i've posted a proposal in JIRA
in short i propose to match * in a page view expression to a variable, for example named page and than alow EL expression in other elements.
<page
view-id="/up/admin/*.xhtml"
conversation="%{page}Conversation"
>
..
an alternative which is maybe cleaner is to have a context variabele "view" which is a seam generated object representing the view.
<page
view-id="/up/admin/*.xhtml"
conversation="%{view.name}Conversation"
>
..
view having properties like
view.id (example /app/path/name.ext)
view.fullPath ( example http://host/app/path/name.ext)
view.name ( example name )