1)first instinct says to change the 'theme' as soap themes typically
interact with <div> tag
OR
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/JspContext.html
2)override the setContext with a new context (JspContext) where
the JspContext you are creating has the selected attributes
<present|notpresent>
apparent order of operations
create JspContext
creating writer of JspContext
pushBody
popBody
setContext
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/jsp/tagext/SimpleTagSupport.html#setJspBody(javax.servlet.jsp.tagext.JspFragment)
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "Jason Wyatt" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <user@struts.apache.org>
Sent: Thursday, May 17, 2007 8:32 PM
Subject: [S2] Is there a way to turn of formatting of controls with ajax
theme?
I want to use ajax submit buttons to refresh tabs, but when ajax theme is
set, the buttons are wrapped in additional <tr> and <td> tags. This is
doing
interesting and unhelpful things to our page layout.
This submit tag:
<s:submit name="save" value="Save" formId="stcSearchForm"
targets="stcSightingsTab,stcSearchForm"
action="NcrStcSightingSearchAction"
showLoadingText="false" indicator="true" theme="ajax"
cssClass="buttonClass"
tabindex="10" type="input" />
generates the following HTML:
<tr>
<td colspan="2"><div align="right"> <input type="submit"
dojoType="struts:Bind" event="onclick" value="Save"
id="stcSearchForm_save" formId="stcSearchForm"
tabindex="10" class="buttonClass"
name="action:NcrStcSightingSearchAction"
targets="stcSightingsTab,stcSearchForm" indicator="true"
showLoading="false" />
</div></td>
</tr>
I'm hoping to remove the <tr>, <td> and <div> tags.
Thanks for any help, kind regards
Jason
-----
Falun Dafa Truth - Compassion - Forbearance
A mind & body practice under persecution in China
http://www.faluninfo.net
---------------------------------------------------------------------
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]