You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Shengche Hsiao <sh...@gmail.com> on 2018/02/13 15:49:30 UTC
Apache Wicket form components and Optional
Dear all
I am using Speedment to manipulating database, when I mark the table filed
allow null, the Speedment generate Optional<String> as it's datatype.
Can I using it with CompoundPropertyModel with TextFile?
--
----------------------------------------------------------------------->
We do this not because it is easy. We do this because it is hard.
----------------------------------------------------------------------->
ShengChe Hsiao
----------------------------------------------------------------------->
front713@gmail.com
front713@tc.edu.tw
----------------------------------------------------------------------->
VoIP : 070-910-2450
----------------------------------------------------------------------->
Re: Apache Wicket form components and Optional
Posted by Shengche Hsiao <sh...@gmail.com>.
Dear Sven
Thanks
On Wed, Feb 14, 2018 at 12:32 AM, Sven Meier <sv...@meiers.net> wrote:
> Hi,
>
> no, that won't work.
>
> You'll have to create your own model implementation, that unwraps value of
> an optional.
>
> Have fun
> Sven
>
>
> Am 13.02.2018 um 16:49 schrieb Shengche Hsiao:
>
>> Dear all
>>
>> I am using Speedment to manipulating database, when I mark the table filed
>> allow null, the Speedment generate Optional<String> as it's datatype.
>>
>> Can I using it with CompoundPropertyModel with TextFile?
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
----------------------------------------------------------------------->
We do this not because it is easy. We do this because it is hard.
----------------------------------------------------------------------->
ShengChe Hsiao
----------------------------------------------------------------------->
front713@gmail.com
front713@tc.edu.tw
----------------------------------------------------------------------->
VoIP : 070-910-2450
----------------------------------------------------------------------->
Re: Apache Wicket form components and Optional
Posted by Sven Meier <sv...@meiers.net>.
Hi,
no, that won't work.
You'll have to create your own model implementation, that unwraps value
of an optional.
Have fun
Sven
Am 13.02.2018 um 16:49 schrieb Shengche Hsiao:
> Dear all
>
> I am using Speedment to manipulating database, when I mark the table filed
> allow null, the Speedment generate Optional<String> as it's datatype.
>
> Can I using it with CompoundPropertyModel with TextFile?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org