On Mon, Jun 7, 2021 at 8:50 PM vahid ghasemi <vahidghasemi...@gmail.com>
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
>
>

Reply via email to