got5/tapestry5-jquery — Issue #147: Icons configuration issue for jquery/button
Author: Emerald-AnAg
Created: 2012-02-27 13:31:21+00:00
State: open

Hello,

Is it possible to add "ICONS" to the "BUTTON"? (My APP config is T5 V5.3.2 / T5-JQuery V3.1.0-SNAPSHOT)
Note:- Tested both the code with JQuerySymbolConstants.SUPPRESS_PROTOTYPE "true" and "false".

'icons" are not working but other options like "disabled" and "label" are working fine (using JSONObject) for BUTTON.

TML:
input
t:type="submit"
type="submit"
t:mode="normal"
t:id="submitButton"
id="submitButton"
t:value="Login"
t:mixins="jquery/button"
t:params="submitButtonParam"

JAVA:
public JSONObject getSubmitButtonParam()
{
JSONObject iconsParam = new JSONObject();
iconsParam.put("primary", "ui-icon-gear");
iconsParam.put("secondary", "ui-icon-triangle-1-s");

JSONObject param = new JSONObject();
param.put("label", "My Test Button");
param.put("icons", iconsParam);
return param;
}

Am I missing something?

Thanks