git remote add upstream git://git.apache.org/wicket.git
git branch -a
from mezzanine.conf import register_setting | |
########################### | |
# FOR CLEAN_BLOG SETTINGS # | |
########################### | |
register_setting( | |
name="TEMPLATE_ACCESSIBLE_SETTINGS", | |
description=("Sequence of setting names available within templates."), | |
editable=False, | |
default=("TWITTER_ACCOUNT_NAME", |
# -*- coding:utf-8 -*- | |
#!/usr/bin/python | |
""" | |
top_2_csv.py | |
linux top コマンドのアウトプットをgraph出力用途にcsvに変換する | |
""" | |
__author__ = "ken sakurai" | |
__status__ = "development" |
try { | |
// Directory配下のtaskを取得する | |
final ClassLoader loader = Thread.currentThread().getContextClassLoader(); | |
for (final ClassPath.ClassInfo info : ClassPath.from(loader).getTopLevelClasses()) { | |
if (info.getName().startsWith("org.apache.wicket.devutils.")) { | |
final Class<?> clazz = info.load(); | |
if (Page.class.isAssignableFrom(clazz) && !Modifier.isAbstract(clazz.getModifiers()) && isExistsDefalutConstructor(clazz)) { | |
String simplaName = clazz.getSimpleName(); | |
mountPage("/development/" + simplaName, (Class<? extends Page>) clazz); | |
} |
public boolean isExistsDefalutConstructor(Class<?> clazz) { | |
try { | |
clazz.getConstructor(null); | |
return true; | |
} catch (NoSuchMethodException e) { | |
return false; | |
} | |
} |
/* | |
* Licensed to the Apache Software Foundation (ASF) under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The ASF licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
/* | |
* Licensed to the Apache Software Foundation (ASF) under one or more | |
* contributor license agreements. See the NOTICE file distributed with | |
* this work for additional information regarding copyright ownership. | |
* The ASF licenses this file to You under the Apache License, Version 2.0 | |
* (the "License"); you may not use this file except in compliance with | |
* the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* |
getExceptionSettings().setAjaxErrorHandlingStrategy(ExceptionSettings.AjaxErrorStrategy.INVOKE_FAILURE_HANDLER); |
import org.apache.wicket.Component; | |
import org.apache.wicket.ajax.AjaxRequestTarget; | |
import org.apache.wicket.ajax.attributes.AjaxCallListener; | |
import org.apache.wicket.ajax.attributes.AjaxRequestAttributes; | |
import org.apache.wicket.markup.html.form.TextField; | |
import org.apache.wicket.request.mapper.parameter.PageParameters; | |
import org.wicketstuff.stateless.behaviors.StatelessAjaxEventBehavior; | |
/** |
import org.apache.wicket.Component; | |
import org.apache.wicket.WicketRuntimeException; | |
import org.apache.wicket.ajax.AjaxRequestTarget; | |
import org.apache.wicket.ajax.attributes.AjaxRequestAttributes; | |
import org.apache.wicket.ajax.attributes.ThrottlingSettings; | |
import org.apache.wicket.ajax.form.AjaxFormValidatingBehavior; | |
import org.apache.wicket.behavior.Behavior; | |
import org.apache.wicket.feedback.IFeedback; | |
import org.apache.wicket.markup.html.form.Form; | |
import org.apache.wicket.markup.html.form.FormComponent; |