Custom descriptors

03 Jan '13, 01:27 PM
16,697 Views
No Forum Badges

Hello again,

I have found some problems while devoloping my application and lots of them were because of custom descriptors.

First of all, I checked the box of Custom descriptor in a page and from then all new units I used in it were not visible in the page from the browser. The only solution I found was deleting the page and doing it again. Even unchecking the box, it always said that it was not using the descriptor as a warning and did not work.

Another problem was with some units that seemed to fail on execution and I had the same warning of not using an existing descriptor. Sometimes it is because of the name I use. I supose I used somewhere the same name and checked de box or something like that. I created it again with a new name and I had no problem.

There's any way to solution this kind of problem? Maybe deleting some file?

Thanks for the answers and for your patience!

 
x 0
Follow
Answer Answer at this question and get points!
No Forum Badges

You are experiencing those erratic behaviors because custom descriptors are still being applied. After unchecking the Custom Descriptor property, you should also delete from the WebContent/WEB-INF/descr folder of your project the .descr file matching the Id of your page.

For example, if you are disabling custom descriptor of Page page123, be sure to delete WebContent/WEB-INF/descr/page123.descr. If you are not using custom descriptor anywhere, you may safely delete the entire WebContent/WEB-INF/descr folder.

What are Custom Descriptors

Descriptor files, found in the WEB-INF/descr folder of the generated application, contain the logic that drives an application at runtime. Normally, WebRatio automatically generates those files from your model.

By enabling Custom Descriptors your are beasically taking charge of "generating" those files manually. This is a rather hacky feature that should be needed only in rare circumstances.

The WebContent folder of Web Projects is used to specify a set of files and folders that are copied over the generated application. When first enabling custom descriptors, the customized and "frozen" descriptor file was subsequently being copied over, blocking any automatic update by WebRatio. This is exactly what the warnings were telling you about and the reason you has to manually delete the descr file(s).

   
x 1
Answer at this question and get points!

Related questions

Ayuda Simple List Component Layout personalizado Button to go on another page Criptare dati sensibili nel database CSV Component with utf8 encoding Custom components Custom Plug-in Custom Time Unit Custom Unit and AJAX / SOAP Custom Unit: Difficult example in Guide ... any suggestions? Data flow from a page which is not visible anymore Dynamic link labelling for Custom Unit Encoding Confirm Dialog file analysis then update MySQL database Google Map Unit Guardar Saltos de LINEA How can I add a credit card payment gateway or integrate paypal in my web app logic? how can i open a pdf file using download dialog How complex can Custom Unit output be? How to run the example from Custom Unit Guide? Is there any custom unit store or repository? Do you create/sell custom units? java.lang.NullPointerException More Custom Unit questions: example of Content and Operation Unit? Need help with Landmark Overlays for Google Map Unit. Personalizzazione del login component Problema Invocation Unit Problems with Custom components: Can't get values from output parameters on ok flow. "Run Now" on a job scheduled to run later Selezione sul giorno "Events Planning" Status ProcessInstance and activityInstance in spanish Stored procedure component Twitter Unit - Get Geo location of twitt Usage of the Gantt Unit ¿Visor de imágenes y reproductor de video para la versión 7.2? Image viewer and video player for version 7.2? Web project without initial login form - how to create custom logins? Webratio Add-ons no permite login Webratio don't recognize JSON library WebRatio Platform 7.2 Community Cloud Edition