add button in show.jspx in a spring roo mvc project -
i've created spring roo project using 'getting started spring roo' starting point. project created in sts using roo 1.1.5. i've added neo4j graph , able create nodes simple edges , create web-part issuing 'controller --package ~.web'.
the project simple web-app person , race node , participant-edge start-time, end-time, total-time , race-id. since edge participant @relatedtovia becomes @relationshipentity , want add button save participant.
i found web-inf/tags/form/field/table.tagx add-, modify-, delete-buttons , friends defined, ie.:
<c:if test="${update}"> <td class="utilbox">
..
but set variable update? i've looked through code created sts, unable find it. pardon if obvious.
regards claus
edit:
i found out web-inf/tags/form/show.tagx have knobs enable/disable instance update-button:
<c:if test="${empty update}"> <c:set var="update" value="true" /> </c:if>
so add new button in file. spring framework seems laid out. have find various places.
regards claus
the value update
obtained attributes specify when use tag created using tagx
.
for example,
if form:table
used in jspx
, if following set, recieve true
in update
variable if assigned using directive. seems true
set default in form:table
tag within spring roo.
if want set false, when using have set value attribute following.
<form:table update="false" />
if want go deeper this, in table.tagx
file have mentioned find following line explains it.
<jsp:directive.attribute name="update" type="java.lang.boolean" required="false" rtexprvalue="true" description="include 'update' link table (default true)" />
cheers.
Comments
Post a Comment