[JIRA] Created: (APF-1020) SiteMesh decorates Ajax requests

5 messages Options
Embed this post
Permalink
AppFuse - Issues mailing list

[JIRA] Created: (APF-1020) SiteMesh decorates Ajax requests

Reply Threaded More More options
Print post
Permalink
SiteMesh decorates Ajax requests
--------------------------------

                 Key: APF-1020
                 URL: http://issues.appfuse.org/browse/APF-1020
             Project: AppFuse
          Issue Type: Improvement
          Components: Web - General
    Affects Versions: 2.0.1
            Reporter: Michael Horwitz
            Assignee: Matt Raible
            Priority: Minor


The default SiteMesh setup in AppFuse decorates Ajax requests that return HTML content. This is usually undesirable - Ajax requests are for page snippets that should not be decorated.

The current workaround requires users to place all Ajax requests in their own namespace and exclude any request to the namespace from SiteMesh decoration.

A better solution may be to include a DecoratorMapper as illustrated here: http://www.koders.com/java/fidADE37C0F524A06A9F6D8CAA572F501EBEA5DAF81.aspx

which automatically excludes all XmlHttpRequests from SiteMesh decoration.

Of course there may be some users who actually want their Ajax requests decorated :-)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AppFuse - Issues mailing list

[JIRA] Updated: (APF-1020) SiteMesh decorates Ajax requests

Reply Threaded More More options
Print post
Permalink

     [ http://issues.appfuse.org/browse/APF-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Raible updated APF-1020:
-----------------------------

    Fix Version/s: 2.0.2

> SiteMesh decorates Ajax requests
> --------------------------------
>
>                 Key: APF-1020
>                 URL: http://issues.appfuse.org/browse/APF-1020
>             Project: AppFuse
>          Issue Type: Improvement
>          Components: Web - General
>    Affects Versions: 2.0.1
>            Reporter: Michael Horwitz
>            Assignee: Matt Raible
>            Priority: Minor
>             Fix For: 2.0.2
>
>
> The default SiteMesh setup in AppFuse decorates Ajax requests that return HTML content. This is usually undesirable - Ajax requests are for page snippets that should not be decorated.
> The current workaround requires users to place all Ajax requests in their own namespace and exclude any request to the namespace from SiteMesh decoration.
> A better solution may be to include a DecoratorMapper as illustrated here: http://www.koders.com/java/fidADE37C0F524A06A9F6D8CAA572F501EBEA5DAF81.aspx
> which automatically excludes all XmlHttpRequests from SiteMesh decoration.
> Of course there may be some users who actually want their Ajax requests decorated :-)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AppFuse - Issues mailing list

[JIRA] Commented: (APF-1020) SiteMesh decorates Ajax requests

Reply Threaded More More options
Print post
Permalink
In reply to this post by AppFuse - Issues mailing list

    [ http://issues.appfuse.org/browse/APF-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12395 ]

Dustin Pearce commented on APF-1020:
------------------------------------

We should consider URLs that respond with JSON or undecorated HTML in addition to XML responses.

> SiteMesh decorates Ajax requests
> --------------------------------
>
>                 Key: APF-1020
>                 URL: http://issues.appfuse.org/browse/APF-1020
>             Project: AppFuse
>          Issue Type: Improvement
>          Components: Web - General
>    Affects Versions: 2.0.1
>            Reporter: Michael Horwitz
>            Assignee: Matt Raible
>            Priority: Minor
>             Fix For: 2.0.2
>
>
> The default SiteMesh setup in AppFuse decorates Ajax requests that return HTML content. This is usually undesirable - Ajax requests are for page snippets that should not be decorated.
> The current workaround requires users to place all Ajax requests in their own namespace and exclude any request to the namespace from SiteMesh decoration.
> A better solution may be to include a DecoratorMapper as illustrated here: http://www.koders.com/java/fidADE37C0F524A06A9F6D8CAA572F501EBEA5DAF81.aspx
> which automatically excludes all XmlHttpRequests from SiteMesh decoration.
> Of course there may be some users who actually want their Ajax requests decorated :-)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AppFuse - Issues mailing list

[JIRA] Updated: (APF-1020) SiteMesh decorates Ajax requests

Reply Threaded More More options
Print post
Permalink
In reply to this post by AppFuse - Issues mailing list

     [ http://issues.appfuse.org/browse/APF-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Raible updated APF-1020:
-----------------------------

    Fix Version/s:     (was: 2.0.2)
                   2.1

Moving to 2.1 as it's a minor feature request. Of course, a patch and test might get it into 2.0.2. ;-)

> SiteMesh decorates Ajax requests
> --------------------------------
>
>                 Key: APF-1020
>                 URL: http://issues.appfuse.org/browse/APF-1020
>             Project: AppFuse
>          Issue Type: Improvement
>          Components: Web - General
>    Affects Versions: 2.0.1
>            Reporter: Michael Horwitz
>            Assignee: Matt Raible
>            Priority: Minor
>             Fix For: 2.1
>
>
> The default SiteMesh setup in AppFuse decorates Ajax requests that return HTML content. This is usually undesirable - Ajax requests are for page snippets that should not be decorated.
> The current workaround requires users to place all Ajax requests in their own namespace and exclude any request to the namespace from SiteMesh decoration.
> A better solution may be to include a DecoratorMapper as illustrated here: http://www.koders.com/java/fidADE37C0F524A06A9F6D8CAA572F501EBEA5DAF81.aspx
> which automatically excludes all XmlHttpRequests from SiteMesh decoration.
> Of course there may be some users who actually want their Ajax requests decorated :-)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

AppFuse - Issues mailing list

[JIRA] Updated: (APF-1020) SiteMesh decorates Ajax requests

Reply Threaded More More options
Print post
Permalink
In reply to this post by AppFuse - Issues mailing list

     [ http://issues.appfuse.org/browse/APF-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Raible updated APF-1020:
-----------------------------

    Fix Version/s:     (was: 2.1.0-M1)
                   2.1.0-M2

> SiteMesh decorates Ajax requests
> --------------------------------
>
>                 Key: APF-1020
>                 URL: http://issues.appfuse.org/browse/APF-1020
>             Project: AppFuse
>          Issue Type: Improvement
>          Components: Web - General
>    Affects Versions: 2.0.1
>            Reporter: Michael Horwitz
>            Assignee: Matt Raible
>            Priority: Minor
>             Fix For: 2.1.0-M2
>
>
> The default SiteMesh setup in AppFuse decorates Ajax requests that return HTML content. This is usually undesirable - Ajax requests are for page snippets that should not be decorated.
> The current workaround requires users to place all Ajax requests in their own namespace and exclude any request to the namespace from SiteMesh decoration.
> A better solution may be to include a DecoratorMapper as illustrated here: http://www.koders.com/java/fidADE37C0F524A06A9F6D8CAA572F501EBEA5DAF81.aspx
> which automatically excludes all XmlHttpRequests from SiteMesh decoration.
> Of course there may be some users who actually want their Ajax requests decorated :-)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.appfuse.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]