UrlResourceReference for images

2013-06-06 Thread bronius
Hello, Im trying to serve images from other server, but need to build url for images on server side. This looks very simple and on most frameworks very easy to accomplish, but on wicket I simply do not understand what to do... Im trying like this: final Image img = new Image(IMAGE_ID_ADIMG, new

Re: UrlResourceReference for images

2013-06-07 Thread bronius
Relative is not good because resources are served from different application, just currently both applications are deployed on same tomcat so they have urls http://localhost:8080/app1 and http://localhost:8080/app2. When smart wicket renders image src i get something like this:

Re: UrlResourceReference for images

2013-06-07 Thread bronius
Yes that would be great, but src=app2/image?item-123 does not work (image is not loaded) and after changing it with firebug to src=http://localhost:8080/app2/image?item-123; works fine. Any ideas why is that? Any stupid mistake i overlooked? Maybe wicket interprets relative url as

Re: UrlResourceReference for images

2013-06-07 Thread bronius
Hi, I just tried it and it worked! Thanks guys for help, this situation really surprised me :) On the bright side at least I learned about framework when solving this little problem of mine as its easy to go inside and check how it works (im quite new to wicket). Best regards! -- View this

Wicket context menu component

2013-06-09 Thread bronius
Hello, I needed context menu component, but surprisingly it does not exit for current version, so decided to roll my own, even though i have very little Wicket experience and know absolutely nothing about jquery, so im like that dog :)

Re: Wicket context menu component

2013-06-10 Thread bronius
Hi, Yes I checked it. I also was reading this: http://code.google.com/p/wicket-jquery-ui/wiki/HowToCreatePlugin2. However context menu plug in was not standard here is jquery example: $(function(){ $.contextMenu({ selector: '.context-menu-one', callback: function(key,

Re: Wicket context menu component

2013-06-11 Thread bronius
Hi thanks for help! With your explanations and MenuBehavior example I made it work. Now one last thing is to recognize which link was chosen for context menu. I see this documentation about callback: (function) callback Specifies the default callback to be used in case an item does not expose

Re: Wicket context menu component

2013-06-12 Thread bronius
Ok thanks again for helping out! :) Well I found that 'options.$trigger.attr(id)' from parameters returns id of link pressed (did not try yet on wicket side, but I think it should work) and 'key' returns which context menu was pressed. Now my links represents users and context menu some actions to

Re: Wicket context menu component

2013-06-17 Thread bronius
()); break; } } }; Big thanks and best regards! :) bronius -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-context-menu-component-tp4659306p4659541.html Sent from the Users forum mailing list archive

Re: Wicket context menu component

2013-06-17 Thread bronius
Yes I agree, thanks again :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-context-menu-component-tp4659306p4659544.html Sent from the Users forum mailing list archive at Nabble.com. - To