The urlFor() method can take a few different types but not a
Resource/WebResource/DynamicWebResource. It can take a ResourceReference
but would mean that I would have to register an object of my
DynamicWebResource class as a shared resource before I could get a reference
to it, wouldn't it? It would be nice if there was a more "direct" approach.
-Brandon
igor.vaynberg wrote:
>
> onsubmit() {
> getrequestcycle().setrequesttarget(new
> redirectrequesttarget(urlfor(resourceref)));
> }
>
> -igor
>
>> In a project I am working on, I wrote a DynamicWebResource that generates
>> a
>> PDF file and, by setting the Content-Disposition in the header, got it so
>> that the user is prompted to download the PDF when they click on a
>> ResourceLink to my PDF-generating resource.
>>
>> That all works fine but now I need to open the PDF from a button. I want
>> to
>> allow the user to select a value in a form and press a button to view
>> somewhat of a report for the item they selected. However, there doesn't
>> appear to be any type of button that would lead a user to my
>> DynamicWebResource. Is there any way to have a button do a submit
>> (update
>> the model) and then lead the user to a resource?
>>
>> -Brandon
>> --
>> View this message in context:
>> http://www.nabble.com/Opening-DynamicWebResource-from-Button-AjaxButton--tp15459841p15459841.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Opening-DynamicWebResource-from-Button-AjaxButton--tp15459841p15466386.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]