You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Julian Wood (JIRA)" <de...@tapestry.apache.org> on 2007/04/05 19:43:32 UTC

[jira] Created: (TAPESTRY-1405) EventListeners on RadioGroups don't fire asynchronously

EventListeners on RadioGroups don't fire asynchronously
-------------------------------------------------------

                 Key: TAPESTRY-1405
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1405
             Project: Tapestry
          Issue Type: Improvement
          Components: Core Components
    Affects Versions: 4.1.2
         Environment: java 1.5.0_07, osx 10.4.9
            Reporter: Julian Wood
            Priority: Minor


In the .html:

 <span jwcid="category@RadioGroup" displayName="literal:Category" selected="ognl:category">
   <input type="radio" jwcid="@Radio" value="ognl:@Category@VIDEO"/> Video
   <input type="radio" jwcid="@Radio" value="ognl:@Category@PROJECT"/> Project
   <input type="radio" jwcid="@Radio" value="ognl:@Category@OTHER"/> Other
 </span>

In the .java:

    @EventListener(events = "onclick", targets = "category", async = true, submitForm = "editTimeEventForm", validateForm = false)
    public void categorySelected(IRequestCycle cycle)
    {
        log.info("Chose a category: " + getCategory());
    }

Nothing happens if you click on a radio button. It works fine if the RadioGroup component is changed to a PropertySelection:

<select jwcid="category@PropertySelection" displayName="literal:Category" value="ognl:category" model="ognl:categorySelectionModel">
   <option>Video</option>
   <option>Project</option>
   <option>Other</option>
 </select>

The latter includes some initialization js (while the former doesn't include any):

tapestry.cleanConnect(dojo.byId("category"), "onclick", "formEvent193333026");
tapestry.formEvent193333026=function(e){
    var content={beventname:"onclick"};
    tapestry.event.buildEventProperties(e, content);
    if (!content["beventtarget.id"]){
        content["beventtarget.id"]="category";
    }
    
   var validateState=tapestry.form.forms["editTimeEventForm"].validateForm;
   var validateForm=false;
   tapestry.form.setFormValidating("editTimeEventForm", validateForm);
   tapestry.form.submitAsync("editTimeEventForm", content);
   tapestry.form.setFormValidating("editTimeEventForm", validateState);
};
dojo.event.connect(dojo.byId("category"), "onclick", tapestry, "formEvent193333026");});

-- 
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-1405) EventListeners on RadioGroups don't fire asynchronously

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

Marcus Schulte resolved TAPESTRY-1405.
--------------------------------------

       Resolution: Duplicate
    Fix Version/s:     (was: 4.2)
                   4.1.6
         Assignee: Marcus Schulte

duplicate of and fixed with TAPESTRY-1039

> EventListeners on RadioGroups don't fire asynchronously
> -------------------------------------------------------
>
>                 Key: TAPESTRY-1405
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1405
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Core Components
>    Affects Versions: 4.1.2
>         Environment: java 1.5.0_07, osx 10.4.9
>            Reporter: Julian Wood
>            Assignee: Marcus Schulte
>            Priority: Minor
>             Fix For: 4.1.6
>
>
> In the .html:
>  <span jwcid="category@RadioGroup" displayName="literal:Category" selected="ognl:category">
>    <input type="radio" jwcid="@Radio" value="ognl:@Category@VIDEO"/> Video
>    <input type="radio" jwcid="@Radio" value="ognl:@Category@PROJECT"/> Project
>    <input type="radio" jwcid="@Radio" value="ognl:@Category@OTHER"/> Other
>  </span>
> In the .java:
>     @EventListener(events = "onclick", targets = "category", async = true, submitForm = "editTimeEventForm", validateForm = false)
>     public void categorySelected(IRequestCycle cycle)
>     {
>         log.info("Chose a category: " + getCategory());
>     }
> Nothing happens if you click on a radio button. It works fine if the RadioGroup component is changed to a PropertySelection:
> <select jwcid="category@PropertySelection" displayName="literal:Category" value="ognl:category" model="ognl:categorySelectionModel">
>    <option>Video</option>
>    <option>Project</option>
>    <option>Other</option>
>  </select>
> The latter includes some initialization js (while the former doesn't include any):
> tapestry.cleanConnect(dojo.byId("category"), "onclick", "formEvent193333026");
> tapestry.formEvent193333026=function(e){
>     var content={beventname:"onclick"};
>     tapestry.event.buildEventProperties(e, content);
>     if (!content["beventtarget.id"]){
>         content["beventtarget.id"]="category";
>     }
>     
>    var validateState=tapestry.form.forms["editTimeEventForm"].validateForm;
>    var validateForm=false;
>    tapestry.form.setFormValidating("editTimeEventForm", validateForm);
>    tapestry.form.submitAsync("editTimeEventForm", content);
>    tapestry.form.setFormValidating("editTimeEventForm", validateState);
> };
> dojo.event.connect(dojo.byId("category"), "onclick", tapestry, "formEvent193333026");});

-- 
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] Updated: (TAPESTRY-1405) EventListeners on RadioGroups don't fire asynchronously

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

Jesse Kuhnert updated TAPESTRY-1405:
------------------------------------

    Fix Version/s: 4.2

> EventListeners on RadioGroups don't fire asynchronously
> -------------------------------------------------------
>
>                 Key: TAPESTRY-1405
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1405
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: Core Components
>    Affects Versions: 4.1.2
>         Environment: java 1.5.0_07, osx 10.4.9
>            Reporter: Julian Wood
>            Priority: Minor
>             Fix For: 4.2
>
>
> In the .html:
>  <span jwcid="category@RadioGroup" displayName="literal:Category" selected="ognl:category">
>    <input type="radio" jwcid="@Radio" value="ognl:@Category@VIDEO"/> Video
>    <input type="radio" jwcid="@Radio" value="ognl:@Category@PROJECT"/> Project
>    <input type="radio" jwcid="@Radio" value="ognl:@Category@OTHER"/> Other
>  </span>
> In the .java:
>     @EventListener(events = "onclick", targets = "category", async = true, submitForm = "editTimeEventForm", validateForm = false)
>     public void categorySelected(IRequestCycle cycle)
>     {
>         log.info("Chose a category: " + getCategory());
>     }
> Nothing happens if you click on a radio button. It works fine if the RadioGroup component is changed to a PropertySelection:
> <select jwcid="category@PropertySelection" displayName="literal:Category" value="ognl:category" model="ognl:categorySelectionModel">
>    <option>Video</option>
>    <option>Project</option>
>    <option>Other</option>
>  </select>
> The latter includes some initialization js (while the former doesn't include any):
> tapestry.cleanConnect(dojo.byId("category"), "onclick", "formEvent193333026");
> tapestry.formEvent193333026=function(e){
>     var content={beventname:"onclick"};
>     tapestry.event.buildEventProperties(e, content);
>     if (!content["beventtarget.id"]){
>         content["beventtarget.id"]="category";
>     }
>     
>    var validateState=tapestry.form.forms["editTimeEventForm"].validateForm;
>    var validateForm=false;
>    tapestry.form.setFormValidating("editTimeEventForm", validateForm);
>    tapestry.form.submitAsync("editTimeEventForm", content);
>    tapestry.form.setFormValidating("editTimeEventForm", validateState);
> };
> dojo.event.connect(dojo.byId("category"), "onclick", tapestry, "formEvent193333026");});

-- 
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