My JSP is working with this code.
Code:
<ul class="buttons-1">
<% ResultData navBut = new ResultData( ui.navButtons );
navBut.beforeFirst();
while( ! navBut.isLast()) {
navBut.next();
if ("LEFT".equals(navBut.getString("ALIGN"))) {
String resKey = navBut.getString("NAME");
String resKeyTitle = navBut.getString("TITLE");
String elemID = ( (navBut.getString("ID") != null && navBut.getString("ID").length() > 0) ? ("id=\"" + navBut.getString("ID") + "\"") : "");
String LIelemID = ( (navBut.getString("ID") != null && navBut.getString("ID").length() > 0) ? ("id=\"LI" + navBut.getString("ID") + "\"") : "");
String elemDIS = ("true".equals(navBut.getString("DISABLED")) ? "class=\"disabled\"" : "");
<a href="<%= navBut.getString("HREF")%>" <%=elemID%> onclick="<%= navBut.getString("ONCLICK")%>" title="<isa:translate key="<%= resKeyTitle %>"/>
<% if (ui.isAccessible) { %><isa:translate key="ecm.acc.button"/><% } %>">
<isa:translate key="<%= resKey %>"/>
</a>
</li>
<% }
%>
<% } %>
</ul>
Code:
<ul class="buttons-1">
<% ResultData navBut = new ResultData( ui.navButtons );
navBut.beforeFirst();
while( ! navBut.isLast()) {
navBut.next();
if ("LEFT".equals(navBut.getString("ALIGN"))) {
String resKey = navBut.getString("NAME");
String resKeyTitle = navBut.getString("TITLE");
String elemID = ( (navBut.getString("ID") != null && navBut.getString("ID").length() > 0) ? ("id=\"" + navBut.getString("ID") + "\"") : "");
String LIelemID = ( (navBut.getString("ID") != null && navBut.getString("ID").length() > 0) ? ("id=\"LI" + navBut.getString("ID") + "\"") : "");
String elemDIS = ("true".equals(navBut.getString("DISABLED")) ? "class=\"disabled\"" : "");
// My change
String clkFnc = "";
String size = (String)request.getAttribute(WorkareaNavAction.RK_MB_ITEMSIZE);
if (LIelemID.equals("LItransferbutton") && size!=null && !(size.equals("-1")&& !(size.equals("0")) )
{
clkFnc = "ztransferToBasket()";
}
else
clkFnc = navBut.getString("ONCLICK");
%>
<li <%=LIelemID%> <%=elemDIS%>>
<%-- Commented by Siva to change onclick proerty
<a href="<%= navBut.getString("HREF")%>" <%=elemID%> onclick="<%= navBut.getString("ONCLICK")%>" title="<isa:translate key="<%= resKeyTitle %>"/> <% if (ui.isAccessible) { %><isa:translate key="ecm.acc.button"/><% } %>"> --%>
<a href="<%= navBut.getString("HREF")%>" <%=elemID%> onclick="<%=clkFnc%>" title="<isa:translate key="<%= resKeyTitle %>"/>
<% if (ui.isAccessible) { %><isa:translate key="ecm.acc.button"/><% } %>">
<isa:translate key="<%= resKey %>"/>
</a>
</li>
<% } //end of change
%>
<% } %>
</ul>
Can you please help me on this?
