-
FEATURED COMPONENTS
First time here? Check out the FAQ!
What's the status of the "CRUD builder" demo'ed here: http://docs.zkoss.org/wiki/Build_CRUD_Application_with_ZK_Studio_in_6_Steps ?
We are keep working on it.
CRUD Builder provides single table form builder for current version and the UI wizard tested on mysql, sqlserver.
we will improve it to supports more types of builder, more templates and more DB.
I found DB Form Builder Inside Out and Zeta DB Form Builder Step by Step. Those answered most of my questions. The app I generated even committed to the db.
I'd still like to know why the sample app didn't commit to the db.
The Form Builder for CRUD works very well. And it is easy enough to make the pages scrollable when there are a lot of data items...just put height="450px" or so in the grid, and it is then scrollable.
What I have not found easy to do is to change a textbox to a listbox. I need two types:
1) A listbox that will include a few values, so data entry is consistent
2) A listbox that lists values from another table, such as countries or similar
I tried changing the .zul file, the Controller for the table, and something is still wrong.
I'm not a zk expert. Is there a step by step guide on exactly which files to modify?
I found the answer to 1)
It is buried in page DB Form Builder Inside and Out.
The answer is that you can make a field a Listbox even though the Value edit option is Gray'd out in step 6 of 7 when building the form.
Then add this code to the xxxController.java after this line: super.afterCompose();
Note: country is the fieldname/listbox item, and loc_tbl is the CRUD Table.
List countryModel = new ArrayList();
countryModel.add("Italy");
countryModel.add("Japan");
countryModel.add("South Korea");
countryModel.add("Spain");
loc_tblModel.setCountryModel(countryModel);
Anyone have an idea on how to do 2 below?
2) A listbox that lists values from another table, such as countries or similar
Asked: 2009-03-29 23:14:20 +0800
Seen: 1,275 times
Last updated: Dec 08 '09
ZK studio and eclipse outline problem
ZK Package configuration problem
Eclipse Autocomplete not working in ZUL files...
Syntax Error mark ... help me!
Manual Installation of ZK Studio
Can't see button text whilst running simple demo
Adding Vbox to Center layout in Java