WikiMatrix
  • Forum
  •  » JSPWiki
  •  » How to set text of a button in the Edit page of JSPWiki using fmt tag.

#1 2009-01-08 07:01:41

kanchan
Member
Registered: 2009-01-08
Posts: 1

How to set text of a button in the Edit page of JSPWiki using fmt tag.

Hello,

I want to add a button "Reset" like the "Save" and "Cancel" button on the edit page of JSPWiki.
A button (for reset) has been added but I am not able to set the text of the button as I want. JSPWiki uses fmt tag and the messages are stored in the properties file for which the location is given as

<fmt:setBundle basename="templates.default"/>

and the text of the button for eg. Save is given by

title="<fmt:message key='editor.plain.save.submit'/>"

I tried to do similar thing for reset as

title="<fmt:message key='editor.plain.reset.submit'/>"

but it did not work.sad
It shows the button text as "???editor.plain.reset.submit???" instead of "Reset"

I had added the message for Reset in the properties file in the "etc" folder available in the JSPWiki source.
One more thing that I noticed is that the buttons available earlier (Save, cancel, etc)showed correct text even if the "etc" folder was removed from the project.
I am stuck so as to where should I now add the message to set the buttons text in the editors page. If somebody has faced such a problem earlier or can help on such a topic, please do reply.

Looking forward for an early reply...

Thanks smile

Last edited by kanchan (2009-01-13 05:26:31)

Offline

 
  • Forum
  •  » JSPWiki
  •  » How to set text of a button in the Edit page of JSPWiki using fmt tag.

You are not logged in.


Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB