[
http://jira.jboss.com/jira/browse/JBSEAM-819?page=comments#action_12353014 ]
Shane Bryzak commented on JBSEAM-819:
-------------------------------------
Both the captcha servlet and remoting servlet have now been incorporated into
ResourceServlet. Next thing is to create a WebResourceProvider that will provide
additional javascript resources, images, css, etc.
I'm thinking that this class should be part of the UI package - what I'm looking
for is suggestions as to where we place the physical resource files, and how they are
exposed via the resource servlet. For example, if we provide a default CSS file for
selectDate, the resource path for this might be:
/seam/resource/web/selectdate/default.css
or
/seam/resource/web/css/selectdate.css
The physical resource file can be stored anywhere in the seam-ui jar file. One
possibility is to place it in either:
org.jboss.seam.ui.resource
or more control-specific:
org.jboss.seam.ui.selectdate
The last step is to actually map the resource path to the physical resource file. This
could be done any number of ways - xml file, annotations, hard-coded based on requested
resource path, etc. Thoughts?
Create a Seam resource servlet
------------------------------
Key: JBSEAM-819
URL:
http://jira.jboss.com/jira/browse/JBSEAM-819
Project: JBoss Seam
Issue Type: Feature Request
Components: Remoting
Affects Versions: 1.1.6.GA
Reporter: Shane Bryzak
Assigned To: Shane Bryzak
Fix For: 1.1.7.GA
Original Estimate: 1 day
Remaining Estimate: 1 day
Create a Seam resource servlet for serving non-jsf resources, such as javascript, images,
css, etc. It should replace SeamRemotingServlet and CaptchaServlet, and accept requests
for something like "/seam/resource/*", and depending on the path delegate
control to various resource providers, e.g:
/seam/resource/remoting - delegate to Seam Remoting
/seam/resource/captcha - delegate to Captcha image provider
/seam/resource/jsfcontrol - delegate to JSF Control javascript provider (JS resources for
selectDate, etc).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira