Hi,

I have problem displaying dynamic image using ajax. The problem is that the 
image url became expired after the page has rendered. The page was loaded fine 
it didn't triggered page expired.   


Please check out my sample code below:

public class AjaxPage extends WebPage {

    public AjaxPage() {

    Component comp = new PanelA("panelA");

        comp.setVisible(true);
        ComponentRequestTarget target = new ComponentRequestTarget(comp);
        RequestCycle cycle = RequestCycle.get();
        
        cycle.setRequestTarget(target);
    }
}

public class PanelA extends Panel {


        public PanelA(String string) {
            super(string);

        add(new Label("title","Circle"));

            Image image1 = new Image("logo",new 
RenderedDynamicImageResource(100,100){
                    protected boolean render(Graphics2D graphics2D) {
                        drawCircle(graphics2D);
                        return true;
                    }

            });
        add(image1);  // image1 will expired.

    }
}

I 'm currently using Wicket 1.2.6.

Thanks and regards,
Michael




 
____________________________________________________________________________________
Get your own web address.  
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to