Author: hlship
Date: Fri Sep 9 05:12:34 2005
New Revision: 279749
URL: http://svn.apache.org/viewcvs?rev=279749&view=rev
Log:
TAPESTRY-270: FAQ Code example contains bug
Modified:
jakarta/tapestry/trunk/src/documentation/content/xdocs/faq.xml
jakarta/tapestry/trunk/status.xml
Modified: jakarta/tapestry/trunk/src/documentation/content/xdocs/faq.xml
URL:
http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/src/documentation/content/xdocs/faq.xml?rev=279749&r1=279748&r2=279749&view=diff
==============================================================================
--- jakarta/tapestry/trunk/src/documentation/content/xdocs/faq.xml (original)
+++ jakarta/tapestry/trunk/src/documentation/content/xdocs/faq.xml Fri Sep 9
05:12:34 2005
@@ -352,7 +352,7 @@
public void submitListener(IRequestCycle cycle)
{
- String key = ifSuccess() ? "succes" : "error";
+ String key = ifSuccess() ? "success" : "error";
String pageName = getSpecification().getProperty(key);
cycle.activate(pageName);
@@ -401,9 +401,10 @@
response.setContentLength(new Long(document.getSize()).intValue());
ServletOutputStream out = response.getOutputStream();
- while (in.read(data) > -1)
+ int bytesRead = 0;
+ while ((bytesRead = in.read(data)) > -1)
{
- out.write(data);
+ out.write(data, 0 , bytesRead);
}
in.close();
response.flushBuffer();
Modified: jakarta/tapestry/trunk/status.xml
URL:
http://svn.apache.org/viewcvs/jakarta/tapestry/trunk/status.xml?rev=279749&r1=279748&r2=279749&view=diff
==============================================================================
--- jakarta/tapestry/trunk/status.xml (original)
+++ jakarta/tapestry/trunk/status.xml Fri Sep 9 05:12:34 2005
@@ -51,7 +51,8 @@
</todo>
<changes>
<release version="4.0-beta-7" date="unreleased">
- <action type="fix" dev="HLS" fixes-bug="TAPESTRY-341">Report location of
errors initializing managed beans</action>
+ <action type="fix" dev="HLS" fixes-bug="TAPESTRY-341">Report location of
errors initializing managed beans</action>
+ <action type="fix" dev="HLS" fixes-bug="TAPESTRY-270" due-to="Andy
Hedges">FAQ Code example contains bug</action>
</release>
<release version="4.0-beta-6" date="Sep 7 2005">
<action type="update" dev="HLS" due-to="Henri Yandell">Convert Tapestry
repository from CVS to SVN</action>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]