myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "Focus" by RogerioAraujo
Date Mon, 28 Nov 2005 18:06:31 GMT
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 RogerioAraujo:
http://wiki.apache.org/myfaces/Focus

------------------------------------------------------------------------------
  ===== Author: Rogério Araújo =====
  An component that controls the focus on the page across submissions, this component is available
as module focus in cvs for the jsf-comp [http://sourceforge.net/cvs/?group_id=137466 ] project.
  
- Focus currently has only one attribute called "component". In this attribute you must specify
the component that will be focused after page load/reload.
+ Focus currently has only one attribute called "for". In this attribute you must specify
the component that will be focused after page load/reload.
  
  For assistance, send email to rogerio.araujo@gmail.com
  
@@ -16, +16 @@

      <h:form id="form">
          <h:inputText value="#{value}" id="name" />
          [...]
-         <s:focus id="focus" component="name" />
+         <s:focus id="focus" for="#{bean.focus}" />
      </h:form>
  [...]
  </html>
@@ -24, +24 @@

  
  
  === Implementation notes ===
-  * The Focus component must be placed after all other components. Safest bet is to put it
right before the closing </h:form> tag.  This is probably also true for other JSF implementations.
+  * The Focus component must be placed after all other components. Safest bet is to put it
right before the closing </h:form> tag because this component point to another component
in jsf tree.  This is probably also true for other JSF implementations.
  

Mime
View raw message