I’m working with Struts 2 + JqueryUI Struts2 Plugin and I want to put some items next to each other horizontally.
In struts2 form item all the elements are vertical …
This is my code:
<s:form action="test" theme="simple">
<sj:a id="ajaxlink" onclick="disminuyeBloque()" button="true" buttonIcon="ui-icon-minus" cssStyle="height:20px"/>
<sj:textfield id="tamannobloque" name="tamannobloque" readonly="true" size="2" />
<sj:a id="ajaxlinkminus" onclick="aumentaBloque()" button="true" buttonIcon="ui-icon-plus" cssStyle="height:20px"/>
<sj:slider id="echo4" name="slider" label="Echo" value="{3, 7}" min="1" max="10" onCompleteTopics="sliderRangeStop" cssStyle="margin: 10px; width:20%"/>
</s:form>
I want the slider appears next the last button (a plus button)
You can try to set the form element’s
parentThemetocss_xhtmland wrap elements on the same line withdivand apply your style afterwards.something like