Hello everyone,

Problem: I want to use the <x:DataTable> tag. It works, with and without
J-Script, if I use the page structure of the myfaces example (see below)
with my managed bean. -So far so good -. If i copy and paste the working
<x:DataTable>-Tag in my page structure (see below), to the place where I
want it to appear, it is displayed correctly the first time but cannot
be sorted, i.e. the sort-page-respose does not contain any change,
neither with client or server-side state saving, neither with or without
J-Script.

Question: Any ideas? 
 
Note1: I wrote the managed bean referring to the example extending an
abstract sortablelist. The problem does not seem to be here.   

Note2: My page structure is more complicated than the example, due to
the fact that I use tiles with the myfaces JspTilesViewHandlerImpl. 

Note3: I used to have many struggles with my page structure in the past.
I thought I'd done it right now. 

Thanks to all of you in advance
Regards
Christian

Myfaces example page structure
----------------------
<%@ taglib... %>
<html>
 <body>
  <f:view>
   <f:loadBundle ..."/>
     <x:dataTable styleClass="standardTable">
      // code according to example     
     </x:dataTable>
  </f:view>
 </body>
</html>

My Structure
------------
<html>
<f:view>
  <head>
   <link rel="stylesheet" .../>
         <f:loadBundle ... />
         <title> <h:outputText .../></title>
  </head>
   <body>
     <f:subview>
      <h:form>
       <h:panelGrid>

        <f:facet name="header" >
          <h:panelGrid>
              [....]          
          </h:panelGrid>
        </f:facet>
                                                                        
        <f:subview id="menu">
          <h:panelGrid>
              [....]          
          </h:panelGrid>
        </f:subview>
                                                                        
        <f:subview id="content" >
            <x:dataTable styleClass="standardTable"
            ### code according to example ###
            </x:dataTable>      
        </f:subview>
                                                                        
        <f:facet name="footer">
         <h:panelGroup styleClass="footer" >
           [....]
         </h:panelGroup>
        </f:facet>

       </h:panelGrid>
      </h:form>
     </f:subview>
   </body>
</f:view>
</html>

Reply via email to