I am getting beyond my area of comfort, but a CSS line like:

        form#productSearchForm td {border:0px solid #fff}

or
        form#productSearchForm table.table td {....}

-D
On May 1, 2008, at 9:04 PM, George Wei wrote:


Thanks for your recommendations, these articles are really interesting. But
writing a theme is a little bit difficult to me now, so I use <table>
instead of <div> to implement my requirement. The modified code is as
follows:

<%@ include file="/common/taglibs.jsp"%>

<head>
        <title><fmt:message key="productList.title"/></title>
        <meta name="menu" content="ProductSearchMenu"/>
</head>

<s:action id="priceRangeAction" name="priceRanges"/>

<s:form id="productSearchForm" action="productSearch" method="post"
validate="true">
 <table class="table">
          <tr>
                <td colspan="10">
                <s:textfield key="product.name" name="name" required="false"
maxlength="50" size="90"/>
            </td>
          </tr>

          <tr>
                <td colspan="2">
<s:textfield key="product.category" name="category" required="false"
maxlength="50" size="20"/>
     </td>
                <td colspan="2">
                <s:textfield key="product.manufacturer" name="manufacturer"
required="false" maxlength="50" size="20"/>
     </td>
     <td colspan="2">
                <s:textfield key="product.model" name="model" required="false"
maxlength="30" size="10"/>
     </td>
     <td colspan="2">
                <s:select key="priceRange.name" name="priceRangeId"
list="#priceRangeAction.priceRanges" listKey="id" listValue="name"
/>
     </td>
     <td colspan="2">
      <s:submit cssClass="button" method="list" key="button.search"
theme="simple"/>
            </td>
          </tr>
 </table>
</s:form>

and the modified effect is as follows:

http://www.nabble.com/file/p16996680/1.jpg 1.jpg

There's still a problem remaining: How can I remove the table's inner grid
lines but keep its blue border? Thanks.

George


dusty wrote:

Here are links to two relevant tutorials.  The first is how to create
a UI Component, which is what I think you need.  The second is more
advanced on how to create your own theme....

http://www.vitarara.org/cms/struts_2_cookbook/creating_a_ui_component

http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme

-D


--
View this message in context: 
http://www.nabble.com/How-to-align-multi-Struts-2-tags-on-the-same-line--tp16958661s2369p16996680.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
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]

Reply via email to