I mean root of the app. i don't want to harcode the button image in html
I know we can use packageResource.get(scope,path) for ImageButton class,
i.e. new ImageButton("sbutton", packageResource.get(A.class,"a.gif")  )
this needs images to be put into java class package and i want it in 
web app root folder.

marsh
 

Johan Compagner wrote:
> 
> what do you mean with:
> 
> "i have shared resources at root  /sharedResources/Images/a.gif ,"?
> 
> root of the web app?
> or root in a classes/jar?
> 
> if in webapp then you can just point to it in the html.
> 
> if in the classes then i don't know directly upfront how it goes with the
> ButtonFactory (don't use it to much)
> else you just have to make a ResourceReference for that Button to that
> resource.
> 
> johan
> 
> 
> On 12/15/06, wicketmarsh <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>>
>> can somebody help me to get  image from shared folder using
>> DefaultButtonImageResource?
>> i have shared resources at root  /sharedResources/Images/a.gif ,
>> Application has -
>> getSharedResources().add("aShared", new DefaultButtonImageResource("?"));
>> I would like to have html like
>> <input wicket:id="aButton" type="image" value="buttonFactory:aShared:?"/>
>>
>> where do I mention the shared resource  path?
>>
>> thanks,
>>
>> Marsh
>> --
>> View this message in context:
>> http://www.nabble.com/DefaultButtonImageResource-to-get-image-tf2829718.html#a7900111
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> -------------------------------------------------------------------------
>> 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.php&p=sourceforge&CID=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.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DefaultButtonImageResource-to-get-image-tf2829718.html#a7930832
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to