Hi,

I have the situation in which an action applied to a specific object needs
to obtain some information from the user then construct a dynamic resource
(pdf file) based on the object and obtained information.

The list of object are contained in AjaxFallbackDefaultDataTable and I am
currently approaching the problem by using a modal window to obtain the
extra parameters when the user clicks a specific AjaxFallbackLink on a table
row. This works fine but, when I try and stream the constructed resource
nothing happens. This is the code in my WindowClosedCallback function:

public void onClose(AjaxRequestTarget target) {
        
        if(panel.getNumberOfDays() != null){
                System.out.println("Visiting resource");
                TubeLabelsResource resource = new 
TubeLabelsResource(study.getId(),
searchServices);
                ResourceStreamRequestTarget requestTarget = new
ResourceStreamRequestTarget(resource.getResourceStream());
                RequestCycle.get().setRequestTarget(requestTarget);
        }
}

any pointers as to how to get the resource to stream in the onClose, or an
alternative approach to the problem would be gratefully received.

thanks
Jonny
-- 
View this message in context: 
http://www.nabble.com/Modal-window-and-resource-request-target-tp18348263p18348263.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]

Reply via email to