1 Reply Latest reply on Jul 10, 2009 6:09 PM by asookazian

    ui:debug problems

    asookazian

      Seam 2.0.2-FP


      I added the following tag to my xhtml page:


      <ui:debug hotkey="d"/>



      I am able to launch the IE browser window.  I can't expand the component tree.  I can expand the scoped variables.


      The trees expand normally here: http://localhost:8080/ERS/debug.seam


      Is there a way to configure Seam (in components.xml, for example) so that I don't have to add this tag to every xhtml?  Like a global config for ui:debug???


      There is no ui:debug reference in Seam 2.1.2.GA ref doc...

        • 1. Re: ui:debug problems
          asookazian

          the component tree expansion from CTRL-SHFT-D fails using FF3 as well.


          xhtml:


          <!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:a4j="http://richfaces.org/a4j"
               xmlns:rich="http://richfaces.org/rich"
               xmlns:s="http://jboss.com/products/seam/taglib"
               template="/templates/normal.xhtml">
               
          <ui:define name="body">
          
               <ui:debug hotkey="d"/>
          
               <h:form>
                    <rich:dataTable id="table1" value="#{apmdList_main}" var="row">          
                         <rich:column>
                              <f:facet name="header"><h:outputText value="delete"/></f:facet>                    
                              <h:selectBooleanCheckbox value="false">
                                   <a4j:support event="onclick" action="#{myTest1.deleteRow(apmdList_main.getRowIndex())}"/>
                              </h:selectBooleanCheckbox>
                         </rich:column>          
                         <rich:column>
                              <f:facet name="header"><h:outputText value="ID"/></f:facet>                    
                              <h:outputText value="#{row.applicationMetaDataId}"/>
                         </rich:column>
                         <rich:column>
                              <f:facet name="header"><h:outputText value="BuildNumber"/></f:facet>                    
                              <h:inputText value="#{row.buildNumber}"/>
                         </rich:column>
                         <rich:column>
                              <f:facet name="header"><h:outputText value="applicationName"/></f:facet>                    
                              <h:outputText value="#{row.applicationName}"/>
                         </rich:column>
                         <rich:column>
                              <f:facet name="header"><h:outputText value="Added By UserID"/></f:facet>                    
                              <h:outputText value="#{row.addedByUserId}"/>
                         </rich:column>
                         <rich:column>
                              <f:facet name="header"><h:outputText value="Added Date"/></f:facet>                    
                              <h:outputText value="#{row.addedDate}"/>
                         </rich:column>
                         <!-- 
                         <rich:column>
                              <f:facet name="header"><h:outputText value="Delete Row"/></f:facet>                    
                              <h:commandButton value="delete" 
                                                   action="#{myTest1.deleteRow(apmdList_main.getRowIndex())}"/> 
                         </rich:column>
                          -->
                    </rich:dataTable>
                    
                    <rich:spacer height="20"/>
                    
                    <h:panelGrid columns="2">
                         <h:commandButton value="Add" action="#{myTest1.addRow}"/>
                         <h:commandButton value="Save" action="#{myTest1.save}"/>
                    </h:panelGrid>
                    
               </h:form>
               
               <rich:spacer height="20"/>
               
               <h:form>
                    <rich:dataTable id="table2"
                                        value="#{apmdList_addRow}" 
                                       var="row" 
                                       rendered="#{apmdList_addRow.getRowCount() gt 0}">
                         
                         <rich:column>
                              <f:facet name="header"><h:outputText value="BuildNumber"/></f:facet>                    
                              <h:inputText value="#{row.buildNumber}"/>
                         </rich:column>
                         <rich:column>
                              <f:facet name="header"><h:outputText value="Application Name"/></f:facet>                    
                              <h:inputText value="#{row.applicationName}"/>
                         </rich:column>
                         <rich:column>
                              <f:facet name="header"><h:outputText value="Application Short Name"/></f:facet>                    
                              <h:inputText value="#{row.applicationShortName}"/>
                         </rich:column>               
                    </rich:dataTable>
                    
                    <h:commandButton value="Save" 
                                         action="#{myTest1.saveAddedRow}"
                                         rendered="#{apmdList_addRow.getRowCount() gt 0}"/>
               </h:form>
               
          </ui:define>     
          </ui:composition>