New Webcomponent

Forum to discuss the new web client version of Servoy.

New Webcomponent

Postby poyel » Wed Aug 06, 2014 9:21 pm

Hi,

i have downloaded and installed servoy 8.

I start to develop with the new features, and i see under the servoy_ngclient_8.0.0.3004.jar, for study the structure of the component.

I understand that there is a possibility of using the svy-* for model, callback, event, .... but if i want to create my own custom event? or if i want to create my own custom web components? Where do i put the folder with those file?


I think that i will do much other questions.

Thanks for the support.
Marco Alessio Milazzo
- freelance programmer -
Web Developer
Servoy
poyel
 
Posts: 49
Joined: Wed Aug 31, 2011 4:35 pm

Re: New Webcomponent

Postby pbakker » Wed Aug 06, 2014 9:45 pm

CCustom components can be stored in the following directory structure inside your resources project:
components
- {CategoryNameForYourComponents}
- META-INF
- {componentName1}
- {componentName2]

In the META-INF directory, you need to put a file called MANIFEST.MF with the following content:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.4
Created-By: 1.7.0_05-b06 (Oracle Corporation)

Name: {componentName1}/{componentName1}.spec
Web-Component: True

Name: {componentName2}/{componentName2}.spec
Web-Component: True


Of course you need to replace the curly braces and the name inside them with the names you use for your components. All files for a specific component go under the components/{CategoryNameForYourComponents}/{componentName} directory.

As for the other questions: yes, you can use your own stuff, but how is really something for the training next week. I'll see if I can find the time tomorrow to whip up a simple standalone example tomorrow, but please don't hold me to that.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands

Re: New Webcomponent

Postby poyel » Thu Aug 07, 2014 8:38 am

Thanks Paul, you're right, but it's hard to wait considering all the news :P
Marco Alessio Milazzo
- freelance programmer -
Web Developer
Servoy
poyel
 
Posts: 49
Joined: Wed Aug 31, 2011 4:35 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 7 guests