java - Action Audit on a JSF with just a Primefaces DataTable -


i auditing user actions on project , having following issue.
there functionality called audit log, lists complete set of audited actions performed user on system. whenever user lists audit log action needs audited well.
jsf page audit log made following:

<ui:composition ...>     <ui:define name="content">         <h:form id="audit_list">             <h:panelgrid columns="1">                 <p:breadcrumb>                     <p:menuitem value="#{i18n['xxx']}" url="index.xhtml" />                     <p:menuitem value="#{i18n['yyy']}"/>                 </p:breadcrumb>                 <p:panel header="#{i18n['zzz']}">                     <p:datatable var="auditentry"                                  value="#{auditlist.allauditentries}"                                  paginator="true"                                  rows="10"                                  paginatorposition="top"                                  dynamic="false">                         <p:column sortby="#{i18n[auditentry.category]}"                                   filterby="#{i18n[auditentry.category]}">                             column here                         </p:column>                         <p:column sortby="#{auditentrydescriptioni18n[auditentry]}"                                   filterby="#{auditentrydescriptioni18n[auditentry]}">                             column here                         </p:column>                         <p:column sortby="#{auditentry.username}"                                   filterby="#{auditentry.username}">                             column here                         </p:column>                         <p:column id="problematiccolumn"                                sortby="#{auditentry.occurredon}"                               filterby="#{auditentry.occurredon}">                               <f:facet name="header">                                        <h:outputtext value="#{i18n['aaa']}"/>                               </f:facet>                               <h:outputtext value="#{auditentry.occurredon}">                                             <f:convertdatetime type="date"                                                    ___i suspect pattern giving problem..___                                                   pattern="{auditlist.listdateformat.stringvalue}"                                                   timezone="#{sessionbean.servertimezone}"/>                                </h:outputtext>                          </p:column>                     </p:datatable>                 </p:panel>             </h:panelgrid>         </h:form>     </ui:define> </ui:composition> 

i have auditing action on particular code snippet:

<p:datatable var="auditentry"              value="#{auditlist.allauditentries}"              paginator="true"              rows="10"              paginatorposition="top"              dynamic="false"> 

my backing bean:

public list<auditentry> getallauditentries()     {         auditfacade.createauditentry(function creates audit entry);         return allauditentries;     } 

the problem of performing auditting on named action of backing bean following: flooded audit log 1 flooded audit log 2

need way have registration of consulting audit log once, , not being shown on images. ideas? way user jsf or related tag guarantee above?

tl;dr having primefaces datatable on jsf page, how audit opening of such page in way have audit registration on single row, not shown on images.
pd: isnt feasible re-edit repetitive audit entries filtering them time difference

if possible put managedbean in requestscope call createauditentry method in bean`s constructor. called once per request.

regards.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -