I have JSF with Richfaces app on Glassfish server. Is it possible to make an ajax window on the page and show info from Glassfish's log file that is located in [GlassfishFolder]/domains/domain1/logs/server.log? And also I want to clean up that log to make it look like in NetBeans. Thanks
+1
A:
Yes,
Create a commandLink
<a4j:commandLink action="#{Bean.method}" reRender="output" />
Create output to view server.log contents
<h:outputText id="output" value="#{Bean.logcontent}" />
Bean.method pulls the contents of server.log (see java file io) and stores it in the logcontent variable. When output is re-rendered it will display the server.log file.
You can manipulate logcontent in your Bean to make the output look however you wish.
Mark Robinson
2009-02-17 15:52:56