Public paste
Undefined
By: _eMaX_ | Date: Dec 22 2009 17:38 | Format: None | Expires: never | Size: 2.52 KB | Hits: 880

  1. <!-- Preferences -->
  2.       <rich:modalPanel headerClass="prefsheader" id="prefs_panel" width="717" height="265" resizeable="false">
  3.         <f:facet name="header">
  4.           <h:panelGroup>
  5.             <h:outputText value="#{msg.label_preferences}"></h:outputText>
  6.           </h:panelGroup>
  7.         </f:facet>
  8.         <f:facet name="controls">
  9.           <h:panelGroup>
  10.             <h:graphicImage value="../images/close.png" id="prefs_hide"/>
  11.             <rich:componentControl for="prefs_panel" attachTo="prefs_hide" operation="hide" event="onclick"/>
  12.           </h:panelGroup>
  13.         </f:facet>
  14.        
  15.         <a4j:form ajaxSubmit="true">
  16.           <table border="0" cellspacing="0" cellpadding="0"><tr><td>&nbsp;</td></tr><tr><td align="center">
  17.           <table border="0" cellspacing="0" cellpadding="5" class="prefsbody">
  18.             <tr><td colspan="2">&nbsp;</td></tr>
  19.             <tr>
  20.               <td align="right" class="label"><h:outputText value="#{msg.label_newpassword}: "/></td>
  21.               <td>
  22.                 <h:inputSecret id="password" value="#{Preferences.password}" styleClass="inputbox"/>
  23.               </td>
  24.             </tr>
  25.             <tr>
  26.               <td align="right" class="label"><h:outputText value="#{msg.label_confirmpassword}: "/></td>
  27.               <td>
  28.                 <h:inputSecret id="confirmPassword" value="#{Preferences.confirmPassword}" styleClass="inputbox"/>
  29.               </td>
  30.             </tr>
  31.             <tr><td colspan="2">&nbsp;</td></tr>
  32.           </table>
  33.           <h:panelGrid styleClass="prefsfooter" columns="1" >
  34.             <a4j:commandButton value="#{msg.label_save}"
  35.                                action="#{Preferences.save}"
  36.                                reRender="prefs_err"
  37.                                styleClass="logon_button logon_button_no_hover"
  38.                                onmouseover="this.className='logon_button logon_button_hover';"
  39.                                onmouseout="this.className='logon_button logon_button_no_hover';"
  40.                                oncomplete="if (#{empty Preferences.message}) #{rich:component('prefs_panel')}.hide();" />
  41.             <h:outputText id="prefs_err" value="#{Preferences.message}" />
  42.             <h:outputText id="wait" value="Please wait..." style="display: none;" />
  43.           </h:panelGrid>
  44.           </td></tr></table>
  45.         </a4j:form>
  46.       </rich:modalPanel>
  47.       <a4j:status onstart="#{rich:component('wait')}.show()" onstop="#{rich:component('wait')}.hide()" />
  48.       <!-- /Preferences -->
Latest pastes
53 minutes ago
10 hours ago
1 days ago
2 days ago
2 days ago