[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
] [
Newsgroup Home
]
[news.eclipse.webtools.jsf] Re: Validation: containment-constraint
From
:
shilpashandilya@xxxxxxxxxx
(shilpa )
Date
: Thu, 30 Apr 2009 12:16:28 +0000 (UTC)
Newsgroups
:
eclipse.webtools.jsf
Organization
: Eclipse
User-agent
: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Cam,
The Containment constraint doesn't seem to work for me when I have written a plugin for my custom tag library. Even if I mention a constraint of say actionButton to be inside a form, it still allows me to put an action button outside a form.
My metadata looks like this - <?xml version="1.0" encoding="UTF-8"?>
<md:metadatamodel xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
;
xmlns:ecore="
http://www.eclipse.org/emf/2002/Ecore"
;
xmlns:md="
http://org.eclipse.jst.jsf.common.metadata/metadata.ecore"
;
xmlns:mdt="
http://org.eclipse.jst.jsf.common.metadata/metadataTraitTypes.ecore"
;
xmlns:cnst="
http://org.eclipse.jst.jsf.core/constraints.ecore"
; xmlns:qe="
http://org.eclipse.jsf.pagedesigner/QuickEditTabSections.ecore"
;
id="
http://esf.hsbc.com/tags/jhx"
; type="tagFile">
<!-- Action Button Starts -->
<entity id="actionButton" type="tag">
<include-entity-group id="common-attributes" />
<include-entity-group id="basic-jhx-common-attributes" />
<trait id="containment-constraint">
<value xsi:type="cnst:ContainsTagConstraint">
<set-generator>
<algorithm>xpath</algorithm>
<expression>ancestor::*</expression>
</set-generator>
<satisfies-set>
<tagId>
<uri>
http://esf.hsbc.com/tags/jhx
</uri>
<name>form</name>
</tagId>
</satisfies-set>
</value>
</trait>
Do u see any problem in this ???
Follow-Ups
:
[news.eclipse.webtools.jsf] Re: Validation: containment-constraint
From:
Cameron Bateman
References
:
[news.eclipse.webtools.jsf] Validation: containment-constraint
From:
Yury Kats
[news.eclipse.webtools.jsf] Re: Validation: containment-constraint
From:
Cameron Bateman
[news.eclipse.webtools.jsf] Re: Validation: containment-constraint
From:
Yury Kats
[news.eclipse.webtools.jsf] Re: Validation: containment-constraint
From:
Cameron Bateman
[news.eclipse.webtools.jsf] Re: Validation: containment-constraint
From:
Yury Kats
[news.eclipse.webtools.jsf] Re: Validation: containment-constraint
From:
Cameron Bateman
[news.eclipse.webtools.jsf] Re: Validation: containment-constraint
From:
Yury Kats
Prev by Date:
[news.eclipse.webtools.jsf] Re: Programmatically add a existing component library to a JSF project
Next by Date:
[news.eclipse.webtools.jsf] Help required on org.eclipse.osgi
Previous by thread:
[news.eclipse.webtools.jsf] Re: Validation: containment-constraint
Next by thread:
[news.eclipse.webtools.jsf] Re: Validation: containment-constraint
Index(es):
Date
Thread