On Sat, Jul 18, 2009 at 9:19 AM, Kenneth NA<rinoc...@live.se> wrote:
>
> You mean this row which I already have in my code?
>
>
> dataView.setItemReuseStrategy(ReuseIfModelsEqualStrategy.getInstance());

so i assume that since you have called this your have implemented
proper hashcode and equals in your model?

-igor


>
> Please, can someone test the actual quickstart I added before and once again
> added
> and give me a solution. I have sit with this problem for atleast 1,5 week
> now and
> I really though wicket was an easy framework to use.
>
> - Kenneth
>
>> From: igor.vaynb...@gmail.com
>> Date: Sat, 18 Jul 2009 09:14:24 -0700
>> Subject: Re: error(validatable)
>> To: users@wicket.apache.org
>>
>> you have to set an itemreusestrategy to reuse dataview items,
>> otherwise they are replaced by new ones every request and you lose
>> your feedback panel instance.
>>
>> -igor
>>
>> On Sat, Jul 18, 2009 at 3:32 AM, Kenneth NA<rinoc...@live.se> wrote:
>> >
>> >
>> >
>> > Let's rephrase my problem.
>> >
>> >
>> >
>> > I connect a validator to a TextField in a DataView (inside
>> > populateItem() and connect a ComponentFeedbackPanel  to it.
>> >
>> >
>> >                final TextField tf = new TextField("data", new
>> > PropertyModel(row, "data"));
>> >                final ComponentFeedbackPanel tfFeedback = new
>> > ComponentFeedbackPanel("fb", tf);
>> >                tfFeedback.setOutputMarkupId(true);
>> >                item.add(tf);
>> >                item.add(tfFeedback);
>> >
>> > And I also have both in the HTML markup
>> >
>> >
>> >                    <tr wicket:id="rows">
>> >                        <td nowrap><input wicket:id="data" type="text"
>> > /><span wicket:id="fb"></span></td>
>> >                    </tr>
>> >
>> >
>> > Is this enough for the error reported in in onValidate() for the
>> > validator connected to the field
>> >
>> > with error(ivalidatable); should be displayed next to the field or does
>> > it require something more?
>> >
>> >
>> >
>> >                error(validatable, "an_error_occured");
>> >
>> >
>> > Why I wonder is that it is not displayed next to the field, it is
>> > displayed in the "common" feedback panel.
>> >
>> >
>> >
>> > /Kenneth
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > _________________________________________________________________
>> > Med Windows Live kan du ordna, redigera och dela med dig av dina foton.
>> >
>> > http://www.microsoft.com/sverige/windows/windowslive/products/photo-gallery-edit.aspx
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>
> ________________________________
> kolla in resten av Windows LiveT. Inte bara e-post - Windows LiveT är mycket
> mer än din inkorg. Mer än bara meddelanden
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to