dataview improvments
This commit is contained in:
parent
372c7887fb
commit
174b230509
1 changed files with 6 additions and 8 deletions
|
|
@ -42,7 +42,7 @@ import org.imixs.workflow.office.forms.CustomFormSection;
|
||||||
|
|
||||||
import jakarta.annotation.PostConstruct;
|
import jakarta.annotation.PostConstruct;
|
||||||
import jakarta.enterprise.context.Conversation;
|
import jakarta.enterprise.context.Conversation;
|
||||||
import jakarta.enterprise.context.ConversationScoped;
|
import jakarta.enterprise.context.SessionScoped;
|
||||||
import jakarta.faces.context.FacesContext;
|
import jakarta.faces.context.FacesContext;
|
||||||
import jakarta.inject.Inject;
|
import jakarta.inject.Inject;
|
||||||
import jakarta.inject.Named;
|
import jakarta.inject.Named;
|
||||||
|
|
@ -54,13 +54,8 @@ import jakarta.servlet.http.HttpServletRequest;
|
||||||
* @author rsoika
|
* @author rsoika
|
||||||
* @version 1.0
|
* @version 1.0
|
||||||
*/
|
*/
|
||||||
// @Named
|
|
||||||
// @ConversationScoped
|
|
||||||
// public class DataViewController extends AbstractDataController {
|
|
||||||
|
|
||||||
@Named
|
@Named
|
||||||
@ConversationScoped
|
@SessionScoped
|
||||||
// @ViewScoped
|
|
||||||
public class DataViewController extends ViewController {
|
public class DataViewController extends ViewController {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
@ -108,7 +103,9 @@ public class DataViewController extends ViewController {
|
||||||
* This method loads the custom form sections
|
* This method loads the custom form sections
|
||||||
*/
|
*/
|
||||||
public void onLoad() {
|
public void onLoad() {
|
||||||
|
if (filter == null) {
|
||||||
filter = new ItemCollection();
|
filter = new ItemCollection();
|
||||||
|
}
|
||||||
// super.onLoad();
|
// super.onLoad();
|
||||||
startConversation();
|
startConversation();
|
||||||
|
|
||||||
|
|
@ -130,6 +127,7 @@ public class DataViewController extends ViewController {
|
||||||
// Init new Filter....
|
// Init new Filter....
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
filter.setItemValue("txtWorkflowEditorCustomForm", data.getItemValue("form"));
|
filter.setItemValue("txtWorkflowEditorCustomForm", data.getItemValue("form"));
|
||||||
|
// filter.setItemValue("date.from", new Date());
|
||||||
customFormController.computeFieldDefinition(filter);
|
customFormController.computeFieldDefinition(filter);
|
||||||
sections = customFormController.getSections();
|
sections = customFormController.getSections();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue