Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display 24 hour time picker in struts2 tag without using struts2 jquery

 
sudarshan jadhav
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to display 24 hour timepicker in struts2 without using struts2 jquery?
please help immediately
Thank you in advance!!!
 
Joe Ess
Bartender
Posts: 9302
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sudarshan jadhav wrote:
please help immediately


Welcome to the JavaRanch. We ask that you be patient because we're all volunteers here.
Are you talking about the datetimepicker tag? That's a Dojo tag, not JQuery. In any case, there's nothing stopping you from using some other third party tag or creating your own. You just have to make sure the name of the fields it creates conform to Struts 2 naming conventions so Struts knows how to match the field with your Java classes when the data is submitted.
 
sudarshan jadhav
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe Ess wrote:
sudarshan jadhav wrote:
please help immediately


Welcome to the JavaRanch. We ask that you be patient because we're all volunteers here.
Are you talking about the datetimepicker tag? That's a Dojo tag, not JQuery. In any case, there's nothing stopping you from using some other third party tag or creating your own. You just have to make sure the name of the fields it creates conform to Struts 2 naming conventions so Struts knows how to match the field with your Java classes when the data is submitted.




Thank you "Joe" for reply but my struts2 tag problem is how to display timepicker to 24 hours actually it is display in AM/PM format but i want to display in 24 hours format please help me or suggest any other solution on these problem.
My struts 2 datetimepicker tag is as follow:-
<tr><s:datetimepicker label="Polling Time" name="ptime" displayFormat="HH:mm" type="time" /> </tr> this is AM/PM format i want to display in 24 hours.
please help me
Thank you in advance
 
Joe Ess
Bartender
Posts: 9302
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you read the documentation I linked to? It looks like you don't have the tag set up correctly:


To use this tag:
Add: <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> to your page.
The head tag must be included on the page, which can be configured for performance or debugging purposes.
If the parseContent parameter for the head tag is false (it is false by default), then the id tag is required.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic