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: 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
>
>


Re: resources in wicket have problem.

2021-06-07 Thread vahid ghasemi
https://github.com/vahida1157/wicketbase
this is my project.

-
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-07 Thread Martin Grigorov
On Mon, Jun 7, 2021 at 8:50 PM vahid ghasemi 
wrote:

> add(new Image("profilePhotoHeader", new
> PackageResourceReference(Bootstrap5.class,
> "media/avatars/blank.png")));
> just say what you need to know.
> Can I send a file or image here?
>

No, attachments are not allowed in the mailing list.
But you can upload your project in GitHub and we will take a look!


>
>
> ‫‪Bergmann Manfred‬‏ <‪m...@software-by-mabe.com‬‏> در تاریخ دوشنبه ۷
> ژوئن ۲۰۲۱ ساعت ۲۱:۳۷ نوشت:‬
> >
> > Hi.
> >
> > Hard to say anything without more info.
> > How are you loading the images?
> >
> > Did you have a look here?
> >
> https://ci.apache.org/projects/wicket/guide/8.x/single.html#_package_resources
> >
> >
> >
> > Manfred
> >
> > > Am 07.06.2021 um 18:55 schrieb vahid ghasemi <
> vahidghasemi...@gmail.com>:
> > >
> > > I created a new web application with 2 pages.
> > > The first page is my home page and has a wicket link for getting to the
> > > second page and has some images.
> > > The second page has a wicket link for getting to the first page and has
> > > some images too.
> > > when I deploy the project on my PC everything is ok(images are shown
> and
> > > link working for getting to the second page(with setResponsePage()
> method))
> > > but after clicking on the link and getting on the second page
> everything is
> > > wrong(images aren't shown and the link is not working).
> > > after debugging I figure out images resources on the first page is
> complete
> > > (./wicket/resource/{other_path}).
> > > but when I go to the second page, my URL is
> > > (localhost:8080/wicket/bookmarkable/{class_page_name}) and Wicket for
> > > getting a shorter URL images resources is (../resource/{other_path})
> and
> > > when I move my cursor on the link I found out that the absolute image
> > > source is (localhost:8080/resource/{other_path}) instead of
> > > (localhost:8080/wicket/resource/{other_path}).
> > > It is good and should work. but is not working on my project and
> images are
> > > not found and also the link for getting to the first page not working.
> >
>
> -
> 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-07 Thread vahid ghasemi
add(new Image("profilePhotoHeader", new
PackageResourceReference(Bootstrap5.class,
"media/avatars/blank.png")));
just say what you need to know.
Can I send a file or image here?


‫‪Bergmann Manfred‬‏ <‪m...@software-by-mabe.com‬‏> در تاریخ دوشنبه ۷
ژوئن ۲۰۲۱ ساعت ۲۱:۳۷ نوشت:‬
>
> Hi.
>
> Hard to say anything without more info.
> How are you loading the images?
>
> Did you have a look here?
> https://ci.apache.org/projects/wicket/guide/8.x/single.html#_package_resources
>
>
>
> Manfred
>
> > Am 07.06.2021 um 18:55 schrieb vahid ghasemi :
> >
> > I created a new web application with 2 pages.
> > The first page is my home page and has a wicket link for getting to the
> > second page and has some images.
> > The second page has a wicket link for getting to the first page and has
> > some images too.
> > when I deploy the project on my PC everything is ok(images are shown and
> > link working for getting to the second page(with setResponsePage() method))
> > but after clicking on the link and getting on the second page everything is
> > wrong(images aren't shown and the link is not working).
> > after debugging I figure out images resources on the first page is complete
> > (./wicket/resource/{other_path}).
> > but when I go to the second page, my URL is
> > (localhost:8080/wicket/bookmarkable/{class_page_name}) and Wicket for
> > getting a shorter URL images resources is (../resource/{other_path}) and
> > when I move my cursor on the link I found out that the absolute image
> > source is (localhost:8080/resource/{other_path}) instead of
> > (localhost:8080/wicket/resource/{other_path}).
> > It is good and should work. but is not working on my project and images are
> > not found and also the link for getting to the first page not working.
>

-
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-07 Thread Bergmann Manfred
Hi.

Hard to say anything without more info.
How are you loading the images?

Did you have a look here?
https://ci.apache.org/projects/wicket/guide/8.x/single.html#_package_resources



Manfred

> Am 07.06.2021 um 18:55 schrieb vahid ghasemi :
> 
> I created a new web application with 2 pages.
> The first page is my home page and has a wicket link for getting to the
> second page and has some images.
> The second page has a wicket link for getting to the first page and has
> some images too.
> when I deploy the project on my PC everything is ok(images are shown and
> link working for getting to the second page(with setResponsePage() method))
> but after clicking on the link and getting on the second page everything is
> wrong(images aren't shown and the link is not working).
> after debugging I figure out images resources on the first page is complete
> (./wicket/resource/{other_path}).
> but when I go to the second page, my URL is
> (localhost:8080/wicket/bookmarkable/{class_page_name}) and Wicket for
> getting a shorter URL images resources is (../resource/{other_path}) and
> when I move my cursor on the link I found out that the absolute image
> source is (localhost:8080/resource/{other_path}) instead of
> (localhost:8080/wicket/resource/{other_path}).
> It is good and should work. but is not working on my project and images are
> not found and also the link for getting to the first page not working.



signature.asc
Description: Message signed with OpenPGP


resources in wicket have problem.

2021-06-07 Thread vahid ghasemi
I created a new web application with 2 pages.
The first page is my home page and has a wicket link for getting to the
second page and has some images.
The second page has a wicket link for getting to the first page and has
some images too.
when I deploy the project on my PC everything is ok(images are shown and
link working for getting to the second page(with setResponsePage() method))
but after clicking on the link and getting on the second page everything is
wrong(images aren't shown and the link is not working).
after debugging I figure out images resources on the first page is complete
(./wicket/resource/{other_path}).
but when I go to the second page, my URL is
(localhost:8080/wicket/bookmarkable/{class_page_name}) and Wicket for
getting a shorter URL images resources is (../resource/{other_path}) and
when I move my cursor on the link I found out that the absolute image
source is (localhost:8080/resource/{other_path}) instead of
(localhost:8080/wicket/resource/{other_path}).
It is good and should work. but is not working on my project and images are
not found and also the link for getting to the first page not working.