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

Example in Basic Ajax documentaion cannot work.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.1.5
    • 4.1.6
    • Documentation
    • 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

            andyhot Andreas Andreou
            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