Hi ListView/Refreshing View any willd o
but dont know how to solve this.
Thanks
P
prati wrote:
>
> Hi Team,
>
> Also i dont want to remove values , i want to remove the entire row.
> My row contains(TextBox and option group)
>
>
> Thanks
> Prati
>
>
> prati wrote:
>>
>> Hi
>>
>> I have
Hi,
Been there, pal, believe me, been there. :))
See https://issues.apache.org/jira/browse/WICKET-2432 quickstart.zip
Remove the FileUpload and this should do it for you. :)
Best Regards,
Peter
2010-03-17 15:10 keltezéssel, prati írta:
>
> Hi
>
> I have got a refreshingView with a delete link
Hi Team,
Also i dont want to remove values , i want to remove the entire row.
My row contains(TextBox and option group)
Thanks
Prati
prati wrote:
>
> Hi
>
> I have got a refreshingView with a delete link in each row and only one
> AddLink,AddLink adds the
>
> row properly but deleteRow ev
Hi
I have got a refreshingView with a delete link in each row and only one
AddLink,AddLink adds the
row properly but deleteRow everytime deletes the last row,its driving me
crazy,I have posted my
code also.I will apprecaite if any one can help me in this.
Honestly its not that easy the way i
Hi,
I am also having similar issue, it all the time removes last row.
I have attached code.
OptionGroupPageForm(String id) {
super(id);
final MarkupContainer rowPanel = new
WebMarkupContainer("rowPanel");
rowPanel.setOut
I've come to love listview, and use it all the time. Would be sad to see
it go away.. Sure there are somethinges you need to be aware of when
working with it but thats just life...
-1
Eelco Hillenius wrote:
On Feb 4, 2008 3:45 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
On 2/3/08, Eel
Hi Johan,
Actually that's not a main button of my page.
So default processing is set false, bcz of that the values will not be there
in model objects.
Regards,
Pankaj...
Johan Compagner wrote:
>
> You do use a delete button, so i guess the values are submitted.
> Then if you store those firs
you lose values that werent validated if you do that, because those
are stored in components themselves...
-igor
On Feb 4, 2008 6:15 AM, Johan Compagner <[EMAIL PROTECTED]> wrote:
> You do use a delete button, so i guess the values are submitted.
> Then if you store those first in the model obje
On Feb 4, 2008 3:45 AM, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> On 2/3/08, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> >
> > How about a reconsideration of depreciating ListView?
>
>
> -1
>
> If anytime someone comes along with a misunderstanding of a valid component
> we don't have a framew
You do use a delete button, so i guess the values are submitted.
Then if you store those first in the model objects you won't loose anything
johan
On Feb 4, 2008 2:35 PM, pnerkar <[EMAIL PROTECTED]> wrote:
>
> Hi Johan,
>
> Yes that will be quickest solution ,
> But this will clear the fields
Hi Johan,
Yes that will be quickest solution ,
But this will clear the fields of all vehicles.
-Pnerkar
Johan Compagner wrote:
>
> wasn't the quickest solution:
>
> public void onSubmit() {
>List vehicles = (List) getParent().getParent().getModelObject();
>vehicles.remove(in
wasn't the quickest solution:
public void onSubmit() {
List vehicles = (List) getParent().getParent().getModelObject();
vehicles.remove(index);
listView.removeAll();
}
Then if the list itself is stable on the server side (if other persons can
also delete or add stuff to that
On 2/3/08, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
>
> How about a reconsideration of depreciating ListView?
-1
If anytime someone comes along with a misunderstanding of a valid component
we don't have a framework left:
- models
- drop down choice
- urls
- mounting
All those things can b
i dont think i was harsh. i simply stated that the excuse "i dont yet
know enough" is not really an excuse but a cop out, because most users
dont come back and contribute something. im not angry about it, but it
is a fact.
-igor
On Feb 2, 2008 9:05 PM, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
On Feb 2, 2008 2:19 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> well, thats the problem. you say you are not the right person because
> you dont know. and that is the excuse a lot of users give for not
> writing the wiki page. but guess what, after we help them here and
> they do understand how
well, thats the problem. you say you are not the right person because
you dont know. and that is the excuse a lot of users give for not
writing the wiki page. but guess what, after we help them here and
they do understand how listview works - they still dont come back and
write the wiki page.
so t
Hi all,
I know that will be sound a little stupid, but ListView causes a lot
of problems for newbies (including reuse startegy). Maybe a better or
more "in depth" wiki entry would avoid these questions on this mail
list? Just a suggestion (once i am facing the same probles, i would
not be the rig
read the notice part of the javadoc...
-igor
On Feb 1, 2008 5:49 PM, pnerkar <[EMAIL PROTECTED]> wrote:
>
> Hi igor,
>
> Ya I read this from one of ur doc.
> http://www.wicketframework.org/wicket-extensions/apidocs/wicket/extensions/markup/html/repeater/refreshing/ReuseIfModelsEqualStrategy.html
Hi igor,
Ya I read this from one of ur doc.
http://www.wicketframework.org/wicket-extensions/apidocs/wicket/extensions/markup/html/repeater/refreshing/ReuseIfModelsEqualStrategy.html
I have implemented equals/hashcode in Vehicle object.
-pnerkar
igor.vaynberg wrote:
>
> for the strategy to w
for the strategy to work properly you have to implement
equals/hashcode on the model, looks like you are just doing:
new Model( (Vehicle) ((List)getModelObject()).get(i))
Model does not implement equals/hashcode
-igor
On Feb 1, 2008 4:03 PM, pnerkar <[EMAIL PROTECTED]> wrote:
>
> Ya I tried re
Ya I tried refreshingview with ReuseIfModelsEqualStrategy,
But the data entered on page get cleared.
My new code is -
final VehiclesList vehicles = new VehiclesList("vehicles", new
PropertyModel((RatingRequestAuto)getModelObject(),"vehicles"));
vehicles.setOutputMarkupId(true);
dont use a listview, use a refreshingview and provide an itemreuse strategy.
-igor
On Feb 1, 2008 1:51 PM, pnerkar <[EMAIL PROTECTED]> wrote:
>
> Hi Igor,
>
> Finally I'm able to find out the exact issue.
> suppose There are 3 items in the list-
> wicket will assign id as 0, 1 & 2. to those item
Hi Igor,
Finally I'm able to find out the exact issue.
suppose There are 3 items in the list-
wicket will assign id as 0, 1 & 2. to those items.
So When we say item.getparent().remove(item) to item with id=1,
them It'll remove that item from list but item with id=2 will not remain as
it is..
i.e
see wicket-extensions
Martijn
On 2/1/08, pnerkar <[EMAIL PROTECTED]> wrote:
>
>
> Hi Eelco,
>
> RefreshingView is available in wicket 1.3.0.
> While I'm using wicket 1.2.6.
>
> Regards,
>
> Pankaj,...
>
>
> Eelco Hillenius wrote:
> >
> > On Jan 31, 2008 3:49 PM, pnerkar <[EMAIL PROTECTED]> wrote:
Hi Eelco,
RefreshingView is available in wicket 1.3.0.
While I'm using wicket 1.2.6.
Regards,
Pankaj,...
Eelco Hillenius wrote:
>
> On Jan 31, 2008 3:49 PM, pnerkar <[EMAIL PROTECTED]> wrote:
>>
>> Hi All,
>>
>> I have rendered a list view on a Web Page.
>>
>> vehicle1X
>> vehicle2X
Hi igor,
I have tried this,
Now when I click on remove - it just clear all fields for vehicle2. But none
of them get deleted.
-pnerkar
igor.vaynberg wrote:
>
> try this:
>
> onpopulate (final listitem item) {
>add(new link("remove") { onclick() {
> item.getparent().remove(item); }
On Jan 31, 2008 3:49 PM, pnerkar <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I have rendered a list view on a Web Page.
>
> vehicle1X
> vehicle2X
> vehicle3X
>
> when a person click on 'X', that item should be deleted.
> But I'm facing an issue, when i click on 'X', last item get deleted
if you want to talk about a cleaner way...
add(new removelink("remove", item.getmodel()) {
onclick() {
vehicles.remove(getmodelobject());
}
}
assuming vehicles is a property on listview's parent...
-igor
On Jan 31, 2008 7:29 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote:
> On Thu, 3
On Thu, 31 Jan 2008, pnerkar wrote:
> public void onSubmit() {
> List vehicles = (List) getParent().getParent().getModelObject();
> vehicles.remove(index);
> }
As a cleaner way to do this you could try
List vehicles = findParent(VehiclesList.class).getModelObject();
Best wishes
try this:
onpopulate (final listitem item) {
add(new link("remove") { onclick() { item.getparent().remove(item); }}
}
-igor
On Jan 31, 2008 6:19 PM, pnerkar <[EMAIL PROTECTED]> wrote:
>
> Hi igor,
>
> But If I remove setReuseItems(true), it'll remove all field values which
> user has en
Hi igor,
But If I remove setReuseItems(true), it'll remove all field values which
user has entered will be removed.
Bcz default processing is false for Remove button (Sorry forget to tell
you)
I just want to remove vehicle2, but the values entered for vehicle1 &
vehicle3 should not be lost.
-
vehicles.setReuseItems(true); <== that is what is causing your list to
reuse old components
-igor
On Jan 31, 2008 5:36 PM, pnerkar <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Following is my code for rendering vehicle list-
>
> final VehiclesList vehicles = new VehiclesList("vehicledetails",
> ((Rati
Hi,
Following is my code for rendering vehicle list-
final VehiclesList vehicles = new VehiclesList("vehicledetails",
((RatingRequestAuto)getModelObject()).getVehicles());
vehicles.setOutputMarkupId(true);
vehicles.setReuseItems(true);
show us how you populate your listview...
-igor
On Jan 31, 2008 3:49 PM, pnerkar <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
> I have rendered a list view on a Web Page.
>
> vehicle1X
> vehicle2X
> vehicle3X
>
> when a person click on 'X', that item should be deleted.
> But I'm facing a
34 matches
Mail list logo