Skip to content

ViewScoped beans of deltaspike are a problem when used with primefaces pGraphicImage to render dynamic content. The StreamedContent data has to be placed in RequestScoped or SessionScoped bean in order to render dynamic content.

Notifications You must be signed in to change notification settings

99sono/delta-spike-dynamic-content_issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

delta-spike-dynamic-content_issue

This project contains an index.xhtml that tries to load the image of a dog through different means, namely:

  • A static jsf resource[] , which works without problem
  • A static jsf resource whose string for the resource comes out of ViewAccessScoped bean, which works without problem.
  • A dynamic primefaces graphic stream coming out a ViewAccessScoped bean property, which does not work, as it appears that view access scope is not enabled when Primefaces dnynamic resource handler tries to evaluate the index.xhtml EL expression
  • A static jsf resource whose string for the resource comes out of RequestScoped bean, which works without problem.
  • A dynamic primefaces graphic stream coming out a RequestScoped bean property, which works without problem

I am opening the issue as a delta-spike probkem, since all standard scoped beans work with prime faces but the especially scoped beans that fall under the delta spike unbrella do not work. However, the prime-faces code also seems to hint that their specialized dynamic content resource handler is bypassing the normal flow of the standard resource handler to handle their special use case....

Ideally either priemfaces or delta-spike would come together to find a resolution to allow view scoped beans to be allowed to host the dynamic content of a page.

Please visit the resources folder for a .docx that illustrates the issue.

Bug reported under:

About

ViewScoped beans of deltaspike are a problem when used with primefaces pGraphicImage to render dynamic content. The StreamedContent data has to be placed in RequestScoped or SessionScoped bean in order to render dynamic content.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published