RE: Wicket cannot find id in inner enclosure...but has no problem in outer one!!!
Nice one! No worries! :D -Original Message- From: kshitiz [mailto:k.agarw...@gmail.com] Sent: Thursday, 19 April 2012 4:10 AM To: users@wicket.apache.org Subject: RE: Wicket cannot find id in inner enclosure...but has no problem in outer one!!! Your guess is rightthank you for the help -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-cannot-find-id-in-inner-enclosure-but-has-no-problem-in-outer-one-tp4559666p4568555.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 EMAIL DISCLAIMER This email message and its attachments are confidential and may also contain copyright or privileged material. If you are not the intended recipient, you may not forward the email or disclose or use the information contained in it. If you have received this email message in error, please advise the sender immediately by replying to this email and delete the message and any associated attachments. Any views, opinions, conclusions, advice or statements expressed in this email message are those of the individual sender and should not be relied upon as the considered view, opinion, conclusions, advice or statement of this company except where the sender expressly, and with authority, states them to be the considered view, opinion, conclusions, advice or statement of this company. Every care is taken but we recommend that you scan any attachments for viruses. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket cannot find id in inner enclosure...but has no problem in outer one!!!
Your guess is rightthank you for the help -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-cannot-find-id-in-inner-enclosure-but-has-no-problem-in-outer-one-tp4559666p4568555.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: Wicket cannot find id in inner enclosure...but has no problem in outer one!!!
Hey there, This is just a guess!! Why are you creating a new SelectOption?; SelectOption selectedOption = new SelectOption(selectOption[0].getKey(), "Selected Value"); when you could just use the one that exists (selectOption[0])? The PropertyModel doesn't make sense, ether. I'd remove that line above, and the property model and maybe go for, in total; ChoiceRenderer choiceRenderer = new ChoiceRenderer("value", "key"); final IModel iModel = new Model(selectOption[0]); final DropDownChoice postCategoriesDropDown = new DropDownChoice("postCategories", iModel, Arrays.asList(selectOption), choiceRenderer); Like I said, it's a guess, but those things look strange to me... sure other people could help better. Hope it helps... Cheers, Col. -Original Message- From: kshitiz [mailto:k.agarw...@gmail.com] Sent: Wednesday, 18 April 2012 2:51 AM To: users@wicket.apache.org Subject: Re: Wicket cannot find id in inner enclosure...but has no problem in outer one!!! I have removed inner enclosure and its working fine. I am facing another problem. This is my code: ChoiceRenderer choiceRenderer = new ChoiceRenderer("value", "key"); SelectOption selectedOption = new SelectOption(selectOption[0].getKey(), "Selected Value"); final IModel iModel = new PropertyModel(selectedOption.getValue(), "value"); final DropDownChoice postCategoriesDropDown = new DropDownChoice("postCategories", iModel, Arrays.asList(selectOption), choiceRenderer); Select Option is : public class SelectOption { private int key; private String value; public SelectOption(int key, String value) { this.key = key; this.value = value; } / getters and setters } Now here, drop down is being rendered in markup.. * * But the as given in the code, I want a particular value to come as default value. But the default one is coming out 'Choose One'. What is the issue?? But -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-cannot-find-id-in-inner-enclosure-but-has-no-problem-in-outer-one-tp4559666p4565376.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 EMAIL DISCLAIMER This email message and its attachments are confidential and may also contain copyright or privileged material. If you are not the intended recipient, you may not forward the email or disclose or use the information contained in it. If you have received this email message in error, please advise the sender immediately by replying to this email and delete the message and any associated attachments. Any views, opinions, conclusions, advice or statements expressed in this email message are those of the individual sender and should not be relied upon as the considered view, opinion, conclusions, advice or statement of this company except where the sender expressly, and with authority, states them to be the considered view, opinion, conclusions, advice or statement of this company. Every care is taken but we recommend that you scan any attachments for viruses. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket cannot find id in inner enclosure...but has no problem in outer one!!!
I have removed inner enclosure and its working fine. I am facing another problem. This is my code: ChoiceRenderer choiceRenderer = new ChoiceRenderer("value", "key"); SelectOption selectedOption = new SelectOption(selectOption[0].getKey(), "Selected Value"); final IModel iModel = new PropertyModel(selectedOption.getValue(), "value"); final DropDownChoice postCategoriesDropDown = new DropDownChoice("postCategories", iModel, Arrays.asList(selectOption), choiceRenderer); Select Option is : public class SelectOption { private int key; private String value; public SelectOption(int key, String value) { this.key = key; this.value = value; } / getters and setters } Now here, drop down is being rendered in markup.. * * But the as given in the code, I want a particular value to come as default value. But the default one is coming out 'Choose One'. What is the issue?? But -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-cannot-find-id-in-inner-enclosure-but-has-no-problem-in-outer-one-tp4559666p4565376.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: Wicket cannot find id in inner enclosure...but has no problem in outer one!!!
See org.apache.wicket.markup.html.basic.EnclosureContainer On Tue, Apr 17, 2012 at 9:48 AM, Wilhelmsen Tor Iver wrote: >> Hi, can anyone tell me any other alternative of enclosure if the above >> problem cant be bugged out?? > > You can do explicitly what the enclosure does more conveniently, by using a > WebMarkupContainer where isvisible() delegates to the child's isVisible(). > > - Tor Iver > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Wicket cannot find id in inner enclosure...but has no problem in outer one!!!
> Hi, can anyone tell me any other alternative of enclosure if the above > problem cant be bugged out?? You can do explicitly what the enclosure does more conveniently, by using a WebMarkupContainer where isvisible() delegates to the child's isVisible(). - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket cannot find id in inner enclosure...but has no problem in outer one!!!
Hi, can anyone tell me any other alternative of enclosure if the above problem cant be bugged out?? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-cannot-find-id-in-inner-enclosure-but-has-no-problem-in-outer-one-tp4559666p4562050.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