Re: best way to get wysiwyg with wicket

2020-04-03 Thread Martin Spielmann
Hi,

if your app uses Bootstrap and you are OK to stay with HTML, you can
have at the SummernoteEditor from the excellent wicket-bootstrap-
extenstions library. Example here:
https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/bc567ae0f77497216720f909e1b2e55a929e25cd/bootstrap-samples/src/main/java/de/agilecoders/wicket/samples/pages/SummernotePage.java
We use it all the time and it's simple yet powerful.
I don't think the image feature is supported out-of-the-box, but I
imagine it should not be too hard to add.

Apart from that, the idea to go with markdown sounds also promising.
Best regards,
Martin

On Fri, 2020-04-03 at 20:24 +0200, Korbinian Bachl wrote:
> Hi,
> 
> I need to be able to let complete novices edit and write nicely
> formatted texts in an backend thats powered by wicket (required e.g.:
> H1-H4, normal text, bold text, images - only simple stuff mostly).
> In the past I used the ckeditor but that outputs html and Im not sure
> that cluttering font sizes and stuff like that into anything that
> needs later be to transformed to be used on either desktop or mobile
> in the year 2020 is still as sufficent as it was 10 years ago. So I
> stumbled over markdown that might be a way to avoid this, but not
> sure If I missed somthing better?
> 
> Beside, has any of you an idea where to look at to put this together
> with wicket, especially as I need to be able to have them insert
> images from some gallery picker that gets its image-resources from
> some kind of dataprovider.
> 
> Any idea or solution is greatly appreciated. I know this is not pure
> wicket related stuff but I hope its still ok to ask here.
> 
> Best,
> 
> KB
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 


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



Re: Wicket blog

2019-11-09 Thread Martin Spielmann
The last post is exactly what I needed some days ago :)
Nice blog, thank you Roman!



Am 9. November 2019 20:46:44 MEZ schrieb Roman Sery :
>Thank you François, much appreciated!
>
>On Sat, Nov 9, 2019 at 1:39 PM Francois Meillet
>
>wrote:
>
>> Hi Roman,
>>
>> FYI : https://twitter.com/apache_wicket/status/1193233346798723072 <
>> https://twitter.com/apache_wicket/status/1193233346798723072>
>>
>> François
>>
>>
>>
>> > Le 9 nov. 2019 à 18:02, Roman Sery  a écrit
>:
>> >
>> > Hello,
>> > I have been working with Wicket for many years now and really love
>it,
>> and
>> > I've started a blog focusing on Wicket.
>> > I'm hoping it could be included in this list of blogs:
>> > https://wicket.apache.org/learn/blogs.html#get-your-blog-listed
>> >
>> > Thanks!
>> > My blog is
>> > https://www.coderdreams.com/
>>
>>

-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

Re: Apache Wicket & Static Analysis Security Testing

2019-03-12 Thread Martin Spielmann
Hi,

I would also always go for static code analysis if you have the possibility. 
Using Sonarqube I never had any Wicket related issues in the past.
I can remember one rule (from the default java ruleset) that had to be 
customized because it identified the use of anonymous inner classes as bad 
behavior. However, this is pretty common with Wicket. 
Everything else works just fine with the defaults.

Best regards, 
Martin


Am 12. März 2019 17:37:24 MEZ schrieb lu...@k40s.net:
>Hi,
>
>I use the FindBugs (SpotBugs) plugin for IntelliJ to scan for 
>vulnerabilities. It's actually not made for security bugs but there is
>a 
>plugin (FindSecBugs) with a focus on that.
>
>In any case I'd say that it makes sense to use static code analyzers 
>whenever possible.
>Most of the found bugs will be Java related anyways.
>
>Regards
>
>Lukas Fülling
>
>Am 2019-03-12 15:36, schrieb Eric Gulatee:
>> Hello Wicketeers,
>> 
>> Does anyone know if there are any SAST (Static Analysis Security
>> Testing) tools (Commercial or OpenSource) that support Apache Wicket?
>> https://www.owasp.org/index.php/Source_Code_Analysis_Tools
>> 
>> Is there value in adopting a SAST tool if it doesn’t explicitly
>> support the apache wicket framework?
>> 
>> --
>> Cheers,
>> 
>> Eric Gulatee
>> NYS OSC AppDev Enterprise Architect  [Garnet River & Abilis]
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org

-- 
Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.

Re: Handling session timeout properly

2016-09-22 Thread Martin Spielmann
You could extend your existing AjaxSelfUpdatingTimerBehavior so it has
an information about your desired timeout with very little overhead.

On every update, you could decrement your remaining session time a
little bit.

I created the following gist. I think the code is more explanatory than
an email:
https://gist.github.com/pingunaut/feb5611afa910465f0c05f8a903af8b3

Hope that helps,
regards,
Martin


On Thu, 2016-09-22 at 03:38 -0700, Sandor Feher wrote:
> Hi,
> 
> My application have some AjaxSelfUpdatingTimerBehavior in its header
> panel
> so my session never expires due to ajax requests. Somehow I would
> like to
> get rid of it.
> How is it possible to fence ajax request from the real request ? (As
> I
> realized there is no way.)
> I need an advice how to handle this screnario.
> 
> Wicket 6.24.0
> 
> TIA, Sandor
> 
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.
> com/Handling-session-timeout-properly-tp4675541.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

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



Re: Tool for finding missing translations in properties.xml

2016-07-20 Thread Martin Spielmann
We faced the ame problem and created a small maven plugin.
Now that i heard that others might need this too, i uploaded our
solution to github: https://github.com/pingunaut/wicketmessages-maven-p
lugin

It's a small maven plugin available from maven central which generates
an excel file from your properties.xml files, so you can easily sort,
filter, ...

To test it you can simply type:

mvn com.pingunaut.maven.plugin:wicketmessages-maven-plugin:generateXls

This will generate a file called messages.xlsx in your project's root
folder.


Don't expect to much we just started to use it by ourselves so this
still in development...

Hope it helps,

Best regards
Martin

On Sun, 2016-07-10 at 11:58 +0200, Thorsten Schöning wrote:
> Guten Tag Per Newgro,
> am Freitag, 8. Juli 2016 um 16:37 schrieben Sie:
> 
> > 
> > I wrote my own tool as my search wasn't successful. But it is
> > simply a
> > main method loading the files and compares keys.
> 
> Thanks, I had the same approach in my mind.
> 
> Mit freundlichen Grüßen,
> 
> Thorsten Schöning
> 

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



Re: wicket 6.x / java.text.ParseException on multiple div's

2016-05-15 Thread Martin Spielmann
Hello Korbinian,

the error message tells you about a duplicated attribute. Please check if there 
is a tag looking like this in your code:





E.g. smth like this:

Happened some times to me...

Best regards,
Martin



Am 15. Mai 2016 11:39:30 MESZ, schrieb Korbinian Bachl 
:
>Hello,
>
>I'm still on migrating a big wicket 1.4 app to wicket 6.23, and I now
>got a problem I dont know how to solve. A page throws following error:
>
>java.text.ParseException: Same attribute found twice: div (line 163,
>column 52)
>at
>org.apache.wicket.markup.parser.XmlPullParser.parseTagText(XmlPullParser.java:698)
>at
>org.apache.wicket.markup.parser.XmlPullParser.next(XmlPullParser.java:311)
>
>
>so far I would expect this to happen on wrong/ malformed HTML - but my
>HTML is fine is indeed needed this way!
>
>complained HTML:
>
>
>
>      
>           content
>               
>        
>        
>              content
>        
>
>
>So what is going on here? Why does wicket complain about those poor
>div's? Is there any way I can disable this check for div's??? For me
>this behaviour seems as a bug as div following a div is perfectly fine
>HTML code?
>
>Best,
>
>Korbinian
>
>-
>To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>For additional commands, e-mail: users-h...@wicket.apache.org

-- 
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.

Re: Input Stream DownloadLink

2016-01-06 Thread Martin Spielmann
Thanks a lot for the feedback,

i'll try to improve things according to these hints. Maybe i'm able to do some 
performance measurements also. If the outcome is something useful i'll share 
the results again.

Best regards,
Martin



On Wednesday, January 06, 2016 08:45:25 AM Martin Grigorov wrote:
> Hi,
> 
> Thanks for sharing your component with us!
> 
> In the "about" section you use LoadableDetachableModel that returns
> InputStream. For single use this would work fine, but if you try to use
> this model second time in the same request then it may fail depending on
> the type of the InputStream because you may need to reset it. I cannot
> imagine now a use case where you will need to use it second time in the
> same request but I also see no reason to use LDM. Using
> AbstractReadOnlyModel looks better to me.
> 
> Apart from that I think you can use "new ResourceLink(String, IResource)"
> for the same kind of tasks. E.g. with ByteArrayResource that either accepts
> its byte[] as constructor parameter or loads it dynamically by overriding
> #getData().
> 
> Happy New Year!
> 
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
> On Wed, Jan 6, 2016 at 12:16 AM, Martin Spielmann <
> 
> martin.spielm...@pingunaut.com> wrote:
> > Hello all,
> > 
> > I just published a small version of a download link which enables you to
> > serve
> > any data coming from an InputStream for download.
> > 
> > https://github.com/pingunaut/wicket-stream-download-example
> > 
> > I used that one in multiple projects now, so I thought it could be
> > interesting
> > for other people too.
> > Just wanted to hear, if there any need for this one out there before
> > spending
> > more effort for docs and error handling.
> > 
> > Happy new year!
> > 
> > 
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org

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



Input Stream DownloadLink

2016-01-05 Thread Martin Spielmann
Hello all,

I just published a small version of a download link which enables you to serve 
any data coming from an InputStream for download.

https://github.com/pingunaut/wicket-stream-download-example

I used that one in multiple projects now, so I thought it could be interesting 
for other people too. 
Just wanted to hear, if there any need for this one out there before spending 
more effort for docs and error handling.

Happy new year!


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