02-22-2007 04:09 AM
05-24-2007 05:40 AM
<?xml version="1.0" encoding="UTF-8" ?>
- <model name="dl:content" xmlns="http://www.alfresco.org/model/dictionary/1.0">
- <!– Optional meta-data about the model
–>
<description>Modele NewsML</description>
<author>Christophe</author>
<version>0.1</version>
- <!– Imports are required to allow references to definitions in other models
–>
- <imports>
- <!– Import Alfresco Dictionary Definitions
–>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
- <!– Import Alfresco Content Domain Model Definitions
–>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
</imports>
- <!– Introduction of new namespaces defined by this model
–>
- <!– NOTE: The following namespace my.new.model should be changed to reflect your own namespace
–>
- <namespaces>
<namespace uri="com.company.dl.model" prefix="dl" />
</namespaces>
- <constraints>
- <constraint name="dl:subject_matter" type="LIST">
- <parameter name="allowedValues">
- <list>
<value>Sports</value>
<value>Education</value>
<value>Entertain</value>
</list>
</parameter>
</constraint>
- <constraint name="dl:subject_detail" type="LIST">
- <parameter name="allowedValues">
- <list>
<value>FootBall</value>
<value>Cricket</value>
<value>Hockey</value>
<value>Mathsnews</value>
<value>Science</value>
<value>Social</value>
<value>Movies</value>
<value>Chatting</value>
<value>Dating</value>
</list>
</parameter>
</constraint>
</constraints>
- <types>
- <type name="dl:content">
<title>Content</title>
<parent>cm:content</parent>
- <mandatory-aspects>
<aspect>dl:categorizable</aspect>
</mandatory-aspects>
</type>
- <!– Definition of new Content Type: Standard Operating Procedure
–>
- <type name="dl:sportscontent">
<title>Sportscontent</title>
<parent>dl:content</parent>
- <properties>
- <property name="dl:Title">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
- <property name="dl:Publish">
<type>d:date</type>
<mandatory>true</mandatory>
</property>
</properties>
</type>
- </types>
- <aspects>
- <aspect name="dl:categorizable">
<title>Categorizable</title>
- <properties>
- <property name="dl:SubjectMatter">
<title>SubjectMatter</title>
<type>d:text</type>
<mandatory>true</mandatory>
- <constraints>
<constraint ref="dl:subject_matter" />
</constraints>
</property>
- <property name="dl:SubjectDetail">
<title>SubjectDetail</title>
<type>d:text</type>
<mandatory>true</mandatory>
- <constraints>
<constraint ref="dml:subject_detail" />
</constraints>
</property>
- </properties>
</aspect>
</aspects>
</model>05-25-2007 03:45 AM
<show-property name="your:prop" component-generator="YourNewComponentGenerator" />
06-01-2007 11:04 AM
06-01-2007 12:27 PM
MethodBinding mb = FacesContext.getCurrentInstance().getApplication().createMethodBinding("#{TextFieldCategoryListener.processValueChange}",new Class[] { ValueChangeEvent.class });
componentSelectOne.setValueChangeListener(mb);public class TextFieldCategoryListener implements ValueChangeListener {
public void processValueChange(ValueChangeEvent event)
throws AbortProcessingException {
if (null != event.getNewValue()) {
// Ensure a refresh
UIContextService.getInstance(FacesContext.getCurrentInstance()).notifyBeans();
System.out.println("\n" + event.getNewValue());
}
}
}
// Ensure a refresh
UIContextService.getInstance(FacesContext.getCurrentInstance()).notifyBeans();06-04-2007 07:14 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.