I'm not sure there is a very clean solution.
When switching to edit mode, you could set the User's Job to a new Job
instance if it is null. You don't have to reattach/reassign any form
components if you simply update the AbstractEntityModel's object. I.e. you
either do
model.getModelObject().setJo
Hi,
I needed something similar in a couple of projects. One solution is to
create a custom DropDownChoice which takes also the string model to
update. Then you can override onModelChanged to update the string model
with the new value that can be extracted with the ChoiceRenderer.
To make this
Hi,
Wicket uses CGLib proxies, to proxy beans which are not referenced by
their interface.
This leads to the constructor being fired once for each injection.
If you don't want this, declare the type of the @SpringBean member as an
interface.
Sven
On 02/11/2014 08:46 PM, Entropy wrote:
I
The Wiki is not very up-to-date...
Martin Grigorov
Wicket Training and Consulting
On Tue, Feb 11, 2014 at 8:48 PM, Farrukh SATTOROV wrote:
> I have printed this guide as brochure and reading now, but i mean about
> wiki doc. Thanks anyway
>
>
> On Tue, Feb 11, 2014 at 10:52 PM, Martin Grigorov
I have printed this guide as brochure and reading now, but i mean about
wiki doc. Thanks anyway
On Tue, Feb 11, 2014 at 10:52 PM, Martin Grigorov wrote:
> http://wicket.apache.org/guide/guide/single.pdf
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Tue, Feb 11, 2014 at 6:06 PM, F
I think this is a problem in spring and wicket working together. This is in
1.4.7.
In spring:
This bean is injected into a wicket page with @SpringBean. Using
breakpoints I
http://wicket.apache.org/guide/guide/single.pdf
Martin Grigorov
Wicket Training and Consulting
On Tue, Feb 11, 2014 at 6:06 PM, Farrukh SATTOROV wrote:
> Hi everyone!, Can i download wicket wiki framework documentation for
> offline reading. Thanks.
> https://cwiki.apache.org/confluence/display
To make this easier to understand, let's say that I have a list of state
abbreviations for example AL, AK, AZ, AR etcetera (the actual example has
two letter abbreviations also, but much longer names). I need a
DropDownChoice that shows the abbreviations for selection (e.g., AK) but
will show the f
Hi everyone!, Can i download wicket wiki framework documentation for
offline reading. Thanks.
https://cwiki.apache.org/confluence/display/WICKET/Index
I'm afraid I still don't see it. I think I'm just going to have to use a
nested model at the form level and rebuild it whenever I toggle
viewing/editing mode. So I'd build a new Model() from the unproxied User
when switching to edit mode and build a new
AbstractEntityModel(user.id, User.class) when
You use cascade="all" on the job relation.
When job is created, it should have at least one non-empty property.
Job's instance is null because it doesn't have any non empty property.
François
On Tue, Feb 11, 2014 at 3:59 PM, ChambreNoire wrote:
> Why would that make any difference? A null Job
Why would that make any difference? A null Job is still a null Job. Unless
I'm missing something...
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Submitting-values-for-null-associations-tp4664365p4664371.html
Sent from the Users forum mailing list archive at Nabble.c
As Hibernate save a new Job instance when you save the User if the relation
is empty
why don't you load the job (with an eager fetching strategy) when you load
the user ?
François
On Tue, Feb 11, 2014 at 3:22 PM, ChambreNoire wrote:
> I forgot to mention, the reason I don't systematically make
I forgot to mention, the reason I don't systematically make a new Job
instance is that when saving the form hibernate creates a new Job instance
which is effectively empty if no Job details have been input.
Chambre
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Submi
Yes I'm aware of this but the problem is I'm reusing the same
AbstractEntityModel (effectively a LoadableDetachableModel that loads from
the db) for the edit mode and the User instance in the db has no Job
instance (yet). I could always re-build a Model using the unproxied User
instance when I flip
Thank you Martin, that works like a charm.
Boris
On Feb 10, 2014, at 2:27 PM, Martin Grigorov wrote:
> Hi,
>
> To submit a form all you need to provide to the object you pass to
> Wicket.Ajax.ajax() is the 'f' attribute:
> Wicket.Ajax.post({ u: 'url/to/AjaxFormSubmitBehavior', f: 'formId', sc
The entity User needs to have a Job's instance when you construct your
model.
François
On Tue, Feb 11, 2014 at 2:56 PM, ChambreNoire wrote:
> Hi,
>
> I have a form which can flip between edit and view modes. Its fields share
> a
> common CompoundPropertyModel which in turn points to an Abstrac
Hi,
I have a form which can flip between edit and view modes. Its fields share a
common CompoundPropertyModel which in turn points to an AbstractEntityModel
similar to that described in the 'Wicket in Action' blog.
My problem is with associations that happen to be null. If I have a User
entity w
Hi,
I am trying to implement a Feedback for every Form Component and
a catch all Feedback Panel in wicket 6.12.0. Everything works fine except
for the case
when a user causes a error which is shown in the Feedback Panel of the
Component,
e.g. the Textfield firstName is left empty. After that the se
19 matches
Mail list logo