Hi Rasika,

I think you are receiving the error due to a schema validation failure
(repository/resources/rxt.xsd).

In ES 1.0.0 you can use the extension.json file to add custom properties
through the fieldProperties array.

*Example:* In the config/ext/gadget.json file [1]:

{
   "field":"overview.name",
   "name":"placeholder",
   "value":"Enter your name"
}

In ES 2.0.0 you can achieve the same result by editing the configuration
callback [2]







*Reference*

[1]
https://github.com/wso2/product-es/blob/1.2.0-m2/modules/apps/publisher/config/ext/gadget.json#L36
[2]
https://github.com/wso2/carbon-store/blob/master/apps/publisher/extensions/assets/default/asset.js#L134

On Mon, Mar 23, 2015 at 1:00 PM, Rasika Perera <[email protected]> wrote:

> Hi Folks,
>
> I am following tutorial[1] in Enterprise Store. I this example I can
> create a custom RXT. When adding a field, we write;
>
> <field type="text" required="true">
>     <name>Name</name>
> </field>
>
> But If I need to add a custom attribute;
>
> <field type="text" required="true" *placeholder*="Enter your name">
>     <name>Name</name>
> </field>
>
> It gives following error;
>
> Failed to save the configuration.
>> ManageGenericArtifactServiceRegistryExceptionException
>
>
> How can I add / escape these custom attributes?
>
> [1]
> https://docs.wso2.com/display/ES100/Adding+a+New+Asset+Type#AddingaNewAssetType-Step1-CreatinganRXTdefinitionforyourassettype
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: [email protected]
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: [email protected]
Mobile: + 94 077 255 3005
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to