Hi,

is there anybody have the idea how to load a local file once click on the
tree node link. Below is the part of the ResourceLink . 

ResourceLink exportAsPdf = new ResourceLink("exportAsPdf", new Resource(){

                        @Override
                        public IResourceStream getResourceStream() {
                                try {
                                        exportAsPdf(newPath);
                                        
                                        String currentFile = 
System.getProperty("user.dir");
                                                return new 
UrlResourceStream(new URL("file:///" + currentFile+
"/Reports/workstationsMaster_created_by_userid_" + 
                                                        
getUser().getUserId()+".pdf"));
                                        
                                } catch (Exception e) {
                                        e.printStackTrace();
                                        error(e.getMessage());
                                }       
                                
                                return null;
                        }       
                });


And right now i wish to change into tree node link. can anybody give me a
guide ?

thanks a lot
-- 
View this message in context: 
http://www.nabble.com/Click-a-tree-node-link-to-load-a-local-file-tf4033801.html#a11459189
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to