本文整理匯總了Java中org.apache.wicket.markup.head.IHeaderResponse.render方法的典型用法代碼示例。如果您正苦於以下問題:Java IHeaderResponse.render方法的具體用法?Java IHeaderResponse.render怎麽用?Java IHeaderResponse.render使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.wicket.markup.head.IHeaderResponse
的用法示例。
在下文中一共展示了IHeaderResponse.render方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: renderInitializationScript
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
protected void renderInitializationScript(IHeaderResponse response) {
T value;
if (getWebRequest().getRequestParameters().getParameterNames().contains(getInputName())) {
convertInput();
value = getConvertedInput();
} else {
value = getModelObject();
}
if (value != null) {
JsonBuilder selection = new JsonBuilder();
try {
selection.object();
getProvider().toJson(value, selection);
selection.endObject();
} catch (JSONException e) {
throw new RuntimeException("Error converting model object to Json", e);
}
response.render(OnDomReadyHeaderItem.forScript(
JQuery.execute("$('#%s').select2('data', %s);", getJquerySafeMarkupId(), selection.toJson())));
}
}
示例2: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
String script = String.format("gitplex.server.setupAccordion('%s')", getMarkupId());
response.render(OnDomReadyHeaderItem.forScript(script));
}
示例3: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(JavaScriptHeaderItem.forReference(new ProjectResourceReference()));
response.render(OnDomReadyHeaderItem.forScript("gitplex.server.project();"));
}
示例4: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(JavaScriptHeaderItem.forReference(new BlobViewResourceReference()));
response.render(OnDomReadyHeaderItem.forScript(String.format("gitplex.server.blobView.onDomReady('%s');", getMarkupId())));
}
示例5: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
// we delay show feedback with a timer as some other script may scroll the window
response.render(OnDomReadyHeaderItem.forScript("setTimeout('gitplex.server.showSessionFeedback();', 1);"));
}
示例6: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(JavaScriptHeaderItem.forReference(new VerificationResourceReference()));
}
示例7: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(JavaScriptHeaderItem.forReference(new ProjectSelectorResourceReference()));
}
示例8: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(CssHeaderItem.forReference(new DiffStatBarResourceReference()));
}
示例9: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(CssHeaderItem.forReference(new ReviewerListCssResourceReference()));
}
示例10: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(CssHeaderItem.forReference(new UserResourceReference()));
}
示例11: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(CssHeaderItem.forReference(new WizardResourceReference()));
}
示例12: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(CssHeaderItem.forReference(new RequestOverviewResourceReference()));
}
示例13: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(CssHeaderItem.forReference(new ProjectTagsResourceReference()));
}
示例14: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(CssHeaderItem.forReference(new PrivilegeSourceCssResourceReference()));
}
示例15: renderHead
import org.apache.wicket.markup.head.IHeaderResponse; //導入方法依賴的package包/類
@Override
public void renderHead(IHeaderResponse response) {
super.renderHead(response);
response.render(CssHeaderItem.forReference(new BranchPickerResourceReference()));
}