Hello community,
Just uploaded
XMLPortletFactory-6.x-v1.10-beta.zip to Sourceforge.net, there are two main improvements.
- We have a new tag named "<unique>" that can have true or false values, and can be used in fields of type:
- int
- long
- numeric
- float
- varchar
This improvement, comes to solve Nagesh vv Bodapati's post "
is it possible to make the field as unique". A usage example of it would be something like this:
1 <field>
2 <name>courseCode</name>
3 <title>Unique Code</title>
4 <type>
5 <varchar>
6 <length>5</length>
7 <unique>true</unique>
8 </varchar>
9 </type>
10 <showFieldInView>true</showFieldInView>
11 <required>false</required>
12 </field>
Now the field value of courseCode, cannot be repeated because it would get a unique constraint violation, Getting an error message like the one showed in attached image.
- The second, small but important improvement, is a new velocity template, named Portlet_XMLPF_Definition_xml.vm that will automaticly generates a copy of the xml definition file being used on /docroot/WEB-INF/src/XMLPF_Definition.xml.
You can upgrade now your portlets, with this improvements, just re-generate your xml definitions again.
Saludos, Jack.