1 2 Previous Next 22 Replies Latest reply on Jan 22, 2009 8:52 AM by Ilya Shaikovsky

    ddm seems to pop in an extra line on every drop down

    Tony Herstell Master

      ddm seems to pop in an extra line on every drop down

      Can send pic if you email me.. would be live if I could figure this little sucker out...

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns:c="http://java.sun.com/jstl/core" xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
       xmlns:s="http://jboss.com/products/seam/taglib" xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
      
       <a4j:form>
       <center>
       <table>
       <tr>
       <td class="menu_item">
       <rich:dropDownMenu styleClass="menu_item_text" selectedLabelClass="menu_selected_item_text"
       itemClass="menu_inner_item" value="#{messages.menu_about}">
       <rich:menuItem submitMode="ajax" value="#{messages.menu_button_facilities}"
       action="#{facilitiesController.enter}" />
       <rich:menuItem submitMode="ajax" value="#{messages.menu_button_location}"
       action="#{locationController.enter}" />
       </rich:dropDownMenu>
       </td>
      
       <s:fragment rendered="#{identity.loggedIn and s:hasRole('ADMINISTRATOR')}">
       <td/>
       <td class="menu_item">
       <rich:dropDownMenu styleClass="menu_item_text" selectedLabelClass="menu_selected_item_text"
       itemClass="menu_inner_item" value="#{messages.menu_booking}">
       <rich:menuItem submitMode="ajax" value="#{messages.menu_button_booking}"
       action="#{bookingController.enter}" />
       </rich:dropDownMenu>
       </td>
       </s:fragment>
      
       <td/>
      
       <td class="menu_item">
       <rich:dropDownMenu styleClass="menu_item_text" selectedLabelClass="menu_selected_item_text"
       itemClass="menu_inner_item" value="#{messages.menu_trainers}">
       <rich:menuItem submitMode="ajax" value="#{messages.menu_button_brugs_nicholls}"
       action="#{trainerController.enter('brugs_nicholls')}" />
       <rich:menuItem submitMode="ajax" value="#{messages.menu_button_carmen_englert}"
       action="#{trainerController.enter('carmen_englert')}" />
       <rich:menuItem submitMode="ajax" value="#{messages.menu_button_greg_jamieson}"
       action="#{trainerController.enter('greg_jamieson')}" />
       </rich:dropDownMenu>
       </td>
      
       <td/>
      
       <td class="menu_item">
       <rich:dropDownMenu styleClass="menu_item_text" selectedLabelClass="menu_selected_item_text"
       itemClass="menu_inner_item" value="#{messages.menu_sponsorship}">
       <rich:menuItem submitMode="ajax" value="#{messages.menu_button_sponsors}"
       action="#{sponsorshipController.enter}" />
       </rich:dropDownMenu>
       </td>
      
       <s:fragment rendered="#{identity.loggedIn}">
       <td/>
       <td class="menu_item">
       <rich:dropDownMenu styleClass="menu_item_text" selectedLabelClass="menu_selected_item_text"
       itemClass="menu_inner_item" value="#{messages.menu_personal}">
       <rich:menuItem submitMode="ajax" value="#{messages.menu_button_my_account}"
       action="#{myAccountController.enter}" />
       </rich:dropDownMenu>
       </td>
       </s:fragment>
      
       <s:fragment rendered="#{identity.loggedIn and s:hasRole('ADMINISTRATOR')}">
       <td/>
       <td class="menu_item">
       <rich:dropDownMenu styleClass="menu_item_text" selectedLabelClass="menu_selected_item_text"
       itemClass="menu_inner_item" value="#{messages.menu_administration}">
       <rich:menuItem submitMode="ajax" value="#{messages.menu_button_mailing_list_message}"
       action="#{mailingListController.enter}" />
       <rich:menuItem submitMode="ajax" value="#{messages.menu_button_user_list_message}"
       action="#{userListController.enter}" />
       </rich:dropDownMenu>
       </td>
       </s:fragment>
      
       </tr>
       </table>
       </center>
       </a4j:form>
      
      </ui:composition>
      
      



      /* MENU */
      .template_menu_area {
       position: relative;
       top: 27px;
       margin-top: -34px;
       z-index: 2;
      }
      
      .menu_item {
       color: white;
       text-align: left;
       padding-left: 2px;
       padding-right: 2px;
       padding-bottom: 4px;
       background-color: rgb(81, 81, 81);
       border-bottom-color: white;
       border-bottom-style: solid;
       border-bottom-width: thin;
       border-left-color: white;
       border-left-style: solid;
       border-left-width: thin;
       border-right-color: white;
       border-right-style: solid;
       border-right-width: thin;
      }
      
      .menu_item_text {
       color: white;
       font-weight: bold;
       background-color: rgb(81, 81, 81);
       font-size: 10pt;
      }
      
      .menu_selected_item_text {
       border: none;
      }
      
      .menu_inner_item {
       color: white;
       font-weight: bold;
       background-color: rgb(81, 81, 81);
       font-size: 10pt;
      }
      
      .dr-menu-item-hover {
       color: black;
       background-color: white;
       font-weight: bold;
       border: none;
       font-size: 10pt;
      }
      


        1 2 Previous Next