I have a dataTable with checkbox in header and check box in each row , when checkbox in header is selected all the rows will be selected.
When I select one/more rows a button should be enabled which is happening because a listener is invoked when a row is selected / unselected.
When I select the checkbox in header all the rows are getting selected but the listener is not invoked..what am I missing here..
My xhtml :
My Manager Class :
I am using primefaces-3.5 , javax.faces-2.1.14
I cannot upgrade my primefaces..
I am using log4j.xml in a web application , when I do the following the logs are created but the logs are not written
Stop the application server.
Add war file to deployments folder.
Start the application server.
But , when I do the following the logs are created and also logs are populated as expected.
Start the application server without any war in it.
then add the war file , it gets deployed.
I am build a maven project which have a an other project as dependency.
pom.xml of Project B contains dependency of Project A. What I am looking for is when I build Project B , the project A should build first and should be moved to repository mentioned in my repositories section and then using that project A artifact from maven repo Project B should be built.
I cannot overwrite the log file with the newly added records as the log file is being populated from an external system. But I have the read access to the file and can read the records from it but the problem here is am reading all the records everytime which I do not want.
Richard Tookey - Thank You for the suggestion.
Yes I agree with you, counting the number of lines will not be fast enough since to find the 'n'th line ..
I do not have control over the process of writing the records to the log file.
How do I proceed with the size based approach ?
I want to run a shell script which retrieves only the newly added records from the last time the script is run.
A log file is created at 12:00 pm and new records get added to it every second.
A shell script is made to run every 30 minutes to retrieve the newly added records.
If the script is run at 12:30 pm, it must only the records between 12:00 and 12:30 pm.
If the script is run at 01:00 pm, it must only the records between 12:30 and 01:00 pm.
Note: The log have the date along time but I do not want to trace the records for the date/time.
Can I achieve something like this using the size of the file.
Would it be possible to rotate and create log files based on size. Say, if my maximum limit is 2MB .
Once the log file abc.log reaches size of 2MB a new log file with name abc_1.log should be created and abc.log should become empty.
Again when abc.log reached size of 2MB there should be a new file created with name abc_2.log
Is this possible with log4j.xml in any App Server like JBoss ,Tomcat..
I tried this
But abc.log.1 is created and the rest are not created. Infact , abc.log.1 is getting overidden and the previous logs are lost.