aspose file tools*
The moose likes Struts and the fly likes How to display 24 hour time picker in struts2 tag without using struts2 jquery Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to display 24 hour time picker in struts2 tag without using struts2 jquery" Watch "How to display 24 hour time picker in struts2 tag without using struts2 jquery" New topic
Author

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

sudarshan jadhav
Ranch Hand

Joined: May 28, 2012
Posts: 42
How to display 24 hour timepicker in struts2 without using struts2 jquery?
please help immediately
Thank you in advance!!!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
sudarshan jadhav
Ranch Hand

Joined: May 28, 2012
Posts: 42
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

Joined: Oct 29, 2001
Posts: 8866
    
    8

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to display 24 hour time picker in struts2 tag without using struts2 jquery