I would prefer to call whatever struts calls to apply this template instead of changing it. Do you know how struts invokes this template?

Thank you.

Sébastien Domergue escribió:
I finally found where struts call dojo. In struts' jar, check the package template.simple. You'll find datetimepicker.ftl. This is the base used by struts to generate HTML. The syntax is not very hard and you'll easily see where dojo is called. If you want to modify this, you can modify the inner ftl (use with caution) or build a new external template. The problem when you create a template from "simple" is that when you use all of the others, you call simple.

Regards

Sébastien

Pablo Vázquez Blázquez a écrit :
Yes, that is my problem. Do you know how to do to get it? I don´t see where struts call dojo via javascript to parse the form...

Thank you very much.

Sébastien Domergue escribió:
Sorry for the misunderstanding.
The difference that you see between the form while loading and the form loaded comes from dojo widget only. Struts rewrites the tag <s:datetimepicker> with a call to dojo (in javascript) which is executed on the client side. You could find the process construction in dojo's source (widget>DatePicker.js).

Regards,
Sébastien

Pablo Vázquez Blázquez a écrit :
Thank you Sébastien, but this is not actually my issue, but when does dojo do create the hidden inputs for each s:datetimepicker tag. (why if I have the form when loads and once it is loaded, they are different.)

Sébastien Domergue escribió:
Hello,

We are using Struts 2 + Dojo too and it seems that datetimepicker separate informations into a list with two elements. The first one is the date and the second one is the time. Nevertheless, we still have problems to repopulate our inputs after an action. So we "rebuild" Strings to render informations.

Regards,
Sébastien

Pablo Vázquez Blázquez a écrit :
Hello,

I am using Struts 2.0.9 + dojo 0.4.

I would like to know when dojo adds two hidden inputs for each <s:datetimepicker> tag.

I have a topic that is published when I load a form and when I recieve the data and parse the form (type == "load"), it has "N" elements. When the form is rendered, if I see it in the DOM, it has N+2*m elements (where "m" is the number of s:datetimepicker tags the form has). So, why when I get the form from the data response in the subscribed topic those input tags are not present? When are they created?

Thanks,

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



------------------------------------------------------------------------

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to