I'm trying to reimplement the webfacets demo with ZK. This page, at the moment, acts as a scratchpad for me to write down my thoughts during investigation.

It'll probably move to the jfacets wiki if experience is successful...

Questions to ask on the mailing list

Raw questions :

  1. I've created a custom constraint, added it to a textbox, and the validation message appears a different way than int/date boxes... I can live with underlying differences (javascript vs server-side), but the presentation should be similar... is there any docs about this ?
  2. When a field validation fails, is it possible to have the value set to null/previous/anything else ? At the moment you can submit forms containing invalid data...
  3. Is there an easy way to enable/disable a button upon validation (the user would not be able to submit until all inputs have been validated) ?
  4. Including the same <window> several times : I have a JSP that includes the same .zul page several times (using <jsp:include page="./WEB-INF/page.zul"/>). Actually, the main JSP shows some stuff and a collection of other things, the things being represented with a <window> in page.zul. The main JSP handles request, performs a loop, and in there it sets a request attribute and performs the dispatch for each element of the collection. I'd like to use that attribute in each <window>, e.g. <textbox id="myProp" value="${myAttr}"/>. I've tried this but the attr is always null :-/
  5. Also, related to the previous item, can I keep a ref to the object in some classes associated to my windows (or as a member variable in each one) ? e.g. at init I get the attr from the request and set a ref to it in the window for later use...