Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2210

Example in Basic Ajax documentaion cannot work.

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.5
    • Fix Version/s: 4.1.6
    • Component/s: Documentation
    • Labels:
      None

      Description

      The example in http://tapestry.apache.org/tapestry4.1/ajax/basics.html can not be run correctly

      A possible correction is

      .html

      <p>Basic javascript inclusion sample.</p>

      <p>
      <a jwcid="@DirectLink" listener="listener:refreshTime" updateComponents="timeBlock">Refresh time</a>.
      </p>

      <span jwcid="timeBlock@Any">
      <div jwcid="time@Insert" value="ognl:time" renderTag="true" />
      </sapn>

      .java
      public abstract BasicAjax extends BasePage {

      public abstract void setTime(Date time);

      public void refreshTime()

      { setTime(new java.util.Date()); }

      }

        Attachments

          Activity

            People

            • Assignee:
              andyhot Andreas Andreou
              Reporter:
              pai911 John Pai
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified