JSP scriptlet expression not evaluated in AUI tag attribute -
this simple, i'm unable simple variable display task.
i getting 1 dynamic value i'm assigning 1 variable. if try print variable value printing shown below,
<%=columnname%>
but when try assign same value in tag attribute, value not updated tag name. code shared below.
<aui:input name="preferences--<%=columnname%>--" type="checkbox"/>
issue:assume variable value 'screenname'. if print value <%=columnname%> printing value "screenname" on ui. bhen use same variable in name attribute showing value <%=columnname%> instead "screenname".
note: preferable format name attribute prefix "preferences--" , suffix "--".
please correct syntax , suggest me print variable value in tag attribute
it seems cannot use mixed strings having string , scriptlet inside aui tags. http://www.liferay.com/community/forums/-/message_boards/message/16694386
can try below
<% string tempcolumnname="preferences--"+ columnname+"--" ; %> <aui:input name="<%=tempcolumnname%>" type="checkbox"/>
also, try avoiding use of scriptlets :)
Comments
Post a Comment