struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cellterry <cellte...@gmail.com>
Subject Re: sx:datetimepicker
Date Tue, 12 Oct 2010 18:46:50 GMT

This does not help, but thanks!

I checked the html code in my code that the 

<sj:datepicker id="date0" label="Select a Date" />

interprets as 

<tr>
    <td class="tdLabel"><label for="date0" class="label">Select a
Date:</label></td>

    <td
><input type="text" name="" id="date0"/></td>
</tr>
<script type='text/javascript'>
jQuery(document).ready(function () {
	var options_date0 = {};
	options_date0.showon = "both";
	options_date0.buttonimage = "/gs/struts/js/calendar.gif";
	options_date0.jqueryaction = "datepicker";
	options_date0.id = "date0";

jQuery.struts2_jquery.bind(jQuery('#date0'),options_date0);

 });
</script>

in my JSP.

However, in http://www.weinfreund.de/struts2-jquery-showcase/index.action

it is interpreted as 

<tr>
    <td class="tdLabel"><label for="date0" class="label">Select a
Date:</label></td>
    <td><input class="hasDatepicker" name="" id="date0" type="text"><button
class="ui-datepicker-trigger" type="button">
/struts2-jquery-showcase/struts/js/calendar.gif </button></td>
</tr>

So strange!

Terry.


Li Ying-2 wrote:
> 
> Try delete the attribute [readonly="true"].
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/sx%3Adatetimepicker-tp29927463p29946153.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message