Thomas,

thanks for this hint, didn't know about that... So the script is executed every 
time the
component is updated in an ajax call, correct? If so, it would surely solve 
some of my
issues. For longer scripts, I would still prefer to have them in the markup 
file (might be
different if we had multiline strings in Java, btw)

J.

On 04.06.2012 20:32, Thomas Götz wrote:
What about this?


public class MyComponent extends Panel {

     public MyComponent(String id) {
         super(id);
         setOutputMarkupId(true);
     }

     @Override
     public void renderHead(IHeaderResponse response) {
         response.renderOnDomReadyJavaScript(
                 "$('#" + getMarkupId() + " .ttr').tipTip({defaultPosition: 
'right'});");
     }

}

    -Tom


On 04.06.2012, 19:21 Jürgen Lind wrote:

[…]
      <wicket:script>
         $(document).ready(function() {
           $("#markupId .ttr").tipTip({defaultPosition: "right"});
         });
      </wicket:script>
[…]


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Mit freundlichen Grüßen,

Jürgen Lind

--
Dr. Jürgen Lind
iteratec GmbH                Fon: +49 (0)89 614551-44
Inselkammerstrasse 4         Fax: +49 (0)89 614551-10
82008 Unterhaching           Web: www.iteratec.de

Sitz und Registergericht der iteratec GmbH: München HRB 113 519
Geschäftsführer: Klaus Eberhardt, Mark Goerke, Inge Hanschke, Ralf Menzel

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to