-Igor
On 5/19/06,
Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
Okay pleeese what did i do wrong...i can see the expected _javascript_ inside the script tag as expected
<script language="_javascript_" type="text/_javascript_" wicket:id="initCall"></script>
private void addInitJS(){
IModel initModel = new Model() {
private static final long serialVersionUID = 1L;
public Object getObject(Component component) {
return buildUpInitFunction();
};
};
WebMarkupContainer initCall = new WebMarkupContainer("initCall", initModel);
add(initCall);
}
/*
*builds up the _javascript_ function
*/
private String buildUpInitFunction(){
StringBuffer buffer = new StringBuffer();
buffer.append(script strings);
return buffer.toString();
}
