/** * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag) */ @Override protected void onComponentTag(ComponentTag tag) { // Must be attached to a script tag checkComponentTag(tag, "script"); IValueMap attributes = tag.getAttributes(); attributes.put("type", "text/javascript"); }
/** * @see org.apache.wicket.Component#onComponentTag(org.apache.wicket.markup.ComponentTag) */ protected void onComponentTag(ComponentTag tag) { // Must be attached to a script tag checkComponentTag(tag, "script"); IValueMap attributes = tag.getAttributes(); attributes.put("type", "text/javascript"); }