Tapestry
  1. Tapestry
  2. TAPESTRY-2210

Example in Basic Ajax documentaion cannot work.

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor 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()); }

      }

        Activity

        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568567 ] jira [ 12591610 ]
        Mark Thomas made changes -
        Workflow jira [ 12424798 ] Default workflow, editable Closed status [ 12568567 ]
        Andreas Andreou made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Andreas Andreou [ andyhot ]
        Resolution Fixed [ 1 ]
        John Pai created issue -

          People

          • Assignee:
            Andreas Andreou
            Reporter:
            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

                Development