Hello,

..
AbstractDefaultAjaxBehavior behave = new AbstractDefaultAjaxBehavior() {
            protected void respond(AjaxRequestTarget target) {
                target.addComponent(orasListPanel);
            }

            public void renderHead(IHeaderResponse response) {
                super.renderHead(response);
                response.renderJavascript("function load_orase(){\n" +
getCallbackScript().toString() + "\nalert('ok');\n}", "loadOrase");
            }

        };


        TextField judet = new TextField("judetSelectat");
        judet.add(new SimpleAttributeModifier("id","judetSelectat"));
///xxxxx
        judet.add(behave);

..


I use this to generate a js function in order to call it from flash
component but it does't work at all because o line ///xxxx.
SimpleAttributeModifier change the element id but the
AbstractDefaultAjaxBehaviour doesn;t take that in account.. it use the
generated id.  This is one problem. How I could overcome that?


And second, even if I don't change the id of 'judetSelectat' and even if the
behaviour it is called the model of the 'judet' field it is not called.
Why?


Thank you,

Alexandru

Reply via email to