also add objects without prototype to path array.
This commit is contained in:
parent
bd0441cda5
commit
d9b92c75e9
1 changed files with 7 additions and 4 deletions
|
@ -211,6 +211,8 @@ public class RequestEvaluator implements Runnable {
|
||||||
reqPath.putHiddenProperty ("root", current);
|
reqPath.putHiddenProperty ("root", current);
|
||||||
Prototype p = app.getPrototype (root);
|
Prototype p = app.getPrototype (root);
|
||||||
action = p.getActionOrTemplate (null);
|
action = p.getActionOrTemplate (null);
|
||||||
|
if (action == null)
|
||||||
|
throw new FrameworkException ("Action not found");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -276,11 +278,12 @@ public class RequestEvaluator implements Runnable {
|
||||||
|
|
||||||
// add object to request path if suitable
|
// add object to request path if suitable
|
||||||
if (currentNode != null) {
|
if (currentNode != null) {
|
||||||
String pt = currentNode.getPrototype ();
|
|
||||||
if (pt != null) {
|
|
||||||
// add to reqPath array
|
// add to reqPath array
|
||||||
current = getNodeWrapper (currentNode);
|
current = getNodeWrapper (currentNode);
|
||||||
reqPath.putProperty (reqPath.size(), current);
|
reqPath.putProperty (reqPath.size(), current);
|
||||||
|
String pt = currentNode.getPrototype ();
|
||||||
|
if (pt != null) {
|
||||||
|
// if a prototype exists, add also by prototype name
|
||||||
reqPath.putHiddenProperty (pt, current);
|
reqPath.putHiddenProperty (pt, current);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -826,7 +829,7 @@ public class RequestEvaluator implements Runnable {
|
||||||
} else {
|
} else {
|
||||||
// the user node may have changed (login/logout) while the ESUser was
|
// the user node may have changed (login/logout) while the ESUser was
|
||||||
// lingering in the cache.
|
// lingering in the cache.
|
||||||
esn.updateNode ();
|
esn.updateNodeFromUser ();
|
||||||
}
|
}
|
||||||
|
|
||||||
return esn;
|
return esn;
|
||||||
|
|
Loading…
Add table
Reference in a new issue