You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2007/09/13 23:54:09 UTC

[Myfaces Wiki] Update of "from ADF to Trinidad" by venkataguddanti

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by venkataguddanti:
http://wiki.apache.org/myfaces/from_ADF_to_Trinidad

------------------------------------------------------------------------------
  The following attributes were deprecated and might be desupported in the future, their usage is therefore discouraged.
  
  TBD
+ 
+ == Table Selection ==
+ 
+  * In trinidad table selection is enabled in the table using rowSelection="none|single|multiple" attribute. The 10.1.3 "selection" facet and <af:tableSelectOne>, <af:tableSelectMany> components inside it are no longer supported.
+ 
+ To migrate components inside the <af:tableSelectOne>/<af:tableSelectMany>, create a new af:column and put the components inside it. For e.g. :
+ 
+ {{{
+ <af:table ... >
+   :
+   <f:facet name="selection">
+     <af:tableSelectOne text="Select and">
+       <af:commandButton text="Submit">
+       </af:commandButton>
+     </af:tableSelectOne>
+   </f:facet>
+ </af:table> 
+ }}}
+ 
+   would migrate to:
+ 
+ {{{
+ <af:table ... >
+   <tr:column>
+     <tr:commandButton text="Submit">
+     <tr:commandButton>
+   </tr:column>
+ :
+ </af:table> 
+ }}}
+ 
+  * Table 10.1.3 selectionState attribute has been replaced by selectedRowKeys attribute
+ 
+  * In 10.1.3 the currency was automatically established during processing of <af:tableSelectOne>, <af:tableSelectMany> components. This is currently not supported. Something like this:
+ 
+ {{{
+ <af:table ... var="row" ...>
+   :
+   <f:facet name="selection">
+     <af:tableSelectOne text="Select and">
+       <af:commandButton text="Submit">
+ <af:setActionListener from="#{row.rowKeyStr}"
+       to="#{processScope.rowKeyStr}"/>
+       </af:commandButton>
+     </af:tableSelectOne>
+   </f:facet>
+ </af:table>
+ }}}
+ 
+   cannot be migrated to:
+ 
+ {{{
+ <af:table ... var="row" ...>
+   :
+ 
+   <tr:column>
+     <tr:commandButton text="Submit">
+       <tr:setActionListener from="#{row.rowKeyStr}"
+                             to="#{processScope.rowKeyStr}"/>
+     <tr:commandButton>
+   </tr:column>
+   :
+ </af:table>
+ }}}
+ 
+   One workaround is to track the current row in the table in the selectionListener through a backing bean. The current row can then be pulled off the backing bean.
  
  == Desupported components ==