[
https://issues.jboss.org/browse/JBSEAM-5077?page=com.atlassian.jira.plugi...
]
Jens Westermann edited comment on JBSEAM-5077 at 2/27/13 9:33 AM:
------------------------------------------------------------------
We need to ust the SNAPSHOT Version in your Development and this temporary fix will solve
the Problem:
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;
@Name("org.jboss.seam.document.documentStore")
@Scope(ScopeType.CONVERSATION)
@Install(precedence = Install.APPLICATION)
@Deprecated
public class DocumentStoreTempFix extends org.jboss.seam.document.DocumentStore implements
Serializable {
private static final long serialVersionUID = -1L;
@Override
public String preferredUrlForContent(String baseName, String extension, String
contentId) {
String result = baseUrlForContent(baseName, extension);
StringBuilder sb = new StringBuilder(result);
if (result.indexOf('?') >= 0) {
sb.append("&");
} else {
sb.append("?");
}
sb.append("docId=");
sb.append(contentId);
return sb.toString();
}
}
was (Author: jan.daces):
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;
@Name("org.jboss.seam.document.documentStore")
@Scope(ScopeType.CONVERSATION)
@Install(precedence = Install.APPLICATION)
@Deprecated
public class DocumentStoreTempFix extends org.jboss.seam.document.DocumentStore implements
Serializable {
private static final long serialVersionUID = -1L;
@Override
public String preferredUrlForContent(String baseName, String extension, String
contentId) {
String result = baseUrlForContent(baseName, extension);
StringBuilder sb = new StringBuilder(result);
if (result.indexOf('?') >= 0) {
sb.append("&");
} else {
sb.append("?");
}
sb.append("docId=");
sb.append(contentId);
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
http://127.0.0.1:8080/seam-ui/resource.seam 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