Link onclick setMarkupId doesn't work.

2010-10-17 Thread always_rick
What I am trying to do is: if menu item is selected (onClick), change the markup li id or class. However, it doesn't seem to work. Am I missing something? html ul id=menu li class=menuitem wicket:id=menuitem # /li /ul wicket ListView listView = new ListView( menuitem, menuItemList )

Re: Link onclick setMarkupId doesn't work.

2010-10-17 Thread James Carman
Why not just use pure JavaScript for this? All you're trying to do is change a class or id (I'd do class) when something is clicked. Is there any reason why you need to go server-side for this? On Sun, Oct 17, 2010 at 2:10 AM, always_rick sh...@hotmail.com wrote: What I am trying to do is:

My New Book: Now in Dead Tree Format

2010-10-17 Thread Jonathan Locke
For those of you who were grumbling about not having a Kindle, now you have no excuse :) http://www.amazon.com/Coding-Software-Process-Jonathan-Locke/dp/0615404820/ Would like to hear feedback from readers, of course. Also if you enjoy it and can make time, please blog it, rate it on Amazon or

Re: Link onclick setMarkupId doesn't work

2010-10-17 Thread Arjun Dhar
I was about to complain about the same thing. I also use SimpleAttributeModifier to get around the issue. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Link-onclick-setMarkupId-doesn-t-work-tp2998815p2998836.html Sent from the Users forum mailing list archive at

Re: Link onclick setMarkupId doesn't work

2010-10-17 Thread Arjun Dhar
BTW before I get into a ball of mis understandings; I'm just complaining about setMarkupId here in general :) It works with MarkupContainers like with div tag etc. But not with td, li etc. id is an attribute that can represent any DOM element to my mind, hence the complaint. -- View this message

Re: Link onclick setMarkupId doesn't work

2010-10-17 Thread Martin Grigorov
it seems it doesn't work for list items. did you try to use .setReuseItems(true) ? On Sun, Oct 17, 2010 at 9:15 AM, Arjun Dhar dhar...@yahoo.com wrote: BTW before I get into a ball of mis understandings; I'm just complaining about setMarkupId here in general :) It works with MarkupContainers

Re: Link onclick setMarkupId doesn't work.

2010-10-17 Thread Sven Meier
Hi, the listView is populated before each render, so it doesn't make sense to alter a component in onclick(). Sven On 10/17/2010 08:10 AM, always_rick wrote: What I am trying to do is: if menu item is selected (onClick), change the markupli id or class. However, it doesn't seem to work.

Re: Link onclick setMarkupId doesn't work.

2010-10-17 Thread Igor Vaynberg
listview.setreuseitems(true) for what its worth it is better to pull then to push values. -igor On Sat, Oct 16, 2010 at 11:10 PM, always_rick sh...@hotmail.com wrote: What I am trying to do is: if menu item is selected (onClick), change the markup li id or class. However, it doesn't seem

Re: Link onclick setMarkupId doesn't work.

2010-10-17 Thread always_rick
James Carman wrote: Why not just use pure JavaScript for this? All you're trying to do is change a class or id (I'd do class) when something is clicked. Is there any reason why you need to go server-side for this? my javascript skill is limited. could you please show how to do it? --

Re: Link onclick setMarkupId doesn't work.

2010-10-17 Thread always_rick
Igor Vaynberg-2 wrote: listview.setreuseitems(true) for what its worth it is better to pull then to push values. -igor thanks a lot. it still doesn't work. I am using wicket 1.4.12. -- View this message in context:

Wicket 1.5 and WebPageRenderer warn

2010-10-17 Thread Java Programmer
Hello, I use wicket 1.5-M2.1 right now, and I get warn which I haven't on earlier versions: WARN 2010-10-17 17:45:55,425 WebPageRenderer: The Buffered response should be handled by BufferedResponseRequestHandler What could be the reason of this warn (the application was slightly migrated from

Re: Wicket 1.5 and WebPageRenderer warn

2010-10-17 Thread Martin Grigorov
Can you try with latest trunk (1.5-SNAPSHOT) ? If the warning is still there and you are able to create a quickstart application then we will be interested to take a look. Thanks! On Sun, Oct 17, 2010 at 5:52 PM, Java Programmer jprogrami...@gmail.comwrote: Hello, I use wicket 1.5-M2.1 right

ModalWindow question

2010-10-17 Thread drf
Does anyone have ideas on how to handle the following issue: During processing of a wizard, I store a boolean flag in the Session object to indicate that the wizard has not completed. If, during the course of the wizard, the user clicks on another menu item, the flag in the session is checked,

Re: ModalWindow question

2010-10-17 Thread Martin Grigorov
what about storing the flag as a cookie ? one stored it will be there for the session timelife On Sun, Oct 17, 2010 at 9:25 PM, drf davidrfi...@gmail.com wrote: Does anyone have ideas on how to handle the following issue: During processing of a wizard, I store a boolean flag in the Session

Re: ModalWindow question

2010-10-17 Thread Martin Makundi
Maybe you can clear the session object in the previous screen (the page that renders as result of Back button)? ** Martin 2010/10/17 drf davidrfi...@gmail.com: Does anyone have ideas on how to handle the following issue: During processing of a wizard, I store a boolean flag in the Session

Re: My New Book: Now in Dead Tree Format

2010-10-17 Thread Zilvinas Vilutis
free kindle is here: http://www.amazon.com/gp/feature.html/ref=kcp_ipad_mkt_lnd?docId=1000493771 :) Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:   cika...@gmail.com On Sun, Oct 17, 2010 at 12:10 AM, Jonathan Locke jonathan.lo...@gmail.com wrote: For those of you who were grumbling

Re: My New Book: Now in Dead Tree Format

2010-10-17 Thread Jonathan Locke
Yes, but not for Linux! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/My-New-Book-Now-in-Dead-Tree-Format-tp2998832p2999635.html Sent from the Users forum mailing list archive at Nabble.com. - To