开发者

struts2 UI components problem

Why is it that the s:textfield is placed on bottom when I insert it in between other HTML elements inside a form? How can I fix this?

<label><span class="required">*</span>First name</label>
                <input type="text" id="firstName" name="firstName" value=""><br>

                <div>
                <s:select id="selectDrop" list="list" name="list"/>
                </div>

                <label><span class="required">*</span>Last name</label>
                <input type="t开发者_StackOverflowext" id="lastName" name="lastName"><br>

Result on browser:

First Name

Last Name

"The drop down element"


Ok I actually was able to solve by adding the them="simple" in the s:form element.

<s:form id="registrationForm" action="/registration/.action" method="post" theme="simple">

I guess if I don't add them property Struts2 UI components add their own stylesheet and therefore get weir behavior.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜