Yup, they are meant to identify the file. Right now I just have all requests that match "/files/*" sent to a controller that grabs the filename and serves up the file. If I wanted to use parameters in wicket I would have to do some url rewriting as well. But like I said, this kind of thing is really not what Wicket is meant to do. I'm essentially trying to become an HTTP file server for this small section of my app.
On 6/29/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > A resource references a pdf or doc or whatever file. What kind of > parameter do you need? If the parameters are meant to identify the > file, than it must be part of the URL path (like the filename). > > Juergen > > On 6/29/05, Phil Kulak <[EMAIL PROTECTED]> wrote: > > The only problem with that is that I don't know how to get parameters > > into the resource. > > > > On 6/29/05, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: > > > On 6/29/05, Phil Kulak <[EMAIL PROTECTED]> wrote: > > > > Why do I have to maintain a list of all the files? That's what my > > > > database is good at. ;) > > > > > > > > I think a bookmarkable resource would be nice. Kind of the equivelent > > > > of a page for anything that's not markup. It would have a constructor > > > > that took parameters, letting you use one resource to represent a set > > > > of files served up dynamically. > > > > > > > > > > Isn't that similiar to the 2nd approach I mentioned above (and which > > > Eelco recommended). You may implement your own Resource / > > > ResourceReference if you like. Just copy StaticResource > > > (StaticResourceReference) and make your modification to retrieve some > > > information from the DB and subsequently the file. That's what I did > > > to test your scenario for StaticFileResource and found it simple. > > > > > > Juergen > > > > > > > > > ------------------------------------------------------- > > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > > informative Webcasts and more! Get everything you need to get up to > > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opclick > > > _______________________________________________ > > > Wicket-user mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > ------------------------------------------------------- > > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > > from IBM. Find simple to follow Roadmaps, straightforward articles, > > informative Webcasts and more! Get everything you need to get up to > > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opclick > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opclick > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
