You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by MC Moisei <mc...@comcast.net> on 2006/09/03 20:13:18 UTC

Token is wrapped by

When I use <html:form> with tokens the hidden token is wrapped by div.
Is there a reason for that ? It messes up my layout and seems that
Firefox is most affected by the div...
<form name="editForm" method="post" action="edit.do">
<div><input type="hidden" name="org.apache.struts.taglib.html.TOKEN"
value="ad973e398c964ca17174b3a9434b957d"></div>

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


Re: Token is wrapped by

Posted by David Grundberg <c0...@cs.umu.se>.
MC Moisei wrote:

>That implies I cannot have divs without class or id...
>
>David Grundberg wrote:
>  
>
>>Try to specify the stylesheet for this specific tag to "display:none;"
>>It should remedy the problem.
>>    
>>
Well, I suppose you'll have to  use some tricks to make it work.

<div class="hidedivs">
<html:form ..>
<div class="workaround">
<html:text ../>
divs with class or id attributes left unspecified
</div>
</html:form>
</div>

And stylesheets:
div.hidedivs {
    display:none
}
div.workaround div {
    display:block;
}

Haven't tested it.

David

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


Re: Token is wrapped by

Posted by MC Moisei <mc...@comcast.net>.
That implies I cannot have divs without class or id...

David Grundberg wrote:
> Antonio Petrelli wrote:
>
>> MC Moisei ha scritto:
>>
>>> When I use <html:form> with tokens the hidden token is wrapped by div.
>>> Is there a reason for that ? It messes up my layout and seems that
>>> Firefox is most affected by the div...
>>> <form name="editForm" method="post" action="edit.do">
>>> <div><input type="hidden" name="org.apache.struts.taglib.html.TOKEN"
>>> value="ad973e398c964ca17174b3a9434b957d"></div>
>>
>>
>> I think you're right, AFAIK usually the <div> tag adds also a new-line.
>> I think that you should ask this question to Struts Developers list:
>> http://struts.apache.org/mail.html 
>
> Try to specify the stylesheet for this specific tag to "display:none;"
> It should remedy the problem.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


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


Re: Token is wrapped by

Posted by David Grundberg <c0...@cs.umu.se>.
Antonio Petrelli wrote:

> MC Moisei ha scritto:
>
>> When I use <html:form> with tokens the hidden token is wrapped by div.
>> Is there a reason for that ? It messes up my layout and seems that
>> Firefox is most affected by the div...
>> <form name="editForm" method="post" action="edit.do">
>> <div><input type="hidden" name="org.apache.struts.taglib.html.TOKEN"
>> value="ad973e398c964ca17174b3a9434b957d"></div>
>
>
> I think you're right, AFAIK usually the <div> tag adds also a new-line.
> I think that you should ask this question to Struts Developers list:
> http://struts.apache.org/mail.html 

Try to specify the stylesheet for this specific tag to "display:none;" 
It should remedy the problem.

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


Re: Token is wrapped by

Posted by Antonio Petrelli <br...@tariffenet.it>.
MC Moisei ha scritto:
> When I use <html:form> with tokens the hidden token is wrapped by div.
> Is there a reason for that ? It messes up my layout and seems that
> Firefox is most affected by the div...
> <form name="editForm" method="post" action="edit.do">
> <div><input type="hidden" name="org.apache.struts.taglib.html.TOKEN"
> value="ad973e398c964ca17174b3a9434b957d"></div>

I think you're right, AFAIK usually the <div> tag adds also a new-line.
I think that you should ask this question to Struts Developers list:
http://struts.apache.org/mail.html

Ciao
Antonio

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