Re: Log tailer sample?

2017-01-11 Thread Francesco Chicchiriccò

On 11/01/2017 16:39, Martin Grigorov wrote:

Thanks for sharing, Francesco!

Small feedback:

- for us (Wicket users) it would be useful to have an url to the
implementation of the log viewer (Apache Git or GitHub)


Here you go:

https://github.com/apache/syncope/blob/2_0_X/client/console/src/main/java/org/apache/syncope/client/console/pages/LogViewer.java
https://github.com/apache/syncope/blob/2_0_X/client/console/src/main/resources/org/apache/syncope/client/console/pages/LogViewer.html
https://github.com/apache/syncope/blob/2_0_X/client/console/src/main/java/org/apache/syncope/client/console/panels/LogStatementPanel.java
https://github.com/apache/syncope/blob/2_0_X/client/console/src/main/resources/org/apache/syncope/client/console/panels/LogStatementPanel.html


- mount the pages so that they have a nicer (user friendly) url instead of
/wicket/bookmarkable/


Yep I know, though I don't see it so necessary as the sole way to get to 
it is to authenticate to the main application and click onto the 
dedicated button... I will think about this option anyway, thanks!


Regards.


On Wed, Jan 11, 2017 at 12:01 PM, Francesco Chicchiriccò  
wrote:


Hi,
FYI here are the results:

http://blog.tirasa.net/apache-syncope-2.0-the-new-log-viewer.html

Regards.


On 05/01/2017 13:38, Francesco Chicchiriccò wrote:


On 05/01/2017 13:28, Martin Grigorov wrote:


On Thu, Jan 5, 2017 at 1:23 PM, Francesco Chicchiriccò <
ilgro...@apache.org>
wrote:

On 03/01/2017 17:17, Francesco Chicchiriccò wrote:

Hi all,

is there any sample about building a log tailer with Wicket? I have
found
[1] [2] so far.

FYI I went ahead and I am almost done with implementation:

essentially, it
is a ListView dinamically updated with data received via WebSocket.

I have only an issue left at this point: when the ListView is updated,
the
scrollbar is moved to top, while I would like to leave it in the
position
it had before the refresh.
Any idea?

This is because you repaint/replace the whole ListView.

It would be better if you just add the new item at the bottom.
See
http://wicketinaction.com/2008/10/repainting-only-newly-crea
ted-repeater-items-via-ajax/


Thanks, Martin.
I am however not only adding new items at the bottom, but also
potentially removing items from the top (the maximum number of log
statements to keep is fixed, to avoid memory issues).

I thought that jQuery's scroll lock could have been used in this case...

Regards.

[1] 
http://apache-wicket.1842946.n4.nabble.com/How-to-build-a-hudson-jenkins-like-live-log-viewer-td4090224.html
[2] 
https://github.com/steveswinsburg/sakai-logviewer/blob/master/src/java/org/sakaiproject/logviewer/pages/View.java


--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Log tailer sample?

2017-01-11 Thread Martin Grigorov
Thanks for sharing, Francesco!

Small feedback:

- for us (Wicket users) it would be useful to have an url to the
implementation of the log viewer (Apache Git or GitHub)
- mount the pages so that they have a nicer (user friendly) url instead of
/wicket/bookmarkable/

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Jan 11, 2017 at 12:01 PM, Francesco Chicchiriccò <
ilgro...@apache.org> wrote:

> Hi,
> FYI here are the results:
>
> http://blog.tirasa.net/apache-syncope-2.0-the-new-log-viewer.html
>
> Regards.
>
>
> On 05/01/2017 13:38, Francesco Chicchiriccò wrote:
>
>> On 05/01/2017 13:28, Martin Grigorov wrote:
>>
>>> On Thu, Jan 5, 2017 at 1:23 PM, Francesco Chicchiriccò <
>>> ilgro...@apache.org>
>>> wrote:
>>>
>>> On 03/01/2017 17:17, Francesco Chicchiriccò wrote:

 Hi all,
> is there any sample about building a log tailer with Wicket? I have
> found
> [1] [2] so far.
>
> FYI I went ahead and I am almost done with implementation:
 essentially, it
 is a ListView dinamically updated with data received via WebSocket.

 I have only an issue left at this point: when the ListView is updated,
 the
 scrollbar is moved to top, while I would like to leave it in the
 position
 it had before the refresh.
 Any idea?

 This is because you repaint/replace the whole ListView.
>>> It would be better if you just add the new item at the bottom.
>>> See
>>> http://wicketinaction.com/2008/10/repainting-only-newly-crea
>>> ted-repeater-items-via-ajax/
>>>
>>
>> Thanks, Martin.
>> I am however not only adding new items at the bottom, but also
>> potentially removing items from the top (the maximum number of log
>> statements to keep is fixed, to avoid memory issues).
>>
>> I thought that jQuery's scroll lock could have been used in this case...
>>
>> Regards.
>>
>> [1] http://apache-wicket.1842946.n4.nabble.com/How-to-build-a-hu
>>> dson-jenkins-like-live-log-viewer-td4090224.html
>>> [2] https://github.com/steveswinsburg/sakai-logviewer/blob/
>>> master/src/java/org/sakaiproject/logviewer/pages/View.java
>>>
>>
> --
> Francesco Chicchiriccò
>
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
>
> Member at The Apache Software Foundation
> Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> http://home.apache.org/~ilgrosso/
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Log tailer sample?

2017-01-11 Thread Francesco Chicchiriccò

Hi,
FYI here are the results:

http://blog.tirasa.net/apache-syncope-2.0-the-new-log-viewer.html

Regards.

On 05/01/2017 13:38, Francesco Chicchiriccò wrote:

On 05/01/2017 13:28, Martin Grigorov wrote:
On Thu, Jan 5, 2017 at 1:23 PM, Francesco Chicchiriccò 


wrote:


On 03/01/2017 17:17, Francesco Chicchiriccò wrote:


Hi all,
is there any sample about building a log tailer with Wicket? I have 
found

[1] [2] so far.

FYI I went ahead and I am almost done with implementation: 
essentially, it

is a ListView dinamically updated with data received via WebSocket.

I have only an issue left at this point: when the ListView is 
updated, the
scrollbar is moved to top, while I would like to leave it in the 
position

it had before the refresh.
Any idea?


This is because you repaint/replace the whole ListView.
It would be better if you just add the new item at the bottom.
See
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ 



Thanks, Martin.
I am however not only adding new items at the bottom, but also 
potentially removing items from the top (the maximum number of log 
statements to keep is fixed, to avoid memory issues).


I thought that jQuery's scroll lock could have been used in this case...

Regards.

[1] 
http://apache-wicket.1842946.n4.nabble.com/How-to-build-a-hudson-jenkins-like-live-log-viewer-td4090224.html
[2] 
https://github.com/steveswinsburg/sakai-logviewer/blob/master/src/java/org/sakaiproject/logviewer/pages/View.java


--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Log tailer sample?

2017-01-05 Thread Francesco Chicchiriccò

On 05/01/2017 13:28, Martin Grigorov wrote:

On Thu, Jan 5, 2017 at 1:23 PM, Francesco Chicchiriccò 
wrote:


On 03/01/2017 17:17, Francesco Chicchiriccò wrote:


Hi all,
is there any sample about building a log tailer with Wicket? I have found
[1] [2] so far.


FYI I went ahead and I am almost done with implementation: essentially, it
is a ListView dinamically updated with data received via WebSocket.

I have only an issue left at this point: when the ListView is updated, the
scrollbar is moved to top, while I would like to leave it in the position
it had before the refresh.
Any idea?


This is because you repaint/replace the whole ListView.
It would be better if you just add the new item at the bottom.
See
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/


Thanks, Martin.
I am however not only adding new items at the bottom, but also 
potentially removing items from the top (the maximum number of log 
statements to keep is fixed, to avoid memory issues).


I thought that jQuery's scroll lock could have been used in this case...

Regards.


[1] 
http://apache-wicket.1842946.n4.nabble.com/How-to-build-a-hudson-jenkins-like-live-log-viewer-td4090224.html
[2] 
https://github.com/steveswinsburg/sakai-logviewer/blob/master/src/java/org/sakaiproject/logviewer/pages/View.java


--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Log tailer sample?

2017-01-05 Thread Martin Grigorov
On Thu, Jan 5, 2017 at 1:23 PM, Francesco Chicchiriccò 
wrote:

> On 03/01/2017 17:17, Francesco Chicchiriccò wrote:
>
>> Hi all,
>> is there any sample about building a log tailer with Wicket? I have found
>> [1] [2] so far.
>>
>
> FYI I went ahead and I am almost done with implementation: essentially, it
> is a ListView dinamically updated with data received via WebSocket.
>
> I have only an issue left at this point: when the ListView is updated, the
> scrollbar is moved to top, while I would like to leave it in the position
> it had before the refresh.
> Any idea?
>

This is because you repaint/replace the whole ListView.
It would be better if you just add the new item at the bottom.
See
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/


>
> TIA
>
> Regards.
>
> [1] http://apache-wicket.1842946.n4.nabble.com/How-to-build-a-hu
>> dson-jenkins-like-live-log-viewer-td4090224.html
>> [2] https://github.com/steveswinsburg/sakai-logviewer/blob/
>> master/src/java/org/sakaiproject/logviewer/pages/View.java
>>
>
> --
> Francesco Chicchiriccò
>
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
>
> Member at The Apache Software Foundation
> Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> http://home.apache.org/~ilgrosso/
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Log tailer sample?

2017-01-05 Thread Francesco Chicchiriccò

On 03/01/2017 17:17, Francesco Chicchiriccò wrote:

Hi all,
is there any sample about building a log tailer with Wicket? I have 
found [1] [2] so far.


FYI I went ahead and I am almost done with implementation: essentially, 
it is a ListView dinamically updated with data received via WebSocket.


I have only an issue left at this point: when the ListView is updated, 
the scrollbar is moved to top, while I would like to leave it in the 
position it had before the refresh.

Any idea?

TIA
Regards.

[1] 
http://apache-wicket.1842946.n4.nabble.com/How-to-build-a-hudson-jenkins-like-live-log-viewer-td4090224.html
[2] 
https://github.com/steveswinsburg/sakai-logviewer/blob/master/src/java/org/sakaiproject/logviewer/pages/View.java


--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Log tailer sample?

2017-01-03 Thread Francesco Chicchiriccò

Hi all,
is there any sample about building a log tailer with Wicket? I have 
found [1] [2] so far.


Thanks in advance.
Regards.

[1] 
http://apache-wicket.1842946.n4.nabble.com/How-to-build-a-hudson-jenkins-like-live-log-viewer-td4090224.html
[2] 
https://github.com/steveswinsburg/sakai-logviewer/blob/master/src/java/org/sakaiproject/logviewer/pages/View.java


--
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org