[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-3889) Easier RestEasy paths

John Ament (JIRA) jira-events at lists.jboss.org
Fri Jan 9 19:27:04 EST 2009


Easier RestEasy paths
---------------------

                 Key: JBSEAM-3889
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3889
             Project: Seam
          Issue Type: Feature Request
          Components: Remoting
         Environment: JSF based apps
            Reporter: John Ament
            Assignee: Shane Bryzak


The rest easy integration is missing a few important integrations that would make using it in applications considerably easier.

- s:link integrated resource paths based on actions.  If I have a restful service defines as:

@Path("/viewimage")
@Name("viewImage")
public class ViewImage implements java.io.Serializable
....
@GET
@Path("/{username}/{filename}")
public byte[] viewImage(@PathParam("username")String username, at PathParam("filename")String filename)

I should be able to define an s:link something like...

<s:link action="#{viewImage.viewImage}">
<f:param name="username" value="#{someBean.someValue}" />
<f:param name="filename" value="#{someBean.someOtherValue}" />
<h:outputText value="View Image" />
</s:link>
Or even a specialized graphicImage implementation that does soemthing similar...

<s:graphicImage action="#{viewImage.viewImage}">
<f:param name="username" value="#{someBean.someValue}" />
<f:param name="filename" value="#{someBean.someOtherValue}" />
</s:graphicImage>

Second, the resource path configuration in web.xml should be optional.  The seam filter should be able to pull out the resources without needing the resource servlet directly handling the values.


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

        



More information about the seam-issues mailing list