Methods, machine-accessible media, and systems for displaying and formatting messages in web applications using JavaServer Faces (JSF). A JSF FacesMessage is intercepted before the FacesMessage is sent to a JSP page for display. The FacesMessage may be intercepted by a phase listener monitoring the JSF phases to obtain information from the message. The method may also be extended to handle application-specific messages. A managed bean receives the message information and creates a JSP page segment that provides formatting to the information. The newly created JSP page segment is then displayed in the JSP page instead of the FacesMessage. Preferably, the formatting within the JSP page segment includes additional content selected from a message icon, a message identification code, an additional message segment, and combinations thereof. Furthermore, the JSP page segment may optionally provide advanced features, such as clickable image links for additional information or help.
Legal claims defining the scope of protection, as filed with the USPTO.
1. A computer implemented method, comprising: intercepting a JSF FacesMessage before the FacesMessage is sent to a JSP page for display; interpreting the message information in the FacesMessage; creating a JSF managed bean for storing the interpreted message information; the JSF managed bean creating a JSP page segment that includes the interpreted message information and provides formatting to the interpreted message information; and displaying the JSP page segment in the JSP page instead of the FacesMessage.
2. The method of claim 1 , wherein the formatting within the JSP page segment includes additional content selected from a message icon, a message identification code, and an additional message segment.
3. The method of claim 1 , wherein the formatting within the JSP page segment includes a clickable image link, the method further comprising: displaying an additional message segment related to the information upon activation of the clickable image link.
4. The method of claim 1 , further comprising: sending the JSF FacesMessage to the JSP page for display in a separate segment.
5. The method of claim 4 , wherein the JSF FacesMessage is used to point to a component related to the information in the JSP page segment.
6. The method of claim 1 , wherein the JSF FacesMessage is an application-specific message created by composing or dispatching a message.
7. The method of claim 6 , further comprising: decomposing the application-specific message.
8. The method of claim 6 , further comprising: incorporating language-specific information into the message.
9. A computer program product including computer usable program code embodied on a computer readable storage medium, the computer program product comprising: instructions for intercepting a JSF FacesMessage before the FacesMessage is sent to a JSP page for display; instructions for creating a JSP page segment that includes information from the FacesMessage and formats the information from the Faces Message; and instructions for displaying the JSP page segment in the JSP page instead of the FacesMessage.
10. The computer program product of claim 9 , wherein the instructions for creating a JSP page segment includes instructions for adding content selected from a message icon, a message identification code, and an additional message segment.
11. The computer program product of claim 9 , wherein the instructions for creating a JSP page segment includes instructions for adding a clickable image link, and instructions for displaying an additional message segment related to the information upon activation of the clickable image link.
12. The computer program product of claim 9 , further comprising: instructions for sending the JSF FacesMessage to the JSP page for display in a separate segment.
13. The computer program product of claim 9 , further comprising: instructions for displaying a pointer directed to a component related to the information in the JSP page segment.
14. A computer program product including computer usable program code embodied on a computer readable storage medium, the computer program product comprising: a phase listener for intercepting a JSF FacesMessage before the FacesMessage is sent to a JSP page for display; a managed bean for creating a JSP page segment that includes information from the FacesMessage and formats the information from the FacesMessage; and a JSP page configured to display the JSP page segment instead of the FacesMessage.
15. The computer program product of claim 14 , wherein the managed bean provides additional content that can be included in the JSP page segment for display, wherein the additional content is selected from a message icon, a message identification code, and an additional message segment.
16. The computer program product of claim 14 , wherein the managed bean formats the JSP page segment to include additional content selected from a message icon, a message identification code, and an additional message segment.
17. The computer program product of claim 16 , wherein the managed bean provides the additional content without formatting the additional content.
18. The computer program product of claim 14 , wherein the managed bean formats the JSP page segment to include a clickable image link, wherein an additional message segment related to the information is displayed upon activation of the clickable image link.
19. The computer program product of claim 14 , wherein the phase listener monitors JSF phases.
20. The computer program product of claim 14 , further comprising: a Java servlet that displays content through JSP.
Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.
November 2, 2006
February 22, 2011
Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.