Re: [Wicket-user] Give a dynamic generated image a pretty name
OK thanx guys. I'll try 'em out. Frank On 10/6/06, Eelco Hillenius [EMAIL PROTECTED] wrote: There's also SharedResources#putClassAlias to shorten names for acouple of classes that might be an issue. EelcoOn 10/5/06, Johan Compagner [EMAIL PROTECTED] wrote: you could play with: public final void mountSharedResource(final String path, final String resourceKey) so add one shared resource under that key. That is the dynamic one that generates based on a request parameter I dont know but maybe that request parameter could be added to the path as /image/number1 play with it if that works and see if you need to change anything (request encoding/decoding) johanOn 10/4/06, Frank Bille [EMAIL PROTECTED] wrote: Hey all I have an Image with a custom RenderedDynamicImageResource on it. This works fine, but my problem is that *sometimes* (haven't yet been able to determine the exact cause) FireFox displays the wrong image (displays one of the other loaded images on that page). The situation occours only if I have multiple Images of my custom ImageResource next to each other on the same page. And currently I have only been able to reproduce it if the images is on a panel which is loaded using AJAX. My guess is that FireFox for some reason can't handle the long image names, which is generated when using dynamic ImageResouces' in Images. If that really is the case a easy solution could be to shorten the image names. A nice way to do this was to do some kind of mount on them or be able to rename it. The problem is that I can't really mount the resources up front in the Application, because they are dynamic resources. Or can I? Does anyone have an idea or some hints to how to fix this? Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Give a dynamic generated image a pretty name
There's also SharedResources#putClassAlias to shorten names for a couple of classes that might be an issue. Eelco On 10/5/06, Johan Compagner [EMAIL PROTECTED] wrote: you could play with: public final void mountSharedResource(final String path, final String resourceKey) so add one shared resource under that key. That is the dynamic one that generates based on a request parameter I dont know but maybe that request parameter could be added to the path as /image/number1 play with it if that works and see if you need to change anything (request encoding/decoding) johan On 10/4/06, Frank Bille [EMAIL PROTECTED] wrote: Hey all I have an Image with a custom RenderedDynamicImageResource on it. This works fine, but my problem is that *sometimes* (haven't yet been able to determine the exact cause) FireFox displays the wrong image (displays one of the other loaded images on that page). The situation occours only if I have multiple Images of my custom ImageResource next to each other on the same page. And currently I have only been able to reproduce it if the images is on a panel which is loaded using AJAX. My guess is that FireFox for some reason can't handle the long image names, which is generated when using dynamic ImageResouces' in Images. If that really is the case a easy solution could be to shorten the image names. A nice way to do this was to do some kind of mount on them or be able to rename it. The problem is that I can't really mount the resources up front in the Application, because they are dynamic resources. Or can I? Does anyone have an idea or some hints to how to fix this? Frank - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Give a dynamic generated image a pretty name
you could play with:public final void mountSharedResource(final String path, final String resourceKey)so add one shared resource under that key. That is the dynamic one that generates based on a request parameter I dont know but maybe that request parameter could be added to the path as /image/number1play with it if that works and see if you need to change anything (request encoding/decoding)johan On 10/4/06, Frank Bille [EMAIL PROTECTED] wrote: Hey allI have an Image with a custom RenderedDynamicImageResource on it. This works fine, but my problem is that *sometimes* (haven't yet been able to determine the exact cause) FireFox displays the wrong image (displays one of the other loaded images on that page). The situation occours only if I have multiple Images of my custom ImageResource next to each other on the same page. And currently I have only been able to reproduce it if the images is on a panel which is loaded using AJAX. My guess is that FireFox for some reason can't handle the long image names, which is generated when using dynamic ImageResouces' in Images. If that really is the case a easy solution could be to shorten the image names. A nice way to do this was to do some kind of mount on them or be able to rename it. The problem is that I can't really mount the resources up front in the Application, because they are dynamic resources. Or can I? Does anyone have an idea or some hints to how to fix this?Frank -Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user