%--
* Licensed Materials - Property of IBM
*
* 5724-U18
*
* (C) COPYRIGHT IBM CORP. 2006, 2014 All Rights Reserved.
*
* US Government Users Restricted Rights - Use, duplication or
* disclosure restricted by GSA ADP Schedule Contract with
* IBM Corp.
--%><%@ include file="../common/componentheader.jsp" %><%
boolean defaultButton=component.getProperty("default").equalsIgnoreCase("true");
boolean globalDefaultButton = MXFormat.stringToBoolean(WebClientRuntime.getWebClientProperty("webclient.defaultbutton","true"));
cssclass = textcss+" pb";
String width = "";
if(!(component.getProperty("width").equals("")) )
width = "width:"+component.getWebClientSession().attachUOM(component.getProperty("width"));
if(defaultButton && globalDefaultButton)
cssclass +=" default";
String text = component.getProperty("label");
String btn_img = component.getProperty("image");
String inner_img = component.getProperty("innerimage");
boolean hasmenu = false;
boolean disabled = component.getProperty("disabled").equalsIgnoreCase("true");
String menuType = component.getProperty("menutype");
String mxEventJSHandler = component.getProperty("mxeventjshandler");
String dojoTypeInput = "";
if(component.needsRender()) {
String mxeJSEventHandlerPost = component.getProperty("mxeventjshandlerpost");
if(mxeJSEventHandlerPost.length()>0) {
app.addMXJSPostEvent(component.getId(), mxeJSEventHandlerPost);
}
}
if(!"".equals(mxEventJSHandler))
{
if("dateLookupHdlr".equals(mxEventJSHandler))
{
String value="";
dataType=MXFormat.DATETIME;
%><%@ include file="../common/dateoptions.jsp" %><%
}
mxEventJSHandler=" mxejse='"+mxEventJSHandler+"' ";
}
hasmenu = !menuType.equals("NONE");
String dub = "";
if(designmode)
{
if (text.equals(""))
text = control.getType();
}
else if(!disabled)
{
if(component.getProperty("doclinkuploadbutton").equals("true") )
{
dub="dub=\"1\"";
currentPage.put("doclinkuploadclicktargetid", id);
}
else
{
if(hasmenu)
{
component.setProperty("mxevent","showmenu");
component.setProperty("eventvalue",menuType);
}
}
}
if(text != null)
{
String elementType = "button";
String src = "";
String alt = "";
String type = "type=\"button\"";
if (btn_img != "")
{
elementType = "img";
src = "src=\"" + IMAGE_PATH + btn_img + "\"";
alt = "title=\"" + text + "\"";
text = "";
type = "";
}
boolean addTR = control.getBoolean("inlinebutton") != true && (control.getParentInstance().getType().equals("section") || control.getParentInstance().getType().equals("sectioncol")) ;
if(inner_img.length()>0) {
inner_img = "";
}%><%if(addTR){%>