Thanks for the suggestion. What I did was made a simple_ajax theme where I
excluded the additional HTML wrapping. I'll just continue to edit this theme
to meet my needs as I go along. 

If anyone had other approaches I'm curious to see what they've done. 

Thanks again for the help Jason!


jjoz wrote:
> 
> Hi Grish,
> 
> We faced the similar problem... we wanted to use ajax tabbedPanels, which
> needed ajax-themed struts2 submit buttons. The submit buttons were
> producing
> additional html wrapping for the 2 columns.
> 
> We just extracted the submit.ftl template code into a web\template\ajax
> directory and removed the additional html wrapping from the top and
> bottom.
> 
> I think this was the only tag that was causing us problems, as it was the
> only one that needed to be ajax-themed for our tabbedPanels to work... All
> other fields in the tabs are default (non-ajax) theme. 
> 
> I presume you could do this to each of the tags you want to use, or as you
> suggested, you could try create a whole new theme if time permits.
> 
> Regards
> Jason
> 
> 
> -----
> Falun Dafa  Truth - Compassion - Forbearance
> 
> A mind & body practice under persecution in China
> 
> http://www.faluninfo.net
> 
> 
> 
> -----Original Message-----
> From: Grish [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, 11 September 2007 2:38 PM
> To: user@struts.apache.org
> Subject: [S2] using the AJAX theme
> 
> 
> I've been trying out ajax with s2 and I like how the ajax theme and the s2
> tags allow me to do more with less code. 
> 
> Usually the 2 column table layout works for most of my needs but there are
> some forms that I rather not have the additional code (like a form with
> one
> field and I want the submit button beside that field) so I either use the
> simple theme or just produce the html code. 
> 
> But some of my submit buttons use the ajax theme and produce some html
> code
> since, based on what i read, is based on the xhtml theme. Is there a
> simple
> ajax theme? where it produces the neccessary ajax code but not the html
> tags?
> 
> I take it I either have to make the html tags for my ajax buttons or just
> use css to force my style. I'm just curious what others have done. I was
> hoping to get the best of both worlds with using the tags for less code
> and
> have an elegant way of arranging things.
> 
> Thanks & regards!
> --
> View this message in context:
> http://www.nabble.com/-S2--using-the-AJAX-theme-tf4420235.html#a12607918
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--using-the-AJAX-theme-tf4420235.html#a12627809
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to