[seam-issues] [JBoss JIRA] (JBSEAM-5077) ui example, s:resource s:download error 404

Jens Westermann (JIRA) jira-events at lists.jboss.org
Wed Feb 27 09:31:56 EST 2013

    [ https://issues.jboss.org/browse/JBSEAM-5077?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12757198#comment-12757198 ] 

Jens Westermann commented on JBSEAM-5077:

package ch.inspirion.zeiterfassung.seamfaces;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import javax.faces.application.ViewHandler;
import javax.faces.context.FacesContext;

import org.jboss.seam.Component;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.Install;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.document.DocumentData;
import org.jboss.seam.util.Faces;

@Install(precedence = Install.APPLICATION)
public class DocumentStoreTempFix extends org.jboss.seam.document.DocumentStore implements Serializable {

   private static final long serialVersionUID = -1L;

   public String preferredUrlForContent(String baseName, String extension, String contentId) {
      String result = baseUrlForContent(baseName, extension);
      StringBuilder sb = new StringBuilder(result);
      if (result.indexOf('?') >= 0) {
      } else {
      return sb.toString();


> ui example, s:resource s:download error 404
> -------------------------------------------
>                 Key: JBSEAM-5077
>                 URL: https://issues.jboss.org/browse/JBSEAM-5077
>             Project: Seam 2
>          Issue Type: Bug
>          Components: JSF Controls
>    Affects Versions: 2.3.1.CR1
>         Environment: AS 7.1.1.Final, Seam 2.3.1-SNAPSHOT
>            Reporter: Marek Schmidt
>            Assignee: Marek Novotny
>            Priority: Critical
>              Labels: regression
>             Fix For: 2.3.1.CR1
> s:resource and s:download links don't work anymore in the current Seam 2.3.1-SNAPSHOT
> Clicking on any of the seam-ui example links in leads to a 404 error

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

More information about the seam-issues mailing list