Google reCAPTCHA V3 wicket component?

2020-01-17 Thread Chris Colman
Does anyone know if anyone has already created a Wicket component that 
encapsulates Google reCAPTCHA V3?


I'm thinking it should be possible to have such a component that is 
simply added to a form like any other form component and then at 
submission, if Google thinks it's a Bot then the component throws a 
validation error ("Submission blocked: You are probably a bot") 
otherwise the form is submitted without obstruction.


I have searched for such a component but have not yet found one.

Regards,

Chrisco



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



Re: Dealing with editing of nested objects in a multiple screens for a single entity

2020-01-17 Thread Sven Meier

Hi Bas,

>set of custom models that remembers what was provided in “setObject” 
and can later replay this


in my experience most attempts on putting to much logic into model 
implementations have failed.
Long class names (ahem NestedPropertyChangeListenerModel) or deeply 
nested model delegations are warning signs for me.


Change tracking is hard, so I'd advice to work directly on your entities.
I'd go with a) or c) "always keep a default variant in the product".

Have fun
Sven



On 16.01.20 11:41, Bas Gooren wrote:

Hi all!

I’m currently working on an editing system which has composite elements;

For example:

We store Products (e.g. an iPod 64GB) and those Products have Variants
(Blue).
Since a variant cannot exist without a product, and we want to enforce that
every product has at least one variant, we want to implement this in a
single screen.
So here the Product is a composite which contains one or more Variants.

To extend my example: a Variant has pricing based on Country, Website etc.
So the Variant is also a composite;

In all previous projects we either
a) relaxed the requirements, like don’t require a product to have at least
one variant, which means the creation of variants happens when the Product
already exists
b) perform all editing in a single form, so everything is committed in one
go

But since our composites are more complex in this project, the UI becomes a
bit crazy, so we want to break out the nested editors.
Essentially this requires us to build some sort of change tracking feature,
like a set of custom models that remembers what was provided in “setObject”
and can later replay this.
We can then track all changes that happen in editors, and replay those
changes later (e.g. when the Product editor is submitted).

Given that we want to support nested composites (Product -> List of Variant
-> List of VariantPrice), this can get quite complex.

So before embarking on this, I’d like to ask if others have implemented a
similar system, or if they have other suggestions.

I seem to recall that a long time ago there was discussion about this as
well, perhaps it was regarding a really complex
NestedPropertyChangeListenerModel (;-)) at topicus or hippo or similar.
I think it was ultimately refactored into something much simpler due to the
difficulty in maintaining it.
But alas, I cannot seem to find any mention of it anymore.

Thank you all for reading and any input you can provide.

Met vriendelijke groet,
Kind regards,

Bas Gooren



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



Re: WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference

2020-01-17 Thread Francois Meillet
Hi Prasanna,

Could you make a quickstart ?

François



> Le 17 janv. 2020 à 19:29, prasanna bajracharya 
>  a écrit :
> 
> Dear Wicket Community,
> 
> I am a new to wicket. I am trying to run someone else's legacy code in my
> local machine which is currently working in production environment. All my
> MyPanel.java, MyPanel.html and MyPanel.properties are in same package but
> still i'm getting following error in my weblogic console:
> 
> [image: enter image description here] 
> 
> Below is my Project structure for one of the component "sessionId": [image:
> enter image description here] 
> 
> I am using Ant build.xml to create MyApplication.jar and deploy it in my
> local weblogic server. I'm using eclipse as my IDE.
> 
> 
> Best regards,
> 
> Prasanna


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



WicketRuntimeException: The component(s) below failed to render. A common problem is that you have added a component in code but forgot to reference

2020-01-17 Thread prasanna bajracharya
Dear Wicket Community,

I am a new to wicket. I am trying to run someone else's legacy code in my
local machine which is currently working in production environment. All my
MyPanel.java, MyPanel.html and MyPanel.properties are in same package but
still i'm getting following error in my weblogic console:

[image: enter image description here] 

Below is my Project structure for one of the component "sessionId": [image:
enter image description here] 

I am using Ant build.xml to create MyApplication.jar and deploy it in my
local weblogic server. I'm using eclipse as my IDE.


Best regards,

Prasanna


Re: OOM: Direct buffer memory

2020-01-17 Thread Илья Нарыжный
Yes. Pretty sure.
But it might be something indirect: for example, during building of our
next docker image with the newer wicket, some openjdk/maven/libs newer
dependency was picked up as well.
That's something which we are evaluating.

Thanks,
Ilya
-
Orienteer(http://orienteer.org) - open source Business Application
Platform

On Fri, Jan 17, 2020, 12:15 AM Sven Meier  wrote:

> Hi,
>
> I don't see anything related in the changes from 8.5 to 8.6.1
>
> https://github.com/apache/wicket/blob/wicket-8.x/CHANGELOG-8.x
>
> Are you sure these OOMs didn't happen before?
>
> Sven
>
>
> On 16.01.20 22:52, Илья Нарыжный wrote:
> > Sven,
> >
> > It was 8.5 - so not so far away.
> >
> > Thanks,
> > Ilya
> > -
> > Orienteer(http://orienteer.org) - open source Business Application
> Platform
> >
> > On Thu, Jan 16, 2020 at 11:41 AM Sven Meier  wrote:
> >> What was your previous version?
> >>
> >> Sven
> >>
> >> Am 16. Januar 2020 19:27:19 MEZ schrieb "Илья Нарыжный"  >:
> >>> Hello,
> >>>
> >>> After upgrading to Wicket 8.6.1 we started seeing periodical OOMs in
> >>> logs like below.
> >>> I'm not 100% sure that it's due to Wicket, but we didn't change
> >>> containers parameters and etc - so at least it's quite suspicious.
> >>> Our startup flags:
> >>> -XX:+PerfDisableSharedMem -Xmx4G -Xms4G -XX:MaxDirectMemorySize=4G
> >>> -XX:+HeapDumpOnOutOfMemoryError
> >>> -XX:HeapDumpPath=/app/runtime/heapdump.bin
> >>>
> >>> Btw, except these exceptions in logs - no other negative effects (at
> >>> least we didn't reveal so far).
> >>>
> >>> If you have ideas - I will really appreciate.
> >>>
> >>> java.lang.OutOfMemoryError: Direct buffer memory
> >>> at java.nio.Bits.reserveMemory(Bits.java:666)
> >>> at java.nio.DirectByteBuffer.(DirectByteBuffer.java:123)
> >>> at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
> >>> at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:241)
> >>> at sun.nio.ch.IOUtil.write(IOUtil.java:58)
> >>> at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778)
> >>> at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764)
> >>> at
> >>>
> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:352)
> >>> at
> >>>
> org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:185)
> >>> at
> >>>
> org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:217)
> >>> at
> >>>
> org.apache.wicket.pageStore.AbstractPageStore.storePageData(AbstractPageStore.java:119)
> >>> at
> >>>
> org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:66)
> >>>
> >>> Thanks,
> >>> Ilya
> >>> -
> >>> Orienteer(http://orienteer.org) - open source Business Application
> >>> Platform
> >>>
> >>> -
> >>> 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
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: An open source devops platform completely created with Wicket

2020-01-17 Thread Andrea Del Bene
Hi Robin and congratulation for you excellent work! And thanks for sharing
it.
It's always good finding other people who feel in discomfort with modern "
fashionable" JS frameworks :-).

On Fri, Jan 17, 2020 at 9:51 AM Martin Grigorov 
wrote:

> Thank you for sharing it with us, Robin!
>
> It looks awesome!
>
> On Fri, Jan 17, 2020 at 2:26 AM Robin Shen  wrote:
>
> > Dear wicket users,
> >
> > I'd like to introduce OneDev, an open source all-in-one devops platform:
> > https://github.com/theonedev/onedev
> >
> > It is created completely with Wicket with only one person. I know that
> > there are modern and fashion techniques such as React/Vue, but I still
> feel
> > that Wicket is the most suitable framework for this product, considering
> > that I can work with the same set of code from front-end to back-end,
> with
> > Java's mature libraries and toolings. I must say I gain great
> productivity
> > with Wicket.
> >
> > Hope this product is useful to someone.
> >
> > Robin
> >
>


-- 
Andrea Del Bene.
Apache Wicket committer.


Re: An open source devops platform completely created with Wicket

2020-01-17 Thread Martin Grigorov
Thank you for sharing it with us, Robin!

It looks awesome!

On Fri, Jan 17, 2020 at 2:26 AM Robin Shen  wrote:

> Dear wicket users,
>
> I'd like to introduce OneDev, an open source all-in-one devops platform:
> https://github.com/theonedev/onedev
>
> It is created completely with Wicket with only one person. I know that
> there are modern and fashion techniques such as React/Vue, but I still feel
> that Wicket is the most suitable framework for this product, considering
> that I can work with the same set of code from front-end to back-end, with
> Java's mature libraries and toolings. I must say I gain great productivity
> with Wicket.
>
> Hope this product is useful to someone.
>
> Robin
>


Re: OOM: Direct buffer memory

2020-01-17 Thread Sven Meier

Hi,

I don't see anything related in the changes from 8.5 to 8.6.1

https://github.com/apache/wicket/blob/wicket-8.x/CHANGELOG-8.x

Are you sure these OOMs didn't happen before?

Sven


On 16.01.20 22:52, Илья Нарыжный wrote:

Sven,

It was 8.5 - so not so far away.

Thanks,
Ilya
-
Orienteer(http://orienteer.org) - open source Business Application Platform

On Thu, Jan 16, 2020 at 11:41 AM Sven Meier  wrote:

What was your previous version?

Sven

Am 16. Januar 2020 19:27:19 MEZ schrieb "Илья Нарыжный" :

Hello,

After upgrading to Wicket 8.6.1 we started seeing periodical OOMs in
logs like below.
I'm not 100% sure that it's due to Wicket, but we didn't change
containers parameters and etc - so at least it's quite suspicious.
Our startup flags:
-XX:+PerfDisableSharedMem -Xmx4G -Xms4G -XX:MaxDirectMemorySize=4G
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/app/runtime/heapdump.bin

Btw, except these exceptions in logs - no other negative effects (at
least we didn't reveal so far).

If you have ideas - I will really appreciate.

java.lang.OutOfMemoryError: Direct buffer memory
at java.nio.Bits.reserveMemory(Bits.java:666)
at java.nio.DirectByteBuffer.(DirectByteBuffer.java:123)
at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:241)
at sun.nio.ch.IOUtil.write(IOUtil.java:58)
at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778)
at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764)
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:352)
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:185)
at
org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:217)
at
org.apache.wicket.pageStore.AbstractPageStore.storePageData(AbstractPageStore.java:119)
at
org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:66)

Thanks,
Ilya
-
Orienteer(http://orienteer.org) - open source Business Application
Platform

-
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



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