Re: resources in wicket have problem.

2021-06-08 Thread vahid ghasemi
Hi thanks for all answers and helps.
I find problem and resolve that.
problem was in BasePage.html in first line into head tag.


 

it was cause of my issue and after deleting my project working well.
again thanks for all of you :*

‫‪Francois Meillet‬‏ <‪francois.meil...@gmail.com‬‏> در تاریخ سه‌شنبه ۸
ژوئن ۲۰۲۱ ساعت ۱۷:۴۴ نوشت:‬

> Could you disable JavaScript in your browser and test your page ?
> Or in your MetronicAssets, comment all JavaScriptReferenceHeaderItems.
>
> PS: create a quickstart with this tool
> https://wicket.apache.org/start/quickstart.html <
> https://wicket.apache.org/start/quickstart.html>
>
> François
>
>
>
> > Le 8 juin 2021 à 11:29, vahid ghasemi  a
> écrit :
> >
> > I'll do that but I'm not sure about working.
> > i think if you clone the project and test it you can easily know about
> the
> > problem.
> > my problem is not just images and also in this status all of my js and
> css
> > working.
> > my links don't work and this problem is inconsequential to resources.
> > pls clone and just run the project and you can see what is the problem.
> >
> > ‫‪Bergmann Manfred‬‏ <‪m...@software-by-mabe.com‬‏> در تاریخ سه‌شنبه ۸
> ژوئن
> > ۲۰۲۱ ساعت ۱۳:۰۸ نوشت:‬
> >
> >> Hi.
> >>
> >> Just had a quick look.
> >> I find it quite difficult to see through. Too many involved classes.
> >>
> >> All the assets you have in your ’java’ source root should actually be in
> >> ‚resources‘, that’s what this is for.
> >> Some build tools (I believe also IntelliJ by default) don’t even copy
> >> resources from the source folders to build output folders without
> >> explicitly saying so.
> >>
> >>
> >> Manfred
> >>
> >>
> >>> Am 08.06.2021 um 10:15 schrieb vahid ghasemi <
> vahidghasemi...@gmail.com
> >>> :
> >>>
> >>> test & ui packages are main packages and others are not important.
> >>> ir.iais.test.MyApplication is starting.
> >>> an my two pages is:
> >>> ir.iais.test.panelTest.LabelPage.java
> >>> ir.iais.test.panelTest.PabelPage.java
> >>> These Panels are extended from BasicPage which is extended from
> >> ir.iais.ui.BasePage.
> >>> BasePage.html has () that is implemented in LabelPage and
> >> PabelPage and my images are in BasePage.html(you can find with searching
> >> "profilePhotoHeader" and "profilePhotoPopUp")
> >>> The home page is one of (LabelPage,PabelPage) and my clickable Panel is
> >> MetronicLinkPanel and I determine the destination Page in that
> constructor.
> >>>
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> >>> For additional commands, e-mail: users-h...@wicket.apache.org
> >>
> >>
>
>


Re: CompoundPropertyModel - white space

2021-06-08 Thread Mihir Chhaya
Thank you, Sven. This is working.

As always, The Apache Wicket team ROCKS !!

-Mihir.

On Tue, Jun 8, 2021 at 3:54 PM Sven Meier  wrote:

> Hi,
>
> by default textfields trim their input, so I'd expect the total count
> characters to be correct to the processed input:
>
>"f " + "m" + "l" -> "fml" = 3 characters (also a space was entered
> after the *f*
>
> You might want to override #shouldTrimInput if you want to keep the
> whitespace.
>
> Have fun
> Sven
>
>
> On 08.06.21 21:05, Mihir Chhaya wrote:
> > Hello,
> >
> > Apache Wicket version used: 8.12.0
> >
> > I need to show total characters entered into First, Middle and Last name
> > text fields + one drop down for Suffix. The combined length of these four
> > fields should not exceed the set limit.
> > For this, I have added OnChangeAjaxBehavior to all the three text fields
> +
> > the drop down.
> >
> > These fields are bound to the respective bean properties using
> > CompoundProperyModel. The bean has a generic getter method to calculate
> > combined length without trimming white space from any field.
> >
> > Issue:
> > The CompoundPropertyModel bean setter method is not called when a white
> > space is entered after any letter in the field.
> > For example, entering "f" in the first name will call the setter method,
> > but entering white space after "f" does not call the setter method until
> > the next character is entered.
> > This is messing up the total chars count.
> >
> > Here is how the length looks like without any white space trimming:
> >
> > (1) F + M + L = "f" + "m" + "l" = 3
> > (2) F + M + L = "f " + "m" + "l" = 3 (Please note the white space after
> f)
> > (3) F + M + L = "f n" + "m" + "l" = 5
> >
> > As one can see, the 2nd scenario is what I am trying to solve.
> >
> > The OnChangeAjaxBehavior event is called when entering the white space,
> but
> > the bean setter is not, causing misleading total chars count.
> >
> > Any suggestions?
> >
> > Thank you,
> > -Mihir.
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: CompoundPropertyModel - white space

2021-06-08 Thread Sven Meier

Hi,

by default textfields trim their input, so I'd expect the total count 
characters to be correct to the processed input:


  "f " + "m" + "l" -> "fml" = 3 characters (also a space was entered 
after the *f*


You might want to override #shouldTrimInput if you want to keep the 
whitespace.


Have fun
Sven


On 08.06.21 21:05, Mihir Chhaya wrote:

Hello,

Apache Wicket version used: 8.12.0

I need to show total characters entered into First, Middle and Last name
text fields + one drop down for Suffix. The combined length of these four
fields should not exceed the set limit.
For this, I have added OnChangeAjaxBehavior to all the three text fields +
the drop down.

These fields are bound to the respective bean properties using
CompoundProperyModel. The bean has a generic getter method to calculate
combined length without trimming white space from any field.

Issue:
The CompoundPropertyModel bean setter method is not called when a white
space is entered after any letter in the field.
For example, entering "f" in the first name will call the setter method,
but entering white space after "f" does not call the setter method until
the next character is entered.
This is messing up the total chars count.

Here is how the length looks like without any white space trimming:

(1) F + M + L = "f" + "m" + "l" = 3
(2) F + M + L = "f " + "m" + "l" = 3 (Please note the white space after f)
(3) F + M + L = "f n" + "m" + "l" = 5

As one can see, the 2nd scenario is what I am trying to solve.

The OnChangeAjaxBehavior event is called when entering the white space, but
the bean setter is not, causing misleading total chars count.

Any suggestions?

Thank you,
-Mihir.



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



CompoundPropertyModel - white space

2021-06-08 Thread Mihir Chhaya
Hello,

Apache Wicket version used: 8.12.0

I need to show total characters entered into First, Middle and Last name
text fields + one drop down for Suffix. The combined length of these four
fields should not exceed the set limit.
For this, I have added OnChangeAjaxBehavior to all the three text fields +
the drop down.

These fields are bound to the respective bean properties using
CompoundProperyModel. The bean has a generic getter method to calculate
combined length without trimming white space from any field.

Issue:
The CompoundPropertyModel bean setter method is not called when a white
space is entered after any letter in the field.
For example, entering "f" in the first name will call the setter method,
but entering white space after "f" does not call the setter method until
the next character is entered.
This is messing up the total chars count.

Here is how the length looks like without any white space trimming:

(1) F + M + L = "f" + "m" + "l" = 3
(2) F + M + L = "f " + "m" + "l" = 3 (Please note the white space after f)
(3) F + M + L = "f n" + "m" + "l" = 5

As one can see, the 2nd scenario is what I am trying to solve.

The OnChangeAjaxBehavior event is called when entering the white space, but
the bean setter is not, causing misleading total chars count.

Any suggestions?

Thank you,
-Mihir.


Re: resources in wicket have problem.

2021-06-08 Thread Francois Meillet
Could you disable JavaScript in your browser and test your page ?
Or in your MetronicAssets, comment all JavaScriptReferenceHeaderItems.

PS: create a quickstart with this tool 
https://wicket.apache.org/start/quickstart.html 


François



> Le 8 juin 2021 à 11:29, vahid ghasemi  a écrit :
> 
> I'll do that but I'm not sure about working.
> i think if you clone the project and test it you can easily know about the
> problem.
> my problem is not just images and also in this status all of my js and css
> working.
> my links don't work and this problem is inconsequential to resources.
> pls clone and just run the project and you can see what is the problem.
> 
> ‫‪Bergmann Manfred‬‏ <‪m...@software-by-mabe.com‬‏> در تاریخ سه‌شنبه ۸ ژوئن
> ۲۰۲۱ ساعت ۱۳:۰۸ نوشت:‬
> 
>> Hi.
>> 
>> Just had a quick look.
>> I find it quite difficult to see through. Too many involved classes.
>> 
>> All the assets you have in your ’java’ source root should actually be in
>> ‚resources‘, that’s what this is for.
>> Some build tools (I believe also IntelliJ by default) don’t even copy
>> resources from the source folders to build output folders without
>> explicitly saying so.
>> 
>> 
>> Manfred
>> 
>> 
>>> Am 08.06.2021 um 10:15 schrieb vahid ghasemi >> :
>>> 
>>> test & ui packages are main packages and others are not important.
>>> ir.iais.test.MyApplication is starting.
>>> an my two pages is:
>>> ir.iais.test.panelTest.LabelPage.java
>>> ir.iais.test.panelTest.PabelPage.java
>>> These Panels are extended from BasicPage which is extended from
>> ir.iais.ui.BasePage.
>>> BasePage.html has () that is implemented in LabelPage and
>> PabelPage and my images are in BasePage.html(you can find with searching
>> "profilePhotoHeader" and "profilePhotoPopUp")
>>> The home page is one of (LabelPage,PabelPage) and my clickable Panel is
>> MetronicLinkPanel and I determine the destination Page in that constructor.
>>> 
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>> 
>> 



Re: resources in wicket have problem.

2021-06-08 Thread vahid ghasemi
I'll do that but I'm not sure about working.
i think if you clone the project and test it you can easily know about the
problem.
my problem is not just images and also in this status all of my js and css
working.
my links don't work and this problem is inconsequential to resources.
pls clone and just run the project and you can see what is the problem.

‫‪Bergmann Manfred‬‏ <‪m...@software-by-mabe.com‬‏> در تاریخ سه‌شنبه ۸ ژوئن
۲۰۲۱ ساعت ۱۳:۰۸ نوشت:‬

> Hi.
>
> Just had a quick look.
> I find it quite difficult to see through. Too many involved classes.
>
> All the assets you have in your ’java’ source root should actually be in
> ‚resources‘, that’s what this is for.
> Some build tools (I believe also IntelliJ by default) don’t even copy
> resources from the source folders to build output folders without
> explicitly saying so.
>
>
> Manfred
>
>
> > Am 08.06.2021 um 10:15 schrieb vahid ghasemi  >:
> >
> > test & ui packages are main packages and others are not important.
> > ir.iais.test.MyApplication is starting.
> > an my two pages is:
> > ir.iais.test.panelTest.LabelPage.java
> > ir.iais.test.panelTest.PabelPage.java
> > These Panels are extended from BasicPage which is extended from
> ir.iais.ui.BasePage.
> > BasePage.html has () that is implemented in LabelPage and
> PabelPage and my images are in BasePage.html(you can find with searching
> "profilePhotoHeader" and "profilePhotoPopUp")
> > The home page is one of (LabelPage,PabelPage) and my clickable Panel is
> MetronicLinkPanel and I determine the destination Page in that constructor.
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> > For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: resources in wicket have problem.

2021-06-08 Thread Bergmann Manfred
Hi.

Just had a quick look.
I find it quite difficult to see through. Too many involved classes.

All the assets you have in your ’java’ source root should actually be in 
‚resources‘, that’s what this is for.
Some build tools (I believe also IntelliJ by default) don’t even copy resources 
from the source folders to build output folders without explicitly saying so.


Manfred


> Am 08.06.2021 um 10:15 schrieb vahid ghasemi :
> 
> test & ui packages are main packages and others are not important.
> ir.iais.test.MyApplication is starting.
> an my two pages is:
> ir.iais.test.panelTest.LabelPage.java
> ir.iais.test.panelTest.PabelPage.java
> These Panels are extended from BasicPage which is extended from 
> ir.iais.ui.BasePage.
> BasePage.html has () that is implemented in LabelPage and 
> PabelPage and my images are in BasePage.html(you can find with searching 
> "profilePhotoHeader" and "profilePhotoPopUp")
> The home page is one of (LabelPage,PabelPage) and my clickable Panel is 
> MetronicLinkPanel and I determine the destination Page in that constructor.
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org



signature.asc
Description: Message signed with OpenPGP


Re: resources in wicket have problem.

2021-06-08 Thread vahid ghasemi
test & ui packages are main packages and others are not important.
ir.iais.test.MyApplication is starting.
an my two pages is:
ir.iais.test.panelTest.LabelPage.java
ir.iais.test.panelTest.PabelPage.java
These Panels are extended from BasicPage which is extended from
ir.iais.ui.BasePage.
BasePage.html has () that is implemented in LabelPage and
PabelPage and my images are in BasePage.html(you can find with searching
"profilePhotoHeader" and "profilePhotoPopUp")
The home page is one of (LabelPage,PabelPage) and my clickable Panel is
MetronicLinkPanel and I determine the destination Page in that constructor.

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

Re: resources in wicket have problem.

2021-06-08 Thread Martin Grigorov
On Tue, Jun 8, 2021 at 7:47 AM vahid ghasemi 
wrote:

> https://github.com/vahida1157/wicketbase
> this is my project.
>

It is much bigger than "two pages"
Please try to simplify it or at least explain which two pages you mean,
tell us steps to reproduce and Start.java in src/test as in the quickstarts.


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