Re: configuring wicket:id from Java code in in a page</span></a></span> </h1> <p class="darkgray font13"> <span class="sender pipe"><a href="/search?l=users@wicket.apache.org&q=from:%22Rakesh+Sinha%22" rel="nofollow"><span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">Rakesh Sinha</span></span></a></span> <span class="date"><a href="/search?l=users@wicket.apache.org&q=date:20080701" rel="nofollow">Tue, 01 Jul 2008 22:55:23 -0700</a></span> </p> </div> <div itemprop="articleBody" class="msgBody"> <!--X-Body-of-Message--> <pre>Thanks Igor. That works. Thanks Apache Wicket team once again for a wonderful framework.</pre><pre> On Wed, Jul 2, 2008 at 12:37 AM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > <title wicket:id="mysiteName">[title will be here]</title> > > just like the span... > > -igor > > On Tue, Jul 1, 2008 at 9:01 PM, Rakesh Sinha <[EMAIL PROTECTED]> wrote: >> I am trying to have the title of a given page, populated from the code. >> >> HTML: >> ====== >> <html> >> <head> >> <title>wicket:id="mysiteName"</title> >> </head> >> <body> >> <strong>Homepage</strong> >> <br /> >> <br /> >> <span wicket:id="message">message will be here</span> >> </body> >> </html> >> >> Java: (HomePage.java only) >> ===== >> >> public class HomePage extends WebPage { >> public HomePage(final PageParameters parameters) { >> // Add the simplest type of label >> add(new Label("message", MESSAGE)); >> add(new Label("mysiteName", "mysite")); >> // TODO Add your page's components here >> } >> >> static final String MESSAGE = "If you see this message wicket is >> properly configured and running"; >> } >> >> I am getting the following error. >> >> ERROR - RequestCycle - The component(s) below failed to >> render. A common problem is that you have added a component in code >> but forgot to reference it in the markup (thus the component will >> never be rendered). >> >> 1. [Component id = mysiteName, page = pages.HomePage, path = >> 0:mysiteName.Label, isVisible = true, isVersioned = true] >> >> org.apache.wicket.WicketRuntimeException: The component(s) below >> failed to render. A common problem is that you have added a component >> in code but forgot to reference it in the markup (thus the component >> will never be rendered). >> >> 1. [Component id = mysiteName, page = pages.HomePage, path = >> 0:mysiteName.Label, isVisible = true, isVersioned = true] >> >> at org.apache.wicket.Page.checkRendering(Page.java:1115) >> >> >> Can somebody help me here. >> >> I am using this with Wicket 1.3.4 . (with Jetty engine). >> Thanks. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] </pre> </div> <div class="msgButtons margintopdouble"> <ul class="overflow"> <li class="msgButtonItems"><a class="button buttonleft " accesskey="p" href="msg21361.html">Previous message</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="c" href="index.html#21365">View by thread</a></li> <li class="msgButtonItems textaligncenter"><a class="button" accesskey="i" href="maillist.html#21365">View by date</a></li> <li class="msgButtonItems textalignright"><a class="button buttonright " accesskey="n" href="msg21424.html">Next message</a></li> </ul> </div> <a name="tslice"></a> <div class="tSliceList margintopdouble"> <ul class="icons monospace"> <li class="icons-email"><span class="subject"><a href="msg21358.html">configuring wicket:id from Java code in <TITLE> in...</a></span> <span class="sender italic">Rakesh Sinha</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg21361.html">Re: configuring wicket:id from Java code in <TIT...</a></span> <span class="sender italic">Igor Vaynberg</span></li> <li><ul> <li class="icons-email tSliceCur"><span class="subject">Re: configuring wicket:id from Java code in <...</span> <span class="sender italic">Rakesh Sinha</span></li> <li><ul> <li class="icons-email"><span class="subject"><a href="msg21424.html">Re: configuring wicket:id from Java code in...</a></span> <span class="sender italic">Matthijs Wensveen</span></li> </ul> </ul> </ul> </ul> </div> <div class="overflow msgActions margintopdouble"> <div class="msgReply" > <h2> Reply via email to </h2> <form method="POST" action="/mailto.php"> <input type="hidden" name="subject" value="Re: configuring wicket:id from Java code in <TITLE> in a page"> <input type="hidden" name="msgid" value="aed435370807012254l751401fal2aa192f860daaa2f@mail.gmail.com"> <input type="hidden" name="relpath" value="users@wicket.apache.org/msg21365.html"> <input type="submit" value=" Rakesh Sinha "> </form> </div> </div> </div> <div class="aside" role="complementary"> <div class="logo"> <a href="/"><img src="/logo.png" width=247 height=88 alt="The Mail Archive"></a> </div> <form class="overflow" action="/search" method="get"> <input type="hidden" name="l" value="users@wicket.apache.org"> <label class="hidden" for="q">Search the site</label> <input class="submittext" type="text" id="q" name="q" placeholder="Search users"> <input class="submitbutton" name="submit" type="image" src="/submit.png" alt="Submit"> </form> <div class="nav margintop" id="nav" role="navigation"> <ul class="icons font16"> <li class="icons-home"><a href="/">The Mail Archive home</a></li> <li class="icons-list"><a href="/users@wicket.apache.org/">users - all messages</a></li> <li class="icons-about"><a href="/users@wicket.apache.org/info.html">users - about the list</a></li> <li class="icons-expand"><a href="/search?l=users@wicket.apache.org&q=subject:%22Re%5C%3A+configuring+wicket%5C%3Aid+from+Java+code+in+%3CTITLE%3E+in+a+page%22&o=newest&f=1" title="e" id="e">Expand</a></li> <li class="icons-prev"><a href="msg21361.html" title="p">Previous message</a></li> <li class="icons-next"><a href="msg21424.html" title="n">Next message</a></li> </ul> </div> <div class="listlogo margintopdouble"> </div> <div class="margintopdouble"> </div> </div> </div> <div class="footer" role="contentinfo"> <ul> <li><a href="/">The Mail Archive home</a></li> <li><a href="/faq.html#newlist">Add your mailing list</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/faq.html#support">Support</a></li> <li><a href="/faq.html#privacy">Privacy</a></li> <li class="darkgray">aed435370807012254l751401fal2aa192f860daaa2f@mail.gmail.com</li> </ul> </div> </body> </html> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'9d40526a0e95dafe',t:'MTc3MjExODEzMA=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script>