CVS: Tapestry/framework/src/net/sf/tapestry/pages StaleLink.java,NONE,1.1.2.1 StaleLink.html,1.4,1.4.2.1 Exception.css,1.4,1.4.4.1 StaleLink.page,1.4,1.4.2.1
Howard Lewis Ship <[email protected]>
| Newsgroups | gmane.comp.java.tapestry.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/pages
In directory sc8-pr-cvs1:/tmp/cvs-serv8557/framework/src/net/sf/tapestry/pages
Modified Files:
Tag: hship-2-3
StaleLink.html Exception.css StaleLink.page
Added Files:
Tag: hship-2-3
StaleLink.java
Log Message:
Change Form to record allocated element ids as a hidden field, and compare against it when the form is submitted.
Change StaleLink page to display the message from the StaleLinkException.
--- NEW FILE: StaleLink.java ---
package net.sf.tapestry.pages;
import net.sf.tapestry.html.BasePage;
/**
* Stores a message (taken from the {@link net.sf.tapestry.StaleLinkException})
* that is displayed as part of the page.
*
* @author Howard Lewis Ship
* @version $Id: StaleLink.java,v 1.1.2.1 2002/12/21 13:05:44 hship Exp $
* @since 2.4
*
**/
public class StaleLink extends BasePage
{
private String _message;
public void detach()
{
_message = null;
super.detach();
}
public String getMessage()
{
return _message;
}
public void setMessage(String message)
{
_message = message;
}
}
Index: StaleLink.html
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/pages/StaleLink.html,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -C2 -d -r1.4 -r1.4.2.1
*** StaleLink.html 24 Oct 2002 18:13:31 -0000 1.4
--- StaleLink.html 21 Dec 2002 13:05:44 -0000 1.4.2.1
***************
*** 1,10 ****
<!-- $Id$ -->
! <span jwcid="shell">
<body>
! You have clicked on a <i>stale link</i>. This is often the result of using your
! browser's <b>back</b> button. You may continue by returning to the
application's
--- 1,19 ----
<!-- $Id$ -->
! <span jwcid="@Shell" stylesheet="[[ assets.stylesheet ]]" title="Stale Link">
<body>
! You have clicked on a <i>stale link</i>.
!
! <p>
! <span jwcid="@Insert" value="[[ message ]]" class="exception-message">
! Exception message goes here.
! </span>
!
! <p>This is most likely the result of using your
! browser's <b>back</b> button, but can also be an application error.
!
! <p>You may continue by returning to the
application's
Index: Exception.css
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/pages/Exception.css,v
retrieving revision 1.4
retrieving revision 1.4.4.1
diff -C2 -d -r1.4 -r1.4.4.1
*** Exception.css 8 Jun 2002 22:43:54 -0000 1.4
--- Exception.css 21 Dec 2002 13:05:44 -0000 1.4.4.1
***************
*** 48,51 ****
--- 48,55 ----
}
+ SPAN.exception-message {
+ font-weight: bold;
+ }
+
TABLE.request-context-border {
border-width : 1;
Index: StaleLink.page
===================================================================
RCS file: /cvsroot/tapestry/Tapestry/framework/src/net/sf/tapestry/pages/StaleLink.page,v
retrieving revision 1.4
retrieving revision 1.4.2.1
diff -C2 -d -r1.4 -r1.4.2.1
*** StaleLink.page 17 Sep 2002 18:17:33 -0000 1.4
--- StaleLink.page 21 Dec 2002 13:05:44 -0000 1.4.2.1
***************
*** 4,18 ****
"-//Howard Lewis Ship//Tapestry Specification 1.3//EN"
"http://tapestry.sf.net/dtd/Tapestry_1_3.dtd">
! <page-specification class="net.sf.tapestry.html.BasePage">
!
! <component id="shell" type="Shell">
! <static-binding name="title">Stale Link</static-binding>
! <binding name="stylesheet" expression="assets.stylesheet"/>
! </component>
<component id="home" type="ServiceLink">
! <field-binding name="service" field-name="net.sf.tapestry.IEngineService.HOME_SERVICE"/>
</component>
<private-asset name="stylesheet" resource-path="/net/sf/tapestry/pages/Exception.css"/>
</page-specification>
--- 4,14 ----
"-//Howard Lewis Ship//Tapestry Specification 1.3//EN"
"http://tapestry.sf.net/dtd/Tapestry_1_3.dtd">
! <page-specification class="net.sf.tapestry.pages.StaleLink">
<component id="home" type="ServiceLink">
! <binding name="service" expression="@net.sf.tapestry.IEngineService@HOME_SERVICE"/>
</component>
<private-asset name="stylesheet" resource-path="/net/sf/tapestry/pages/Exception.css"/>
+
</page-specification>
-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/