You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/02/02 14:52:33 UTC
svn commit: r374385 -
/lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml
Author: andreas
Date: Thu Feb 2 05:52:30 2006
New Revision: 374385
URL: http://svn.apache.org/viewcvs?rev=374385&view=rev
Log:
Minor formatting and lower-/uppercase changes.
Modified:
lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml
Modified: lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml
URL: http://svn.apache.org/viewcvs/lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml?rev=374385&r1=374384&r2=374385&view=diff
==============================================================================
--- lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml (original)
+++ lenya/docu/src/documentation/content/xdocs/1_4/reference/usecase-framework/index.xml Thu Feb 2 05:52:30 2006
@@ -361,32 +361,33 @@
</ol>
</section>
<section id="dyn_exit">
- <title>Dynamically setting exit url</title>
+ <title>Dynamically Setting the Exit URL</title>
<p> Like you see above you can specify the "exit" URL of the
usecase via the component configuration, however this is
- sometimes not enough because you may need to set the exit url
+ sometimes not enough because you may need to set the exit URL
of a usecase dynamically.</p>
<p>Consider the use case is that you have a form and you need two
possibilities to exit the usecase. </p>
<ol>
<li>Pressing on "submit" will save and exit to the same page in
the authoring area. </li>
- <li>The other exit point could be a dynamic link based on a <![CDATA[<a href=""/>]]>
- where the user get redirected after submitting the form (e.g. to edit the linked doc with BXE).</li>
+ <li>The other exit point could be a dynamic link based on a <code><![CDATA[<a href=""/>]]></code>
+ where the user get redirected after submitting the form (e.g. to edit the linked document
+ with the <a href="site:bitfluxeditor">BXE</a> editor).</li>
</ol>
<p>First you need to add another request parameter (e.g.,
- "TRANSFER_FIELD") denoting that the user clicked the link. This
- could be e.g. a hidden field which contains the url to transfer
+ <code>TRANSFER_FIELD</code>) denoting that the user clicked the link. This
+ could be e.g. a hidden field which contains the URL to transfer
the request. Further you need to override
- Usecase.getTargetURL() to return the BXE usecase URL if the
- "TRANSFER_FIELD" parameter is set, and super.getTargetURL()
+ <code>Usecase.getTargetURL()</code> to return the BXE usecase URL if the
+ <code>TRANSFER_FIELD</code> parameter is set, and <code>super.getTargetURL()</code>
otherwise.</p>
<source><![CDATA[public String getTargetURL(boolean success) {
- String tmpTransfer = getParameterAsString("TRANSFER_FIELD", null);
- if (!tmpTransfer.equals("") & tmpTransfer != null)
- return tmpTransfer;
- else
- return super.getTargetURL(success);
+ String tmpTransfer = getParameterAsString("TRANSFER_FIELD", null);
+ if (!tmpTransfer.equals("") & tmpTransfer != null)
+ return tmpTransfer;
+ else
+ return super.getTargetURL(success);
}]]></source>
</section>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org