Files
Babydatenbank/web/xava/referenceActions.jsp
Socrates 9ed0f2a056 test
2020-05-26 10:29:34 +02:00

24 lines
695 B
Plaintext

<%
String keyPropertyForAction = Ids.undecorate(propertyKey);
if (editable && view.isCreateNewForReference(ref)) {
%>
<xava:action action='Reference.createNew' argv='<%="model="+ref.getReferencedModelName() + ",keyProperty=" + keyPropertyForAction%>'/>
<%
}
if (editable && view.isModifyForReference(ref)) {
%>
<xava:action action='Reference.modify' argv='<%="model="+ref.getReferencedModelName() + ",keyProperty=" + keyPropertyForAction%>'/>
<%
}
java.util.Iterator itActions = view.getActionsNamesForReference(ref, editable).iterator();
while (itActions.hasNext()) {
String action = (String) itActions.next();
%>
<xava:action action="<%=action%>"/>
<%
}
%>