1 2 Previous Next 21 Replies Latest reply on May 13, 2009 2:28 AM by varungo_2009 Go to original post
      • 15. Re: Myfaces+ Facelets+Jboss Seam+ Richfaces (JBOSS 4.0.5)
        varungo_2009

        Sorry, did not get the meaning without spaces. Which template you want.

        • 16. Re: Myfaces+ Facelets+Jboss Seam+ Richfaces (JBOSS 4.0.5)
          ilya_shaikovsky
          • 17. Re: Myfaces+ Facelets+Jboss Seam+ Richfaces (JBOSS 4.0.5)
            varungo_2009

            here is template.xhtml

            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml"
             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:t="http://myfaces.apache.org/tomahawk">
            
            <head>
             <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
             <ui:insert name="metadata"/>
             <title>Nokia Siemens Networks C-NTDB</title>
             <link rel="shortcut icon" href="img/favicon.ico" />
             <link href="css/cntdbdbm.css" rel="stylesheet" type="text/css" />
             <script type="text/javascript" src="js/util.js" />
            </head>
            
            <body OnLoad="timeOutClock('session-timeout', '#{dbm_messages['txt_sessiontimedout']}', '../login.jsf')">
            
            <div id="document">
             <f:loadBundle basename="com.cntdb.dbm.messages" var="dbm_messages"/>
             <div id="topFrameleft"> </div>
            
             <div id="topFrameright">
             <div class="childleft">
             #{dbm_messages['txt_loggedin']} #{identity.username}
             </div>
            
             <div class="childleft">
             <h:outputText value="#{dbm_messages['txt_sessiontimeout']} "/>
             <h:outputText id="session-timeout" value="#{sessionInfo.timeoutTime}"/>
             </div>
            
             <div class="childright">
             <h:form id="cmd_link_form">
             <h:commandLink action="#{authenticator.logout}">
             <h:graphicImage value="img/exit.gif" style="border-style:none;"/>
             <h:outputText value=" Exit" />
             </h:commandLink>
             | <h:commandLink>
             <a href="WebHelp/dbmanagement.htm" target="_blank">
             <h:graphicImage value="img/help_on_window.gif" style="border-style:none;"/> Help</a>
             </h:commandLink>
             </h:form>
             </div>
             </div>
            
             <div id="headerFrameleft">
             <div class="child">
             <p><h:outputText value="#{dbm_messages['appl_name']}" /></p>
             </div>
             </div>
            
             <div id="headerFrameright">
             <div>
             <p style="text-align:right; color:#fff; padding-top:10px;padding-right:20px;font-size:9px; font-style: italic;">
             #{versionInfo.versionString!=null?'DBM Version':''} #{versionInfo.versionString}
             </p>
             </div>
             </div>
            
             <div id="leftFrame">
             <div class="navigationOuter">
             <div class="navigationInner">
             <h:form id="nav_item_form">
             <t:panelNavigation id="nav1" itemClass="mainMenu" activeItemClass="activeMenueItem" openItemClass="openMenu" >
            
             <t:commandNavigation id="navi_ldapusrman" value="#{dbm_messages['navi_ldapusrman']}" action="dbmLdapUserMan" >
             <t:commandNavigation id="navi_ldapusrs" value="#{dbm_messages['navi_ldapusrs']}"
             action="dbmLdapUserMain" />
             <t:commandNavigation id="navi_ldapgrps" value="#{dbm_messages['navi_ldapgrps']}"
             action="dbmLdapGrp" />
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_ldapclientman" value="#{dbm_messages['navi_ldapclientman']}" action="dbmAddLdapClientMan" >
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_subdist" value="#{dbm_messages['navi_subdist']}" action="dbmSubDist" >
             <t:commandNavigation id="navi_relocConf" value="#{dbm_messages['navi_relocConf']}"
             action="dbmMgrConf" />
             <t:commandNavigation id="navi_relocation" value="#{dbm_messages['navi_relocation']}"
             action="dbmSubDistRel" />
             <t:commandNavigation id="navi_relstatus" value="#{dbm_messages['navi_relstatus']}"
             action="dbmSubDistRelStatus" />
             <t:commandNavigation id="navi_migration" value="#{dbm_messages['navi_migration']}"
             action="#{dbmMigrationBB.updateAvailableDsas}" />
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_schemaman" value="#{dbm_messages['navi_schemaman']}" action="dbmSchemaMan2" >
             <t:commandNavigation id="navi_schemadb" value="#{dbm_messages['navi_schemadb']}"
             action="#{dbmSchemaMain2.startConversation}"/>
             <t:commandNavigation id="navi_schemadsadb" value="#{dbm_messages['navi_schemadsadb']}"
             action="#{dbmDsaMain2.startConversation}"/>
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_dataman" value="#{dbm_messages['navi_dataman']}" action="dbmDataMan" >
             <t:commandNavigation id="navi_datasetimport" value="#{dbm_messages['navi_datasetimport']}"
             action="#{dbmDataManMain.startConversation}" />
             <t:commandNavigation id="navi_datatmpexport" value="#{dbm_messages['navi_datatmpexport']}"
             action="#{dbmDataManExportBB.startConversation}" />
             <!-- t:commandNavigation id="navi_subscriblists" value="#{dbm_messages['navi_subscriblists']}"
             action="#{dbmDataManListBB.startConversation}" / -->
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_ldap_app" value="#{dbm_messages['navi_ldap_app']}" action="dbmLdapEntry" >
             <t:commandNavigation id="navi_ldap_main" value="#{dbm_messages['navi_ldap_main']}"
             action="#{dbmLdapAppsMain.initPage}" />
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_appl_mgmt" value="#{dbm_messages['navi_appl_mgmt']}" action="dbmApplicationManagement" >
             <t:commandNavigation id="navi_hlrreset" value="#{dbm_messages['navi_hlrreset']}"
             action="#{dbmHlrResetBB.updateAvailableDsas}" rendered="#{dbmApplicationInfo.hlrDatabase}" />
             <t:commandNavigation id="navi_hlrresetenh" value="#{dbm_messages['navi_hlrresetenh']}"
             action="#{dbmHlrResetBB.startConversationEnhanced}" rendered="#{dbmApplicationInfo.hlrDatabase}" />
            <!--
             <t:commandNavigation id="navi_hlrtimestamps" value="#{dbm_messages['navi_hlrtimestamps']}"
             action="#{dbmHlrTimestampMain.initPage}" rendered="#{dbmApplicationInfo.hlrDatabase}"/>
            -->
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_dsaadm2" value="#{dbm_messages['navi_dsaadm2']}" action="dbmDsaAdm2" >
             <t:commandNavigation id="navi_cntdbsetup" value="#{dbm_messages['navi_cntdbsetup']}"
             action="#{dbmDsaSetup.initPage}"/>
             <t:commandNavigation id="navi_cntdbstruct" value="#{dbm_messages['navi_cntdbstruct']}"
             action="dbmDsaAdminTree" />
             <t:commandNavigation id="navi_dsaadm" value="#{dbm_messages['navi_dsaadm']}"
             action="dbmDsaAdminMain" />
             <t:commandNavigation id="navi_dsaconf" value="#{dbm_messages['navi_dsaconf']}"
             action="dbmDsaConfigurationData" />
             <t:commandNavigation id="navi_pgwadm" value="#{dbm_messages['navi_pgwadm']}"
             action="#{dbmPgwDsaAdmin.initPage}" />
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_pgwmgt" value="#{dbm_messages['navi_pgwmgt']}" action="dbmPgwMan" >
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_conscheck" value="#{dbm_messages['navi_conscheck']}" action="dbmConsCheck" >
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_sdsmonitor" value="#{dbm_messages['navi_sdsmonitor']}" action="#{dbmSdsMain.initPage}" >
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_jobmanagement" value="#{dbm_messages['navi_jobmanagement']}" action="#{dbmJobMain.initPage}" >
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_logman" value="#{dbm_messages['navi_logman']}" action="dbmLogManMain" >
             <t:commandNavigation id="navi_filesview" value="#{dbm_messages['navi_filesview']}"
             action="dbmLogFileTree" />
             <t:commandNavigation id="navi_filterview" value="#{dbm_messages['navi_filterview']}"
             action="dbmLogFileFilter" />
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_emergmgt" value="#{dbm_messages['navi_emergmgt']}" action="dbmEmergMain00" >
             <t:commandNavigation id="navi_disaster" value="#{dbm_messages['navi_disaster']}"
             action="dbmEmergMain" />
             <t:commandNavigation id="navi_fallback" value="#{dbm_messages['navi_fallback']}"
             action="#{dbmFallbackIntro.initPage}" />
             </t:commandNavigation>
            
             <t:commandNavigation id="navi_dbmadm" value="#{dbm_messages['navi_dbmadm']}" action="dbmDbmAdmin" >
            <!--
             <t:commandNavigation id="navi_datamodel" value="#{dbm_messages['navi_datamodel']}"
             action="dbmDataModelMain" />
             -->
             <t:commandNavigation id="navi_ldapconf" value="#{dbm_messages['navi_ldapconf']}"
             action="dbmLdapConf" />
             <t:commandNavigation id="navi_sshconf" value="#{dbm_messages['navi_sshconf']}"
             action="dbmSshConf" />
             <t:commandNavigation id="navi_usrman" value="#{dbm_messages['navi_usrman']}"
             action="dbmUserMan" />
             <t:commandNavigation id="navi_rootservers" value="#{dbm_messages['navi_rootservers']}"
             action="dbmDsaConf" />
             <!-- FOR ALARM MANAGEMENT STARTS HERE-->
             <t:commandNavigation id="navi_alarmmgt" value="#{dbm_messages['navi_alarmmgt']}"
             action="dbmAlarmMgt" />
             <!-- FOR ALARM MANAGEMENT ENDS HERE-->
             <t:commandNavigation id="navi_environment" value="#{dbm_messages['navi_environment']}"
             action="#{dbmEnvironmentBB.startConversation}" />
             </t:commandNavigation>
            
             </t:panelNavigation>
             </h:form>
             </div>
             </div>
             </div>
            
            
             <div id="mainFrame">
             <div class="section">
             <ui:insert name="header"/>
             </div>
             <div class="errors">
             <t:messages id="exception-messages" showDetail="true" showSummary="false" replaceIdWithLabel="true" detailFormat="{0}" globalOnly="true" />
             <ui:insert name="messages"/>
             </div>
             <div class="contentArea">
             <ui:insert name="content"/>
             </div>
             </div>
            
            </div>
            <ui:debug hotkey="D"/>
            
            </body>
            </html>
            


            • 18. Re: Myfaces+ Facelets+Jboss Seam+ Richfaces (JBOSS 4.0.5)
              ilya_shaikovsky

              move f:view from template child to main template around the whole page.

              add also please

              <script> alert(Prototype.Version);</script>
              


              to the page. What will be displayed.

              • 19. Re: Myfaces+ Facelets+Jboss Seam+ Richfaces (JBOSS 4.0.5)
                varungo_2009

                I moved f:view from template child to main template around the whole page. Below is the code. Also, added the code ,script> aleart (Prototype.version);</script) but nothing is displayed, page is blank.

                <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:t="http://myfaces.apache.org/tomahawk"
                xmlns:custom="http://java.sun.com/blueprints/ajax/radiobutton"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:a4j="http://richfaces.org/a4j"
                template="template.xhtml">

                <!-- Meta Data -->
                <!-- is used for auto refresh of the current page -->
                <!-- <ui:define name="metadata">
                <meta http-equiv="refresh" content="15; url=alarmMgtMain.jsf" />
                </ui:define>
                -->


                <f:view>
                <!-- Header Area -->
                <ui:define name="header">
                <f:loadBundle basename="com.cntdb.dbm.messages" var="dbm_messages"/>
                <h1><h:outputText value="#{dbm_messages['header_alarmgt']}" /></h1>

                alert(Prototype.Version);

                </ui:define>

                <!-- Message Area -->
                <ui:define name="messages">
                <f:loadBundle basename="com.cntdb.dbm.messages" var="dbm_messages"/>
                </ui:define>

                <!-- Content Area -->
                <ui:define name="content">

                <f:loadBundle basename="com.cntdb.dbm.messages" var="dbm_messages"/>

                <h:panelGroup id="dbmAlarmMgtMain_panel">
                <h:form>
                <rich:panel header="Simple Echo">
                <h:inputText size="50" value="#{bean.text}" >
                <a4j:support event="onkeyup" reRender="rep"/>
                </h:inputText>
                <h:outputText value="#{bean.text}" id="rep"/>
                </rich:panel>
                </h:form>
                </h:panelGroup>

                </ui:define>
                </f:view>
                </ui:composition>

                • 20. Re: Myfaces+ Facelets+Jboss Seam+ Richfaces (JBOSS 4.0.5)
                  varungo_2009

                  I am able to use rich face data table component with out any error.

                  Now, i want radio button as one of the coulmn in data table and rows should be single selection.

                  Could you please let me know the way to achieve it?

                  • 21. Re: Myfaces+ Facelets+Jboss Seam+ Richfaces (JBOSS 4.0.5)
                    varungo_2009

                    I am able to use rich face data table component.

                    Now, what we want to have radio button as one of the coulmn of the table and single row selection. Could you please guide me how to achieve it?

                    1 2 Previous Next