Gday all - I have a question.
My basic question (which may or may not have a basic answer) is:
How do I make a link (to perform an action), in a specific display tag column, come up with a confirmation prompt before proceeding with the action? Before implementing displaytag, I used javascript, and manually made rows and columns via <td><tr>etc.... Specifically my line was:
hey dude..
I am not able to use the javascript function ie onclick attribute.
I am getting error that.. Attribute onclick invalid for tag column according to TLD..
Mine is display tag 1.1 .am i suppose to change the tld too ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Gday all - I have a question.
My basic question (which may or may not have a basic answer) is:
How do I make a link (to perform an action), in a specific display tag column, come up with a confirmation prompt before proceeding with the action? Before implementing displaytag, I used javascript, and manually made rows and columns via <td><tr>etc.... Specifically my line was:
<a href="area.do?action2=delete&areaNumber=<c:out value='${ml.areaNumber}'/>" onclick="javascript:return(confirm('<fmt:message key='areaList.delete.msg'/>'));"><fmt:message key="areaList.delete" /></a>
I heard that I need to modify the tlds... is that the way to go?
Apologies for my 'newbie' terminology - I have just started using displaytags, and by the way, its absolutely fantastic.
Any assistence in this matter will be very much appreciated.
Fixed!
Don't worry people I've found a solution to my problem. it involves using my tableid "ID"
<display:column><a href="area.do?action2=delete&areaNumber=<c:out value='${ID.areaNumber}'/>" onclick="javascript:return(confirm('<fmt:message key='areaList.delete.msg'/>'));"><fmt:message key="areaList.delete" /></a></display:column>
hey dude..
I am not able to use the javascript function ie onclick attribute.
I am getting error that.. Attribute onclick invalid for tag column according to TLD..
Mine is display tag 1.1 .am i suppose to change the tld too ?
Did your export function work well?
Thanks,
Claudia