if its a wicket component that it has to have markup. what you can do is always add it to the page in a hidden state in your basepage class

-Igor


On 7/21/06, michal petras <[EMAIL PROTECTED]> wrote:

Hello.
I made my own ajax indicator as a wicket component extended from Panel. Now
i would like to make my own AjaxBehavior that will automatically add the
indicator component to the page when i use it. Is it possible without adding
a html markup for the indicator to page?

I also extended a class from AjaxCallDecorator to call showIndicator() and
hideIndicator() function and then overided the getAjaxCallDecorator to
retrurn the inherited call decorator. Here is the HTML of the decorator:
<html>
        <head>
                <wicket:head>
                        <script>
                                function showIndicator(){
                                         document.getElementById('callIndicator').style.visibility = "visible";
                                }

                                function hideIndicator(){
                                         document.getElementById("callIndicator").style.visibility = "hidden";
                                }
                        </script>
                </wicket:head>
        </head>
        <body>
                <wicket:panel>
                        <div id="callIndicator" style="visibility: hidden;">
                                <div align="center">
                                        <span wicket:id="callIndicatorMessage"></span><br/>

                                </div>
                        </div>
                </wicket:panel>
        </body>
</html>
--
View this message in context: http://www.nabble.com/Adding-ajax-indicator-to-behavior-tf1979001.html#a5430094
Sent from the Wicket - User forum at Nabble.com.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to