[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2370) seamdiscs tests fails
by Norman Richards (JIRA)
seamdiscs tests fails
---------------------
Key: JBSEAM-2370
URL: http://jira.jboss.com/jira/browse/JBSEAM-2370
Project: JBoss Seam
Issue Type: Bug
Reporter: Norman Richards
Assigned To: Pete Muir
Fix For: 2.0.1.GA
CR1 tests are failing:
[testng] FAILED: testAddArtist
[testng] java.lang.AssertionError
[testng] at org.jboss.seam.example.seamdiscs.test.EditArtistTest$5.renderResponse(EditArtistTest.java:172)
[testng] at org.jboss.seam.mock.BaseSeamTest$Request.renderResponsePhase(BaseSeamTest.java:625)
[testng] at org.jboss.seam.mock.BaseSeamTest$Request.emulateJsfLifecycle(BaseSeamTest.java:609)
[testng] at org.jboss.seam.mock.BaseSeamTest$Request.access$300(BaseSeamTest.java:182)
[testng] at org.jboss.seam.mock.BaseSeamTest$Request$2.doFilter(BaseSeamTest.java:517)
[testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
[testng] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
[testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
[testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
[testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
[testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
[testng] at org.jboss.seam.mock.BaseSeamTest$Request.run(BaseSeamTest.java:512)
[testng] at org.jboss.seam.example.seamdiscs.test.EditArtistTest.testAddArtist(EditArtistTest.java:165)
[testng] ... Removed 22 stack frames
[testng] FAILED: testAddBand
[testng] java.lang.AssertionError
[testng] at org.jboss.seam.example.seamdiscs.test.EditArtistTest$8.renderResponse(EditArtistTest.java:255)
[testng] at org.jboss.seam.mock.BaseSeamTest$Request.renderResponsePhase(BaseSeamTest.java:625)
[testng] at org.jboss.seam.mock.BaseSeamTest$Request.emulateJsfLifecycle(BaseSeamTest.java:609)
[testng] at org.jboss.seam.mock.BaseSeamTest$Request.access$300(BaseSeamTest.java:182)
[testng] at org.jboss.seam.mock.BaseSeamTest$Request$2.doFilter(BaseSeamTest.java:517)
[testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
[testng] at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
[testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
[testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
[testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
[testng] at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
[testng] at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
[testng] at org.jboss.seam.mock.BaseSeamTest$Request.run(BaseSeamTest.java:512)
[testng] at org.jboss.seam.example.seamdiscs.test.EditArtistTest.testAddBand(EditArtistTest.java:248)
[testng] ... Removed 22 stack frames
[testng]
--
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
17 years
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2363) Workspace management and JSF navigation(681)
by koen handekyn (JIRA)
Workspace management and JSF navigation(681)
--------------------------------------------
Key: JBSEAM-2363
URL: http://jira.jboss.com/jira/browse/JBSEAM-2363
Project: JBoss Seam
Issue Type: Bug
Components: Documentation
Reporter: koen handekyn
the current documentation describes pages.xml as
<pages>
<page view-id="/main.xhtml">Search hotels: #{hotelBooking.searchString}</page>
<page view-id="/hotel.xhtml">View hotel: #{hotel.name}</page>
<page view-id="/book.xhtml">Book hotel: #{hotel.name}</page>
<page view-id="/confirm.xhtml">Confirm: #{booking.description}</page>
</pages>
while the description should now also be within a description subtag (example booking)
<page view-id="/hotel.xhtml"
conversation-required="true"
login-required="true">
<description>View hotel: #{hotel.name}</description>
<navigation from-action="#{hotelBooking.bookHotel}">
<redirect view-id="/book.xhtml"/>
</navigation>
</page>
--
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
17 years
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2417) Add ability to serve PDFs with "content-disposition:attachment"
by Alex Savitsky (JIRA)
Add ability to serve PDFs with "content-disposition:attachment"
---------------------------------------------------------------
Key: JBSEAM-2417
URL: http://jira.jboss.com/jira/browse/JBSEAM-2417
Project: JBoss Seam
Issue Type: Feature Request
Components: PDF
Reporter: Alex Savitsky
Currently, all PDFs are served with "content-disposition:inline", which doesn't give users a chance to save the PDF until it's opened. Our users have requested this feature in our apps, but there are no such capabilities in Seam PDF as of yet, as far as I can see.
Currently, my workaround involves patching org.jboss.seam.pdf.ui.UIDocument (patch attached), and executing PDF generation via:
try {
renderer.render("/report.xhtml");
} catch (Exception e) {
facesMessages.add("Error generating report: " + e.getMessage());
return;
}
DocumentData data = UIDocument.getDocData();
// now we can output the generated PDF in the usual way, via response.getoutputStream().write(data.getData()),
// setting the content-disposition as we please
However, I realize this might not be the most preferred way, so suggestions are welcome here :)
Regards,
Alex
--
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
17 years