You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "John Pai (JIRA)" <de...@tapestry.apache.org> on 2008/02/29 19:04:51 UTC

[jira] Created: (TAPESTRY-2210) Example in Basic Ajax documentaion cannot work.

Example in  Basic Ajax documentaion cannot work.
------------------------------------------------

                 Key: TAPESTRY-2210
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2210
             Project: Tapestry
          Issue Type: Improvement
          Components: Documentation
    Affects Versions: 4.1.5
            Reporter: John Pai
            Priority: Minor
             Fix For: 4.1.6


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());
    }
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Resolved: (TAPESTRY-2210) Example in Basic Ajax documentaion cannot work.

Posted by "Andreas Andreou (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Andreou resolved TAPESTRY-2210.
---------------------------------------

    Resolution: Fixed
      Assignee: Andreas Andreou

thx - actually the problem was that the initial value was null, 
so no html was rendering on page load.

> Example in  Basic Ajax documentaion cannot work.
> ------------------------------------------------
>
>                 Key: TAPESTRY-2210
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2210
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Documentation
>    Affects Versions: 4.1.5
>            Reporter: John Pai
>            Assignee: Andreas Andreou
>            Priority: Minor
>             Fix For: 4.1.6
>
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> 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());
>     }
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org