Re: Free Wicket guide now available!
Andrea, Congratz for this excelent work. The guide is super great! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Free-Wicket-guide-now-available-tp4657407p4657668.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
It will get some time to test that, but i will give a try later. What a want to understand is: 1) Why the checkgroup dont update his model automatically, forcing me to call updateFormComponentModels()?? I tried a PropertyModel in the constructor and a collection directly, the result is the same. 2) Why the updateFormComponentModels() have this strange behavior with CheckGroup + setRequired(true)? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3743260.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
I can't, we must work with this version, because of the company. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736594.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
I'm doing that to force the Models to update, since when I receive a validate error, like when I dont fill a required field, the checkgroup in the page loose the ckeckboxes marked, so I update the models and the marked checkboxes come back (So the user dont have to mark all over again just because of a field he forgot to fill). Why the component is in a invalid state? It's in a invalid state because of the setRequired(true)? The error only happens in this scenario, like I said before. I tried the *hasError()*: if (!hasError()) { updateFormComponentModels(); } It returns true when I don't mark any checkbox in the checkgroups (ok), but since the *updateFormComponentModels()* will only be called if no error occurs, I will loose the marked checkboxes. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736592.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
It's 1.4.15 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736109.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
Hmmm, the error only occurs when no CheckBox in the CheckGroup is marked, but considering this scenario the super.onValidate() should complain about I don't have any CheckBox marked in a CheckGroup with serRequired(true), that's not what happening. And since this validation don't exists, when CheckGroup.updateModel is called I receive a NullPointerException. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736099.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
Hmmm, the error only occurs when no CheckBox in the CheckGroup is marked, but considering this scenario the super.onValidate() should complain about I don't have any CheckBox marked in a CheckGroup with serRequired(true), that's not what happening. And since this validation don't exists, when CheckGroup.updateModel is called I receive a NullPointerException. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736096.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup updateModel + setrequired (Bug?)
Yeap, I'm calling ;) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736067.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
CheckGroup updateModel + setrequired (Bug?)
When I set the *setRequired(true)* in a CheckGroup and Override the *onValidate* of the Form, calling *updateFormComponentModels();* to update the Models, a NullPointerException occurs in CheckGroup.updateModel. This only occurs when setRequired is setted to true, not happening when not setted or when explicitly setted to false. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736032.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: CheckGroup Model
Hmmm, I did it. My fault, since I didn't implemented equals. Just that resolved the case. Thanks a lot, Tor Iver. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-Model-tp3731606p3732828.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
CheckGroup Model
Hello ppl, I have a VO named *Campo* with some attr's. And my CheckGroup inside of a ListView: CheckGroup checkGroupCampo = new CheckGroup("checkGroupCampo", dadosCarta.getListaCampos()); checkGroupCampo.add(new CheckGroupSelector("groupSelectorCampos")); CamposListView listaCampos = new CamposListView("listaCampos", new CamposModel(facade)); checkGroupCampo.add(listaCampos); add(checkGroupCampo); The CamposModel just return my FULL list to the dtmodel of the ListView. In my ListView, I have: protected void populateItem(final ListItem item) { Campo campo = item.getModelObject(); item.add(new Check("checkCampo", item.getModel())); item.add(new Label("descCampo", campo.getDescCampo())); } In the CheckGroup constructor I'm passing *dadosCarta.getListaCampos()*, that is the List of *Campo*. In one stage this list is empty (when I'm in a "include process"), but the list can be already filled too (when I'm in a "modify process"). In that second case, I want the checkboxes inside the ListView to come already marked. Initially I thought that just passing the List filled to the Checkgroup, as seen in my code, would make the CheckBoxes marked, but that's not the case. How can I do this in a elegant way? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-Model-tp3731606p3731606.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org