[jboss-cvs] jboss-seam/doc/reference/en/modules ...
Christian Bauer
christian at hibernate.org
Thu May 10 15:02:04 EDT 2007
User: cbauer
Date: 07/05/10 15:02:04
Modified: doc/reference/en/modules elenhancements.xml
Log:
FAQ
Revision Changes Path
1.5 +11 -1 jboss-seam/doc/reference/en/modules/elenhancements.xml
(In the diff below, changes in quantity of whitespace are not shown.)
Index: elenhancements.xml
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/doc/reference/en/modules/elenhancements.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- elenhancements.xml 16 Apr 2007 23:31:19 -0000 1.4
+++ elenhancements.xml 10 May 2007 19:02:04 -0000 1.5
@@ -48,7 +48,17 @@
<programlisting><![CDATA[<h:commandButton action="#{hotelBooking.bookHotel(hotel.id, user.username)}" value="Book Hotel"/>]]></programlisting>
<para>
- You may even pass literal strings using single or double quotes:
+ <emphasis>Note:</emphasis> You can not pass objects as arguments! All that is passed is names, for example,
+ <literal>hotel.id</literal> and <literal>user.username</literal>. If you check the rendered code of the
+ previous example, you will see that the command button contains these names. These name arguments will be
+ submitted to the server when you press the button, and Seam will look up and resolve these names (in any
+ available context) before the action method is called. If the arguments can not be resolved at that time
+ (because <literal>hotel</literal> and <literal>user</literal> variables can not be found in any available
+ context) the action method will be called with <literal>null</literal> arguments!
+ </para>
+
+ <para>
+ You may however pass literal strings using single or double quotes:
</para>
<programlisting><![CDATA[<h:commandLink action=â#{printer.println( âHello world!â )}â value=âHelloâ/>]]></programlisting>
More information about the jboss-cvs-commits
mailing list