Re: Wicket 7 : Image markup inside label problem

2017-10-24 Thread Maxim Solodovnik
I have added mapper
https://github.com/solomax/label-with-image/commit/743af75f453952361ef49ee4d13a774a040581bc
Everything seems to work

I'm using "mvn clean jetty:run" command

On Wed, Oct 25, 2017 at 11:15 AM, kyc  wrote:

> You need to add the following to WicketApplication.java to reach the
> problem
>
> setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this));
>
>
>
> My whole site is encrypted and the slashes are included in the encrypted
> characters causing the problem
>
> Broken image path:
> http://127.0.0.1:8080/PROJ_NAME/Vl6T6Ar3EKbsmKcONvJ0cb8_
> mXFWRue8M31YADuxq5cljiqq36WNE18GAPuD17Q8SSeAzJ9vUbqR88VssCAT
> vhmaI-sJ571s/Vl64f/images/icon/add.gif
>
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax


Re: Wicket 7 : Image markup inside label problem

2017-10-24 Thread kyc
You need to add the following to WicketApplication.java to reach the problem


setRootRequestMapper(new CryptoMapper(getRootRequestMapper(), this)); 



My whole site is encrypted and the slashes are included in the encrypted
characters causing the problem

Broken image path: 
http://127.0.0.1:8080/PROJ_NAME/Vl6T6Ar3EKbsmKcONvJ0cb8_mXFWRue8M31YADuxq5cljiqq36WNE18GAPuD17Q8SSeAzJ9vUbqR88VssCATvhmaI-sJ571s/Vl64f/images/icon/add.gif
 


--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Wicket 7 : Image markup inside label problem

2017-10-24 Thread Maxim Solodovnik
I was hoping to see quickstart  :)
So I have created one for you: https://github.com/solomax/label-with-image
It seems to work as expected
Please check it and compare with your code

On Wed, Oct 25, 2017 at 10:30 AM, kyc  wrote:

> The following is sample code to repeat the problem.
>
> HTML:
> http://wicket.apache.org/;>
> 
>
> 
> 
>
> JAVA:
> public ShowLabelPage() {
> super();
>
> String htmlWithImgTag = "some text at the beginning
> <\"images/icon/add.gif\">   something text at the end" ;
> add(new Label("message", htmlWithImgTag).
> setEscapeModelStrings(false));
> }
>
> URL to load the page
> http://127.0.0.1:8080/PROJ_NAME/Vl6T6Ar3EKbsmKcONvJ0cb8_
> mXFWRue8M31YADuxq5cljiqq36WNE18GAPuD17Q8SSeAzJ9vUbqR88VssCAT
> vhmaI-sJ571s/Vl64f/l6T59
>
>  Screenshot_-_10_25_2017_%2C_11_23_28_AM.png>
>
> There are images under
> WebContent/images/icon/add.gif
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-
> f1842947.html
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
WBR
Maxim aka solomax


Re: Wicket 7 : Image markup inside label problem

2017-10-24 Thread kyc
The following is sample code to repeat the problem.

HTML:
http://wicket.apache.org/;>





JAVA: 
public ShowLabelPage() {
super();

String htmlWithImgTag = "some text at the beginning 
<\"images/icon/add.gif\">   something text at the end" ;
add(new Label("message", 
htmlWithImgTag).setEscapeModelStrings(false)); 
}   

URL to load the page 
http://127.0.0.1:8080/PROJ_NAME/Vl6T6Ar3EKbsmKcONvJ0cb8_mXFWRue8M31YADuxq5cljiqq36WNE18GAPuD17Q8SSeAzJ9vUbqR88VssCATvhmaI-sJ571s/Vl64f/l6T59


 

There are images under
WebContent/images/icon/add.gif













--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Wicket 7 : Image markup inside label problem

2017-10-24 Thread kyc
Hi Maxim,

Thanks for your reply.  The following is sample to repeat the problem

HTML:
http://wicket.apache.org/;>





JAVA: 
public ShowLabelPage() {
super();

String htmlWithImgTag = "some text at the beginning 
<\"images/icon/add.gif\">   something text at the end" ;
add(new Label("message", 
htmlWithImgTag).setEscapeModelStrings(false)); 
}   

URL to load the page 
http://127.0.0.1:8080/PROJ_NAME/Vl6T6Ar3EKbsmKcONvJ0cb8_mXFWRue8M31YADuxq5cljiqq36WNE18GAPuD17Q8SSeAzJ9vUbqR88VssCATvhmaI-sJ571s/Vl64f/l6T59


 

There are images under
WebContent/images/icon/add.gif

















--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: Where can I get the 6.24 source download?

2017-10-24 Thread Andrea Del Bene

https://archive.apache.org/dist/wicket/6.24.0


On 24/10/2017 19:51, Entropy wrote:

I need 6.24 source.  all of the mirror links seemed dead.

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

-
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



Where can I get the 6.24 source download?

2017-10-24 Thread Entropy
I need 6.24 source.  all of the mirror links seemed dead.  

--
Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html

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



Re: How to format number in (Number)TextField?

2017-10-24 Thread Kamil Paśko

Thanks!

Combining it with custom Behavior should do the trick


W dniu 2017-10-24 o 16:52, Maxim Solodovnik pisze:

I believe by overriding textFormat you can customize the way number is
being displayed
And the way text is being converted to number inside wicket.

to format field data while user prints you need to use JS llibrary
for ex. this one http://flaviosilveira.com/Jquery-Price-Format/ looks
promising 

On Tue, Oct 24, 2017 at 8:00 PM, Kamil Paśko  wrote:


Maxim,

I tried with:

 private final class MyFormattedField extends TextField
implements ITextFormatProvider {
 private MyFormattedField(String id, IModel model) {
 super(id, model);
 }

 @Override
 public String getTextFormat() {
 return "### ###.###";
 }
 }

but this doesn't do anything.

user can type "12321321321" and value is not formatted


W dniu 2017-10-24 o 14:37, Maxim Solodovnik pisze:


I believe you can override "getTextFormat ()"
method and provide your own format
According to right align: you can use CSS class for that :)

On Tue, Oct 24, 2017 at 6:52 PM, Kamil Paśko > wrote:

 Dear Wicket user group,


 I have a TextField (but I can use NumberTextField as well) and
 when user types a number I want that:

 1) number is positioned to the right

 2) thousands are separated by spaces

 3) floating point character is "."

 How can I "force" that format in a TextField?

 Kind regards,

 Kamil




--
WBR
Maxim aka solomax








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



Re: How to format number in (Number)TextField?

2017-10-24 Thread Maxim Solodovnik
I believe by overriding textFormat you can customize the way number is
being displayed
And the way text is being converted to number inside wicket.

to format field data while user prints you need to use JS llibrary
for ex. this one http://flaviosilveira.com/Jquery-Price-Format/ looks
promising 

On Tue, Oct 24, 2017 at 8:00 PM, Kamil Paśko  wrote:

> Maxim,
>
> I tried with:
>
> private final class MyFormattedField extends TextField
> implements ITextFormatProvider {
> private MyFormattedField(String id, IModel model) {
> super(id, model);
> }
>
> @Override
> public String getTextFormat() {
> return "### ###.###";
> }
> }
>
> but this doesn't do anything.
>
> user can type "12321321321" and value is not formatted
>
>
> W dniu 2017-10-24 o 14:37, Maxim Solodovnik pisze:
>
>> I believe you can override "getTextFormat > s/wicket/apidocs/8.x/org/apache/wicket/markup/html/form
>> /AbstractTextComponent.ITextFormatProvider.html#getTextFormat-->()"
>> method and provide your own format
>> According to right align: you can use CSS class for that :)
>>
>> On Tue, Oct 24, 2017 at 6:52 PM, Kamil Paśko > > wrote:
>>
>> Dear Wicket user group,
>>
>>
>> I have a TextField (but I can use NumberTextField as well) and
>> when user types a number I want that:
>>
>> 1) number is positioned to the right
>>
>> 2) thousands are separated by spaces
>>
>> 3) floating point character is "."
>>
>> How can I "force" that format in a TextField?
>>
>> Kind regards,
>>
>> Kamil
>>
>>
>>
>>
>> --
>> WBR
>> Maxim aka solomax
>>
>
>


-- 
WBR
Maxim aka solomax


Re: How to format number in (Number)TextField?

2017-10-24 Thread Kamil Paśko

Maxim,

I tried with:

    private final class MyFormattedField extends TextField 
implements ITextFormatProvider {

        private MyFormattedField(String id, IModel model) {
            super(id, model);
        }

        @Override
        public String getTextFormat() {
            return "### ###.###";
        }
    }

but this doesn't do anything.

user can type "12321321321" and value is not formatted


W dniu 2017-10-24 o 14:37, Maxim Solodovnik pisze:
I believe you can override "getTextFormat 
()" 
method and provide your own format

According to right align: you can use CSS class for that :)

On Tue, Oct 24, 2017 at 6:52 PM, Kamil Paśko > wrote:


Dear Wicket user group,


I have a TextField (but I can use NumberTextField as well) and
when user types a number I want that:

1) number is positioned to the right

2) thousands are separated by spaces

3) floating point character is "."

How can I "force" that format in a TextField?

Kind regards,

Kamil




--
WBR
Maxim aka solomax




Re: How to format number in (Number)TextField?

2017-10-24 Thread Kamil Paśko

I tried with:

@Override
        protected void onInitialize() {
            super.onInitialize();
            InputMaskBehavior mask = new InputMaskBehavior() {

                @Override
                protected String getMask() {
                    return "999 999.99";
                }
            };
            add(mask);
        }

but this forces the user to type exactly what mask shows, so user can 
not type:


123 nor 123.11, it must be 123 123.11


W dniu 2017-10-24 o 14:48, Francois Meillet pisze:

You can use an input with a mask
something like 
Have a look at https://igorescobar.github.io/jQuery-Mask-Plugin/ 


François




Le 24 oct. 2017 à 14:37, Maxim Solodovnik  a écrit :

I believe you can override "getTextFormat 
()"
 method and provide your own format
According to right align: you can use CSS class for that :)

On Tue, Oct 24, 2017 at 6:52 PM, Kamil Paśko > wrote:
Dear Wicket user group,


I have a TextField (but I can use NumberTextField as well) and when user types 
a number I want that:

1) number is positioned to the right

2) thousands are separated by spaces

3) floating point character is "."



How can I "force" that format in a TextField?

Kind regards,

Kamil



--
WBR
Maxim aka solomax





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



Re: How to format number in (Number)TextField?

2017-10-24 Thread Francois Meillet
You can use an input with a mask
something like 
Have a look at https://igorescobar.github.io/jQuery-Mask-Plugin/ 


François



> Le 24 oct. 2017 à 14:37, Maxim Solodovnik  a écrit :
> 
> I believe you can override "getTextFormat 
> ()"
>  method and provide your own format
> According to right align: you can use CSS class for that :)
> 
> On Tue, Oct 24, 2017 at 6:52 PM, Kamil Paśko  > wrote:
> Dear Wicket user group,
> 
> 
> I have a TextField (but I can use NumberTextField as well) and when user 
> types a number I want that:
> 
> 1) number is positioned to the right
> 
> 2) thousands are separated by spaces
> 
> 3) floating point character is "."
> 
> 
> 
> How can I "force" that format in a TextField?
> 
> Kind regards,
> 
> Kamil
> 
> 
> 
> -- 
> WBR
> Maxim aka solomax



Re: How to format number in (Number)TextField?

2017-10-24 Thread Maxim Solodovnik
I believe you can override "getTextFormat

()" method and provide your own format
According to right align: you can use CSS class for that :)

On Tue, Oct 24, 2017 at 6:52 PM, Kamil Paśko  wrote:

> Dear Wicket user group,
>
>
> I have a TextField (but I can use NumberTextField as well) and when user
> types a number I want that:
>
> 1) number is positioned to the right
>
> 2) thousands are separated by spaces
>
> 3) floating point character is "."
>
> How can I "force" that format in a TextField?
>
> Kind regards,
>
> Kamil
>



-- 
WBR
Maxim aka solomax


How to format number in (Number)TextField?

2017-10-24 Thread Kamil Paśko

Dear Wicket user group,


I have a TextField (but I can use NumberTextField as well) and when user 
types a number I want that:


1) number is positioned to the right

2) thousands are separated by spaces

3) floating point character is "."

How can I "force" that format in a TextField?

Kind regards,

Kamil