section.add(new DivTextPanel(section.newChildId(), getString("task.wizard.intro")));
}
gridBuilder.newGridPanel();
{
final DivPanel section = gridBuilder.getPanel();
section.add(new Heading3Panel(section.newChildId(), String.valueOf(number++) + ". " + getString("task")));
final FieldsetPanel fs = gridBuilder.newFieldset(getString("task"));
final TaskSelectPanel taskSelectPanel = new TaskSelectPanel(fs, new PropertyModel<TaskDO>(this, "task"), parentPage, "taskId");
fs.add(taskSelectPanel);
taskSelectPanel.setShowFavorites(false).init();
taskSelectPanel.setRequired(true);
final Button createTaskButton = new Button(SingleButtonPanel.WICKET_ID, new Model<String>("createTask")) {
@Override
public final void onSubmit()
{
final PageParameters params = new PageParameters();
params.add(TaskEditPage.PARAM_PARENT_TASK_ID, taskTree.getRootTaskNode().getId());
final TaskEditPage editPage = new TaskEditPage(params);
editPage.setReturnToPage(parentPage);
setResponsePage(editPage);
}
};
createTaskButton.setDefaultFormProcessing(false);
WicketUtils.addTooltip(createTaskButton, getString("task.wizard.button.createTask.tooltip"));
fs.add(new SingleButtonPanel(fs.newChildId(), createTaskButton, getString("task.wizard.button.createTask"), SingleButtonPanel.NORMAL));
}
// Team
createGroupComponents(number++, "team");
// Manager group
createGroupComponents(number++, "managerGroup");
gridBuilder.newGridPanel();
{
final DivPanel section = gridBuilder.getPanel();
section.add(new Heading3Panel(section.newChildId(), getString("task.wizard.action")));
section.add(new DivTextPanel(section.newChildId(), new Model<String>() {
/**
* @see org.apache.wicket.model.Model#getObject()
*/
@Override