Since the ajax theme was removed in struts 2.1, I'm trying to use the dojo plugin with the xhtml theme. The problem is that the xhtml theme doesn't recognize the dojo tags as elements to be put in the table layout.
This places the datetimepicker in a div instead of a <tr><td> in the table. Isn't there any way to combine regular struts tags and dojo tags within the same theme? With the ajax theme in struts 2.0.x, this was done automatically since the ajax theme extended the xhtml theme... In order to achieve the same layout now, I would have to modify the above code and add some unwanted html tags, like this:
Hi Björn ,
there is no <tr><td> tags in the datetimepicker.ftl (Struts2 dojo), I guess they have placed the widget in a DIV with the
idea that everybody can put/use it wherever without making an assumption that an html table is being used.
Similarly to the css_xhtml theme where each tag goes into a DIV.
You can extend a Struts theme to define your specific behavior (html code within the tags for instance).