Re: Wicket 7 : Image markup inside label problem
Actually CSS solution is more maintainable because 1) your label is created once for ex. as 2) later on you can change size, image, border etc. without updating your label 3) your label in this case can be on any level of your application i.e. same label can be used on /home, /home/my/, /home/my/test .. it will work since all image paths are relative to CSS 4) you can re-use same CSS class anywhere in your code 5) both CSS and images will be better cached 6) images can be inlined this will give you performance increase by reducing the number of requests 7) you can provide CSS specializations to change the look of your ".image-add" based on parent element without any changes to labels :) same time "the encrytped path is not guarantee the slashes generated" this means you have to specify absolute path to your images or handle the depth by your-self :( In my applications I prefer to use CSS On Fri, Oct 27, 2017 at 8:25 AM, kyc wrote: > In real case, the htmlWithImgTag is shared to use in both pages (locating > in > properties files). Moreover, the encrytped path is not guarantee the > slashes generated. > > If I have hundreds of this kind of code to upgrade, it is difficult to > convert all to css (not guarantee it works) and the code is not > maintainable. > > -- > 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
In real case, the htmlWithImgTag is shared to use in both pages (locating in properties files). Moreover, the encrytped path is not guarantee the slashes generated. If I have hundreds of this kind of code to upgrade, it is difficult to convert all to css (not guarantee it works) and the code is not maintainable. -- 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: IndicatingAjaxButton locks other buttons
If you dig with firebug, what can you find that causes the buttons to be non-responsive? 2017-10-26 20:12 GMT+03:00 Entropy : > We have an IndicatingAjaxButton that launches an AjaxDownload of a PDF that > we generate on the fly from Crystal Reports. It's spawns the PDF in a > separate window. It does the job, but after, every button on the screen of > the main form is nonresponsive. Is there some step I am supposed to take > to > unlock them? The spinner gif went away so it seems like the button knows > it's done enough to hide the spinner. > > As soon as i change the IndicatingAjaxButton to a simple AjaxButton, > everything works perfectly. > > -- > 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 > >
IndicatingAjaxButton locks other buttons
We have an IndicatingAjaxButton that launches an AjaxDownload of a PDF that we generate on the fly from Crystal Reports. It's spawns the PDF in a separate window. It does the job, but after, every button on the screen of the main form is nonresponsive. Is there some step I am supposed to take to unlock them? The spinner gif went away so it seems like the button knows it's done enough to hide the spinner. As soon as i change the IndicatingAjaxButton to a simple AjaxButton, everything works perfectly. -- 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
Hello, just have checked everything one more time. After following changes are made: https://github.com/solomax/label-with-image/commit/578cf393e46d7f51f6fc7754c2e27a943096850e everything works as expected with relative URLs The reason is: image location is invalid for DetailPage, as soon as it is changed to be valid: ../../images/icon/add.png everything works flawlesly Maybe you can unify your code as follows: 1) change all inside labels with 2) create CSS .add with background image of your choice 3) get working app :))) On Thu, Oct 26, 2017 at 10:25 AM, kyc wrote: > Do you know the exact coding? I can’t find the solution in the existing > resources. > > -- > 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