moved package to temparory org.x4o.vasc.etc
This commit is contained in:
parent
3d6ceff732
commit
cc6331b7fe
322 changed files with 2032 additions and 1750 deletions
|
|
@ -5,6 +5,7 @@
|
|||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
|
||||
<classpathentry kind="output" path="target/classes"/>
|
||||
</classpath>
|
||||
|
|
|
|||
|
|
@ -15,8 +15,14 @@
|
|||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.maven.ide.eclipse.maven2Nature</nature>
|
||||
</natures>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
#Sun Dec 25 17:29:07 CET 2011
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/main/resources=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding//src/test/resources=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
#Sun Dec 25 17:29:03 CET 2011
|
||||
activeProfiles=
|
||||
eclipse.preferences.version=1
|
||||
resolveWorkspaceProjects=true
|
||||
version=1
|
||||
|
|
@ -1,23 +1,23 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<artifactId>vasc-base</artifactId>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
<artifactId>vasc</artifactId>
|
||||
<groupId>org.x4o.vasc</groupId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
</parent>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
<groupId>org.x4o.vasc</groupId>
|
||||
<artifactId>vasc-frontend-web-jsf</artifactId>
|
||||
<version>0.3.5-SNAPSHOT</version>
|
||||
<name>vasc-frontend-web-jsf</name>
|
||||
<description>vasc-frontend-web-jsf</description>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
<groupId>org.x4o.vasc</groupId>
|
||||
<artifactId>vasc-core</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.idcanet.vasc</groupId>
|
||||
<groupId>org.x4o.vasc</groupId>
|
||||
<artifactId>vasc-ejb3</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>provided</scope>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.IOException;
|
||||
|
|
@ -42,25 +42,26 @@ import javax.faces.context.FacesContext;
|
|||
import javax.naming.Context;
|
||||
import javax.naming.InitialContext;
|
||||
|
||||
import com.idcanet.vasc.core.VascBackend;
|
||||
import com.idcanet.vasc.core.VascBackendControllerLocal;
|
||||
import com.idcanet.vasc.core.VascBackendState;
|
||||
import com.idcanet.vasc.core.VascController;
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryControllerLocal;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.VascFrontendData;
|
||||
import com.idcanet.vasc.core.entry.VascEntryBackendEventListener;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
import com.idcanet.vasc.core.entry.VascEntryRecordCreator;
|
||||
import com.idcanet.vasc.ejb3.VascServiceManager;
|
||||
import com.idcanet.vasc.impl.DefaultVascBackedEntryFinalizer;
|
||||
import com.idcanet.vasc.impl.DefaultVascFactory;
|
||||
import com.idcanet.vasc.impl.VascBackendProxyEventExecutor;
|
||||
import com.idcanet.vasc.impl.entry.DefaultVascEntryResourceResolver;
|
||||
import com.idcanet.vasc.impl.entry.SetParameterBackendListener;
|
||||
import org.x4o.vasc.core.VascBackend;
|
||||
import org.x4o.vasc.core.VascBackendControllerLocal;
|
||||
import org.x4o.vasc.core.VascBackendState;
|
||||
import org.x4o.vasc.core.VascController;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryControllerLocal;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.VascFrontendData;
|
||||
import org.x4o.vasc.core.entry.VascEntryBackendEventListener;
|
||||
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||
import org.x4o.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
import org.x4o.vasc.core.entry.VascEntryRecordCreator;
|
||||
import org.x4o.vasc.ejb3.VascServiceManager;
|
||||
import org.x4o.vasc.impl.DefaultVascBackedEntryFinalizer;
|
||||
import org.x4o.vasc.impl.DefaultVascFactory;
|
||||
import org.x4o.vasc.impl.VascBackendProxyEventExecutor;
|
||||
import org.x4o.vasc.impl.entry.DefaultVascEntryResourceResolver;
|
||||
import org.x4o.vasc.impl.entry.SetParameterBackendListener;
|
||||
|
||||
|
||||
/**
|
||||
* Base faces session object for managing vasc entries.
|
||||
|
|
@ -95,7 +96,7 @@ abstract public class AbstractJSFVascFacesController {
|
|||
return result;
|
||||
}
|
||||
public void vascEvent(VascEntry entry,Object data) {
|
||||
if (data.getClass().getName().startsWith("com.idcanet.logstats.ejb.models")==false) {
|
||||
if (data.getClass().getName().startsWith("some.class.models.jpa")==false) {
|
||||
return; // only refresh model classes
|
||||
}
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -9,10 +9,11 @@ import java.util.List;
|
|||
import javax.el.ValueExpression;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||
import org.x4o.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
|
||||
|
||||
/**
|
||||
* @author willemc
|
||||
|
|
@ -28,7 +29,7 @@ public class JSFVascEntryEventListener implements VascEntryFrontendEventListener
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.entry.VascEntryFrontendEventListener#getEventTypes()
|
||||
* @see org.x4o.vasc.core.entry.VascEntryFrontendEventListener#getEventTypes()
|
||||
*/
|
||||
public VascFrontendEventType[] getEventTypes() {
|
||||
VascFrontendEventType[] result = {VascEntryFrontendEventListener.VascFrontendEventType.POST_READ};
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
@ -51,21 +51,22 @@ import javax.faces.model.SelectItem;
|
|||
import javax.servlet.ServletOutputStream;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.idcanet.vasc.core.VascBackend;
|
||||
import com.idcanet.vasc.core.VascBackendPageNumber;
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascEntryState;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.VascLinkEntry;
|
||||
import com.idcanet.vasc.core.VascLinkEntryType;
|
||||
import com.idcanet.vasc.core.actions.GlobalVascAction;
|
||||
import com.idcanet.vasc.core.actions.RowVascAction;
|
||||
import com.idcanet.vasc.core.entry.VascEntryExporter;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
||||
import com.idcanet.vasc.impl.actions.AddRowAction;
|
||||
import com.idcanet.vasc.impl.actions.DeleteRowAction;
|
||||
import com.idcanet.vasc.impl.actions.EditRowAction;
|
||||
import org.x4o.vasc.core.VascBackend;
|
||||
import org.x4o.vasc.core.VascBackendPageNumber;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascEntryState;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.VascLinkEntry;
|
||||
import org.x4o.vasc.core.VascLinkEntryType;
|
||||
import org.x4o.vasc.core.actions.GlobalVascAction;
|
||||
import org.x4o.vasc.core.actions.RowVascAction;
|
||||
import org.x4o.vasc.core.entry.VascEntryExporter;
|
||||
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||
import org.x4o.vasc.impl.actions.AddRowAction;
|
||||
import org.x4o.vasc.impl.actions.DeleteRowAction;
|
||||
import org.x4o.vasc.impl.actions.EditRowAction;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.logging.Logger;
|
||||
|
|
@ -32,14 +32,15 @@ import java.util.logging.Logger;
|
|||
import javax.faces.component.UIViewRoot;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import com.idcanet.vasc.core.AbstractVascFrontend;
|
||||
import com.idcanet.vasc.core.VascFrontendData;
|
||||
import com.idcanet.vasc.core.entry.VascEntryExporter;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFBoolean;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFLabel;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFList;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFText;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFTextArea;
|
||||
import org.x4o.vasc.core.AbstractVascFrontend;
|
||||
import org.x4o.vasc.core.VascFrontendData;
|
||||
import org.x4o.vasc.core.entry.VascEntryExporter;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFBoolean;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFLabel;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFList;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFText;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFTextArea;
|
||||
|
||||
|
||||
/**
|
||||
* Given the jsf vasc renderer its own class
|
||||
|
|
@ -60,7 +61,7 @@ public class JSFVascFrontendRenderer extends AbstractVascFrontend implements Ser
|
|||
// Frontend Stuff
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#getFrontendType()
|
||||
* @see org.x4o.vasc.core.VascFrontend#getFrontendType()
|
||||
*/
|
||||
public String getFrontendType() {
|
||||
return "jsf";
|
||||
|
|
@ -71,21 +72,21 @@ public class JSFVascFrontendRenderer extends AbstractVascFrontend implements Ser
|
|||
VascFrontendData vfd = getVascEntry().getVascFrontendData();
|
||||
|
||||
// required UI components
|
||||
vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_LABEL,JSFLabel.class.getName());
|
||||
vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_TEXT, JSFText.class.getName());
|
||||
vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_LIST, JSFList.class.getName());
|
||||
//vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_BUTTON, JSFButton.class.getName());
|
||||
vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_LABEL,JSFLabel.class.getName());
|
||||
vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_TEXT, JSFText.class.getName());
|
||||
vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_LIST, JSFList.class.getName());
|
||||
//vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_BUTTON, JSFButton.class.getName());
|
||||
|
||||
// optional UI components
|
||||
vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_BOOLEAN , JSFBoolean.class.getName());
|
||||
//vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_DATE , JSFDate.class.getName());
|
||||
vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_TEXTAREA , JSFTextArea.class.getName());
|
||||
//vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_COLOR , JSFColorChooser.class.getName());
|
||||
vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_BOOLEAN , JSFBoolean.class.getName());
|
||||
//vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_DATE , JSFDate.class.getName());
|
||||
vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_TEXTAREA , JSFTextArea.class.getName());
|
||||
//vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_COLOR , JSFColorChooser.class.getName());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#renderDelete(java.lang.Object)
|
||||
* @see org.x4o.vasc.core.VascFrontend#renderDelete(java.lang.Object)
|
||||
*/
|
||||
public void renderDelete() throws Exception {
|
||||
logger.finer("renderDelete");
|
||||
|
|
@ -95,7 +96,7 @@ public class JSFVascFrontendRenderer extends AbstractVascFrontend implements Ser
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#renderEdit(java.lang.Object)
|
||||
* @see org.x4o.vasc.core.VascFrontend#renderEdit(java.lang.Object)
|
||||
*/
|
||||
public void renderEdit() throws Exception {
|
||||
logger.finer("renderEdit");
|
||||
|
|
@ -117,7 +118,7 @@ public class JSFVascFrontendRenderer extends AbstractVascFrontend implements Ser
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#renderExport(com.idcanet.vasc.core.entry.VascEntryExporter)
|
||||
* @see org.x4o.vasc.core.VascFrontend#renderExport(org.x4o.vasc.core.entry.VascEntryExporter)
|
||||
*/
|
||||
public void renderExport(VascEntryExporter exporter) throws Exception {
|
||||
logger.finer("renderExport");
|
||||
|
|
@ -128,7 +129,7 @@ public class JSFVascFrontendRenderer extends AbstractVascFrontend implements Ser
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#renderView()
|
||||
* @see org.x4o.vasc.core.VascFrontend#renderView()
|
||||
*/
|
||||
public void renderView() throws Exception {
|
||||
logger.finer("renderView");
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -37,18 +37,19 @@ import javax.faces.component.UIComponent;
|
|||
import javax.faces.component.UIComponentBase;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import com.idcanet.vasc.core.VascBackend;
|
||||
import com.idcanet.vasc.core.VascController;
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascEntryState;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.VascFrontendData;
|
||||
import com.idcanet.vasc.core.VascLinkEntry;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFrontendEventListener.VascFrontendEventType;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFListModel;
|
||||
import com.idcanet.vasc.impl.DefaultVascFactory;
|
||||
import org.x4o.vasc.core.VascBackend;
|
||||
import org.x4o.vasc.core.VascController;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascEntryState;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.VascFrontendData;
|
||||
import org.x4o.vasc.core.VascLinkEntry;
|
||||
import org.x4o.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
import org.x4o.vasc.core.entry.VascEntryFrontendEventListener.VascFrontendEventType;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFListModel;
|
||||
import org.x4o.vasc.impl.DefaultVascFactory;
|
||||
|
||||
|
||||
/**
|
||||
* Renders an JSF vasc entry views.
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
|
|
@ -66,16 +66,17 @@ import javax.faces.render.Renderer;
|
|||
import javax.faces.validator.Validator;
|
||||
import javax.faces.validator.ValidatorException;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.VascLinkEntry;
|
||||
import com.idcanet.vasc.core.VascLinkEntryType;
|
||||
import com.idcanet.vasc.core.actions.RowVascAction;
|
||||
import com.idcanet.vasc.core.ui.VascOptionValueModelListener;
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import com.idcanet.vasc.impl.actions.AddRowAction;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.VascLinkEntry;
|
||||
import org.x4o.vasc.core.VascLinkEntryType;
|
||||
import org.x4o.vasc.core.actions.RowVascAction;
|
||||
import org.x4o.vasc.core.ui.VascOptionValueModelListener;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.impl.actions.AddRowAction;
|
||||
|
||||
|
||||
/**
|
||||
* Renders an JSF vasc entry views.
|
||||
|
|
@ -134,7 +135,7 @@ public class JSFVascUIComponentRenderer extends Renderer {
|
|||
String injectTableColumnsId = (String)comp.getAttributes().get(JSFVascUIComponent.INJECT_TABLE_COLUMNS_ID);
|
||||
|
||||
UIComponent injectEditFieldsComponent = JSFVascUIComponent.findComponentById(comp.getFacet("editView"),injectEditFieldsId);
|
||||
UIComponent injectTableOptionsComponent = JSFVascUIComponent.findComponentById(comp.getFacet("listView"),injectTableOptionsId,comp);
|
||||
UIComponent injectTableOptionsComponent = JSFVascUIComponent.findComponentById(comp.getFacet("listView"),injectTableOptionsId);
|
||||
UIComponent injectTableColumnsComponent = JSFVascUIComponent.findComponentById(comp.getFacet("listView"),injectTableColumnsId);
|
||||
if (injectEditFieldsComponent==null) {
|
||||
throw new NullPointerException("Could not find injectEditFieldsId: "+injectEditFieldsId);
|
||||
|
|
@ -155,7 +156,7 @@ public class JSFVascUIComponentRenderer extends Renderer {
|
|||
logger.finer("Injection of all dynamic JSF components.");
|
||||
try {
|
||||
addEditFields(context, injectEditFieldsComponent);
|
||||
addTableOptions(context, injectTableOptionsComponent);
|
||||
addTableOptions(context, injectTableOptionsComponent,comp);
|
||||
addColumns(context,comp,injectTableColumnsComponent );
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Error while injecting; "+e.getMessage(),e);
|
||||
|
|
@ -286,7 +287,7 @@ public class JSFVascUIComponentRenderer extends Renderer {
|
|||
//Application application = fc.getApplication();
|
||||
//UIViewRoot viewRoot = fc.getViewRoot();
|
||||
|
||||
JSFVascUIComponent comp = JSFVascUIComponent.findVascParent(grid);
|
||||
//JSFVascUIComponent comp = JSFVascUIComponent.findVascParent(grid);
|
||||
VascEntry entry = comp.getVascEntry();
|
||||
|
||||
for (VascEntryField option:entry.getListOptions()) {
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
|
||||
import javax.el.ValueExpression;
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
*
|
||||
*/
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.Map;
|
||||
|
|
@ -17,8 +17,9 @@ import javax.faces.event.PhaseListener;
|
|||
import javax.faces.validator.Validator;
|
||||
import javax.faces.validator.ValidatorException;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.frontends.web.jsf.JSFVascUIComponentRenderer.VascJSFInputValidator2;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.frontends.web.jsf.JSFVascUIComponentRenderer.VascJSFInputValidator2;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
|
|
@ -63,32 +63,33 @@ import javax.faces.validator.ValidatorException;
|
|||
import javax.servlet.ServletOutputStream;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import com.idcanet.vasc.core.AbstractVascFrontend;
|
||||
import com.idcanet.vasc.core.VascBackend;
|
||||
import com.idcanet.vasc.core.VascBackendFilter;
|
||||
import com.idcanet.vasc.core.VascController;
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.VascFrontendData;
|
||||
import com.idcanet.vasc.core.VascLinkEntry;
|
||||
import com.idcanet.vasc.core.actions.GlobalVascAction;
|
||||
import com.idcanet.vasc.core.actions.RowVascAction;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
import com.idcanet.vasc.core.entry.VascEntryExporter;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFrontendEventListener.VascFrontendEventType;
|
||||
import com.idcanet.vasc.core.ui.VascOptionValueModelListener;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFBoolean;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFLabel;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFList;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFText;
|
||||
import com.idcanet.vasc.frontends.web.jsf.ui.JSFTextArea;
|
||||
import com.idcanet.vasc.impl.VascBackendProxyFilter;
|
||||
import com.idcanet.vasc.impl.VascBackendProxyPaged;
|
||||
import com.idcanet.vasc.impl.VascBackendProxySearch;
|
||||
import com.idcanet.vasc.impl.VascBackendProxySort;
|
||||
import org.x4o.vasc.core.AbstractVascFrontend;
|
||||
import org.x4o.vasc.core.VascBackend;
|
||||
import org.x4o.vasc.core.VascBackendFilter;
|
||||
import org.x4o.vasc.core.VascController;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.VascFrontendData;
|
||||
import org.x4o.vasc.core.VascLinkEntry;
|
||||
import org.x4o.vasc.core.actions.GlobalVascAction;
|
||||
import org.x4o.vasc.core.actions.RowVascAction;
|
||||
import org.x4o.vasc.core.entry.VascEntryExporter;
|
||||
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||
import org.x4o.vasc.core.entry.VascEntryFrontendEventListener;
|
||||
import org.x4o.vasc.core.entry.VascEntryFrontendEventListener.VascFrontendEventType;
|
||||
import org.x4o.vasc.core.ui.VascOptionValueModelListener;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFBoolean;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFLabel;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFList;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFText;
|
||||
import org.x4o.vasc.frontends.web.jsf.ui.JSFTextArea;
|
||||
import org.x4o.vasc.impl.VascBackendProxyFilter;
|
||||
import org.x4o.vasc.impl.VascBackendProxyPaged;
|
||||
import org.x4o.vasc.impl.VascBackendProxySearch;
|
||||
import org.x4o.vasc.impl.VascBackendProxySort;
|
||||
|
||||
|
||||
/**
|
||||
* Only here for archive a bit, does not work anymore.
|
||||
|
|
@ -102,7 +103,7 @@ import com.idcanet.vasc.impl.VascBackendProxySort;
|
|||
*/
|
||||
public class OldVascUIComponent extends UIComponentBase {
|
||||
|
||||
public static final String COMPONENT_TYPE = "com.idcanet.vasc.frontends.web.jsf.VascUIComponent";
|
||||
public static final String COMPONENT_TYPE = "org.x4o.vasc.frontends.web.jsf.VascUIComponent";
|
||||
private Object[] state = null;
|
||||
private ValueExpression vascController = null;
|
||||
private ValueExpression vascFrontendData = null;
|
||||
|
|
@ -821,12 +822,12 @@ public class OldVascUIComponent extends UIComponentBase {
|
|||
|
||||
for (int i=0;i<c.getVascEntryFieldType().getUIComponentCount(c);i++) {
|
||||
|
||||
com.idcanet.vasc.core.ui.VascUIComponent label = c.getVascEntryFieldType().provideLabelUIComponent(i,c);
|
||||
org.x4o.vasc.core.ui.VascUIComponent label = c.getVascEntryFieldType().provideLabelUIComponent(i,c);
|
||||
VascValueModel model = new VascValueModel();
|
||||
model.setValue(i18n(c.getName()));
|
||||
label.createComponent(entry,c,model,grid);
|
||||
|
||||
com.idcanet.vasc.core.ui.VascUIComponent editor = c.getVascEntryFieldType().provideEditorUIComponent(i,c);
|
||||
org.x4o.vasc.core.ui.VascUIComponent editor = c.getVascEntryFieldType().provideEditorUIComponent(i,c);
|
||||
model = new VascValueModel(c.getVascEntryFieldType().provideEditorVascValueModel(i,c));
|
||||
//model.setValue(c.getVascEntryFieldValue().getValue(c, bean));
|
||||
//model.addListener(new VascColumnValueModelListener(c,bean));
|
||||
|
|
@ -1207,7 +1208,7 @@ public class OldVascUIComponent extends UIComponentBase {
|
|||
listOptionGroup.setId(viewRoot.createUniqueId());
|
||||
options.getChildren().add(listOptionGroup);
|
||||
|
||||
com.idcanet.vasc.core.ui.VascUIComponent label = option.getVascEntryFieldType().provideLabelUIComponent(i,option);
|
||||
org.x4o.vasc.core.ui.VascUIComponent label = option.getVascEntryFieldType().provideLabelUIComponent(i,option);
|
||||
VascValueModel model = new VascValueModel();
|
||||
model.setValue(i18n(option.getName()));
|
||||
label.createComponent(entry,option,model,listOptionGroup);
|
||||
|
|
@ -1218,7 +1219,7 @@ public class OldVascUIComponent extends UIComponentBase {
|
|||
space2.setEscape(false);
|
||||
listOptionGroup.getChildren().add(space2);
|
||||
|
||||
com.idcanet.vasc.core.ui.VascUIComponent editor = option.getVascEntryFieldType().provideEditorUIComponent(i,option);
|
||||
org.x4o.vasc.core.ui.VascUIComponent editor = option.getVascEntryFieldType().provideEditorUIComponent(i,option);
|
||||
model = new VascValueModel(option.getVascEntryFieldType().provideEditorVascValueModel(i,option));
|
||||
model.addListener(new VascOptionValueModelListener(option));
|
||||
model.setValue(null);
|
||||
|
|
@ -1598,7 +1599,7 @@ class JSFFrontendRenderer extends AbstractVascFrontend implements Serializable {
|
|||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#getFrontendType()
|
||||
* @see org.x4o.vasc.core.VascFrontend#getFrontendType()
|
||||
*/
|
||||
public String getFrontendType() {
|
||||
return "jsf";
|
||||
|
|
@ -1610,21 +1611,21 @@ class JSFFrontendRenderer extends AbstractVascFrontend implements Serializable {
|
|||
VascFrontendData vfd = getVascEntry().getVascFrontendData();
|
||||
|
||||
// required UI components
|
||||
vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_LABEL,JSFLabel.class.getName());
|
||||
vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_TEXT, JSFText.class.getName());
|
||||
vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_LIST, JSFList.class.getName());
|
||||
//vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_BUTTON, JSFButton.class.getName());
|
||||
vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_LABEL,JSFLabel.class.getName());
|
||||
vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_TEXT, JSFText.class.getName());
|
||||
vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_LIST, JSFList.class.getName());
|
||||
//vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_BUTTON, JSFButton.class.getName());
|
||||
|
||||
// optional UI components
|
||||
vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_BOOLEAN , JSFBoolean.class.getName());
|
||||
//vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_DATE , JSFDate.class.getName());
|
||||
vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_TEXTAREA , JSFTextArea.class.getName());
|
||||
//vfd.putVascUIComponent(com.idcanet.vasc.core.ui.VascUIComponent.VASC_COLOR , JSFColorChooser.class.getName());
|
||||
vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_BOOLEAN , JSFBoolean.class.getName());
|
||||
//vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_DATE , JSFDate.class.getName());
|
||||
vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_TEXTAREA , JSFTextArea.class.getName());
|
||||
//vfd.putVascUIComponent(org.x4o.vasc.core.ui.VascUIComponent.VASC_COLOR , JSFColorChooser.class.getName());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#renderDelete(java.lang.Object)
|
||||
* @see org.x4o.vasc.core.VascFrontend#renderDelete(java.lang.Object)
|
||||
*/
|
||||
public void renderDelete() throws Exception {
|
||||
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
|
||||
|
|
@ -1635,7 +1636,7 @@ class JSFFrontendRenderer extends AbstractVascFrontend implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#renderEdit(java.lang.Object)
|
||||
* @see org.x4o.vasc.core.VascFrontend#renderEdit(java.lang.Object)
|
||||
*/
|
||||
public void renderEdit() throws Exception {
|
||||
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
|
||||
|
|
@ -1661,7 +1662,7 @@ class JSFFrontendRenderer extends AbstractVascFrontend implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#renderExport(com.idcanet.vasc.core.entry.VascEntryExporter)
|
||||
* @see org.x4o.vasc.core.VascFrontend#renderExport(org.x4o.vasc.core.entry.VascEntryExporter)
|
||||
*/
|
||||
public void renderExport(VascEntryExporter exporter) throws Exception {
|
||||
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
|
||||
|
|
@ -1674,7 +1675,7 @@ class JSFFrontendRenderer extends AbstractVascFrontend implements Serializable {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.VascFrontend#renderView()
|
||||
* @see org.x4o.vasc.core.VascFrontend#renderView()
|
||||
*/
|
||||
public void renderView() throws Exception {
|
||||
UIViewRoot viewRoot = FacesContext.getCurrentInstance().getViewRoot();
|
||||
|
|
@ -24,15 +24,16 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.entry.VascEntryFieldValue;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.entry.VascEntryFieldValue;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Locale;
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf;
|
||||
package org.x4o.vasc.frontends.web.jsf;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Locale;
|
||||
|
|
@ -24,13 +24,14 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf.ui;
|
||||
package org.x4o.vasc.frontends.web.jsf.ui;
|
||||
|
||||
import javax.faces.component.UIComponent;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import com.idcanet.vasc.core.ui.VascUIComponent;
|
||||
import com.idcanet.vasc.frontends.web.jsf.JSFVascUIComponent;
|
||||
import org.x4o.vasc.core.ui.VascUIComponent;
|
||||
import org.x4o.vasc.frontends.web.jsf.JSFVascUIComponent;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -44,20 +45,20 @@ abstract public class AbstractJSFBaseComponent implements VascUIComponent {
|
|||
protected String componentId = null;
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#getErrorText()
|
||||
*/
|
||||
public String getErrorText() {
|
||||
return "";
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setErrorText(java.lang.String)
|
||||
*/
|
||||
public void setErrorText(String text) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isRendered()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isRendered()
|
||||
*/
|
||||
public boolean isRendered() {
|
||||
UIComponent component = (UIComponent)JSFVascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
|
|
@ -65,11 +66,11 @@ abstract public class AbstractJSFBaseComponent implements VascUIComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setRendered(boolean)
|
||||
*/
|
||||
public void setRendered(boolean rendered) {
|
||||
// todo: disabled until templates fixes
|
||||
//UIComponent component = (UIComponent)com.idcanet.vasc.frontends.web.jsf.VascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
//UIComponent component = (UIComponent)org.x4o.vasc.frontends.web.jsf.VascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
//component.setRendered(rendered);
|
||||
}
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf.ui;
|
||||
package org.x4o.vasc.frontends.web.jsf.ui;
|
||||
|
||||
import javax.faces.application.Application;
|
||||
import javax.faces.component.UIComponent;
|
||||
|
|
@ -32,11 +32,12 @@ import javax.faces.component.UIViewRoot;
|
|||
import javax.faces.component.html.HtmlSelectBooleanCheckbox;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import com.idcanet.vasc.frontends.web.jsf.JSFVascUIComponent;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.frontends.web.jsf.JSFVascUIComponent;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -60,7 +61,7 @@ public class JSFBoolean extends AbstractJSFBaseComponent {
|
|||
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
HtmlSelectBooleanCheckbox component = (HtmlSelectBooleanCheckbox)JSFVascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
|
|
@ -68,7 +69,7 @@ public class JSFBoolean extends AbstractJSFBaseComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
HtmlSelectBooleanCheckbox component = (HtmlSelectBooleanCheckbox)JSFVascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf.ui;
|
||||
package org.x4o.vasc.frontends.web.jsf.ui;
|
||||
|
||||
import javax.faces.application.Application;
|
||||
import javax.faces.component.UIComponent;
|
||||
|
|
@ -32,10 +32,11 @@ import javax.faces.component.UIViewRoot;
|
|||
import javax.faces.component.html.HtmlOutputText;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -59,14 +60,14 @@ public class JSFLabel extends AbstractJSFBaseComponent {
|
|||
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
}
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf.ui;
|
||||
package org.x4o.vasc.frontends.web.jsf.ui;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
|
@ -39,12 +39,13 @@ import javax.faces.context.FacesContext;
|
|||
import javax.faces.convert.Converter;
|
||||
import javax.faces.convert.ConverterException;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascSelectItem;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import com.idcanet.vasc.frontends.web.jsf.JSFVascUIComponent;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascSelectItem;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.frontends.web.jsf.JSFVascUIComponent;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -79,7 +80,7 @@ public class JSFList extends AbstractJSFBaseComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
HtmlSelectOneMenu component = (HtmlSelectOneMenu)JSFVascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
|
|
@ -87,7 +88,7 @@ public class JSFList extends AbstractJSFBaseComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
HtmlSelectOneMenu component = (HtmlSelectOneMenu)JSFVascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf.ui;
|
||||
package org.x4o.vasc.frontends.web.jsf.ui;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
|
|
@ -35,10 +35,11 @@ import java.util.ListIterator;
|
|||
|
||||
import javax.faces.model.SelectItem;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascSelectItem;
|
||||
import com.idcanet.vasc.core.ui.VascSelectItemModel;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascSelectItem;
|
||||
import org.x4o.vasc.core.ui.VascSelectItemModel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf.ui;
|
||||
package org.x4o.vasc.frontends.web.jsf.ui;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
|
|
@ -36,11 +36,12 @@ import javax.faces.context.FacesContext;
|
|||
import javax.faces.convert.Converter;
|
||||
import javax.faces.convert.ConverterException;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import com.idcanet.vasc.frontends.web.jsf.JSFVascUIComponent;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.frontends.web.jsf.JSFVascUIComponent;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -69,7 +70,7 @@ public class JSFText extends AbstractJSFBaseComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
HtmlInputText component = (HtmlInputText)JSFVascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
|
|
@ -77,7 +78,7 @@ public class JSFText extends AbstractJSFBaseComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
HtmlInputText component = (HtmlInputText)JSFVascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
|
|
@ -24,7 +24,7 @@
|
|||
* should not be interpreted as representing official policies, either expressed or implied, of IDCA.
|
||||
*/
|
||||
|
||||
package com.idcanet.vasc.frontends.web.jsf.ui;
|
||||
package org.x4o.vasc.frontends.web.jsf.ui;
|
||||
|
||||
import javax.faces.application.Application;
|
||||
import javax.faces.component.UIComponent;
|
||||
|
|
@ -32,11 +32,12 @@ import javax.faces.component.UIViewRoot;
|
|||
import javax.faces.component.html.HtmlInputTextarea;
|
||||
import javax.faces.context.FacesContext;
|
||||
|
||||
import com.idcanet.vasc.core.VascEntry;
|
||||
import com.idcanet.vasc.core.VascEntryField;
|
||||
import com.idcanet.vasc.core.VascException;
|
||||
import com.idcanet.vasc.core.ui.VascValueModel;
|
||||
import com.idcanet.vasc.frontends.web.jsf.JSFVascUIComponent;
|
||||
import org.x4o.vasc.core.VascEntry;
|
||||
import org.x4o.vasc.core.VascEntryField;
|
||||
import org.x4o.vasc.core.VascException;
|
||||
import org.x4o.vasc.core.ui.VascValueModel;
|
||||
import org.x4o.vasc.frontends.web.jsf.JSFVascUIComponent;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -68,7 +69,7 @@ public class JSFTextArea extends AbstractJSFBaseComponent {
|
|||
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#isDisabled()
|
||||
*/
|
||||
public boolean isDisabled() {
|
||||
HtmlInputTextarea component = (HtmlInputTextarea)JSFVascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
|
|
@ -76,7 +77,7 @@ public class JSFTextArea extends AbstractJSFBaseComponent {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see com.idcanet.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
* @see org.x4o.vasc.core.ui.VascUIComponent#setDisabled(boolean)
|
||||
*/
|
||||
public void setDisabled(boolean disabled) {
|
||||
HtmlInputTextarea component = (HtmlInputTextarea)JSFVascUIComponent.findComponentById(FacesContext.getCurrentInstance().getViewRoot(),componentId);
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
<description><![CDATA[Renders a templated vasc entry]]></description>
|
||||
<display-name>Vasc JSF Component</display-name>
|
||||
<component-type>vasc.jsf.component</component-type>
|
||||
<component-class>com.idcanet.vasc.frontends.web.jsf.JSFVascUIComponent</component-class>
|
||||
<component-class>org.x4o.vasc.frontends.web.jsf.JSFVascUIComponent</component-class>
|
||||
<component-extension>
|
||||
<renderer-type>vasc.jsf.component.renderer</renderer-type>
|
||||
</component-extension>
|
||||
|
|
@ -16,13 +16,13 @@
|
|||
<renderer>
|
||||
<component-family>vasc.jsf.component.family</component-family>
|
||||
<renderer-type>vasc.jsf.component.renderer</renderer-type>
|
||||
<renderer-class>com.idcanet.vasc.frontends.web.jsf.JSFVascUIComponentRenderer</renderer-class>
|
||||
<renderer-class>org.x4o.vasc.frontends.web.jsf.JSFVascUIComponentRenderer</renderer-class>
|
||||
</renderer>
|
||||
</render-kit>
|
||||
|
||||
<application>
|
||||
<locale-config/>
|
||||
<view-handler>com.idcanet.vasc.frontends.web.jsf.VascViewHandler</view-handler>
|
||||
<view-handler>org.x4o.vasc.frontends.web.jsf.VascViewHandler</view-handler>
|
||||
</application>
|
||||
|
||||
<factory/>
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
<tag>
|
||||
<description>Renders the vasc entry JSF Frontend Renderer</description>
|
||||
<name>vascEntry</name>
|
||||
<tag-class>com.idcanet.vasc.frontends.web.jsf.JSFVascUIComponentTag</tag-class>
|
||||
<tag-class>org.x4o.vasc.frontends.web.jsf.JSFVascUIComponentTag</tag-class>
|
||||
<body-content>JSP</body-content>
|
||||
<attribute>
|
||||
<name>id</name>
|
||||
|
|
@ -33,7 +33,7 @@
|
|||
<name>vascController</name>
|
||||
<required>true</required>
|
||||
<deferred-value>
|
||||
<type>com.idcanet.vasc.core.VascController</type>
|
||||
<type>org.x4o.vasc.core.VascController</type>
|
||||
</deferred-value>
|
||||
</attribute>
|
||||
<attribute>
|
||||
|
|
@ -47,7 +47,7 @@
|
|||
<name>vascFrontendData</name>
|
||||
<required>true</required>
|
||||
<deferred-value>
|
||||
<type>com.idcanet.vasc.core.VascFrontendData</type>
|
||||
<type>org.x4o.vasc.core.VascFrontendData</type>
|
||||
</deferred-value>
|
||||
</attribute>
|
||||
<attribute>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue