dataview improvments

This commit is contained in:
Ralph Soika 2025-05-11 13:56:20 +02:00
parent 372c7887fb
commit 174b230509

View file

@ -42,7 +42,7 @@ import org.imixs.workflow.office.forms.CustomFormSection;
import jakarta.annotation.PostConstruct;
import jakarta.enterprise.context.Conversation;
import jakarta.enterprise.context.ConversationScoped;
import jakarta.enterprise.context.SessionScoped;
import jakarta.faces.context.FacesContext;
import jakarta.inject.Inject;
import jakarta.inject.Named;
@ -54,13 +54,8 @@ import jakarta.servlet.http.HttpServletRequest;
* @author rsoika
* @version 1.0
*/
// @Named
// @ConversationScoped
// public class DataViewController extends AbstractDataController {
@Named
@ConversationScoped
// @ViewScoped
@SessionScoped
public class DataViewController extends ViewController {
private static final long serialVersionUID = 1L;
@ -108,7 +103,9 @@ public class DataViewController extends ViewController {
* This method loads the custom form sections
*/
public void onLoad() {
filter = new ItemCollection();
if (filter == null) {
filter = new ItemCollection();
}
// super.onLoad();
startConversation();
@ -130,6 +127,7 @@ public class DataViewController extends ViewController {
// Init new Filter....
if (data != null) {
filter.setItemValue("txtWorkflowEditorCustomForm", data.getItemValue("form"));
// filter.setItemValue("date.from", new Date());
customFormController.computeFieldDefinition(filter);
sections = customFormController.getSections();
}