I cannot find a way to create a new control with custom behavior in the Orbeon Forms documentation. Does anyone know how to create one?
All I can do at the moment is create a new entry in the Text Controls panel, but whatever I put in configuration of the <templates><view> of the control that is not an already implemented control results in validation/parser exception.
Related
How can I create new custom controls in Orbeon Form Builder and add it to the list of controls on the left side? Is it neccessary to download form builder's source code and interfere with it? Or can I just create some xbl/xml files and upload it to form builder?
You don't need to modify the Orbeon Forms source code. Instead you create XBL controls (see the tutorial). The toolbox can then be configured via properties to show the new controls created.
I have very new requirement that I need to know we can achieve that with vaadin or not.
My team members already developed one functionality using jquery and jsp along with spring as backend. Suddenly, vaadin came into picture to develop UI.
Functionality:
Admin has the full access to all the modules. Admin user can add components from a pool of components to some other module. These settings can be saved into db. Later when I tried to access that module. Only those components(Admin selected components) should be available to me. In this case one jsp is automatically created with the admin selected components and that will be included into another jsp which is a user jsp.
My question is can vaadin fulfill this requirement?
Create one UI class (in GWT similar with EntryPoint) and create header , footer , leftside , rightside etc; And create Views as you want (for instance: userView , adminView). Add your default view in body content of UI class . Initialize Navigator for page navigation. When url was change or invoke by some request , navigator should manage relative body contents. Please check Usage of UI vs. Navigator+Views for further UI , Views and Navigation.
Here is example and sample codes. If you want to create as component , composition is a way.
I am very familiar with web technologies (HTML, JavaScript, CSS), but not with XBL and XForms. I would like to package a "widget" inside an XBL component, so it can be exposed to Form Builder, and used by form authors creating forms with Form Builder. What would be a good place to start learning how to do this? Do you have recommendation on the tools to use to edit XBL/XForms?
Getting started
This answer provides a good overview of what needs to be added to your XBL control so it can be used in Form Builder.
For more information on how to provide Form Builder specific metadata for your XBL control, see the documentation on <fb:metadata>.
Looking at examples always helps: the source of all the build-in XBL controls is available on GitHub.
If you want Form Builder to reload the component, all you need to do is click on the green icon with 2 arrows at the top of the Form Builder left bar (no need to restart your app server, or even reload Form Builder).
Tools and debugging
When editing XML, it helps to have a decent editor that would at least make sure what you type is well-formed XML, and maybe help you indent things properly. At Orbeon, we use IntelliJ because in addition to XML it also has good support for Scala, Java, JavaScript, CSS, LESS, which we use in Orbeon Forms.
For debugging, you can enable the XForms inspector. The inspector helps you see live what the state of all the instances is, including those inside XBL components. Make sure the property is set to false when you first load Form Builder (the inspector doesn't show properly with Form Builder), then set it to true, and hit the test button on your forms: the inspector will show at the bottom of your form.
Specific questions
If you have specific questions about programming with XBL in Orbeon Forms, I would encourage you to use Stack Overflow and ask them with the tags orbeon and xbl, so they can then be found more easily.
I develop a symfony 1.4 project,my issue with admin panel in backend,so I use the administration generator to do it.
I have a list of members generated automatically in backend,now Im hopping to add some custom action when a memeber edit her profile in backend,then I wish to add in edit page radio dial buttons give simple “Yes” or “No” Options. By default, the radial dial button is set to “No.” However, if the admin selects “Yes” then a popup window will come with the following text: “Are you sure you want to sell a new membership" and If the admin selects “Yes” and then saves the profile, a pop Window will need to display that reads: “New Membership sold"...
the problem is I can't change code because the form of edition page is generated using a plugin (sfguarduser) so It's deficult to make any changes?
Any Idea?
As the plugin documentation says, you can override the plugin module by creating a module with the same name in the application you want and by adding a require_once in the action.
As for your confirm and other javascript, you can override the generated partials by adding partials with the same name in your module, just as described here.
This is repeatedly asked many times, however i couldn't find appropriate solution for my problem.
I want to create an Entry Form which will consists of following elements:
Text boxes, drop down fields (auto populated) , check boxes , radio buttons
After my research
i found that i need to create user control, or script file for above form and access it via Macro.
I don't want to use User control as my first preference is to controller-View-Model (i.e. cshtml)
I want to follow MVC approach to create above form. So
1) Do i need to create a seperate project for Add/Edit/Delete/Search Data Entry form?
2) OR i need to create cshtml file for the same(not so clear about this approach)
I'm looking this data entry form with easier for customization and i could use it in other applications as well.
From Umbraco 4.10 up to 6.0.x you can use MVC in Umbraco so there's no need to use an usercontrol. You probably want to use a SurfaceController where you can add any Action you want. The rest is standard MVC (Razor views to build your textboxes, drop downs, ...).
Check out the Umbraco MVC documentation where they explain how to use MVC in an Umbraco project.