开发者

Struts2 Form in parts

开发者 https://www.devze.com 2023-03-01 01:55 出处:网络
I was wondering if I can do this in s开发者_运维问答truts 2: <h4>Select Category</44>

I was wondering if I can do this in s开发者_运维问答truts 2:

<h4>Select Category</44>
<s:form id="Step01Page" action="Step01Page">
    <s:select name="nombreCategoria" list="categorias" 
        listKey="nombre" listValue="nombre" label="Categorias"
        headerKey="Crear" headerValue="Crear Nueva"/>
</s:form>
<h4>Name of Category</h4>
<s:form id="Step01Page" action="Step01Page">
    <s:textfield label="Nombre de la Categoria"/>
</s:form>

<sx:submit formId="Step01Page" value="Siguiente" cssStyle="float:right;"/>

I'm doing the DOJO plugin ofr Struts 2.


I don't think that breaking up the form in that way would work. Since Struts by default formats the form in a table, you can insert lines into the table in the middle of your form like so:

<s:form id="Step01Page" action="Step01Page">
    <s:select name="nombreCategoria" list="categorias" 
        listKey="nombre" listValue="nombre" label="Categorias"
        headerKey="Crear" headerValue="Crear Nueva"/>
</s:form>

<tr><td colspan="2"><h4>Name of Category</h4></td></tr>

<s:form id="Step01Page" action="Step01Page">
    <s:textfield label="Nombre de la Categoria"/>
</s:form>
0

精彩评论

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