On Thu, Apr 18, 2013 at 2:20 PM, hfriederichs <[email protected]> wrote:
> I'm sorry, but I don't understand you at all. > > How is iteration over a javascript array of urls give me a button that > opens > a wikipage if a url can be found in a database, and how does that same > iteration produce a feedback message if not? > > I'm completely lost here. > You said that you want the link/button to be always there and always clickable. So make your own Link/Button component that renders a JS array of urls (the wiki pages urls). When clicked get the first element of the array ( http://www.w3schools.com/jsref/jsref_shift.asp) and show the wiki page, when clicked again do the same with the new first element, etc. When the array is empty show a label that there are no more wiki pages and disable the link/button. Wicket is server side web framework but this shouldn't stop you from writing JavaScript when needed. > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Infomessage-ExternalLink-in-case-of-a-missing-URL-tp4658015p4658085.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
